add missing changelog
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
2
3         * graphite-isl-ast-to-gimple.c:
4         Refactor so that each function can access 'region'. This will help
5         maintain a parameter rename_map within a region.
6
7 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8
9         * config/rs6000/rs6000.md (*lt0_disi): New.
10
11 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
12
13         PR target/66217
14         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
15         "available letters" comment.
16         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18         and_2rld_operand):  Delete.
19         (and_operand): Adjust.
20         (rotate_mask_operator): New.
21         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
22         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
23         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
24         extract_ME): Delete.
25         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
26         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
27         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
28         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
29         rs6000_emit_2insn_and): New.
30         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
31         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
32         includes_rldic_lshift_p, includes_rldicr_lshift_p,
33         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
34         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
35         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
36         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
37         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
38         rs6000_emit_2insn_and): New.
39         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
40         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
41         handling.
42         <NOT>: Don't fall through to next case.
43         <AND>: Handle the various rotate-and-mask cases directly.
44         <IOR>: Always cost as one insn.
45         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
46         (and<mode>3): Adjust expander for the new patterns.
47         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
48         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
49         (*and<mode>3_imm_dot_shifted): New.
50         (*and<mode>3_mask): Delete, rewrite as ...
51         (and<mode>3_mask): ... New.
52         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
53         (andsi3_internal0_nomc): Delete.
54         (*andsi3_internal6): Delete.
55         (*and<mode>3_2insn): New.
56         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
57         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
58         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
59         *insvdi_internal3): Delete.
60         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
61         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
62         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
63         *ior<mode>_mask): New.
64         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
65         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
66         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
67         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
68         Delete.
69         (ashr<mode>3): Delete expander.
70         (*ashr<mode>3): Rename to ...
71         (ashr<mode>3): ... This.
72         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
73         (*rotldi3_internal4, *rotldi3_internal5 and split,
74         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
75         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
76         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
77         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
78         (splitter for loading a mask): Adjust.
79         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
80
81 2015-07-20  Marek Polacek  <polacek@redhat.com>
82
83         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
84         output_add_clobbers, output_added_clobbers_hard_reg_p,
85         gen_rtx_scratch): Remove declarations.
86
87 2015-07-20  Marek Polacek  <polacek@redhat.com>
88
89         PR c++/55095
90         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
91
92 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
93
94         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
95         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
96
97 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
98
99         * combine.c (combine_simplify_rtx): Move simplification step
100         before various transformations/substitutions.
101
102 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
103
104         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
105         (struct int_traits): Likewise.
106
107 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
108
109         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
110         function to vmsdbgout_function_decl.
111
112 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
113
114         PR target/66922
115         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
116         from misaligned positions.
117         (ix86_expand_pinsr): Reject insertions to misaligned positions.
118
119 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
120
121         PR middle-end/46851
122         PR middle-end/60340
123         * Makefile.in: Removed omega.o.
124         * common.opt: Document flag fcheck-data-deps as deprecated.
125         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
126         its associated params: omega-max-vars, omega-max-geqs,
127         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
128         omega-max-keys, omega-eliminate-redundant-constraints.
129         * doc/loop.texi: Remove all the section on Omega.
130         * graphite-blocking.c: Include missing params.h: it used to be
131         included through tree-data-ref.h and omega.h.
132         * graphite-isl-ast-to-gimple.c: Same.
133         * graphite-optimize-isl.c: Same.
134         * graphite-sese-to-poly.c: Same.
135         * graphite.c: Same.
136         * omega.c: Remove.
137         * omega.h: Remove.
138         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
139         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
140         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
141         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
142         * passes.def: Remove pass_check_data_deps.
143         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
144         (dump_conflict_function): Same.
145         (dump_subscript): Same.
146         (print_direction_vector): Same.
147         (print_dir_vectors): Same.
148         (print_lambda_vector): Same.
149         (print_dist_vectors): Same.
150         (dump_data_dependence_relation): Same.
151         (dump_data_dependence_relations): Same.
152         (dump_dist_dir_vectors): Same.
153         (dump_ddrs): Same.
154         (init_omega_eq_with_af): Removed.
155         (omega_extract_distance_vectors): Removed.
156         (omega_setup_subscript): Removed.
157         (init_omega_for_ddr_1): Removed.
158         (init_omega_for_ddr): Removed.
159         (ddr_consistent_p): Removed.
160         (compute_affine_dependence): Do not use omega to check data
161         dependences.
162         (compute_data_dependences_for_bb): Removed.
163         (analyze_all_data_dependences): Removed.
164         (tree_check_data_deps): Removed.
165         * tree-data-ref.h: Do not include omega.h.
166         (compute_data_dependences_for_bb): Removed.
167         (tree_check_data_deps): Removed.
168         * tree-ssa-loop.c (pass_check_data_deps): Removed.
169         (make_pass_check_data_deps): Removed.
170         * tree-ssa-phiopt.c: Include params.h.
171         * tree-vect-data-refs.c: Same.
172         * tree-vect-slp.c: Same.
173
174 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
175
176         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
177         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
178         (mem->fpreg splitters): Ditto.
179         (general_operand->nonimmediate_operand splitter): Use explicit modes.
180         Disable DFmode for TARGET_64BIT.
181
182 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
183
184         PR target/66906
185         * config/i386/i386.c (ix86_expand_prologue): Replicate static
186         chain on the stack.
187
188 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
189
190         * config/nvptx/mkoffload.c (process): Constify host data.
191         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
192         Constify host data.
193         (generate_host_descr_file): Likewise.
194
195 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
196             Sebastian Pop  <s.pop@samsung.com>
197
198         PR middle-end/61929
199         * graphite-dependences.c (add_pdr_constraints): Renamed
200         pdr->extent to pdr->subscript_sizes.
201         * graphite-interchange.c (build_linearized_memory_access): Add
202         back all gcc_assert's that the "isl_int to isl_val conversion"
203         patch has removed.  Refactored.
204         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
205         * graphite-poly.c (new_poly_dr): Same.
206         (free_poly_dr): Same.
207         * graphite-poly.h (struct poly_dr): Same.
208         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
209         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
210         * graphite-scop-detection.h: Fix space.
211         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
212         back all gcc_assert's removed by a previous patch.
213         (wrap): Remove the_isl_ctx global variable that the same patch has
214         added.
215         (build_loop_iteration_domains): Same.
216         (add_param_constraints): Same.
217         (pdr_add_data_dimensions): Same.  Refactored.
218         (build_poly_dr): Renamed extent to subscript_sizes.
219
220 2015-07-17  Marek Polacek  <polacek@redhat.com>
221
222         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
223         * match.pd: ... here.
224
225 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
226
227         * config/nvptx/mkoffload.c (process): Constify target data.
228         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
229         Constify target data.
230         (generate_target_offloadend_file): Likewise.
231
232 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
233
234         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
235         to allow renaming of PHI arguments on edges incoming from outer
236         loop header, add corresponding check before start PHI iterator.
237         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
238         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
239         with true force_vectorize.  Set-up dominator for outer loop too.
240         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
241         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
242         was marked with force_vectorize and has restricted cfg.
243         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
244         inner loop.
245         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
246         do peeling for outer loops.
247
248 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
249             Matthias Klose  <doko@ubuntu.com>
250
251         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
252         build-sysroot, sysroot from the `Miscenalleous configure options' to
253         the `Directories' section and strip trailing `/' from with_sysroot.
254         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
255         * configure: Regenerated.
256
257 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
258
259         PR target/66824
260         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
261         (TARGET_HARD_DF_REGS): Ditto.
262         (TARGET_HARD_XF_REGS): Ditto.
263         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
264         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
265         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
266         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
267         (*movsf_internal): Add alternatives 16 and 17. Enable
268         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
269
270 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
271
272         PR rtl-optimization/66891
273         * calls.c (expand_call): Wrap precompute_register_parameters with
274         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
275
276 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
277
278         * config/nvptx/mkoffload.c (process): Constify mapping variables.
279         Define target data struct and initialize it.
280
281 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
282
283         PR rtl-optimization/66626
284         * ira.h (emit-rtl.h): Include.
285         (non_spilled_static_chain_regno_p): New.
286         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
287         unless it is non spilled static chain pseudo.
288         (assign_hard_rego): Spill memory profitable allocno unless it is
289         non spilled static chain pseudo.
290         (allocno_spill_priority_compare): Put non spilled static chain
291         pseudo at the end of sorted array.
292         (improve_allocation): Do nothing if we have static chain and
293         non-local goto.
294         (allocno__priority_compare_func): Put non spilled static chain
295         pseudo at the beginning of sorted array.
296         (move_spill_restore): Ignore non spilled static chain pseudo.
297         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
298         to non spilled static chain pseudo.
299         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
300         pseudo at the beginning of sorted array.
301         (spill_for): Spill non spilled static chain pseudo last.
302         * lra-constraints.c (lra_constraints): Remove static chain pseudo
303         check for equivalence.
304
305 2015-07-16  Martin Liska  <mliska@suse.cz>
306
307         PR ipa/66896.
308         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
309         dst_ctx if it does not exist.
310
311 2015-07-16  Martin Liska  <mliska@suse.cz>
312
313         * hash-set.h (remove): New function.
314         (iterator): New iteration class for hash_set.
315
316 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
317
318         * genattrtab.c (make_canonical): Add a file_location parameter.
319         Use fatal_at rather than fatal.
320         (get_attr_value): Likewise.  Update call to make_canonical.
321         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
322         (make_internal_attr): Update calls accordingly.
323
324 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
325
326         * read-md.h (message_with_line, error_with_line): Delete.
327         * read-md.c (message_with_line, error_with_line): Delete.
328         * gensupport.h: Include read-md.h.
329         (md_rtx_info): New structure.
330         (read_md_rtx): Use it.  Return a bool success value.
331         * gensupport.c (read_md_rtx): Likewise.
332         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
333         (main): Update after interface changes.
334         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
335         (main): Update after interface changes.
336         * genattrtab.c (insn_code_number): Delete.
337         (optimize_attrs): Add a max_insn_code parameter and use it instead
338         of insn_code_number.
339         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
340         Use *_at rather than *_with_line functions.
341         (gen_insn): Likewise.
342         (gen_delay): Likewise.
343         (gen_insn_reserv): Likewise.
344         (gen_bypass): Take an md_rtx_info rather than an rtx.
345         (main): Update after interface changes.  Use a local max_insn_code
346         variable instead of insn_code_number.
347         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
348         an rtx.  Use fatal_at rather than fatal.
349         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
350         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
351         (gen_absence_set, gen_final_absence_set, gen_automaton)
352         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
353         (main): Update after interface changes.
354         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
355         and code number.
356         (main): Update after interface changes.
357         * genconditions.c (main): Use new read_md_rtx interface.
358         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
359         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
360         (main): Update after interface changes.
361         * genemit.c (insn_code_number, insn_index_number): Delete.
362         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
363         Use fatal_at rather than fatal.
364         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
365         rather than fatal.
366         (gen_split): Likewise.
367         (main): Update after interface changes.
368         * genextract.c (line_no): Delete.
369         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
370         Update call to walk_rtx.
371         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
372         rather than message_with_line.
373         (walk_rtx): Add an md_rtx_info argument.  Update call to
374         VEC_safe_set_locstr.
375         (main): Update after interface changes.
376         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
377         and lineno.  Use error_at rather than separate message_with_line
378         calls and have_error assignments.
379         (main): Update after interface changes.
380         * genmddump.c (main): Use new read_md_rtx interface.
381         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
382         (main): Update after interface changes.
383         * genoutput.c (next_code_number): Delete.
384         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
385         (gen_peephole, gen_expand, gen_split): Likewise.
386         (note_constraint): Likewise.  Use *_at rather than *_with_line
387         functions.
388         (main): Update after interface changes.
389         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
390         rtx and lineno.
391         (main): Update after interface changes.
392         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
393         than an rtx and lineno.
394         (process_define_constraint): Likewise.
395         (process_define_register_constraint): Likewise.
396         (main): Update after interface changes.
397         * genrecog.c (next_insn_code, pattern_lineno): Delete.
398         (validate_pattern): Replace top-level rtx with an md_rtx_info.
399         Use *_at rather than *_with_line functions.
400         (match_pattern_2): Likewise.
401         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
402         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
403         Use *_at rather than *_with_line functions.
404         * gentarget-def.c (add_insn): New function.
405         (main): Use it.  Use new read_md_rtx interface.
406
407 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
408
409         * gensupport.h (compute_test_codes): Take a file_location rather
410         than a line number.
411         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
412         rather than *_with_line functions.
413         (process_define_predicate): Update call to compute_test_codes.
414         * genpreds.c (validate_exp): Take a file_location rather than a
415         line number.  Use *_at functions rather than *_with_line functions.
416         (process_define_predicate): Update call to validate_exp.
417         (constraint_data): Replace lineno field with a file_location.
418         (add_constraint): Take a file_location rather than a line number.
419         Use *_at functions rather than *_with_line functions.  Fix error
420         message for address constraints.  Update after changes to
421         validate_exp, constraint_data and compute_test_codes.
422         (process_define_constraint): Update accordingly.
423         (process_define_register_constraint): Likewise.
424
425 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
426
427         * genoutput.c (data): Use a file_location to record the source
428         position.
429         (nothing): Delete.
430         (idata, idata_end): Remove initialization.
431         (constraint_data): Replace lineno with a file_location.
432         (output_insn_data): Update after changes to data.
433         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
434         (scan_operands): Likewise, using *_at rather than *_with_line
435         functions.
436         (process_template): Likewise.
437         (validate_insn_alternatives): Likewise.
438         (validate_insn_operands): Likewise.
439         (validate_optab_operands): Likewise.
440         (init_insn_for_nothing): Initialize idata and idata_end.
441         (note_constraint): Update after changes to constraint_data,
442         using at rather than with_line functions.
443         (mdep_constraint_len): Take a file_location rather than a
444         line number.  Use at rather than with_line functions.
445
446 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
447
448         * read-md.h (fatal_at): Declare.
449         * read-md.c (fatal_at): New function.
450         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
451         to record the source position.
452         (check_attr_test): Take a file_location instead of a line number.
453         Use fatal_at instead of fatal.
454         (check_attr_value): Update after above changes, using "at"
455         rather than "with_line" reporting functions.
456         (convert_set_attr_alternative): Likewise.
457         (gen_attr): Likewise.
458         (check_defs): Likewise.  Don't assign to read_md_filename.
459         (gen_insn): Update initialization after above changes.
460         (gen_delay): Likewise.
461         (write_insn_cases): Print the filename for a define_peephole.
462         (gen_insn_reserv): Take a line number as argument and update
463         the call to check_attr_test.
464         (main): Pass a line number to gen_insn_reserv.
465
466 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
467
468         * read-md.h (file_location): New structure.
469         (directive_handler_t): Take a file_location rather than a line number.
470         (message_at, error_at): Declare.
471         (read_skip_construct): Delete.
472         * read-md.c (message_with_line_1): Replace with...
473         (message_at_1): ...this new function.
474         (message_at, error_at): New functions.
475         (message_with_line, error_with_line): Update to use message_at_1.
476         (handle_enum): Take a file_location rather than a line number
477         and use error_at for error reporting.
478         (handle_include): Likewise.
479         (read_skip_construct): Likewise.  Make static.
480         (handle_file): Update after above changes.  Pass a file_location
481         rather than a line number to handle_directive.
482         * gensupport.c (queue_elem): Replace separate filename and lineno
483         with a file_location.
484         (queue_pattern): Replace filename and lineno arguments with a
485         file_location.  Update after change to queue_elem.
486         (process_define_predicate): Replace lineno argument with a
487         file_location and use error_at for error reporting.  Update
488         after above changes.
489         (process_rtx): Likewise.
490         (subst_pattern_match): Likewise.
491         (get_alternatives_number): Likewise.
492         (alter_predicate_for_insn): Likewise.
493         (rtx_handle_directive): Likewise.
494         (is_predicable): Update after above changes, using error_at rather
495         than error_with_line.
496         (has_subst_attribute): Likewise.
497         (identify_predicable_attribute): Likewise.
498         (alter_attrs_for_subst_insn): Likewise.
499         (process_one_cond_exec): Likewise.
500         (process_substs_on_one_elem): Likewise.
501         (process_define_subst): Likewise.
502         (check_define_attr_duplicates): Likewise.
503         (read_md_rtx): Update after change to queue_elem.
504
505 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
506
507         * genoutput.c (next_index_number): Delete.
508         (data): Remove index_number.
509         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
510         (main): Remove manipulation of next_index_number.
511
512 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
513
514         * genattrtab.c (check_attr_value): Remove handling of null attrs.
515         (make_canonical): Likewise.
516
517 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
518
519         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
520         instead of adjust_address_nv.
521         (restore_stack_nonlocal): Likewise.
522         (nonlocal_goto): Likewise.
523
524 2015-07-16  Tom de Vries  <tom@codesourcery.com>
525
526         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
527         not have a corresponding loop header phi.
528
529 2015-07-16  Tom de Vries  <tom@codesourcery.com>
530
531         * tree-parloops.c (create_loads_for_reductions): Handle case that
532         reduction is unused.
533
534 2015-07-16  Richard Biener  <rguenther@suse.de>
535
536         PR tree-optimization/66894
537         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
538         about deriving NE_EXPR from truncated values.
539
540 2015-07-16  Martin Liska  <mliska@suse.cz>
541
542         * alloc-pool.h
543         (object_allocator): Add new class.
544         (pool_allocator::initialize): Use the underlying class.
545         (pool_allocator::allocate): Likewise.
546         (pool_allocator::remove): Likewise.
547         (operator new): A new generic allocator.
548         * asan.c (struct asan_mem_ref): Remove unused members.
549         (asan_mem_ref_new): Replace new operator with
550         object_allocator::allocate.
551         (free_mem_ref_resources): Change deallocation.
552         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
553         with object_allocator.
554         * config/sh/sh.c (add_constant): Replace new operator with
555         object_allocator::allocate.
556         (sh_reorg): Change call to a release method.
557         * cselib.c (struct elt_list): Remove unused members.
558         (new_elt_list): Replace new operator with
559         object_allocator::allocate.
560         (new_elt_loc_list): Likewise.
561         (new_cselib_val): Likewise.
562         (unchain_one_elt_list): Change delete operator with remove method.
563         (unchain_one_elt_loc_list): Likewise.
564         (unchain_one_value): Likewise.
565         (cselib_finish): Release newly added static allocators.
566         * cselib.h (struct cselib_val): Remove unused members.
567         (struct elt_loc_list): Likewise.
568         * df-problems.c (df_chain_alloc): Replace pool_allocator with
569         object_allocator.
570         * df-scan.c (struct df_scan_problem_data): Likewise.
571         (df_scan_alloc): Likewise.
572         * df.h (struct dataflow): Likewise.
573         * dse.c (struct read_info_type): Likewise.
574         (struct insn_info_type): Likewise.
575         (struct dse_bb_info_type): Likewise.
576         (struct group_info): Likewise.
577         (struct deferred_change): Likewise.
578         (get_group_info): Likewise.
579         (delete_dead_store_insn): Likewise.
580         (free_read_records): Likewise.
581         (replace_read): Likewise.
582         (check_mem_read_rtx): Likewise.
583         (scan_insn): Likewise.
584         (dse_step1): Likewise.
585         (dse_step7): Likewise.
586         * et-forest.c (struct et_occ): Remove unused members.
587         (et_new_occ): Use allocate instead of new operator.
588         (et_new_tree): Likewise.
589         (et_free_tree): Call release method explicitly.
590         (et_free_tree_force): Likewise.
591         (et_free_pools): Likewise.
592         (et_split): Use remove instead of delete operator.
593         * et-forest.h (struct et_node): Remove unused members.
594         * ipa-cp.c: Change pool_allocator to object_allocator.
595         * ipa-inline-analysis.c: Likewise.
596         * ipa-profile.c: Likewise.
597         * ipa-prop.c: Likewise.
598         * ipa-prop.h: Likewise.
599         * ira-build.c (initiate_cost_vectors): Cast return value.
600         (ira_allocate_cost_vector): Likewise.
601         * ira-color.c (struct update_cost_record): Remove unused members.
602         * lra-int.h (struct lra_live_range): Likewise.
603         (struct lra_copy): Likewise.
604         (struct lra_insn_reg): Likewise.
605         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
606         * lra.c (new_insn_reg): Replace new operator with allocate method.
607         (free_insn_regs): Same for operator delete.
608         (finish_insn_regs): Release new static allocator.
609         (finish_insn_recog_data): Likewise.
610         (lra_free_copies): Replace delete operator with remove method.
611         (lra_create_copy): Replace operator new with allocate method.
612         (invalidate_insn_data_regno_info): Same for remove method.
613         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
614         (free_debug_insn_changes): Replace delete operator with remove method.
615         (replace_oldest_value_reg): Replace operator new with allocate method.
616         (pass_cprop_hardreg::execute): Release new static variable.
617         * sched-deps.c (sched_deps_init): Change pool_allocator to
618         object_allocator.
619         * sel-sched-ir.c: Likewise.
620         * sel-sched-ir.h: Likewise.
621         * stmt.c (expand_case): Likewise.
622         (expand_sjlj_dispatch_table): Likewise.
623         * tree-sra.c (struct access): Remove unused members.
624         (struct assign_link): Likewise.
625         (sra_deinitialize): Release newly added static pools.
626         (create_access_1):Replace operator new with allocate method.
627         (build_accesses_from_assign): Likewise.
628         (create_artificial_child_access): Likewise.
629         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
630         pool_allocator to object_allocator.
631         * tree-ssa-pre.c: Likewise.
632         * tree-ssa-reassoc.c: Likewise.
633         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
634         * tree-ssa-strlen.c: Likewise.
635         * tree-ssa-structalias.c: Likewise.
636         * var-tracking.c (onepart_pool_allocate): New function.
637         (unshare_variable): Use the newly added function.
638         (variable_merge_over_cur): Likewise.
639         (variable_from_dropped): Likewise.
640         (variable_was_changed): Likewise.
641         (set_slot_part): Likewise.
642         (emit_notes_for_differences_1): Likewise.
643         (vt_finalize): Release newly added static pools.
644
645 2015-07-16  Martin Jambor  <mjambor@suse.cz>
646
647         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
648         all uses.  Fix two typos in its general comment.
649         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
650
651 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
652
653         * config/i386/linux-common.h (LINK_MPX): New.
654         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
655         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
656         indicating '-z bndplt' support by linker.
657         * configure: Regenerate.
658         * config.in: Regenerate.
659
660 2015-07-16  Richard Biener  <rguenther@suse.de>
661
662         * fold-const.c (fold_widened_comparison): Remove.
663         (fold_sign_changed_comparison): Likewise.
664         (fold_comparison): Move widened and sign-changed comparison
665         simplification ...
666         * match.pd: ... to patterns here.
667         * generic-match-head.c: Include target.h.
668         * gimple-match-head.c: Likewise.
669
670 2015-07-16  Richard Biener  <rguenther@suse.de>
671
672         * tree-ssa-dom.c (dom_valueize): New function.
673         (record_temporary_equivalences): Also record equivalences
674         for dominating stmts that have uses of equivalences we are
675         about to record.
676
677 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
678
679         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
680         add_autoinc_candidates.
681         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
682         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
683         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
684         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
685         Call new function.
686         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
687         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
688         Remove parameter struct iv*.  Call add_autoinc_candidates here.
689         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
690         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
691         Call new function.
692         (find_iv_candidates): Call new functions.
693
694 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
695
696         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
697         uninitialized-variable warning.
698
699 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
700
701         PR target/65249
702         * config/sh/sh.md (movdi): Split simple reg move to two movsi
703         when the destination is R0.
704
705 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
706
707         PR target/66866
708         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
709         * config/i386/i386.c (ix86_expand_pextr): New function.
710         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
711         for non-lowpart subregs.
712         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
713         (insv<mode>): Use SWI248 mode iterator.
714         (insv<mode>_1): Ditto.
715
716 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
717             Sebastian Pop  <s.pop@samsung.com>
718
719         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
720         iterator to use_stmt.
721
722 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
723             Sebastian Pop <s.pop@samsung.com>
724
725         * graphite-scop-detection.c (build_scops_1): Discard scops for
726         which entry==exit.
727
728 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
729             Sebastian Pop <s.pop@samsung.com>
730
731         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
732         case of a return statement in scop.
733
734 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
735             Sebastian Pop <s.pop@samsung.com>
736
737         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
738         INTEGER_TYPE parameters.
739         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
740         VECTOR_CST in scan_tree_for_params.
741         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
742
743 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
744
745         * gimple-pretty-print.h: Don't include pretty-print.h.
746         * tree-streamer.h: Don't include lto-streamer.h.
747         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
748         * gimple-streamer-in.c: Remove redundant includes.
749         * gimple-streamer-out.c: Likewise.
750         * ipa-devirt.c: Likewise.
751         * ipa-icf.c: Likewise.
752         * ipa-inline-analysis.c: Likewise.
753         * ipa-polymorphic-call.c: Likewise.
754         * ipa-profile.c: Likewise.
755         * ipa-prop.c: Likewise.
756         * ipa-pure-const.c: Likewise.
757         * lto-cgraph.c: Likewise.
758         * lto-streamer-in.c: Likewise.
759         * lto-streamer-out.c: Likewise.
760         * lto-streamer.c: Likewise.
761         * tree-streamer-in.c: Likewise.
762         * tree-streamer-out.c: Likewise.
763         * tree-streamer.c: Likewise.
764
765 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
766
767         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
768         include input.h.
769         * opts.c: Remove multiline #include comment.
770
771 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
772
773         * config/nvptx/mkoffload.c (process): Add C++ protection to
774         emitted code.
775
776 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
777
778         PR target/66854
779         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
780         null before IEEE 128-bit floating point support patch.
781
782 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
783
784         * simplify-rtx.c (simplify_ternary_operation): Add simplification
785         for (!c) != {0,...,0} ? a : b for vector modes.
786
787 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
788             Martin Jambor  <mjambor@suse.cz>
789
790         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
791         struct func_body_info* instead of struct ipa_node_params*, expecting
792         fbi->info to be filled in.  Replace throughout.  Adjust call to
793         ipa_load_from_parm_agg.
794         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
795         instead of struct ipa_node_params*.  Adjust calls to other functions
796         so that they pass either fbi or fbi->info.
797         (set_switch_stmt_execution_predicate): Likewise.
798         (will_be_nonconstant_predicate): Likewise.
799         (compute_bb_predicates): Likewise.
800         (estimate_function_body_sizes): Move asserts earlier.  Fill in
801         struct func_body_info, replace parms_info with fbi.info.  Adjust
802         calls to functions that now accept struct func_body_info.
803         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
804         (struct func_body_info): Likewise.
805         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
806         remove static.  Adjust callers.
807         (ipa_load_from_parm_agg): Remove.
808         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
809         (func_body_info): Likewise.
810         (ipa_load_from_parm_agg): Adjust prototype.
811
812 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
813
814         * gensupport.c (rtx_handle_directive): Adjust.
815         * read-rtl.c (apply_iterators): Take vector to add rtxs to
816         instead of expr list rtx.
817         (add_define_attr_for_define_subst): Likewise.
818         (add_define_subst_attr): Likewise.
819         (read_subst_mapping): Likewise.
820         (read_rtx): Likewise.
821         * rtl.h (read_rtx): Adjust.
822
823 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
824
825         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
826
827 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
828
829         PR target/58066
830         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
831         (*tls_local_dynamic_base_64_<mode>): Ditto.
832         (*tls_local_dynamic_base_64_largepic): Ditto.
833         (tls_global_dynamic_64_<mode>): Update expander pattern.
834         (tls_local_dynamic_base_64_<mode>): Ditto.
835
836 2015-07-15  Richard Biener  <rguenther@suse.de>
837
838         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
839         and bool_var == 1 -> bool_var simplifications ...
840         * match.pd: ... to patterns here.  Factor out negate_expr_p
841         cases from the A - B -> A + (-B) patterns as negate_expr_p
842         predicate and add a -(A + B) -> (-B) - A pattern.
843
844 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
845
846         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
847
848 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
849             Robert Suchanek  <robert.suchanek@imgtec.com>
850
851         * config/mips/mips.c (mips_int_mask): New enum.
852         (mips_shadow_set): Likewise.
853         (int_mask): New variable.
854         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
855         (machine_function): Add int_mask and use_shadow_register_set.
856         (mips_attribute_table): Add attribute handlers for interrupt and
857         use_shadow_register_set.
858         (mips_interrupt_mask): New static function.
859         (mips_handle_interrupt_attr): Likewise.
860         (mips_handle_use_shadow_register_set_attr): Likewise.
861         (mips_use_shadow_register_set): Change return type to enum
862         mips_shadow_set.  Add argument handling for use_shadow_register_set
863         attribute.
864         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
865         compare with mips_shadow_set enum.
866         (mips_compute_frame_info): Add interrupt mask and
867         use_shadow_register_set to per-function information structure.
868         Add a stack slot for EPC unconditionally.
869         (mips_expand_prologue): Compare use_shadow_register_set value
870         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
871         masked interrupt register but in EIC mode use K0 and save Cause in K0.
872         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
873         copying the stack pointer from the shadow register set.
874         * config/mips/mips.h (SR_IM0): New define.
875         * config/mips/mips.md (mips_rdpgpr): Rename to...
876         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
877         * doc/extend.texi (Declaring Attributes of Functions): Document
878         optional arguments for interrupt and use_shadow_register_set
879         attributes.
880
881 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
882
883         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
884         interrupt attribute.
885         (mips_expand_prologue): Disable the floating point unit in an ISR.
886         * config/mips/mips.h (SR_COP1): New define.
887
888 2015-07-15  Richard Biener  <rguenther@suse.de>
889
890         * genmatch.c (parser::peek, parser::peek_ident): Add argument
891         to tell how many tokens to peek ahead (default 1).
892         (parser::eat_token, parser::eat_ident): Return token consumed.
893         (parser::parse_result): Parse new switch statement.
894         * match.pd: Use case statements where appropriate.
895
896 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
897
898         PR rtl-optimization/58066
899         * calls.c (expand_call): Precompute register parameters before stack
900         alignment is performed.
901
902 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
903
904         PR rtl-optimization/66838
905         * postreload.c (reload_cse_move2add): Also process
906         CALL_INSN_FUNCTION_USAGE when resetting information of
907         call-clobbered registers.
908
909 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
910             Cesar Philippidis  <cesar@codesourcery.com>
911             Chung-Lin Tang  <cltang@codesourcery.com>
912
913         * config/nios2/constraints.md (U, v): New constraints.
914         * config/nios2/predicates.md (rdprs_dcache_operand): New.
915         (ldstex_memory_operand): New.
916         * config/nios2/sync.md: New file.
917         * config/nios2/nios2.md (unspecv): Add new builtin function
918         UNSPECV codes.
919         (rdprs, flushd, flushda, wrpie, eni): New patterns.
920         (top-level): Include sync.md.
921         * config/nios2/nios2.c (N2_FTYPES): Add function types for
922         new builtins.
923         (N2_BUILTINS): Add arch field setting, add new builtins.
924         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
925         for arch field.
926         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
927         Also handle ldex/stex/ldsex/stsex builtins.
928         (nios2_expand_rdprs_builtin): New function.
929         (nios2_expand_cache_builtin): New function.
930         (nios2_expand_wrpie_builtin): New function.
931         (nios2_expand_eni_builtin): New function.
932         (nios2_expand_builtin): Add arch field handling and new builtin
933         cases.
934         * doc/extend.texi (Altera Nios II Built-in Functions): Document
935         new builtins.
936         * doc/md.texi (Machine Constraints): Document U and v constraints.
937
938 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
939             Cesar Philippidis  <cesar@codesourcery.com>
940             Chung-Lin Tang  <cltang@codesourcery.com>
941
942         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
943         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
944         callee_save_reg_size and uses_anonymous_args fields.
945         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
946         (nios2_create_cfa_notes): New function.
947         (nios2_adjust_stack): New function for adjusting stack.
948         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
949         Use nios2_adjust_stack.
950         (nios2_expand_epilogue): Likewise.
951         (nios2_expand_return): New function.
952         (nios2_can_use_return_insn): Update for CDX pop.n usage.
953         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
954         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
955         * config/nios2/nios2.md (return): Use nios2_expand_return.
956
957 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
958             Cesar Philippidis  <cesar@codesourcery.com>
959             Chung-Lin Tang  <cltang@codesourcery.com>
960
961         * config/nios2/predicates.md (pop_operation): New.
962         (ldwm_operation, stwm_operation): New.
963         (nios2_hard_register_operand): New.
964         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
965         (ldstwm_operation_p): Declare.
966         (gen_ldstwm_peep): Declare.
967         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
968         (base_reg_adjustment_p): New.
969         (pop_operation_p): New.
970         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
971         (nios2_ldstwm_regset_p): New.
972         (ldstwm_operation_p): New.
973         (gen_ldst): New.
974         (nios2_ldst_parallel): New.
975         (struct ldswm_operand): Declare.
976         (compare_ldstwm_operands): New.
977         (can_use_cdx_ldstw): New.
978         (gen_ldstwm_peep): New.
979         * config/nios2/nios2-ldstwm.sml: New.
980         * config/nios2/nios2.md: Include ldstwm.md.
981         * config/nios2/ldstwm.md: Generated.
982
983 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
984             Cesar Philippidis  <cesar@codesourcery.com>
985             Chung-Lin Tang  <cltang@codesourcery.com>
986
987         * config/nios2/nios2.h (LABEL_ALIGN): Define.
988         (REG_ALLOC_ORDER): Define.
989         (ADJUST_REG_ALLOC_ORDER): Define.
990         (HONOR_REG_ALLOC_ORDER): Define.
991         (CDX_REG_P): Define.
992         (ANDCLEAR_INT): Define.
993         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
994         (nios2_label_align): Declare.
995         (nios2_cdx_narrow_form_p): Declare.
996         (nios2_adjust_reg_alloc_order): Declare.
997         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
998         operation.
999         (nios2_large_unspec_reloc_p): New function, split from...
1000         (nios2_legitimate_pic_operand_p): ...here.
1001         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1002         (nios2_print_operand_punct_valid_p): New.
1003         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
1004         (split_mem_address): New.
1005         (split_alu_insn): New.
1006         (cdxreg): New.
1007         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1008         (enum nios2_add_insn_kind): New.
1009         (nios2_add_insn_names, nios2_add_insn_narrow): New.
1010         (nios2_add_insn_classify): New.
1011         (nios2_add_insn_asm): New.
1012         (nios2_cdx_narrow_form_p): New.
1013         (label_align, min_labelno, max_labelno): New.
1014         (nios2_reorg): New.
1015         (nios2_label_align): New.
1016         (nios2_adjust_reg_alloc_order): New.
1017         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1018         (TARGET_MACHINE_DEPENDENT_REORG): Define.
1019         * config/nios2/constraints.md (P): New constraint.
1020         * config/nios2/predicates.md (const_and_operand): New.
1021         (and_operand): New.
1022         (stack_memory_operand): New.
1023         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1024         (length): Update to use nios2_cdx_narrow_form_p().
1025         (type): Add new insn type values.
1026         (control, alu, st, ld, shift): Update insn reservations with
1027         new insn type values.
1028         (*high, *lo_sum): Define new insn patterns for constant generation.
1029         (movqi_internal, movhi_internal, movsi_internal): Reduce
1030         alternatives, update asm template to handle CDX variants, update
1031         type attributes.
1032         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1033         template, update type attributes.
1034         (extendhisi2, extendqi<mode>2): Likewise.
1035         (addsi3): Change to use function for asm string.
1036         (subsi3): Add CDX notation to asm template, update type attributes.
1037         (negsi3, one_cmplsi3): Likewise.
1038         (andsi3): New pattern, specialized from logical patterns.
1039         (<code>si3): Remove and case, combine alternatives, update asm
1040         template.
1041         (<shift_op>si3): Add CDX notation, update type attributes.
1042         (rotrsi3): Update type attribute.
1043         (*merge, extzv, insv): New insn patterns.
1044         (return): Change to define_expand.
1045         (simple_return): Add CDX notation, update type attributes.
1046         (indirect_jump): Add CDX notation.
1047         (jump): Update asm cases, update length attribute expression.
1048         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1049         (nios2_cbranch): Update asm cases and length attribute expression
1050         to handle CDX variants.
1051         (nios2_cmp<code>): Update asm template.
1052         (nop): Add CDX notation, update type attributes.
1053         (trap): Add CDX notation.
1054         (ctrapsi4): Update asm cases and length attribute expression to
1055         handle CDX variant.
1056         * doc/md.texi (Machine Constraints): Document P constraint.
1057
1058 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1059             Cesar Philippidis  <cesar@codesourcery.com>
1060             Chung-Lin Tang  <cltang@codesourcery.com>
1061
1062         * config/nios2/nios2.h (SMALL_INT12): New macro.
1063         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1064         (nios2_valid_addr_expr_p): Use it.
1065         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1066         with implicit "io" instructions on R2.
1067         * config/nios2/constraints.md (w): New constraint.
1068         * config/nios2/predicates.md (ldstio_memory_operand): New.
1069         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1070         operand predicate and constraint.
1071         (ld<bh>io_signed, st<bhw>io>): Likewise.
1072         * doc/md.texi (Machine Constraints): Document w constraint.
1073
1074 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1075             Cesar Philippidis  <cesar@codesourcery.com>
1076             Chung-Lin Tang  <cltang@codesourcery.com>
1077
1078         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1079         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1080         Nios II architecture level.
1081         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1082         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1083         (OPTION_DEFAULT_SPECS): Define.
1084         (ASM_SPEC): Add -march= spec strings.
1085         * config/nios2/nios2.c (nios2_option_override): Check for
1086         conflicts involving new options.
1087         * config.gcc (nios2*-*-*): Support --with-arch=.
1088         * doc/invoke.texi (Option Summary, Nios II Options): Document
1089         -march=, -mbmx, and -mcdx.
1090
1091 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
1092
1093         PR rtl-optimization/66626
1094         * lra-constraints.c (lra_constraints): Prevent equivalence
1095         substitution for static chain pseudo in functions with nonlocal
1096         goto.
1097
1098 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1099
1100         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1101         (nios2_emit_stack_limit_check): Add size parameter.  Handle
1102         -fstack-limit-symbol as well as -fstack-limit-register.
1103         (nios2_expand_prologue): Emit only a single stack limit check,
1104         even if multiple stack adjustments are required.
1105         (nios2_option_override): Diagnose unsupported combination of -fpic
1106         and -stack-limit-symbol.
1107
1108 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
1109
1110         * Makefile.in (top_srcdir): New.
1111         * configure.ac: Use AM_ZLIB.
1112         * configure: Regeneated.
1113
1114 2015-07-14  Matthias Klose  <doko@ubuntu.com>
1115
1116         PR target/66840
1117         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1118
1119 2015-07-14  Richard Biener  <rguenther@suse.de>
1120
1121         PR tree-optimization/66863
1122         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1123         what we record for conversion use stmt lhs inequalities.
1124
1125 2015-07-14  Richard Biener  <rguenther@suse.de>
1126
1127         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1128         (decision_tree::gen_gimple): Likewise.
1129
1130 2015-07-14  Tom de Vries  <tom@codesourcery.com>
1131
1132         * gcc.c (greater_than_spec_func): Declare forward.
1133         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1134         -ftree-parallelize-loops={0,1}.
1135         (static_spec_functions): Add greater_than_spec_func function with name
1136         "gt".
1137         (greater_than_spec_func): New function.
1138
1139 2015-07-14  Richard Biener  <rguenther@suse.de>
1140
1141         * tree-ssa-dom.c (record_temporary_equivalences): Merge
1142         wideing type conversion case from record_equivalences_from_incoming_edge
1143         and use record_equality to record equivalences.
1144         (record_equivalences_from_incoming_edge): Call
1145         record_temporary_equivalences.
1146
1147 2015-07-14  Richard Biener  <rguenther@suse.de>
1148
1149         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1150         (struct if_expr): New.
1151         (struct with_expr): Likewise.
1152         (is_a_helper): Add helpers for if_expr and with_expr.
1153         (struct simplify): Add simplify_kind enum and member.  Remove
1154         ifexpr_vec member.
1155         (simplify::simplify): Adjust.
1156         (lower_commutative): Adjust.
1157         (lower_opt_convert): Likewise.
1158         (lower_cond): Likewise.
1159         (replace_id): Handle with_expr and if_expr.
1160         (lower_for): Adjust.
1161         (dt_simplify::gen_1): New recursive worker, split out from ...
1162         (dt_simplify::gen): ... here.  Deal with if and with expansion
1163         recursively.
1164         (capture_info::capture_info): Take context argument
1165         (capture_info::walk_result): Only analyze specific result.
1166         (parser::parse_result): New function.
1167         (parser::parse_simplify): Adjust to parse ifs with then end
1168         else case.
1169         (parser::parse_if): Simplify.
1170         (parser::parse_pattern): Pass down simplify kind.
1171         * match.pd: Convert if structure to new syntax.
1172
1173 2015-07-13  Marek Polacek  <polacek@redhat.com>
1174
1175         * rtl.c (rtx_equal_p_cb): Fix typo.
1176
1177 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
1178
1179         * omega.h: Don't include config.h, don't include params.h again if
1180         omega.h has already been included.
1181         * graphite-poly.h: Include sese.h.
1182         * graphite.c: Don't include sese.h, remove needless includes and
1183         minimize includes outside #ifdef HAVE_isl block.
1184         * graphite-blocking.c: Don't include sese.h, remove needless includes,
1185         and wrap entire file in #ifdef HAVE_isl
1186         * graphite-dependences.c: Likewise.
1187         * graphite-interchange.c: Likewise.
1188         * graphite-isl-ast-to-gimple.c: Likewise.
1189         * graphite-optimize-isl.c: Likewise.
1190         * graphite-poly.c: Likewise.
1191         * graphite-scop-detection.c: Likewise.
1192         * graphite-sese-to-poly.c: Likewise.
1193
1194 2015-07-13  Tom de Vries  <tom@codesourcery.com>
1195
1196         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1197
1198 2015-07-13  Renlin Li  <renlin.li@arm.com>
1199
1200         PR rtl/66556
1201         * simplify-rtx.c (simplify_const_relational_operation): Add
1202         side_effects_p checks.
1203
1204 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
1205
1206         * bitmap.h: Fix double word typos.
1207         * builtins.c: Same.
1208         * calls.c: Same.
1209         * cfgloopmanip.c: Same.
1210         * cgraph.c: Same.
1211         * cgraph.h: Same.
1212         * cgraphclones.c: Same.
1213         * combine.c: Same.
1214         * config/aarch64/aarch64-protos.h: Same.
1215         * config/aarch64/aarch64.c: Same.
1216         * config/aarch64/aarch64.md: Same.
1217         * config/arm/arm.md: Same.
1218         * config/arm/arm1020e.md: Same.
1219         * config/arm/arm1026ejs.md: Same.
1220         * config/arm/arm926ejs.md: Same.
1221         * config/arm/fa526.md: Same.
1222         * config/arm/fa606te.md: Same.
1223         * config/arm/fa626te.md: Same.
1224         * config/arm/fa726te.md: Same.
1225         * config/arm/fmp626.md: Same.
1226         * config/darwin.c: Same.
1227         * config/epiphany/epiphany.c: Same.
1228         * config/frv/frv.c: Same.
1229         * config/ft32/ft32.c: Same.
1230         * config/gnu-user.h: Same.
1231         * config/h8300/constraints.md: Same.
1232         * config/i386/i386.c: Same.
1233         * config/i386/i386.md: Same.
1234         * config/iq2000/iq2000.md: Same.
1235         * config/mips/mips.c: Same.
1236         * config/mmix/mmix.md: Same.
1237         * config/moxie/moxie.c: Same.
1238         * config/nds32/nds32.md: Same.
1239         * config/pa/pa.h: Same.
1240         * config/rs6000/aix.h: Same.
1241         * config/rs6000/rs6000.h: Same.
1242         * config/sh/sh.c: Same.
1243         * config/tilegx/tilegx.md: Same.
1244         * config/tilepro/gen-mul-tables.cc: Same.
1245         * cse.c: Same.
1246         * dbxout.c: Same.
1247         * doc/invoke.texi: Same.
1248         * dse.c: Same.
1249         * dwarf2out.c: Same.
1250         * final.c: Same.
1251         * gcc.c: Same.
1252         * genmatch.c: Same.
1253         * gimplify.c: Same.
1254         * hash-table.h: Same.
1255         * internal-fn.c: Same.
1256         * ipa-cp.c: Same.
1257         * ipa-devirt.c: Same.
1258         * ipa-icf.c: Same.
1259         * ipa-icf.h: Same.
1260         * ipa-profile.c: Same.
1261         * ipa-prop.c: Same.
1262         * ipa-prop.h: Same.
1263         * ira.c: Same.
1264         * omp-low.c: Same.
1265         * reg-stack.c: Same.
1266         * regcprop.c: Same.
1267         * reorg.c: Same.
1268         * rtl.h: Same.
1269         * sbitmap.h: Same.
1270         * tree-eh.c: Same.
1271         * tree-inline.c: Same.
1272         * tree-sra.c: Same.
1273         * tree-ssa-dom.c: Same.
1274         * tree-ssa-loop-ivopts.c: Same.
1275         * tree-ssa-structalias.c: Same.
1276         * tree-ssa-tail-merge.c: Same.
1277         * tree-ssa-ter.c: Same.
1278         * tree-ssa-threadupdate.c: Same.
1279         * tree-ssa-uninit.c: Same.
1280         * tree-ssanames.c: Same.
1281         * tree-vect-loop-manip.c: Same.
1282         * tree-vrp.c: Same.
1283         * tree.c: Same.
1284         * valtrack.c: Same.
1285         * vec.h: Same.
1286
1287 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1288
1289         PR middle-end/66726
1290         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1291         tree_ssa_phiopt_worker): Call it.
1292
1293 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1294
1295         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1296         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1297         REG_EQUAL note.
1298
1299 2015-07-11  Marek Polacek  <polacek@redhat.com>
1300
1301         PR middle-end/66353
1302         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1303         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1304         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1305         rather than bb_has_abnormal_call_pred.
1306         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1307         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1308         rather than bb_has_abnormal_call_pred.
1309
1310 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
1311
1312         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1313         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1314         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1315         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1316         v850_legitimate_address_p): New functions.
1317         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1318
1319 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1320
1321         PR target/66819
1322         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1323         indirect sibcall with register arguments if register available
1324         for argument passing.
1325         (init_cumulative_args): Set cfun->machine->arg_reg_available
1326         to (cum->nregs > 0) or to true if function has a variable
1327         argument list.
1328         (function_arg_advance_32): Set cfun->machine->arg_reg_available
1329         to false if cum->nregs <= 0.
1330         * config/i386/i386.h (machine_function): Add arg_reg_available.
1331
1332 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
1333
1334         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1335         and gen_higpart instead of gen_rtx_SUBREG.
1336         * config/i386/i386.md
1337         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1338         (read-modify peephole2): Use gen_lowpart instead of
1339         gen_rtx_SUBREG for operand 5.
1340
1341 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
1342
1343         * config/tilepro/gen-mul-tables.cc (main): Change include list for
1344         generated files.
1345         * config/tilepro/mul-tables.c: Regenerate.
1346         * config/tilegx/mul-tables.c: Regenerate.
1347
1348 2015-07-10  Richard Biener  <rguenther@suse.de>
1349
1350         * fold-const.c (distribute_bit_expr): Remove.
1351         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1352         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1353         to A & (B | C) and simplifying A << C1 << C2 to ...
1354         * match.pd: ... patterns here.
1355
1356 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
1357
1358         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1359         Mark mem as READONLY and NOTRAP for PIC symbol.
1360
1361 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
1362
1363         * gimple-predict.h: New file.
1364         (gimple_predict_predictor, gimple_predict_set_predictor,
1365         gimple_predict_outcome, gimple_predict_set_outcome,
1366         gimple_build_predict): Relocate here.
1367         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1368         gimple_predict_outcome, gimple_predict_set_outcome): Move to
1369         gimple-predict.h.
1370         * gimple.c (gimple_build_predict): Move to gimple-predict.h
1371         * basic-block.h: Don't include cfghooks.h.
1372         * backend.h: Don't include predict.h.
1373         * cfghooks.h: Include predict.h.
1374         * gimple-pretty-print.c: Include gimple-predict.h.
1375         * gimplify.c: Likwise.
1376         * predict.c: Adjust includes.
1377         * tree-inline.c: Likewise.
1378         * asan.c: Likewise.
1379         * auto-inc-dec.c: Likewise.
1380         * auto-profile.c: Likewise.
1381         * bb-reorder.c: Likewise.
1382         * builtins.c: Likewise.
1383         * caller-save.c: Likewise.
1384         * calls.c: Likewise.
1385         * cfganal.c: Likewise.
1386         * cfgbuild.c: Likewise.
1387         * cfg.c: Likewise.
1388         * cfgcleanup.c: Likewise.
1389         * cfgexpand.c: Likewise.
1390         * cfghooks.c: Likewise.
1391         * cfgloopanal.c: Likewise.
1392         * cfgloop.c: Likewise.
1393         * cfgloopmanip.c: Likewise.
1394         * cfgrtl.c: Likewise.
1395         * cgraph.c: Likewise.
1396         * cgraphunit.c: Likewise.
1397         * combine.c: Likewise.
1398         * cprop.c: Likewise.
1399         * cse.c: Likewise.
1400         * dce.c: Likewise.
1401         * dojump.c: Likewise.
1402         * dse.c: Likewise.
1403         * except.c: Likewise.
1404         * expmed.c: Likewise.
1405         * expr.c: Likewise.
1406         * final.c: Likewise.
1407         * fold-const.c: Likewise.
1408         * function.c: Likewise.
1409         * fwprop.c: Likewise.
1410         * gcc-plugin.h: Likewise.
1411         * gcse.c: Likewise.
1412         * genattrtab.c: Likewise.
1413         * genemit.c: Likewise.
1414         * gengtype.c: Likewise.
1415         * genopinit.c: Likewise.
1416         * genoutput.c: Likewise.
1417         * genpreds.c: Likewise.
1418         * genrecog.c: Likewise.
1419         * gimple-fold.c: Likewise.
1420         * gimple-iterator.c: Likewise.
1421         * gimple-ssa-isolate-paths.c: Likewise.
1422         * gimple-ssa-strength-reduction.c: Likewise.
1423         * graph.c: Likewise.
1424         * graphite-blocking.c: Likewise.
1425         * graphite.c: Likewise.
1426         * graphite-dependences.c: Likewise.
1427         * graphite-interchange.c: Likewise.
1428         * graphite-isl-ast-to-gimple.c: Likewise.
1429         * graphite-optimize-isl.c: Likewise.
1430         * graphite-poly.c: Likewise.
1431         * graphite-scop-detection.c: Likewise.
1432         * graphite-sese-to-poly.c: Likewise.
1433         * haifa-sched.c: Likewise.
1434         * ifcvt.c: Likewise.
1435         * internal-fn.c: Likewise.
1436         * ipa-cp.c: Likewise.
1437         * ipa-profile.c: Likewise.
1438         * ipa-split.c: Likewise.
1439         * ipa-utils.c: Likewise.
1440         * ira-build.c: Likewise.
1441         * ira-color.c: Likewise.
1442         * ira-conflicts.c: Likewise.
1443         * ira-costs.c: Likewise.
1444         * ira-emit.c: Likewise.
1445         * ira-lives.c: Likewise.
1446         * jump.c: Likewise.
1447         * loop-doloop.c: Likewise.
1448         * loop-init.c: Likewise.
1449         * loop-invariant.c: Likewise.
1450         * loop-unroll.c: Likewise.
1451         * lower-subreg.c: Likewise.
1452         * lra-assigns.c: Likewise.
1453         * lra.c: Likewise.
1454         * lra-coalesce.c: Likewise.
1455         * lra-constraints.c: Likewise.
1456         * lra-lives.c: Likewise.
1457         * lto-cgraph.c: Likewise.
1458         * lto-streamer-in.c: Likewise.
1459         * mode-switching.c: Likewise.
1460         * modulo-sched.c: Likewise.
1461         * omp-low.c: Likewise.
1462         * optabs.c: Likewise.
1463         * passes.c: Likewise.
1464         * postreload.c: Likewise.
1465         * postreload-gcse.c: Likewise.
1466         * profile.c: Likewise.
1467         * recog.c: Likewise.
1468         * regstat.c: Likewise.
1469         * reload1.c: Likewise.
1470         * reorg.c: Likewise.
1471         * rtlanal.c: Likewise.
1472         * sched-ebb.c: Likewise.
1473         * sel-sched-ir.c: Likewise.
1474         * sese.c: Likewise.
1475         * shrink-wrap.c: Likewise.
1476         * simplify-rtx.c: Likewise.
1477         * stmt.c: Likewise.
1478         * store-motion.c: Likewise.
1479         * tracer.c: Likewise.
1480         * trans-mem.c: Likewise.
1481         * tree-call-cdce.c: Likewise.
1482         * tree-cfg.c: Likewise.
1483         * tree-cfgcleanup.c: Likewise.
1484         * tree-chkp.c: Likewise.
1485         * tree-complex.c: Likewise.
1486         * tree-eh.c: Likewise.
1487         * tree-if-conv.c: Likewise.
1488         * tree-loop-distribution.c: Likewise.
1489         * tree-outof-ssa.c: Likewise.
1490         * tree-parloops.c: Likewise.
1491         * tree-predcom.c: Likewise.
1492         * tree-pretty-print.c: Likewise.
1493         * tree-profile.c: Likewise.
1494         * tree-sra.c: Likewise.
1495         * tree-ssa.c: Likewise.
1496         * tree-ssa-coalesce.c: Likewise.
1497         * tree-ssa-dce.c: Likewise.
1498         * tree-ssa-dom.c: Likewise.
1499         * tree-ssa-forwprop.c: Likewise.
1500         * tree-ssa-ifcombine.c: Likewise.
1501         * tree-ssa-loop-ch.c: Likewise.
1502         * tree-ssa-loop-im.c: Likewise.
1503         * tree-ssa-loop-ivcanon.c: Likewise.
1504         * tree-ssa-loop-ivopts.c: Likewise.
1505         * tree-ssa-loop-manip.c: Likewise.
1506         * tree-ssa-loop-prefetch.c: Likewise.
1507         * tree-ssa-loop-unswitch.c: Likewise.
1508         * tree-ssa-math-opts.c: Likewise.
1509         * tree-ssa-phiopt.c: Likewise.
1510         * tree-ssa-pre.c: Likewise.
1511         * tree-ssa-reassoc.c: Likewise.
1512         * tree-ssa-sink.c: Likewise.
1513         * tree-ssa-tail-merge.c: Likewise.
1514         * tree-ssa-threadedge.c: Likewise.
1515         * tree-ssa-threadupdate.c: Likewise.
1516         * tree-switch-conversion.c: Likewise.
1517         * tree-tailcall.c: Likewise.
1518         * tree-vect-data-refs.c: Likewise.
1519         * tree-vect-loop.c: Likewise.
1520         * tree-vect-loop-manip.c: Likewise.
1521         * tree-vectorizer.c: Likewise.
1522         * tree-vrp.c: Likewise.
1523         * ubsan.c: Likewise.
1524         * value-prof.c: Likewise.
1525         * varasm.c: Likewise.
1526         * var-tracking.c: Likewise.
1527         * config/aarch64/aarch64-builtins.c: Likewise.
1528         * config/aarch64/aarch64.c: Likewise.
1529         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1530         * config/alpha/alpha.c: Likewise.
1531         * config/arc/arc.c: Likewise.
1532         * config/arm/arm.c: Likewise.
1533         * config/avr/avr.c: Likewise.
1534         * config/bfin/bfin.c: Likewise.
1535         * config/c6x/c6x.c: Likewise.
1536         * config/cr16/cr16.c: Likewise.
1537         * config/cris/cris.c: Likewise.
1538         * config/darwin.c: Likewise.
1539         * config/darwin-c.c: Likewise.
1540         * config/epiphany/epiphany.c: Likewise.
1541         * config/epiphany/mode-switch-use.c: Likewise.
1542         * config/epiphany/resolve-sw-modes.c: Likewise.
1543         * config/fr30/fr30.c: Likewise.
1544         * config/frv/frv.c: Likewise.
1545         * config/ft32/ft32.c: Likewise.
1546         * config/h8300/h8300.c: Likewise.
1547         * config/i386/i386.c: Likewise.
1548         * config/i386/winnt.c: Likewise.
1549         * config/ia64/ia64.c: Likewise.
1550         * config/iq2000/iq2000.c: Likewise.
1551         * config/lm32/lm32.c: Likewise.
1552         * config/m32c/m32c.c: Likewise.
1553         * config/m32r/m32r.c: Likewise.
1554         * config/m68k/m68k.c: Likewise.
1555         * config/mcore/mcore.c: Likewise.
1556         * config/mep/mep.c: Likewise.
1557         * config/microblaze/microblaze.c: Likewise.
1558         * config/mips/mips.c: Likewise.
1559         * config/mmix/mmix.c: Likewise.
1560         * config/mn10300/mn10300.c: Likewise.
1561         * config/moxie/moxie.c: Likewise.
1562         * config/msp430/msp430.c: Likewise.
1563         * config/nds32/nds32.c: Likewise.
1564         * config/nds32/nds32-cost.c: Likewise.
1565         * config/nds32/nds32-fp-as-gp.c: Likewise.
1566         * config/nds32/nds32-intrinsic.c: Likewise.
1567         * config/nds32/nds32-isr.c: Likewise.
1568         * config/nds32/nds32-md-auxiliary.c: Likewise.
1569         * config/nds32/nds32-memory-manipulation.c: Likewise.
1570         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1571         * config/nds32/nds32-predicates.c: Likewise.
1572         * config/nios2/nios2.c: Likewise.
1573         * config/nvptx/nvptx.c: Likewise.
1574         * config/pa/pa.c: Likewise.
1575         * config/pdp11/pdp11.c: Likewise.
1576         * config/rl78/rl78.c: Likewise.
1577         * config/rs6000/rs6000.c: Likewise.
1578         * config/rx/rx.c: Likewise.
1579         * config/s390/s390.c: Likewise.
1580         * config/sh/sh.c: Likewise.
1581         * config/sh/sh-mem.cc: Likewise.
1582         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1583         * config/sh/sh_treg_combine.cc: Likewise.
1584         * config/sparc/sparc.c: Likewise.
1585         * config/spu/spu.c: Likewise.
1586         * config/stormy16/stormy16.c: Likewise.
1587         * config/tilegx/tilegx.c: Likewise.
1588         * config/tilepro/tilepro.c: Likewise.
1589         * config/v850/v850.c: Likewise.
1590         * config/vax/vax.c: Likewise.
1591         * config/visium/visium.c: Likewise.
1592         * config/xtensa/xtensa.c: Likewise.
1593
1594 2015-07-10  Richard Biener  <rguenther@suse.de>
1595
1596         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
1597         (decision_tree::gen_gimple): Likewise.
1598         (decision_tree::gen_generic): Likewise.
1599
1600 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
1601
1602         PR target/66813
1603         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
1604         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
1605
1606 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
1607
1608         PR middle-end/66820
1609         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
1610         or ORT_TASK contexts.
1611         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
1612         is non-zero.
1613
1614 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1615
1616         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
1617         above function.
1618
1619 2015-07-10  Tom de Vries  <tom@codesourcery.com>
1620
1621         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
1622         insert nit + 1 bound.
1623
1624 2015-07-10  Richard Biener  <rguenther@suse.de>
1625
1626         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
1627         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
1628         (if_convertible_loop_p_1): For this always compute bb predicates.
1629         (if_convertible_loop_p): And free them.
1630
1631 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1632
1633         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
1634         in dump message.
1635
1636 2015-07-10  Richard Biener  <rguenther@suse.de>
1637
1638         PR tree-optimization/66823
1639         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
1640         inverted predicate.
1641
1642 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
1643
1644         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
1645         to handle mips[32|64]r3 and mips[32|64]r5.
1646
1647 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
1648
1649         PR middle-end/66633
1650         * tree-nested.c (get_static_chain): Or in a flag into
1651         info->static_chain_added.
1652         (get_frame_field, get_nonlocal_debug_decl): Likewise.
1653         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
1654         2015-07-01 changes.
1655         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
1656         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
1657         add it to clauses.
1658
1659         PR tree-optimization/66718
1660         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
1661         field.
1662         (vect_simd_lane_linear): New function.
1663         (vectorizable_simd_clone_call): Support using linear arguments for
1664         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
1665
1666 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1667
1668         PR target/66821
1669         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
1670
1671 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1672
1673         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
1674         Use machine mode, not enum machine_mode in the prototype.
1675
1676         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
1677         classify 128-bit floating point support.
1678         (FLOAT128_IBM_P): Likewise.
1679         (FLOAT128_VECTOR_P): Likewise.
1680         (FLOAT128_2REG_P): Likewise.
1681         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
1682         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
1683         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1684         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
1685
1686         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
1687         tests against TFmode/TDmode, since those modes do not use VSX
1688         addresses.
1689         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
1690         support.
1691         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
1692         tests against TFmode, etc.
1693         (invalid_e500_subreg): Add tests against IFmode/KFmode.
1694         (reg_offset_addressing_ok_p): Likewise.
1695         (rs6000_legitimate_offset_address_p): Likewise.
1696         (rs6000_legitimize_address): Likewise.
1697         (rs6000_legitimize_reload_address): Likewise.
1698         (rs6000_legitimate_address_p): Clean up tests against TFmode and
1699         TDmode to use the new helper macros, which will include IFmode and
1700         KFmode.
1701         (rs6000_emit_move): Likewise.
1702         (rs6000_darwin64_record_arg_recurse): Likewise.
1703         (print_operand): Likewise.
1704         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
1705         that uses a single vector register as a vector and not as a
1706         floating point register in terms of the calling sequence.
1707         (rs6000_discover_homogeneous_aggregate): Likewise.
1708         (rs6000_return_in_memory): Likewise.
1709         (init_cumulative_args): Likewise.
1710         (rs6000_function_arg_boundary): Likewise.
1711         (rs6000_function_arg_advance_1): Likewise.
1712         (rs6000_function_arg): Likewise.
1713         (rs6000_pass_by_reference): Likewise.
1714         (rs6000_gimplify_va_arg): Likewise.
1715         (rs6000_secondary_reload_memory): Use machine_mode not enum
1716         machine mode.
1717         (rs6000_split_multireg_move): Use new helper macros.
1718         (spe_func_has_64bit_regs_p): Likewise.
1719         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
1720         (output_toc): Use new helper macros.
1721         (rs6000_register_move_cost): Likewise.
1722         (rs6000_function_value): Add IEEE 128-bit floating point calling
1723         sequence support.
1724         (rs6000_libcall_value): Likewise.
1725         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
1726         floating point support.
1727         (rs6000_vector_mode_supported_p): Likewise.
1728
1729 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
1730
1731         PR rtl-optimization/66782
1732         * lra-int.h (struct lra_insn_recog_data): Add comment about
1733         clobbered hard regs for arg_hard_regs.
1734         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
1735         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
1736         Add condition for processing used hard regs.
1737         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
1738         Process clobbered hard regs.
1739
1740 2015-07-09  Michael Matz  <matz@suse.de>
1741
1742         * genmatch.c (fprintf_indent): New function.
1743         (operand::gen_transform): Add indent parameter.
1744         (expr::gen_transform, c_expr::gen_transform,
1745         capture::gen_transform): Ditto and use fprintf_indent.
1746         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
1747         (dt_operand::gen, dt_operand::gen_predicate,
1748         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
1749         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
1750         (decision_tree::gen_gimple): Adjust calls and indent generated
1751         code.
1752         (decision_tree::gen_generic): Ditto.
1753         (write_predicate): Ditto.
1754
1755 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
1756
1757         PR target/66814
1758         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
1759         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
1760         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
1761         {GENERAL,SSE,MMX}_REG_P where appropriate.
1762
1763 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
1764
1765         * lto-streamer.h: Don't include target.h and alloc-pool.h.
1766         * builtins.c: Adjust includes.
1767         * gimple.c: Likewise.
1768         * ipa-icf.c: Likewise.
1769         * lto-opts.c: Likewise.
1770         * ipa-reference.c: Likewise.
1771         * lto-section-out.c: Likewise.
1772         * lto-streamer-in.c: Likewise.
1773         * lto-streamer-out.c: Likewise.
1774         * opts-global.c: Likewise.
1775         * symtab.c: Likewise.
1776         * tree-chkp.c: Likewise.
1777         * tree-ssa-live.c: Likewise.
1778         * tree-streamer-in.c: Likewise.
1779         * tree-streamer-out.c: Likewise.
1780         * config/darwin.c: Likewise.
1781         * config/i386/winnt.c: Likewise.
1782
1783 2015-07-09  Richard Biener  <rguenther@suse.de>
1784
1785         * genmatch.c (struct expr): Add force_single_use flag.
1786         (expr::expr): Add copy constructor.
1787         (capture_info::walk_match): Gather force_single_use captures.
1788         (expr::gen_transform): Use possibly NULLified sequence.
1789         (dt_simplify::gen): Apply single-use restrictions by NULLifying
1790         seq if any constrained expr is not single-use.
1791         (parser::parse_expr): Refactor to allow multiple flags.  Handle
1792         's' flag to force an expression have a single-use if the pattern
1793         simplifies to more than one statement.
1794         * match.pd: Convert most single_use conditionals to :s flags.
1795
1796 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
1799         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
1800         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1801
1802 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
1803
1804         * flags.h: Don't include flag-types.h or options.h.
1805         * opts-common.c: Adjust includes.
1806         * opts-global.c: Likewise.
1807         * common/config/epiphany/epiphany-common.c: Likewise.
1808
1809 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1810
1811         PR target/66818
1812         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
1813         for IA MCU.
1814
1815 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1816
1817         PR target/66817
1818         * config/i386/i386.c (ix86_return_in_memory): Return true
1819         if int_size_in_bytes returns negative for IA MCU.
1820
1821 2015-07-09  Marek Polacek  <polacek@redhat.com>
1822
1823         PR tree-optimization/66718
1824         * Makefile.in (OBJS): Add gimple-laddress.o.
1825         * passes.def: Schedule pass_laddress.
1826         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
1827         * tree-pass.h (make_pass_laddress): Declare.
1828         * gimple-laddress.c: New file.
1829
1830 2015-07-09  Richard Biener  <rguenther@suse.de>
1831
1832         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
1833
1834 2015-07-09  Richard Biener  <rguenther@suse.de>
1835
1836         PR tree-optimization/66807
1837         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
1838
1839 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
1840
1841         * function.c (stack_protect_epilogue): Use if rather than switch for
1842         check targetm.have_stack_protect_test.
1843
1844 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1845
1846         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
1847         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
1848         * config/arc/arc.h: Likewise.
1849         * config/arm/arm.h: Likewise.
1850         * config/bfin/bfin.h: Likewise.
1851         * config/epiphany/epiphany.h: Likewise.
1852         * config/frv/frv.h: Likewise.
1853         * config/ia64/ia64.h: Likewise.
1854         * config/iq2000/iq2000.h: Likewise.
1855         * config/lm32/lm32.h: Likewise.
1856         * config/m32r/m32r.h: Likewise.
1857         * config/mcore/mcore.h: Likewise.
1858         * config/mep/mep.h: Likewise.
1859         * config/microblaze/microblaze.h: Likewise.
1860         * config/mips/mips.h: Likewise.
1861         * config/mmix/mmix.h: Likewise.
1862         * config/mn10300/mn10300.h: Likewise.
1863         * config/nds32/nds32.h: Likewise.
1864         * config/nios2/nios2.h: Likewise.
1865         * config/pa/pa.h: Likewise.
1866         * config/rl78/rl78.h: Likewise.
1867         * config/sh/sh.h: Likewise.
1868         * config/sparc/sparc.h: Likewise.
1869         * config/stormy16/stormy16.h: Likewise.
1870         * config/tilegx/tilegx.h: Likewise.
1871         * config/tilepro/tilepro.h: Likewise.
1872         * config/v850/v850.h: Likewise.
1873         * config/xtensa/xtensa.h: Likewise.
1874         * doc/tm.texi: Regenerate.
1875         * doc/tm.texi.in: Adjust.
1876         * combine.c (simplify_set): Likewise.
1877         (simplify_comparison): Likewise.
1878         * expr.c (store_constructor): Likewise.
1879         * internal-fn.c (expand_arith_overflow): Likewise.
1880         * reload.c (push_reload): Likewise.
1881         (find_reloads): Likewise.
1882         (find_reloads_subreg_address): Likewise.
1883         * reload1.c (eliminate_regs_1): Likewise.
1884         * rtlanal.c (nonzero_bits1): Likewise.
1885         (num_sign_bit_copies1): Likewise.
1886         * simplify-rtx.c (simplify_truncation): Likewise.
1887
1888 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1889
1890         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
1891         of AUTO_INC_DEC with the preprocessor.
1892         * combine.c (combine_instructions): Likewise.
1893         (can_combine_p): Likewise.
1894         (try_combine): Likewise.
1895         * emit-rtl.c (try_split): Likewise.
1896         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1897         * lower-subreg.c (resolve_simple_move): Likewise.
1898         * lra.c (update_inc_notes): Likewise.
1899         * recog.c (asm_operand_ok): Likewise.
1900         (constrain_operands): Likewise.
1901         * regrename.c (scan_rtx_address): Likewise.
1902         * reload.c (update_auto_inc_notes): Likewise.
1903         (reg_inc_found_and_valid_p): Likewise.
1904         * reload1.c (reload): Likewise.
1905         (emit_input_reload_insns): Likewise.
1906         (delete_output_reload): Likewise.
1907         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
1908         * valtrack.c (cleanup_auto_inc_dec): Likewise.
1909
1910 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1911
1912         * rtl.h: Always define AUTO_INC_DEC.
1913         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
1914         * combine.c (combine_instructions): Likewise.
1915         (can_combine_p): Likewise.
1916         (try_combine): Likewise.
1917         * emit-rtl.c (try_split): Likewise.
1918         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1919         * lower-subreg.c (resolve_simple_move): Likewise.
1920         * lra.c (update_inc_notes): Likewise.
1921         * recog.c (asm_operand_ok): Likewise.
1922         (constrain_operands): Likewise.
1923         * regrename.c (scan_rtx_address): Likewise.
1924         * reload.c (update_auto_inc_notes): Likewise.
1925         (find_equiv_reg): Likewise.
1926         * reload1.c (reload): Likewise.
1927         (reload_as_needed): Likewise.
1928         (choose_reload_regs): Likewise.
1929         (emit_input_reload_insns): Likewise.
1930         (delete_output_reload): Likewise.
1931         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
1932         * valtrack.c (cleanup_auto_inc_dec): Likewise.
1933
1934 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1935
1936         * combine.c (can_combine_def_p): Don't check the value of
1937         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
1938         (combinable_i3pat): Likewise.
1939         (mark_used_regs_combine): Likewise.
1940         * regrename.c (rename_chains): Likewise.
1941         * reload.c (find_reloads_address): Likewise.
1942         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1943
1944 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1945
1946         * combine.c (update_rsp_from_reg_equal): Don't check if
1947         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
1948         (reg_nonzero_bits_for_combine): Likewise.
1949         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
1950         1.
1951         * config/frv/frv.h: Likewise.
1952         * config/lm32/lm32.h: Likewise.
1953         * config/mep/mep.h: Likewise.
1954         * config/mips/mips.h: Likewise.
1955         * config/rs6000/rs6000.h: Likewise.
1956         * config/sh/sh.h: Likewise.
1957         * config/tilegx/tilegx.h (enum reg_class): Likewise.
1958         * config/tilepro/tilepro.h: Likewise.
1959         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
1960         * doc/tm.texi: Regenerate.
1961         * doc/tm.texi.in: Adjust.
1962         * rtlanal.c (nonzero_bits1): Likewise.
1963
1964 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1965
1966         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
1967         with the preprocessor.
1968         (combine_instructions): Likewise.
1969         (try_combine): Likewise.
1970         (subst): Likewise.
1971         (distribute_notes): Likewise.
1972
1973 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1974
1975         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
1976         defined.
1977         (simplify_set): Likewise.
1978         * cse.c (cse_insn): Likewise.
1979         * fold-const.c (fold_single_bit_test): Likewise.
1980         (fold_unary_loc): Likewise.
1981         * postreload.c (reload_cse_simplify_set): Likewise.
1982         (reload_cse_simplify_operands): Likewise.
1983
1984 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
1985
1986         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
1987         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
1988
1989 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
1990
1991         PR target/66746
1992         * config/i386/x86intrin.h: Include <adxintrin.h> even if
1993         __iamcu__ is defined.
1994
1995 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
1996
1997         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
1998
1999 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
2000
2001         PR target/66523
2002         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2003         names from preservation.
2004
2005 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
2006
2007         PR target/66806
2008         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2009         change for IAMCU.
2010         (function_arg_advance_32): Don't pass vectors in registers for
2011         IAMCU.
2012         (function_arg_32): Likewise.
2013         (ix86_return_in_memory): Don't return vectors in registers for
2014         IAMCU.
2015
2016 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
2017
2018         PR middle-end/66334
2019         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2020         hard regno live at the start of BB with incoming abnormal edges.
2021         * lra-lives.c (process_bb_lives): Ditto.
2022
2023 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2024
2025         PR libgomp/65099
2026         * config/nvptx/mkoffload.c (main): Create an offload image only in
2027         64-bit configurations.
2028
2029 2015-07-08  Martin Liska  <mliska@suse.cz>
2030
2031         PR bootstrap/66744
2032         * tree-sra.c (create_access_1): Call ctor without brackets.
2033         (create_artificial_child_access): Likewise.
2034
2035 2015-07-08  Richard Biener  <rguenther@suse.de>
2036
2037         PR tree-optimization/66793
2038         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2039         Properly split the block after stmts ending it.
2040
2041 2015-07-08  Richard Biener  <rguenther@suse.de>
2042
2043         PR tree-optimization/66794
2044         * passes.c (execute_function_todo): Assert that post-dominators
2045         are not computed.
2046         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2047         Free post-dominators.
2048
2049 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2050
2051         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2052         with early exit.
2053
2054 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
2055
2056         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2057         more than or equal 8 and less than 32 when optimizing for size.
2058
2059 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2060
2061         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2062         COSTS_N_INSNS (1) and increment it appropriately throughout the
2063         function.
2064
2065 2015-07-08  Richard Biener  <rguenther@suse.de>
2066
2067         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2068
2069 2015-07-08  Alan Modra  <amodra@gmail.com>
2070
2071         * target.def (rtx_costs): Remove "code" param, add "mode".
2072         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2073         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
2074         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2075         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
2076         call.  Track mode when given in rtx.
2077         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
2078         (default_address_cost): Pass Pmode to rtx_cost.
2079         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2080         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2081         with NULL set.
2082         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
2083         (notreg_cost): Add mode param.  Use it.
2084         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
2085         mode param and pass to set_src_cost.  Update all calls.
2086         (hash_scan_set): Formatting.
2087         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2088         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2089         * hooks.h: Ditto.
2090         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2091         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2092         emit_store_flag): Update set_src_cost and rtx_cost calls.
2093         * auto-inc-dec.c (attempt_change): Likewise.
2094         * calls.c (precompute_register_parameters): Likewise.
2095         * combine.c (expand_compound_operation, make_extraction,
2096         force_to_mode, distribute_and_simplify_rtx): Likewise.
2097         * dojump.c (prefer_and_bit_test): Likewise.
2098         * dse.c (find_shift_sequence): Likewise.
2099         * expr.c (compress_float_constant): Likewise.
2100         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2101         * ifcvt.c (noce_try_sign_mask): Likewise.
2102         * loop-doloop.c (doloop_optimize): Likewise.
2103         * loop-invariant.c (create_new_invariant): Likewise.
2104         * lower-subreg.c (shift_cost, compute_costs): Likewise.
2105         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2106         lshift_cheap_p): Likewise.
2107         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2108         try_replace_in_use, reload_cse_move2add): Likewise.
2109         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2110         Likewise.
2111         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2112         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2113         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2114         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2115         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2116         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
2117         to rtx_cost calls.
2118         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2119         * config/arc/arc.c (arc_rtx_costs): Likewise.
2120         * config/arm/arm.c (arm_rtx_costs): Likewise.
2121         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2122         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2123         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2124         * config/cris/cris.c (cris_rtx_costs): Likewise.
2125         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2126         * config/frv/frv.c (frv_rtx_costs): Likewise.
2127         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2128         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2129         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2130         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2131         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2132         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2133         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2134         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2135         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2136         * config/mep/mep.c (mep_rtx_cost): Likewise.
2137         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2138         * config/mips/mips.c (mips_rtx_costs): Likewise.
2139         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2140         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2141         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2142         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2143         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2144         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2145         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2146         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2147         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2148         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2149         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2150         * config/s390/s390.c (s390_rtx_costs): Likewise.
2151         * config/sh/sh.c (sh_rtx_costs): Likewise.
2152         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2153         * config/spu/spu.c (spu_rtx_costs): Likewise.
2154         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2155         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2156         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2157         * config/v850/v850.c (v850_rtx_costs): Likewise.
2158         * config/vax/vax.c (vax_rtx_costs): Likewise.
2159         * config/visium/visium.c (visium_rtx_costs): Likewise.
2160         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2161         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2162         "code" param, and pass as outer_code to first rtx_cost call.  Pass
2163         mode to rtx_cost calls.
2164         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2165         calls.
2166         (aarch64_rtx_costs_wrapper): Update.
2167         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2168         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2169         rtx_cost calls.
2170         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2171         and rtx_cost calls.
2172         (avr_operand_rtx_cost): Similarly.
2173         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2174         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2175         * config/mips/mips.c (mips_stack_address_p): Comment typo.
2176         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2177         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2178         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2179         rtx_cost.
2180         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2181         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2182         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2183         * doc/tm.texi: Regenerate.
2184
2185 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
2186
2187         * tree-core.h: Include symtab.h.
2188         * rtl.h: Include hard-reg-set.h but not flags.h.
2189         (HARD_CONST): Remove condition compilation involving HARD_CONST since
2190         hard-reg-set.h is always included.
2191         * regs.h: Don't include hard-reg-set.h or rtl.h.
2192         * cfg.h: Include dominance.h.
2193         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2194         * backend.h: New.  Aggregate commonly used backend header files.
2195         * gimple-ssa.h: Don't include tree-hasher.h.
2196         * ssa.h: New.  Aggregate commonly used SSA header files.
2197         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2198         * sel-sched-ir.h: Flatten includes.
2199         * lra-int.h: Flatten completely.
2200         * sel-sched-dump.h: Flatten includes.
2201         * ira-int.h: Flatten includes.
2202         * gimple-streamer.h: Remove all includes.
2203         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2204         * resource.h: Flatten hard-reg-set.h and df.h.
2205         * sched-int.h: Flatten insn-arrt.h and df.h.
2206         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2207         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2208         * genattrtab.c (write_header): Adjust generated includes.
2209         * genautomata.c (main): Likewise.
2210         * genconditions.c (write-header): Likewise.
2211         * genemit.c (main): Likewise.
2212         * gengtype.c (open_base_files): Likewise.
2213         * genopinit.c (main): Likewise.
2214         * genoutput.c (output_prologue): Likewise.
2215         * genpeep.c (main): Likewise.
2216         * genpreds.c (write_insn_preds_c): Likewise.
2217         * genrecog.c (write_header): Likewise.
2218         * alias.c: Adjust includes.
2219         * asan.c: Likewise.
2220         * attribs.c: Likewise.
2221         * auto-inc-dec.c: Likewise.
2222         * auto-profile.c: Likewise.
2223         * bb-reorder.c: Likewise.
2224         * bt-load.c: Likewise.
2225         * builtins.c: Likewise.
2226         * caller-save.c: Likewise.
2227         * calls.c: Likewise.
2228         * ccmp.c: Likewise.
2229         * cfg.c: Likewise.
2230         * cfganal.c: Likewise.
2231         * cfgbuild.c: Likewise.
2232         * cfgcleanup.c: Likewise.
2233         * cfgexpand.c: Likewise.
2234         * cfghooks.c: Likewise.
2235         * cfgloop.c: Likewise.
2236         * cfgloopanal.c: Likewise.
2237         * cfgloopmanip.c: Likewise.
2238         * cfgrtl.c: Likewise.
2239         * cgraph.c: Likewise.
2240         * cgraphbuild.c: Likewise.
2241         * cgraphclones.c: Likewise.
2242         * cgraphunit.c: Likewise.
2243         * cilk-common.c: Likewise.
2244         * combine-stack-adj.c: Likewise.
2245         * combine.c: Likewise.
2246         * compare-elim.c: Likewise.
2247         * convert.c: Likewise.
2248         * coverage.c: Likewise.
2249         * cppbuiltin.c: Likewise.
2250         * cprop.c: Likewise.
2251         * cse.c: Likewise.
2252         * cselib.c: Likewise.
2253         * data-streamer-in.c: Likewise.
2254         * data-streamer-out.c: Likewise.
2255         * data-streamer.c: Likewise.
2256         * dbxout.c: Likewise.
2257         * dce.c: Likewise.
2258         * ddg.c: Likewise.
2259         * debug.c: Likewise.
2260         * df-core.c: Likewise.
2261         * df-problems.c: Likewise.
2262         * df-scan.c: Likewise.
2263         * dfp.c: Likewise.
2264         * dojump.c: Likewise.
2265         * dominance.c: Likewise.
2266         * domwalk.c: Likewise.
2267         * double-int.c: Likewise.
2268         * dse.c: Likewise.
2269         * dumpfile.c: Likewise.
2270         * dwarf2asm.c: Likewise.
2271         * dwarf2cfi.c: Likewise.
2272         * dwarf2out.c: Likewise.
2273         * emit-rtl.c: Likewise.
2274         * et-forest.c: Likewise.
2275         * except.c: Likewise.
2276         * explow.c: Likewise.
2277         * expmed.c: Likewise.
2278         * expr.c: Likewise.
2279         * final.c: Likewise.
2280         * fixed-value.c: Likewise.
2281         * fold-const.c: Likewise.
2282         * function.c: Likewise.
2283         * fwprop.c: Likewise.
2284         * gcc-plugin.h: Likewise.
2285         * gcse-common.c: Likewise.
2286         * gcse.c: Likewise.
2287         * generic-match-head.c: Likewise.
2288         * ggc-page.c: Likewise.
2289         * gimple-builder.c: Likewise.
2290         * gimple-expr.c: Likewise.
2291         * gimple-fold.c: Likewise.
2292         * gimple-iterator.c: Likewise.
2293         * gimple-low.c: Likewise.
2294         * gimple-match-head.c: Likewise.
2295         * gimple-pretty-print.c: Likewise.
2296         * gimple-ssa-isolate-paths.c: Likewise.
2297         * gimple-ssa-strength-reduction.c: Likewise.
2298         * gimple-streamer-in.c: Likewise.
2299         * gimple-streamer-out.c: Likewise.
2300         * gimple-walk.c: Likewise.
2301         * gimple.c: Likewise.
2302         * gimplify-me.c: Likewise.
2303         * gimplify.c: Likewise.
2304         * godump.c: Likewise.
2305         * graph.c: Likewise.
2306         * graphite-blocking.c: Likewise.
2307         * graphite-dependences.c: Likewise.
2308         * graphite-interchange.c: Likewise.
2309         * graphite-isl-ast-to-gimple.c: Likewise.
2310         * graphite-optimize-isl.c: Likewise.
2311         * graphite-poly.c: Likewise.
2312         * graphite-scop-detection.c: Likewise.
2313         * graphite-sese-to-poly.c: Likewise.
2314         * graphite.c: Likewise.
2315         * haifa-sched.c: Likewise.
2316         * hw-doloop.c: Likewise.
2317         * ifcvt.c: Likewise.
2318         * init-regs.c: Likewise.
2319         * internal-fn.c: Likewise.
2320         * ipa-chkp.c: Likewise.
2321         * ipa-comdats.c: Likewise.
2322         * ipa-cp.c: Likewise.
2323         * ipa-devirt.c: Likewise.
2324         * ipa-icf-gimple.c: Likewise.
2325         * ipa-icf.c: Likewise.
2326         * ipa-inline-analysis.c: Likewise.
2327         * ipa-inline-transform.c: Likewise.
2328         * ipa-inline.c: Likewise.
2329         * ipa-polymorphic-call.c: Likewise.
2330         * ipa-profile.c: Likewise.
2331         * ipa-prop.c: Likewise.
2332         * ipa-pure-const.c: Likewise.
2333         * ipa-ref.c: Likewise.
2334         * ipa-reference.c: Likewise.
2335         * ipa-split.c: Likewise.
2336         * ipa-utils.c: Likewise.
2337         * ipa-visibility.c: Likewise.
2338         * ipa.c: Likewise.
2339         * ira-build.c: Likewise.
2340         * ira-color.c: Likewise.
2341         * ira-conflicts.c: Likewise.
2342         * ira-costs.c: Likewise.
2343         * ira-emit.c: Likewise.
2344         * ira-lives.c: Likewise.
2345         * ira.c: Likewise.
2346         * jump.c: Likewise.
2347         * langhooks.c: Likewise.
2348         * lcm.c: Likewise.
2349         * loop-doloop.c: Likewise.
2350         * loop-init.c: Likewise.
2351         * loop-invariant.c: Likewise.
2352         * loop-iv.c: Likewise.
2353         * loop-unroll.c: Likewise.
2354         * lower-subreg.c: Likewise.
2355         * lra-assigns.c: Likewise.
2356         * lra-coalesce.c: Likewise.
2357         * lra-constraints.c: Likewise.
2358         * lra-eliminations.c: Likewise.
2359         * lra-lives.c: Likewise.
2360         * lra-remat.c: Likewise.
2361         * lra-spills.c: Likewise.
2362         * lra.c: Likewise.
2363         * lto-cgraph.c: Likewise.
2364         * lto-compress.c: Likewise.
2365         * lto-opts.c: Likewise.
2366         * lto-section-in.c: Likewise.
2367         * lto-section-out.c: Likewise.
2368         * lto-streamer-in.c: Likewise.
2369         * lto-streamer-out.c: Likewise.
2370         * lto-streamer.c: Likewise.
2371         * mcf.c: Likewise.
2372         * mode-switching.c: Likewise.
2373         * modulo-sched.c: Likewise.
2374         * omega.c: Likewise.
2375         * omp-low.c: Likewise.
2376         * optabs.c: Likewise.
2377         * opts-global.c: Likewise.
2378         * passes.c: Likewise.
2379         * plugin.c: Likewise.
2380         * postreload-gcse.c: Likewise.
2381         * postreload.c: Likewise.
2382         * predict.c: Likewise.
2383         * print-rtl.c: Likewise.
2384         * print-tree.c: Likewise.
2385         * profile.c: Likewise.
2386         * real.c: Likewise.
2387         * realmpfr.c: Likewise.
2388         * recog.c: Likewise.
2389         * ree.c: Likewise.
2390         * reg-stack.c: Likewise.
2391         * regcprop.c: Likewise.
2392         * reginfo.c: Likewise.
2393         * regrename.c: Likewise.
2394         * regstat.c: Likewise.
2395         * reload.c: Likewise.
2396         * reload1.c: Likewise.
2397         * reorg.c: Likewise.
2398         * resource.c: Likewise.
2399         * rtl-chkp.c: Likewise.
2400         * rtlanal.c: Likewise.
2401         * rtlhooks.c: Likewise.
2402         * sanopt.c: Likewise.
2403         * sched-deps.c: Likewise.
2404         * sched-ebb.c: Likewise.
2405         * sched-rgn.c: Likewise.
2406         * sched-vis.c: Likewise.
2407         * sdbout.c: Likewise.
2408         * sel-sched-dump.c: Likewise.
2409         * sel-sched-ir.c: Likewise.
2410         * sel-sched.c: Likewise.
2411         * sese.c: Likewise.
2412         * shrink-wrap.c: Likewise.
2413         * simplify-rtx.c: Likewise.
2414         * stack-ptr-mod.c: Likewise.
2415         * stmt.c: Likewise.
2416         * stor-layout.c: Likewise.
2417         * store-motion.c: Likewise.
2418         * stringpool.c: Likewise.
2419         * symtab.c: Likewise.
2420         * target-globals.c: Likewise.
2421         * targhooks.c: Likewise.
2422         * toplev.c: Likewise.
2423         * tracer.c: Likewise.
2424         * trans-mem.c: Likewise.
2425         * tree-affine.c: Likewise.
2426         * tree-browser.c: Likewise.
2427         * tree-call-cdce.c: Likewise.
2428         * tree-cfg.c: Likewise.
2429         * tree-cfgcleanup.c: Likewise.
2430         * tree-chkp-opt.c: Likewise.
2431         * tree-chkp.c: Likewise.
2432         * tree-chrec.c: Likewise.
2433         * tree-complex.c: Likewise.
2434         * tree-data-ref.c: Likewise.
2435         * tree-dfa.c: Likewise.
2436         * tree-diagnostic.c: Likewise.
2437         * tree-dump.c: Likewise.
2438         * tree-eh.c: Likewise.
2439         * tree-emutls.c: Likewise.
2440         * tree-if-conv.c: Likewise.
2441         * tree-inline.c: Likewise.
2442         * tree-into-ssa.c: Likewise.
2443         * tree-iterator.c: Likewise.
2444         * tree-loop-distribution.c: Likewise.
2445         * tree-nested.c: Likewise.
2446         * tree-nrv.c: Likewise.
2447         * tree-object-size.c: Likewise.
2448         * tree-outof-ssa.c: Likewise.
2449         * tree-parloops.c: Likewise.
2450         * tree-phinodes.c: Likewise.
2451         * tree-predcom.c: Likewise.
2452         * tree-pretty-print.c: Likewise.
2453         * tree-profile.c: Likewise.
2454         * tree-scalar-evolution.c: Likewise.
2455         * tree-sra.c: Likewise.
2456         * tree-ssa-address.c: Likewise.
2457         * tree-ssa-alias.c: Likewise.
2458         * tree-ssa-ccp.c: Likewise.
2459         * tree-ssa-coalesce.c: Likewise.
2460         * tree-ssa-copy.c: Likewise.
2461         * tree-ssa-copyrename.c: Likewise.
2462         * tree-ssa-dce.c: Likewise.
2463         * tree-ssa-dom.c: Likewise.
2464         * tree-ssa-dse.c: Likewise.
2465         * tree-ssa-forwprop.c: Likewise.
2466         * tree-ssa-ifcombine.c: Likewise.
2467         * tree-ssa-live.c: Likewise.
2468         * tree-ssa-loop-ch.c: Likewise.
2469         * tree-ssa-loop-im.c: Likewise.
2470         * tree-ssa-loop-ivcanon.c: Likewise.
2471         * tree-ssa-loop-ivopts.c: Likewise.
2472         * tree-ssa-loop-manip.c: Likewise.
2473         * tree-ssa-loop-niter.c: Likewise.
2474         * tree-ssa-loop-prefetch.c: Likewise.
2475         * tree-ssa-loop-unswitch.c: Likewise.
2476         * tree-ssa-loop.c: Likewise.
2477         * tree-ssa-math-opts.c: Likewise.
2478         * tree-ssa-operands.c: Likewise.
2479         * tree-ssa-phiopt.c: Likewise.
2480         * tree-ssa-phiprop.c: Likewise.
2481         * tree-ssa-pre.c: Likewise.
2482         * tree-ssa-propagate.c: Likewise.
2483         * tree-ssa-reassoc.c: Likewise.
2484         * tree-ssa-sccvn.c: Likewise.
2485         * tree-ssa-scopedtables.c: Likewise.
2486         * tree-ssa-sink.c: Likewise.
2487         * tree-ssa-strlen.c: Likewise.
2488         * tree-ssa-structalias.c: Likewise.
2489         * tree-ssa-tail-merge.c: Likewise.
2490         * tree-ssa-ter.c: Likewise.
2491         * tree-ssa-threadedge.c: Likewise.
2492         * tree-ssa-threadupdate.c: Likewise.
2493         * tree-ssa-uncprop.c: Likewise.
2494         * tree-ssa-uninit.c: Likewise.
2495         * tree-ssa.c: Likewise.
2496         * tree-ssanames.c: Likewise.
2497         * tree-stdarg.c: Likewise.
2498         * tree-streamer-in.c: Likewise.
2499         * tree-streamer-out.c: Likewise.
2500         * tree-streamer.c: Likewise.
2501         * tree-switch-conversion.c: Likewise.
2502         * tree-tailcall.c: Likewise.
2503         * tree-vect-data-refs.c: Likewise.
2504         * tree-vect-generic.c: Likewise.
2505         * tree-vect-loop-manip.c: Likewise.
2506         * tree-vect-loop.c: Likewise.
2507         * tree-vect-patterns.c: Likewise.
2508         * tree-vect-slp.c: Likewise.
2509         * tree-vect-stmts.c: Likewise.
2510         * tree-vectorizer.c: Likewise.
2511         * tree-vrp.c: Likewise.
2512         * tree.c: Likewise.
2513         * tsan.c: Likewise.
2514         * ubsan.c: Likewise.
2515         * valtrack.c: Likewise.
2516         * value-prof.c: Likewise.
2517         * var-tracking.c: Likewise.
2518         * varasm.c: Likewise.
2519         * varpool.c: Likewise.
2520         * vmsdbgout.c: Likewise.
2521         * vtable-verify.c: Likewise.
2522         * web.c: Likewise.
2523         * wide-int.cc: Likewise.
2524         * xcoffout.c: Likewise.
2525         * config/aarch64/aarch64-builtins.c: Likewise.
2526         * config/aarch64/aarch64.c: Likewise.
2527         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2528         * config/alpha/alpha.c: Likewise.
2529         * config/arc/arc.c: Likewise.
2530         * config/arm/aarch-common.c: Likewise.
2531         * config/arm/arm-builtins.c: Likewise.
2532         * config/arm/arm-c.c: Likewise.
2533         * config/arm/arm.c: Likewise.
2534         * config/avr/avr-c.c: Likewise.
2535         * config/avr/avr-log.c: Likewise.
2536         * config/avr/avr.c: Likewise.
2537         * config/bfin/bfin.c: Likewise.
2538         * config/c6x/c6x.c: Likewise.
2539         * config/cr16/cr16.c: Likewise.
2540         * config/cris/cris.c: Likewise.
2541         * config/darwin-c.c: Likewise.
2542         * config/darwin.c: Likewise.
2543         * config/epiphany/epiphany.c: Likewise.
2544         * config/epiphany/mode-switch-use.c: Likewise.
2545         * config/epiphany/resolve-sw-modes.c: Likewise.
2546         * config/fr30/fr30.c: Likewise.
2547         * config/frv/frv.c: Likewise.
2548         * config/ft32/ft32.c: Likewise.
2549         * config/h8300/h8300.c: Likewise.
2550         * config/i386/i386-c.c: Likewise.
2551         * config/i386/i386.c: Likewise.
2552         * config/i386/msformat-c.c: Likewise.
2553         * config/i386/winnt-cxx.c: Likewise.
2554         * config/i386/winnt-stubs.c: Likewise.
2555         * config/i386/winnt.c: Likewise.
2556         * config/ia64/ia64-c.c: Likewise.
2557         * config/ia64/ia64.c: Likewise.
2558         * config/iq2000/iq2000.c: Likewise.
2559         * config/lm32/lm32.c: Likewise.
2560         * config/m32c/m32c-pragma.c: Likewise.
2561         * config/m32c/m32c.c: Likewise.
2562         * config/m32r/m32r.c: Likewise.
2563         * config/m68k/m68k.c: Likewise.
2564         * config/mcore/mcore.c: Likewise.
2565         * config/mep/mep-pragma.c: Likewise.
2566         * config/mep/mep.c: Likewise.
2567         * config/microblaze/microblaze-c.c: Likewise.
2568         * config/microblaze/microblaze.c: Likewise.
2569         * config/mips/mips.c: Likewise.
2570         * config/mmix/mmix.c: Likewise.
2571         * config/mn10300/mn10300.c: Likewise.
2572         * config/moxie/moxie.c: Likewise.
2573         * config/msp430/msp430-c.c: Likewise.
2574         * config/msp430/msp430.c: Likewise.
2575         * config/nds32/nds32-cost.c: Likewise.
2576         * config/nds32/nds32-fp-as-gp.c: Likewise.
2577         * config/nds32/nds32-intrinsic.c: Likewise.
2578         * config/nds32/nds32-isr.c: Likewise.
2579         * config/nds32/nds32-md-auxiliary.c: Likewise.
2580         * config/nds32/nds32-memory-manipulation.c: Likewise.
2581         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2582         * config/nds32/nds32-predicates.c: Likewise.
2583         * config/nds32/nds32.c: Likewise.
2584         * config/nios2/nios2.c: Likewise.
2585         * config/nvptx/nvptx.c: Likewise.
2586         * config/pa/pa.c: Likewise.
2587         * config/pdp11/pdp11.c: Likewise.
2588         * config/rl78/rl78-c.c: Likewise.
2589         * config/rl78/rl78.c: Likewise.
2590         * config/rs6000/rs6000-c.c: Likewise.
2591         * config/rs6000/rs6000.c: Likewise.
2592         * config/rx/rx.c: Likewise.
2593         * config/s390/s390-c.c: Likewise.
2594         * config/s390/s390.c: Likewise.
2595         * config/sh/sh-c.c: Likewise.
2596         * config/sh/sh-mem.cc: Likewise.
2597         * config/sh/sh.c: Likewise.
2598         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2599         * config/sh/sh_treg_combine.cc: Likewise.
2600         * config/sol2-c.c: Likewise.
2601         * config/sol2-cxx.c: Likewise.
2602         * config/sol2-stubs.c: Likewise.
2603         * config/sol2.c: Likewise.
2604         * config/sparc/sparc-c.c: Likewise.
2605         * config/sparc/sparc.c: Likewise.
2606         * config/spu/spu-c.c: Likewise.
2607         * config/spu/spu.c: Likewise.
2608         * config/stormy16/stormy16.c: Likewise.
2609         * config/tilegx/mul-tables.c: Likewise.
2610         * config/tilegx/tilegx-c.c: Likewise.
2611         * config/tilegx/tilegx.c: Likewise.
2612         * config/tilepro/mul-tables.c: Likewise.
2613         * config/tilepro/tilepro-c.c: Likewise.
2614         * config/tilepro/tilepro.c: Likewise.
2615         * config/v850/v850-c.c: Likewise.
2616         * config/v850/v850.c: Likewise.
2617         * config/vax/vax.c: Likewise.
2618         * config/visium/visium.c: Likewise.
2619         * config/vms/vms-c.c: Likewise.
2620         * config/vms/vms.c: Likewise.
2621         * config/vxworks.c: Likewise.
2622         * config/xtensa/xtensa.c: Likewise.
2623
2624 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
2625
2626         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
2627         Remove operand constraints.  Change operand 2 predicate to
2628         nonmemory operand.  Limit const_int values to mode bitsize.  Only
2629         allow const_int values less than 32 when optimizing for size.
2630         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
2631         Remove operand constraints.
2632         (*bt<mode>): Use SImode for const_int values less than 32.
2633         (regmode): Remove mode attribute.
2634
2635 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
2636
2637         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2638         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
2639           moxie_legitimate_address_p): New functions.
2640           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2641
2642 2015-07-07  Tom de Vries  <tom@codesourcery.com>
2643
2644         PR tree-optimization/66642
2645         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
2646         header comment.  Rename split_edge variable to edge_at_split.  Split
2647         exit edge to create new loop exit bb.  Insert loop exit phis in new
2648         loop exit bb.
2649
2650 2015-07-07  Tom de Vries  <tom@codesourcery.com>
2651
2652         * tree-cfg.c (get_virtual_phi): New function.
2653         * tree-cfg.h (get_virtual_phi): Declare.
2654         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
2655         (rewrite_virtuals_into_loop_closed_ssa): New function.
2656         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
2657         Declare.
2658         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
2659         (transform_to_exit_first_loop_alt): Use
2660         rewrite_virtuals_into_loop_closed_ssa.
2661
2662 2015-07-07  Richard Biener  <rguenther@suse.de>
2663
2664         * fold-const.c (fold_binary_loc): Move
2665         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
2666         * match.pd: ... here.
2667         Add (X * C1) % C2 -> 0 simplification pattern derived from
2668         extract_muldiv_1.
2669
2670 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2671
2672         PR target/66780
2673         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
2674         change for target/65249.
2675
2676 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
2677
2678         * symtab.c (address_matters_1): Fix typo in comment above.
2679         (can_increase_alignment_p): Likewise.
2680
2681 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2682
2683         * function.c (free_after_compilation): Clear PROP_cfg in
2684         f->curr_properties.
2685
2686 2015-07-07  Richard Biener  <rguenther@suse.de>
2687
2688         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
2689         add which use to.
2690         (add_control_edge): Remove excessive vertical space in dumping.
2691         (process_ssa_edge_worklist): Simulate at most one statement and
2692         return whether we did.  Do not simulate PHIs if they are in a
2693         BB not yet simulated.
2694         (ssa_propagate): Adjust to always drain the BB worklist whenever
2695         a BB is available there, likewise the VARYING edges list before
2696         the interesting edge list.
2697
2698 2015-07-07  Christian Bruel  <christian.bruel@st.com>
2699
2700         PR target/52144
2701         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
2702
2703 2015-07-07  Richard Biener  <rguenther@suse.de>
2704
2705         PR middle-end/66739
2706         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
2707         A - B.
2708
2709 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
2710
2711         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
2712         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
2713         Copy operand 0 to a temporary if !ext_register_operand.  Remove
2714         ancient extract_bit_field workaround.
2715         (insv<mode>_1): Rename from mov<mode>_insv_1.
2716         (*insvqi): Rename from *movqi_insv_2.
2717         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
2718         for renamed insvsi_1.
2719         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
2720
2721 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2722
2723         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
2724         call to nvptx_reorg_subreg.
2725
2726 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
2727
2728         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
2729         * graphite-dependencies.c, graphite-interchange.c,
2730         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
2731         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
2732         Likewise.
2733
2734 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
2735
2736         * match.pd: Remove element_mode inside HONOR_*.
2737         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
2738         (~X | X -> -1, ~X ^ X -> -1): Merge.
2739         * tree.c (build_each_one_cst): New function.
2740         * tree.h (build_each_one_cst): Likewise.
2741
2742 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2743
2744         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2745         PROCESSOR_IAMCU.
2746
2747 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
2748
2749         * config.gcc <mips*-*-*>: Add fused-madd.opt.
2750         * config/mips/mips.opt (mfused-madd): Remove.
2751         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
2752         * config/mips/mips.h (TARGET_MIPS8000): New.
2753         (ISA_HAS_FP_MADD4_MSUB4): Remove.
2754         (ISA_HAS_FP_MADDF_MSUBF): Remove.
2755         (ISA_HAS_FP_MADD3_MSUB3): Remove.
2756         (ISA_HAS_NMADD4_NMSUB4): Remove.
2757         (ISA_HAS_NMADD3_NMSUB3): Remove.
2758         (ISA_HAS_FUSED_MADD4): New.
2759         (ISA_HAS_UNFUSED_MADD4): New.
2760         (ISA_HAS_FUSED_MADDF): New.
2761         (ISA_HAS_FUSED_MADD3): New.
2762         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
2763         (*fma<mode>4_madd3) New.
2764         (*fma<mode>4_madd4) New.
2765         (*fma<mode>4_maddf) New.
2766         (fms<mode>4) New.
2767         (*fms<mode>4_msub3) New.
2768         (*fms<mode>4_msub4) New.
2769         (fnma<mode>4) New.
2770         (*fnma<mode>4_nmadd3) New.
2771         (*fnma<mode>4_nmadd4) New.
2772         (fnms<mode>4) New.
2773         (*fnms<mode>4_nmsub3) New.
2774         (*fnms<mode>4_nmsub4) New.
2775         (*madd4<mode>) Modify to be unfused only.
2776         (*msub4<mode>) Modify to be unfused only.
2777         (*nmadd4<mode>) Modify to be unfused only.
2778         (*nmsub4<mode>) Modify to be unfused only.
2779         (*madd3<mode>) Remove.
2780         (*msub3<mode>) Remove.
2781         (*nmadd3<mode>) Remove.
2782         (*nmsub3<mode>) Remove.
2783         (*nmadd3<mode>_fastmath) Remove.
2784         (*nmsub3<mode>_fastmath) Remove.
2785         (*nmadd4<mode>_fastmath) Update condition.
2786         (*nmsub4<mode>_fastmath) Update condition.
2787
2788 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
2789
2790         PR target/65956
2791         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
2792         alignment attribute, exploring one level down for records and arrays.
2793
2794 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
2795
2796         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
2797         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
2798         Copy operand 1 to a temporary if !ext_register_operand.  Remove
2799         ancient extract_bit_field workaround.
2800         (*extv<mode>): Rename from *mov<mode>_extv_1.
2801         (*extvqi): Rename from *movqi_extv_1.
2802         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
2803         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
2804         to a temporary if !ext_register_operand.  Remove ancient
2805         extract_bit_field workaround.
2806         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
2807         (*extzvqi): Rename from *movqi_extzv_2.
2808         (*testqi_ext_3): Remove modes from const_int_operand predicated
2809         operands.  Add "n" constraint.
2810         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
2811         operand.  Add "J" constraint.
2812         (*btsq, *btrq, *btcq peephole2s): Remove mode from
2813         const_0_to_63 predicated operand.
2814         (regmode): New insn attribute.
2815         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
2816         to nonmemory_operand.  Use regmode insn attribute.
2817         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
2818         (*jcc_bt<mode>_mask): Remove mode from operand 3.
2819         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
2820         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
2821         operands.  Use "N" constraint instead of "n".
2822
2823 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
2824
2825         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
2826
2827 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2828
2829         PR target/66749
2830         * config/i386/i386.c (iamcu_cost): New.
2831         (m_IAMCU): Likewise.
2832         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
2833         (processor_target_table): Add an entry for "iamcu".
2834         (processor_alias_table): Likewise.
2835         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
2836         (ix86_adjust_cost): Likewise.
2837         (ia32_multipass_dfa_lookahead): Likewise.
2838         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
2839         * config/i386/x86-tune.def: Updated for m_IAMCU.
2840
2841 2015-07-06  Richard Biener  <rguenther@suse.de>
2842
2843         PR tree-optimization/66772
2844         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
2845         values are available in the PHI node BB when there are
2846         still unexecutable edges.
2847
2848 2015-07-06  Richard Biener  <rguenther@suse.de>
2849
2850         PR tree-optimization/66767
2851         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
2852         Make sure to build the alignment test on a SSA name without
2853         final alignment info valid only if the alignment test
2854         evaluates to true.
2855
2856 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2857
2858         PR target/66620
2859         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
2860         loop start when inserting LSETUP.
2861
2862 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2863
2864         PR target/53383
2865         * config/i386/i386.c (ix86_option_override_internal): Allow
2866         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
2867
2868 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2869
2870         * read-md.c (decimal_string): Rename to ...
2871         (md_decimal_string): ... this.
2872         (handle_enum): Reflect this.
2873
2874 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2875
2876         PR target/66731
2877         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
2878
2879 2015-07-06  Richard Biener  <rguenther@suse.de>
2880
2881         PR middle-end/66759
2882         * match.pd: Add missing constraint of y to REAL_CST in
2883         REAL_CST - x CMP y to y - CST CMP x simplification.
2884
2885 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
2886
2887         PR tree-optimization/66757
2888         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
2889
2890 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
2891             Sandra Loosemore <sandra@codesourcery.com>
2892
2893         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
2894         Delete extern declaration.
2895         (gprel_constant_p): Add extern declaration.
2896         * config/nios2/constraints.md ("S"): Use gprel_constant_p
2897         instead of nios2_symbol_ref_in_small_data_p.
2898         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
2899         (nios2_symbol_ref_in_small_data_p): Make static.
2900         (gprel_constant_p): Make non-static.
2901
2902 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
2903
2904         * doc/fragments.texi (Target Fragment): Convert debian.org
2905         link to use https.
2906         * doc/install.texi (Configuration): Ditto.
2907
2908 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
2909
2910         PR tree-optimization/66718
2911         * tree-vect-stmts.c (vectorizable_call): Replace uses of
2912         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
2913
2914         PR tree-optimization/66718
2915         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
2916         vectorizable_load, vectorizable_condition): Move vectype,
2917         nunits, ncopies computation after checking what kind of statement
2918         stmt is.
2919
2920 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2921
2922         * target-insns.def (extv, extzv, insv): New targetm instruction
2923         patterns.
2924         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
2925         interface.
2926         * recog.c (simplify_while_replacing): Likewise.
2927
2928 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2929
2930         * target-insns.def (doloop_begin, doloop_end): New targetm
2931         instruction patterns.
2932         * loop-init.c: Include target.h.
2933         (pass_loop2::gate): Use the new targetm patterns instead of
2934         HAVE_*/gen_* interface.
2935         (pass_rtl_doloop::gate): Likewise.
2936         (pass_rtl_doloop::execute): Remove preprocessor condition.
2937         * hw-doloop.c: Build unconditionally.
2938         * loop-doloop.c: Likewise.
2939         (doloop_optimize): Use the new targetm patterns instead of
2940         HAVE_*/gen_* interface.
2941         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
2942         * modulo-sched.c (doloop_register_get): Likewise.
2943
2944 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2945
2946         * target-insns.def (clear_cache): New targetm instruction pattern.
2947         * builtins.c (expand_builtin___clear_cache): Use it instead of
2948         HAVE_*/gen_* interface.
2949
2950 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2951
2952         * target-insns.def (allocate_stack, check_stack, probe_stack)
2953         (probe_stack_address, split_stack_prologue, split_stack_space_check):
2954         New targetm instruction patterns.
2955         * explow.c (allocate_dynamic_stack_space): Use them instead of
2956         HAVE_*/gen_* interface.
2957         (emit_stack_probe): Likewise.
2958         (probe_stack_range): Likewise.
2959         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2960
2961 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2962
2963         * target-insns.def (stack_protect_set, stack_protect_test): New
2964         targetm instruction patterns.
2965         * cfgexpand.c (stack_protect_prologue): Use them instead of
2966         HAVE_*/gen_* interface.
2967         * function.c (stack_protect_epilogue): Likewise.
2968
2969 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2970
2971         * expr.h (gen_move_insn_uncast): Delete.
2972         * expr.c (gen_move_insn_uncast): Delete.
2973
2974 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2975
2976         * target-insns.def (restore_stack_block, restore_stack_function)
2977         (restore_stack_nonlocal, save_stack_block, save_stack_function)
2978         (save_stack_nonlocal): New targetm instruction patterns.
2979         * builtins.c (expand_builtin_apply): Use them instead of
2980         HAVE_*/gen_* interface.
2981         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
2982
2983 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2984
2985         * target-insns.def (trap): New targetm instruction pattern.
2986         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
2987         interface.
2988         * explow.c (allocate_dynamic_stack_space): Likewise.
2989         * ifcvt.c (find_if_header): Likewise.
2990
2991 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2992
2993         * target-insns.def (prefetch): New targetm instruction pattern.
2994         * tree-ssa-loop-prefetch.c: Include targeth.
2995         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
2996         of HAVE_*/gen_* interface.
2997         * builtins.c (expand_builtin_prefetch): Likewise.
2998         * toplev.c (process_options): Likewise.
2999
3000 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3001
3002         * target-insns.def (untyped_call, untyped_return): New targetm
3003         instruction patterns.
3004         * builtins.c (expand_builtin_apply): Use them instead of
3005         HAVE_*/gen_* interface.
3006         (result_vector): Define unconditionally.
3007
3008 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3009
3010         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3011         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3012         (nonlocal_goto_receiver): New targetm instruction patterns.
3013         * builtins.c (expand_builtin_setjmp_setup): Use them instead
3014         of HAVE_*/gen_* interface.
3015         (expand_builtin_setjmp_receiver): Likewise.
3016         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3017         * except.c (expand_dw2_landing_pad_for_region): Likewise.
3018
3019 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
3020
3021         * target.def: Add code_for_* hooks.
3022         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3023         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3024         * target-insns.def (casesi, tablejump): New targetm instruction
3025         patterns.
3026         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3027         (do_tablejump): Likewise.
3028         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3029         (expand_sjlj_dispatch_table): Likewise.
3030         * targhooks.c (default_case_values_threshold): Likewise.
3031
3032 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
3033
3034         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3035         Use rtx_insn * instead of rtx.
3036         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3037         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3038         (nios2_call_tls_get_addr): Likewise.
3039         (nios2_emit_expensive_div): Likewise.
3040         (nios2_emit_move_sequence): Change return type to bool.
3041         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3042         Change return type to bool.
3043
3044 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3045
3046         PR target/66747
3047         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3048
3049 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
3050
3051         PR target/66114
3052         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3053         of register_operand.  Remove constraint.
3054
3055 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
3056
3057         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3058         the first argument.
3059
3060 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
3061
3062         * attribs.c (decl_attributes): Guard inform with the return value
3063         of the preceding warning.
3064
3065 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3066
3067         * doc/invoke.texi (moverride): Move to correct section.
3068
3069 2015-07-03  Richard Biener  <rguenther@suse.de>
3070
3071         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3072         Copy from tree.c
3073         (dt_operand::gen_gimple_expr): After valueizing operands
3074         re-canonicalize operand order for commutative tree codes.
3075
3076 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3077
3078         PR target/66746.
3079         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3080         is defined.
3081         (__crc32w): Likewise.
3082         (__crc32d): Likewise.
3083         (__rdpmc): Likewise.
3084         (__rdtscp): Likewise.
3085         (_rdpmc): Likewise.
3086         (_rdtscp): Likewise.
3087         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3088         is defined.
3089
3090 2015-07-03  Richard Biener  <rguenther@suse.de>
3091
3092         * fold-const.c (fold_mathfn_compare): Remove.
3093         (fold_inf_compare): Likewise.
3094         (fold_comparison): Move floating point comparison simplifications...
3095         * match.pd: ... to patterns here.  Introduce simple_comparisons
3096         operator list and use it for patterns formerly in fold_comparison.
3097
3098 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3099
3100         PR tree-optimization/66119
3101         * toplev.c (process_options): Don't set up default values for
3102         the sra_max_scalarization_size_{speed,size} parameters.
3103         * tree-sra (analyze_all_variable_accesses): If no values
3104         have been set for the sra_max_scalarization_size_{speed,size}
3105         parameters, call get_move_ratio to get target defaults.
3106
3107 2015-07-03  Richard Biener  <rguenther@suse.de>
3108
3109         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3110         * match.pd: ... here.
3111
3112 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
3113
3114         PR target/37072
3115         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3116         is not actually the default on FreeBSD.
3117
3118 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3119
3120         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3121         definition.
3122         (CMPGE_8HI): Likewise.
3123         (CMPGE_4SI): Likewise.
3124         (CMPGE_2DI): Likewise.
3125         (CMPGE_U16QI): Likewise.
3126         (CMPGE_U8HI): Likewise.
3127         (CMPGE_U4SI): Likewise.
3128         (CMPGE_U2DI): Likewise.
3129         (CMPLE_16QI): Likewise.
3130         (CMPLE_8HI): Likewise.
3131         (CMPLE_4SI): Likewise.
3132         (CMPLE_2DI): Likewise.
3133         (CMPLE_U16QI): Likewise.
3134         (CMPLE_U8HI): Likewise.
3135         (CMPLE_U4SI): Likewise.
3136         (CMPLE_U2DI): Likewise.
3137         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3138         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3139         ALTIVEC_BUILTIN_VEC_CMPLE.
3140         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3141         floating-point vector modes.
3142         (vector_nlt<mode>): New define_expand.
3143         (vector_nltu<mode>): Likewise.
3144         (vector_ngt<mode>): Likewise.
3145         (vector_ngtu<mode>): Likewise.
3146
3147 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
3148
3149         PR rtl-optimization/66706
3150         * combine.c (make_compound_operation): If an AND of SUBREG of
3151         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3152
3153 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
3154
3155         * tree-pass.h (make_pass_ch_vect): New.
3156         * passes.def: Add pass_ch_vect just before pass_if_conversion.
3157
3158         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3159         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3160         make_pass_ch_vect): New.
3161         (pass_ch): Extend ch_base.
3162
3163         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3164         (ch_base::copy_headers): ...here.
3165
3166 2015-07-02  Richard Biener  <rguenther@suse.de>
3167
3168         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3169         * fold-const.c (get_pointer_modulus_and_residue): Remove.
3170         (fold_binary_loc): Implement (T)ptr & CST in terms of
3171         get_pointer_alignment_1.
3172         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3173         Make sure to build the alignment test on a SSA name without
3174         final alignment info valid only after the prologue.
3175
3176 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
3177
3178         * config/cris/cris.md ("epilogue"): Remove condition.
3179         ("prologue"): Ditto.
3180
3181 2015-07-02  Richard Biener  <rguenther@suse.de>
3182
3183         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3184         parameter to record a condition that is false.
3185         (record_conditions): When recording an extra NE_EXPR that is
3186         true also record a EQ_EXPR that is false.
3187
3188 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
3189
3190         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3191         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3192         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
3193         (set_iv, find_interesting_uses_address, add_candidate_1): New
3194         argument to alloc_iv.
3195         (find_interesting_uses_op, find_interesting_uses_cond): Don't
3196         duplicate struct iv.
3197         (free_loop_data): Don't free struct iv explicitly.
3198         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3199
3200 2015-07-01  DJ Delorie  <dj@redhat.com>
3201
3202         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3203         (LIB_SPEC): Add.
3204         (SUPPORTS_DISCRIMINATOR): Define.
3205
3206 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3207
3208         PR bootstrap/66685
3209         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3210         there are no CALLs in the same pattern.
3211
3212 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3213
3214         PR rtl-optimization/61047
3215         * rtlanal.c (get_initial_register_offset): New function.
3216         (rtx_addr_can_trap_p_1): Check offsets of stack references.
3217
3218 2015-07-01  Richard Biener  <rguenther@suse.de>
3219
3220         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3221         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3222         ~X CMP C -> X CMP' ~C to ...
3223         * match.pd: ... patterns here.
3224
3225 2015-07-01  Nick Clifton  <nickc@redhat.com>
3226
3227         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3228         a 16-bit value into a 20-bit memory slot.
3229
3230 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3231
3232         * doc/sourcebuild.texi (AArch64-specific attributes): Document
3233         "aarch64_tiny", "aarch64_small", "aarch64_large",
3234         "aarch64_little_endian", "aarch64_big_endian".
3235
3236 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3237
3238         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3239         Document "aarch64_small_fpic".
3240
3241 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
3242
3243         * configure.ac: Add check for aarch64 assembler -fpic relocation
3244         modifier support.
3245         * configure: Regenerate.
3246         * config.in: Regenerate.
3247         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3248         to -fPIC if not support of -fpic relocation modifier in assembler.
3249
3250 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
3251
3252         PR bootstrap/66685
3253         * rtl.c (classify_insn): Handle returns in PARALLELs.
3254
3255 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3256
3257         PR middle-end/66633
3258         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3259         to true if the function is nested and if not optimizing.
3260         (convert_local_omp_clauses): Initialize need_frame to true if the
3261         function contains nested functions and if not optimizing.
3262
3263 2015-07-01  Richard Biener  <rguenther@suse.de>
3264
3265         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3266         (X & Y) ^ Y -> ~X & Y transforms to ...
3267         * match.pd: ... here.
3268
3269 2015-07-01  Richard Biener <rguenther@suse.de>
3270
3271         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3272         of converts to avoid uninteresting noise from the conversion
3273         simplifying patterns.
3274
3275 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
3276
3277         * config/c6x/c6x.c (try_rename_operands): Do not depend on
3278         gcc_assert evaluating its argument for side-effect.
3279
3280 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3281
3282         PR target/64833
3283         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3284         flag_pic is set.
3285
3286 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3287
3288         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3289         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3290         (hash_scc): Add this_ref_p and ref_p parameters and pass them
3291         to the inner DFS walk.
3292
3293 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3294
3295         * target-insns.def (jump): New targetm instruction pattern.
3296         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3297         instead of gen_jump.
3298         (fix_up_crossing_landing_pad): Likewise.
3299         (add_labels_and_missing_jumps): Likewise.
3300         (fix_crossing_conditional_branches): Likewise.
3301         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3302         (force_nonfallthru_and_redirect): Likewise.
3303         * cse.c (cse_insn): Likewise.
3304         * expmed.c (expand_divmod): Likewise.
3305         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3306         * haifa-sched.c (init_before_recovery): Likewise.
3307         (sched_create_recovery_edges): Likewise.
3308         * ifcvt.c (find_cond_trap): Likewise.
3309         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3310         (expand_float, expand_fix): Likewise.
3311         * stmt.c (emit_jump): Likewise.
3312
3313 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3314
3315         * defaults.h (HAVE_load_multiple, gen_load_multiple)
3316         (HAVE_store_multiple, gen_store_multiple): Delete.
3317         * target-insns.def (load_multiple, store_multiple): New targetm
3318         instruction patterns.
3319         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3320         of HAVE_*/gen_* interface.
3321
3322 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3323
3324         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3325         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3326         (gen_mem_signal_fence): Delete.
3327         * target-insns.def (mem_signal_fence, mem_thread_fence)
3328         (memory_barrier): New targetm instruction patterns.
3329         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3330         interface.
3331         (expand_mem_signal_fence): Likewise.
3332
3333 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
3334
3335         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3336         * target-insns.def (epilogue, prologue, sibcall_prologue): New
3337         targetm instruction patterns.
3338         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3339         interface.
3340         * calls.c (expand_call): Likewise.
3341         * cfgrtl.c (cfg_layout_finalize): Likewise.
3342         * df-scan.c (df_get_entry_block_def_set): Likewise.
3343         (df_get_exit_block_use_set): Likewise.
3344         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3345         * final.c (final_start_function): Likewise.
3346         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3347         (reposition_prologue_and_epilogue_notes): Likewise.
3348         * reorg.c (find_end_label): Likewise.
3349         * toplev.c (process_options): Likewise.
3350
3351 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
3352
3353         * typed-splay-tree.h: New file.
3354
3355 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
3356
3357         PR debug/66691
3358         * lra-int.h (lra_substitute_pseudo): Add a parameter.
3359         (lra_substitute_pseudo_within_insn): Ditto.
3360         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
3361         of constant.
3362         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
3363         to lra_substitute_pseudo.
3364         * lra-lives.c (process_bb_lives): Add an argument to
3365         lra_substitute_pseudo_within_insn call.
3366         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3367         argument to lra_substitute_pseudo and
3368         lra_substitute_pseudo_within_insn calls.
3369         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3370
3371 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3372
3373         * configure: Regenerated.
3374
3375 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3376
3377         * config.gcc: Support i[34567]86-*-elfiamcu target.
3378         * config/i386/iamcu.h: New.
3379         * config/i386/i386.opt: Add -miamcu.
3380         * doc/invoke.texi: Document -miamcu.
3381         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
3382         off x87/MMX/SSE/AVX codegen for -miamcu.
3383         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3384         __iamcu/__iamcu__ for -miamcu.
3385         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3386         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3387         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3388         * config/i386/i386.c (ix86_option_override_internal): Ignore and
3389         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
3390         MCU by default.  Default long double to 64-bit for Intel MCU.
3391         Turn on -freg-struct-return for Intel MCU.  Issue an error when
3392         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3393         AVX is turned on.
3394         (function_arg_advance_32): Pass value whose size is no larger
3395         than 8 bytes in registers for Intel MCU.
3396         (function_arg_32): Likewise.
3397         (ix86_return_in_memory): Return value whose size is no larger
3398         than 8 bytes in registers for Intel MCU.
3399         (iamcu_alignment): New function.
3400         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3401         true.
3402         (ix86_local_alignment): Don't increase alignment for Intel MCU.
3403         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3404         true.
3405
3406 2015-06-30  Marek Polacek  <polacek@redhat.com>
3407
3408         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
3409         both operands of the resulting expression.
3410
3411         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
3412         the final expression with the operand's type and then convert
3413         it to the type of the expression.
3414
3415 2015-06-30  Richard Biener  <rguenther@suse.de>
3416
3417         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
3418         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
3419         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
3420         * match.pd: ... to patterns here.
3421
3422 2015-06-30  Richard Biener  <rguenther@suse.de>
3423
3424         PR tree-optimization/66704
3425         * tree-vect-data-refs.c (vect_setup_realignment): Use
3426         make_ssa_name for non-SSA name source.
3427
3428 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
3429
3430         PR middle-end/66702
3431         * omp-low.c (simd_clone_adjust): Handle addressable linear
3432         or uniform parameters or non-gimple type uniform parameters.
3433
3434 2015-06-30  Richard Biener  <rguenther@suse.de>
3435
3436         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
3437         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
3438         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
3439         * match.pd: ... here.
3440         Add a few cases of A - B -> A + (-B) when B "easily" negates.
3441         Move (x & y) | x -> x and friends before
3442         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
3443
3444 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3445
3446         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
3447         -mfix-ut699 is not specified.
3448         (leon3_load): Rename into...
3449         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
3450         is specified.
3451
3452 2015-06-30  Marek Polacek  <polacek@redhat.com>
3453
3454         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
3455         * match.pd: ... here.
3456
3457 2015-06-30  Richard Biener  <rguenther@suse.de>
3458
3459         * target-insns.def (canonicalize_funcptr_for_compare): Add.
3460         * fold-const.c (build_range_check): Replace uses of
3461         HAVE_canonicalize_funcptr_for_compare.
3462         (fold_widened_comparison): Likewise.
3463         (fold_sign_changed_comparison): Likewise.
3464         * dojump.c: Include "target.h".
3465         (do_compare_and_jump): Replace uses of
3466         HAVE_canonicalize_funcptr_for_compare and
3467         gen_canonicalize_funcptr_for_compare.
3468         * expr.c (do_store_flag): Likewise.
3469
3470 2015-06-30  Tom de Vries  <tom@codesourcery.com>
3471
3472         PR tree-optimization/66652
3473         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
3474         max_loop_iterations to determine if nit + 1 overflows.
3475
3476 2015-06-30  Richard Biener  <rguenther@suse.de>
3477
3478         * tree-vrp.c (register_edge_assert_for_2): Also register
3479         asserts for dominating conversion results.
3480
3481 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
3482
3483         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
3484         field in struct iv.
3485
3486 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
3487
3488         PR target/66509
3489         * configure.ac: Fix filds and fildq test for 64-bit.
3490         * configure: Regenerated.
3491
3492 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3493
3494         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
3495         (nvptx_reorg): Here.  Keep the non-subreg pieces.
3496
3497 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
3498
3499         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
3500         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
3501
3502 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
3503
3504         * config/i386/i386.md (*jcc_1): Use %! in asm template.
3505         Set attribute "length_nobnd" instead of "length".
3506         (*jcc_2): Ditto.
3507         (jump): Ditto.
3508         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
3509
3510 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
3511
3512         * config/nios2/nios2.c (nios2_delegitimize_address): Make
3513         assert less restrictive.
3514
3515 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3516
3517         PR fortran/66605
3518         * cgraphunit.c (cgraph_node::finalize_function): Do not call
3519         do_warn_unused_parameter.
3520         * function.c (do_warn_unused_parameter): Move from here.
3521         * function.h (do_warn_unused_parameter): Do not declare.
3522
3523 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
3524
3525         PR target/65697
3526         * gcc.target/arm/armv-sync-comp-swap.c: New.
3527         * gcc.target/arm/armv-sync-op-acquire.c: New.
3528         * gcc.target/arm/armv-sync-op-full.c: New.
3529         * gcc.target/arm/armv-sync-op-release.c: New.
3530
3531 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
3532
3533         PR target/65697
3534         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
3535         initial acquire barrier with final barrier.
3536
3537 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
3538
3539         PR target/65697
3540         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
3541         initial acquire barrier with final barrier.
3542
3543 2015-06-29  Richard Henderson  <rth@redhat.com>
3544
3545         * config/i386/constraints.md (Bf): New constraint.
3546         * config/i386/i386-c.c (ix86_target_macros): Define
3547         __GCC_ASM_FLAG_OUTPUTS__.
3548         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
3549         as flags outputs.
3550         * doc/extend.texi (FlagOutputOperands): Document them.
3551
3552 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
3553
3554         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
3555         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
3556         unspec name.
3557         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
3558         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
3559         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
3560         (aarch64_symbol_context): Ditto.
3561         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
3562         and use new pattern name.
3563         (aarch64_expand_mov_immediate): Ditto.
3564         (aarch64_print_operand): Ditto.
3565         (aarch64_classify_tls_symbol): Ditto.
3566
3567 2015-06-29  Marek Polacek  <polacek@redhat.com>
3568             Marc Glisse  <marc.glisse@inria.fr>
3569
3570         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
3571         * match.pd: ... pattern here.
3572
3573 2015-06-29  Tom de Vries  <tom@codesourcery.com>
3574
3575         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
3576         function structure.
3577
3578 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
3579
3580         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
3581         feature description, split out the native option, add a link to
3582         the feature documentation, rearrange and slightly rewrite text.
3583         (Aarch64 options, -mcpu): Likewise.
3584         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
3585         +rdma implies Adv. SIMD.
3586
3587 2015-06-29  Marek Polacek  <polacek@redhat.com>
3588
3589         PR c/66322
3590         * function.c (stack_protect_epilogue): Remove a cast to int.
3591         * doc/invoke.texi: Update -Wswitch-bool description.
3592
3593 2015-06-29  Richard Biener  <rguenther@suse.de>
3594
3595         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
3596         * fold-const.c (fold_binary_loc): Move &A - &B simplification
3597         via ptr_difference_const ...
3598         * match.pd: ... here.
3599         When matching (X ^ Y) == Y also match with swapped operands.
3600
3601 2015-06-29  Richard Biener  <rguenther@suse.de>
3602
3603         * lto-streamer.h (LTO_major_version): Bump to 5.
3604
3605 2015-06-29  Richard Biener  <rguenther@suse.de>
3606
3607         PR tree-optimization/66677
3608         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
3609         STMT_VINFO_VEC_STMT clobbering less strict.
3610
3611 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
3612
3613         PR middle-end/64130
3614         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
3615         division, compute max and min when value ranges for dividend and
3616         divisor are available.
3617
3618 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
3619             Sandra Loosemore <sandra@codesourcery.com>
3620
3621         * regrename.h (regrename_do_replace): Change to return bool.
3622         * regrename.c (rename_chains): Check return value of
3623         regname_do_replace.
3624         (regrename_do_replace): Re-validate the modified insns and
3625         return bool status.
3626         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3627         Update to match rename_chains changes.
3628         * config/c6x/c6x.c (try_rename_operands): Assert that
3629         regrename_do_replace returns true.
3630
3631 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
3632
3633         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
3634         operand 2 here.  Use copy_addr_to_reg to copy non-index
3635         register operand 2 to a temporary.
3636         (<mode>_stx): Ditto for operand 1.
3637         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
3638         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
3639         (ix86_store_bounds): Ditto.
3640
3641 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
3642
3643         * print-tree.c (print_node) [TREE_VEC]: Print its length.
3644
3645 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
3646
3647         * gimple.c (gimple_call_set_fndecl): Remove.
3648         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
3649         build1_loc directly instead of build_fold_addr_expr_loc.
3650
3651 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
3652
3653         * hash-map.h (hash_map::traverse): Use the definition of the
3654         Key typedef rather than the typedef itself.
3655
3656 2015-06-26  Martin Jambor  <mjambor@suse.cz>
3657
3658         PR debug/66301
3659         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
3660         NULL instead of calling dump_enabled_p.
3661
3662 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3663
3664         * config/aarch64/aarch64.opt: (override): New.
3665         * doc/invoke.texi (override): Document.
3666         * config/aarch64/aarch64.c (aarch64_flag_desc): New
3667         (aarch64_fusible_pairs): Likewise.
3668         (aarch64_tuning_flags): Likewise.
3669         (aarch64_tuning_override_function): Likewise.
3670         (aarch64_tuning_override_functions): Likewise.
3671         (aarch64_parse_one_option_token): Likewise.
3672         (aarch64_parse_boolean_options): Likewise.
3673         (aarch64_parse_fuse_string): Likewise.
3674         (aarch64_parse_tune_string): Likewise.
3675         (aarch64_parse_one_override_token): Likewise.
3676         (aarch64_parse_override_string): Likewise.
3677         (aarch64_override_options): Parse the -override string if it
3678         is present.
3679
3680 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3681
3682         * config/aarch64/aarch64-protos.h (tune_params): Remove
3683         const from members.
3684         (aarch64_tune_params): Remove const, change to no longer be
3685         a pointer.
3686         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
3687         change to no longer be a pointer, initialize to generic_tunings.
3688         (aarch64_min_divisions_for_recip_mul): Change dereference of
3689         aarch64_tune_params to member access.
3690         (aarch64_reassociation_width): Likewise.
3691         (aarch64_rtx_mult_cost): Likewise.
3692         (aarch64_address_cost): Likewise.
3693         (aarch64_branch_cost): Likewise.
3694         (aarch64_rtx_costs): Likewise.
3695         (aarch64_register_move_cost): Likewise.
3696         (aarch64_memory_move_cost): Likewise.
3697         (aarch64_sched_issue_rate): Likewise.
3698         (aarch64_builtin_vectorization_cost): Likewise.
3699         (aarch64_override_options): Take a copy of the selected tuning
3700         struct in to aarch64_tune_params, rather than just setting
3701         a pointer, change dereferences of aarch64_tune_params to member
3702         accesses.
3703         (aarch64_override_options_after_change): Change dereferences of
3704         aarch64_tune_params to member access.
3705         (aarch64_macro_fusion_p): Likewise.
3706         (aarch_macro_fusion_pair_p): Likewise.
3707         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
3708
3709 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3710
3711         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
3712         (aarch64_tune_flags): Likewise.
3713         (AARCH64_TUNE_FMA_STEERING): Likewise.
3714         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
3715         to AARCH64_FL_USE_FMA_STEERING_PASS.
3716         (cortex-a57.cortex-a53): Likewise.
3717         (cortex-a72): Use cortexa72_tunings.
3718         (cortex-a72.cortex-a53): Likewise.
3719         (exynos-m1): Likewise.
3720         * config/aarch64/aarch64-protos.h (tune_params): Add
3721         a field: extra_tuning_flags.
3722         * config/aarch64/aarch64-tuning-flags.def: New.
3723         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
3724         (aarch64_extra_tuning_flags): Likewise.
3725         (aarch64_tune_params): Declare here.
3726         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
3727         (cortexa53_tunings): Likewise.
3728         (cortexa57_tunings): Likewise.
3729         (thunderx_tunings): Likewise.
3730         (xgene1_tunings): Likewise.
3731         (cortexa72_tunings): New.
3732         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
3733          (gate): Check against aarch64_tune_params.
3734         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
3735         aarch64-protos.h.
3736
3737 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3738
3739         * config/aarch64/aarch64-fusion-pairs.def: New.
3740         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
3741         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
3742         aarch64_fusion_pairs.
3743         (AARCH64_FUSE_MOV_MOVK): Likewise.
3744         (AARCH64_FUSE_ADRP_ADD): Likewise.
3745         (AARCH64_FUSE_MOVK_MOVK): Likewise.
3746         (AARCH64_FUSE_ADRP_LDR): Likewise.
3747         (AARCH64_FUSE_CMP_BRANCH): Likewise.
3748
3749 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
3750
3751         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
3752         SYMBOL_SMALL_GOT_28K.
3753         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
3754         relocation modifiers.
3755         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
3756         (ldr_got_small_28k_<mode>): New.
3757         (ldr_got_small_28k_sidi): New.
3758         * config/aarch64/iterators.md (got_modifier): New mode iterator.
3759         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
3760         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3761         SYMBOL_SMALL_GOT_28K.
3762         (aarch64_rtx_costs): Add costs for new instruction sequences.
3763         (initialize_aarch64_code_model): Initialize new model.
3764         (aarch64_classify_symbol): Recognize new model and new symbol classification.
3765         (aarch64_asm_preferred_eh_data_format): Support new model.
3766         (aarch64_load_symref_appropriately): Generate new instruction
3767         sequences for -fpic.
3768         (TARGET_USE_PSEUDO_PIC_REG): New definition.
3769         (aarch64_use_pseudo_pic_reg): New function.
3770
3771 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
3772
3773         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3774         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
3775         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
3776         (aarch64_expand_mov_immediate): Ditto.
3777         (aarch64_print_operand): Ditto.
3778         (aarch64_classify_symbol): Ditto.
3779
3780 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
3781
3782         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
3783
3784 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
3785
3786         PR bootstrap/66638
3787         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
3788         assertion failed.  Remove assertion itself.
3789
3790 2015-06-26  Richard Biener  <rguenther@suse.de>
3791
3792         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
3793         and -A CMP CST -> A CMP -CST which is redundant with a pattern
3794         in match.pd.
3795         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
3796         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
3797         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
3798         * match.pd: ... patterns here.
3799
3800 2015-06-26  Marek Polacek  <polacek@redhat.com>
3801
3802         * match.pd ((x | y) & ~(x & y) -> x ^ y,
3803         (x | y) & (~x ^ y) -> x & y): New patterns.
3804
3805 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
3806
3807         * rtl.h (emit): Add an optional boolean parameter to control
3808         whether barriers are emitted.
3809         * emit-rtl.c (emit): Likewise.
3810         * gensupport.c (get_emit_function): Return null rather than "emit".
3811         * genemit.c (gen_emit_seq): Handle the null return value.
3812         Don't emit barriers after the final instruction in the sequence.
3813         * gentarget-def.c (main): Don't emit barriers after the instruction.
3814
3815 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3816
3817         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
3818         TARGET_UNIFIED_ASM.
3819
3820 2015-06-26  Richard Biener  <rguenther@suse.de>
3821
3822         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
3823
3824 2015-06-26  Richard Biener  <rguenther@suse.de>
3825
3826         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
3827         irrespective on whether the inner operation has a single use
3828         of both off are constant.
3829
3830 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
3831             Segher Boessenkool  <segher@kernel.crashing.org>
3832
3833         PR target/66412
3834         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
3835         before doing PUT_MODE or PUT_CODE on operands to avoid
3836         in-place RTX modification.
3837
3838 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3839
3840         * gentarget-def.c (def_target_insn): Cast return of strtol to
3841         unsigned int.
3842
3843 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3844
3845         * gimple.h (gimple_call_set_fn): Move inline function.
3846         * gimple.c (gimple_call_set_fn): Relocate here.
3847
3848 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
3849
3850         PR target/65979
3851         PR target/66611
3852         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
3853         the replacement insn will work.
3854
3855 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3856
3857         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
3858         by default.
3859
3860 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3861
3862         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
3863         * cgraph.h: Include ipa-ref.h and plugin-api.h.
3864         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
3865         (symtab_node::address_can_be_compared_p): Move function.
3866         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
3867         definition here.
3868         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
3869         * auto-profile.c: Likewise.
3870         * bb-reorder.c: Likewise.
3871         * builtins.c: Likewise.
3872         * calls.c: Likewise.
3873         * cfgexpand.c: Likewise.
3874         * cgraphbuild.c: Likewise.
3875         * cgraphclones.c: Likewise.
3876         * cgraphunit.c: Likewise.
3877         * combine.c: Likewise.
3878         * coverage.c: Likewise.
3879         * data-streamer-in.c: Likewise.
3880         * data-streamer-out.c: Likewise.
3881         * data-streamer.c: Likewise.
3882         * dbxout.c: Likewise.
3883         * dwarf2out.c: Likewise.
3884         * except.c: Likewise.
3885         * expr.c: Likewise.
3886         * final.c: Likewise.
3887         * fold-const.c: Likewise.
3888         * ggc-page.c: Likewise.
3889         * gimple-fold.c: Likewise.
3890         * gimple-iterator.c: Likewise.
3891         * gimple-pretty-print.c: Likewise.
3892         * gimple-streamer-in.c: Likewise.
3893         * gimple-streamer-out.c: Likewise.
3894         * gimple.c: Likewise.
3895         * gimplify.c: Likewise.
3896         * ipa-chkp.c: Likewise.
3897         * ipa-comdats.c: Likewise.
3898         * ipa-cp.c: Likewise.
3899         * ipa-devirt.c: Likewise.
3900         * ipa-icf-gimple.c: Likewise.
3901         * ipa-icf.c: Likewise.
3902         * ipa-inline-analysis.c: Likewise.
3903         * ipa-inline-transform.c: Likewise.
3904         * ipa-inline.c: Likewise.
3905         * ipa-polymorphic-call.c: Likewise.
3906         * ipa-profile.c: Likewise.
3907         * ipa-prop.c: Likewise.
3908         * ipa-pure-const.c: Likewise.
3909         * ipa-ref.c: Likewise.
3910         * ipa-reference.c: Likewise.
3911         * ipa-split.c: Likewise.
3912         * ipa-utils.c: Likewise.
3913         * ipa-visibility.c: Likewise.
3914         * ipa.c: Likewise.
3915         * langhooks.c: Likewise.
3916         * lto-cgraph.c: Likewise.
3917         * lto-compress.c: Likewise.
3918         * lto-opts.c: Likewise.
3919         * lto-section-in.c: Likewise.
3920         * lto-section-out.c: Likewise.
3921         * lto-streamer-in.c: Likewise.
3922         * lto-streamer-out.c: Likewise.
3923         * lto-streamer.c: Likewise.
3924         * omp-low.c: Likewise.
3925         * opts-global.c: Likewise.
3926         * passes.c: Likewise.
3927         * predict.c: Likewise.
3928         * print-tree.c: Likewise.
3929         * profile.c: Likewise.
3930         * ree.c: Likewise.
3931         * sanopt.c: Likewise.
3932         * stor-layout.c: Likewise.
3933         * symtab.c: Likewise.
3934         * toplev.c: Likewise.
3935         * trans-mem.c: Likewise.
3936         * tree-cfg.c: Likewise.
3937         * tree-chkp.c: Likewise.
3938         * tree-eh.c: Likewise.
3939         * tree-emutls.c: Likewise.
3940         * tree-inline.c: Likewise.
3941         * tree-nested.c: Likewise.
3942         * tree-parloops.c: Likewise.
3943         * tree-pretty-print.c: Likewise.
3944         * tree-profile.c: Likewise.
3945         * tree-sra.c: Likewise.
3946         * tree-ssa-alias.c: Likewise.
3947         * tree-ssa-live.c: Likewise.
3948         * tree-ssa-loop-ivcanon.c: Likewise.
3949         * tree-ssa-loop-ivopts.c: Likewise.
3950         * tree-ssa-pre.c: Likewise.
3951         * tree-ssa-sccvn.c: Likewise.
3952         * tree-ssa-strlen.c: Likewise.
3953         * tree-ssa-structalias.c: Likewise.
3954         * tree-streamer-in.c: Likewise.
3955         * tree-streamer-out.c: Likewise.
3956         * tree-streamer.c: Likewise.
3957         * tree-switch-conversion.c: Likewise.
3958         * tree-tailcall.c: Likewise.
3959         * tree-vect-data-refs.c: Likewise.
3960         * tree-vect-stmts.c: Likewise.
3961         * tree-vectorizer.c: Likewise.
3962         * tree.c: Likewise.
3963         * tsan.c: Likewise.
3964         * ubsan.c: Likewise.
3965         * value-prof.c: Likewise.
3966         * varasm.c: Likewise.
3967         * varpool.c: Likewise.
3968         * config/arm/arm.c: Likewise.
3969         * config/bfin/bfin.c: Likewise.
3970         * config/c6x/c6x.c: Likewise.
3971         * config/cris/cris.c: Likewise.
3972         * config/darwin-c.c: Likewise.
3973         * config/darwin.c: Likewise.
3974         * config/i386/i386.c: Likewise.
3975         * config/i386/winnt.c: Likewise.
3976         * config/microblaze/microblaze.c: Likewise.
3977         * config/mips/mips.c: Likewise.
3978         * config/rs6000/rs6000.c: Likewise.
3979         * config/rx/rx.c: Likewise.
3980         * config/s390/s390.c: Likewise.
3981         * config/tilegx/mul-tables.c: Likewise.
3982
3983 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3984
3985         * config/aarch64/aarch64.c, config/alpha/alpha.c,
3986         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
3987         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
3988         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
3989         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
3990         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
3991         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
3992         config/microblaze/microblaze.c, config/mips/mips.c,
3993         config/mmix/mmix.c, config/mn10300/mn10300.c,
3994         config/moxie/moxie.c, config/msp430/msp430.c,
3995         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
3996         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
3997         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
3998         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
3999         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4000         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4001         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4002         target-def.h include.
4003         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
4004
4005 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4006
4007         * Makefile.in (TARGET_DEF): Add target-insns.def.
4008         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4009         (build/gentarget-def.o): New rule.
4010         (genprogrtl): Add target-def.
4011         * target-insns.def, gentarget-def.c: New files.
4012         * target.def: Add targetm.have_* and targetm.gen_* hooks,
4013         based on the contents of target-insns.def.
4014         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4015         (HAVE_return, gen_return): Delete.
4016         * target-def.h: Include insn-target-def.h.
4017         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4018         instead of direct calls.  Rely on them to do the appropriate assertions.
4019         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
4020         (convert_jumps_to_returns): Use targetm interface instead of
4021         direct calls.
4022         (thread_prologue_and_epilogue_insns): Likewise.
4023         * reorg.c (find_end_label, dbr_schedule): Likewise.
4024         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4025         * shrink-wrap.c (convert_to_simple_return): Likewise.
4026         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4027
4028 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4029
4030         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4031         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4032         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4033         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4034         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4035         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4036         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4037         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4038         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4039         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4040         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4041         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4042         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4043         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4044         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4045         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4046         includes to end.
4047
4048 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4049
4050         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4051         (unbounded_int_hashmap_traits::key_type): Likewise.
4052         * hash-map.h (hash_map): Get the key type from the traits.
4053         * hash-traits.h (default_hash_traits): By default, inherit from the
4054         template parameter.
4055         * alias.c (alias_set_traits): Delete.
4056         (alias_set_entry_d::children): Use alias_set_hash as the first
4057         template parameter.
4058         (record_alias_subset): Update accordingly.
4059         * except.c (tree_hash_traits): Delete.
4060         (type_to_runtime_map): Use tree_hash as the first template parameter.
4061         (init_eh): Update accordingly.
4062         * genmatch.c (capture_id_map_hasher): Delete.
4063         (cid_map_t): Use nofree_string_hash as first template parameter.
4064         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4065         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4066         Use symbol_compare_hash as the first template parameter in
4067         subdivide_hash_map.
4068         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4069         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4070         template parameter.
4071         * passes.c (pass_registry_hasher): Delete.
4072         (name_to_pass_map): Use nofree_string_hash as the first template
4073         parameter.
4074         (register_pass_name): Update accordingly.
4075         * sanopt.c (sanopt_tree_map_traits): Delete.
4076         (sanopt_tree_triplet_map_traits): Delete.
4077         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4078         template parameter.
4079         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4080         the first template parameter.
4081         * sese.c (rename_map_hasher): Delete.
4082         (rename_map_type): Use tree_ssa_name_hash as the first template
4083         parameter.
4084         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4085         (function_summary::m_map): Use map_hash as the first template
4086         parameter.
4087         (function_summary::release): Update accordingly.
4088         * tree-if-conv.c (phi_args_hash_traits): Delete.
4089         (predicate_scalar_phi): Use tree_operand_hash as the first template
4090         parameter to phi_arg_map.
4091         * tree-inline.h (dependence_hasher): Delete.
4092         (copy_body_data::dependence_map): Use dependence_hash as the first
4093         template parameter.
4094         * tree-inline.c (remap_dependence_clique): Update accordingly.
4095         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4096         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4097         parameter.
4098         (addr_stridxptr): Update accordingly.
4099         * value-prof.c (profile_id_traits): Delete.
4100         (cgraph_node_map): Use profile_id_hash as the first template
4101         parameter.
4102         (init_node_map): Update accordingly.
4103         * config/alpha/alpha.c (string_traits): Delete.
4104         (machine_function::links): Use nofree_string_hash as the first
4105         template parameter.
4106         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4107         * config/m32c/m32c.c (pragma_traits): Delete.
4108         (pragma_htab): Use nofree_string_hash as the first template parameter.
4109         (m32c_note_pragma_address): Update accordingly.
4110         * config/mep/mep.c (pragma_traits): Delete.
4111         (pragma_htab): Use nofree_string_hash as the first template parameter.
4112         (mep_note_pragma_flag): Update accordingly.
4113         * config/mips/mips.c (mips16_flip_traits): Delete.
4114         (mflip_mips16_htab): Use nofree_string_hash as the first template
4115         parameter.
4116         (mflip_mips16_use_mips16_p): Update accordingly.
4117         (local_alias_traits): Delete.
4118         (mips16_local_aliases): Use nofree_string_hash as the first template
4119         parameter.
4120         (mips16_local_alias): Update accordingly.
4121
4122 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4123
4124         * hash-map-traits.h (default_hashmap_traits): Delete.
4125
4126 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4127
4128         * hash-map-traits.h (unbounded_hashmap_traits): New class.
4129         (unbounded_int_hashmap_traits): Likewise.
4130         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4131
4132 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4133
4134         * ipa-icf.h (symbol_compare_hash): New class.
4135         (symbol_compare_hashmap_traits): Use it.
4136         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4137         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4138         (mem_alloc_description::reverse_mem_map_t): Remove redundant
4139         default_hashmap_traits.
4140         * sanopt.c (sanopt_tree_triplet_hash): New class.
4141         (sanopt_tree_triplet_map_traits): Use it.
4142
4143 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4144
4145         * gengtype-parse.c (require_template_declaration): Allow '+' in
4146         template parameters.  Consolidate cases.
4147         * hash-traits.h (int_hash): New class.
4148         * alias.c (alias_set_hash): New structure.
4149         (alias_set_traits): Use it.
4150         * symbol-summary.h (function_summary::map_hash): New class.
4151         (function_summary::summary_hashmap_traits): Use it.
4152         * tree-inline.h (dependence_hash): New class.
4153         (dependence_hasher): Use it.
4154         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4155         * value-prof.c (profile_id_hash): New class.
4156         (profile_id_traits): Use it.
4157
4158 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4159
4160         * config/mips/mips.c (mips16_flip_traits): Use it.
4161         (local_alias_traits, mips16_local_aliases): Convert from a map of
4162         rtxes to a map of symbol names.
4163         (mips16_local_alias): Update accordingly.
4164
4165 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4166
4167         * hash-traits.h (string_hash, nofree_string_hash): New classes.
4168         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4169         * passes.c (pass_registry_hasher): Likewise.
4170         * config/alpha/alpha.c (string_traits): Likewise.
4171         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4172         * config/m32c/m32c.c (pragma_traits): Likewise.
4173         * config/mep/mep.c (pragma_traits): Likewise.
4174
4175 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4176
4177         * tree-hash-traits.h (tree_hash): New class.
4178         * except.c: Include tree-hash-traits.h.
4179         (tree_hash_traits): Use tree_hash.
4180
4181 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4182
4183         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4184         * sese.c: Include tree-hash-traits.h.
4185         (rename_map_hasher): Use tree_ssa_name_hasher.
4186
4187 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4188
4189         * tree-hash-traits.h (tree_decl_hash): New class.
4190         * tree-ssa-strlen.c: Include tree-hash-traits.h.
4191         (stridxlist_hash_traits): Use tree_decl_hash.
4192
4193 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4194
4195         * tree-hash-traits.h: New file.
4196         (tree_operand_hash): New class.
4197         * sanopt.c: Include tree-hash-traits.h.
4198         (sanopt_tree_map_traits): Use tree_operand_hash.
4199         * tree-if-conv.c: Include tree-hash-traits.h.
4200         (phi_args_hash_traits): Use tree_operand_hash.
4201         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4202         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4203
4204 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4205
4206         * hash-map-traits.h: Include hash-traits.h.
4207         (simple_hashmap_traits): New class.
4208         * mem-stats.h (hash_map): Change the default traits to
4209         simple_hashmap_traits<default_hash_traits<Key> >.
4210
4211 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4212
4213         * hash-table.h: Update comments.
4214
4215 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4216
4217         * hash-traits.h (default_hash_traits): New structure.
4218         * hash-set.h (default_hashset_traits): Delete.
4219         (hash_set): Use default_hash_traits<Key> instead of
4220         default_hashset_traits.  Delete hash_entry type and use Key directly.
4221         * ipa-devirt.c (pair_traits): Delete.
4222         (default_hash_traits <type_pair>): Override.
4223         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4224         (odr_types_equivalent_p, add_type_duplicate): Likewise.
4225
4226 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4227
4228         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4229
4230 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4231
4232         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4233         (has_is_empty, is_empty_helper): Delete.
4234         (has_mark_deleted, mark_deleted_helper): Delete.
4235         (has_mark_empty, mark_empty_helper): Delete.
4236         (hash_table::is_deleted): Call the Descriptor unconditionally.
4237         (hash_table::is_empty): Likewise.
4238         (hash_table::mark_deleted): Likewise.
4239         (hash_table::mark_empty): Likewise.
4240
4241 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4242
4243         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
4244         redundant typedefs and members.
4245         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
4246         redundant typedefs.
4247         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4248         * ipa-devirt.c (odr_name_hasher): Likewise.
4249         (polymorphic_call_target_hasher): Likewise.
4250         * ira-costs.c (cost_classes_hasher): Likewise.
4251         * statistics.c (stats_counter_hasher): Likewise.
4252         * trans-mem.c (log_entry_hasher): Likewise.
4253         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4254         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4255         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4256         * var-tracking.c (variable_hasher): Likewise.
4257         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4258         Remove redundant typedefs and members.
4259
4260 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4261
4262         * hash-traits.h (ggc_cache_hasher): Rename to...
4263         (ggc_cache_remove): ...this and remove typedefs.
4264         (ggc_cache_ptr_hash): New class.
4265         * hash-table.h: Update commentary.
4266         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4267         rather than ggc_cache_hasher.
4268         (const_wide_int_hasher, reg_attr_hasher): Likewise.
4269         (const_double_hasher, const_fixed_hasher): Likewise.
4270         * function.c (insn_cache_hasher): Likewise.
4271         * trans-mem.c (tm_wrapper_hasher): Likewise.
4272         * tree.h (tree_decl_map_cache_hasher): Likewise.
4273         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4274         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4275         * ubsan.c (tree_type_map_cache_hasher): Likewise.
4276         * varasm.c (tm_clone_hasher): Likewise.
4277         * config/i386/i386.c (dllimport_hasher): Likewise.
4278         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4279         (tree_hasher): Likewise.
4280
4281 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4282
4283         * hash-traits.h (ggc_hasher): Rename to...
4284         (ggc_remover): ...this and remove typedefs.
4285         (ggc_cache_hasher): Update accordingly.  Add typedefs.
4286         (ggc_ptr_hash): New class.
4287         * hash-table.h: Update comment.
4288         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4289         ggc_hasher.
4290         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4291         (tree_descriptor_hasher): Likewise.
4292         * cgraph.c (function_version_hasher): Likewise.
4293         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4294         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4295         (dw_loc_list_hasher, addr_hasher): Likewise.
4296         * function.h (used_type_hasher): Likewise.
4297         * function.c (temp_address_hasher): Likewise.
4298         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4299         * libfuncs.h (libfunc_hasher): Likewise.
4300         * lto-streamer.h (decl_state_hasher): Likewise.
4301         * optabs.c (libfunc_decl_hasher): Likewise.
4302         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4303         * varasm.c (section_hasher, object_block_hasher): Likewise.
4304         (const_rtx_desc_hasher): Likewise.
4305         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4306         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4307
4308 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4309
4310         * hash-traits.h (free_ptr_hash): New class.
4311         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4312         rather than typed_free_remove.  Remove redudant typedefs.
4313         (external_ref_hasher): Likewise.
4314         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4315         (ehspec_hasher): Likewise.
4316         * ggc-common.c (saving_hasher): Likewise.
4317         * gimplify.c (gimplify_hasher): Likewise.
4318         * haifa-sched.c (delay_i2_hasher): Likewise.
4319         * loop-invariant.c (invariant_expr_hasher): Likewise.
4320         * loop-iv.c (biv_entry_hasher): Likewise.
4321         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4322         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4323         * tree-cfg.c (locus_discrim_hasher): Likewise.
4324         * tree-eh.c (finally_tree_hasher): Likewise.
4325         * tree-into-ssa.c (var_info_hasher): Likewise.
4326         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4327         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4328         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4329         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4330         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4331         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4332         (shared_bitmap_hasher): Likewise.
4333         * tree-ssa-threadupdate.c (redirection_data): Likewise.
4334         * tree-vectorizer.h (peel_info_hasher): Likewise.
4335         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4336         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4337
4338 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4339
4340         * hash-table.h: Update comments.
4341         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4342         (nofree_ptr_hash): New class.
4343         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4344         than typed_noop_remove.  Remove redudant typedefs.
4345         * attribs.c (attribute_hasher): Likewise.
4346         * cfg.c (bb_copy_hasher): Likewise.
4347         * cselib.c (cselib_hasher): Likewise.
4348         * dse.c (invariant_group_base_hasher): Likewise.
4349         * dwarf2cfi.c (trace_info_hasher): Likewise.
4350         * dwarf2out.c (macinfo_entry_hasher): Likewise.
4351         (comdat_type_hasher, loc_list_hasher): Likewise.
4352         * gcse.c (pre_ldst_expr_hasher): Likewise.
4353         * genmatch.c (id_base): Likewise.
4354         * genrecog.c (test_pattern_hasher): Likewise.
4355         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4356         * haifa-sched.c (delay_i1_hasher): Likewise.
4357         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4358         * ipa-icf.h (congruence_class_group_hash): Likewise.
4359         * ipa-profile.c (histogram_hash): Likewise.
4360         * ira-color.c (allocno_hard_regs_hasher): Likewise.
4361         * lto-streamer.h (string_slot_hasher): Likewise.
4362         * lto-streamer.c (tree_entry_hasher): Likewise.
4363         * plugin.c (event_hasher): Likewise.
4364         * postreload-gcse.c (expr_hasher): Likewise.
4365         * store-motion.c (st_expr_hasher): Likewise.
4366         * tree-sra.c (uid_decl_hasher): Likewise.
4367         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4368         (ssa_name_var_hash): Likewise.
4369         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4370         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4371         * tree-ssa-pre.c (pre_expr_d): Likewise.
4372         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4373         * vtable-verify.h (registration_hasher): Likewise.
4374         * vtable-verify.c (vtbl_map_hasher): Likewise.
4375         * config/arm/arm.c (libcall_hasher): Likewise.
4376         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4377         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4378         * config/sol2.c (comdat_entry_hasher): Likewise.
4379         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4380         (print_fold_checksum, fold_checksum_tree): Likewise.
4381         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4382         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4383         (fold_build_call_array_loc): Likewise.
4384         * tree-ssa-ccp.c (gimple_htab): Likewise.
4385         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4386         rather than pointer_type.
4387
4388 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4389
4390         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4391         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4392
4393 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4394
4395         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4396         (ggc_hasher::ggc_mx): Likewise.
4397         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
4398         that duplicate ggc_hasher ones.
4399
4400 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4401
4402         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4403         (gt_cleare_cache): Check here for deleted and empty entries.
4404         Replace handle_cache_entry with a call to keep_cache_entry.
4405         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4406         (ggc_cache_hasher::keep_cache_entry): New function.
4407         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4408         (tm_wrapper_hasher::keep_cache_entry): New function.
4409         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4410         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4411         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4412         (type_cache_hasher::keep_cache_entry): New function.
4413         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4414         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4415         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4416         (tree_type_map_cache_hasher::keep_cache_entry): New function.
4417         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
4418         (tm_clone_hasher::keep_cache_entry): New function.
4419         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
4420         (dllimport_hasher::keep_cache_entry): New function.
4421
4422 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4423
4424         * hash-table.h: Include hash-traits.h.
4425         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
4426         (ggc_cache_hasher): Move to...
4427         * hash-traits.h: ...this new file.
4428
4429 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4430
4431         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
4432         struct cl_optimization.
4433         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
4434         * tree.c (make_node_stat): Allocate cl_optimization struct.
4435         (copy_node_stat): Allocate and copy cl_optimization struct.
4436
4437 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4438
4439         * function.h (struct incoming_args): Move struct.
4440         (pass_by_reference, reference_callee_copied): Remove prototypes.
4441         * emit-rtl.h (struct incoming_args): Relocate struct here.
4442         * calls.h (pass_by_reference, reference_callee_copied): Relocate
4443         prototypes here.
4444         * function.c (pass_by_reference, reference_callee_copied): Move.
4445         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
4446         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
4447         * ipa-chkp.c: Include calls.h.
4448
4449 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
4450
4451         * alias.h (alias_set_type): Move typedef.
4452         * coretypes.h (alias_set_type): Relocate typedef here.
4453         * rtl.h: Don't include alias.h.
4454
4455 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
4456
4457         * cgraph.h (cgraph_rtl_info): Move to rtl.h
4458         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
4459         and instance.
4460         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
4461         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
4462         doesn't exist.
4463         * calls.c: Include hard-reg-set.h before rtl.h.
4464         * ira.c: Likewise.
4465
4466 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
4467             Vladimir Makarov  <vmakarov@redhat.com>
4468
4469         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
4470         Add assert.
4471
4472 2015-06-25  Richard Biener  <rguenther@suse.de>
4473
4474         * fold-const.c (fold_binary_loc): Move simplification of
4475         (X <<>> C1) & C2 ...
4476         * match.pd: ... here.
4477
4478 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
4479
4480         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
4481
4482 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
4483
4484         * match.pd: Add patterns for vec_conds between 1 and 0.
4485
4486 2015-06-25  Richard Biener  <rguenther@suse.de>
4487
4488         * tree-vect-stmts.c (vectorizable_conversion): Do not set
4489         STMT_VINFO_VEC_STMT for SLP.
4490         (vectorizable_store): Likewise.
4491         (vectorizable_load): Likewise.
4492         (vect_transform_stmt): Catch SLP vectorization clobbering
4493         STMT_VINFO_VEC_STMT.
4494
4495 2015-06-25  Richard Biener  <rguenther@suse.de>
4496
4497         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
4498         dumping.
4499         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
4500         cleanup resulting dead code and parameters.
4501         (vect_transform_slp_perm_load): Adjust.
4502
4503 2015-06-25  Nick Clifton  <nickc@redhat.com>
4504
4505         * config/bfin/bfin.c (bfin_expand_prologue): Set
4506         current_function_static_stack_size if flag_stack_usage_info is set.
4507         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4508         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
4509         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4510         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
4511
4512 2015-06-25  Tom de Vries  <tom@codesourcery.com>
4513
4514         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
4515         comment that the generated IV is unsigned.
4516
4517 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4518
4519         PR target/29693
4520         * config/arm/arm.c (arm_dbx_register_number): Return
4521         DWARF_FRAME_REGISTERS by default.
4522
4523 2015-06-25  Tom de Vries  <tom@codesourcery.com>
4524
4525         * dominance.c (calculate_dominance_info): Fix verify_dominators call
4526         argument.  Call verify_dominator when reusing dominator info.
4527
4528 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
4529
4530         PR target/66563
4531         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
4532         an additional element of the unspec vector.  Modify indices
4533         of operands.
4534         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
4535         * config/sh/sh.c (prepare_move_operands): Pass incremented
4536         const_int to gen_GOTaddr2picreg.
4537         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
4538
4539 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
4540
4541         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
4542         Condition on TARGET_FLOAT.
4543
4544 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
4545
4546         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
4547         and (no)crypto.
4548
4549 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
4550
4551         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
4552
4553         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
4554         aarch64_err_no_fpadvsimd.
4555
4556         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
4557         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
4558         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
4559         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
4560         Turn error into assert, test TARGET_FLOAT.
4561         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
4562         TARGET_FLOAT.
4563
4564 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
4565
4566         PR debug/66482
4567         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
4568
4569 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
4570
4571         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
4572
4573 2015-06-24 Renlin Li <renlin.li@arm.com>
4574
4575         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
4576         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
4577
4578 2015-06-24  Richard Biener  <rguenther@suse.de>
4579
4580         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
4581         (main): Likewise.
4582         (lower_opt_convert): Support lowering of conditional view_convert.
4583         (parser::parse_operation): Likewise.
4584         (parser::parse_for): Likewise.
4585
4586 2015-06-24  Renlin Li  <renlin.li@arm.com>
4587
4588         * varasm.c (emit_local): Use unsigned int for align variable.
4589
4590 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4591
4592         PR target/63408
4593         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
4594         for negative numbers.
4595
4596 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4597
4598         PR rtl-optimization/66306
4599         * reload.c (find_reloads): Swap the match_dup info for
4600         commutative operands.
4601
4602 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4603
4604         * config/s390/vx-builtins.md
4605         ("vec_scatter_element<mode>_<non_vec_int>")
4606         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
4607         attribute with bhfgq.
4608
4609 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4610
4611         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
4612
4613 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4614
4615         * config/s390/s390-builtin-types.def: Add flag to indicate the
4616         options under which the function type is needed.
4617         * config/s390/s390-builtins.def: Add flag to indicate the options
4618         under which the builtin is enabled.
4619         * config/s390/s390-builtins.h: Add flags parameter to macro
4620         definitions.
4621         (bflags_for_builtin): New function.
4622         (flags_for_builtin): Renamed to ...
4623         (opflags_for_builtin): ... this.
4624         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
4625         flags_for_builtin to bflags_for_builtin and
4626         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
4627         * config/s390/s390.c: Add initialization of bflags_builtin and
4628         opflags_builtin arrays.
4629         Remove code for flags_builtin.
4630         (s390_init_builtins): Only create builtin function types if one of
4631         their flags is active.
4632         Only create builtins if all of their flags are active.
4633         (s390_expand_builtin): Rename flags_for_builtin to
4634         opflags_for_builtin.
4635
4636 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4637
4638         * config/s390/vecintrin.h: Remove internal builtins.
4639
4640 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4641
4642         * config/s390/s390.c (s390_secondary_reload): Fix check for
4643         GENERAL_REGS register class.
4644
4645 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4646
4647         * config/s390/s390.c (s390_support_vector_misalignment): Call
4648         default implementation for !TARGET_VX.
4649
4650 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4651
4652         * config/s390/s390.c (s390_legitimate_constant_p): Add
4653         TARGET_VX check.
4654
4655 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4656
4657         * config/s390/s390.c (s390_vector_abi): New variable definition.
4658         (s390_check_type_for_vector_abi): New function.
4659         (TARGET_ASM_FILE_END): New macro definition.
4660         (s390_asm_file_end): New function.
4661         (s390_function_arg): Call s390_check_type_for_vector_abi.
4662         (s390_gimplify_va_arg): Likewise.
4663         * configure: Regenerate.
4664         * configure.ac: Check for .gnu_attribute Binutils feature.
4665
4666 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
4667
4668         PR target/65803
4669         * config/bfin/bfin.c (hwloop_optimize): Initialize
4670         JUMP_LABEL for newly created jump.
4671
4672 2015-06-23  Tristan Gingold  <gingold@adacore.com>
4673
4674         * collect-utils.c (collect_wait): Unlink the response file here
4675         instead of...
4676         (do_wait): ...here.
4677         (utils_cleanup): ...and here.
4678
4679 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
4680
4681         * df-scan.c: Don't include target-def.h.
4682         * targhooks.c: Likewise.
4683         * config/arm/arm-c.c: Likewise.
4684         * config/i386/i386-c.c: Likewise.
4685         * config/nds32/nds32-cost.c: Likewise.
4686         * config/nds32/nds32-fp-as-gp.c: Likewise.
4687         * config/nds32/nds32-intrinsic.c: Likewise.
4688         * config/nds32/nds32-isr.c: Likewise.
4689         * config/nds32/nds32-md-auxiliary.c: Likewise.
4690         * config/nds32/nds32-memory-manipulation.c: Likewise.
4691         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4692         * config/nds32/nds32-predicates.c: Likewise.
4693
4694 2015-06-23  Richard Biener  <rguenther@suse.de>
4695
4696         PR tree-optimization/66636
4697         * tree-vect-stmts.c (vectorizable_store): Properly compute the
4698         def type for further defs for strided stores.
4699
4700 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
4701
4702         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
4703         conditional selects.
4704         (setcc_int<mode>, setcc_float<mode>): Reformat.
4705
4706 2015-06-23  Marek Polacek  <polacek@redhat.com>
4707
4708         * match.pd ((x + y) - (x | y) -> x & y,
4709         (x + y) - (x & y) -> x | y): New patterns.
4710
4711 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
4712
4713         PR 65711
4714         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
4715         '-dynamic-linker' within %{!shared: ...}.
4716
4717 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
4718
4719         PR target/66560
4720         * config/i386/predicates.md (addsub_vm_operator): New predicate.
4721         (addsub_vs_operator): Ditto.
4722         (addsub_vs_parallel): Ditto.
4723         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
4724         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
4725         Put minus RTX before plus and adjust vec_merge selector.
4726         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
4727         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
4728         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
4729         (addsub vec_merge splitters): New combiner splitters.
4730         (addsub vec_select/vec_concat splitters): Ditto.
4731
4732 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
4733
4734         PR tree-optimization/66449
4735         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
4736         POINTER_PLUS_EXPR for pointers.
4737
4738 2015-06-23  Alan Modra  <amodra@gmail.com>
4739
4740         * rtlanal.c (commutative_operand_precedence): Correct comments.
4741         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
4742         declaration.  Return an int.  Distinguish REG,REG return from
4743         others.
4744         (struct simplify_plus_minus_op_data): Make local to function.
4745         (simplify_plus_minus): Don't set canonicalized if merely sorting
4746         registers.  Avoid packing ops if nothing changes.  White space fixes.
4747
4748 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
4749
4750         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
4751         -fdump-ada-spec is passed but not if -fsyntax-only is.
4752
4753 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
4754
4755         PR bootstrap/63740
4756         * lra-lives.c (process_bb_lives): Check insn copying the same
4757         reload pseudo and don't create a copy for it.
4758
4759 2015-06-22  Tom de Vries  <tom@codesourcery.com>
4760
4761         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
4762         for cond_stmt.
4763
4764 2015-06-22  Tom de Vries  <tom@codesourcery.com>
4765
4766         * builtins.def (DEF_GOMP_BUILTIN): Test
4767         'flag_tree_parallelize_loops > 1' instead of
4768         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
4769
4770 2015-06-22  Tom de Vries  <tom@codesourcery.com>
4771
4772         * dominance.c (calculate_dominance_info): Verify dominators if
4773         early-out.
4774
4775 2015-06-22  Marek Polacek  <polacek@redhat.com>
4776
4777         * match.pd ((x ^ y) ^ (x | y) -> x & y,
4778         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
4779         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
4780         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
4781
4782 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
4783
4784         PR target/65871
4785         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
4786         cost of embedded comparison.
4787
4788 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4789
4790         PR target/65914
4791         * config/rs6000/predicates.md (altivec_register_operand): Permit
4792         virtual stack registers.
4793         (vsx_register_operand): Likewise.
4794         (vfloat_operand): Likewise.
4795         (vint_operand): Likewise.
4796         (vlogical_operand): Likewise.
4797
4798 2015-06-22  Richard Biener  <rguenther@suse.de>
4799
4800         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
4801         and single_scalar_iteration_cost members.
4802         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
4803         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
4804         (vect_get_single_scalar_iteration_cost): Remove.
4805         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
4806         Use LOOP_VINFO_SCALAR_ITERATION_COST.
4807         * tree-vect-loop.c (destroy_loop_vec_info): Free
4808         scalar_cost_vec.
4809         (vect_get_single_scalar_iteration_cost): Compute result into
4810         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
4811         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
4812         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
4813         (vect_estimate_min_profitable_iters): Use them.
4814
4815 2015-06-22  Christian Bruel  <christian.bruel@st.com>
4816
4817         PR target/52144
4818         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
4819         (TARGET_INSERT_ATTRIBUTES): Define.
4820         (thumb_flipper): New var.
4821         * config/arm/arm.opt (-mflip-thumb): New switch.
4822
4823 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
4824             Martin Liska  <mliska@suse.cz>
4825
4826         PR ipa/65908
4827         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
4828         construction of arg_types.
4829         (sem_function::sem_function): Likewise.
4830         (sem_function::~sem_function): Remove destruction of arg_types.
4831         (sem_function::compatible_parm_types_p): New function.
4832         (sem_function::equals_wpa): Reorg matching of return values
4833         and parameter types.
4834         (sem_function::equals_private): Reorg mathcing of argument types.
4835         (sem_function::parse_tree_args): Remove.
4836         * ipa-icf.h (init_wpa): Do not call it.
4837         (parse_tree_args): Remove.
4838         (compatible_parm_types_p): Declare.
4839         (result_type): Remove.
4840         (arg_types): Remove.
4841
4842 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
4843
4844         PR ipa/66351
4845         * ipa-polymorphic-call.c
4846         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
4847         initializing alias oracle; fix formating; set base_alias_set if it
4848         is known.
4849
4850 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
4851
4852         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
4853         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
4854         (find_inc): Likewise.
4855         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
4856         swapping.
4857         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4858         * df-scan.c (df_swap_refs): Remove.
4859         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
4860         * dominance.c (link_roots): Use std::swap instead of manually swapping.
4861         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
4862         * fold-const.c (fold_relational_const): Likewise.
4863         * genattrtab.c (simplify_test_exp): Likewise.
4864         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
4865         gimple_simplify): Likewise.
4866         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
4867         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
4868         * ipa-devirt.c (add_type_duplicate): Likewise.
4869         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
4870         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
4871         * lra.c (lra_create_copy): Likewise.
4872         * lto-streamer-out.c (DFS::DFS): Likewise.
4873         * modulo-sched.c (get_sched_window): Likewise.
4874         * omega.c (omega_pretty_print_problem): Likewise.
4875         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
4876         * reload1.c (reloads_unique_chain_p): Likewise.
4877         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
4878         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
4879         use std::swap.
4880         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
4881         manually swapping.
4882         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
4883         predicate_mem_writes): Likewise.
4884         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
4885         * tree-predcom.c (combine_chains): Likewise.
4886         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
4887         refs_may_alias_p_1): Likewise.
4888         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
4889         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
4890         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
4891         number_of_iterations_cond): Likewise.
4892         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4893         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4894         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4895         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4896         * tree-vrp.c (extract_range_from_binary_expr_1,
4897         extract_range_from_unary_expr_1): Likewise.
4898
4899 2015-06-20  Marek Polacek  <polacek@redhat.com>
4900
4901         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
4902
4903 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4904
4905         PR target/66591
4906         * config/sh/sh.c (prepare_move_operands): Replace subreg
4907         index term with R0 for base and index addressing.
4908
4909 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
4910
4911         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
4912         op1 is an fp zero.
4913         (movsf_aarch64): Change condition from register_operand to
4914         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
4915         load1.  Change type for alternative 7 to store1.
4916         (movdf_aarch64): Likewise.
4917
4918 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
4919
4920         * config/vax/vax.md: Adjust sign/zero extend patterns to
4921         handle SUBREGs in operands[1].
4922
4923 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4924
4925         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
4926         of manually swapping.
4927         (expand_vec_perm_interleave2): Likewise.
4928
4929 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
4930
4931         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
4932         reuse bounds created for abnormal ssa names.
4933
4934 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
4935
4936         * config/nvptx/nvptx.md (allocate_stack): Rename to...
4937         (allocate_stack_<mode>): ... this, and add :P on both
4938         match_operand and unspec.
4939         (allocate_stack): New expander.
4940
4941 2015-06-19  Christian Bruel  <christian.bruel@st.com>
4942
4943         PR target/66541
4944         PR target/52144
4945         * config/arm/arm.c (arm_set_current_function): Handle
4946         explicit default options.
4947
4948 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
4949
4950         * config/i386/i386.md (*movsicc_noc_zext): New insn.
4951         (zero-extended cmove with mem peephole2): New pattern.
4952         (cmove with mem peephole2): Merge patterns.
4953
4954 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
4955
4956         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
4957
4958 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
4959
4960         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
4961         * config/mips/mips.md (*madd4<mode>): Ditto.
4962         (*nmadd3<mode>) Ditto.
4963         (*nmadd4<mode>_fastmath): Ditto.
4964         (*nmadd3<mode>_fastmath): Ditto.
4965         (*nmsub4<mode>): Ditto.
4966         (*nmsub3<mode>): Ditto.
4967         (*nmsub4<mode>_fastmath): Ditto.
4968         (*nmsub3<mode>_fastmath): Ditto.
4969
4970 2015-06-18  Michael Matz  <matz@suse.de>
4971
4972         PR middle-end/66253
4973         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
4974         grouped strided stores.
4975         (vectorizable_load): Don't use the DR from first_stmt in
4976         the non-SLP grouped strided case.
4977
4978 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4979
4980         PR target/66569
4981         * function.c (assign_bounds): Add arguments assign_regs,
4982         assign_special, assign_bt.
4983         (assign_parms): For vararg functions handle bounds in BT
4984         and special slots after incoming vararg bounds.
4985
4986 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4987
4988         PR middle-end/66568
4989         * cfgexpand.c (expand_return): Handle missing bounds.
4990         (expand_gimple_stmt_1): Likewise.
4991         * tree-chkp.c (chkp_expand_zero_bounds): New.
4992         * tree-chkp.h (chkp_expand_zero_bounds): New.
4993
4994 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4995
4996         PR middle-end/66567
4997         * ipa-chkp.c (chkp_maybe_create_clone): Require
4998         functions to be instrumentable.
4999         * tree-chkp.c (chkp_replace_function_pointer): Use
5000         chkp_instrumentable_p instead of attribute check.
5001
5002 2015-06-18  Richard Biener  <rguenther@suse.de>
5003
5004         PR tree-optimization/66510
5005         * tree-vect-stmts.c (vectorizable_load): Properly compute the
5006         number of vector loads for SLP permuted loads.
5007         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5008         check the stride for loop vectorization.
5009         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5010         vectorization factor.
5011         (vect_analyze_group_access): If the group size is not a power
5012         of two require a epilogue loop.
5013         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5014         compute and optimizing and alias test pruning after final
5015         vectorization factor computation.
5016         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5017         vector alignment.
5018         (vect_transform_slp_perm_load): Properly compute the original
5019         number of vector load stmts.
5020
5021 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
5022
5023         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5024         "unlikely character , in @var" warning.
5025
5026 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
5027
5028         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5029         (ix86_function_arg_advance): Ditto.
5030         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
5031
5032 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5033
5034         * function.h (struct rtl_data): Remove struct and accessor macros.
5035         * emit-rtl.h (struct rtl_data): Relocate to here.
5036         * Makefile.in (GTFILES): Add emit-rtl.h.
5037         * df-core.c: Include emit-rtl.h.
5038         * genattrtab.c: Likewise.
5039         * genconditions.c: Likewise.
5040         * genpreds.c: Likewise.
5041         * genrecog.c: Likewise.
5042         * regcprop.c: Likewise.
5043         * resource.c: Likewise.
5044         * sched-rgn.c: Likewise.
5045         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5046         * config/i386/winnt.c: Likewise.
5047
5048 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
5049
5050         PR middle-end/66429
5051         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5052         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
5053         and has_force_vectorize_loops flags from cfun into
5054         child_cfun.
5055         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5056         if simduid is non-NULL.
5057         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5058         * passes.def (pass_simduid_cleanup): Add new pass after loop
5059         passes.
5060         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5061         indirection from htab argument's type.
5062         (shrink_simd_arrays): New function.
5063         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
5064         Don't call adjust_simduid_builtins if there are no loops.
5065         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5066         (pass_simduid_cleanup::execute): New method.
5067         (make_pass_simduid_cleanup): New function.
5068
5069 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
5070
5071         * tree-core.h (tree_target_option): Make opts field a pointer to a
5072         cl_target_option instead of an instance of the struct.
5073         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5074         the structure.
5075         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5076         TARGET_OPTION_NODE.
5077         (copy_node_stat): Allocate and copy struct cl_target_option.
5078
5079 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5080
5081         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5082         Remove conditional exposure of prototypes.
5083         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5084         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
5085         definitions in tree.h with functions.
5086         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5087         anon_aggrname_p.
5088         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5089
5090 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
5091
5092         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5093         (*cmp<mode>_signed): ... this.
5094         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5095         (*cmp<mode>_unsigned): ... this.  Remove %b.
5096
5097 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
5098
5099         * coretypes.h: Include input.h and as-a.h.
5100         * rtl.h: Include input.h and as-a.h for generator files.
5101         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5102         * vec.c: Don't include diagnostic-core.h.
5103         * alias.c: Do not include input.h, line-map.h or is-a.h.
5104         * asan.c: Likewise.
5105         * attribs.c: Likewise.
5106         * auto-inc-dec.c: Likewise.
5107         * auto-profile.c: Likewise.
5108         * bb-reorder.c: Likewise.
5109         * bt-load.c: Likewise.
5110         * builtins.c: Likewise.
5111         * caller-save.c: Likewise.
5112         * calls.c: Likewise.
5113         * ccmp.c: Likewise.
5114         * cfg.c: Likewise.
5115         * cfganal.c: Likewise.
5116         * cfgbuild.c: Likewise.
5117         * cfgcleanup.c: Likewise.
5118         * cfgexpand.c: Likewise.
5119         * cfghooks.c: Likewise.
5120         * cfgloop.c: Likewise.
5121         * cfgloop.h: Likewise.
5122         * cfgloopanal.c: Likewise.
5123         * cfgloopmanip.c: Likewise.
5124         * cfgrtl.c: Likewise.
5125         * cgraph.c: Likewise.
5126         * cgraphbuild.c: Likewise.
5127         * cgraphclones.c: Likewise.
5128         * cgraphunit.c: Likewise.
5129         * cilk-common.c: Likewise.
5130         * combine-stack-adj.c: Likewise.
5131         * combine.c: Likewise.
5132         * compare-elim.c: Likewise.
5133         * convert.c: Likewise.
5134         * coverage.c: Likewise.
5135         * cppbuiltin.c: Likewise.
5136         * cprop.c: Likewise.
5137         * cse.c: Likewise.
5138         * cselib.c: Likewise.
5139         * data-streamer-in.c: Likewise.
5140         * data-streamer-out.c: Likewise.
5141         * data-streamer.c: Likewise.
5142         * dbxout.c: Likewise.
5143         * dce.c: Likewise.
5144         * ddg.c: Likewise.
5145         * debug.c: Likewise.
5146         * df-core.c: Likewise.
5147         * df-problems.c: Likewise.
5148         * df-scan.c: Likewise.
5149         * df.h: Likewise.
5150         * dfp.c: Likewise.
5151         * diagnostic-core.h: Likewise.
5152         * diagnostic.c: Likewise.
5153         * dojump.c: Likewise.
5154         * dominance.c: Likewise.
5155         * domwalk.c: Likewise.
5156         * double-int.c: Likewise.
5157         * dse.c: Likewise.
5158         * dumpfile.c: Likewise.
5159         * dumpfile.h: Likewise.
5160         * dwarf2asm.c: Likewise.
5161         * dwarf2cfi.c: Likewise.
5162         * dwarf2out.c: Likewise.
5163         * emit-rtl.c: Likewise.
5164         * et-forest.c: Likewise.
5165         * except.c: Likewise.
5166         * explow.c: Likewise.
5167         * expmed.c: Likewise.
5168         * expr.c: Likewise.
5169         * final.c: Likewise.
5170         * fixed-value.c: Likewise.
5171         * fold-const.c: Likewise.
5172         * function.c: Likewise.
5173         * fwprop.c: Likewise.
5174         * gcc-plugin.h: Likewise.
5175         * gcse.c: Likewise.
5176         * generic-match-head.c: Likewise.
5177         * ggc-page.c: Likewise.
5178         * gimple-builder.c: Likewise.
5179         * gimple-expr.c: Likewise.
5180         * gimple-fold.c: Likewise.
5181         * gimple-iterator.c: Likewise.
5182         * gimple-low.c: Likewise.
5183         * gimple-match-head.c: Likewise.
5184         * gimple-pretty-print.c: Likewise.
5185         * gimple-ssa-isolate-paths.c: Likewise.
5186         * gimple-ssa-strength-reduction.c: Likewise.
5187         * gimple-streamer-in.c: Likewise.
5188         * gimple-streamer-out.c: Likewise.
5189         * gimple-streamer.h: Likewise.
5190         * gimple-walk.c: Likewise.
5191         * gimple.c: Likewise.
5192         * gimplify-me.c: Likewise.
5193         * gimplify.c: Likewise.
5194         * godump.c: Likewise.
5195         * graph.c: Likewise.
5196         * graphite-blocking.c: Likewise.
5197         * graphite-dependences.c: Likewise.
5198         * graphite-interchange.c: Likewise.
5199         * graphite-isl-ast-to-gimple.c: Likewise.
5200         * graphite-optimize-isl.c: Likewise.
5201         * graphite-poly.c: Likewise.
5202         * graphite-scop-detection.c: Likewise.
5203         * graphite-sese-to-poly.c: Likewise.
5204         * graphite.c: Likewise.
5205         * haifa-sched.c: Likewise.
5206         * hw-doloop.c: Likewise.
5207         * ifcvt.c: Likewise.
5208         * init-regs.c: Likewise.
5209         * input.c: Likewise.
5210         * internal-fn.c: Likewise.
5211         * ipa-chkp.c: Likewise.
5212         * ipa-comdats.c: Likewise.
5213         * ipa-cp.c: Likewise.
5214         * ipa-devirt.c: Likewise.
5215         * ipa-icf-gimple.c: Likewise.
5216         * ipa-icf.c: Likewise.
5217         * ipa-inline-analysis.c: Likewise.
5218         * ipa-inline-transform.c: Likewise.
5219         * ipa-inline.c: Likewise.
5220         * ipa-polymorphic-call.c: Likewise.
5221         * ipa-profile.c: Likewise.
5222         * ipa-prop.c: Likewise.
5223         * ipa-pure-const.c: Likewise.
5224         * ipa-ref.c: Likewise.
5225         * ipa-reference.c: Likewise.
5226         * ipa-split.c: Likewise.
5227         * ipa-utils.c: Likewise.
5228         * ipa-visibility.c: Likewise.
5229         * ipa.c: Likewise.
5230         * ira-build.c: Likewise.
5231         * ira-color.c: Likewise.
5232         * ira-conflicts.c: Likewise.
5233         * ira-costs.c: Likewise.
5234         * ira-emit.c: Likewise.
5235         * ira-lives.c: Likewise.
5236         * ira.c: Likewise.
5237         * jump.c: Likewise.
5238         * langhooks.c: Likewise.
5239         * lcm.c: Likewise.
5240         * loop-doloop.c: Likewise.
5241         * loop-init.c: Likewise.
5242         * loop-invariant.c: Likewise.
5243         * loop-iv.c: Likewise.
5244         * loop-unroll.c: Likewise.
5245         * lower-subreg.c: Likewise.
5246         * lra-assigns.c: Likewise.
5247         * lra-coalesce.c: Likewise.
5248         * lra-constraints.c: Likewise.
5249         * lra-eliminations.c: Likewise.
5250         * lra-lives.c: Likewise.
5251         * lra-remat.c: Likewise.
5252         * lra-spills.c: Likewise.
5253         * lra.c: Likewise.
5254         * lto-cgraph.c: Likewise.
5255         * lto-compress.c: Likewise.
5256         * lto-opts.c: Likewise.
5257         * lto-section-in.c: Likewise.
5258         * lto-section-out.c: Likewise.
5259         * lto-streamer-in.c: Likewise.
5260         * lto-streamer-out.c: Likewise.
5261         * lto-streamer.c: Likewise.
5262         * mcf.c: Likewise.
5263         * mode-switching.c: Likewise.
5264         * modulo-sched.c: Likewise.
5265         * omega.c: Likewise.
5266         * omp-low.c: Likewise.
5267         * optabs.c: Likewise.
5268         * opts-global.c: Likewise.
5269         * opts.h: Likewise.
5270         * passes.c: Likewise.
5271         * plugin.c: Likewise.
5272         * postreload-gcse.c: Likewise.
5273         * postreload.c: Likewise.
5274         * predict.c: Likewise.
5275         * pretty-print.h: Likewise.
5276         * print-rtl.c: Likewise.
5277         * print-tree.c: Likewise.
5278         * profile.c: Likewise.
5279         * real.c: Likewise.
5280         * realmpfr.c: Likewise.
5281         * recog.c: Likewise.
5282         * ree.c: Likewise.
5283         * reg-stack.c: Likewise.
5284         * regcprop.c: Likewise.
5285         * reginfo.c: Likewise.
5286         * regrename.c: Likewise.
5287         * regstat.c: Likewise.
5288         * reload.c: Likewise.
5289         * reload1.c: Likewise.
5290         * reorg.c: Likewise.
5291         * resource.c: Likewise.
5292         * rtl-chkp.c: Likewise.
5293         * rtl-error.c: Likewise.
5294         * rtlanal.c: Likewise.
5295         * rtlhooks.c: Likewise.
5296         * sanopt.c: Likewise.
5297         * sched-deps.c: Likewise.
5298         * sched-ebb.c: Likewise.
5299         * sched-rgn.c: Likewise.
5300         * sched-vis.c: Likewise.
5301         * sdbout.c: Likewise.
5302         * sel-sched-dump.c: Likewise.
5303         * sel-sched-ir.c: Likewise.
5304         * sel-sched.c: Likewise.
5305         * sese.c: Likewise.
5306         * shrink-wrap.c: Likewise.
5307         * simplify-rtx.c: Likewise.
5308         * stack-ptr-mod.c: Likewise.
5309         * statistics.c: Likewise.
5310         * stmt.c: Likewise.
5311         * stor-layout.c: Likewise.
5312         * store-motion.c: Likewise.
5313         * streamer-hooks.c: Likewise.
5314         * stringpool.c: Likewise.
5315         * symtab.c: Likewise.
5316         * target-globals.c: Likewise.
5317         * targhooks.c: Likewise.
5318         * toplev.c: Likewise.
5319         * tracer.c: Likewise.
5320         * trans-mem.c: Likewise.
5321         * tree-affine.c: Likewise.
5322         * tree-browser.c: Likewise.
5323         * tree-call-cdce.c: Likewise.
5324         * tree-cfg.c: Likewise.
5325         * tree-cfgcleanup.c: Likewise.
5326         * tree-chkp-opt.c: Likewise.
5327         * tree-chkp.c: Likewise.
5328         * tree-chrec.c: Likewise.
5329         * tree-complex.c: Likewise.
5330         * tree-data-ref.c: Likewise.
5331         * tree-dfa.c: Likewise.
5332         * tree-diagnostic.c: Likewise.
5333         * tree-dump.c: Likewise.
5334         * tree-eh.c: Likewise.
5335         * tree-emutls.c: Likewise.
5336         * tree-if-conv.c: Likewise.
5337         * tree-inline.c: Likewise.
5338         * tree-into-ssa.c: Likewise.
5339         * tree-iterator.c: Likewise.
5340         * tree-loop-distribution.c: Likewise.
5341         * tree-nested.c: Likewise.
5342         * tree-nrv.c: Likewise.
5343         * tree-object-size.c: Likewise.
5344         * tree-outof-ssa.c: Likewise.
5345         * tree-parloops.c: Likewise.
5346         * tree-phinodes.c: Likewise.
5347         * tree-predcom.c: Likewise.
5348         * tree-pretty-print.c: Likewise.
5349         * tree-profile.c: Likewise.
5350         * tree-scalar-evolution.c: Likewise.
5351         * tree-sra.c: Likewise.
5352         * tree-ssa-address.c: Likewise.
5353         * tree-ssa-alias.c: Likewise.
5354         * tree-ssa-ccp.c: Likewise.
5355         * tree-ssa-coalesce.c: Likewise.
5356         * tree-ssa-copy.c: Likewise.
5357         * tree-ssa-copyrename.c: Likewise.
5358         * tree-ssa-dce.c: Likewise.
5359         * tree-ssa-dom.c: Likewise.
5360         * tree-ssa-dse.c: Likewise.
5361         * tree-ssa-forwprop.c: Likewise.
5362         * tree-ssa-ifcombine.c: Likewise.
5363         * tree-ssa-live.c: Likewise.
5364         * tree-ssa-loop-ch.c: Likewise.
5365         * tree-ssa-loop-im.c: Likewise.
5366         * tree-ssa-loop-ivcanon.c: Likewise.
5367         * tree-ssa-loop-ivopts.c: Likewise.
5368         * tree-ssa-loop-manip.c: Likewise.
5369         * tree-ssa-loop-niter.c: Likewise.
5370         * tree-ssa-loop-prefetch.c: Likewise.
5371         * tree-ssa-loop-unswitch.c: Likewise.
5372         * tree-ssa-loop.c: Likewise.
5373         * tree-ssa-math-opts.c: Likewise.
5374         * tree-ssa-operands.c: Likewise.
5375         * tree-ssa-phiopt.c: Likewise.
5376         * tree-ssa-phiprop.c: Likewise.
5377         * tree-ssa-pre.c: Likewise.
5378         * tree-ssa-propagate.c: Likewise.
5379         * tree-ssa-reassoc.c: Likewise.
5380         * tree-ssa-sccvn.c: Likewise.
5381         * tree-ssa-scopedtables.c: Likewise.
5382         * tree-ssa-sink.c: Likewise.
5383         * tree-ssa-strlen.c: Likewise.
5384         * tree-ssa-structalias.c: Likewise.
5385         * tree-ssa-tail-merge.c: Likewise.
5386         * tree-ssa-ter.c: Likewise.
5387         * tree-ssa-threadedge.c: Likewise.
5388         * tree-ssa-threadupdate.c: Likewise.
5389         * tree-ssa-uncprop.c: Likewise.
5390         * tree-ssa-uninit.c: Likewise.
5391         * tree-ssa.c: Likewise.
5392         * tree-ssanames.c: Likewise.
5393         * tree-stdarg.c: Likewise.
5394         * tree-streamer-in.c: Likewise.
5395         * tree-streamer-out.c: Likewise.
5396         * tree-streamer.c: Likewise.
5397         * tree-switch-conversion.c: Likewise.
5398         * tree-tailcall.c: Likewise.
5399         * tree-vect-data-refs.c: Likewise.
5400         * tree-vect-generic.c: Likewise.
5401         * tree-vect-loop-manip.c: Likewise.
5402         * tree-vect-loop.c: Likewise.
5403         * tree-vect-patterns.c: Likewise.
5404         * tree-vect-slp.c: Likewise.
5405         * tree-vect-stmts.c: Likewise.
5406         * tree-vectorizer.c: Likewise.
5407         * tree-vrp.c: Likewise.
5408         * tree.c: Likewise.
5409         * tsan.c: Likewise.
5410         * ubsan.c: Likewise.
5411         * valtrack.c: Likewise.
5412         * value-prof.c: Likewise.
5413         * var-tracking.c: Likewise.
5414         * varasm.c: Likewise.
5415         * varpool.c: Likewise.
5416         * vmsdbgout.c: Likewise.
5417         * vtable-verify.c: Likewise.
5418         * web.c: Likewise.
5419         * wide-int.cc: Likewise.
5420         * xcoffout.c: Likewise.
5421         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
5422         * common/common-targhooks.c: Likewise.
5423         * config/aarch64/aarch64-builtins.c: Likewise.
5424         * config/aarch64/aarch64.c: Likewise.
5425         * config/alpha/alpha.c: Likewise.
5426         * config/arc/arc.c: Likewise.
5427         * config/arm/aarch-common.c: Likewise.
5428         * config/arm/arm-builtins.c: Likewise.
5429         * config/arm/arm-c.c: Likewise.
5430         * config/arm/arm.c: Likewise.
5431         * config/avr/avr-c.c: Likewise.
5432         * config/avr/avr-log.c: Likewise.
5433         * config/avr/avr.c: Likewise.
5434         * config/bfin/bfin.c: Likewise.
5435         * config/c6x/c6x.c: Likewise.
5436         * config/cr16/cr16.c: Likewise.
5437         * config/cris/cris.c: Likewise.
5438         * config/darwin-c.c: Likewise.
5439         * config/darwin.c: Likewise.
5440         * config/default-c.c: Likewise.
5441         * config/epiphany/epiphany.c: Likewise.
5442         * config/epiphany/mode-switch-use.c: Likewise.
5443         * config/epiphany/resolve-sw-modes.c: Likewise.
5444         * config/fr30/fr30.c: Likewise.
5445         * config/frv/frv.c: Likewise.
5446         * config/ft32/ft32.c: Likewise.
5447         * config/glibc-c.c: Likewise.
5448         * config/h8300/h8300.c: Likewise.
5449         * config/i386/i386-c.c: Likewise.
5450         * config/i386/i386.c: Likewise.
5451         * config/i386/msformat-c.c: Likewise.
5452         * config/i386/winnt-cxx.c: Likewise.
5453         * config/i386/winnt-stubs.c: Likewise.
5454         * config/i386/winnt.c: Likewise.
5455         * config/ia64/ia64-c.c: Likewise.
5456         * config/ia64/ia64.c: Likewise.
5457         * config/iq2000/iq2000.c: Likewise.
5458         * config/lm32/lm32.c: Likewise.
5459         * config/m32c/m32c-pragma.c: Likewise.
5460         * config/m32c/m32c.c: Likewise.
5461         * config/m32r/m32r.c: Likewise.
5462         * config/m68k/m68k.c: Likewise.
5463         * config/mcore/mcore.c: Likewise.
5464         * config/mep/mep-pragma.c: Likewise.
5465         * config/mep/mep.c: Likewise.
5466         * config/microblaze/microblaze-c.c: Likewise.
5467         * config/microblaze/microblaze.c: Likewise.
5468         * config/mips/mips.c: Likewise.
5469         * config/mmix/mmix.c: Likewise.
5470         * config/mn10300/mn10300.c: Likewise.
5471         * config/moxie/moxie.c: Likewise.
5472         * config/msp430/msp430-c.c: Likewise.
5473         * config/msp430/msp430.c: Likewise.
5474         * config/nds32/nds32-cost.c: Likewise.
5475         * config/nds32/nds32-fp-as-gp.c: Likewise.
5476         * config/nds32/nds32-intrinsic.c: Likewise.
5477         * config/nds32/nds32-isr.c: Likewise.
5478         * config/nds32/nds32-md-auxiliary.c: Likewise.
5479         * config/nds32/nds32-memory-manipulation.c: Likewise.
5480         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5481         * config/nds32/nds32-predicates.c: Likewise.
5482         * config/nds32/nds32.c: Likewise.
5483         * config/nios2/nios2.c: Likewise.
5484         * config/nvptx/nvptx.c: Likewise.
5485         * config/pa/pa.c: Likewise.
5486         * config/pdp11/pdp11.c: Likewise.
5487         * config/rl78/rl78-c.c: Likewise.
5488         * config/rl78/rl78.c: Likewise.
5489         * config/rs6000/rs6000-c.c: Likewise.
5490         * config/rs6000/rs6000.c: Likewise.
5491         * config/rx/rx.c: Likewise.
5492         * config/s390/s390-c.c: Likewise.
5493         * config/s390/s390.c: Likewise.
5494         * config/sh/sh-c.c: Likewise.
5495         * config/sh/sh-mem.cc: Likewise.
5496         * config/sh/sh.c: Likewise.
5497         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5498         * config/sh/sh_treg_combine.cc: Likewise.
5499         * config/sol2-c.c: Likewise.
5500         * config/sol2-cxx.c: Likewise.
5501         * config/sol2-stubs.c: Likewise.
5502         * config/sol2.c: Likewise.
5503         * config/sparc/sparc-c.c: Likewise.
5504         * config/sparc/sparc.c: Likewise.
5505         * config/spu/spu-c.c: Likewise.
5506         * config/spu/spu.c: Likewise.
5507         * config/stormy16/stormy16.c: Likewise.
5508         * config/tilegx/mul-tables.c: Likewise.
5509         * config/tilegx/tilegx-c.c: Likewise.
5510         * config/tilegx/tilegx.c: Likewise.
5511         * config/tilepro/mul-tables.c: Likewise.
5512         * config/tilepro/tilepro-c.c: Likewise.
5513         * config/tilepro/tilepro.c: Likewise.
5514         * config/v850/v850-c.c: Likewise.
5515         * config/v850/v850.c: Likewise.
5516         * config/vax/vax.c: Likewise.
5517         * config/visium/visium.c: Likewise.
5518         * config/vms/vms-c.c: Likewise.
5519         * config/vms/vms.c: Likewise.
5520         * config/vxworks.c: Likewise.
5521         * config/winnt-c.c: Likewise.
5522         * config/xtensa/xtensa.c: Likewise.
5523
5524 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
5525
5526         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
5527         function.
5528         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
5529
5530 2015-06-17  Richard Biener  <rguenther@suse.de>
5531
5532         PR tree-optimization/66251
5533         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
5534         stmts for SLP strided stores.
5535
5536         Revert
5537         2015-05-22  Richard Biener  <rguenther@suse.de>
5538
5539         PR tree-optimization/66251
5540         * tree-vect-stmts.c (vectorizable_conversion): Properly
5541         set STMT_VINFO_VEC_STMT even for the SLP case.
5542
5543         2015-05-26  Michael Matz  <matz@suse.de>
5544
5545         PR middle-end/66251
5546         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
5547         STMT_VINFO_VEC_STMT, also with SLP.
5548
5549 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
5550
5551         PR target/56766
5552         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
5553         (*avx_addsubv4df3_1s): Ditto.
5554         (*sse3_addsubv2df3_1): Ditto.
5555         (*sse3_addsubv2df3_1s): Ditto.
5556         (*avx_addsubv8sf3_1): Ditto.
5557         (*avx_addsubv8sf3_1s): Ditto.
5558         (*sse3_addsubv4sf3_1): Ditto.
5559         (*sse3_addsubv4sf3_1s): Ditto.
5560
5561 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
5562
5563         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
5564         (SYSROOT_SUFFIX_SPEC): Update.
5565         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
5566         (STARTFILE_PREFIX_SPEC): Update.
5567         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
5568         (MULTILIB_REQUIRED): New.
5569         (MULTILIB_OSDIRNAMES): New.
5570         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
5571         (MULTILIB_REQUIRED): New.
5572         (MULTILIB_OSDIRNAMES): New.
5573
5574 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
5575
5576         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
5577         * config/aarch64/aarch64-options-extensions.def: Update "fP",
5578         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
5579         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
5580         (AARCH64_FL_PAN): New.
5581         (AARCH64_FL_LOR): New.
5582         (AARCH64_FL_RDMA): New.
5583         (AARCH64_FL_FOR_ARCH8_1): New.
5584         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
5585         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
5586
5587 2015-06-16  Martin Liska  <mliska@suse.cz>
5588
5589         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
5590         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
5591         guard.
5592
5593 2015-06-16  Richard Biener  <rguenther@suse.de>
5594
5595         * tree-vect-stmts.c (vectorizable_store): Adjust.
5596         (vectorizable_load): Likewise.
5597         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5598         Simplify.
5599         (vect_create_data_ref_ptr): Likewise.
5600         (bump_vector_ptr): Adjust.
5601
5602 2015-06-16  Richard Biener  <rguenther@suse.de>
5603
5604         * tree-vect-stmts.c (vectorizable_load): Properly start loads
5605         with the first element if this is grouped loads.
5606
5607 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
5608
5609         * config/arm/arm-protos.h (struct tune_params): Rename
5610         log_op_non_sc to log_op_non_short_circuit, and rename enum
5611         values to expand SC to SHORT_CIRCUIT.
5612         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
5613         to LOG_OP_NON_SHORT_CIRCUIT.
5614         (arm_fastmul_tune):Likewise
5615         (arm_strongarm_tune): Likewise.
5616         (arm_xscale_tune): Likewise.
5617         (arm_9e_tune): Likewise.
5618         (arm_marvell_pj4_tune): Likewise.
5619         (arm_v6t2_tune): Likewise.
5620         (arm_cortex_tune): Likewise.
5621         (arm_cortex_a8_tune): Likewise.
5622         (arm_cortex_a7_tune): Likewise.
5623         (arm_cortex_a15_tune): Likewise.
5624         (arm_cortex_a53_tune): Likewise.
5625         (arm_cortex_a57_tune): Likewise.
5626         (arm_xgene1_tune): Likewise.
5627         (arm_cortex_a5_tune): Likewise.
5628         (arm_cortex_a9_tune): Likewise.
5629         (arm_cortex_a12_tune): Likewise.
5630         (arm_v7m_tune): Likewise.
5631         (arm_cortex_m7_tune): Likewise.
5632         (arm_v6m_tune): Likewise.
5633         (arm_fa726te_tune): Likewise.
5634
5635 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
5636
5637         * altivec.md: Delete UNSPEC_VMLADDUHM.
5638         (mulv4si3_p8): New pattern.
5639         (mulv4si3): Use it for POWER8.
5640         (mulv8hi3): Use vmladduhm with zero addend.
5641         (altivec_vmladduhm): Descriptive RTL.
5642
5643 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
5644
5645         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
5646         to use neon_move instead of mov_imm.
5647         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
5648         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
5649
5650         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
5651         aarch64_float_const_zero_rtx_p check before TFmode check.
5652         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
5653         an fp zero.
5654         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
5655         code and attributes to match.  Change condition from register_operand
5656         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
5657         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
5658         to store2.
5659
5660 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
5661
5662         PR debug/66535
5663         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
5664         there is no parent.
5665
5666 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
5667
5668         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
5669         HOST_WIDE_INT parameter.
5670
5671 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
5672
5673         PR ipa/66181
5674         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
5675         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
5676         TYPE_NO_FORCE_BLK.
5677         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5678
5679 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
5680
5681         * rtl.h (classify_insn): Declare.
5682         * emit-rtl.c (classify_insn): Move to...
5683         * rtl.c: ...here and add generator support.
5684         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
5685         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
5686         * genemit.c (gen_emit_seq): New function.
5687         (gen_expand, gen_split): Use it.
5688
5689 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
5690
5691         * tree.c (make_vector_stat): Fix comment to state that the
5692         function returns a VECTOR_CST.
5693
5694 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
5695
5696         * gensupport.h (add_implicit_parallel): Declare.
5697         * genrecog.c (add_implicit_parallel): Move to...
5698         * gensupport.c (add_implicit_parallel): ...here.
5699         (process_one_cond_exec): Use it.
5700         * genemit.c (gen_insn): Likewise.
5701
5702 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
5703
5704         PR bootstrap/66448
5705         * passes.c (rest_of_decl_compilation): Do not register globals for
5706         early debug if they are declared in built-ins.
5707
5708 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
5709
5710         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
5711
5712 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5713
5714         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
5715         manually swapping.
5716         (noce_try_cmove_arith): Likewise.
5717         (noce_get_alt_condition): Likewise.
5718
5719 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5720
5721         * common/config/i386/i386-common.c
5722         (OPTION_MASK_ISA_MWAITX_SET): New.
5723         (ix86_handle_option): Handle mwaitx.
5724         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
5725         (x86_64-*-*): Likewise.
5726         * config/i386/mwaitxintrin.h: New header.
5727         * config/i386/cpuid.h (bit_MWAITX):  Define.
5728         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5729         MWAITX support.
5730         * config/i386/i386.opt (mwaitx): New.
5731         * config/i386/i386-builtin-types.def
5732         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
5733         * config/i386/i386-c.c: Define __MWAITX__ if needed.
5734         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
5735         (PTA_MWAITX): New.
5736         (ix86_option_override_internal): Handle new option.
5737         (processor_alias_table): Added PTA_MWAITX.
5738         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
5739         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
5740         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
5741         IX86_BUILTIN_MONITORX  built-ins.
5742         * config/i386/i386.h (TARGET_MWAITX): New.
5743         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
5744         UNSPEC_MONITORX.
5745         (mwaitx):  New pattern.
5746         (monitorx_<mode>): New pattern.
5747         * config/i386/x86intrin.h: Include mwaitxintrin.h.
5748         * doc/extend.texi: Document monitorx and mwaitx builtins.
5749         * doc/invoke.texi: Document -mmwaitx option.
5750
5751 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
5752
5753         * emit-rtl.c (need_atomic_barrier_p): Mask model with
5754         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
5755
5756 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
5757
5758         * dbxout.c (xcoff_debug_hooks): Provide a function for
5759         register_main_translation_unit hook.
5760
5761 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
5762
5763         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
5764         variants cases from switch.
5765         (rs6000_post_atomic_barrier): Same.
5766         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
5767         (rs6000_expand_atomic_exchange): Same.
5768         (rs6000_expand_atomic_op): Same.
5769         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
5770         SYNC variants cases from switch.
5771         (atomic_load): Same.
5772         (atomic_store): Same.
5773
5774 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
5775
5776         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
5777         CONST_INT for goto.
5778
5779 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
5780
5781         PR bootstrap/66448
5782         * dwarf2out.c (check_die): Check for common duplicate attributes.
5783         (add_location_or_const_value_attribute): Do not add duplicate
5784         attributes.
5785         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
5786         time around.
5787         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
5788         (gen_type_die_with_usage): Call check_die.
5789         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
5790
5791 2015-06-11  Jason Merrill  <jason@redhat.com>
5792
5793         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
5794         dies.
5795
5796 2015-06-11  Marek Polacek  <polacek@redhat.com>
5797
5798         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
5799
5800 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
5801
5802         PR bootstrap/66252
5803         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
5804         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
5805         (*addx_extend_sp32): Fix pasto.
5806         (*subx_extend): Rename into...
5807         (*subx_extend_sp32): ...this.
5808         (*adddi3_extend_sp32): Add earlyclobber.
5809         (*subdi3_insn_sp32): Likewise.
5810         (*subdi3_extend_sp32): Likewise.
5811         (*and_not_di_sp32): Likewise.
5812         (*or_not_di_sp32): Likewise.
5813         (*xor_not_di_sp32): Likewise.
5814         (*negdi2_sp32): Likewise.
5815         (*one_cmpldi2_sp32): Likewise.
5816
5817 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
5818
5819         * debug.h (struct gcc_debug_hooks): Add a
5820         register_main_translation_unit hook.
5821         * debug.c (do_nothing_debug_hooks): Provide a function for this
5822         new hook.
5823         * dbxout.c (dbx_debug_hooks): Likewise.
5824         * sdbout.c (sdb_debug_hooks): Likewise.
5825         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5826         * dwarf2out.c (main_translation_unit): New global variable.
5827         (dwarf2out_register_main_translation_unit): New function
5828         implementing the new hook.
5829         (dwarf2_debug_hooks): Assign
5830         dwarf2out_register_main_translation_unit to this new hook.
5831         (dwarf2out_init): Associate any main translation unit to
5832         comp_unit_die ().
5833
5834 2015-06-11  Marek Polacek  <polacek@redhat.com>
5835
5836         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
5837
5838 2015-06-11  Marek Polacek  <polacek@redhat.com>
5839
5840         * match.pd: Use single_use throughout.
5841
5842 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5843
5844         * config/arm/arm.c (arm_option_params_internal): When optimising
5845         for speed set max_insns_skipped when arm_restrict_it.
5846
5847 2015-06-11  Christian Bruel  <christian.bruel@st.com>
5848
5849         PR target/52144
5850         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
5851          macros in ...
5852         (arm_cpu_builtins): New function.
5853         (arm_pragma_target_parse): Call arm_cpu_builtins.
5854         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
5855         (arm_register_target_pragmas): Likewise.
5856         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
5857          Call arm_register_target_pragmas.
5858         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
5859         (arm_pragma_target_parse): Likewise.
5860
5861 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
5862
5863         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
5864         of the second operand.
5865
5866 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
5867
5868         PR target/66473
5869         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
5870         to prepare mask operand for AVX512 modes.
5871
5872 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5873
5874         PR target/66474
5875         * doc/md.texi (Machine Constraints): Document that on the PowerPC
5876         if you use a constraint that targets a VSX register, you must use
5877         %x<n> in the template.
5878
5879 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
5880
5881         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
5882         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
5883         (define_insn "trap"): New definition.
5884
5885 2015-06-10  Richard Biener  <rguenther@suse.de>
5886
5887         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
5888         out from ...
5889         (vect_supported_load_permutation_p): ... here.  Handle
5890         supportable permutations in reductions.
5891         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
5892         for vectorizing strided group loads.
5893
5894 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
5895
5896         PR target/66470
5897         * config/i386/i386.c (ix86_split_long_move): For collisions
5898         involving direct tls segment refs, move the UNSPEC_TP possibly
5899         wrapped in ZERO_EXTEND out of the address for lea, to each of
5900         the memory loads.
5901
5902 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5903
5904         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
5905         dmb sy. Adjust tabs.
5906
5907 2015-06-10  Tom de Vries  <tom@codesourcery.com>
5908
5909         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
5910
5911 2015-06-10  Martin Liska  <mliska@suse.cz>
5912
5913         PR bootstrap/66471
5914         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
5915         all enum values in mem_alloc_origin.
5916         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
5917         name.
5918         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
5919         * bitmap.c (bitmap_register): Likewise.
5920         (dump_bitmap_statistics): Likewise.
5921         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5922         (ggc_record_overhead): Likewise.
5923         * hash-map.h: Likewise.
5924         * hash-set.h: Likewise.
5925         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
5926         * hash-table.h: Likewise.
5927         * vec.c (vec_prefix::register_overhead): Likewise.
5928         (vec_prefix::release_overhead): Likewise.
5929         (dump_vec_loc_statistics): Likewise.
5930
5931 2015-06-09  Christian Bruel  <christian.bruel@st.com>
5932
5933         PR target/52144
5934         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
5935         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
5936         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
5937         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
5938         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
5939         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
5940         (arm_valid_target_attribute_p): Likewise.
5941         (arm_set_current_function, arm_can_inline_p): Likewise.
5942         (arm_valid_target_attribute_rec): Likewise.
5943         (arm_previous_fndecl): New variable.
5944         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5945         (TARGET_CAN_INLINE_P): Define.
5946         (arm_asm_trampoline_template): Emit mode.
5947         (arm_file_start): Don't set unified syntax.
5948         (arm_declare_function_name): Set unified syntax and mode.
5949         (arm_option_override): Init target_option_default_node.
5950         and target_option_current_node.
5951         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
5952         (*call_symbol): Likewise.
5953         * doc/extend.texi: Document ARM/Thumb target attribute.
5954         * doc/invoke.texi: Likewise.
5955
5956 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
5957
5958         Revert:
5959         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
5960         PR rtl-optimization/64164
5961         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5962         * tree-ssa-copyrename.c: Removed.
5963         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
5964         -ftree-coalesce-vars.
5965         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5966         * common.opt (ftree-copyrename): Ignore.
5967         (ftree-coalesce-inlined-vars): Likewise.
5968         * doc/invoke.texi: Remove the ignored options above.
5969         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5970         * tree-ssa-coalesce.h: ... here.
5971         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5972         headers required by it.
5973         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5974         across variables when flag_tree_coalesce_vars.  Check register
5975         use and promoted modes to allow coalescing.  Moved to
5976         tree-ssa-coalesce.c.
5977         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5978         with its member functions to tree-ssa-coalesce.c.
5979         (var_map_base_init): Likewise.  Renamed to
5980         compute_samebase_partition_bases.
5981         (partition_view_normal): Drop want_bases parameter.
5982         (partition_view_bitmap): Likewise.
5983         * tree-ssa-live.h: Adjust declarations.
5984         * tree-ssa-coalesce.c: Include explow.h.
5985         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5986         default defs at the entry point.
5987         (dump_part_var_map): New.
5988         (compute_optimized_partition_bases): New, called by...
5989         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5990         of compute_samebase_partition_bases.  Adjust.
5991         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5992         * cfgexpand.c (leader_merge): New.
5993         (get_rtl_for_parm_ssa_default_def): New.
5994         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5995         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5996         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
5997         redundant MEM attr setting.
5998         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
5999         from...
6000         (expand_one_stack_var): ... this.  New wrapper to check and
6001         skip already expanded SSA partitions.
6002         (record_alignment_for_reg_var): New, factored out of...
6003         (expand_one_var): ... this.
6004         (expand_one_ssa_partition): New.
6005         (adjust_one_expanded_partition_var): New.
6006         (expand_one_register_var): Check and skip already expanded SSA
6007         partitions.
6008         (expand_used_vars): Don't create DECLs for anonymous SSA
6009         names.  Expand all SSA partitions, then adjust all SSA names.
6010         (pass::execute): Replace the loops that set
6011         SA.partition_to_pseudo from partition leaders and cleared
6012         DECL_RTL for multi-location variables, and that which used to
6013         rename vars and set attrs, with one that clears DECL_RTL and
6014         checks that PARMs and RESULTs default_defs match DECL_RTL.
6015         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6016         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6017         * explow.c (promote_ssa_mode): New.
6018         * explow.h (promote_ssa_mode): Declare.
6019         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6020         * function.c: Include cfgexpand.h.
6021         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6022         (use_register_for_parm_decl): Wrapper for the above to
6023         special-case the result_ptr.
6024         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6025         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6026         multiple locations.
6027         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6028         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6029         (assign_parm_setup_block): Prefer SSA-assigned location.
6030         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6031         if stack_parm is NULL.
6032         (assign_parm_setup_stack): Prefer SSA-assigned location.
6033         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6034         rtl before testing for pointer bounds.  Special-case result_ptr.
6035         (expand_function_start): Maybe reset DECL_RTL of result.
6036         Prefer SSA-assigned location for result and static chain.
6037         Factor out DECL_RESULT and SET_DECL_RTL.
6038         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6039         anonymous SSA names.  Use promote_ssa_mode.
6040         (get_temp_reg): Likewise.
6041         (remove_ssa_form): Adjust.
6042         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6043         and get its reg_usage for reg invalidation.
6044         (compute_bb_dataflow): Pass it insn.
6045         (emit_notes_in_bb): Likewise.
6046         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6047         fail assert on conversion between unsigned types.
6048
6049 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6050
6051         PR tree-optimization/65460
6052         * omp-low.c (expand_omp_target): Set parallelized_function on
6053         cgraph_node for child_fn.
6054
6055 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6056
6057         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6058         parallelized_function before add_new_function.
6059
6060 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
6061
6062         * gcc-plugin.h: Move decls to plugin.h and include it.
6063         * plugin.h: Relocate decls from gcc-plugin.h
6064         * ggc-page.c: Include required header files.
6065         * passes.c: Likewise.
6066         * cgraphunit.c: Likewise.
6067
6068 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6069
6070         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6071
6072 2015-06-09  Jason Merrill  <jason@redhat.com>
6073
6074         PR bootstrap/66448
6075         * toplev.c (check_global_declaration): Don't warn about a clone.
6076
6077 2015-06-09  Marek Polacek  <polacek@redhat.com>
6078
6079         PR tree-optimization/66299
6080         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6081         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6082         patterns.
6083
6084 2015-06-09  Richard Biener  <rguenther@suse.de>
6085
6086         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6087         (vect_analyze_slp_instance): Instead do not falsely drop
6088         load permutations.
6089
6090 2015-06-09  Richard Biener  <rguenther@suse.de>
6091
6092         PR middle-end/66423
6093         * match.pd: Handle A % (unsigned)(1 << B).
6094
6095 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
6096
6097         * varasm.c (output_object_block_htab): Remove.
6098         (output_object_block_compare): New.
6099         (output_object_blocks): Sort named object_blocks before outputting
6100         them.
6101
6102 2015-06-09  Richard Biener  <rguenther@suse.de>
6103
6104         PR tree-optimization/66419
6105         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6106         consider GROUP_GAP when detecting a perfect subchain.
6107
6108 2015-06-09  Nick Clifton  <nickc@redhat.com>
6109
6110         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6111         place read only data in the .frodata section.
6112
6113 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
6114
6115         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6116         (atomic_store<mode>): Likewise.
6117
6118 2015-06-09  Richard Biener  <rguenther@suse.de>
6119
6120         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6121
6122 2015-06-09  Richard Biener  <rguenther@suse.de>
6123
6124         PR middle-end/66413
6125         * tree-inline.c (insert_init_debug_bind): Unshare value.
6126
6127 2015-06-09  Richard Biener  <rguenther@suse.de>
6128
6129         PR tree-optimization/66396
6130         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6131         Rename virtual operands.
6132
6133 2015-06-09  Tom de Vries  <tom@codesourcery.com>
6134
6135         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6136         always return false.
6137
6138 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6139
6140         PR rtl-optimization/64164
6141         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6142         * tree-ssa-copyrename.c: Removed.
6143         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6144         -ftree-coalesce-vars.
6145         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6146         * common.opt (ftree-copyrename): Ignore.
6147         (ftree-coalesce-inlined-vars): Likewise.
6148         * doc/invoke.texi: Remove the ignored options above.
6149         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6150         * tree-ssa-coalesce.h: ... here.
6151         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6152         headers required by it.
6153         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6154         across variables when flag_tree_coalesce_vars.  Check register
6155         use and promoted modes to allow coalescing.  Moved to
6156         tree-ssa-coalesce.c.
6157         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6158         with its member functions to tree-ssa-coalesce.c.
6159         (var_map_base_init): Likewise.  Renamed to
6160         compute_samebase_partition_bases.
6161         (partition_view_normal): Drop want_bases parameter.
6162         (partition_view_bitmap): Likewise.
6163         * tree-ssa-live.h: Adjust declarations.
6164         * tree-ssa-coalesce.c: Include explow.h.
6165         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6166         default defs at the entry point.
6167         (dump_part_var_map): New.
6168         (compute_optimized_partition_bases): New, called by...
6169         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6170         of compute_samebase_partition_bases.  Adjust.
6171         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6172         * cfgexpand.c (leader_merge): New.
6173         (get_rtl_for_parm_ssa_default_def): New.
6174         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6175         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6176         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6177         redundant MEM attr setting.
6178         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6179         from...
6180         (expand_one_stack_var): ... this.  New wrapper to check and
6181         skip already expanded SSA partitions.
6182         (record_alignment_for_reg_var): New, factored out of...
6183         (expand_one_var): ... this.
6184         (expand_one_ssa_partition): New.
6185         (adjust_one_expanded_partition_var): New.
6186         (expand_one_register_var): Check and skip already expanded SSA
6187         partitions.
6188         (expand_used_vars): Don't create DECLs for anonymous SSA
6189         names.  Expand all SSA partitions, then adjust all SSA names.
6190         (pass::execute): Replace the loops that set
6191         SA.partition_to_pseudo from partition leaders and cleared
6192         DECL_RTL for multi-location variables, and that which used to
6193         rename vars and set attrs, with one that clears DECL_RTL and
6194         checks that PARMs and RESULTs default_defs match DECL_RTL.
6195         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6196         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6197         * explow.c (promote_ssa_mode): New.
6198         * explow.h (promote_ssa_mode): Declare.
6199         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6200         * function.c: Include cfgexpand.h.
6201         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6202         (use_register_for_parm_decl): Wrapper for the above to
6203         special-case the result_ptr.
6204         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6205         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6206         multiple locations.
6207         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6208         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6209         (assign_parm_setup_block): Prefer SSA-assigned location.
6210         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6211         if stack_parm is NULL.
6212         (assign_parm_setup_stack): Prefer SSA-assigned location.
6213         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6214         rtl before testing for pointer bounds.  Special-case result_ptr.
6215         (expand_function_start): Maybe reset DECL_RTL of result.
6216         Prefer SSA-assigned location for result and static chain.
6217         Factor out DECL_RESULT and SET_DECL_RTL.
6218         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6219         anonymous SSA names.  Use promote_ssa_mode.
6220         (get_temp_reg): Likewise.
6221         (remove_ssa_form): Adjust.
6222         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6223         and get its reg_usage for reg invalidation.
6224         (compute_bb_dataflow): Pass it insn.
6225         (emit_notes_in_bb): Likewise.
6226         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6227         fail assert on conversion between unsigned types.
6228
6229 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
6230
6231         PR debug/58315
6232         * tree-inline.c (reset_debug_binding): New.
6233         (reset_debug_bindings): Likewise.
6234         (expand_call_inline): Call it.
6235
6236 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6237
6238         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6239         TYPE_STRING_FLAG.
6240
6241 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6242
6243         * lto-streamer-out.c (lto_output_location): Stream
6244         reserved locations correctly.
6245         * lto-streamer-in.c (lto_output_location): Likewise.
6246
6247 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
6248
6249         * coretypes.h: Include hash-table.h and hash-set.h for host files.
6250         * ggc.h: Don't include statistics.h>
6251         * hash-map.h: Remove all includes.
6252         * hash-set.h: Likewise.
6253         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6254         the include list. Remove <new>.
6255         * inchash.h: Remove all includes.
6256         * mem-stats.h: Likewise.
6257         * vec.h: No special processing for generators or ggc.
6258         * alias.c : Adjust include files.
6259         * alloc-pool.c : Likewise.
6260         * alloc-pool.h : Likewise.
6261         * asan.c : Likewise.
6262         * attribs.c : Likewise.
6263         * auto-inc-dec.c : Likewise.
6264         * auto-profile.c : Likewise.
6265         * bb-reorder.c : Likewise.
6266         * bitmap.c : Likewise.
6267         * bitmap.h : Likewise.
6268         * bt-load.c : Likewise.
6269         * builtins.c : Likewise.
6270         * caller-save.c : Likewise.
6271         * calls.c : Likewise.
6272         * ccmp.c : Likewise.
6273         * cfg.c : Likewise.
6274         * cfganal.c : Likewise.
6275         * cfgbuild.c : Likewise.
6276         * cfgcleanup.c : Likewise.
6277         * cfgexpand.c : Likewise.
6278         * cfghooks.c : Likewise.
6279         * cfgloop.c : Likewise.
6280         * cfgloop.h : Likewise.
6281         * cfgloopanal.c : Likewise.
6282         * cfgloopmanip.c : Likewise.
6283         * cfgrtl.c : Likewise.
6284         * cgraph.c : Likewise.
6285         * cgraphbuild.c : Likewise.
6286         * cgraphclones.c : Likewise.
6287         * cgraphunit.c : Likewise.
6288         * cilk-common.c : Likewise.
6289         * combine-stack-adj.c : Likewise.
6290         * combine.c : Likewise.
6291         * compare-elim.c : Likewise.
6292         * context.c : Likewise.
6293         * convert.c : Likewise.
6294         * coverage.c : Likewise.
6295         * cppbuiltin.c : Likewise.
6296         * cprop.c : Likewise.
6297         * cse.c : Likewise.
6298         * cselib.c : Likewise.
6299         * data-streamer-in.c : Likewise.
6300         * data-streamer-out.c : Likewise.
6301         * data-streamer.c : Likewise.
6302         * data-streamer.h : Likewise.
6303         * dbxout.c : Likewise.
6304         * dce.c : Likewise.
6305         * ddg.c : Likewise.
6306         * debug.c : Likewise.
6307         * df-core.c : Likewise.
6308         * df-problems.c : Likewise.
6309         * df-scan.c : Likewise.
6310         * df.h : Likewise.
6311         * dfp.c : Likewise.
6312         * dojump.c : Likewise.
6313         * dominance.c : Likewise.
6314         * domwalk.c : Likewise.
6315         * double-int.c : Likewise.
6316         * dse.c : Likewise.
6317         * dumpfile.c : Likewise.
6318         * dwarf2asm.c : Likewise.
6319         * dwarf2cfi.c : Likewise.
6320         * dwarf2out.c : Likewise.
6321         * emit-rtl.c : Likewise.
6322         * et-forest.c : Likewise.
6323         * except.c : Likewise.
6324         * except.h : Likewise.
6325         * explow.c : Likewise.
6326         * expmed.c : Likewise.
6327         * expr.c : Likewise.
6328         * final.c : Likewise.
6329         * fixed-value.c : Likewise.
6330         * fold-const.c : Likewise.
6331         * function.c : Likewise.
6332         * fwprop.c : Likewise.
6333         * gcc-plugin.h : Likewise.
6334         * gcc.c : Likewise.
6335         * gcse-common.c : Likewise.
6336         * gcse.c : Likewise.
6337         * genattrtab.c : Likewise.
6338         * genautomata.c : Likewise.
6339         * genconditions.c : Likewise.
6340         * genemit.c : Likewise.
6341         * generic-match-head.c : Likewise.
6342         * genextract.c : Likewise.
6343         * gengtype-state.c : Likewise.
6344         * gengtype.c : Likewise.
6345         * genhooks.c : Likewise.
6346         * genmatch.c : Likewise.
6347         * genmodes.c : Likewise.
6348         * genrecog.c : Likewise.
6349         * gensupport.c : Likewise.
6350         * ggc-common.c : Likewise.
6351         * ggc-internal.h : Likewise.
6352         * ggc-none.c : Likewise.
6353         * ggc-page.c : Likewise.
6354         * gimple-builder.c : Likewise.
6355         * gimple-expr.c : Likewise.
6356         * gimple-fold.c : Likewise.
6357         * gimple-iterator.c : Likewise.
6358         * gimple-low.c : Likewise.
6359         * gimple-match-head.c : Likewise.
6360         * gimple-pretty-print.c : Likewise.
6361         * gimple-ssa-isolate-paths.c : Likewise.
6362         * gimple-ssa-strength-reduction.c : Likewise.
6363         * gimple-ssa.h : Likewise.
6364         * gimple-streamer-in.c : Likewise.
6365         * gimple-streamer-out.c : Likewise.
6366         * gimple-streamer.h : Likewise.
6367         * gimple-walk.c : Likewise.
6368         * gimple.c : Likewise.
6369         * gimplify-me.c : Likewise.
6370         * gimplify.c : Likewise.
6371         * godump.c : Likewise.
6372         * graph.c : Likewise.
6373         * graphds.c : Likewise.
6374         * graphite-blocking.c : Likewise.
6375         * graphite-dependences.c : Likewise.
6376         * graphite-interchange.c : Likewise.
6377         * graphite-isl-ast-to-gimple.c : Likewise.
6378         * graphite-optimize-isl.c : Likewise.
6379         * graphite-poly.c : Likewise.
6380         * graphite-scop-detection.c : Likewise.
6381         * graphite-sese-to-poly.c : Likewise.
6382         * graphite.c : Likewise.
6383         * haifa-sched.c : Likewise.
6384         * hard-reg-set.h : Likewise.
6385         * hw-doloop.c : Likewise.
6386         * ifcvt.c : Likewise.
6387         * inchash.c : Likewise.
6388         * incpath.c : Likewise.
6389         * init-regs.c : Likewise.
6390         * input.c : Likewise.
6391         * internal-fn.c : Likewise.
6392         * ipa-chkp.c : Likewise.
6393         * ipa-comdats.c : Likewise.
6394         * ipa-cp.c : Likewise.
6395         * ipa-devirt.c : Likewise.
6396         * ipa-icf-gimple.c : Likewise.
6397         * ipa-icf.c : Likewise.
6398         * ipa-inline-analysis.c : Likewise.
6399         * ipa-inline-transform.c : Likewise.
6400         * ipa-inline.c : Likewise.
6401         * ipa-polymorphic-call.c : Likewise.
6402         * ipa-profile.c : Likewise.
6403         * ipa-prop.c : Likewise.
6404         * ipa-pure-const.c : Likewise.
6405         * ipa-ref.c : Likewise.
6406         * ipa-reference.c : Likewise.
6407         * ipa-split.c : Likewise.
6408         * ipa-utils.c : Likewise.
6409         * ipa-visibility.c : Likewise.
6410         * ipa.c : Likewise.
6411         * ira-build.c : Likewise.
6412         * ira-color.c : Likewise.
6413         * ira-conflicts.c : Likewise.
6414         * ira-costs.c : Likewise.
6415         * ira-emit.c : Likewise.
6416         * ira-lives.c : Likewise.
6417         * ira.c : Likewise.
6418         * jump.c : Likewise.
6419         * langhooks.c : Likewise.
6420         * lcm.c : Likewise.
6421         * libfuncs.h : Likewise.
6422         * lists.c : Likewise.
6423         * loop-doloop.c : Likewise.
6424         * loop-init.c : Likewise.
6425         * loop-invariant.c : Likewise.
6426         * loop-iv.c : Likewise.
6427         * loop-unroll.c : Likewise.
6428         * lower-subreg.c : Likewise.
6429         * lra-assigns.c : Likewise.
6430         * lra-coalesce.c : Likewise.
6431         * lra-constraints.c : Likewise.
6432         * lra-eliminations.c : Likewise.
6433         * lra-lives.c : Likewise.
6434         * lra-remat.c : Likewise.
6435         * lra-spills.c : Likewise.
6436         * lra.c : Likewise.
6437         * lto-cgraph.c : Likewise.
6438         * lto-compress.c : Likewise.
6439         * lto-opts.c : Likewise.
6440         * lto-section-in.c : Likewise.
6441         * lto-section-out.c : Likewise.
6442         * lto-streamer-in.c : Likewise.
6443         * lto-streamer-out.c : Likewise.
6444         * lto-streamer.c : Likewise.
6445         * lto-streamer.h : Likewise.
6446         * mcf.c : Likewise.
6447         * mode-switching.c : Likewise.
6448         * modulo-sched.c : Likewise.
6449         * omega.c : Likewise.
6450         * omp-low.c : Likewise.
6451         * optabs.c : Likewise.
6452         * opts-global.c : Likewise.
6453         * opts.h : Likewise.
6454         * passes.c : Likewise.
6455         * plugin.c : Likewise.
6456         * postreload-gcse.c : Likewise.
6457         * postreload.c : Likewise.
6458         * predict.c : Likewise.
6459         * print-rtl.c : Likewise.
6460         * print-tree.c : Likewise.
6461         * profile.c : Likewise.
6462         * read-md.c : Likewise.
6463         * read-md.h : Likewise.
6464         * read-rtl.c : Likewise.
6465         * real.c : Likewise.
6466         * realmpfr.c : Likewise.
6467         * recog.c : Likewise.
6468         * ree.c : Likewise.
6469         * reg-stack.c : Likewise.
6470         * regcprop.c : Likewise.
6471         * reginfo.c : Likewise.
6472         * regrename.c : Likewise.
6473         * regstat.c : Likewise.
6474         * reload.c : Likewise.
6475         * reload1.c : Likewise.
6476         * reorg.c : Likewise.
6477         * resource.c : Likewise.
6478         * rtl-chkp.c : Likewise.
6479         * rtl.c : Likewise.
6480         * rtl.h : Likewise.
6481         * rtlanal.c : Likewise.
6482         * rtlhash.c : Likewise.
6483         * rtlhash.h : Likewise.
6484         * rtlhooks.c : Likewise.
6485         * sanopt.c : Likewise.
6486         * sched-deps.c : Likewise.
6487         * sched-ebb.c : Likewise.
6488         * sched-rgn.c : Likewise.
6489         * sched-vis.c : Likewise.
6490         * sdbout.c : Likewise.
6491         * sel-sched-dump.c : Likewise.
6492         * sel-sched-ir.c : Likewise.
6493         * sel-sched-ir.h : Likewise.
6494         * sel-sched.c : Likewise.
6495         * sese.c : Likewise.
6496         * shrink-wrap.c : Likewise.
6497         * shrink-wrap.h : Likewise.
6498         * simplify-rtx.c : Likewise.
6499         * stack-ptr-mod.c : Likewise.
6500         * statistics.c : Likewise.
6501         * stmt.c : Likewise.
6502         * stor-layout.c : Likewise.
6503         * store-motion.c : Likewise.
6504         * stringpool.c : Likewise.
6505         * symtab.c : Likewise.
6506         * target-globals.c : Likewise.
6507         * targhooks.c : Likewise.
6508         * tlink.c : Likewise.
6509         * toplev.c : Likewise.
6510         * tracer.c : Likewise.
6511         * trans-mem.c : Likewise.
6512         * tree-affine.c : Likewise.
6513         * tree-affine.h : Likewise.
6514         * tree-browser.c : Likewise.
6515         * tree-call-cdce.c : Likewise.
6516         * tree-cfg.c : Likewise.
6517         * tree-cfgcleanup.c : Likewise.
6518         * tree-chkp-opt.c : Likewise.
6519         * tree-chkp.c : Likewise.
6520         * tree-chrec.c : Likewise.
6521         * tree-complex.c : Likewise.
6522         * tree-data-ref.c : Likewise.
6523         * tree-dfa.c : Likewise.
6524         * tree-diagnostic.c : Likewise.
6525         * tree-dump.c : Likewise.
6526         * tree-eh.c : Likewise.
6527         * tree-eh.h : Likewise.
6528         * tree-emutls.c : Likewise.
6529         * tree-hasher.h : Likewise.
6530         * tree-if-conv.c : Likewise.
6531         * tree-inline.c : Likewise.
6532         * tree-inline.h : Likewise.
6533         * tree-into-ssa.c : Likewise.
6534         * tree-iterator.c : Likewise.
6535         * tree-loop-distribution.c : Likewise.
6536         * tree-nested.c : Likewise.
6537         * tree-nrv.c : Likewise.
6538         * tree-object-size.c : Likewise.
6539         * tree-outof-ssa.c : Likewise.
6540         * tree-parloops.c : Likewise.
6541         * tree-phinodes.c : Likewise.
6542         * tree-predcom.c : Likewise.
6543         * tree-pretty-print.c : Likewise.
6544         * tree-profile.c : Likewise.
6545         * tree-scalar-evolution.c : Likewise.
6546         * tree-sra.c : Likewise.
6547         * tree-ssa-address.c : Likewise.
6548         * tree-ssa-alias.c : Likewise.
6549         * tree-ssa-ccp.c : Likewise.
6550         * tree-ssa-coalesce.c : Likewise.
6551         * tree-ssa-copy.c : Likewise.
6552         * tree-ssa-copyrename.c : Likewise.
6553         * tree-ssa-dce.c : Likewise.
6554         * tree-ssa-dom.c : Likewise.
6555         * tree-ssa-dse.c : Likewise.
6556         * tree-ssa-forwprop.c : Likewise.
6557         * tree-ssa-ifcombine.c : Likewise.
6558         * tree-ssa-live.c : Likewise.
6559         * tree-ssa-loop-ch.c : Likewise.
6560         * tree-ssa-loop-im.c : Likewise.
6561         * tree-ssa-loop-ivcanon.c : Likewise.
6562         * tree-ssa-loop-ivopts.c : Likewise.
6563         * tree-ssa-loop-manip.c : Likewise.
6564         * tree-ssa-loop-niter.c : Likewise.
6565         * tree-ssa-loop-prefetch.c : Likewise.
6566         * tree-ssa-loop-unswitch.c : Likewise.
6567         * tree-ssa-loop.c : Likewise.
6568         * tree-ssa-math-opts.c : Likewise.
6569         * tree-ssa-operands.c : Likewise.
6570         * tree-ssa-phiopt.c : Likewise.
6571         * tree-ssa-phiprop.c : Likewise.
6572         * tree-ssa-pre.c : Likewise.
6573         * tree-ssa-propagate.c : Likewise.
6574         * tree-ssa-reassoc.c : Likewise.
6575         * tree-ssa-sccvn.c : Likewise.
6576         * tree-ssa-scopedtables.c : Likewise.
6577         * tree-ssa-sink.c : Likewise.
6578         * tree-ssa-strlen.c : Likewise.
6579         * tree-ssa-structalias.c : Likewise.
6580         * tree-ssa-tail-merge.c : Likewise.
6581         * tree-ssa-ter.c : Likewise.
6582         * tree-ssa-threadedge.c : Likewise.
6583         * tree-ssa-threadupdate.c : Likewise.
6584         * tree-ssa-uncprop.c : Likewise.
6585         * tree-ssa-uninit.c : Likewise.
6586         * tree-ssa.c : Likewise.
6587         * tree-ssanames.c : Likewise.
6588         * tree-stdarg.c : Likewise.
6589         * tree-streamer-in.c : Likewise.
6590         * tree-streamer-out.c : Likewise.
6591         * tree-streamer.c : Likewise.
6592         * tree-streamer.h : Likewise.
6593         * tree-switch-conversion.c : Likewise.
6594         * tree-tailcall.c : Likewise.
6595         * tree-vect-data-refs.c : Likewise.
6596         * tree-vect-generic.c : Likewise.
6597         * tree-vect-loop-manip.c : Likewise.
6598         * tree-vect-loop.c : Likewise.
6599         * tree-vect-patterns.c : Likewise.
6600         * tree-vect-slp.c : Likewise.
6601         * tree-vect-stmts.c : Likewise.
6602         * tree-vectorizer.c : Likewise.
6603         * tree-vectorizer.h : Likewise.
6604         * tree-vrp.c : Likewise.
6605         * tree.c : Likewise.
6606         * tsan.c : Likewise.
6607         * ubsan.c : Likewise.
6608         * valtrack.c : Likewise.
6609         * valtrack.h : Likewise.
6610         * value-prof.c : Likewise.
6611         * var-tracking.c : Likewise.
6612         * varasm.c : Likewise.
6613         * varpool.c : Likewise.
6614         * vec.c: Likewise.
6615         * vmsdbgout.c : Likewise.
6616         * vtable-verify.c : Likewise.
6617         * vtable-verify.h : Likewise.
6618         * web.c : Likewise.
6619         * wide-int.cc : Likewise.
6620         * xcoffout.c : Likewise.
6621         * config/aarch64/aarch64-builtins.c : Likewise.
6622         * config/aarch64/aarch64.c : Likewise.
6623         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
6624         * config/alpha/alpha.c : Likewise.
6625         * config/arc/arc.c : Likewise.
6626         * config/arm/aarch-common.c : Likewise.
6627         * config/arm/arm-builtins.c : Likewise.
6628         * config/arm/arm-c.c : Likewise.
6629         * config/arm/arm.c : Likewise.
6630         * config/avr/avr-c.c : Likewise.
6631         * config/avr/avr-log.c : Likewise.
6632         * config/avr/avr.c : Likewise.
6633         * config/bfin/bfin.c : Likewise.
6634         * config/c6x/c6x.c : Likewise.
6635         * config/cr16/cr16.c : Likewise.
6636         * config/cris/cris.c : Likewise.
6637         * config/darwin-c.c : Likewise.
6638         * config/darwin.c : Likewise.
6639         * config/default-c.c : Likewise.
6640         * config/epiphany/epiphany.c : Likewise.
6641         * config/epiphany/mode-switch-use.c : Likewise.
6642         * config/epiphany/resolve-sw-modes.c : Likewise.
6643         * config/fr30/fr30.c : Likewise.
6644         * config/frv/frv.c : Likewise.
6645         * config/ft32/ft32.c : Likewise.
6646         * config/glibc-c.c : Likewise.
6647         * config/h8300/h8300.c : Likewise.
6648         * config/i386/i386-c.c : Likewise.
6649         * config/i386/i386.c : Likewise.
6650         * config/i386/msformat-c.c : Likewise.
6651         * config/i386/winnt-cxx.c : Likewise.
6652         * config/i386/winnt-stubs.c : Likewise.
6653         * config/i386/winnt.c : Likewise.
6654         * config/ia64/ia64-c.c : Likewise.
6655         * config/ia64/ia64.c : Likewise.
6656         * config/iq2000/iq2000.c : Likewise.
6657         * config/lm32/lm32.c : Likewise.
6658         * config/m32c/m32c-pragma.c : Likewise.
6659         * config/m32c/m32c.c : Likewise.
6660         * config/m32r/m32r.c : Likewise.
6661         * config/m68k/m68k.c : Likewise.
6662         * config/mcore/mcore.c : Likewise.
6663         * config/mep/mep-pragma.c : Likewise.
6664         * config/mep/mep.c : Likewise.
6665         * config/microblaze/microblaze-c.c : Likewise.
6666         * config/microblaze/microblaze.c : Likewise.
6667         * config/mips/mips.c : Likewise.
6668         * config/mmix/mmix.c : Likewise.
6669         * config/mn10300/mn10300.c : Likewise.
6670         * config/moxie/moxie.c : Likewise.
6671         * config/msp430/msp430-c.c : Likewise.
6672         * config/msp430/msp430.c : Likewise.
6673         * config/nds32/nds32-cost.c : Likewise.
6674         * config/nds32/nds32-fp-as-gp.c : Likewise.
6675         * config/nds32/nds32-intrinsic.c : Likewise.
6676         * config/nds32/nds32-isr.c : Likewise.
6677         * config/nds32/nds32-md-auxiliary.c : Likewise.
6678         * config/nds32/nds32-memory-manipulation.c : Likewise.
6679         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
6680         * config/nds32/nds32-predicates.c : Likewise.
6681         * config/nds32/nds32.c : Likewise.
6682         * config/nios2/nios2.c : Likewise.
6683         * config/nvptx/nvptx.c : Likewise.
6684         * config/pa/pa.c : Likewise.
6685         * config/pdp11/pdp11.c : Likewise.
6686         * config/rl78/rl78-c.c : Likewise.
6687         * config/rl78/rl78.c : Likewise.
6688         * config/rs6000/rs6000-c.c : Likewise.
6689         * config/rs6000/rs6000.c : Likewise.
6690         * config/rx/rx.c : Likewise.
6691         * config/s390/s390-c.c : Likewise.
6692         * config/s390/s390.c : Likewise.
6693         * config/sh/sh-c.c : Likewise.
6694         * config/sh/sh-mem.cc : Likewise.
6695         * config/sh/sh.c : Likewise.
6696         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
6697         * config/sh/sh_treg_combine.cc : Likewise.
6698         * config/sol2-c.c : Likewise.
6699         * config/sol2-cxx.c : Likewise.
6700         * config/sol2-stubs.c : Likewise.
6701         * config/sol2.c : Likewise.
6702         * config/sparc/sparc-c.c : Likewise.
6703         * config/sparc/sparc.c : Likewise.
6704         * config/spu/spu-c.c : Likewise.
6705         * config/spu/spu.c : Likewise.
6706         * config/stormy16/stormy16.c : Likewise.
6707         * config/tilegx/mul-tables.c : Likewise.
6708         * config/tilegx/tilegx-c.c : Likewise.
6709         * config/tilegx/tilegx.c : Likewise.
6710         * config/tilepro/mul-tables.c : Likewise.
6711         * config/tilepro/tilepro-c.c : Likewise.
6712         * config/tilepro/tilepro.c : Likewise.
6713         * config/v850/v850-c.c : Likewise.
6714         * config/v850/v850.c : Likewise.
6715         * config/vax/vax.c : Likewise.
6716         * config/visium/visium.c : Likewise.
6717         * config/vms/vms-c.c : Likewise.
6718         * config/vms/vms.c : Likewise.
6719         * config/vxworks.c : Likewise.
6720         * config/winnt-c.c : Likewise.
6721         * config/xtensa/xtensa.c : Likewise.
6722
6723 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6724
6725         PR lto/65378
6726         * ipa-utils.h (warn_types_mismatch): Update prototype.
6727         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
6728         parameters.
6729         (type_mismatch_p): New function.
6730         (warn_types_mismatch): Reorg to work better on non-C++ types.
6731         (odr_types_equivalent_p): Add loc1/loc2 parameters.
6732         (add_type_duplicate): Update.
6733
6734 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6735
6736         PR rtl-optimization/66444
6737         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
6738         call_used_regs.
6739
6740 2015-06-08  Richard Biener  <rguenther@suse.de>
6741
6742         PR tree-optimization/66422
6743         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
6744         block after inserted gcc_unreachable.
6745
6746 2015-06-08  Nick Clifton  <nickc@redhat.com>
6747
6748         * config/rx/rx.c (rx_function_value): Do not promote vector types.
6749         (rx_promote_function_mode): Likewise.
6750         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
6751
6752 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
6753
6754         * genattrtab.c (insn_alternatives): Change type from int *
6755         to uint64_t *.
6756         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
6757         (get_attr_value): Change type of num_alt to uint64_t.
6758         (compute_alternative_mask): Change return type from
6759         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
6760         (make_alternative_compare, mk_attr_alt): Change argument type
6761         from int to uint64_t.
6762         (simplify_test_exp): Change type of i from int to uint64_t.
6763         Shift ((uint64_t) 1) instead of 1 up.
6764         (main): Adjust oballocvec first argument from int to uint64_t.
6765         Shift ((uint64_t) 1) instead of 1 up.
6766
6767 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6768
6769         PR other/65366
6770         * gdbhooks.py: Import sys.
6771         (intptr): New function.  Replace int(...) by intptr(...).
6772
6773 2015-06-08  Richard Biener  <rguenther@suse.de>
6774
6775         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
6776         adjustment for gaps at the end of a SLP load group properly.
6777         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
6778         all permutations we can generate.
6779         (vect_transform_slp_perm_load): Use the correct group-size.
6780
6781 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
6782
6783         * genmatch.c (expr::gen_transform): For conditions, guess the type
6784         from the second operand.
6785
6786 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6787
6788         PR tree-optimization/66442
6789         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
6790         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
6791         if the loop latch is not a singleton.  Use
6792         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
6793
6794 2015-06-08  Marek Polacek  <polacek@redhat.com>
6795
6796         PR sanitizer/66452
6797         * toplev.c (check_global_declaration): Don't warn about artificial
6798         decls.
6799
6800 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6801
6802         PR tree-optimization/66436
6803         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
6804         dump file.
6805         * gimplify.c: Add tree-dump.h include.
6806         (gimplify_function_tree): Dump function to gimple dump file.
6807         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
6808         dump file.
6809
6810 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6811
6812         PR tree-optimization/66435
6813         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
6814         function.
6815
6816 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
6817
6818         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
6819         of ptr_type_node to not be ptr_to_node.
6820         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
6821         TREE_TYPE of pointers.
6822         * gimple-expr.c (useless_type_conversion): Reorder the check for
6823         function pointers and TYPE_CANONICAL.
6824
6825 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
6826
6827         PR bootstrap/66319
6828         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
6829         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
6830         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
6831         later.
6832         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
6833         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
6834         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
6835         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
6836         and non iso if unix2003.
6837
6838 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
6839
6840         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
6841
6842 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
6843
6844         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
6845         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
6846         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
6847         except.c, final.c, function.c, gcse-common.c, genemit.c,
6848         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
6849         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
6850         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
6851         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
6852         more derived ones.
6853
6854 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
6855
6856         * combine.c (combine_split_insns): Remove cast.
6857         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
6858         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
6859         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
6860         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
6861         * genemit.c (gen_split): Change return type of generated functions to
6862         rtx_insn.
6863         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
6864         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
6865         gen_peephole2_* functions.
6866         (print_subroutine, main): Likewise.
6867         * recog.c (peephole2_optimize): Remove cast.
6868         (peep2_next_insn): Promote return type to rtx_insn.
6869         * recog.h (peep2_next_insn): Fix prototype.
6870         * rtl.h (try_split, split_insns): Likewise.
6871
6872 2015-06-06  DJ Delorie  <dj@redhat.com>
6873
6874         * config/msp430/msp430.c (msp430_asm_integer): Support addition
6875         and subtraction too.
6876
6877 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6878
6879         PR target/66410
6880         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
6881         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
6882         instead of Snd.  Disparage Sid/z alternative with '^'.
6883
6884 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
6885
6886         * dwarf2out.c: Remove deferred_locations*.
6887         (dwarf2_debug_hooks): Add early_finish hook.
6888         Remove global_decl hook.
6889         Add early_global_decl and late_global_decl hook.
6890         New global early_dwarf.
6891         New structure set_early_dwarf.
6892         (output_die): Indicate whether a DIE was generated early
6893         when generating assembly with -dA.
6894         (struct limbo_die_struct): Document created_for field.
6895         Remove file_table_last_lookup.
6896         (remove_AT): Return TRUE if successful.
6897         (remove_child_TAG): Clear die_parent.
6898         (reparent_child): New function abstracted from...
6899         (splice_child_die): ...here.
6900         (new_die): ICE if a DIE ends up in limbo too late.
6901         (check_die): New.
6902         (defer_location): Remove.
6903         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
6904         (fill_variable_array_bounds): New.
6905         (decl_start_label): Call fill_variable_array_bounds.
6906         (gen_formal_parameter_die): Rewrite to reuse previously generated
6907         DIEs.
6908         (gen_subprogram_die): Same.
6909         (gen_variable_die): Same.
6910         (gen_const_die): Same.
6911         (gen_label_die): Same.
6912         (gen_lexical_block_die): Same.
6913         (decl_will_get_specification_p): New.
6914         (local_function_static): New.
6915         (gen_struct_or_union_type_die): Fill in variable-length fields.
6916         (gen_typedef_die): Fill in variable-length typedefs.
6917         (gen_tagged_type_die): Gracefully return on error_mark_node.
6918         Handle re-entrancy.
6919         (gen_type_die_with_usage): Handle variable-length types.
6920         Remove duplicate code for ARRAY_TYPE case.
6921         (process_scope_var): Only process imported modules during early
6922         dwarf.
6923         (dwarf2out_early_global_decl): New.
6924         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
6925         (dwarf2out_type_decl): Set early_dwarf while calling
6926         dwarf2out_decl.
6927         (dwarf2out_decl): Verify that we did not recreate a previously
6928         generated DIE.
6929         Do not return on DECL_EXTERNALs in VAR_DECLs.
6930         Abstract some code to local_function_static.
6931         (lookup_filename): Remove use of file_table_last_lookup.
6932         Gracefully exit on missing file_name.
6933         (dwarf2out_finish): Verify limbo list.
6934         Remove deferred_locations_list use.
6935         Move deferred_asm_name and limbo flushing to...
6936         (dwarf2out_early_finish): ...here.  New.
6937         (dwarf2out_c_finalize): Remove set of deferred_location_list,
6938         deferred_asm_name, and file_table_last_lookup.
6939         * cgraph.h (referred_to_p): Add default argument.
6940         * cgraphunit.c (referred_to_p): Add and handle include_self
6941         argument.
6942         (analyze_functions): Add first_time argument.
6943         Call check_global_declaration for all symbols.
6944         Call late_global_decl for nodes for moribund nodes.
6945         (finalize_compilation_unit): Add new argument to
6946         analyze_functions.
6947         Call early_global_decl for functions.
6948         Call early_finish debug hook.
6949         * dbxout.c (dbxout_early_global_decl): New.
6950         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
6951         (dbx_debug_hooks): Add new hooks.
6952         (xcoff_debug_hooks): Same.
6953         * debug.c (do_nothing_debug_hooks): Add early_finish field.
6954         Add early and late debug hooks.
6955         Remove global_decl hook.
6956         * debug.h (struct gcc_debug_hooks): Add early_finish,
6957         early_global_decl, and late_global_decl fields.
6958         Remove global_decl field.
6959         Document gcc_debug_hooks.
6960         * gengtype.c (output_typename): Remove.
6961         * godump.c (go_early_global_decl): New.
6962         (go_late_global_decl): New.
6963         (go_global_decl): Remove.
6964         (dump_go_spec_init): Remove global_decl.  Add
6965         {early,late}_global_decl.
6966         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
6967         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
6968         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
6969         (write_global_declarations): Remove.
6970         (global_decl_processing): New.
6971         * langhooks.h (struct lang_hooks_for_decls): Remove
6972         final_write_globals field.
6973         Add post_compilation_parsing_cleanups field.
6974         * passes.c (rest_of_decl_compilation): Call early_global_decl.
6975         * sdbout.c: Add early and late_global_decl hooks.  Remove
6976         sdbout_global_decl hook.
6977         Add early_finish field for sdb_debug_hooks.
6978         (sdbout_global_decl): Remove.
6979         (sdbout_early_global_decl): New.
6980         (sdbout_late_global_decl): New.
6981         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
6982         * toplev.c (check_global_declaration): Rename from
6983         check_global_declaration_1.
6984         Adapt to use symtab infrastructure.
6985         (check_global_declarations): Remove.
6986         (emit_debug_global_declarations): Remove.
6987         (compile_file): Remove call to final_write_globals langhook.
6988         Run the actual compilation process.
6989         Perform any post compilation parser cleanups.
6990         Generate late debug info.
6991         * toplev.h (check_global_declaration): New.
6992         (check_global_declaration_1): Remove.
6993         (check_global_declarations): Remove.
6994         (write_global_declarations): Remove.
6995         (emit_debug_global_declarations): Remove.
6996         (global_decl_processing): New.
6997         * tree-core.h (struct tree_block): Add DIE field.
6998         * tree.h (BLOCK_DIE): New.
6999         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7000         throughout.
7001         (vmsdbgout_early_global_decl): New.
7002         (vmsdbgout_late_global_decl): New.
7003         Add early_finish debug hook field to vmsdbg_debug_hooks.
7004         Remove vmsdbgout_decl to vmsdbgout_function_decl.
7005         Add early and late_global_decl debug hooks.
7006
7007 2015-06-05  Julian Brown  <julian@codesourcery.com>
7008             Sandra Loosemore  <sandra@codesourcery.com>
7009
7010         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7011         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7012         to print-sysroot-suffix.sh script.
7013
7014 2015-06-05  Tom de Vries  <tom@codesourcery.com>
7015
7016         merge from gomp4 branch:
7017         2015-05-28  Tom de Vries  <tom@codesourcery.com>
7018
7019         PR tree-optimization/65443
7020         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7021         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7022         (try_transform_to_exit_first_loop_alt): New function.
7023         (transform_to_exit_first_loop): Use
7024         try_transform_to_exit_first_loop_alt.
7025
7026 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
7027
7028         * builtins.c (expand_builtin_atomic_compare_exchange): Call
7029         emit_cmp_and_jump_insns with the mode of target.
7030
7031 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7032
7033         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7034
7035 2015-06-04  DJ Delorie  <dj@redhat.com>
7036
7037         * config/msp430/msp430.md (movsi_s): New.  Special case for
7038         storing a 20-bit symbol into a 32-bit register.
7039         * config/msp430/msp430.c (msp430_subreg): Add support for it.
7040         * config/msp430/predicates.md (msp430_symbol_operand): New.
7041
7042 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
7043
7044         * c-family/c-common.c (noplt): New attribute.
7045         (handle_noplt_attribute): New handler.
7046         * calls.c (prepare_call_address): Check for noplt
7047         attribute.
7048         * config/i386/i386.c (ix86_expand_call): Check
7049         for noplt attribute.
7050         (ix86_nopic_noplt_attribute_p): New function.
7051         (ix86_output_call_insn): Output indirect call for non-pic
7052         no plt calls.
7053         * doc/extend.texi (noplt): Document new attribute.
7054         * doc/invoke.texi: Document new attribute.
7055
7056 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
7057
7058         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7059         real.h, and fixed-value.h when included in host source files.
7060         * double-int.h: Remove redundant #includes listed above.
7061         * fixed-value.h: Likewise.
7062         * real.h: Likewise.
7063         * wide-int.h: Likewise.
7064         * inchash.h: Likewise.
7065         * rtl.h: Add some include files When included from a generator file.
7066         * target.h: Remove wide-int.h and insn-modes.h from the include list.
7067         * internal-fn.h: Don't include coretypes.h.
7068         * alias.c: Adjust includes for restructured coretypes.h.
7069         * asan.c: Likewise.
7070         * attribs.c: Likewise.
7071         * auto-inc-dec.c: Likewise.
7072         * auto-profile.c: Likewise.
7073         * bb-reorder.c: Likewise.
7074         * bt-load.c: Likewise.
7075         * builtins.c: Likewise.
7076         * caller-save.c: Likewise.
7077         * calls.c: Likewise.
7078         * ccmp.c: Likewise.
7079         * cfg.c: Likewise.
7080         * cfganal.c: Likewise.
7081         * cfgbuild.c: Likewise.
7082         * cfgcleanup.c: Likewise.
7083         * cfgexpand.c: Likewise.
7084         * cfghooks.c: Likewise.
7085         * cfgloop.c: Likewise.
7086         * cfgloop.h: Likewise.
7087         * cfgloopanal.c: Likewise.
7088         * cfgloopmanip.c: Likewise.
7089         * cfgrtl.c: Likewise.
7090         * cgraph.c: Likewise.
7091         * cgraphbuild.c: Likewise.
7092         * cgraphclones.c: Likewise.
7093         * cgraphunit.c: Likewise.
7094         * cilk-common.c: Likewise.
7095         * combine-stack-adj.c: Likewise.
7096         * combine.c: Likewise.
7097         * compare-elim.c: Likewise.
7098         * convert.c: Likewise.
7099         * coverage.c: Likewise.
7100         * cppbuiltin.c: Likewise.
7101         * cprop.c: Likewise.
7102         * cse.c: Likewise.
7103         * cselib.c: Likewise.
7104         * data-streamer-in.c: Likewise.
7105         * data-streamer-out.c: Likewise.
7106         * data-streamer.c: Likewise.
7107         * dbxout.c: Likewise.
7108         * dce.c: Likewise.
7109         * ddg.c: Likewise.
7110         * debug.c: Likewise.
7111         * df-core.c: Likewise.
7112         * df-problems.c: Likewise.
7113         * df-scan.c: Likewise.
7114         * df.h: Likewise.
7115         * dfp.c: Likewise.
7116         * dojump.c: Likewise.
7117         * dominance.c: Likewise.
7118         * domwalk.c: Likewise.
7119         * double-int.c: Likewise.
7120         * dse.c: Likewise.
7121         * dumpfile.c: Likewise.
7122         * dwarf2asm.c: Likewise.
7123         * dwarf2cfi.c: Likewise.
7124         * dwarf2out.c: Likewise.
7125         * dwarf2out.h: Likewise.
7126         * emit-rtl.c: Likewise.
7127         * et-forest.c: Likewise.
7128         * except.c: Likewise.
7129         * explow.c: Likewise.
7130         * expmed.c: Likewise.
7131         * expr.c: Likewise.
7132         * final.c: Likewise.
7133         * fixed-value.c: Likewise.
7134         * fold-const.c: Likewise.
7135         * function.c: Likewise.
7136         * fwprop.c: Likewise.
7137         * gcc-plugin.h: Likewise.
7138         * gcse.c: Likewise.
7139         * generic-match-head.c: Likewise.
7140         * ggc-page.c: Likewise.
7141         * gimple-builder.c: Likewise.
7142         * gimple-expr.c: Likewise.
7143         * gimple-fold.c: Likewise.
7144         * gimple-iterator.c: Likewise.
7145         * gimple-low.c: Likewise.
7146         * gimple-match-head.c: Likewise.
7147         * gimple-pretty-print.c: Likewise.
7148         * gimple-ssa-isolate-paths.c: Likewise.
7149         * gimple-ssa-strength-reduction.c: Likewise.
7150         * gimple-streamer-in.c: Likewise.
7151         * gimple-streamer-out.c: Likewise.
7152         * gimple-streamer.h: Likewise.
7153         * gimple-walk.c: Likewise.
7154         * gimple.c: Likewise.
7155         * gimplify-me.c: Likewise.
7156         * gimplify.c: Likewise.
7157         * godump.c: Likewise.
7158         * graph.c: Likewise.
7159         * graphite-blocking.c: Likewise.
7160         * graphite-dependences.c: Likewise.
7161         * graphite-interchange.c: Likewise.
7162         * graphite-isl-ast-to-gimple.c: Likewise.
7163         * graphite-optimize-isl.c: Likewise.
7164         * graphite-poly.c: Likewise.
7165         * graphite-scop-detection.c: Likewise.
7166         * graphite-sese-to-poly.c: Likewise.
7167         * graphite.c: Likewise.
7168         * haifa-sched.c: Likewise.
7169         * hooks.h: Likewise.
7170         * hw-doloop.c: Likewise.
7171         * ifcvt.c: Likewise.
7172         * incpath.c: Likewise.
7173         * init-regs.c: Likewise.
7174         * internal-fn.c: Likewise.
7175         * ipa-chkp.c: Likewise.
7176         * ipa-comdats.c: Likewise.
7177         * ipa-cp.c: Likewise.
7178         * ipa-devirt.c: Likewise.
7179         * ipa-icf-gimple.c: Likewise.
7180         * ipa-icf.c: Likewise.
7181         * ipa-inline-analysis.c: Likewise.
7182         * ipa-inline-transform.c: Likewise.
7183         * ipa-inline.c: Likewise.
7184         * ipa-polymorphic-call.c: Likewise.
7185         * ipa-profile.c: Likewise.
7186         * ipa-prop.c: Likewise.
7187         * ipa-pure-const.c: Likewise.
7188         * ipa-ref.c: Likewise.
7189         * ipa-reference.c: Likewise.
7190         * ipa-split.c: Likewise.
7191         * ipa-utils.c: Likewise.
7192         * ipa-visibility.c: Likewise.
7193         * ipa.c: Likewise.
7194         * ira-build.c: Likewise.
7195         * ira-color.c: Likewise.
7196         * ira-conflicts.c: Likewise.
7197         * ira-costs.c: Likewise.
7198         * ira-emit.c: Likewise.
7199         * ira-lives.c: Likewise.
7200         * ira.c: Likewise.
7201         * jump.c: Likewise.
7202         * langhooks.c: Likewise.
7203         * lcm.c: Likewise.
7204         * loop-doloop.c: Likewise.
7205         * loop-init.c: Likewise.
7206         * loop-invariant.c: Likewise.
7207         * loop-iv.c: Likewise.
7208         * loop-unroll.c: Likewise.
7209         * lower-subreg.c: Likewise.
7210         * lra-assigns.c: Likewise.
7211         * lra-coalesce.c: Likewise.
7212         * lra-constraints.c: Likewise.
7213         * lra-eliminations.c: Likewise.
7214         * lra-lives.c: Likewise.
7215         * lra-remat.c: Likewise.
7216         * lra-spills.c: Likewise.
7217         * lra.c: Likewise.
7218         * lto-cgraph.c: Likewise.
7219         * lto-compress.c: Likewise.
7220         * lto-opts.c: Likewise.
7221         * lto-section-in.c: Likewise.
7222         * lto-section-out.c: Likewise.
7223         * lto-streamer-in.c: Likewise.
7224         * lto-streamer-out.c: Likewise.
7225         * lto-streamer.c: Likewise.
7226         * mcf.c: Likewise.
7227         * mode-switching.c: Likewise.
7228         * modulo-sched.c: Likewise.
7229         * omega.c: Likewise.
7230         * omp-low.c: Likewise.
7231         * optabs.c: Likewise.
7232         * opts-global.c: Likewise.
7233         * passes.c: Likewise.
7234         * plugin.c: Likewise.
7235         * postreload-gcse.c: Likewise.
7236         * postreload.c: Likewise.
7237         * predict.c: Likewise.
7238         * print-rtl.c: Likewise.
7239         * print-tree.c: Likewise.
7240         * profile.c: Likewise.
7241         * real.c: Likewise.
7242         * realmpfr.c: Likewise.
7243         * realmpfr.h: Likewise.
7244         * recog.c: Likewise.
7245         * ree.c: Likewise.
7246         * reg-stack.c: Likewise.
7247         * regcprop.c: Likewise.
7248         * reginfo.c: Likewise.
7249         * regrename.c: Likewise.
7250         * regs.h: Likewise.
7251         * regstat.c: Likewise.
7252         * reload.c: Likewise.
7253         * reload1.c: Likewise.
7254         * reorg.c: Likewise.
7255         * resource.c: Likewise.
7256         * rtl-chkp.c: Likewise.
7257         * rtlanal.c: Likewise.
7258         * rtlhooks.c: Likewise.
7259         * sanopt.c: Likewise.
7260         * sched-deps.c: Likewise.
7261         * sched-ebb.c: Likewise.
7262         * sched-rgn.c: Likewise.
7263         * sched-vis.c: Likewise.
7264         * sdbout.c: Likewise.
7265         * sel-sched-dump.c: Likewise.
7266         * sel-sched-ir.c: Likewise.
7267         * sel-sched.c: Likewise.
7268         * sese.c: Likewise.
7269         * shrink-wrap.c: Likewise.
7270         * shrink-wrap.h: Likewise.
7271         * simplify-rtx.c: Likewise.
7272         * stack-ptr-mod.c: Likewise.
7273         * statistics.c: Likewise.
7274         * stmt.c: Likewise.
7275         * stor-layout.c: Likewise.
7276         * store-motion.c: Likewise.
7277         * stringpool.c: Likewise.
7278         * symtab.c: Likewise.
7279         * target-globals.c: Likewise.
7280         * targhooks.c: Likewise.
7281         * toplev.c: Likewise.
7282         * tracer.c: Likewise.
7283         * trans-mem.c: Likewise.
7284         * tree-affine.c: Likewise.
7285         * tree-affine.h: Likewise.
7286         * tree-browser.c: Likewise.
7287         * tree-call-cdce.c: Likewise.
7288         * tree-cfg.c: Likewise.
7289         * tree-cfgcleanup.c: Likewise.
7290         * tree-chkp-opt.c: Likewise.
7291         * tree-chkp.c: Likewise.
7292         * tree-chrec.c: Likewise.
7293         * tree-complex.c: Likewise.
7294         * tree-data-ref.c: Likewise.
7295         * tree-dfa.c: Likewise.
7296         * tree-diagnostic.c: Likewise.
7297         * tree-dump.c: Likewise.
7298         * tree-eh.c: Likewise.
7299         * tree-emutls.c: Likewise.
7300         * tree-if-conv.c: Likewise.
7301         * tree-inline.c: Likewise.
7302         * tree-into-ssa.c: Likewise.
7303         * tree-iterator.c: Likewise.
7304         * tree-loop-distribution.c: Likewise.
7305         * tree-nested.c: Likewise.
7306         * tree-nrv.c: Likewise.
7307         * tree-object-size.c: Likewise.
7308         * tree-outof-ssa.c: Likewise.
7309         * tree-parloops.c: Likewise.
7310         * tree-phinodes.c: Likewise.
7311         * tree-predcom.c: Likewise.
7312         * tree-pretty-print.c: Likewise.
7313         * tree-pretty-print.h: Likewise.
7314         * tree-profile.c: Likewise.
7315         * tree-scalar-evolution.c: Likewise.
7316         * tree-sra.c: Likewise.
7317         * tree-ssa-address.c: Likewise.
7318         * tree-ssa-alias.c: Likewise.
7319         * tree-ssa-ccp.c: Likewise.
7320         * tree-ssa-coalesce.c: Likewise.
7321         * tree-ssa-copy.c: Likewise.
7322         * tree-ssa-copyrename.c: Likewise.
7323         * tree-ssa-dce.c: Likewise.
7324         * tree-ssa-dom.c: Likewise.
7325         * tree-ssa-dse.c: Likewise.
7326         * tree-ssa-forwprop.c: Likewise.
7327         * tree-ssa-ifcombine.c: Likewise.
7328         * tree-ssa-live.c: Likewise.
7329         * tree-ssa-loop-ch.c: Likewise.
7330         * tree-ssa-loop-im.c: Likewise.
7331         * tree-ssa-loop-ivcanon.c: Likewise.
7332         * tree-ssa-loop-ivopts.c: Likewise.
7333         * tree-ssa-loop-manip.c: Likewise.
7334         * tree-ssa-loop-niter.c: Likewise.
7335         * tree-ssa-loop-prefetch.c: Likewise.
7336         * tree-ssa-loop-unswitch.c: Likewise.
7337         * tree-ssa-loop.c: Likewise.
7338         * tree-ssa-loop.h: Likewise.
7339         * tree-ssa-math-opts.c: Likewise.
7340         * tree-ssa-operands.c: Likewise.
7341         * tree-ssa-phiopt.c: Likewise.
7342         * tree-ssa-phiprop.c: Likewise.
7343         * tree-ssa-pre.c: Likewise.
7344         * tree-ssa-propagate.c: Likewise.
7345         * tree-ssa-reassoc.c: Likewise.
7346         * tree-ssa-sccvn.c: Likewise.
7347         * tree-ssa-scopedtables.c: Likewise.
7348         * tree-ssa-sink.c: Likewise.
7349         * tree-ssa-strlen.c: Likewise.
7350         * tree-ssa-structalias.c: Likewise.
7351         * tree-ssa-tail-merge.c: Likewise.
7352         * tree-ssa-ter.c: Likewise.
7353         * tree-ssa-threadedge.c: Likewise.
7354         * tree-ssa-threadupdate.c: Likewise.
7355         * tree-ssa-uncprop.c: Likewise.
7356         * tree-ssa-uninit.c: Likewise.
7357         * tree-ssa.c: Likewise.
7358         * tree-ssanames.c: Likewise.
7359         * tree-stdarg.c: Likewise.
7360         * tree-streamer-in.c: Likewise.
7361         * tree-streamer-out.c: Likewise.
7362         * tree-streamer.c: Likewise.
7363         * tree-switch-conversion.c: Likewise.
7364         * tree-tailcall.c: Likewise.
7365         * tree-vect-data-refs.c: Likewise.
7366         * tree-vect-generic.c: Likewise.
7367         * tree-vect-loop-manip.c: Likewise.
7368         * tree-vect-loop.c: Likewise.
7369         * tree-vect-patterns.c: Likewise.
7370         * tree-vect-slp.c: Likewise.
7371         * tree-vect-stmts.c: Likewise.
7372         * tree-vectorizer.c: Likewise.
7373         * tree-vrp.c: Likewise.
7374         * tree.c: Likewise.
7375         * tsan.c: Likewise.
7376         * ubsan.c: Likewise.
7377         * valtrack.c: Likewise.
7378         * value-prof.c: Likewise.
7379         * var-tracking.c: Likewise.
7380         * varasm.c: Likewise.
7381         * varpool.c: Likewise.
7382         * vmsdbgout.c: Likewise.
7383         * vtable-verify.c: Likewise.
7384         * web.c: Likewise.
7385         * wide-int-print.cc: Likewise.
7386         * wide-int-print.h: Likewise.
7387         * wide-int.cc: Likewise.
7388         * xcoffout.c: Likewise.
7389         * config/aarch64/aarch64-builtins.c: Likewise.
7390         * config/aarch64/aarch64.c: Likewise.
7391         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7392         * config/alpha/alpha.c: Likewise.
7393         * config/arc/arc.c: Likewise.
7394         * config/arm/aarch-common.c: Likewise.
7395         * config/arm/arm-builtins.c: Likewise.
7396         * config/arm/arm-c.c: Likewise.
7397         * config/arm/arm.c: Likewise.
7398         * config/avr/avr-c.c: Likewise.
7399         * config/avr/avr-log.c: Likewise.
7400         * config/avr/avr.c: Likewise.
7401         * config/bfin/bfin.c: Likewise.
7402         * config/c6x/c6x.c: Likewise.
7403         * config/cr16/cr16.c: Likewise.
7404         * config/cris/cris.c: Likewise.
7405         * config/darwin-c.c: Likewise.
7406         * config/darwin.c: Likewise.
7407         * config/default-c.c: Likewise.
7408         * config/epiphany/epiphany.c: Likewise.
7409         * config/epiphany/mode-switch-use.c: Likewise.
7410         * config/epiphany/resolve-sw-modes.c: Likewise.
7411         * config/fr30/fr30.c: Likewise.
7412         * config/frv/frv.c: Likewise.
7413         * config/ft32/ft32.c: Likewise.
7414         * config/glibc-c.c: Likewise.
7415         * config/h8300/h8300.c: Likewise.
7416         * config/i386/i386-c.c: Likewise.
7417         * config/i386/i386.c: Likewise.
7418         * config/i386/msformat-c.c: Likewise.
7419         * config/i386/winnt-cxx.c: Likewise.
7420         * config/i386/winnt-stubs.c: Likewise.
7421         * config/i386/winnt.c: Likewise.
7422         * config/ia64/ia64-c.c: Likewise.
7423         * config/ia64/ia64.c: Likewise.
7424         * config/iq2000/iq2000.c: Likewise.
7425         * config/lm32/lm32.c: Likewise.
7426         * config/m32c/m32c-pragma.c: Likewise.
7427         * config/m32c/m32c.c: Likewise.
7428         * config/m32r/m32r.c: Likewise.
7429         * config/m68k/m68k.c: Likewise.
7430         * config/mcore/mcore.c: Likewise.
7431         * config/mep/mep-pragma.c: Likewise.
7432         * config/mep/mep.c: Likewise.
7433         * config/microblaze/microblaze-c.c: Likewise.
7434         * config/microblaze/microblaze.c: Likewise.
7435         * config/mips/mips.c: Likewise.
7436         * config/mmix/mmix.c: Likewise.
7437         * config/mn10300/mn10300.c: Likewise.
7438         * config/moxie/moxie.c: Likewise.
7439         * config/msp430/msp430-c.c: Likewise.
7440         * config/msp430/msp430.c: Likewise.
7441         * config/nds32/nds32-cost.c: Likewise.
7442         * config/nds32/nds32-fp-as-gp.c: Likewise.
7443         * config/nds32/nds32-intrinsic.c: Likewise.
7444         * config/nds32/nds32-isr.c: Likewise.
7445         * config/nds32/nds32-md-auxiliary.c: Likewise.
7446         * config/nds32/nds32-memory-manipulation.c: Likewise.
7447         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7448         * config/nds32/nds32-predicates.c: Likewise.
7449         * config/nds32/nds32.c: Likewise.
7450         * config/nios2/nios2.c: Likewise.
7451         * config/nvptx/nvptx.c: Likewise.
7452         * config/pa/pa.c: Likewise.
7453         * config/pdp11/pdp11.c: Likewise.
7454         * config/rl78/rl78-c.c: Likewise.
7455         * config/rl78/rl78.c: Likewise.
7456         * config/rs6000/rs6000-c.c: Likewise.
7457         * config/rs6000/rs6000.c: Likewise.
7458         * config/rx/rx.c: Likewise.
7459         * config/s390/s390-c.c: Likewise.
7460         * config/s390/s390.c: Likewise.
7461         * config/sh/sh-c.c: Likewise.
7462         * config/sh/sh-mem.cc: Likewise.
7463         * config/sh/sh.c: Likewise.
7464         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7465         * config/sh/sh_treg_combine.cc: Likewise.
7466         * config/sol2-c.c: Likewise.
7467         * config/sol2-cxx.c: Likewise.
7468         * config/sol2-stubs.c: Likewise.
7469         * config/sol2.c: Likewise.
7470         * config/sparc/sparc-c.c: Likewise.
7471         * config/sparc/sparc.c: Likewise.
7472         * config/spu/spu-c.c: Likewise.
7473         * config/spu/spu.c: Likewise.
7474         * config/stormy16/stormy16.c: Likewise.
7475         * config/tilegx/mul-tables.c: Likewise.
7476         * config/tilegx/tilegx-c.c: Likewise.
7477         * config/tilegx/tilegx.c: Likewise.
7478         * config/tilepro/mul-tables.c: Likewise.
7479         * config/tilepro/tilepro-c.c: Likewise.
7480         * config/tilepro/tilepro.c: Likewise.
7481         * config/v850/v850-c.c: Likewise.
7482         * config/v850/v850.c: Likewise.
7483         * config/vax/vax.c: Likewise.
7484         * config/visium/visium.c: Likewise.
7485         * config/vms/vms-c.c: Likewise.
7486         * config/vms/vms.c: Likewise.
7487         * config/vxworks.c: Likewise.
7488         * config/winnt-c.c: Likewise.
7489         * config/xtensa/xtensa.c: Likewise.
7490         * common/config/bfin/bfin-common.c: Likewise.
7491
7492 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
7493
7494         * tree.h (tree_code_for_canonical_type_merging): New function.
7495         * tree.c (gimple_canonical_types_compatible_p): Use
7496         tree_code_for_canonical_type_merging..
7497
7498 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7499
7500         PR c++/66192
7501         PR target/66200
7502         * doc/tm.texi: Regenerate.
7503         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
7504         * target.def (TARGET_RELAXED_ORDERING): Likewise.
7505         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
7506         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
7507         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
7508         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
7509         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
7510         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
7511         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
7512
7513 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7514
7515         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
7516         register fma steering pass.
7517         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
7518         AARCH64_TUNE_FMA_STEERING.
7519
7520 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
7521
7522         * tree.c (verify_type_variant): Verify that type and variant is
7523         compatible.
7524         (gimple_canonical_types_compatible_p): Look for main variants.
7525
7526 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7527
7528         * config.gcc (powerpc*-*-*): Add support for a new configure
7529         option --with-advance-toolchain=<xxx> which overrides using the
7530         default header files, libraries and dynamic linker.
7531
7532         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
7533         specs to support the configure --with-advance-toolchain=<xxx>
7534         option.
7535         (INCLUDE_EXTRA_SPEC): Likewise.
7536         (LINK_OS_EXTRA_SPEC32): Likewise.
7537         (LINK_OK_EXTRA_SPEC64): Likewise.
7538         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
7539         (DYNAMIC_LINKER_PREFIX): Likewise.
7540         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
7541         toolchain support.
7542         (GLIBC_DYNAMIC_LINKER32): Likewise.
7543         (GLIBC_DYNAMIC_LINKER64): Likewise.
7544         (LINK_OS_LINUX_SPEC32): Likewise.
7545         (LINK_OS_LINUX_SPEC64): Likewise.
7546
7547         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
7548         configuration option.
7549
7550 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
7551
7552         PR target/66275
7553         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
7554         to determine current function ABI.
7555         (ix86_function_value_regno_p): Ditto.
7556
7557 2015-06-03  Martin Liska  <mliska@suse.cz>
7558
7559         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
7560         * bitmap.h (struct bitmap_usage): Likewise.
7561         * ggc-common.c (struct ggc_usage): Likewise.
7562         * mem-stats.h (struct mem_location): Likewise.
7563         (struct mem_usage): Likewise.
7564         * vec.c (struct vec_usage): Likewise.
7565
7566 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
7567
7568         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
7569         -Bsymbolic.
7570
7571 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
7572
7573         * doc/plugins.texi (enum plugin_event): New event.
7574         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
7575         and PLUGIN_FINISH_FUNCTION.
7576         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
7577         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
7578
7579 2015-06-03  Richard Biener  <rguenther@suse.de>
7580
7581         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7582         compute GROUP_GAP for the first element.
7583         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
7584         on in-group gaps.
7585
7586 2015-06-03  Nick Clifton  <nickc@redhat.com>
7587
7588         * config/rl78/rl78-real.md: Add peepholes to avoid a register
7589         copy when calling a function.
7590         * config/rl78/rl78.c (need_to_save): Do not push the frame
7591         pointer in an interrupt handler prologue if it is never used.
7592
7593 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7594
7595         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
7596
7597 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
7598
7599         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
7600         reference when cloning alias node.
7601
7602 2015-06-03  Martin Liska  <mliska@suse.cz>
7603
7604         * alloc-pool.h (struct pool_usage): Correct space padding.
7605         * ggc-page.c (ggc_print_statistics): Align columns in a report.
7606         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
7607         * tree.c (dump_tree_statistics): Align columns in a report.
7608
7609 2015-06-03  Martin Liska  <mliska@suse.cz>
7610
7611         * alloc-pool.c (allocate_pool_descriptor): Remove.
7612         (struct pool_output_info): Likewise.
7613         (print_alloc_pool_statistics): Likewise.
7614         (dump_alloc_pool_statistics): Likewise.
7615         * alloc-pool.h (struct pool_usage): New struct.
7616         (pool_allocator::initialize): Change usage of memory statistics
7617         to a new interface.
7618         (pool_allocator::release): Likewise.
7619         (pool_allocator::allocate): Likewise.
7620         (pool_allocator::remove): Likewise.
7621         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
7622         for a pool allocator.
7623         * mem-stats.h (struct mem_location): Add new ctor.
7624         (struct mem_usage): Add counter for number of
7625         instances.
7626         (mem_alloc_description::register_descriptor): New overload of
7627         * mem-stats.h (mem_location::to_string): New function.
7628         * bitmap.h (struct bitmap_usage): Use this new function.
7629         * ggc-common.c (struct ggc_usage): Likewise.
7630         the function.
7631
7632 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
7633
7634         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
7635         of GCC_INSN_FLAGS_H block.
7636
7637 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
7638
7639         * explow.c (plus_constant): Update check after force_const_mem call
7640         to see if the value returned is not a NULL_RTX.
7641
7642 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
7643
7644         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
7645         remove instumentation thunks calling reachable functions.
7646         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
7647         * lto/lto-partition.c (privatize_symbol_name_1): New.
7648         (privatize_symbol_name): Privatize both decl and orig_decl
7649         names for instrumented functions.
7650         * cgraph.c (cgraph_node::verify_node): Add transparent
7651         alias chain check for instrumented node.
7652
7653 2015-06-03  Marek Polacek  <polacek@redhat.com>
7654
7655         PR c/64223
7656         PR c/29358
7657         * tree.c (attribute_value_equal): Handle attribute format.
7658         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
7659
7660 2015-06-03  Richard Biener  <rguenther@suse.de>
7661
7662         PR tree-optimization/63916
7663         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7664         Forward-propagate non-invariant addresses by splicing their
7665         reference ops if the result isn't going to be used by PRE.
7666         (vn_reference_lookup_3): Remove pointless assert.
7667
7668 2015-06-03  Richard Biener  <rguenther@suse.de>
7669
7670         PR tree-optimization/66375
7671         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
7672         add to the evolution before following SSA edges.
7673
7674 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
7675
7676         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
7677         (dump_use, dump_cand, find_induction_variables): Pass new argument
7678         to dump_iv.
7679         (record_use): Preserve the ssa name information in IV.
7680
7681 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
7682
7683         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
7684         NO_MODE_TEST.
7685         (add_mode_tests): Don't add mode tests if the predicate only
7686         accepts scalar constant integers.  Otherwise, allow the mode
7687         of "op" to be VOIDmode if the predicate does accept such integers.
7688
7689 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
7690
7691         PR target/66258
7692         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
7693         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
7694         (aarch64_secondary_reload): Likewise
7695         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
7696         to !TARGET_FLOAT.
7697         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
7698         Likewise.
7699
7700 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
7701             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7702
7703         PR target/65768
7704         * cprop.c (try_replace_reg): Check cost of constants before propagating.
7705
7706 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7707
7708         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
7709         provide access to the IBM extended double floating point mode if
7710         long double is IEEE 128-bit floating point.
7711         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
7712         point if long double is the IBM extended double type.
7713
7714         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
7715         enable adding IEEE 128-bit floating point support.
7716         (-mfloat128-software): Likewise.
7717         (-mfloat128-sw): Likewise.
7718
7719         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
7720         128-bit floating point types to occupy any register if
7721         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
7722         -mfloat128-software is enabled.
7723         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
7724         support.
7725         (rs6000_option_override_internal): Add -mfloat128-* support.
7726         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
7727
7728         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
7729         and float128 type nodes.
7730         (ieee128_float_type_node): Likewise.
7731         (ibm128_float_type_node): Likewise.
7732
7733 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7734
7735         PR target/66136
7736         * config/aarch64/geniterators.sh: Rewrite in awk.
7737
7738 2015-06-02  Martin Liska  <mliska@suse.cz>
7739
7740         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
7741         values to avoid -Wmaybe-uninitialized errors.
7742
7743 2015-06-02  Richard Biener  <rguenther@suse.de>
7744
7745         PR debug/65549
7746         * dwarf2out.c (lookup_context_die): New function.
7747         (resolve_addr): Avoid forcing a full DIE for the
7748         target of a DW_TAG_GNU_call_site during late compilation.
7749         Instead create a stub DIE without a type if we have a
7750         context DIE present.
7751
7752 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
7753
7754         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
7755
7756 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
7757
7758         PR tree-optimization/48052
7759         * cfgloop.h (struct control_iv): New.
7760         (struct loop): New field control_ivs.
7761         * tree-ssa-loop-niter.c : Include "stor-layout.h".
7762         (number_of_iterations_lt): Set no_overflow information.
7763         (number_of_iterations_exit): Init control iv in niter struct.
7764         (record_control_iv): New.
7765         (estimate_numbers_of_iterations_loop): Call record_control_iv.
7766         (loop_exits_before_overflow): New.  Interface factored out of
7767         scev_probably_wraps_p.
7768         (scev_probably_wraps_p): Factor loop niter related code into
7769         loop_exits_before_overflow.
7770         (free_numbers_of_iterations_estimates_loop): Free control ivs.
7771         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
7772
7773 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7774
7775         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
7776         the target doesn't belong to the current function.
7777
7778 2015-06-02  Marek Polacek  <polacek@redhat.com>
7779
7780         PR middle-end/66345
7781         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
7782         get_maxval_strlen does not produce an INTEGER_CST.
7783
7784 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
7785
7786         * config/arc/constraints.md: Use lower-case names in match_code.
7787         * config/mmix/constraints.md: Likewise.
7788
7789 2015-06-02  Richard Biener  <rguenther@suse.de>
7790
7791         PR tree-optimization/65961
7792         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
7793         check and clarify dump message.
7794         (vect_build_slp_tree): If all children are built up from scalars
7795         build up the parent from scalars instead.
7796         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
7797
7798 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7799
7800         PR other/65366
7801         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
7802         instead of print ... .
7803
7804 2015-06-02  Alan Modra  <amodra@gmail.com>
7805
7806         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
7807         2014-08-11 change.
7808
7809 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
7810
7811         PR tree-optimization/52563
7812         PR tree-optimization/62173
7813         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
7814         (alloc_iv, set_iv): New parameter.
7815         (determine_biv_step): Delete.
7816         (find_bivs): Inline original determine_biv_step.  Pass new
7817         argument to set_iv.
7818         (idx_find_step): Use no_overflow information for conversion.
7819         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
7820         resolve_mixers handle folded_casts.
7821         (instantiate_scev_name): Change bool parameter to bool pointer.
7822         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
7823         (instantiate_array_ref, instantiate_scev_not): Ditto.
7824         (instantiate_scev_3, instantiate_scev_2): Ditto.
7825         (instantiate_scev_1, instantiate_scev_r): Ditto.
7826         (instantiate_scev_convert, ): Change parameter.  Pass argument
7827         to chrec_convert_aggressive.
7828         (instantiate_scev): Change argument.
7829         (resolve_mixers): New parameter and set it.
7830         (scev_const_prop): New argument.
7831         * tree-scalar-evolution.h (resolve_mixers): New parameter.
7832         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
7833         of chrec_conert_1.
7834         (chrec_convert): New parameter.  Move definition below.
7835         (chrec_convert_aggressive): New parameter and set it.  Call
7836         convert_affine_scev.
7837         * tree-chrec.h (chrec_convert): New parameter.
7838         (chrec_convert_aggressive): Ditto.
7839
7840 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
7841
7842         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
7843         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
7844         the LHS of a no-return call if its type has variable size.
7845         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
7846         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
7847
7848 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
7849
7850         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
7851         * config.in: Regenerate.
7852
7853 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
7854
7855         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7856         consecutive accesses within outer-loop with force_vectorize
7857         for references with zero step in inner-loop.
7858
7859 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
7860
7861         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
7862         rather than from gcc/build directory.
7863
7864 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
7865
7866         PR target/65697
7867         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
7868         for __sync memory models, emit initial loads and final barriers as
7869         appropriate.
7870
7871 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
7872
7873         PR target/65697
7874         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
7875         (aarch64_split_atomic_op): Check for __sync memory models, emit
7876         appropriate initial loads and final barriers.
7877
7878 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
7879
7880         * Makefile.in: Fix gcov dependencies that should
7881         not point to a build folder.
7882
7883 2015-06-01  Richard Biener  <rguenther@suse.de>
7884
7885         Revert
7886         2015-05-29  Richard Biener  <rguenther@suse.de>
7887
7888         PR tree-optimization/66314
7889         * tree-ssa-threadupdate.c (create_block_for_threading): Add
7890         parameter that says which loop the new block belongs to.
7891         (ssa_create_duplicates): Blocks duplicated for the threaded
7892         path belong to the loop of the thread destination.
7893
7894 2015-06-01  Martin Liska  <mliska@suse.cz>
7895
7896         * sched-deps.c: Include pool-alloc.h before
7897         cselib.h header file is included.
7898
7899 2015-06-01  Richard Biener  <rguenther@suse.de>
7900
7901         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
7902         functions.
7903
7904 2015-06-01  Martin Liska  <mliska@suse.cz>
7905
7906         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
7907         a function local variable.
7908
7909 2015-06-01  Martin Liska  <mliska@suse.cz>
7910
7911         * alloc-pool.c (create_alloc_pool): Remove.
7912         (empty_alloc_pool): Likewise.
7913         (free_alloc_pool): Likewise.
7914         (free_alloc_pool_if_empty): Likewise.
7915         (pool_alloc): Likewise.
7916         (pool_free): Likewise.
7917         * alloc-pool.h: Remove old declarations.
7918
7919 2015-06-01  Martin Liska  <mliska@suse.cz>
7920
7921         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
7922         (ira_create_object): Likewise.
7923         (ira_create_allocno): Likewise.
7924         (ira_create_live_range): Likewise.
7925         (copy_live_range): Likewise.
7926         (ira_finish_live_range): Likewise.
7927         (ira_free_allocno_costs): Likewise.
7928         (finish_allocno): Likewise.
7929         (finish_allocnos): Likewise.
7930         (initiate_prefs): Likewise.
7931         (ira_create_pref): Likewise.
7932         (finish_pref): Likewise.
7933         (finish_prefs): Likewise.
7934         (initiate_copies): Likewise.
7935         (ira_create_copy): Likewise.
7936         (finish_copy): Likewise.
7937         (finish_copies): Likewise.
7938         (finish_prefs): Likewise.
7939
7940 2015-06-01  Martin Liska  <mliska@suse.cz>
7941
7942         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
7943         (allocate_and_init_ipcp_value): Likewise.
7944         (ipcp_lattice::add_value): Likewise.
7945         (merge_agg_lats_step): Likewise.
7946         (ipcp_driver): Likewise.
7947         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
7948         (ipa_free_all_structures_after_iinln): Likewise.
7949         * ipa-prop.h: Likewise.
7950
7951 2015-06-01  Martin Liska  <mliska@suse.cz>
7952
7953         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
7954         pool allocator.
7955         (set_hint_predicate): Likewise.
7956         (inline_summary_alloc): Likewise.
7957         (reset_inline_edge_summary): Likewise.
7958         (reset_inline_summary): Likewise.
7959         (set_cond_stmt_execution_predicate): Likewise.
7960         (set_switch_stmt_execution_predicate): Likewise.
7961         (compute_bb_predicates): Likewise.
7962         (estimate_function_body_sizes): Likewise.
7963         (inline_free_summary): Likewise.
7964
7965 2015-06-01  Martin Liska  <mliska@suse.cz>
7966
7967         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
7968         (ipa_edge_duplication_hook): Likewise.
7969         (ipa_free_all_structures_after_ipa_cp): Likewise.
7970         (ipa_free_all_structures_after_iinln): Likewise.
7971
7972 2015-06-01  Martin Liska  <mliska@suse.cz>
7973
7974         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
7975         (ipa_profile_generate_summary): Likewise.
7976         (ipa_profile_read_summary): Likewise.
7977         (ipa_profile): Likewise.
7978
7979 2015-06-01  Martin Liska  <mliska@suse.cz>
7980
7981         * tree-ssa-structalias.c (new_var_info): Use new type-based
7982         pool allocator.
7983         (new_constraint): Likewise.
7984         (init_alias_vars): Likewise.
7985         (delete_points_to_sets): Likewise.
7986
7987 2015-06-01  Martin Liska  <mliska@suse.cz>
7988
7989         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
7990         (free_strinfo): Likewise.
7991         (pass_strlen::execute): Likewise.
7992
7993 2015-06-01  Martin Liska  <mliska@suse.cz>
7994
7995         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
7996         pool allocator.
7997         (vn_reference_insert_pieces): Likewise.
7998         (vn_phi_insert): Likewise.
7999         (visit_reference_op_call): Likewise.
8000         (copy_phi): Likewise.
8001         (copy_reference): Likewise.
8002         (process_scc): Likewise.
8003         (allocate_vn_table): Likewise.
8004         (free_vn_table): Likewise.
8005
8006 2015-06-01  Martin Liska  <mliska@suse.cz>
8007
8008         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8009         pool allocator.
8010         (add_repeat_to_ops_vec): Likewise.
8011         (get_ops): Likewise.
8012         (maybe_optimize_range_tests): Likewise.
8013         (init_reassoc): Likewise.
8014         (fini_reassoc): Likewise.
8015
8016 2015-06-01  Martin Liska  <mliska@suse.cz>
8017
8018         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8019         pool allocator.
8020         (bitmap_set_new): Likewise.
8021         (get_or_alloc_expr_for_constant): Likewise.
8022         (get_or_alloc_expr_for): Likewise.
8023         (phi_translate_1): Likewise.
8024         (compute_avail): Likewise.
8025         (init_pre): Likewise.
8026         (fini_pre): Likewise.
8027
8028 2015-06-01  Martin Liska  <mliska@suse.cz>
8029
8030         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8031         (delete_dep_node): Likewise.
8032         (create_deps_list): Likewise.
8033         (free_deps_list): Likewise.
8034         (sched_deps_init): Likewise.
8035         (sched_deps_finish): Likewise.
8036
8037 2015-06-01  Martin Liska  <mliska@suse.cz>
8038
8039         * regcprop.c (free_debug_insn_changes): Use new type-based
8040         pool allocator.
8041         (replace_oldest_value_reg): Likewise.
8042         (pass_cprop_hardreg::execute): Likewise.
8043
8044 2015-06-01  Martin Liska  <mliska@suse.cz>
8045
8046         * ira-build.c (initiate_cost_vectors): Use new type-based
8047         pool allocator.
8048         (ira_allocate_cost_vector): Likewise.
8049         (ira_free_cost_vector): Likewise.
8050         (finish_cost_vectors): Likewise.
8051
8052 2015-06-01  Martin Liska  <mliska@suse.cz>
8053
8054         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8055         pool allocator.
8056         (free_sched_pools): Likewise.
8057         * sel-sched-ir.h (_list_alloc): Likewise.
8058         (_list_remove): Likewise.
8059
8060 2015-06-01  Martin Liska  <mliska@suse.cz>
8061
8062         * stmt.c (add_case_node): Use new type-based pool allocator.
8063         (expand_case): Likewise.
8064         (expand_sjlj_dispatch_table): Likewise.
8065
8066 2015-06-01  Martin Liska  <mliska@suse.cz>
8067
8068         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8069         (free_bb): Likewise.
8070         (pass_cse_reciprocals::execute): Likewise.
8071
8072 2015-06-01  Martin Liska  <mliska@suse.cz>
8073
8074         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8075         (sra_deinitialize) Likewise.
8076         (create_access_1) Likewise.
8077         (build_accesses_from_assign) Likewise.
8078         (create_artificial_child_access) Likewise.
8079
8080 2015-06-01  Martin Liska  <mliska@suse.cz>
8081
8082         * dse.c (get_group_info):Use new type-based pool allocator.
8083         (dse_step0) Likewise.
8084         (free_store_info) Likewise.
8085         (delete_dead_store_insn) Likewise.
8086         (free_read_records) Likewise.
8087         (record_store) Likewise.
8088         (replace_read) Likewise.
8089         (check_mem_read_rtx) Likewise.
8090         (scan_insn) Likewise.
8091         (dse_step1) Likewise.
8092         (dse_step7) Likewise.
8093
8094 2015-06-01  Martin Liska  <mliska@suse.cz>
8095
8096         * df-scan.c (struct df_scan_problem_data):Use new type-based
8097         pool allocator.
8098         (df_scan_free_internal) Likewise.
8099         (df_scan_alloc) Likewise.
8100         (df_grow_reg_info) Likewise.
8101         (df_free_ref) Likewise.
8102         (df_insn_create_insn_record) Likewise.
8103         (df_mw_hardreg_chain_delete) Likewise.
8104         (df_insn_info_delete) Likewise.
8105         (df_free_collection_rec) Likewise.
8106         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8107         (df_sort_and_compress_mws) Likewise.
8108         (df_ref_create_structure) Likewise.
8109         (df_ref_record) Likewise.
8110
8111 2015-06-01  Martin Liska  <mliska@suse.cz>
8112
8113         * df-problems.c (df_chain_create):Use new type-based pool allocator.
8114         (df_chain_unlink_1) Likewise.
8115         (df_chain_unlink) Likewise.
8116         (df_chain_remove_problem) Likewise.
8117         (df_chain_alloc) Likewise.
8118         (df_chain_free) Likewise.
8119         * df.h (struct dataflow) Likewise.
8120
8121 2015-06-01  Martin Liska  <mliska@suse.cz>
8122
8123         * cselib.c (new_elt_list):Use new type-based pool allocator.
8124         (new_elt_loc_list) Likewise.
8125         (unchain_one_elt_list) Likewise.
8126         (unchain_one_elt_loc_list) Likewise.
8127         (unchain_one_value) Likewise.
8128         (new_cselib_val) Likewise.
8129         (cselib_init) Likewise.
8130         (cselib_finish) Likewise.
8131
8132 2015-06-01  Martin Liska  <mliska@suse.cz>
8133
8134         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8135         (sh_reorg) Likewise.
8136
8137 2015-06-01  Martin Liska  <mliska@suse.cz>
8138
8139         * cfg.c (initialize_original_copy_tables):Use new type-based
8140         pool allocator.
8141         (free_original_copy_tables) Likewise.
8142         (copy_original_table_clear) Likewise.
8143         (copy_original_table_set) Likewise.
8144
8145 2015-06-01  Martin Liska  <mliska@suse.cz>
8146
8147         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8148         pool allocator.
8149         (asan_mem_ref_new) Likewise.
8150         (free_mem_ref_resources) Likewise.
8151
8152 2015-06-01  Martin Liska  <mliska@suse.cz>
8153
8154         * var-tracking.c (variable_htab_free):Use new type-based
8155         pool allocator.
8156         (attrs_list_clear) Likewise.
8157         (attrs_list_insert) Likewise.
8158         (attrs_list_copy) Likewise.
8159         (shared_hash_unshare) Likewise.
8160         (shared_hash_destroy) Likewise.
8161         (unshare_variable) Likewise.
8162         (var_reg_delete_and_set) Likewise.
8163         (var_reg_delete) Likewise.
8164         (var_regno_delete) Likewise.
8165         (drop_overlapping_mem_locs) Likewise.
8166         (variable_union) Likewise.
8167         (insert_into_intersection) Likewise.
8168         (canonicalize_values_star) Likewise.
8169         (variable_merge_over_cur) Likewise.
8170         (dataflow_set_merge) Likewise.
8171         (remove_duplicate_values) Likewise.
8172         (variable_post_merge_new_vals) Likewise.
8173         (dataflow_set_preserve_mem_locs) Likewise.
8174         (dataflow_set_remove_mem_locs) Likewise.
8175         (variable_from_dropped) Likewise.
8176         (variable_was_changed) Likewise.
8177         (set_slot_part) Likewise.
8178         (clobber_slot_part) Likewise.
8179         (delete_slot_part) Likewise.
8180         (loc_exp_insert_dep) Likewise.
8181         (notify_dependents_of_changed_value) Likewise.
8182         (emit_notes_for_differences_1) Likewise.
8183         (vt_emit_notes) Likewise.
8184         (vt_initialize) Likewise.
8185         (vt_finalize) Likewise.
8186
8187 2015-06-01  Martin Liska  <mliska@suse.cz>
8188
8189         * ira-color.c (init_update_cost_records):Use new type-based
8190         pool allocator.
8191         (get_update_cost_record) Likewise.
8192         (free_update_cost_record_list) Likewise.
8193         (finish_update_cost_records) Likewise.
8194         (initiate_cost_update) Likewise.
8195
8196 2015-06-01  Martin Liska  <mliska@suse.cz>
8197
8198         * lra.c (init_insn_regs): Use new type-based pool allocator.
8199         (new_insn_reg) Likewise.
8200         (free_insn_reg) Likewise.
8201         (free_insn_regs) Likewise.
8202         (finish_insn_regs) Likewise.
8203         (init_insn_recog_data) Likewise.
8204         (init_reg_info) Likewise.
8205         (finish_reg_info) Likewise.
8206         (lra_free_copies) Likewise.
8207         (lra_create_copy) Likewise.
8208         (invalidate_insn_data_regno_info) Likewise.
8209
8210 2015-06-01  Martin Liska  <mliska@suse.cz>
8211
8212         * lra-lives.c (free_live_range): Use new type-based pool allocator.
8213         (free_live_range_list) Likewise.
8214         (create_live_range) Likewise.
8215         (copy_live_range) Likewise.
8216         (lra_merge_live_ranges) Likewise.
8217         (remove_some_program_points_and_update_live_ranges) Likewise.
8218         (lra_live_ranges_init) Likewise.
8219         (lra_live_ranges_finish) Likewise.
8220
8221 2015-06-01  Martin Liska  <mliska@suse.cz>
8222
8223         * et-forest.c (et_new_occ): Use new type-based pool allocator.
8224         (et_new_tree): Likewise.
8225         (et_free_tree): Likewise.
8226         (et_free_tree_force): Likewise.
8227         (et_free_pools): Likewise.
8228         (et_split): Likewise.
8229
8230 2015-06-01  Martin Liska  <mliska@suse.cz>
8231
8232         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8233         to header file.
8234         * alloc-pool.h (pool_allocator::pool_allocator): New function.
8235         (pool_allocator::release): Likewise.
8236         (inline pool_allocator::release_if_empty): Likewise.
8237         (inline pool_allocator::~pool_allocator): Likewise.
8238         (pool_allocator::allocate): Likewise.
8239         (pool_allocator::remove): Likewise.
8240
8241 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8242
8243         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8244         in comment.
8245
8246 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8247
8248         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8249         to fusible_ops.
8250         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8251         (arm_macro_fusion_p): Likewise.
8252         (arm_macro_fusion_pair_p): Likewise.
8253
8254 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
8255
8256         * config/aarch64/aarch64-protos.h (tune_params): Rename
8257         fuseable_ops to fusible_ops.
8258         * config/aarch64/aarch64.c (generic_tunings): Rename
8259         fuseable_ops to fusible_ops.
8260         (cortexa53_tunings): Likewise.
8261         (cortexa57_tunings): Likewise.
8262         (thunderx_tunings): Likewise.
8263         (xgene1_tunings): Likewise.
8264         (aarch64_macro_fusion_p): Likewise.
8265         (aarch64_macro_fusion_pair_p): Likewise.
8266
8267 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8268
8269         * config/s390/driver-native.c: New file.
8270         * config/s390/x-native: New file.
8271         * config.host: Add new files for s390.
8272         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8273         and -march=native
8274         * config.gcc: Likewise.
8275         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8276         * config/s390/s390-opts.h (enum processor_type): Ditto.
8277         * config/s390/s390.c (s390_option_override): Catch unhandled
8278         PROCESSOR_NATIVE
8279
8280 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
8281
8282         PR target/65527
8283         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8284         redirection for instrumented calls.
8285         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8286         (append_compiler_options): Append -fcheck-pointer-bounds.
8287         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8288         (chkp_redirect_edge): New.
8289         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8290         (chkp_redirect_edge): New.
8291
8292 2015-06-01  Richard Biener  <rguenther@suse.de>
8293
8294         PR tree-optimization/66280
8295         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8296         def-use walking.
8297
8298 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8299
8300         * config/aarch64/aarch64.md
8301         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8302         logic_shift_imm.
8303
8304 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8305
8306         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8307         Remove obsolete kludge.
8308
8309 2015-06-01  Richard Biener  <rguenther@suse.de>
8310
8311         * tree-ssa-reassoc.c (get_rank): Simplify.
8312
8313 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8314
8315         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8316         * configure: Regenerated.
8317
8318 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
8319
8320         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8321         issue (add space between string literal and macro).
8322         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8323
8324 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
8325
8326         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8327         implict or explicit -fPIE or -fpie.
8328
8329 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
8330
8331         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8332
8333 2015-05-28  DJ Delorie  <dj@redhat.com>
8334
8335         * expmed.c (extract_bit_field_1): Avoid clobbering a
8336         yet-to-be-used base/index register.
8337
8338 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
8339
8340         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8341         (alias_stats): Add num_universal.
8342         (alias_set_subset_of): Special case pointers; be ready for NULL
8343         children.
8344         (alias_sets_conflict_p): Special case pointers; be ready for NULL
8345         children.
8346         (init_alias_set_entry): Break out from ...
8347         (record_alias_subset): ... here; propagate new fields;
8348         allocate children only when really needed.
8349         (get_alias_set): Do less generous pointer globbing.
8350         (dump_alias_stats_in_alias_c): Update statistics.
8351
8352 2015-05-30  Alan Modra  <amodra@gmail.com>
8353
8354         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8355         correct block for use of r12.
8356         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8357
8358 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8359
8360         PR target/66215
8361         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8362         with -mhotpatch=.
8363
8364 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
8365
8366         PR tree-optimization/66142
8367         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8368         virtual phis that feed themselves.
8369
8370 2015-05-29  Richard Biener  <rguenther@suse.de>
8371
8372         PR tree-optimization/66314
8373         * tree-ssa-threadupdate.c (create_block_for_threading): Add
8374         parameter that says which loop the new block belongs to.
8375         (ssa_create_duplicates): Blocks duplicated for the threaded
8376         path belong to the loop of the thread destination.
8377
8378 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8379
8380         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8381         to cleanup-saved-temps.
8382         * doc/sourcebuild.texi (Clean up generated test files): Expand
8383         introduction.
8384         (dg-keep-saved-temps): Document new proc.
8385         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8386         cleanup-saved-temps): Remove.
8387
8388 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
8389
8390         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8391         gcc_AC_CHECK_DECLS.
8392         * configure: Regenerate.
8393
8394 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8395
8396         * config/nios2/linux.h (CPP_SPEC): Define.
8397
8398 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8399
8400         * config/microblaze/linux.h (CPP_SPEC): Define.
8401
8402 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
8403
8404         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8405         -pthread is specified.
8406
8407 2015-05-28  Richard Biener  <rguenther@suse.de>
8408
8409         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8410         (vect_fixup_scalar_cycles_with_patterns): Likewise.
8411         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8412         after pattern recog.
8413         (vect_create_epilog_for_reduction): Properly handle reductions
8414         with patterns.
8415         (vectorizable_reduction): Likewise.
8416         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
8417         reduction chains.
8418         (vect_get_constant_vectors): Create the correct number of
8419         initial values for reductions.
8420         (vect_schedule_slp_instance): Handle reduction chains that are
8421         type changing properly.
8422         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
8423
8424 2015-05-28  Richard Biener  <rguenther@suse.de>
8425
8426         PR tree-optimization/66142
8427         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
8428         values better in memcpy destination handling.  Handle non-aliasing
8429         we discover here.
8430
8431 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
8432
8433         PR target/63810
8434         * config/darwin-c.c (version_components): New global enum.
8435         (parse_version, version_as_legacy_macro)
8436         (version_as_modern_macro, macosx_version_as_macro): New functions.
8437         (version_as_macro): Remove.
8438         (darwin_cpp_builtins): Use new function.
8439
8440 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
8441
8442         * builtins.c (expand_builtin_acc_on_device): Mark parameters
8443         with ATTRIBUTE_UNUSED.
8444
8445 2015-05-28  Julian Brown  <julian@codesourcery.com>
8446
8447         PR libgomp/65742
8448
8449         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
8450         sequence for !ACCEL_COMPILER.
8451
8452 2015-05-28  Nick Clifton  <nickc@redhat.com>
8453
8454         * config/rx/rx.c (push_regs): New function.  Extracts code from...
8455         (rx_expand_prologue): ... here.  Use push_regs to push even small
8456         spans of registers.
8457         (pop_regs): New function.
8458         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
8459         registers.
8460
8461 2015-05-28  Richard Biener  <rguenther@suse.de>
8462
8463         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
8464         member.
8465         (SLP_INSTANCE_BODY_COST_VEC): Remove.
8466         (vect_update_slp_costs_according_to_vf): Likewise.
8467         (vect_slp_analyze_operations): Update prototype.
8468         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
8469         vect_update_slp_costs_according_to_vf, adjust.
8470         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
8471         (vect_analyze_slp_cost_1): Likewise.
8472         (vect_analyze_slp_cost): Likewise.  Properly deal with
8473         widening reduction ops.  Commit body costs.
8474         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
8475         cost for loops from here.
8476         (vect_slp_analyze_operations): But do it from here when
8477         the vectorization factor is known and stmts are analyzed.
8478         (vect_bb_vectorization_profitable_p): Simplify.
8479         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
8480         (vect_update_slp_costs_according_to_vf): Remove.
8481
8482 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
8483             H.J. Lu  <hongjiu.lu@intel.com>
8484
8485         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
8486         (BUILD_CFLAGS): Likewise.
8487         (BUILD_CXXFLAGS): Likewise.
8488         (LINKER): Add @NO_PIE_FLAG@.
8489         (BUILD_LDFLAGS): Likewise.
8490         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
8491         --enable-default-pie.
8492         * common.opt (fPIE): Initialize to -1.
8493         (fpie): Likewise.
8494         (no-pie): New option.
8495         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
8496         * configure.ac: Add --enable-default-pie.
8497         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
8498         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
8499         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
8500         * gcc.c (NO_PIE_SPEC): New.
8501         (PIE_SPEC): Likewise.
8502         (NO_FPIE1_SPEC): Likewise.
8503         (FPIE1_SPEC): Likewise.
8504         (NO_FPIE2_SPEC): Likewise.
8505         (FPIE2_SPEC): Likewise.
8506         (NO_FPIE2_SPEC): Likewise.
8507         (FPIE_SPEC): Likewise.
8508         (NO_FPIE_SPEC): Likewise.
8509         (NO_FPIC1_SPEC): Likewise.
8510         (FPIC1_SPEC): Likewise.
8511         (NO_FPIC2_SPEC): Likewise.
8512         (FPIC2_SPEC): Likewise.
8513         (NO_FPIC2_SPEC): Likewise.
8514         (FPIC_SPEC): Likewise.
8515         (NO_FPIC_SPEC): Likewise.
8516         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
8517         (FPIE1_OR_FPIC1_SPEC): Likewise.
8518         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
8519         (FPIE2_OR_FPIC2_SPEC): Likewise.
8520         (NO_FPIE_AND_FPIC_SPEC): Likewise.
8521         (FPIE_OR_FPIC_SPEC): Likewise.
8522         (LD_PIE_SPEC): Likewise.
8523         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
8524         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
8525         * config/darwin.h (PIE_SPEC): Renamed to ...
8526         (DARWIN_PIE_SPEC): This.
8527         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
8528         * config/darwin9.h (PIE_SPEC): Renamed to ...
8529         (DARWIN_PIE_SPEC): This.
8530         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
8531         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8532         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
8533         FPIE2_OR_FPIC2_SPEC.
8534         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
8535         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
8536         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
8537         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8538         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8539         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8540         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
8541         * config/m32r/m32r.h (ASM_SPEC): Likewise.
8542         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
8543         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8544         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
8545         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
8546         * config/sparc/linux.h (ASM_SPEC): Likewise.
8547         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8548         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
8549         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
8550         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8551         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8552         * config/sparc/sparc.h (ASM_SPEC): Likewise.
8553         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
8554         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
8555         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
8556         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
8557         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
8558         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
8559         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
8560         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
8561         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
8562         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
8563         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
8564         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
8565         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8566         * config/vax/linux.h (ASM_SPEC): Likewise.
8567         * doc/install.texi: Document --enable-default-pie.
8568         * doc/invoke.texi: Document -no-pie.
8569         * config.in: Regenerated.
8570         * configure: Likewise.
8571
8572 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8573
8574         PR rtl-optimization/66168
8575         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
8576         can_move_invariant_reg.
8577
8578 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
8579
8580         PR target/66148
8581         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
8582         REG_EQUAL note when doing insert.
8583
8584         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
8585         instead of "%d" for 'o' operand.
8586
8587 2015-05-27  Nathan Sidwell  <nathan@acm.org>
8588
8589         PR c++/66270
8590         * tree.c (build_pointer_type_for_mode): Canonical type does not
8591         inherit can_alias_all.
8592         (build_reference_type_for_mode): Likewise.
8593
8594 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8595
8596         * expr.h (array_at_struct_end_p): Move to...
8597         (array_ref_element_size): Likewise.
8598         (component_ref_field_offset): Likewise.
8599         * tree.h (array_ref_element_size): ...here.
8600         (array_at_struct_end_p): Likewise.
8601         (component_ref_field_offset): Likewise.
8602         * expr.c (array_ref_element_size): Move to...
8603         (array_ref_low_bound): Likewise.
8604         (array_at_struct_end_p): Likewise.
8605         (array_ref_up_bound): Likewise.
8606         (component_ref_field_offset): Likewise.
8607         * tree.c (array_ref_element_size): ...here.
8608         (array_ref_low_bound): Likewise.
8609         (array_ref_up_bound): Likewise.
8610         (array_at_struct_end_p): Likewise.
8611         (component_ref_field_offset): Likewise.
8612
8613 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
8614             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8615
8616         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
8617
8618 2015-05-27  Jason Merrill  <jason@redhat.com>
8619
8620         PR bootstrap/66304
8621         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
8622         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
8623         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
8624
8625 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
8626
8627         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
8628         is true.
8629
8630         * statistics.c (statistics_fini_pass): Print pass name.
8631
8632 2015-05-27  Richard Biener  <rguenther@suse.de>
8633
8634         PR tree-optimization/66272
8635         Revert parts of
8636         2014-08-15  Richard Biener  <rguenther@suse.de>
8637
8638         PR tree-optimization/62031
8639         * tree-data-ref.c (dr_analyze_indices): Do not set
8640         DR_UNCONSTRAINED_BASE.
8641         (dr_may_alias_p): All indirect accesses have to go the
8642         formerly DR_UNCONSTRAINED_BASE path.
8643         * tree-data-ref.h (struct indices): Remove
8644         unconstrained_base member.
8645         (DR_UNCONSTRAINED_BASE): Remove.
8646
8647 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
8648
8649         * dwarf2out.c: Remove block_map.
8650         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
8651         (gen_lexical_block_die): Same.
8652         (dwarf2out_function_decl): Remove block_map use.
8653         (dwarf2out_c_finalize): Same.
8654         * tree-core.h (struct tree_block): Add die field.
8655         * tree.h (BLOCK_DIE): New.
8656
8657 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8658
8659         PR target/65358
8660         * expr.c (memory_load_overlap): New function.
8661         (emit_push_insn): When pushing partial args to the stack would
8662         clobber the register part load the overlapping part into a pseudo
8663         and put it into the hard reg after pushing.  Change return type
8664         to bool.  Add bool argument.
8665         * expr.h (emit_push_insn): Change return type to bool.
8666         Add bool argument.
8667         * calls.c (expand_call): Cancel sibcall optimization when encountering
8668         partial argument on targets with ARGS_GROW_DOWNWARD and
8669         !STACK_GROWS_DOWNWARD.
8670         (emit_library_call_value_1): Update callsite of emit_push_insn.
8671         (store_one_arg): Likewise.
8672
8673 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
8674
8675         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
8676
8677 2015-05-27  Martin Liska  <mliska@suse.cz>
8678
8679         * Makefile.in: Add additional dependencies related to memory report
8680         enhancement.
8681         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
8682         * bitmap.c (struct bitmap_descriptor_d): Remove.
8683         (struct loc): Likewise.
8684         (struct bitmap_desc_hasher): Likewise.
8685         (bitmap_desc_hasher::hash): Likewise.
8686         (bitmap_desc_hasher::equal): Likewise.
8687         (get_bitmap_descriptor): Likewise.
8688         (bitmap_register): User new memory descriptor API.
8689         (register_overhead): Likewise.
8690         (bitmap_find_bit): Register nsearches and search_iter statistics.
8691         (struct bitmap_output_info): Remove.
8692         (print_statistics): Likewise.
8693         (dump_bitmap_statistics): Use new memory descriptor.
8694         * bitmap.h (struct bitmap_usage): New class.
8695         * genmatch.c: Extend header file inclusion.
8696         * genpreds.c: Likewise.
8697         * ggc-common.c (struct ggc_usage): New class.
8698         (struct ggc_loc_desc_hasher): Remove.
8699         (ggc_loc_desc_hasher::hash): Likewise.
8700         (ggc_loc_desc_hasher::equal): Likewise.
8701         (struct ggc_ptr_hash_entry): Likewise.
8702         (struct ptr_hash_hasher): Likewise.
8703         (ptr_hash_hasher::hash): Likewise.
8704         (ptr_hash_hasher::equal): Likewise.
8705         (make_loc_descriptor): Likewise.
8706         (ggc_prune_ptr): Likewise.
8707         (dump_ggc_loc_statistics): Use new memory descriptor.
8708         (ggc_record_overhead): Likewise.
8709         (ggc_free_overhead): Likewise.
8710         (final_cmp_statistic): Remove.
8711         (cmp_statistic): Likewise.
8712         (ggc_add_statistics): Liekwise.
8713         (ggc_prune_overhead_list): Likewise.
8714         * hash-map-traits.h: New file.
8715         * hash-map.h (struct default_hashmap_traits): Move the traits to a
8716         separate header file.
8717         * hash-set.h: Pass memory statistics info to ctor.
8718         * hash-table.c (void dump_hash_table_loc_statistics): New function.
8719         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
8720         (hash_table::~hash_table): Register memory release operation.
8721         (hash_table::alloc_entries): Handle memory allocation operation.
8722         (hash_table::expand): Likewise.
8723         * inchash.c (iterative_hash_hashval_t): Move implementation to header
8724         file.
8725         (iterative_hash_host_wide_int): Likewise.
8726         * inchash.h (class hash): Likewise.
8727         * mem-stats-traits.h: New file.
8728         * mem-stats.h: New file.
8729         (mem_location): Add new class.
8730         (mem_usage): Likewise.
8731         (mem_alloc_description): Likewise.
8732         * sese.c: Add new header file inclusision.
8733         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
8734         and hash_set.
8735         * tree-sra.c: Add new header file inclusision.
8736         * vec.c (struct vec_descriptor): Remove.
8737         (hash_descriptor): Likewise.
8738         (struct vec_usage): Likewise.
8739         (struct ptr_hash_entry): Likewise.
8740         (hash_ptr): Likewise.
8741         (eq_ptr): Likewise.
8742         (vec_prefix::register_overhead): Use new memory descriptor API.
8743         (vec_prefix::release_overhead): Likewise.
8744         (add_statistics): Remove.
8745         (dump_vec_loc_statistics): Use new memory descriptor API.
8746         * vec.h (struct vec_prefix): Likewise.
8747         (va_heap::reserve): Likewise.
8748         (va_heap::release): Likewise.
8749         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
8750
8751 2015-05-27  Richard Biener  <rguenther@suse.de>
8752
8753         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
8754         earlier and remove ??? comment.
8755         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
8756         and got called from loop analysis bail out.  Always pass the SLP
8757         node to the vectorizable_* functions.
8758         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
8759         the premature SLP check here.
8760         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
8761         detected SLP stmts.
8762         (vect_detect_hybrid_slp_1): Likewise.
8763
8764 2015-05-26  Jeff Law  <law@redhat.com>
8765
8766         * combine.c (find_split_point): Verify that the shift count is a
8767         constant when choosing (plus (ashift ...)) as a split point.
8768
8769         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
8770         No functional changes.
8771
8772 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
8773
8774         * ipa-polymorphic-call.c
8775         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
8776         case when call target is already known.
8777
8778 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
8779
8780         PR target/65979
8781         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
8782         take into account the case that operands[1] and operands[2]
8783         are the same register.
8784
8785 2015-05-26  Michael Matz  <matz@suse.de>
8786
8787         PR middle-end/66251
8788
8789         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
8790         stores.
8791         (vect_create_vectorized_demotion_stmts): Always set
8792         STMT_VINFO_VEC_STMT, also with SLP.
8793         (vectorizable_store): Handle strided group stores.
8794
8795 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8796
8797         PR target/66049
8798         * config/aarch64/aarch64.md
8799         (*adds_shift_imm_<mode>):  New pattern.
8800         (*subs_shift_imm_<mode>):  Likewise.
8801         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
8802         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
8803         (*add_uxt<mode>_shift2): Likewise.
8804         (*add_uxtsi_shift2_uxtw): Likewise.
8805         (*sub_uxt<mode>_shift2): Likewise.
8806         (*sub_uxtsi_shift2_uxtw): Likewise.
8807
8808 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
8809
8810         * config/rs6000/constraints.md (Y, U): Use match_test.
8811
8812 2015-05-26  Christian Bruel  <christian.bruel@st.com>
8813
8814         PR target/52144
8815         * config/arm/arm.c (arm_option_check_internal)
8816         (arm_option_params_internal): Check opts->target_flags to set macros.
8817         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
8818         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
8819         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
8820         (builtin_define): Replaced with def_or_undef_macro.
8821         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
8822         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
8823         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
8824         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
8825         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
8826         (TARGET_ARM_FEATURE_LDREX_P)
8827         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
8828         * config/arm/arm-c.c (def_or_undef_macro): New function.
8829         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
8830
8831 2015-05-26  Christian Bruel  <christian.bruel@st.com>
8832
8833         * c-common.h (builtin_define_with_int_value)
8834         (builtin_define_type_sizeof): Declare.
8835         * c-cppbuiltin.c (builtin_define_with_int_value)
8836         (builtin_define_type_sizeof): Externalize.
8837         (builtin_define_std): Cleanup declaration.
8838         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
8839         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
8840         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
8841         (builtin_define, builtin_assert): New macros.
8842
8843 2015-05-26  Richard Biener  <rguenther@suse.de>
8844
8845         PR tree-optimization/66142
8846         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
8847         MEM_REFs for the same base address.
8848
8849 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8850
8851         PR ipa/66181
8852         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
8853
8854 2015-05-26  Jason Merrill  <jason@redhat.com>
8855
8856         * configure.ac: Set CXXFLAGS for ISL test.
8857         * configure: Regenerate.
8858
8859         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
8860         strstr and basename.
8861         * configure: Regenerate.
8862
8863 2015-05-26  Richard Biener  <rguenther@suse.de>
8864
8865         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
8866         X % C -> X & (C - 1) for C being a power-of two to ...
8867         * match.pd: ... patterns.
8868
8869 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
8870
8871         * match.pd (swapped_tcc_comparison): New operator list.
8872         (-A CMP -B): New simplification.
8873         * fold-const.c (fold_comparison): Remove corresponding code.
8874
8875 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
8876
8877         * caller-save.c (init_caller_save): Base temporary register numbers
8878         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
8879         * cfgloopanal.c (init_set_costs): Likewise.
8880         * dojump.c (prefer_and_bit_test): Likewise.
8881         * expr.c (init_expr_target): Likewise.
8882         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8883         * lower-subreg.c (init_lower_subreg): Likewise.
8884         * postreload.c (reload_cse_regs_1): Likewise.
8885
8886 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
8887
8888         * gensupport.h (compute_test_codes): Declare.
8889         * gensupport.c (compute_predicate_codes): Rename to...
8890         (compute_test_codes): ...this.  Generalize error message.
8891         (process_define_predicate): Update accordingly.
8892         * genpreds.c (compute_maybe_allows): Delete.
8893         (add_constraint): Use compute_test_codes to determine whether
8894         something can accept a SUBREG, REG or MEM.
8895
8896 2015-05-26  Torvald Riegel  <triegel@redhat.com>
8897
8898         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
8899         'memory model' to align with C++11; fix description of memory orders;
8900         fix a few typos.
8901
8902 2015-05-26  Richard Biener  <rguenther@suse.de>
8903
8904         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
8905         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
8906         detect whether we apply SLP.  Remove call to
8907         vect_update_slp_costs_according_to_vf.
8908         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
8909         vect_update_slp_costs_according_to_vf from here.  Dispatch
8910         to vect_slp_analyze_operations to analyze SLP stmts.
8911         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
8912         unused bb_vec_info parameter, adjust assert.
8913         (vect_slp_analyze_operations): Pass in the slp instance tree
8914         instead of bb_vec_info.
8915         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
8916         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
8917
8918 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
8919
8920         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
8921         Q_REGS.  Expand comment.
8922         (REG_CLASS_NAMES): Ditto.
8923         (REG_CLASS_CONTENTS): Ditto.
8924
8925 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
8926
8927         PR target/66274
8928         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
8929         when LEGACY_INT_REGNO_P is processed.
8930
8931 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
8932
8933         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
8934
8935 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8936
8937         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
8938         register if not marked dead/unused, before return.
8939
8940 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
8941
8942         PR lto/66180
8943         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
8944         is set; check for assembler name at LTO time.
8945         (type_in_anonymous_namespace): Remove hacks, check that all
8946         anonymous types are called "<anon>"
8947         (odr_type_p): Simplify; add check for "<anon>"
8948         (odr_subtypes_equivalent): Add odr_type_p check.
8949         * tree.c (need_assembler_name_p): Even anonymous namespace needs
8950         assembler name.
8951
8952 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
8953
8954         * ipa-utils.h (method_class_type): Remove.
8955         * cgraphunit.c (walk_polymorphic_call_targets): Use
8956         TYPE_METHOD_BASETYPE.
8957         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
8958         on main variants only.
8959         (method_class_type): Remove.
8960         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
8961         (build_type_inheritance_graph): Likewise.
8962         * ipa-icf.c (sem_function::equals_wpa): Likewise.
8963         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
8964         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
8965
8966 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
8967
8968         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
8969         is_typedef_decl, typedef_variant_p): Constify.
8970         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
8971         is_typedef_decl, typedef_variant_p): Constify.
8972
8973 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8974
8975         * defaults.h (gen_tablejump): New function.
8976         (HAVE_tablejump): Add default value.
8977         * expr.c: Adjust.
8978         * stmt.c: Likewise.
8979
8980 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8981
8982         * defaults.h (gen_store_multiple): New function.
8983         (HAVE_store_multiple): Add default value.
8984         * expr.c (move_block_from_reg): Adjust.
8985
8986 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8987
8988         * defaults.h (gen_load_multiple): New function.
8989         (HAVE_load_multiple): Add default value.
8990         * expr.c (move_block_to_reg): Adjust.
8991
8992 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8993
8994         * defaults.h (gen_mem_signal_fence): New function.
8995         (HAVE_mem_signal_fence): Add default value.
8996         * optabs.c: Adjust.
8997
8998 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8999
9000         * defaults.h (gen_memory_barrier): New function.
9001         (HAVE_memory_barrier): Add default value.
9002         * optabs.c: Adjust.
9003
9004 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9005
9006         * defaults.h (gen_mem_thread_fence): New function.
9007         (HAVE_mem_thread_fence): Add default definition.
9008         * optabs.c: Adjust.
9009
9010 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9011
9012         * combine.c (find_split_point): Check the value of HAVE_lo_sum
9013         instead of if it is defined.
9014         (combine_simplify_rtx): Likewise.
9015         * lra-constraints.c (process_address_1): Likewise.
9016         * config/darwin.c: Adjust.
9017         * genconfig.c (main): Always define HAVE_lo_sum.
9018
9019 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9020
9021         * genmatch.c (parser::parse_operation): Reject expanding
9022         operator-list inside 'for'.
9023
9024 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9025
9026         * genmatch.c (parser::parse_for): Reject iterator if used as
9027         operator-list.
9028
9029 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9030
9031         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9032         after end of id-list.
9033
9034 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
9035
9036         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9037         we do not try to compute canonical type for type that does not need
9038         alias set.
9039         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9040         FUNCITON_TYPE.
9041         * tree.h (type_with_alias_set_p): New.
9042
9043 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
9044
9045         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
9046         function attributes.
9047         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9048
9049 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
9050
9051         * Makefile.in (check_gcc_parallelize): Delete.
9052         (lang_checks_parallelized): Update comment.
9053
9054 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
9055
9056         PR rtl-optimization/66237
9057         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9058         location of an "as_a" cast.
9059
9060 2015-05-22  Jeff Law  <law@redhat.com>
9061
9062         * config/pa/pa.md (non-canonical shift-add insns): Remove.
9063         (peepholes with non-canonical RTL sources): Remove.
9064         (peepholes for indexed stores of FP regs in integer modes): Match and
9065         generate canonical RTL.
9066
9067 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9068
9069         PR tree-optimization/63387
9070         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9071         ((x ord x) & (y ord y) -> (x ord y),
9072         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9073         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9074         vectors like scalars.
9075
9076 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9077
9078         * convert.c (convert_to_integer, convert_to_vector): Include the
9079         types in the error message.
9080
9081 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
9082
9083         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9084         simplifications.
9085
9086 2015-05-22  Jeff Law  <law@redhat.com>
9087
9088         * config/pa/pa.md (integer_indexed_store splitters): Use
9089         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
9090         insns -- adjusting the constant 2nd operand accordingly.
9091
9092         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9093         (plus (ashift X log2) Y) if it is a split point.
9094
9095         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9096         out of hppa_legitimize_address to handle both forms of a multiply
9097         by 2, 4 or 8.
9098         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9099         Always generate the ASHIFT variant as the result is not directly
9100         used in a MEM.  Update comments and refactor slightly to improve
9101         readability.
9102
9103 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9104
9105         PR target/65491
9106         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9107         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
9108         (aarch64_composite_type_p): Return false if given type and mode are
9109         for a short vector.
9110
9111 2015-05-22  Richard Biener  <rguenther@suse.de>
9112
9113         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9114         member.
9115         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9116         patterns when determining whether SLP is pure.
9117         (vect_is_slp_reduction): Remove check for pattern stmts.
9118         (vect_is_simple_reduction_1): Remove dead code.
9119         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9120         (vect_get_and_check_slp_defs): Pass in the stmt number.
9121         Allow the first def in a reduction to be not a pattern stmt when
9122         the rest of the stmts def are patterns.
9123         (vect_build_slp_tree_1): Allow tcc_expression codes like
9124         SAD_EXPR and DOT_PROD_EXPR.
9125         (vect_build_slp_tree): Adjust.
9126         (vect_analyze_slp): Refactor and move BB vect error message ...
9127         (vect_slp_analyze_bb_1): ... here.
9128
9129 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
9130
9131         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9132         for CSWTCH temporary.
9133
9134 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9135
9136         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9137         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
9138         unknown unspecs.
9139
9140 2015-05-22  Richard Biener  <rguenther@suse.de>
9141
9142         PR tree-optimization/66251
9143         * tree-vect-stmts.c (vectorizable_conversion): Properly
9144         set STMT_VINFO_VEC_STMT even for the SLP case.
9145
9146 2015-05-22  Marek Polacek  <polacek@redhat.com>
9147
9148         * doc/extend.texi: Use @pxref instead of @xref.
9149
9150 2015-05-22  hiraditya  <hiraditya@msn.com>
9151
9152         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9153         redundant if.
9154
9155 2015-05-22  Richard Biener  <rguenther@suse.de>
9156
9157         PR tree-optimization/65701
9158         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9159         Move peeling cost models into one place.  Peel for alignment
9160         for single loads only if an aligned load is cheaper than
9161         an unaligned load.
9162
9163 2015-05-22  Marek Polacek  <polacek@redhat.com>
9164
9165         PR c/47043
9166         * doc/extend.texi (Enumerator Attributes): New section.
9167         Document syntax of enumerator attributes.
9168
9169 2015-05-22  Richard Biener  <rguenther@suse.de>
9170
9171         * tree-vect-loop.c (get_reduction_op): New function.
9172         (vect_model_reduction_cost): Use it, add reduc_index parameter.
9173         Make ready for BB reductions.
9174         (vect_create_epilog_for_reduction): Use get_reduction_op.
9175         (vectorizable_reduction): Init reduc_index to a valid value.
9176         Adjust vect_model_reduction_cost call.
9177         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9178         operand for reduction defaults.  Add SAD_EXPR support.
9179         Assert we have a neutral op for SLP reductions.
9180         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9181         walking pattern stmt ops only recurse to SSA names.
9182
9183 2015-05-22  Richard Biener  <rguenther@suse.de>
9184
9185         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9186         assert with guard, remove check on detected reduction.
9187         (vect_recog_sad_pattern): Likewise.
9188         (vect_recog_widen_sum_pattern): Likewise.
9189
9190 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9191
9192         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9193         __always_inline__ attribute.
9194         (vaesdq_u8): Likewise.
9195         (vaesmcq_u8): Likewise.
9196         (vaesimcq_u8): Likewise.
9197         (vsha1cq_u32): Likewise.
9198         (vsha1mq_u32): Likewise.
9199         (vsha1pq_u32): Likewise.
9200         (vsha1h_u32): Likewise.
9201         (vsha1su0q_u32): Likewise.
9202         (vsha1su1q_u32): Likewise.
9203         (vsha256hq_u32): Likewise.
9204         (vsha256h2q_u32): Likewise.
9205         (vsha256su0q_u32): Likewise.
9206         (vsha256su1q_u32): Likewise.
9207         (vmull_p64): Likewise.
9208         (vmull_high_p64): Likewise.
9209
9210 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9211
9212         * final.c (final_scan_insn): Don't check HAVE_peephole with the
9213         preprocessor.
9214         * output.h: Likewise.
9215         * genconfig.c (main): Alwways define HAVE_peephole.
9216         * genpeep.c: Don't emit checks of HAVE_peephole.
9217
9218 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9219
9220         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9221         check HAVE_conditional_move with the preprocessor.
9222
9223 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9224
9225         * genconfig.c (main): Always define HAVE_conditional_move.
9226         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9227         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9228         is defined.
9229
9230 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9231
9232         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9233         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9234         and FRAME_POINTER_REGNUM with the preprocessor.
9235
9236 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9237
9238         * defaults.h: Add default for STACK_PUSH_CODE.
9239         * expr.c: Don't redefine STACK_PUSH_CODE.
9240         * recog.c: Likewise.
9241
9242 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9243
9244         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9245         sched-deps.c: Use if instead of preprocessor checks with
9246         STACK_GROWS_DOWNWARD.
9247
9248 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9249
9250         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9251         is defined.
9252         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9253         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9254         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9255         * doc/tm.texi: Regenerate.
9256
9257 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9258
9259         PR target/66232
9260         * config/i386/constraints.md (Bg): New constraint for GOT memory
9261         operand.
9262         * config/i386/i386.md (*call_got_x32): New pattern.
9263         (*call_value_got_x32): Likewise.
9264         * config/i386/predicates.md (GOT_memory_operand): New predicate.
9265
9266 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
9267
9268         PR tree-optimization/66233
9269         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9270         Simplify.
9271
9272 2015-05-21  Jeff Law  <law@redhat.com>
9273
9274         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9275         than MULT for shadd sequences.
9276
9277 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
9278
9279         * alias.c (alias_stats): New static var.
9280         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9281         (dump_alias_stats_in_alias_c): New function.
9282         * alias.h (dump_alias_stats_in_alias_c): Declare.
9283         * tree-ssa-alias.c (dump_alias_stats): Call it.
9284
9285 2015-05-08  Michael Matz  <matz@suse.de>
9286
9287         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9288         to strided_p.
9289         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9290         (STMT_VINFO_STRIDED_P): ... this.
9291         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9292         (vect_verify_datarefs_alignment): Likewise.
9293         (vect_enhance_data_refs_alignment): Likewise.
9294         (vect_analyze_data_ref_access): Likewise.
9295         (vect_analyze_data_refs): Accept strided stores.
9296         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9297         (vect_model_load_cost): Adjust for macro rename.
9298         (vectorizable_mask_load_store): Likewise.
9299         (vectorizable_load): Likewise.
9300         (vectorizable_store): Open code strided stores.
9301
9302 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9303
9304         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9305         Document sqrt_insn.
9306
9307 2015-05-21  Richard Biener  <rguenther@suse.de>
9308
9309         PR c++/66211
9310         * match.pd: Guard pattern optimzing (int)(float)int
9311         conversions to apply only on GIMPLE.
9312
9313 2015-05-21  Jeff Law  <law@redhat.com>
9314
9315         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9316         multiply-accumulate/shift-add insn generation.
9317
9318 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
9319
9320         PR target/54236
9321         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9322         operands[1] are the same.
9323
9324 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9325
9326         PR middle-end/66221
9327         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9328         build_distinct_type_copy to copy bounds.
9329
9330 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9331
9332         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9333         Change to unsigned int.
9334
9335 2015-05-20  Jeff Law  <law@redhat.com>
9336
9337         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9338         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9339         (pa_shadd_constant_p): Allow constants for shadd insns rather
9340         than valid scaling constants for memory addresses.
9341         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9342         * config/pa/predicates.md (mem_shadd_operand): New predicate.
9343         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9344         (shift-add insns using ASHIFT): New patterns.
9345
9346 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
9347
9348         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9349         feasible.
9350         (fix_up_fall_thru_edges): Likewise.
9351         (fix_crossing_conditional_branches): Likewise. Promote jump targets
9352         from to rtx_insn to rtx_code_label where feasible.
9353         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9354         gen_move_insn (returned type changed to rtx_insn).
9355         * builtins.c (expand_errno_check): Fix arguments of
9356         do_compare_rtx_and_jump (now expects rtx_code_label).
9357         (expand_builtin_acc_on_device): Likewise.
9358         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9359         invert_jump (now exprects rtx_jump_insn).
9360         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9361         (construct_init_block): Use rtx_code_label.
9362         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9363         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9364         calling redirect_jump.
9365         (patch_jump_insn): Likewise.
9366         (redirect_branch_edge): Likewise.
9367         (force_nonfallthru_and_redirect): Likewise.
9368         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9369         when suitable.
9370         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9371         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9372         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9373         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9374         to store the value retured by gen_label_rtx.
9375         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9376         rtx_jump_insn.
9377         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9378         (split_branches): Fix calls of redirect_jump.
9379         * dojump.c (jumpifnot): Promote argument type from rtx to
9380         rtx_code_label.
9381         (jumpifnot_1): Likewise.
9382         (jumpif): Likewise.
9383         (jumpif_1): Likewise.
9384         (do_jump_1): Likewise.
9385         (do_jump): Likewise. Use rtx_code_label when feasible.
9386         (do_jump_by_parts_greater_rtx): Likewise.
9387         (do_jump_by_parts_zero_rtx): Likewise.
9388         (do_jump_by_parts_equality_rtx): Likewise.
9389         (do_compare_rtx_and_jump): Likewise.
9390         * dojump.h: Update function prototypes.
9391         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9392         returns rtx_insn).
9393         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9394         rtx_jump_insn.
9395         (emit_label_before): Likewise.
9396         (emit_jump_insn_after_noloc): Likewise.
9397         (emit_jump_insn_after_setloc): Likewise.
9398         (emit_jump_insn_after): Likewise
9399         (emit_jump_insn_before_setloc): Likewise.
9400         (emit_jump_insn_before): Likewise.
9401         (emit_label_before): Promote return type to rtx_code_label.
9402         (emit_label): Likewise.
9403         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9404         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9405         gen_move_insn.
9406         (emit_stack_restore): Likewise.
9407         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9408         (do_cmp_and_jump): Likewise.
9409         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9410         from rtx to rtx_code_label.
9411         (gen_move_insn_uncast): New function.
9412         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9413         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9414         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9415         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9416         invert_jump_1 and redirect_jump_1.
9417         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
9418         do_compare_rtx_and_jump.
9419         (expand_addsub_overflow): Likewise.
9420         (expand_neg_overflow): Likewise.
9421         (expand_mul_overflow): Likewise.
9422         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
9423         return value of gen_move_insn.
9424         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
9425         * loop-doloop.c (add_test): Use rtx_code_label.
9426         (doloop_modify): Likewise.
9427         (doloop_optimize): Likewise.
9428         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
9429         * lra-constraints.c (emit_spill_move): Remove cast of value returned
9430         by gen_move_insn.
9431         (inherit_reload_reg): Add cast when calling dump_insn_slim.
9432         (split_reg): Likewise.
9433         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
9434         gen_move_insn.
9435         * optabs.c (expand_binop_directly): Remove casts of values returned by
9436         maybe_gen_insn.
9437         (expand_unop_direct): Likewise.
9438         (expand_abs): Likewise.
9439         (maybe_emit_unop_insn): Likewise.
9440         (maybe_gen_insn): Promote return type to rtx_insn.
9441         * optabs.h: Update prototype of maybe_gen_insn.
9442         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
9443         redundant cast.
9444         * recog.c (struct peep2_insn_data): Promote type of insn field to
9445         rtx_insn.
9446         (peep2_reinit_state): Use NULL instead of NULL_RTX.
9447         (peep2_attempt): Remove casts of insn in peep2_insn_data.
9448         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
9449         * recog.h (struct insn_gen_fn): Promote return types of function
9450         pointers and operator ().from rtx to rtx_insn.
9451         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
9452         (fill_eager_delay_slots): Likewise.
9453         (relax_delay_slots): Likewise.
9454         (make_return_insns): Likewise.
9455         (dbr_schedule): Likewise.
9456         (optimize_skips): Likewise.
9457         (reorg_redirect_jump): Likewise.
9458         (fill_slots_from_thread): Likewise.
9459         * reorg.h: Update prototypes.
9460         * resource.c (find_dead_or_set_registers): Use dyn_cast to
9461         rtx_jump_insn instead of check.  Use it's jump_target method.
9462         * rtl.h (rtx_jump_insn::jump_label): Define new method.
9463         (rtx_jump_insn::jump_target): Define new method.
9464         (rtx_jump_insn::set_jump_target): Define new method.
9465         * rtlanal.c (tablejump_p): Promote type of one local variable.
9466         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
9467         (sched_analyze_insn): Likewise.
9468         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
9469         (print_insn): Likewise.
9470         * stmt.c (label_rtx): Promote return type to rtx_insn.
9471         (force_label_rtx): Likewise.
9472         (jump_target_rtx): Define new function.
9473         (expand_label): Use it, get rid of one cast.
9474         (expand_naked_return): Promote rtx to rtx_code_label.
9475         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
9476         (expand_case): Use rtx_code_label instread of rtx where feasible.
9477         (expand_sjlj_dispatch_table): Likewise.
9478         (emit_case_nodes): Likewise.
9479         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
9480         * store-motion.c (insert_store): Make use of new return type of
9481         gen_move_insn and remove a cast.
9482         (replace_store_insn): Likewise.
9483
9484 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
9485
9486         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
9487         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
9488
9489 2015-05-20  Jeff Law  <law@redhat.com>
9490
9491         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
9492         dispose of the jump thread path when the jump threading
9493         opportunity is cancelled.
9494
9495 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9496
9497         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
9498         when printing the caret character.
9499
9500 2015-05-20  Marek Polacek  <polacek@redhat.com>
9501
9502         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
9503
9504 2015-05-20  Marek Polacek  <polacek@redhat.com>
9505
9506         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
9507         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
9508         * gimple-fold.c (canonicalize_bool): Likewise.
9509         (same_bool_result_p): Likewise.
9510         * tree-if-conv.c (parse_predicate): Likewise.
9511
9512 2015-05-20  Marek Polacek  <polacek@redhat.com>
9513
9514         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
9515         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
9516
9517 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9518
9519         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
9520         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
9521         values.
9522
9523 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
9524
9525         * config/mips/mips.h (micromips_globals): Declare.
9526
9527 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
9528
9529         * timevar.def (TV_INITIALIZE_RTL): New.
9530         * toplev.c (initialize_rtl): Use an auto_timevar to account this
9531         function's time to TV_INITIALIZE_RTL.
9532
9533 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
9534
9535         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
9536         gimple_build_nop calls.
9537         (chkp_find_bounds_for_elem): Likewise.
9538         (chkp_get_zero_bounds): Likewise.
9539         (chkp_get_none_bounds): Likewise.
9540         (chkp_get_bounds_by_definition): Likewise.
9541         (chkp_generate_extern_var_bounds): Likewise.
9542         (chkp_get_bounds_for_decl_addr): Likewise.
9543         (chkp_get_bounds_for_string_cst): Likewise.
9544
9545 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
9546
9547         PR tree-optimization/65447
9548         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
9549         (dump_use, dump_uses): Support to dump sub use.
9550         (record_use): New parameters to support sub use.  Remove call to
9551         dump_use.
9552         (record_sub_use, record_group_use): New functions.
9553         (compute_max_addr_offset, split_all_small_groups): New functions.
9554         (group_address_uses, rewrite_use_address): New functions.
9555         (strip_offset): New declaration.
9556         (find_interesting_uses_address): Call record_group_use.
9557         (add_candidate): New assertion.
9558         (infinite_cost_p): Move definition forward.
9559         (add_costs): Check INFTY cost and return immediately.
9560         (get_computation_cost_at): Clear setup cost and dependent bitmap
9561         for sub uses.
9562         (determine_use_iv_cost_address): Compute cost for sub uses.
9563         (rewrite_use_address_1): Rename from old rewrite_use_address.
9564         (free_loop_data): Free sub uses.
9565         (tree_ssa_iv_optimize_loop): Call group_address_uses.
9566
9567 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
9568             Jim Wilson  <jim.wilson@linaro.org>
9569
9570         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
9571         new  fields loadv and storev.
9572         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
9573         Initialize loadv and storev.
9574         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
9575         (cortexa53_extra_costs): Likewise.
9576         (cortexa57_extra_costs): Likewise.
9577         (xgene1_extra_costs): Likewise.
9578         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
9579         rtx_costs.
9580
9581 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
9582
9583         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
9584          storev.
9585         (cortexa8_extra_costs): Likewise.
9586         (cortexa5_extra_costs): Likewise.
9587         (cortexa7_extra_costs): Likewise.
9588         (cortexa12_extra_costs): Likewise.
9589         (cortexa15_extra_costs): Likewise.
9590         (v7m_extra_costs): Likewise.
9591
9592 2015-05-20  Jeff Law  <law@redhat.com>
9593
9594         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
9595         instead of open-coded version.  Also delete the jump thread created
9596         within this function.
9597
9598 2015-05-20  Alan Modra  <amodra@gmail.com>
9599
9600         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
9601         stack adjusting insn.  Formatting.
9602         (rs6000_emit_prologue): Track stack adjusting insn, and use of
9603         r12.  If possible, emit first -fsplit-stack arg pointer insn
9604         before stack adjust.  Don't use r12 to save cr if split-stack.
9605
9606 2015-05-20  Alan Modra  <amodra@gmail.com>
9607
9608         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
9609         Define.
9610         (rs6000_supports_split_stack): New function.
9611         * gcc/config/rs6000/rs6000.c (machine_function): Add
9612         split_stack_arg_pointer.
9613         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
9614         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
9615         rather than virtual_incoming_args_rtx.
9616         (rs6000_va_start): Likewise.
9617         (split_stack_arg_pointer_used_p): New function.
9618         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
9619         (morestack_ref): New var.
9620         (gen_add3_const, rs6000_expand_split_stack_prologue,
9621         rs6000_internal_arg_pointer, rs6000_live_on_entry,
9622         rs6000_split_stack_space_check): New functions.
9623         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
9624         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
9625         (UNSPECV_SPLIT_STACK_RETURN): Define.
9626         (split_stack_prologue, load_split_stack_limit,
9627         load_split_stack_limit_di, load_split_stack_limit_si,
9628         split_stack_return, split_stack_space_check): New expands and insns.
9629         * gcc/config/rs6000/rs6000-protos.h
9630         (rs6000_expand_split_stack_prologue): Declare.
9631         (rs6000_split_stack_space_check): Declare.
9632
9633 2015-05-20  Alan Modra  <amodra@gmail.com>
9634
9635         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
9636         (direct_return): Test vrsave_size rather than vrsave_mask.
9637         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
9638         (rs6000_emit_epilogue): Likewise.
9639
9640 2015-05-20  Alan Modra  <amodra@gmail.com>
9641
9642         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
9643         when not saving registers.
9644         (debug_stack_info): Adjust to omit printing unused offsets,
9645         as before.
9646         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
9647         expression.
9648
9649 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9650
9651         PR c++/65835
9652         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
9653         value_type to const char *.
9654
9655 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
9656
9657         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
9658         to build a biarch toolchain again.
9659
9660 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
9661
9662         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
9663         or implicit declarations.
9664         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
9665         into it.
9666         (get_odr_type): Check type has linkage before adding bases.
9667         (register_odr_type): Check that type has linkage before adding it.
9668         (type_known_to_have_no_deriavations_p): Rename to ..
9669         (type_known_to_have_no_derivations_p): This one.
9670         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
9671         (type_known_to_have_no_derivations_p): This one.
9672         * ipa-polymorphic-call.c
9673         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
9674         type has linkage.
9675
9676 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9677
9678         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
9679         (layout_type): Use RECORD_OR_UNION_TYPE_P.
9680
9681 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9682
9683         * config/s390/s390.c (s390_vector_bool_type_p): New function.
9684         (s390_invalid_binary_op): New function.
9685         (TARGET_INVALID_BINARY_OP): Define macro.
9686
9687 2015-05-19  David Sherwood  <david.sherwood@arm.com>
9688
9689         * loop-invariant.c (create_new_invariant): Don't calculate address cost
9690         if mode is not a scalar integer.
9691         (get_inv_cost): Increase computational cost for unused invariants.
9692
9693 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9694
9695         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
9696         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
9697         * config/s390/s390-builtin-types.def: New file.
9698         * config/s390/s390-builtins.def: New file.
9699         * config/s390/s390-builtins.h: New file.
9700         * config/s390/s390-c.c: New file.
9701         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
9702         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
9703         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
9704         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
9705         prototypes.
9706         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
9707         Include.
9708         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
9709         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
9710         variable definitions.
9711         (s390_const_operand_ok): New function.
9712         (s390_expand_builtin): Rewrite.
9713         (s390_init_builtins): New function.
9714         (s390_handle_vectorbool_attribute): New function.
9715         (s390_attribute_table): Add s390_vector_bool attribute.
9716         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
9717         (s390_branch_condition_mask): Generate masks for new modes.
9718         (s390_expand_vec_compare_cc): New function.
9719         (s390_mangle_type): Add mangling for vector bool types.
9720         (enum s390_builtin): Remove.
9721         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
9722         efpc builtins.
9723         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
9724         s390_cpu_cpp_builtins.
9725         (REGISTER_TARGET_PRAGMAS): New macro.
9726         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
9727         (insn_cmp mode attribute): Add new CC modes.
9728         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
9729         (lcbb): New pattern definition.
9730         * config/s390/s390intrin.h: Include vecintrin.h.
9731         * config/s390/t-s390: New file.
9732         * config/s390/vecintrin.h: New file.
9733         * config/s390/vector.md: Include vx-builtins.md.
9734         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
9735         support.
9736
9737 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9738
9739         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
9740         CCVFHE.
9741         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
9742         (s390_select_ccmode): Likewise.
9743         (s390_canonicalize_comparison): Swap operands if necessary.
9744         (s390_expand_vec_compare_scalar): Expand DFmode compare using
9745         single element vector instructions.
9746         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
9747         (s390_branch_condition_mask): Generate CC masks for the new modes.
9748         * config/s390/s390.md (v0, vf, vd): New mode attributes.
9749         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
9750         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
9751         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
9752         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
9753         (*extend<DSF:mode><BFP:mode>2): New insn definition.
9754         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
9755         (extend<DSF:mode><BFP:mode>2): Turn into expander.
9756         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
9757         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
9758         (sqrt<mode>2): Add vector instruction.
9759
9760 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9761
9762         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
9763         constraints.
9764         * config/s390/predicates.md (const0_operand, constm1_operand)
9765         (constable_operand): Accept vector operands.
9766         * config/s390/s390-modes.def: Add supported vector modes.
9767         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
9768         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
9769         (s390_bytemask_vector_p, s390_expand_vec_strlen)
9770         (s390_expand_vec_compare, s390_expand_vcond)
9771         (s390_expand_vec_init): Add prototypes.
9772         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
9773         (s390_vector_mode_supported_p): New function.
9774         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
9775         (s390_contiguous_bitmask_vector_p): New function.
9776         (s390_bytemask_vector_p): New function.
9777         (s390_split_ok_p): Vector regs don't work either.
9778         (regclass_map): Add VEC_REGS.
9779         (s390_legitimate_constant_p): Handle vector constants.
9780         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
9781         (legitimate_reload_vector_constant_p): New function.
9782         (s390_preferred_reload_class): Handle CONST_VECTOR.
9783         (s390_reload_symref_address):  Likewise.
9784         (s390_secondary_reload): Vector memory instructions only support
9785         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
9786         (s390_emit_ccraw_jump): New function.
9787         (s390_expand_vec_strlen): New function.
9788         (s390_expand_vec_compare): New function.
9789         (s390_expand_vcond): New function.
9790         (s390_expand_vec_init): New function.
9791         (s390_dwarf_frame_reg_mode): New function.
9792         (print_operand): Handle addresses with 'O' and 'R' constraints.
9793         (NR_C_MODES, constant_modes): Add vector modes.
9794         (s390_output_pool_entry): Handle vector constants.
9795         (s390_hard_regno_mode_ok): Handle vector registers.
9796         (s390_class_max_nregs): Likewise.
9797         (s390_cannot_change_mode_class): New function.
9798         (s390_invalid_arg_for_unprototyped_fn): New function.
9799         (s390_function_arg_vector): New function.
9800         (s390_function_arg_float): Remove size variable.
9801         (s390_pass_by_reference): Handle vector arguments.
9802         (s390_function_arg_advance): Likewise.
9803         (s390_function_arg): Likewise.
9804         (s390_return_in_memory): Vector values are returned in a VR if
9805         possible.
9806         (s390_function_and_libcall_value): Handle vector arguments.
9807         (s390_gimplify_va_arg): Likewise.
9808         (s390_call_saved_register_used): Consider the arguments named.
9809         (s390_conditional_register_usage): Disable v16-v31 for non-vec
9810         targets.
9811         (s390_preferred_simd_mode): New function.
9812         (s390_support_vector_misalignment): New function.
9813         (s390_vector_alignment): New function.
9814         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
9815         (TARGET_VECTOR_MODE_SUPPORTED_P)
9816         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
9817         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9818         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
9819         (TARGET_VECTOR_ALIGNMENT): Define target macro.
9820         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
9821         (FIRST_PSEUDO_REGISTER): Increase value.
9822         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
9823         (VECTOR_REG_P): Define macros.
9824         (FIXED_REGISTERS, CALL_USED_REGISTERS)
9825         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
9826         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
9827         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
9828         Add vector registers.
9829         (CANNOT_CHANGE_MODE_CLASS): Call C function.
9830         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
9831         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
9832         memory.
9833         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
9834         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
9835         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
9836         (VR*_REGNUM): New constants.
9837         (ALL): New mode iterator.
9838         (INTALL): Remove mode iterator.
9839         Include vector.md.
9840         (movti): Implement TImode moves for VRs.
9841         Disable TImode splitter for VR targets.
9842         Implement splitting TImode GPR<->VR moves.
9843         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
9844         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
9845         reload<mode>_la_in, reload<mode>_la_out.
9846         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
9847         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
9848         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
9849         (mov<mode> SF SD): Prefer lder, lde for loading.
9850         Add lrl and strl instructions.
9851         Add vector instructions.
9852         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
9853         Call s390_expand_vec_strlen on z13.
9854         (*cc_to_int): Change predicate to nonimmediate_operand.
9855         (addti3): Rename to *addti3.  New expander.
9856         (subti3): Rename to *subti3.  New expander.
9857         * config/s390/vector.md: New file.
9858
9859 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9860
9861         * common/config/s390/s390-common.c (processor_flags_table): Add
9862         z13.
9863         * config.gcc: Add z13.
9864         * config/s390/s390-opts.h (enum processor_type): Add
9865         PROCESSOR_2964_Z13.
9866         * config/s390/s390.c (s390_adjust_priority): Check for
9867         PROCESSOR_2964_Z13.
9868         (s390_reorg): Likewise.
9869         (s390_sched_reorder): Likewise.
9870         (s390_sched_variable_issue): Likewise.
9871         (s390_loop_unroll_adjust): Likewise.
9872         (s390_option_override): Likewise. Default to -mvx when available.
9873         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
9874         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
9875         (TARGET_VX_ABI): Define macros.
9876         macros.
9877         (TARGET_DEFAULT): Add MASK_OPT_VX.
9878         * config/s390/s390.md ("cpu" attribute): Add z13.
9879         ("cpu_facility" attribute): Add vec.
9880         * config/s390/s390.opt (processor_type): Add z13.
9881         (mvx): New options.
9882         * doc/invoke.texi: Add z13 option for -march.
9883
9884 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9885
9886         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
9887         mode check to make sure that only scalar integer values are
9888         accepted.
9889
9890 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
9891
9892         * tree.c (verify_type_variant): Fix #undef.
9893         (gimple_canonical_types_compatible_p): Move here from lto.c
9894         (verify_type): Verify TYPE_CANONICAL compatibility.
9895         * tree.h (gimple_canonical_types_compatible_p): Declare.
9896
9897 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
9898
9899         PR middle-end/66199
9900         * tree.h (OMP_TEAMS_COMBINED): Define.
9901         * gimplify.c (enum gimplify_omp_var_data): Add
9902         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
9903         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
9904         (omp_notice_variable): Accept both ORT_TEAMS
9905         and ORT_COMBINED_TEAMS.  Don't recurse if
9906         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
9907         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
9908         GOVD_FIRSTPRIVATE.
9909         (omp_no_lastprivate): New function.
9910         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
9911         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
9912         notice_outer and set appropriate bits, otherwise make
9913         sure default(none) combined constructs won't complain.
9914         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
9915         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
9916         omp_no_lastprivate either remove the clause or turn it
9917         into OMP_CLAUSE_PRIVATE.
9918         (gimplify_omp_for): Fix up handling of implicit
9919         lastprivate or linear iterators.
9920         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
9921         ORT_COMBINED_TEAMS.
9922         * omp-low.c (lower_omp_for_lastprivate): For combined
9923         for simd use fd.loop.n2 from the for rather than simd.
9924
9925 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9926
9927         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
9928         instead of gen_rtx_raw_REG.
9929         (cris_expand_epilogue): Likewise.
9930         * config/microblaze/microblaze.c (microblaze_classify_address):
9931         Likewise.
9932         * config/sparc/sparc.md: Likewise.
9933
9934 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
9935
9936         * config/alpha/alpha.c (alpha_legitimize_reload_address)
9937         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
9938         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
9939         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
9940         Use CASE_CONST_SCALAR_INT.
9941         (print_operand) <case 'M'>: Use mode_width_operand to check the
9942         value of the constant.
9943         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
9944         * config/alpha/predicates.md (input_operand): Use general_operand
9945         instead of match_code as operand check.
9946         (symbolic_operand): Use match_code with subexpression digits.
9947         * config/alpha/constraints.md (Q): Ditto.
9948
9949 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9950
9951         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
9952
9953 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9954
9955         * config/s390/s390.c (s390_secondary_reload): Fix check for
9956         load/store relative.
9957
9958 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9959
9960         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
9961         alternative_mask to uint64_t.
9962
9963 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
9964
9965         PR tree-optimization/66187
9966         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9967         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
9968         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
9969
9970 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
9971
9972         * diagnostic.c (diagnostic_report_current_module): Strengthen
9973         local "new_map" from const line_map * to
9974         const line_map_ordinary *.
9975         * genmatch.c (error_cb): Likewise for local "map".
9976         (output_line_directive): Likewise for local "map".
9977         * input.c (expand_location_1): Likewise for local "map".
9978         Pass NULL rather than &map to
9979         linemap_unwind_to_first_non_reserved_loc, since the value is never
9980         read from there, and the value written back not read from here.
9981         (is_location_from_builtin_token): Strengthen local "map" from
9982         const line_map * to const line_map_ordinary *.
9983         (dump_location_info): Strengthen locals "map" from
9984         line_map *, one to const line_map_ordinary *, the other
9985         to const line_map_macro *.
9986         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
9987         const line_map * to const line_map_macro *.
9988         (maybe_unwind_expanded_macro_loc): Add a call to
9989         linemap_check_macro when writing to the "map" field of the
9990         loc_map_pair.
9991         Introduce local const line_map_ordinary * "ord_map", using it in
9992         place of "map" in the part of the function where we know we have
9993         an ordinary map.  Strengthen local "m" from const line_map * to
9994         const line_map_ordinary *.
9995
9996 2015-05-19  Nick Clifton  <nickc@redhat.com>
9997
9998         PR target/66156
9999         * config/msp430/msp430.md (zero_extendhisi2): Add support for
10000         separate source and destination registers.
10001
10002 2015-05-19  Richard Biener  <rguenther@suse.de>
10003
10004         PR tree-optimization/66165
10005         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10006         for no load permutation.
10007
10008         PR tree-optimization/66185
10009         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10010         when building the SLP node from scalars.
10011
10012 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10013             Tristan Gingold  <gingold@adacore.com>
10014
10015         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10016         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10017         (expand_stack_restore): Call record_new_stack_level.
10018         (expand_stack_save): Do not call do_pending_stack_adjust.
10019         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10020         * calls.c (expand_call): Call record_new_stack_level for alloca.
10021         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10022         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10023         (update_sjlj_context): New global function.
10024         * except.h (update_sjlj_context): Declare.
10025         * explow.c (record_new_stack_level): New global function.
10026         (allocate_dynamic_stack_space): Call record_new_stack_level.
10027         * explow.h (record_new_stack_level): Declare.
10028         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10029         * cfgrtl.c (duplicate_insn_chain): Likewise.
10030
10031 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10032
10033         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10034         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10035         STACK_GROWS_DOWNWARD as normal if.
10036         (expand_call): Likewise.
10037
10038 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
10039
10040         PR target/54236
10041         * config/sh/sh.md (*round_int_even): New insn_and_split and
10042         accompanying new unnamed split.
10043
10044 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10045
10046         * bitmap.c (bitmap_set_range): Handle count==1 specially.
10047         (bitmap_clear_range): Likewise.
10048         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10049         bitmap_set_range unconditionally.
10050         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10051         * df-scan.c (df_mark_reg): Likewise.
10052         * haifa-sched.c (setup_ref_regs): Likewise.
10053         * sched-rgn.c (update_live_1): Likewise.
10054
10055 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10056
10057         * regs.h (END_HARD_REGNO): Delete.
10058         (END_REGNO): Move to...
10059         * rtl.h: ...here.
10060         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10061         * caller-save.c (mark_set_regs): Likewise.
10062         * combine.c (move_deaths, distribute_notes): Likewise.
10063         * cse.c (invalidate, invalidate_for_call): Likewise.
10064         * df-scan.c (df_ref_record): Likewise.
10065         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10066         (record_last_reg_set_info): Likewise.
10067         * reg-stack.c (convert_regs_exit): Likewise.
10068         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10069         * resource.c (update_live_status): Likewise.
10070         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10071
10072 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10073
10074         * rtl.h (reg_info): Add an nregs field.
10075         (REG_NREGS): Use it.
10076         (SET_REGNO_RAW): Delete.
10077         (set_regno_raw): New function.
10078         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10079         (END_REGNO): Redefine in terms of REG_NREGS.
10080         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10081         SET_REGNO_RAW.
10082         * emit-rtl.c (set_mode_and_regno): Likewise.
10083         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10084         instead of SET_REGNO_RAW.
10085
10086 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10087
10088         * rtl.h (PUT_MODE_RAW): New macro.
10089         (PUT_REG_NOTE_KIND): Use it.
10090         (set_mode_and_regno): Declare.
10091         (gen_raw_REG): Change regno to "unsigned int".
10092         (gen_rtx_REG): Change "unsigned" to "unsigned int".
10093         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10094         use set_mode_and_regno to change the mode of registers.
10095         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10096         * emit-rtl.c (set_mode_and_regno): New function.
10097         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
10098         * caller-save.c (reg_save_code): Use set_mode_and_regno.
10099         * expr.c (init_expr_target): Likewise.
10100         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10101         * postreload.c (reload_cse_simplify_operands): Likewise.
10102
10103 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10104
10105         * caller-save.c (init_caller_save): Use word_mode and
10106         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10107         * expr.c (init_expr_target): Likewise.
10108         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10109         * postreload.c (reload_cse_regs_1): Likewise.
10110
10111 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10112
10113         * rtl.def (REG): Change format to "r".
10114         * rtl.h (rtunion): Remove rt_reg.
10115         (reg_info): New structure.
10116         (rtx_def): Add reg field to main union.
10117         (X0REGATTR): Delete.
10118         (REG_CHECK): New macro.
10119         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10120         * rtl.c (rtx_format): Document "r".
10121         (rtx_code_size): Handle REG specially.
10122         * gengenrtl.c (special_format): Return true for formats
10123         that include 'r'.
10124         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10125         Deal with REG_ATTRS after the field loop.
10126         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10127         * expmed.c (init_expmed): Call gen_raw_REG instead of
10128         gen_rtx_raw_REG.
10129         * expr.c (init_expr_target): Likewise.
10130         * regcprop.c (maybe_mode_change): Likewise.
10131         * varasm.c (make_decl_rtl): Likewise.
10132         * final.c (leaf_renumber_regs_insn): Return early after
10133         handling REGs.
10134         * genemit.c (gen_exp): Handle 'r' fields.
10135         * genpeep.c (match_rtx): Likewise.
10136         * gensupport.c (subst_pattern_match): Likewise.
10137         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10138         (alter_constraints, subst_dup): Likewise.
10139         * read-rtl.c (read_rtx_code): Likewise.
10140         * print-rtl.c (print_rtx): Likewise.
10141         * genrecog.c (find_operand, find_matching_operand): Likewise.
10142         (validate_pattern, match_pattern_2): Likewise.
10143         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10144         (rtx_test::regno_field): New function.
10145         (operator ==, safe_to_hoist_p, transition_parameter_type)
10146         (parameter_type_string, print_parameter_value)
10147         (print_nonbool_test, print_test): Handle new enum values.
10148         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10149         * lra-constraints.c (operands_match_p): Likewise.
10150
10151 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10152
10153         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10154         Change type of new_regno to unsigned int.
10155         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10156         new_regno to unsigned int.
10157         (df_ref_change_reg_with_loc): Remove old_regno parameter.
10158         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
10159         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10160         (SET_REGNO_RAW): Add space after ",".
10161
10162 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10163
10164         * rtl.h (REG_NREGS): New macro
10165         * alias.c (record_set): Use it.
10166         * cfgcleanup.c (mark_effect): Likewise.
10167         * combine.c (likely_spilled_retval_1): Likewise.
10168         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10169         (move_deaths, distribute_notes): Likewise.
10170         * cselib.c (cselib_record_set): Likewise.
10171         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10172         * df-scan.c (df_mark_reg): Likewise.
10173         * dse.c (look_for_hardregs): Likewise.
10174         * dwarf2out.c (reg_loc_descriptor): Likewise.
10175         (multiple_reg_loc_descriptor): Likewise.
10176         * expr.c (write_complex_part, read_complex_part): Likewise.
10177         (emit_move_complex): Likewise.
10178         * haifa-sched.c (setup_ref_regs): Likewise.
10179         * ira-lives.c (mark_hard_reg_live): Likewise.
10180         * lra.c (lra_set_insn_recog_data): Likewise.
10181         * mode-switching.c (create_pre_exit): Likewise.
10182         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10183         (reload_combine_recognize_pattern): Likewise.
10184         (reload_combine_note_use, move2add_record_mode): Likewise.
10185         (reload_cse_move2add): Likewise.
10186         * reg-stack.c (subst_stack_regs_pat): Likewise.
10187         * regcprop.c (kill_value, copy_value): Likewise.
10188         (copyprop_hardreg_forward_1): Likewise.
10189         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10190         (build_def_use): Likewise.
10191         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10192         (deps_analyze_insn): Likewise.
10193         * sched-rgn.c (check_live_1, update_live_1): Likewise.
10194         * sel-sched.c (count_occurrences_equiv): Likewise.
10195         * valtrack.c (dead_debug_insert_temp): Likewise.
10196
10197 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
10198
10199         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10200         * dse.c (note_add_store): Likewise.
10201         * ira-lives.c (mark_hard_reg_dead): Likewise.
10202         * loop-invariant.c (mark_reg_store): Likewise.
10203         (mark_reg_death): Likewise.
10204         * postreload.c (reload_combine): Likewise.
10205         (reload_combine_note_store): Likewise.
10206         (reload_combine_note_use): Likewise.
10207         * recog.c (peep2_reg_dead_p): Likewise.
10208
10209 2015-05-19  Alan Modra  <amodra@gmail.com>
10210
10211         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10212         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10213         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10214         unused predicates.
10215         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10216         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
10217         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10218         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10219
10220 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
10221
10222         * config/mips/mips.md (JOIN_MODE): New mode iterator.
10223         (join2_load_Store<JOIN_MODE:mode>): New pattern.
10224         (join2_loadhi): Likewise.
10225         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10226         load-load and store-stores.
10227         * config/mips/mips.opt (mload-store-pairs): New option.
10228         (TARGET_LOAD_STORE_PAIRS): New macro.
10229         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10230         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10231         * config/mips/mips.c (mips_load_store_bonding_p): New function.
10232
10233 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
10234
10235         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10236         explicit swaps.
10237         * dojump.c (do_compare_rtx_and_jump): Likewise.
10238         * expmed.c (emit_store_flag_1): Likewise.
10239         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10240         * final.c (sprint_ul): Use std::reverse for reversing a string.
10241         * fold-const.c (extract_muldiv_1): Use std::swap.
10242         * genmodes.c (emit_mode_int_n): Likewise.
10243         * ifcvt.c (dead_or_predicable): Likewise.
10244         * ira-build.c (ira_merge_live_ranges): Likewise.
10245         (swap_allocno_copy_ends_if_necessary): Likewise.
10246         * ira.c (ira_setup_alts): Likewise.
10247         * loop-iv.c (iv_analyze_expr): Likewise.
10248         (implies_p): Likewise.
10249         (canon_condition): Likewise.
10250         * lra-constraints.c (swap_operands): Likewise.
10251         * lra-lives.c (lra_merge_live_ranges): Likewise.
10252         * omega.c (swap): Remove.
10253         (bswap): Remove.
10254         (omega_unprotect_1): Use std::swap.
10255         (omega_solve_geq): Likewise.
10256         * optabs.c (expand_binop_directly): Likewise.
10257         (expand_binop): Likewise.
10258         (emit_conditional_move): Likewise.
10259         (emit_conditional_add): Likewise.
10260         * postreload.c (reload_cse_simplify_operands): Likewise.
10261         * reg-stack.c (emit_swap_insn): Likewise.
10262         (swap_to_top): Likewise.
10263         (compare_for_stack_reg): Likewise.
10264         (subst_asm_stack_regs): Likewise.
10265         * reload.c (find_reloads): Likewise.
10266         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10267         * sel-sched.c (invoke_reorder_hooks): Likewise.
10268         (create_block_for_bookkeeping): Likewise.
10269         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10270         (lambda_matrix_right_hermite): Use std::swap.
10271         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10272         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10273         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10274         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10275         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10276         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10277         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10278         * tree-vrp.c (compare_ranges): Likewise.
10279         * var-tracking.c (add_with_sets): Likewise.
10280         (vt_find_locations): Likewise.
10281
10282 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
10283
10284         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10285         pie executables.
10286         (FBSD_ENDFILE_SPEC): Likewise.
10287         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10288         config/freebsd-spec.h.
10289         (ENDFILE_SPEC): Likewise.
10290
10291 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
10292             Richard Henderson  <rth@redhat.com>
10293
10294         PR target/57032
10295         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10296         Check for a memory location that is not a reference (using an AND)
10297         to an unaligned location here.
10298         * config/alpha/predicates.md (normal_memory_operand): Remove.
10299
10300 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
10301
10302         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10303         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10304
10305 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
10306
10307         * config/mips/mips.c (micromips_globals): New variable.
10308         (mips_set_compression_mode): Save and reinitialize target-dependent
10309         state for microMIPS.
10310
10311 2015-05-18  Martin Liska  <mliska@suse.cz>
10312
10313         * dbgcnt.def: Add new counter.
10314         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10315
10316 2015-05-18  Martin Liska  <mliska@suse.cz>
10317
10318         * dbgcnt.def: Sort counters.
10319         * opts.c (common_handle_option): Do not compile if
10320         -fdbg-cnt-list is enabled.
10321
10322 2015-05-18  Tom de Vries  <tom@codesourcery.com>
10323
10324         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10325         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
10326         address operator to va_list operand.
10327         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10328         unconditionally.
10329         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10330         operand.
10331         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10332         * config/s390/s390.c (s390_gimplify_va_arg): Same.
10333         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10334
10335 2015-05-18  Tom de Vries  <tom@codesourcery.com>
10336
10337         * tree-ssa-tail-merge.c: Fix whitespace.
10338
10339 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
10340
10341         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10342         cortex-a17, and cortex-a17.cortex-a7.
10343
10344 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
10345
10346         PR target/54236
10347         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10348
10349 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
10350
10351         PR target/66174
10352         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10353         QImode inner modes for TARGET_AVX512BW.  Force mask operand
10354         to a register for AVX512F modes.
10355
10356 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10357
10358         * toplev.c (emit_debug_global_declarations): Do not output debug info
10359         when doing slim LTO objects.
10360
10361 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10362
10363         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10364         odr_types_equivalent_p): Declare.
10365         (odr_type_p): Use gcc_checking_assert.
10366         (type_in_anonymous_namespace_p) Declare.
10367         (type_with_linkage_p): Declare.
10368         * common.opt (Wlto-type-mismatch): New warning.
10369         * ipa-devirt.c (compound_type_base): New function.
10370         (odr_or_derived_type_p): New function.
10371         (odr_types_equivalent_p): New function.
10372         (add_type_duplicate): Simplify.
10373         (type_with_linkage_p): Add hack to prevent false positives on C types
10374         (type_in_anonymous_namespace_p): Likewise.
10375         * tree.c (need_assembler_name_p): Use type_with_linkage.
10376         * tree.h (type_in_anonymous_namespace_p): Remove.
10377         * doc/invoke.texi (-Wlto-type-mismatch): Document
10378
10379 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
10380
10381         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10382         (verify_type): Verify STRING_FLAG.
10383
10384 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10385
10386         PR fortran/44054
10387         * tree-pretty-print.c (percent_K_format): Replace locus pointer
10388         with accessor function.
10389         * tree-diagnostic.c (diagnostic_report_current_function): Use
10390         diagnostic_location function.
10391         (maybe_unwind_expanded_macro_loc): Likewise.
10392         (virt_loc_aware_diagnostic_finalizer): Likewise.
10393         (default_tree_printer): Replace locus pointer with accessor function.
10394         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10395         (diagnostic_set_info_translated): Initialize second location.
10396         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10397         (diagnostic_show_locus): Handle two locations. Call
10398         diagnostic_print_caret_line.
10399         (diagnostic_print_caret_line): New.
10400         (default_diagnostic_starter): Use diagnostic_location function.
10401         (diagnostic_report_diagnostic): Use diagnostic_location function.
10402         (verbatim): Do not set text.locus.
10403         * diagnostic.h (struct diagnostic_info): Remove location field.
10404         (struct diagnostic_context): Make caret_chars an array of two.
10405         (diagnostic_location): New inline.
10406         (diagnostic_expand_location): Handle two locations.
10407         (diagnostic_same_line): New inline.
10408         (diagnostic_print_caret_line): Declare.
10409         (CARET_LINE_MARGIN): New constant.
10410         * pretty-print.c (pp_printf): Do not set text.locus.
10411         (pp_verbatim): Do not set text.locus.
10412         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10413         (struct text_info): Replace locus pointer with locations
10414         array. Add accessor functions.
10415
10416 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
10417             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10418
10419         PR target/65768
10420         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
10421         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
10422          large constants in register instead of splitting them.
10423
10424 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
10425
10426         PR target/66140
10427         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
10428         replacements in memory addresses.
10429         (get_unaligned_address): Ditto.
10430
10431 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
10432
10433         * config/ft32/*: New files for FT32 port.
10434         * doc/install.texi: Add FT32 information.
10435         * doc/invoke.texi: Add FT32 information.
10436         * doc/md.texi: Add FT32 information.
10437         * doc/contrib.texi: Self added.
10438
10439 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
10440
10441         PR tree-optimization/64454
10442         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
10443         (-1 - A -> ~A): Remove unnecessary condition.
10444
10445 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10446
10447         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
10448         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10449         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
10450
10451 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
10452
10453         * ipa-chkp.h (chkp_wrap_function): New.
10454         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
10455         (chkp_wrap_function_name): New.
10456         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
10457         to get wrapper name.
10458         * lto-cgraph.c: Include ipa-chkp.h.
10459         (input_cgraph_1): Avoid alias chain for wrappers.
10460
10461 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10462
10463         PR middle-end/66134
10464         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
10465         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
10466
10467 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10468
10469         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
10470         (AARCH64_FL_SLOWMUL): Delete.
10471         (AARCH64_FL_CRC): Redefine to 1<<3.
10472         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
10473
10474 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10475
10476         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
10477         casting.
10478
10479 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
10480
10481         * config/alpha/alpha.md (extendqidi2): Use general_operand
10482         instead of some_operand for operand[1] predicate.
10483         (extendhidi2): Ditto.
10484         (cbranchdi4): Use general_operand instead of some_operand
10485         for operand[1] and operands[2] predicates.
10486         (cstoredi4): Ditto.
10487         * config/alpha/predicates.md (some_operand): Remove unused predicate.
10488         (some_ni_operand): Ditto.
10489
10490 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
10491
10492         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
10493         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
10494         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
10495         low part of the constant using alpha_emit_set_const_1.
10496         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
10497
10498 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
10499
10500         * varasm.c (output_constant_pool_1): Pass down alignment from
10501         constant pool entry's descriptor to output_constant_pool_2.
10502         (output_object_block): Add comment prior to call to
10503         output_constant_pool_1.
10504
10505 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
10506
10507         PR rtl-optimization/65862
10508         * target.def (ira_change_pseudo_allocno_class): New hook.
10509         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
10510         value of the hook.
10511         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
10512         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
10513         hook.
10514         * ira-costs.c (find_costs_and_classes): Call the hook and change
10515         classes when it is necessary.
10516         * doc/tm.texi: Update.
10517
10518 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
10519
10520         * config/i386/i386.md (sibcall_memory): Check that register with
10521         callee address is not also used as one of the arguments, instead
10522         of checking that it is not live after the sibcall.
10523         (sibcall_pop_memory): Ditto.
10524         (sibcall_value_memory): Ditto.
10525         (sibcall_value_pop_memory): Ditto.
10526
10527 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
10528
10529         * generic-match-head.c (types_match): Handle non-types.
10530         * gimple-match-head.c (types_match): Likewise.
10531         * match.pd: Remove unnecessary TREE_TYPE for types_match.
10532
10533 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
10534
10535         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
10536         (csneg3<mode>_insn): Enable expansion of pattern.
10537
10538 2015-05-14  Nick Clifton  <nickc@redhat.com>
10539
10540         * config/rl78/rl78.c (rl78_select_section): Select the correct
10541         default section based upon the category of the decl.
10542
10543 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
10544
10545         PR rtl-optimization/30967
10546         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
10547         destination mode for the cost of scc patterns.
10548
10549 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
10550
10551         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
10552         using SWIM248 mode iterator.
10553         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
10554         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
10555         for operand[2] constraint.
10556         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
10557
10558 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10559
10560         PR middle-end/66133
10561         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
10562         make sure it is never noreturn, even when the task body does not
10563         return.
10564         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
10565         right before GIMPLE_OMP_RETURN.
10566         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
10567         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
10568         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
10569
10570 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10571
10572         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
10573         * tree-ssa-math-opts.c: Include params.h
10574         (pow_synth_sqrt_info): New struct.
10575         (representable_as_half_series_p): New function.
10576         (get_fn_chain): Likewise.
10577         (print_nested_fn): Likewise.
10578         (dump_fractional_sqrt_sequence): Likewise.
10579         (dump_integer_part): Likewise.
10580         (expand_pow_as_sqrts): Likewise.
10581         (gimple_expand_builtin_pow): Use above to attempt to expand
10582         pow as series of square roots.  Removed now unused variables.
10583
10584 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
10585
10586         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
10587         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
10588         Remove *p0 and *p1 arguments.  Rewrite function.
10589         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
10590         (alpha_split_const_mov): Update calls to alpha_extract_integer and
10591         alpha_emit_set_long_const.
10592         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
10593         (alpha_output_mi_thunk_osf): Ditto.
10594         * config/alpha/alpha.md (movti): Do not check operands[1]
10595         for CONST_DOUBLE.
10596
10597 2015-05-13  Richard Biener  <rguenther@suse.de>
10598
10599         PR tree-optimization/66129
10600         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
10601         commutative.
10602         (vect_schedule_slp_instance): Fix typo.
10603
10604 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
10605
10606         * common.opt (fdump-internal-locations): New option.
10607         * input.c: Include diagnostic-core.h.
10608         (get_end_location): New function.
10609         (write_digit): New function.
10610         (write_digit_row): New function.
10611         (dump_location_range): New function.
10612         (dump_labelled_location_range): New function.
10613         (dump_location_info): New function.
10614         * input.h (dump_location_info): New prototype.
10615         * toplev.c (compile_file): Handle flag_dump_locations.
10616
10617 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10618
10619         * gimple-expr.h (is_gimple_constant): Reorder.
10620         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
10621
10622 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
10623
10624         * combine.c (simplify_set): When generating a CC set, if the
10625         source already is in the correct mode, do not wrap it in a
10626         compare.  Simplify the rest of that code.
10627
10628 2015-05-13  Richard Biener  <rguenther@suse.de>
10629
10630         PR tree-optimization/66123
10631         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
10632         a taken edge.
10633
10634 2015-05-13  Richard Biener  <rguenther@suse.de>
10635
10636         PR middle-end/66110
10637         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
10638         specially.
10639         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
10640
10641 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
10642
10643         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
10644         * aclocal.m4: Regenerated with automake-1.11.6.
10645
10646 2015-05-13  Tom de Vries  <tom@codesourcery.com>
10647
10648         PR tree-optimization/66010
10649         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
10650         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
10651         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
10652         and rval based on do_deref.
10653
10654 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10655
10656         PR target/65103
10657         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
10658         link time constants into adress expressions and therefore set
10659         their cost to 0.
10660
10661 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10662
10663         PR target/66112
10664         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
10665         Use SWI248 iterator instead of SWI.
10666         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
10667         Use eq_attr "alternative" "0" instead of match_test in
10668         length_immediate attribute computation.
10669         (*mulvhi4, *mulvhi4_1): New define_insns.
10670
10671         PR target/66112
10672         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
10673         SIGNED to get precision of non-negative value.
10674
10675 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10676
10677         PR target/66048
10678         * function.c (diddle_return_value_1): Process bounds first.
10679         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
10680         register.
10681
10682 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10683
10684         PR rtl-optimization/64616
10685         * loop-invariant.c (can_move_invariant_reg): New.
10686         (move_invariant_reg): Call above new function to decide whether
10687         instruction can just be moved, skipping creation of temporary
10688         register.
10689
10690 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
10691
10692         PR target/pr66047.c
10693         * i386.c (ix86_function_sseregparm): Only return -1 if local function
10694         with implied regparm is called from -mno-sse function.
10695         (init_cumulative_args): Output error if ix86_function_sseregparm
10696         return -1 and SSE register would be needed.
10697         (function_arg_advance_32): Likewise.
10698         (function_arg_32): Likewise.
10699         * i386.h (ix86_args): Add decl field.
10700
10701 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
10702
10703         PR ipa/65873
10704         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
10705         inlines across optimization boundary.
10706
10707 2015-05-12  Jason Merrill  <jason@redhat.com>
10708
10709         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
10710         string literal and macro name.
10711
10712 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
10713
10714         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
10715         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
10716         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
10717
10718 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
10719
10720         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
10721         (-Wmisleading-indentation): New option.
10722         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
10723
10724 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
10725
10726         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
10727         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
10728         (alpha_extract_integer): Ditto.
10729         (alpha_legitimate_constant_p): Ditto.
10730         (alpha_split_tmode_pair): Ditto.
10731         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
10732         (alpha_expand_mov): Ditto.
10733         (print_operand): Remove handling of 'H' modifier.
10734         <case 'm'>: Remove CONST_DOUBLE handling.
10735         (summarize_insn): Handle CONST_WIDE_INT.
10736         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
10737         (anddi3): Ditto.
10738         (movti): Handle CONST_WIDE_INT.
10739         * config/alpha/constraints.md ('H'): Remove constraint definition.
10740         ('G'): Do not match MODE_FLOAT class.
10741         * config/alpha/predicates.md (const0_operand): Also match
10742         const_wide_int.
10743         (non_add_const_operand): Ditto.
10744         (non_zero_const_operand): Ditto.
10745         (some_operand): Ditto.
10746         (input_operand): Ditto.  Handle CONST_WIDE_INT.
10747         (and_operand): Do not match const_double.
10748         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
10749
10750 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
10751
10752         PR target/65697
10753         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
10754         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
10755         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10756         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
10757         is_mm_seq_cst, is_mm_sync): New accessor functions.
10758         * builtins.c (expand_builtin_sync_operation,
10759         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
10760         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
10761         (get_memmodel,  expand_builtin_atomic_compare_exchange,
10762         expand_builtin_atomic_load, expand_builtin_atomic_store,
10763         expand_builtin_atomic_clear): Use new accessor routines.
10764         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
10765         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
10766         (maybe_emit_sync_lock_test_and_set): Use new accessors and
10767         MEMMODEL_SYNC_ACQUIRE.
10768         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
10769         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
10770         expand_atomic_store): Use new accessors.
10771         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
10772         * tsan.c (instrument_builtin_call): Update check for memory model beyond
10773         final enum to use MEMMODEL_LAST.
10774         * c-family/c-common.c: Use new accessor for memmodel_base.
10775         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
10776         accessors.
10777         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
10778         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
10779         mem_thread_fence, *dmb): Likewise.
10780         * config/alpha/alpha.c (alpha_split_compare_and_swap,
10781         alpha_split_compare_and_swap_12): Likewise.
10782         * config/arm/arm.c (arm_expand_compare_and_swap,
10783         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
10784         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
10785         atomic_loaddi): Likewise.
10786         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
10787         Likewise.
10788         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
10789         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
10790         use new accessors.
10791         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
10792         atomic_store<mode>, atomic_compare_and_swap<mode>,
10793         atomic_exchange<mode>): Use new accessors.
10794         * config/mips/mips.c (mips_process_sync_loop): Likewise.
10795         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
10796         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
10797         rs6000_post_atomic_barrier): Add new cases.
10798         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
10799         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
10800         (atomic_load<mode>): Add new cases and use new accessors.
10801         (store_quadpti): Add new cases.
10802         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
10803         accessors.
10804         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
10805         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
10806         model, not 8.
10807
10808 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
10809
10810         * ipa-devirt.c (type_with_linkage_p): New function.
10811         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
10812         type has linkage.
10813         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
10814         (can_be_name_hashed_p): Simplify.
10815         (hash_odr_name): Check that type has linkage before checking if it is
10816         anonymous.
10817         (types_same_for_odr): Likewise.
10818         (odr_name_hasher::equal): Likewise.
10819         (odr_subtypes_equivalent_p): Likewise.
10820         (warn_types_mismatch): Likewise.
10821         (get_odr_type): Likewise.
10822         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
10823         * ipa-utils.h (odr_type_p): Move offline.
10824         * tree.c (need_assembler_name_p): Fix handling of types
10825         without linkages.
10826         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
10827
10828 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
10829
10830         * timevar.c (timevar_enable): Delete in favor of...
10831         (g_timer): New global.
10832         (struct timevar_def): Move to timevar.h inside class timer.
10833         (struct timevar_stack_def): Likewise.
10834         (timevars): Delete global in favor of field "m_timevars" within
10835         class timer in timevar.h
10836         (stack): Likewise, in favor of field "m_stack".
10837         (unused_stack_instances): Likewise, in favor of field
10838         "m_unused_stack_instances".
10839         (start_time): Likewise, in favor of field "m_start_time".
10840         (get_time): Eliminate check for timevar_enable.
10841         (timer::timer): New function, built from part of timevar_init.
10842         (timevar_init): Rewrite idempotency test from using
10843         "timevar_enable" bool to using dynamic allocation of "g_timer".
10844         Move rest of implementation into timer's constructor.
10845         (timevar_push_1): Rename to...
10846         (timer::push): ...this, adding "m_" prefixes to variables that
10847         are now fields of timer.
10848         (timevar_pop_1): Likewise, rename to...
10849         (timer::pop): ...this, and add "m_" prefixes.
10850         (timevar_start): Replace test for "timevar_enable" with one for
10851         "g_timer", and move bulk of implementation to...
10852         (timer::start): ...here, adding "m_" prefixes.
10853         (timevar_stop): Likewise, from here...
10854         (timer::stop): ...to here.
10855         (timevar_cond_start): Likewise, from here...
10856         (timer::cond_start): ...to here.
10857         (timevar_cond_stop): Likewise, from here...
10858         (timer::cond_stop): ...to here.
10859         (validate_phases): Rename to...
10860         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
10861         locals "total" and "tv" const.
10862         (timevar_print): Rename to...
10863         (timer::print): ...this, and add "m_" prefixes.  Make locals
10864         "total" and "tv" const.  Eliminate test for timevar_enable.
10865         * timevar.h (timevar_enable): Eliminate.
10866         (g_timer): New declaration.
10867         (timevar_push_1): Eliminate.
10868         (timevar_pop_1): Eliminate.
10869         (timevar_print): Eliminate.
10870         (class timer): New class.
10871         (timevar_push): Rewrite to use g_timer.
10872         (timevar_pop): Likewise.
10873         * toplev.c (toplev::~toplev): Likewise.
10874
10875 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
10876
10877         * arm-protos.h (arm_sched_autopref): Delete.
10878         (tune_params): Re-organize, use enums for flag values.
10879         (FUSE_OPS): New macro.
10880         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
10881         (ARM_PREFETCH_BENEFICIAL): Likewise.
10882         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
10883         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10884         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
10885         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
10886         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
10887         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
10888         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
10889         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
10890         format.
10891         (arm_option_override, thumb2_reorg, arm_print_tune_info)
10892         (aarch_macro_fusion_pair_p): Update uses of current_tune.
10893         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
10894
10895 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
10896
10897         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
10898         "break".
10899
10900 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
10901             Sandra Loosemore <sandra@codesourcery.com>
10902
10903         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
10904         value.
10905         (REG_CLASS_NAMES): Add "IJMP_REGS".
10906         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
10907         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
10908         use new "c" register constraint.
10909         * config/nios2/constraint.md (c): New register constraint
10910         corresponding to IJMP_REGS.
10911
10912 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10913
10914         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
10915         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
10916         define_splits): Delete, revamp, transmogrify into ...
10917         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10918         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10919         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10920         New.
10921
10922 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10923
10924         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
10925         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
10926
10927 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10928
10929         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
10930         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
10931         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
10932         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
10933         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
10934         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
10935         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
10936         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
10937         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
10938         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10939         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
10940         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
10941         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
10942         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
10943         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
10944         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
10945         and 30 corresponding splitters): Delete.
10946
10947 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10948
10949         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
10950         zero_extract.
10951
10952 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10953
10954         * combine.c (recog_for_combine_1): New function, factored out
10955         from recog_for_combine.
10956         (change_zero_ext): New function.
10957         (recog_for_combine): If recog fails, try again with the pattern
10958         modified by change_zero_ext; if that still fails, restore the
10959         pattern.
10960
10961 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10962
10963         * combine.c (get_undo_marker): New function.
10964         (undo_to_marker): New function, largely factored out from ...
10965         (undo_all): ... this.  Adjust.
10966
10967 2015-05-12  Richard Biener  <rguenther@suse.de>
10968
10969         PR tree-optimization/66101
10970         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
10971         fixup if we turn a loop exit edge to a fallthru edge.
10972
10973 2015-05-12  Richard Biener  <rguenther@suse.de>
10974
10975         PR tree-optimization/37021
10976         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
10977         (SLP_TREE_TWO_OPERATORS): New define.
10978         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
10979         SLP_TREE_TWO_OPERATORS.
10980         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
10981         SLP node.
10982         (vect_build_slp_tree): Adjust.
10983         (vect_analyze_slp_cost_1): Likewise.
10984         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
10985         emitting two vector stmts and mixing the results.
10986
10987 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10988
10989         * call.c (print_z_candidates): Remove dead code.
10990
10991 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10992
10993         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
10994         and zEC12_simple_fp.
10995         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
10996         to 1.
10997
10998 2015-05-12  Tom de Vries  <tom@codesourcery.com>
10999
11000         PR tree-optimization/66010
11001         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11002         ifn_va_arg.
11003         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11004         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
11005         va_lists are passed, and remove corresponding handling.
11006         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
11007         do_deref argument to ifn_va_arg.
11008         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11009         ifn_va_arg.
11010
11011 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11012
11013         PR target/65955
11014         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11015         REG before taking its REGNO.
11016
11017 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11018
11019         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11020         rsp->sign_bit_copies and rsp->nonzero_bits into ...
11021         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
11022         present to get more accurate information about the number of sign bit
11023         copies and non zero bits.
11024
11025 2015-05-12  Richard Biener  <rguenther@suse.de>
11026
11027         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11028         do not allow unrolling.
11029
11030 2015-05-11  Richard Henderson  <rth@redhat.com>
11031
11032         * config/i386/i386-modes.def (CCP): New.
11033         * config/i386/i386.c (put_condition_code): Handle it.
11034         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11035
11036 2015-05-11  Richard Henderson  <rth@redhat.com>
11037
11038         * target.def (md_asm_clobbers): Replace with...
11039         (md_asm_adjust): this.
11040         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11041         (TARGET_MD_ASM_ADJUST): New.
11042         * tm.texi: Rebuild.
11043         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11044         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11045         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11046
11047         * cfgexpand.c (check_operand_nalternatives): Accept vector of
11048         constraints instead of lists of outputs and inputs.
11049         (expand_asm_stmt): Save and restore input_location around the
11050         body of the function.  Move asm data into vectors instead of
11051         building tree lists.  Generate cleanup sequences as needed,
11052         rather than waiting til the end.  Use new md_asm_adjust hook.
11053
11054         * config/vxworks.c: Include vec.h before target.h.
11055         * gimple.c: Likewise.
11056         * incpath.c: Likewise.
11057         * mode-switching.c: Likewise.
11058
11059         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11060         (cris_md_asm_adjust): this.
11061         (TARGET_MD_ASM_CLOBBERS): Remove.
11062         (TARGET_MD_ASM_ADJUST): New.
11063         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11064         (ix86_md_asm_adjust): this.
11065         (TARGET_MD_ASM_CLOBBERS): Remove.
11066         (TARGET_MD_ASM_ADJUST): New.
11067         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11068         (mn10300_md_asm_adjust): this.
11069         (TARGET_MD_ASM_CLOBBERS): Remove.
11070         (TARGET_MD_ASM_ADJUST): New.
11071         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11072         (rs6000_md_asm_adjust): this.
11073         (TARGET_MD_ASM_CLOBBERS): Remove.
11074         (TARGET_MD_ASM_ADJUST): New.
11075         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11076         (visium_md_asm_adjust): this.
11077         (TARGET_MD_ASM_CLOBBERS): Remove.
11078         (TARGET_MD_ASM_ADJUST): New.
11079
11080 2015-05-11  Richard Henderson  <rth@redhat.com>
11081
11082         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11083         if noutputs is zero.
11084         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11085
11086         * cfgexpand.c (expand_asm_operands): Merge into...
11087         (expand_asm_stmt): ... here.
11088
11089         * cfgexpand.c (expand_asm_operands): Don't call
11090         resolve_asm_operand_names.
11091         * stmt.c (resolve_asm_operand_names): Clarify block comment.
11092
11093 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
11094
11095         * dwarf2out.c (gen_member_die): Sanity check that we access
11096         TYPE_MAIN_VARIANT for TYPE_METHODS.
11097         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11098         checking TYPE_METHODS.
11099         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11100         if non-null.
11101         (build_distinct_type_copy): Clear TYPE_METHODS.
11102         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11103         (verify_type): Allow TYPE_METHODS to be error_mark_node.
11104         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11105
11106 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11107
11108         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11109         (emit_pattern_before_setloc): Likewise.
11110
11111 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
11112
11113         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11114         for define_peephole2s.
11115         (get_peephole2_pattern): New function.
11116         (main): Use it.  Call validate_pattern.
11117
11118 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11119
11120         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11121         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11122         (Last callee saved reg is different for AVR_TINY architecture)
11123
11124 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
11125
11126         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11127         when looking for memory references.
11128
11129 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
11130
11131         PR target/65753
11132         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11133         via function pointers.
11134
11135 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
11136
11137         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11138         indirect call by forcing address into a pseudo with -fno-plt.
11139         * common.opt (flag_plt): New option.
11140         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11141         ([-fno-plt]): Document.
11142
11143 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
11144
11145         PR bootstrap/66105
11146         * config/rs6000/option-defaults.h: Add space between string literal
11147         and macro name.
11148
11149 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11150
11151         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11152         accross ARM targets.
11153
11154 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11155
11156         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11157         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11158
11159 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
11160
11161         PR rtl-optimization/66076
11162         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11163         Don't grow the heap array if it is already big enough from a
11164         previous iteration.
11165
11166 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11167
11168         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11169         (is_called_in_ARM_mode): Remove.
11170         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11171         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11172         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11173          arm_declare_function_name.
11174
11175 2015-05-11  Christian Bruel  <christian.bruel@st.com>
11176
11177         * config/arm/arm.c (arm_option_override): Reoganized and split into :
11178         (arm_option_params_internal); New function.
11179         (arm_option_check_internal): New function.
11180         (arm_option_override_internal): New function.
11181         (thumb_code, thumb1_code): Remove.
11182         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11183         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11184         (thumb_code, thumb1_code): Remove.
11185         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11186
11187 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
11188
11189         * config/alpha/alpha.c (alpha_emit_set_const_1)
11190         (alpha_emit_set_long_const, alpha_extract_integer)
11191         (alpha_legitimate_constant_p, alpha_split_const_mov)
11192         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11193         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11194         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11195         HOST_WIDE_INT_1U.
11196         * config/alpha/predicates.md (mode_mask_operand): Do not match
11197         const_double RTX.
11198         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11199         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11200         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11201         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11202         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11203
11204 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
11205
11206         PR target/65780
11207         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11208         default_binds_local_p_2.
11209         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11210         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11211
11212 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11213
11214         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11215
11216 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11217
11218         Patch by Richard Biener
11219         * coverage.c (coverage_obj_init): Delay building of type variant
11220         until the type is finished.
11221
11222 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11223
11224         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11225         mismatch between C and C++ type; compoare correctly ARG_TYPES
11226         for non-prototypes and output correctly parameter index for METHOD_TYPE.
11227         (odr_types_equivalent_p): Fix wording of warning about attributes;
11228         it is OK to match prototype and non-prototype.
11229
11230 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11231
11232         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11233         TYPE_ARG_TYPES list.
11234         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11235         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11236
11237 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
11238
11239         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11240         * tree.h (is_lang_specific): Constify.
11241
11242 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
11243
11244         PR tree-optimization/64454
11245         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11246         Rewrite.
11247
11248 2015-05-08  Jason Merrill  <jason@redhat.com>
11249
11250         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11251         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11252         config/darwin.h, config/darwin9.h, config/elfos.h,
11253         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11254         config/microblaze/microblaze.h, config/mips/mips.h,
11255         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11256         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11257         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11258         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11259         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11260         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11261         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11262         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11263         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11264         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11265         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11266         between string literal and macro name.
11267
11268 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11269
11270         * jump.c: Change argument types to rtx_insn *.
11271         * rtl.h: Adjust.
11272
11273 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11274
11275         * lra-constraints.c: Change argument type to rtx_insn *.
11276
11277 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11278
11279         * df-problems.c: Change argument type to rtx_insn *.
11280
11281 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11282
11283         * combine.c: Change argument type to rtx_insn *.
11284
11285 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11286
11287         * rtl.h: Adjust.
11288         * rtlanal.c: Change argument type to rtx_insn *.
11289
11290 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11291
11292         * sched-deps.c: Change argument types to rtx_insn *.
11293         * sched-int.h: Adjust.
11294
11295 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11296
11297         * dwarf2cfi.c: Change argument type to rtx_insn *.
11298
11299 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11300
11301         * ira.c (decrease_live_ranges_number): Changetype of local
11302         variable to rtx_insn *.
11303         * recog.c: Change argument types to rtx_insn *.
11304         * recog.h: Adjust.
11305
11306 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11307
11308         * reorg.c: Change argument types to rtx_insn *.
11309
11310 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11311
11312         * ira-color.c: Change argument types to rtx_insn *.
11313         * lra-eliminations.c: Likewise.
11314         * ira.h: Adjust.
11315
11316 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11317
11318         * gcse.c: Change argument types to rtx_insn *.
11319
11320 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11321
11322         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11323
11324 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11325
11326         * emit-rtl.c (emit_debug_insn_before): Change argument type to
11327         rtx_insn *.
11328         * rtl.h: Adjust.
11329
11330 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11331
11332         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11333         * rtl.h: Adjust.
11334
11335 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11336
11337         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11338         * rtl.h: Adjust.
11339
11340 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11341
11342         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11343         * rtl.h: Adjust.
11344
11345 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11346
11347         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11348         * rtl.h: Adjust.
11349
11350 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11351
11352         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11353         to rtx_insn *.
11354         * rtl.h: Adjust.
11355
11356 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11357
11358         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11359         to rtx_insn *.
11360         * rtl.h: Likewise.
11361
11362 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11363
11364         * except.c (can_nonlocal_goto): Change type of argument to
11365         rtx_insn *.
11366         * rtl.h: Adjust.
11367
11368 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11369
11370         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11371         * rtl.h: Adjust.
11372
11373 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11374
11375         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11376         * cfgrtl.c (can_delete_label_p): Adjust.
11377         * rtl.h: likewise.
11378
11379 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11380
11381         * reorg.c (stop_search_p): Change argument to rtx_insn *.
11382
11383 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11384
11385         * except.c (make_reg_eh_region_note): Change argument to
11386         rtx_insn *.
11387         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11388         * except.h: Adjust.
11389
11390 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11391
11392         * mode-switching.c (commit_mode_sets): Change type of local
11393         variable from rtx to rtx_insn *.
11394
11395 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
11396
11397         * doc/install.texi (--enable-languages): Add missing jit and lto info.
11398         Add ^ to grep command.
11399         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11400         arg to last gimple_simplify declaration.  Add missing gimple_build
11401         declaration for built-in function case with four tree args.
11402
11403 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
11404             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11405
11406         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11407         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11408         (GNU_USER_DYNAMIC_LINKERN32): Update.
11409
11410 2015-05-08  Richard Biener  <rguenther@suse.de>
11411
11412         PR tree-optimization/66036
11413         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11414         Handle strided group loads.
11415         (vect_verify_datarefs_alignment): Likewise.
11416         (vect_enhance_data_refs_alignment): Likewise.
11417         (vect_analyze_group_access): Likewise.
11418         (vect_analyze_data_ref_access): Likewise.
11419         (vect_analyze_data_ref_accesses): Likewise.
11420         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
11421         (vectorizable_load): Likewise.
11422
11423 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
11424
11425         * config/rs6000/rs6000.md: Require operand inequality in one
11426         of the peepholes.
11427
11428 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
11429             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11430
11431         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
11432         from (set ...).
11433         * config/rx/rx.md (movdi, movdf): Likewise.
11434         Likewise for define_peephole2s.
11435
11436 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
11437
11438         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
11439         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
11440         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
11441         vtst_u64): Rewrite using gcc vector extensions.
11442
11443 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
11444
11445         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
11446         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
11447
11448 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
11449
11450         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
11451
11452 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11453
11454         * config/glibc-stdint.h (OPTION_MUSL): Define.
11455         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
11456         Change the definition based on OPTION_MUSL for 64 bit targets.
11457         * config/linux.h (OPTION_MUSL): Redefine.
11458         * config/alpha/linux.h (OPTION_MUSL): Redefine.
11459         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
11460         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
11461
11462 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
11463             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11464
11465         * config.gcc (LIBC_MUSL): New tm_defines macro.
11466         * config/linux.h (OPTION_MUSL): Define.
11467         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
11468         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
11469         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11470         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11471         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11472         * config/linux.opt (mmusl): New option.
11473         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
11474         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11475         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11476         * configure: Regenerate.
11477
11478 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
11479             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11480
11481         PR target/48904
11482         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
11483         * config/i386/knetbsd-gnu64.h: New file.
11484
11485 2015-05-08  Marek Polacek  <polacek@redhat.com>
11486
11487         PR c/64918
11488         * doc/invoke.texi: Document -Woverride-init-side-effects.
11489
11490 2015-05-07  Marek Polacek  <polacek@redhat.com>
11491
11492         PR c/65179
11493         * doc/invoke.texi: Document -Wshift-negative-value.
11494
11495 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
11496
11497         * gcov-tool.c (do_merge): Refactore to remove int ret.
11498         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
11499         !type == FUNC to type != FUNC.
11500         * reload.h (struct target_reload): Changee to type of
11501         x_spill_indirect_levels from bool to unsigned char.
11502
11503 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
11504
11505         * rtl.h (always_void_p): New function.
11506         * gengenrtl.c (always_void_p): Likewise.
11507         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
11508         with code foo are always VOIDmode.
11509         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
11510         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
11511         compare-elim.c, config/aarch64/aarch64.c,
11512         config/aarch64/aarch64.md, config/alpha/alpha.c,
11513         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
11514         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
11515         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
11516         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11517         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
11518         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
11519         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
11520         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
11521         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
11522         config/ia64/vect.md, config/iq2000/iq2000.c,
11523         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
11524         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
11525         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
11526         config/mep/mep.c, config/microblaze/microblaze.c,
11527         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
11528         config/mn10300/mn10300.c, config/msp430/msp430.c,
11529         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
11530         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
11531         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
11532         config/rs6000/altivec.md, config/rs6000/rs6000.c,
11533         config/rs6000/rs6000.md, config/rs6000/vector.md,
11534         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
11535         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
11536         config/sh/sh.md, config/sh/sh_treg_combine.cc,
11537         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
11538         config/spu/spu.md, config/stormy16/stormy16.c,
11539         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
11540         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
11541         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
11542         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
11543         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
11544         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
11545         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
11546         var-tracking.c: Update calls accordingly.
11547
11548 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
11549
11550         PR middle-end/192
11551         PR middle-end/54303
11552         * varasm.c (function_mergeable_rodata_prefix): New function.
11553         (mergeable_string_section): Use it.
11554         (mergeable_constant_section): Use it.
11555
11556 2015-05-07  Jeff Law  <law@redhat.com>
11557
11558         PR target/39726
11559         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11560         simplifier to narrow arithmetic.
11561         * generic-match-head.c: (types_match, single_use): New functions.
11562         * gimple-match-head.c: (types_match, single_use): New functions.
11563
11564 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11565
11566         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
11567         rtx type.
11568
11569 2015-05-07  Richard Biener  <rguenther@suse.de>
11570
11571         PR tree-optimization/66002
11572         * passes.def: Schedule another pass_merge_phi after ifcombine, right
11573         before phiopt.
11574
11575 2015-05-07  Marek Polacek  <polacek@redhat.com>
11576             Martin Uecker  <uecker@eecs.berkeley.edu>
11577
11578         * doc/invoke.texi: Document -fsanitize=bounds-strict.
11579         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
11580         into SANITIZE_NONDEFAULT.
11581         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
11582
11583 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
11584
11585         PR target/66015
11586         * config/alpha/alpha.c (alpha_override_options_after_change): New.
11587         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
11588         (alpha_override_options): Move align_loops, align_jumps and
11589         align_functions handling into alpha_override_options_after_change.
11590
11591 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
11592             Chris Jones  <chrisj@nvidia.com>
11593             Joshua Conner  <jconner@nvidia.com>
11594
11595         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
11596         linking of crtfastmath.o.
11597         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
11598
11599 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
11600
11601         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
11602         (cstore<mode>4_unsigned_imm): New expander.
11603         (cstore<mode>4): Remove empty constraint strings.  Use the new
11604         expanders.
11605
11606 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
11607
11608         PR target/64208
11609         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
11610         alternatives.
11611
11612 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11613
11614         * config/aarch64/geniterators.sh: Use standard BRE in sed.
11615
11616 2015-05-06  Alan Modra  <amodra@gmail.com>
11617
11618         PR target/66033
11619         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
11620         (UNSPEC_NOP): Define.
11621         (reload_vsx_from_gpr<mode>): Add missing DONE.
11622         (reload_gpr_from_vsx<mode>): Likewise.
11623         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
11624         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
11625
11626 2015-05-06  Christian Bruel  <christian.bruel@st.com>
11627
11628         PR target/66015
11629         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
11630         align_jumps, align_functions into aarch64_override_options_after_change.
11631
11632 2015-05-06  Richard Biener  <rguenther@suse.de>
11633
11634         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
11635         vect_transform_slp_perm_load to check if we support a permutation
11636         for basic-block vectorization.
11637
11638 2015-05-06  Nick Clifton  <nickc@redhat.com>
11639
11640         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
11641         used, even if it is not being used as a frame pointer.
11642
11643 2015-05-05  Jason Merrill  <jason@redhat.com>
11644
11645         * dwarf2out.c (gen_member_die): Don't emit anything for an
11646         anonymous class constructor.
11647
11648 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
11649
11650         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
11651         that it reflects the block structure.
11652         (afdo_propagate_edge): Likewise.
11653         (afdo_calculate_branch_prob): Likewise.
11654         (afdo_annotate_cfg): Likewise.
11655         * cfgcleanup.c (equal_different_set_p): Likewise.
11656         (try_crossjump_to_edge): Likewise.
11657         * cgraph.c (cgraph_node::verify_node): Likewise.
11658         * cgraphunit.c (expand_all_functions): Likewise.
11659         * config/i386/i386.c (ix86_expand_copysign): Likewise.
11660         (exact_dependency_1): Likewise.
11661         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
11662         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
11663         * gensupport.c (process_define_subst): Likewise.
11664         * lto-wrapper.c (merge_and_complain): Likewise.
11665         * tree-if-conv.c (if_convertible_bb_p): Likewise.
11666         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
11667         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
11668         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11669         * tree-vect-loop.c (vectorizable_reduction): Likewise.
11670         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
11671         * tree-vect-stmts.c (vectorizable_shift): Likewise.
11672         * tree-vrp.c (vrp_finalize): Likewise.
11673         * tree.c (variably_modified_type_p): Likewise.
11674
11675 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
11676
11677         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
11678         on darwin12 and later.
11679         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
11680         file to pass -rdynamic on darwin12 and later.
11681         * config/darwin.opt (rdynamic): Add.
11682
11683 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11684
11685         * doc/extend.texi (C Extensions): Update menu for moved Variable
11686         Attributes and Type Attributes sections.
11687
11688 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11689
11690         PR target/65990
11691         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
11692         if rep_8byte stringop strategy was specified for 32-bit target.
11693
11694 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
11695
11696         PR target/65915
11697         * config/i386/i386.md (vector convert to float spltiter): Check for
11698         xmm16+, when splitting scalar float conversion.
11699         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
11700
11701 2015-05-05  Nick Clifton  <nickc@redhat.com>
11702
11703         * config/msp430/msp430-opts.h (enum msp430_regions): New.
11704         * config/msp430/msp430.c (msp430_override_options): Complain if
11705         -mcode-region or -mdata-region is used on a non MSP430X.
11706         (msp430_section_attr): New function.  Checks lower, upper and
11707         either attributes.
11708         (msp430_attribute_table): Add lower, upper and either.
11709         (gen_prefix): New function.  Generates a prefix for a section
11710         name.
11711         (msp430_select_section): New function - handles the choice of
11712         section for an object.  Takes into account memory region
11713         attributes and options.
11714         (msp430_function_section): Use gen_prefix.
11715         (TARGET_SECTION_TYPE_FLAGS): Define.
11716         (msp430_section_type_flags): New function.
11717         (TARGET_ASM_UNIQUE_SECTION): Define.
11718         (msp430_unique_section): New function.
11719         (msp430_output_aligned_decl_common): New function.
11720         (msp430_do_not_relax_short_jumps): New function.
11721         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
11722         Define.
11723         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11724         * config/msp430/msp430-protos.h
11725         (msp430_do_not_relax_short_jumps): New prototype.
11726         (msp430_output_aligned_decl_common): New prototype.
11727         * config/msp430/msp430.md (length): New attribute.
11728         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
11729         then use a long code sequence for short jumps.
11730         * config/msp430/msp430.opt (mcode-region): New.
11731         (mdata-region): New.
11732         * doc/invoke.texi: Document new options.
11733         * doc/extend.texi: Document new attributes.
11734
11735 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
11736
11737         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
11738         (tune_params): Add field branch_costs.
11739         (aarch64_branch_cost): Declare.
11740         * gcc/config/aarch64.c (generic_branch_cost): New.
11741         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
11742         (cortexa53_tunings): Likewise.
11743         (cortexa57_tunings): Likewise.
11744         (thunderx_tunings): Likewise.
11745         (xgene1_tunings): Likewise.
11746         (aarch64_branch_cost): Define.
11747         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
11748
11749 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11750
11751         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
11752         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
11753         * config/i386/i386.md: Ditto.
11754         * config/i386/winnt.c: Ditto.
11755
11756 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
11757
11758         * doc/extend.texi (__atomic Builtins): Move implementation details
11759         to the end of the description, rewrite opening paragraphs, state
11760         difference with __sync builtins, state C11/C++11 assumptions,
11761         weaken itemized descriptions, add explanation of memory model
11762         behaviour, expand description of compare-exchange, simplify text.
11763
11764 2015-05-05  Renlin Li  <renlin.li@arm.com>
11765
11766         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
11767
11768 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
11769
11770         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
11771         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
11772         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
11773         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
11774         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
11775         * configure: Regenerate.
11776         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
11777         * doc/install.texi (aarch64*-*-*): Document new
11778         --enable-fix-cortex-a53-843419 option.
11779         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
11780         and -mno-fix-cortex-a53-843419 options.
11781
11782 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11783
11784         PR target/65871
11785         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
11786
11787 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
11788
11789         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
11790         fix overactive TYPE_MIN_VALUE check and add FIXME for type
11791         compatibility problems.
11792
11793 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
11794
11795         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
11796         constraints.
11797         (cbranchsi4_reg): New.
11798         * config/microblaze/microblaze.c
11799         (microblaze_expand_conditional_branch_reg): New.
11800         * config/microblaze/microblaze-protos.h
11801         (microblaze_expand_conditional_branch_reg): New prototype.
11802
11803 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
11804
11805         * config/microblaze/microblaze.md (peephole2): New.
11806
11807 2015-05-04  Jeff Law  <law@redhat.com>
11808
11809         Revert:
11810         2015-05-04  Jeff Law  <law@redhat.com>
11811
11812         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11813         simplifier to narrow arithmetic.
11814         * generic-match-head.c: (types_match, single_use): New functions.
11815         * gimple-match-head.c: (types_match, single_use): New functions.
11816
11817 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11818
11819         PR target/65987
11820         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
11821         (split_branches): Likewise.
11822
11823 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
11824
11825         * common.opt (fdelete-null-pointer-checks): Init to -1.
11826         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
11827         override flag_delete_null_pointer_checks default.
11828         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
11829         behavior re address zero.  Better document target-specific behavior.
11830         (-fisolate-errneous-paths-dereference): Mention relationship to
11831         -fdelete-null-pointer-checks.
11832
11833 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
11834
11835         PR tree-optimization/65984
11836         * ubsan.c: Include tree-cfg.h.
11837         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
11838         stmt_could_throw_p test, rename can_throw variable to ends_bb.
11839
11840 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
11841
11842         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
11843         to CONST_DOUBLE_P predicate.
11844         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
11845         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
11846         allow only operands that satisfy standard_sse_constant_p predicate.
11847         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
11848         to CONST_DOUBLE_P predicate.
11849
11850 2015-05-04  Jeff Law  <law@redhat.com>
11851
11852         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11853         simplifier to narrow arithmetic.
11854         * generic-match-head.c: (types_match, single_use): New functions.
11855         * gimple-match-head.c: (types_match, single_use): New functions.
11856
11857 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
11858
11859         * config/arm/arm.c: Restore bootstrap.
11860
11861 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
11862
11863         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
11864         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
11865         as CONST_WIDE_INT, not CONST_DOUBLE.
11866         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
11867         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
11868         (ix86_find_base_term): Do not check for CONST_DOUBLE.
11869         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
11870         (ix86_build_signbit_mask): Rewrite using wide ints.
11871         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
11872         (ix86_rtx_costs): Handle CONST_WIDE_INT.
11873         (find_constant): Ditto.
11874         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
11875         using gen_int_mode.
11876         * config/i386/predicates.md (x86_64_immediate_operand)
11877         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
11878         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
11879         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
11880         (const0_operand): Also match const_wide_int.
11881         (constm1_operand): Ditto.
11882         (const1_operand): Ditto.
11883
11884 2015-05-04  Richard Biener  <rguenther@suse.de>
11885
11886         PR tree-optimization/65965
11887         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11888         store groups at gaps.
11889
11890 2015-05-04  Richard Biener  <rguenther@suse.de>
11891
11892         PR tree-optimization/65935
11893         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
11894         then make sure to apply that swapping to the IL.
11895
11896 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
11897
11898         * Makefile.in (PATCHLEVEL_c): New variable.
11899         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
11900         expand the same way as if DEVPHASE_c was non-empty.
11901
11902 2015-05-04  Kai Tietz  <ktietz@redhat.com>
11903
11904         PR target/65559
11905         * lto-wrapper.c (run_gcc): Open filename
11906         in binary-mode.
11907
11908 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
11909
11910         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
11911         sections up in file, to immediately after the Function Attributes
11912         section.
11913
11914 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
11915
11916         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
11917
11918 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11919
11920         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
11921         (insert_partition_copy_on_edge): Adjust.
11922         (insert_rtx_to_part_on_edge): Likewise.
11923         (insert_part_to_rtx_on_edge): Likewise.
11924
11925 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11926
11927         * function.c (set_return_jump_label): Change type of argument to
11928         rtx_insn *.
11929         * function.h (set_return_jump_label): Adjust.
11930
11931 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11932
11933         * reload.h (struct reg_equivs_t): Change type of init to
11934         rtx_insn *.
11935         * ira.c (fix_reg_equiv_init): Adjust.
11936         * reload1.c (eliminate_regs_1): Likewise.
11937         (init_eliminable_invariants): Likewise.
11938
11939 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11940
11941         * cselib.c (fp_setter_insn): Take a rtx_insn *.
11942         * cselib.h (fp_setter_insn): Adjust.
11943
11944 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11945
11946         * recog.c (struct validate_replace_src_data): Change type of
11947         insn field to rtx_insn *.
11948         (validate_replace_src_group): Change type of argument to rtx_insn *.
11949         * recog.h (validate_replace_src_group): Adjust.
11950
11951 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11952
11953         * haifa-sched.c: Change the type of some variables to rtx_insn *.
11954         * sched-deps.c: Likewise.
11955         * sched-int.h: Likewise.
11956         * sched-rgn.c: Likewise.
11957         * sel-sched.c: Likewise.
11958
11959 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11960
11961         to rtx_insn *.
11962         * config/i386/i386.c: Change the type of some arguments to
11963         rtx_insn *.
11964         * config/arm/arm.c: Likewise.
11965
11966 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11967
11968         * lra-constraints.c: Change type of some arguments to rtx_insn *.
11969
11970 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11971
11972         * regcprop.c (kill_autoinc_value): Change type of argument to
11973         rtx_insn *.
11974
11975 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11976
11977         * genrecog.c (print_subroutine): Adjust.
11978         * recog.c (get_bool_attr_mask_uncached): Likewise.
11979         * recog.h (struct recog_data_d): Change the type of insn to
11980         rtx_insn *.
11981
11982 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11983
11984         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
11985
11986 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11987
11988         * df-problems.c (df_set_note): Change type of argument to
11989         rtx_insn *.
11990
11991 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11992
11993         * builtins.c (expand_builtin_trap): Change type of local
11994         variable to rtx_insn *.
11995         (add_sched_insns_for_speculation): Likewise.
11996         (ix86_emit_save_regs): Likewise.
11997         (get_scratch_register_on_entry): Likewise.
11998         (ix86_emit_restore_reg_using_pop): Likewise.
11999         (ix86_emit_leave): Likewise.
12000         (ix86_emit_restore_regs_using_mov): Likewise.
12001         (ix86_expand_epilogue): Likewise.
12002         Likewise.
12003         (rl78_alloc_physical_registers_umul): Likewise.
12004         * cselib.c (discard_useless_locs): Likewise.
12005         (cselib_invalidate_regno): Likewise.
12006         (cselib_invalidate_mem): Likewise.
12007         * function.c (expand_function_start): Likewise.
12008         (emit_use_return_register_into_block): Likewise.
12009         * gcse.c: Likewise.
12010         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12011         * ifcvt.c (noce_get_alt_condition): Likewise.
12012         * loop-doloop.c (doloop_condition_get): Likewise.
12013         * lra-constraints.c (inherit_in_ebb): Likewise.
12014         * modulo-sched.c (sms_schedule_by_order): Likewise.
12015         * recog.c (next_insn_tests_no_inequality): Likewise.
12016         * reorg.c (emit_delay_sequence): Likewise.
12017         (update_reg_dead_notes): Likewise.
12018         (fix_reg_dead_note): Likewise.
12019         (fill_slots_from_thread): Likewise.
12020         (delete_computation): Likewise.
12021
12022 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
12023
12024         * doc/extend.texi (Variable Attributes): Add menu and proper
12025         @nodes to subsections.  Move Microsoft Windows attributes to
12026         their own subsection.
12027         (Type Attributes): Reorganize introduction to remove duplicate
12028         list of attributes.  Add menu and proper @nodes to subsections.
12029         Alphabetize the main table of common attributes.
12030
12031 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12032
12033         * match.pd: New simplification patterns.
12034         (x + (x & 1))  -> ((x + 1) & ~1)
12035         (x & ~(x & y)) -> ((x & ~y))
12036         (x | ~(x | y)) -> ((x | ~y))
12037
12038 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12039
12040         * target.def (attribute_table): Mention that struct attribute_spec
12041         is defined in tree-core.h rather than tree.h
12042         * doc/tm.texi: Regenerate.
12043
12044 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
12045
12046         * genrecog.c (test): Rename to rtx_test.  Update rest of file
12047         accordingly.
12048
12049 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
12050
12051         PR translation/65959
12052         * params.h (DEFPARAM): Rename msgid to nocmsgid.
12053
12054 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12055
12056         * gcc/config/aarch64/aarch64-protos.h (tune_params):
12057         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12058         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12059         Return value depending on target.
12060         (generic_tunings): Initialize new target settings.
12061         (cortexa53_tunings): Likewise.
12062         (cortexa57_tunings): Likewise.
12063         (thunderx_tunings): Likewise.
12064         (xgene1_tunings): Likewise.
12065
12066 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12067
12068         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12069         Make Cortex-A53 shift costs more accurate.
12070
12071 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12072
12073         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12074         UNSIGNED_FLOAT.
12075
12076 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
12077
12078         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12079         Calculate cost of op0 and op1 in PLUS and MINUS cases.
12080
12081 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12082
12083         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12084         Add cost of op0 in the compare-with-fpzero case.
12085
12086 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
12087
12088         * builtins.c (fold_builtin_1): Remove spurious second
12089         semicolon.
12090         * cgraph.h (symtab_node::get_availability): Likewise.
12091         * opts.c (common_handle_option): Remove spurious second semicolon.
12092         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12093         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12094
12095 2015-04-30  Caroline Tice  <cmtice@google.com>
12096
12097         PR gcov-profile/65929
12098         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12099         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12100         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12101         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12102         * doc/tm.texi: Regenerate.
12103         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
12104         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12105         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
12106         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12107
12108 2015-04-30  Marek Polacek  <polacek@redhat.com>
12109
12110         * varasm.c (handle_cache_entry): Fix logic.
12111
12112 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12113
12114         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12115         (*extrsi5_insn_uxtw_alt): Likewise.
12116         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12117         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12118         operations.
12119
12120 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12121
12122         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12123         fabd in ABS case.
12124
12125 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12126
12127         * config/aarch64/aarch64.md
12128         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12129         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12130         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12131         appropriately.  Handle alternative EON form.
12132
12133 2015-04-30  Renlin Li  <renlin.li@arm.com>
12134
12135         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12136         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12137
12138 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
12139
12140         PR ipa/65873
12141         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12142         -fstrict-aliasing boundaries.
12143
12144 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12145
12146         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12147         and [SU]MNEGL patterns.
12148
12149 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12150
12151         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12152         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12153         combined arithmetic-shift ops.  Properly handle all shift and extend
12154         operations that can occur in combination with PLUS/MINUS.
12155         Rename maybe_fma to compound_p.
12156         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12157         arithmetic and shift operations.
12158
12159 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12160
12161         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12162         rather than arith_shift cost when costing ADD/MINUS of an
12163         extended value.
12164
12165 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
12166
12167         PR lto/65948
12168         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12169         to itself.
12170
12171 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
12172
12173         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12174         are for the same position.
12175
12176 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
12177
12178         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
12179         vectorize_loops.
12180         (vectorize_loops): Use it.
12181
12182 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12183
12184         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12185         for aggregate types.
12186         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12187         type to be non_ODR.
12188         * tree.c (need_assembler_name_p): Compute mangled name for
12189         non-fundamental types and integer types.
12190
12191 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
12192
12193         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12194         manual swaps.
12195         * expr.c (expand_expr_real_2): Likewise.
12196
12197 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12198
12199         * tree.c (build_common_builtin_nodes): Do not build
12200         __builtin_alloca_with_align as equivalent of library alloca.
12201
12202 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
12203
12204         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12205         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12206         bugus variants.
12207         * tree.c: Include print-tree.h and ipa-utils.h
12208         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12209         (free_lang_data_in_cgraph): Call verify_type.
12210         (verify_type_variant): New function.
12211         (verify_type): New function.
12212         * tree.h (verify_type): Declare.
12213
12214 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
12215
12216         * config/mips/mips-cpus.def: (mips4): Change default processor
12217         from PROCESSOR_R8000 to PROCESSOR_R10000.
12218
12219 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12220
12221         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12222         la/jalr instead of jal.
12223
12224 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
12225
12226         PR target/65871
12227         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12228         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12229         (setcc+movzbl peephole2): Check also clobbered reg.
12230         (setcc+andl peephole2): Ditto.
12231
12232 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
12233
12234         PR libgomp/65099
12235         * config/nvptx/mkoffload.c (target_ilp32): New variable.
12236         (main): Set it depending on "-foffload-abi=[...]".
12237         (compile_native, main): Use it to pass "-m32" or "-m64" to the
12238         compiler.
12239
12240 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
12241
12242         PR target/65770
12243         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12244         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12245         Flip lane index back at assembly time for bigendian.
12246
12247 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
12248
12249         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12250         * gimplify.c (gimplify_omp_workshare): Use it.
12251
12252 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12253
12254         * Makefile.in (build/genrecog.o): Depend on inchash.h.
12255         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12256         build/inchash.o
12257         * genrecog.c: Rewrite most of the code except for the third page.
12258
12259 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12260
12261         * inchash.h, inchash.c: Include bconfig.h for build objects.
12262         * Makefile.in (build/inchash.o): New rule.
12263
12264 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
12265
12266         PR target/65924
12267         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12268         number in type attribute expression.
12269
12270 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
12271
12272         * loop-iv.c (canon_condition): Generalize to all types of integer
12273         constant.
12274
12275 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
12276
12277         * gimple-walk.c: Prune duplicate or unneeded includes.
12278         (walk_gimple_asm): Only call parse_input_constraint or
12279         parse_output_constraint if their findings are used.
12280         Honour parse_input_constraint and parse_output_constraint
12281         result.
12282
12283 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
12284
12285         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12286
12287 2015-04-29  Tom de Vries  <tom@codesourcery.com>
12288
12289         PR tree-optimization/65893
12290         * passes.def (pass_all_optimizations): Move pass_stdarg to after
12291         pass_dce.
12292
12293 2015-04-29  Richard Biener  <rguenther@suse.de>
12294
12295         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12296         compute GROUP_SIZE for basic-block SLP.
12297         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12298         take into account gaps.
12299         (vect_get_mask_element): Properly reject references to previous
12300         vectors.
12301         (vect_transform_slp_perm_load): Likewise.
12302
12303 2015-04-29  Christian Bruel  <christian.bruel@st.com>
12304
12305         PR target/64835
12306         * config/i386/i386.c (ix86_default_align): New function.
12307         (ix86_override_options_after_change): Call ix86_default_align.
12308         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12309         (ix86_override_options_after_change): New function.
12310
12311 2015-04-28  Jeff Law  <law@redhat.com>
12312
12313         * tree-ssa-dom.c (record_equality); Fix comment typos.
12314
12315 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12316
12317         PR tree-optimization/65887
12318         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12319
12320 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
12321
12322         * doc/extend.texi (Declaring Attributes of Functions): Split into
12323         subsections by target.  Alphabetize the table of common attributes.
12324         Rewrite some of the introductory text to reflect the new structure.
12325         Update some cross-references to point to the new subsections.
12326         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
12327         duplicate copies in the discussion of function, label, and type
12328         attributes.
12329
12330 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
12331
12332         PR bootstrap/65910
12333         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12334
12335 2015-04-28  Jason Merrill  <jason@redhat.com>
12336
12337         PR c++/65734
12338         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12339         (finalize_type_size): Respect TYPE_USER_ALIGN.
12340         (layout_type) [ARRAY_TYPE]: Likewise.
12341
12342 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
12343
12344         * config/arm/arm.md (*arm_movt): Fix type attribute.
12345         (*cmpsi_shiftsi): Likewise.
12346         (*cmpsi_shiftsi_swp): Likewise.
12347         (*movsicc_insn): Likewise.
12348         (*cond_move): Likewise.
12349         (*if_plus_move): Likewise.
12350         (*if_move_plus): Likewise.
12351         (*if_arith_move): Likewise.
12352         (*if_move_arith): Likewise.
12353         (*if_shift_move): Likewise.
12354         (*if_move_shift): Likewise.
12355         (*arm_movtas_ze): Likewise.
12356         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12357         redundancy and type attribute.
12358         (*thumb2_movsi_insn): Fix type attribute.
12359         (*thumb2_addsi_short): Likewise.
12360         (thumb2_addsi3_compare0): Likewise.
12361         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12362         attributes accordingly.
12363
12364 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
12365
12366         PR other/65911
12367         * function.c (pad_to_arg_alignment): Add parentheses.
12368
12369 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
12370
12371         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12372         libgcc/config/frv/elf-lib.h.
12373
12374 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12375
12376         * tree-call-cdce.c: Fix example in header comment.
12377
12378 2015-04-28  Richard Biener  <rguenther@suse.de>
12379
12380         PR tree-optimization/62283
12381         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12382         fails fatally and we are vectorizing a basic-block simply
12383         cause the child to be constructed piecewise.
12384         (vect_analyze_slp_cost_1): Adjust.
12385         (vect_detect_hybrid_slp_stmts): Likewise.
12386         (vect_bb_slp_scalar_cost): Likewise.
12387         (vect_get_constant_vectors): For piecewise constructed
12388         constants place them after the last def.
12389         (vect_get_slp_defs): Adjust.
12390         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12391         externals for basic-block vectorization.
12392
12393 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12394
12395         PR target/63503
12396         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12397         aarch64-*-*.
12398         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12399         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12400         (AARCH64_TUNE_FMA_STEERING): Likewise.
12401         * config/aarch64/aarch64-cores.def: Set
12402         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12403         FMUL/FMADD instructions.
12404         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12405         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
12406         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12407         * config/aarch64/cortex-a57-fma-steering.h: New file.
12408         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12409
12410 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
12411
12412         * gensupport.c (std_preds): Add missing codes to address_operand entry.
12413
12414 2015-04-28  Richard Biener  <rguenther@suse.de>
12415
12416         PR tree-optimization/65851
12417         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
12418         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
12419         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
12420         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
12421         (ccp_visit_phi_node): Adjust.
12422         (evaluate_stmt): For simplifications to SSA names return its
12423         lattice value if that isn't VARYING.  Return immediately when
12424         simplified to a constant.
12425         (visit_assignment): Adjust.
12426         (ccp_visit_stmt): Likewise.
12427
12428 2015-04-28  Tom de Vries  <tom@codesourcery.com>
12429
12430         PR tree-optimization/65818
12431         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
12432         evaluated.
12433
12434 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12435
12436         * calls.c (save_fixed_argument_area): Don't check
12437         ARGS_GROW_DOWNWARD with the preprocessor.
12438         (restore_fixed_argument_area): Likewise.
12439         (mem_overlaps_already_clobbered_arg_p): Likewise.
12440         (check_sibcall_argument_overlap): Likewise.
12441         (expand_call): Likewise.
12442         (emit_library_call_value_1): Likewise.
12443         (store_one_arg): Likewise.
12444         * function.c (assign_parms): Likewise.
12445         (locate_and_pad_parm): Likewise.
12446         (pad_to_arg_alignment): Likewise.
12447         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12448
12449 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12450
12451         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
12452         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
12453         * calls.c (save_fixed_argument_area): Don't chekc if
12454         ARGS_GROW_DOWNWARD is defined.
12455         (restore_fixed_argument_area): Likewise.
12456         (mem_overlaps_already_clobbered_arg_p): Likewise.
12457         (check_sibcall_argument_overlap): Likewise.
12458         (expand_call): Likewise.
12459         (emit_library_call_value_1): Likewise.
12460         (store_one_arg): Likewise.
12461         * function.c (assign_parms): Likewise.
12462         (locate_and_pad_parm): Likewise.
12463         (pad_to_arg_alignment): Likewise.
12464         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12465
12466 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12467
12468         * defaults.h (gen_epilogue): New function.
12469         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
12470         defined.
12471         * cfgrtl.c (cfg_layout_finalize): Likewise.
12472         * df-scan.c: Likewise.
12473         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12474         (reposition_prologue_and_epilogue_notes): Likewise.
12475         * reorg.c (find_end_label): Likewise.
12476         * toplev.c: Likewise.
12477
12478 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12479
12480         * bb-reorder.c (HAVE_return): Don't check if its undefined.
12481         * defaults.h (gen_simple_return): New function.
12482         (gen_simple_return): Likewise.
12483         (HAVE_return): Add default definition to false.
12484         (HAVE_simple_return): Likewise.
12485         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
12486         HAVE_return and HAVE_simple_return are defined.
12487         * function.c (gen_return_pattern): Likewise.
12488         (convert_jumps_to_returns): Likewise.
12489         (thread_prologue_and_epilogue_insns): Likewise.
12490         * reorg.c (find_end_label): Likewise.
12491         (dbr_schedule): Likewise.
12492         * shrink-wrap.c: Likewise.
12493         * shrink-wrap.h: Likewise.
12494
12495 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12496
12497         * defaults.h (EPILOGUE_USES): Add default definition of false.
12498         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
12499         * resource.c (init_resource_info): Likewise.
12500
12501 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12502
12503         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
12504         to false.
12505         * dwarf2out.c (field_byte_offset): REmove check if
12506         PCC_BITFIELD_TYPE_MATTERS is defined.
12507         * stor-layout.c (layout_decl): Likewise.
12508         (update_alignment_for_field): Likewise.
12509         (place_field): Likewise.
12510
12511 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12512
12513         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
12514         true.
12515         * regrename.c (check_new_reg_p): Remove check if
12516         HARD_REGNO_RENAME_OK is defined.
12517         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
12518
12519 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12520
12521         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
12522         * cse.c (fold_rtx): Likewise.
12523         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
12524         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
12525         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
12526         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
12527         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
12528         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
12529         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
12530         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
12531         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
12532         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
12533         * Likewise.
12534         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
12535         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
12536         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
12537         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
12538         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
12539         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
12540         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
12541         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
12542         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
12543         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
12544         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
12545         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
12546         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
12547         * doc/tm.texi: Regenerate.
12548         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
12549         either true or false.
12550
12551 2015-04-27  Jeff Law  <law@redhat.com>
12552
12553         PR tree-optimization/65217
12554         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
12555         of them has a single use, make sure it is the LHS of the implied
12556         copy.
12557
12558 2015-04-28  Alan Modra  <amodra@gmail.com>
12559
12560         PR target/65810
12561         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
12562         (offsettable_ok_by_alignment): Use minimum of decl and toc
12563         pointer alignment.  Replace dead code with assertion.
12564         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
12565         case if size exceeds toc pointer alignment.
12566         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
12567         (rs6000_emit_move): Likewise.
12568         * configure.ac: Add linker toc pointer alignment check.
12569         * configure: Regenerate.
12570         * config.in: Regenerate.
12571
12572 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
12573
12574         * config.gcc: Add h8300-*-linux.
12575         * config/h8300/linux.h: New.
12576         * config/h8300/t-linux: New.
12577         * config/h8300/h8300.c (h8300_option_override): Normal mode
12578         is not supported for h8300-*-linux.
12579         (h8300_file_start): Target priority change.
12580         (get_shift_alg): Likewise.
12581         (h8300_shift_need_scratch_p): Likewise.
12582         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12583         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
12584
12585 2015-04-27  Caroline Tice  <cmtice@google.com>
12586
12587         * final.c (final_scan_insn):  Output cold_function_name as function
12588         type.
12589         * varasm.c (cold_function_name):  Make global.
12590         (assemble_start_function):  Re-set cold_function_name.
12591         (assemble_end_function): Output cold partition size.
12592         * varasm.h (cold_function_name):  Declare global.
12593
12594 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
12595
12596         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
12597         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
12598         constraint.
12599         (*movxi_internal_avx512f): Ditto.
12600         (define_split): Check for xmm16+, when splitting scalar float_extend.
12601         (*extendsfdf2_mixed): Use "v" constraint.
12602         (define_split): Check for xmm16+, when splitting scalar float_truncate.
12603         (*truncdfsf_fast_sse): Use "v" constraint.
12604         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
12605         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
12606         (define_peephole2): Check for xmm16+, when converting scalar
12607         float_truncate.
12608         (define_peephole2): Check for xmm16+, when converting scalar
12609         float_extend.
12610         (*fop_<mode>_comm_mixed): Use "v" constraint.
12611         (*fop_<mode>_comm_sse): Ditto.
12612         (*fop_<mode>_1_mixed): Ditto.
12613         (*sqrt<mode>2_sse): Ditto.
12614         (*ieee_s<ieee_maxmin><mode>3): Ditto.
12615
12616 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12617
12618         * combine.c (simplify_if_then_else): Use std::swap instead
12619         of manually swapping.
12620         (known_cond): Likewise.
12621         (simplify_comparison): Likewise.
12622
12623 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
12624
12625         PR target/64579
12626         * config/rs6000/htm.md: Remove all define_expands.
12627         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
12628         UNSPECV_HTM_TABORTWCI): Remove.
12629         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
12630         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
12631         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
12632         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
12633         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
12634         tabortwci_internal): Remove define_insns.
12635         (tabort<wd>c, tabort<wd>ci): New define_insns.
12636         (tabort): Use gpc_reg_operand.
12637         (tcheck): Remove operand.
12638         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
12639         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
12640         expected value.
12641         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
12642         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
12643         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
12644         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
12645         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
12646         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
12647         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
12648         (tcheck): Remove builtin argument.
12649         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
12650         not TARGET_64BIT.
12651         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
12652         tabortdc and tabortdci builtins when not in 64-bit mode.
12653         Modify code to handle the loss of the HTM define_expands.
12654         Emit code to copy the CR register to TARGET.
12655         (htm_init_builtins): Modify code to handle the loss of the HTM
12656         define_expands.
12657         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
12658         (RS6000_BTC_64BIT): Likewise.
12659         (RS6000_BTC_CR): New macro.
12660         * doc/extend.texi: Update documentation for htm builtins.
12661
12662 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12663
12664         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
12665         of manually swapping.
12666         (simplify_associative_operation): Likewise.
12667         (simplify_binary_operation): Likewise.
12668         (simplify_plus_minus): Likewise.
12669         (simplify_relational_operation): Likewise.
12670         (simplify_ternary_operation): Likewise.
12671
12672 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
12673
12674         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
12675         (xs_hi_nonmemory_operand): Remove error.
12676         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
12677         general_operand rather than xs_hi_general_operand.
12678
12679 2015-04-27  Richard Biener  <rguenther@suse.de>
12680
12681         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
12682         (record_equivalences_from_stmt): Valueize rhs.
12683         (record_equality): Canonicalize x and y order via
12684         tree_swap_operands_p.  Do not swap operands for same loop depth.
12685
12686 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
12687
12688         PR target/65296
12689         PR target/65895
12690         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
12691         Add hint how to use own spec file.
12692
12693 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
12694
12695         PR tree-optimization/65875
12696         * tree-vrp.c (update_value_range): If in is_new case setting
12697         old_vr to VR_VARYING, also set new_vr to it.  Remove
12698         old_vr->type == VR_VARYING test.
12699         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
12700         SSA_PROP_INTERESTING if update_value_range returned true,
12701         but new range is VR_VARYING.
12702
12703 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12704
12705         * combine.c (sign_extend_short_imm): New.
12706         (set_nonzero_bits_and_sign_copies): Use above new function for sign
12707         extension of src short immediate.
12708         (reg_nonzero_bits_for_combine): Likewise for tem.
12709
12710 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12711
12712         * stor-layout.c (self_referential_component_ref_p): New predicate.
12713         (copy_self_referential_tree_r): Use it.
12714         (self_referential_size): Punt for simple operations directly involving
12715         self-referential component references.
12716         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
12717
12718 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12719
12720         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
12721
12722 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
12723
12724         * vec.h (vec): Make splice arguments const.  Update definitions
12725         accordingly.
12726
12727 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
12728
12729         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
12730         alternatives.
12731
12732 2015-04-26  Tom de Vries  <tom@codesourcery.com>
12733
12734         PR tree-optimization/65826
12735         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
12736
12737 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
12738
12739         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
12740         (*madd3<mode>): Ditto.
12741         (*msub4<mode>): Ditto.
12742         (*msub3<mode>): Ditto.
12743         (*nmadd4<mode>): Ditto.
12744         (*nmadd3<mode>): Ditto.
12745         (*nmadd4<mode>_fastmath): Ditto.
12746         (*nmadd3<mode>_fastmath): Ditto.
12747         (*nmsub4<mode>): Ditto.
12748         (*nmsub3<mode>): Ditto.
12749         (*nmsub4<mode>_fastmath): Ditto.
12750         (*nmsub3<mode>_fastmath): Ditto.
12751
12752 2015-04-24  Jason Merrill  <jason@redhat.com>
12753
12754         PR c++/50800
12755         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
12756         down when building TYPE_CANONICAL.
12757         (build_pointer_type_for_mode): Likewise.
12758
12759 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
12760
12761         * genrecog.c (validate_pattern): Check matching constraint refers
12762         to a lower numbered operand.
12763
12764 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12765
12766         PR target/65849
12767         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
12768         save to independent variables use the Save attribute.  This will
12769         allow these options to be modified with the #pragma/attribute
12770         target support.
12771         (-mallow-movmisalign): Likewise.
12772         (-mallow-df-permute): Likewise.
12773         (-msched-groups): Likewise.
12774         (-malways-hint): Likewise.
12775         (-malign-branch-targets): Likewise.
12776         (-mvectorize-builtins): Likewise.
12777         (-msave-toc-indirect): Likewise.
12778
12779         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
12780         can be set via the #pragma/attribute target support.
12781         (rs6000_opt_vars): Likewise.
12782         (rs6000_inner_target_options): If VSX was set, also set
12783         -mno-avoid-indexed-addresses.
12784
12785 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12786
12787         * config/arm/iterators.md (shiftable_ops): Rename to...
12788         (SHIFTABLE_OPS): ... This.  Update use in comments.
12789         (ior_xor): Rename to...
12790         (IOR_XOR): ... This.
12791         (vqh_ops): Rename to...
12792         (VQH_OPS): ... This.
12793         (vqhs_ops): Rename to...
12794         (VQHS_OPS): ... This.
12795         (rshifts): Rename to...
12796         (RSHIFTS): ... This.
12797         (returns): Rename to...
12798         (RETURNS): ... This.
12799         * config/arm/arm.md: Update uses of the above.
12800         * config/arm/neon.md: Likewise.
12801
12802 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12803
12804         * config.host (case ${host}): Add aarch64*-*-linux case.
12805         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
12806         fields to all the cores.
12807         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
12808         Add MCPU_MTUNE_NATIVE_SPECS.
12809         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
12810         field to all extensions.
12811         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
12812         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
12813         Adjust definition of AARCH64_OPT_EXTENSION.
12814         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
12815         (MCPU_MTUNE_NATIVE_SPECS): Define.
12816         * config/aarch64/driver-aarch64.c: New file.
12817         * config/aarch64/x-arch64: New file.
12818         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
12819         -mtune and -march.
12820
12821 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
12822             Wei Mi  <wmi@google.com>
12823
12824         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
12825         * config/i386/i386.c (extract_base_offset_in_addr): New function.
12826         (ix86_operands_ok_for_move_multiple): Ditto.
12827         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
12828         (movlpd/movhpd to movupd peephole2): Ditto.
12829
12830 2015-04-24  Marek Polacek  <polacek@redhat.com>
12831
12832         PR c/61534
12833         * input.h (from_macro_expansion_at): Define.
12834
12835         PR c/63357
12836         * doc/invoke.texi: Update description of -Wlogical-op.
12837
12838 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12839
12840         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
12841         ternary operator in fprintf and harmonize spacing.
12842
12843 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
12844
12845         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
12846         Mark operand1 commutative.
12847
12848 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
12849
12850         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
12851         input operands in memory.
12852         (*vec_concatv2si_sse4_1): Ditto.
12853         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
12854         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
12855         register_operand.
12856         (vec_extract_hi_v32hi): Ditto.
12857         (vec_extract_hi_v64hi): Ditto.
12858         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
12859
12860 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12861             Steven Bosscher <steven@gcc.gnu.org>
12862
12863         PR rtl-optimization/34503
12864         * cprop.c (cprop_reg_p): New.
12865         (hash_scan_set): Use above function to check if register can be
12866         propagated.
12867         (find_avail_set): Return up to two sets, one whose source is a
12868         register and one whose source is a constant.  Sets are returned in an
12869         array passed as parameter rather than as a return value.
12870         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
12871         sets returned by find_avail_set, starting with the one whose source is
12872         a constant. Use cprop_reg_p to check if register can be propagated.
12873         (do_local_cprop): Use cprop_reg_p to check if register can be
12874         propagated.
12875         (implicit_set_cond_p): Likewise.
12876
12877 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12878
12879         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
12880         (sem_function::equals): IGNORED_NODES parameter is now unused;
12881         update call of equals_private.
12882         (sem_function::equals_private): Do not call equals_wpa; skip
12883         gimple body matching if there is no body.
12884         (sem_function::init): Add logic to hash tthunk info.
12885         (sem_function::parse): Also parse thunks.
12886         * ipa-icf.h (equals_private): Update declaration.
12887
12888 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12889
12890         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
12891         asterisk from name so this can be generated directly.
12892         (*altivec_stvx_<mode>_internal): Likewise.
12893         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
12894         that this is never called during or after reload/lra.
12895         (rs6000_frame_related): Remove split_reg
12896         argument and logic that references it.
12897         (emit_frame_save): Remove last parameter from call to
12898         rs6000_frame_related.
12899         (rs6000_emit_prologue): Remove last parameter from eight calls to
12900         rs6000_frame_related.  Force generation of stvx instruction for
12901         Altivec register saves.  Remove split_reg handling, which is no
12902         longer needed.
12903         (rs6000_emit_epilogue):  Force generation of lvx instruction for
12904         Altivec register restores.
12905
12906 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12907
12908         * config/rs6000/rs6000.opt (mcrypto): Change option description to
12909         match category changes in ISA 2.07B.
12910
12911 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12912
12913         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
12914         iterators.
12915         (cmp_op, cmp_type): New code attributes.
12916         (NEON_VCMP, NEON_VACMP): New int iterators.
12917         (cmp_op_unsp): New int attribute.
12918         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
12919         (neon_vceq<mode>): Delete.
12920         (neon_vc<cmp_op><mode>_insn): New pattern.
12921         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
12922         (neon_vcgeu<mode>): Delete.
12923         (neon_vcle<mode>): Likewise.
12924         (neon_vclt<mode>: Likewise.
12925         (neon_vcage<mode>): Likewise.
12926         (neon_vcagt<mode>): Likewise.
12927         (neon_vca<cmp_op><mode>): New define_expand.
12928         (neon_vca<cmp_op><mode>_insn): New pattern.
12929         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
12930
12931 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12932
12933         * tree.h (attribute_value_equal): Declare.
12934         * tree.c (attribute_value_equal): Export.
12935
12936 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12937
12938         * ipa-icf.c (sem_item::compare_attributes): New function.
12939         (sem_item::compare_referenced_symbol_properties): Compare variable
12940         attributes.
12941         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
12942         (sem_function::param_used_p): New function.
12943         (sem_function::equals_wpa): Fix attribute comparsion; match
12944         parameter type codes; do not compare paremter flags when
12945         they are not used; compare edge flags; compare indirect calls.
12946         (sem_item::update_hash_by_addr_refs): Hash reference type.
12947         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
12948         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
12949         reference use type.
12950         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
12951         * ipa-icf.h (compare_attributes, param_used_p): Declare.
12952
12953 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12954
12955         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
12956         cleanup.
12957         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
12958         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
12959         (sem_item::compare_referenced_symbol_properties): New.
12960         (sem_item::hash_referenced_symbol_properties): New.
12961         (sem_item::compare_cgraph_references): Rename to ...
12962         (sem_item::compare_symbol_references): ... this one; use
12963         compare_referenced_symbol_properties.
12964         (sem_function::equals_wpa): Do not compare
12965         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
12966         DECL_IS_OPERATOR_NEW; compare pointer sizes.
12967         (sem_item::update_hash_by_addr_refs): Call
12968         hash_referenced_symbol_properties.
12969         (sem_item::update_hash_by_local_refs): Cleanup.
12970         (sem_function::merge): Do not mix up symbol properties.
12971         (sem_variable::equals_wpa): Use compare_symbol_references.
12972         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
12973         (sem_item::hash_referenced_symbol_properties): New.
12974         (sem_item::compare_symbol_references): New.
12975         (sem_item::compare_cgraph_references): Remove.
12976
12977 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
12978
12979         PR target/26702
12980         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
12981         Emit size of local.
12982
12983 2015-04-23  Nick Clifton  <nickc@redhat.com>
12984
12985         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
12986         ATTRIBUTE_UNUSED to x parameter.
12987         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
12988
12989 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12990
12991         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
12992         TARGET_CRYPTO to TARGET_P8_VECTOR>
12993         (crypto_vpermxor_<mode>): Likewise.
12994         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
12995         (BU_CRYPTO_3A): Likewise.
12996         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
12997         (BU_CRYPTO_OVERLOAD_3A): New #define.
12998         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
12999         (VPMSUMH): Likewise.
13000         (VPMSUMW): Likewise.
13001         (VPMSUMD): Likewise.
13002         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13003         (VPERMXOR_V4SI): Likewise.
13004         (VPERMXOR_V8HI): Likewise.
13005         (VPERMXOR_V16QI): Likewise.
13006         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13007         BU_CRYPTO_OVERLOAD_2A.
13008         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13009         BU_CRYPTO_OVERLOAD_3A.
13010         * config/rs6000/rs6000.opt (mcrypto): Change description of
13011         option.
13012
13013 2015-04-23  Richard Biener  <rguenther@suse.de>
13014
13015         * passes.def: Remove copy propagation passes run directly after CCP.
13016         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13017         SSA names.
13018         (ccp_visit_phi_node): Rework to handle first executable edge
13019         specially.
13020
13021 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
13022
13023         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13024         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13025         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13026         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13027         (thumb_legimitimize_reload_address): Remove.
13028         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13029         Remove.
13030         (thumb_legimitimize_reload_address): Remove.
13031
13032 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13033
13034         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13035
13036 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13037
13038         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13039         MAX_LDM_STM_OPS.
13040         (store_multiple): Likewise.
13041
13042 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13043
13044         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13045         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13046         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13047         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13048         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13049         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13050         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13051         Specify issue_rate value.
13052         (arm_issue_rate): Look up issue rate from tuning structs. Remove
13053         large switch statement.
13054         (arm_marvell_pj4_tune): New struct.
13055         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13056         struct.
13057
13058 2015-04-23  Richard Biener  <rguenther@suse.de>
13059
13060         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13061         (vect_find_last_store_in_slp_instance): Rename to ...
13062         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13063         (vect_analyze_slp_cost_1): Use vector_load for constant defs
13064         and vec_construct for external defs when estimating prologue cost.
13065         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13066         Compute costs here only when vectorizing loops.
13067         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13068         have been determined.
13069         (vect_schedule_slp_instance): Simplify vectorized code placement
13070         and prepare for in-BB external defs.
13071         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13072         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13073         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13074         guard.
13075         (vect_model_load_cost): Likewise.
13076         (vectorizable_store): Instead add it here.
13077         (vectorizable_load): Likewise.
13078         (vect_is_simple_use): Dump def type textually.
13079
13080 2015-04-23  Richard Biener  <rguenther@suse.de>
13081
13082         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13083         * cfgloop.c (verify_loop_structure): Verify the root loop node.
13084         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13085         instead of get_eh_region_from_lp_number.
13086         * loop-init.c (fix_loop_structure): If we removed a loop, reset
13087         the SCEV cache.
13088
13089 2015-04-23  Anton Blanchard  <anton@samba.org>
13090
13091         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13092         need for -mprofile-kernel to save LR to stack.
13093
13094 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13095
13096         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13097         adjustments.
13098         (insn_is_swappable_p): Return 1 for a convert from double to
13099         single precision when all of its uses are splats of BE element
13100         zero.
13101
13102 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13103
13104         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13105
13106 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13107
13108         PR target/65456
13109         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
13110         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13111         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13112         option.
13113         (rs6000_builtin_mask_for_load): Return 0 for targets with
13114         efficient unaligned VSX accesses so that the vectorizer will use
13115         direct unaligned loads.
13116         (rs6000_builtin_support_vector_misalignment): Always return true
13117         for targets with efficient unaligned VSX accesses.
13118         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13119         stores on targets with efficient unaligned VSX accesses is almost
13120         always the same as the cost of an aligned load or store, so model
13121         it that way.
13122         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13123         unaligned vectors if we have efficient unaligned VSX accesses.
13124         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13125         undocumented option.
13126
13127 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13128
13129         Revert:
13130         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
13131
13132         * config.gcc (LIBC_MUSL): New tm_defines macro.
13133         * config/linux.h (OPTION_MUSL): Define.
13134         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13135         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13136         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13137
13138         * config/linux.opt (mmusl): New option.
13139         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13140         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13141
13142         * configure: Regenerate.
13143
13144 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
13145
13146         * config.gcc (LIBC_MUSL): New tm_defines macro.
13147         * config/linux.h (OPTION_MUSL): Define.
13148         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13149         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13150         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13151
13152         * config/linux.opt (mmusl): New option.
13153         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13154         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13155
13156         * configure: Regenerate.
13157
13158 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
13159
13160         * doc/invoke.texi (-fsanitize-sections): Update description.
13161         * asan.c (set_sanitized_sections): Parse incoming arg.
13162         (section_sanitized_p): Support wildcards.
13163
13164 2015-04-22  Tom de Vries  <tom@codesourcery.com>
13165
13166         PR tree-optimization/65823
13167         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13168         equality between ap_copy and ap.
13169
13170 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13171
13172         PR target/47098
13173         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13174
13175 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13176
13177         PR target/47122
13178         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13179
13180 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13181
13182         PR target/55144
13183         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13184         remove already contained t-files.
13185
13186 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13187
13188         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13189         Remove unneeded forward declarations.
13190         (suitable_for_tail_call_opt_p): Commentary typo fix.
13191
13192 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13193
13194         * varasm.c (emit_bss): Remove redundant guard.
13195
13196 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13197
13198         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13199
13200 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13201
13202         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13203
13204 2015-04-22  Hale Wang  <hale.wang@arm.com>
13205             Terry Guo  <terry.guo@arm.com>
13206
13207         PR rtl-optimization/64818
13208         * combine.c (can_combine_p): Don't combine user-specified
13209         register if it is in an asm input.
13210
13211 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
13212
13213         PR ipa/65076
13214         * passes.def (early_optimizations): Add pass_dse.
13215
13216 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13217
13218         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13219         * reorg.c (redundant_insn): Remove ifdef
13220         INSN_REFERENCES_ARE_DELAYED.
13221         * resource.c (mark_referenced_resources): Likewise.
13222
13223 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13224
13225         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13226         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13227         * resource.c (mark_set_resources): Likewise.
13228
13229 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13230
13231         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13232         * cfgcleanup.c (flow_find_cross_jump): Likewise.
13233         (flow_find_head_matching_sequence): Likewise.
13234         (try_head_merge_bb): Likewise.
13235         * combine.c (can_combine_p): Likewise.
13236         (try_combine): Likewise.
13237         (distribute_notes): Likewise.
13238         * df-problems.c (can_move_insns_across): Likewise.
13239         * final.c (final): Likewise.
13240         * gcse.c (insert_insn_end_basic_block): Likewise.
13241         * ira.c (find_moveable_pseudos): Likewise.
13242         * reorg.c (try_merge_delay_insns): Likewise.
13243         (fill_simple_delay_slots): Likewise.
13244         (fill_slots_from_thread): Likewise.
13245         * sched-deps.c (sched_analyze_2): Likewise.
13246
13247 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13248
13249         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13250         PIC_OFFSET_TABLE_REGNUM.
13251
13252 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13253
13254         * alias.c (init_alias_target): Remove ifdef
13255         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13256         * df-scan.c (df_insn_refs_collect): Likewise.
13257         (df_get_regular_block_artificial_uses): Likewise.
13258         (df_get_eh_block_artificial_uses): Likewise.
13259         (df_get_entry_block_def_set): Likewise.
13260         (df_get_exit_block_use_set): Likewise.
13261         * emit-rtl.c (gen_rtx_REG): Likewise.
13262         * ira.c (ira_setup_eliminable_regset): Likewise.
13263         * reginfo.c (init_reg_sets_1): Likewise.
13264         * regrename.c (rename_chains): Likewise.
13265         * reload1.c (reload): Likewise.
13266         (eliminate_regs_in_insn): Likewise.
13267         * resource.c (mark_referenced_resources): Likewise.
13268         (init_resource_info): Likewise.
13269
13270 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13271
13272         * defaults.h (MASK_RETURN_ADDR): New definition.
13273         * except.c (expand_builtin_extract_return_addr): Remove ifdef
13274         MASK_RETURN_ADDR.
13275
13276 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13277
13278         * defaults.h (RETURN_ADDR_OFFSET): New definition.
13279         * except.c (expand_builtin_extract_return_addr): Remove ifdef
13280         RETURN_ADDR_OFFSET.
13281         (expand_builtin_frob_return_addr): Likewise.
13282
13283 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13284
13285         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13286         (try_redirect_by_replacing_jump): Likewise.
13287         (rtl_tidy_fallthru_edge): Likewise.
13288         * combine.c (insn_a_feeds_b): Likewise.
13289         (find_split_point): Likewise.
13290         (simplify_set): Likewise.
13291         * cprop.c (cprop_jump): Likewise.
13292         * cse.c (cse_extended_basic_block): Likewise.
13293         * df-problems.c (can_move_insns_across): Likewise.
13294         * function.c (emit_use_return_register_into_block): Likewise.
13295         * haifa-sched.c (sched_init): Likewise.
13296         * ira.c (find_moveable_pseudos): Likewise.
13297         * loop-invariant.c (find_invariant_insn): Likewise.
13298         * lra-constraints.c (curr_insn_transform): Likewise.
13299         * postreload.c (reload_combine_recognize_const_pattern):
13300         * Likewise.
13301         * reload.c (find_reloads): Likewise.
13302         * reorg.c (delete_scheduled_jump): Likewise.
13303         (steal_delay_list_from_target): Likewise.
13304         (steal_delay_list_from_fallthrough): Likewise.
13305         (redundant_insn): Likewise.
13306         (fill_simple_delay_slots): Likewise.
13307         (fill_slots_from_thread): Likewise.
13308         (delete_computation): Likewise.
13309         * sched-rgn.c (add_branch_dependences): Likewise.
13310
13311 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13312
13313         * genconfig.c (main): Always define HAVE_cc0.
13314         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13315         HAVE_cc0.
13316         * cfgcleanup.c (flow_find_cross_jump): Likewise.
13317         (flow_find_head_matching_sequence): Likewise.
13318         (try_head_merge_bb): Likewise.
13319         * cfgrtl.c (rtl_merge_blocks): Likewise.
13320         (try_redirect_by_replacing_jump): Likewise.
13321         (rtl_tidy_fallthru_edge): Likewise.
13322         * combine.c (do_SUBST_MODE): Likewise.
13323         (insn_a_feeds_b): Likewise.
13324         (combine_instructions): Likewise.
13325         (can_combine_p): Likewise.
13326         (try_combine): Likewise.
13327         (find_split_point): Likewise.
13328         (subst): Likewise.
13329         (simplify_set): Likewise.
13330         (distribute_notes): Likewise.
13331         * cprop.c (cprop_jump): Likewise.
13332         * cse.c (cse_extended_basic_block): Likewise.
13333         * df-problems.c (can_move_insns_across): Likewise.
13334         * final.c (final): Likewise.
13335         (final_scan_insn): Likewise.
13336         * function.c (emit_use_return_register_into_block): Likewise.
13337         * gcse.c (insert_insn_end_basic_block): Likewise.
13338         * haifa-sched.c (sched_init): Likewise.
13339         * ira.c (find_moveable_pseudos): Likewise.
13340         * loop-invariant.c (find_invariant_insn): Likewise.
13341         * lra-constraints.c (curr_insn_transform): Likewise.
13342         * optabs.c (prepare_cmp_insn): Likewise.
13343         * postreload.c (reload_combine_recognize_const_pattern):
13344         * Likewise.
13345         * reload.c (find_reloads): Likewise.
13346         (find_reloads_address_1): Likewise.
13347         * reorg.c (delete_scheduled_jump): Likewise.
13348         (steal_delay_list_from_target): Likewise.
13349         (steal_delay_list_from_fallthrough): Likewise.
13350         (try_merge_delay_insns): Likewise.
13351         (redundant_insn): Likewise.
13352         (fill_simple_delay_slots): Likewise.
13353         (fill_slots_from_thread): Likewise.
13354         (delete_computation): Likewise.
13355         (relax_delay_slots): Likewise.
13356         * sched-deps.c (sched_analyze_2): Likewise.
13357         * sched-rgn.c (add_branch_dependences): Likewise.
13358
13359 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13360
13361         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13362         that is trivially ded on non cc0 targets.
13363         (simplify_set): Likewise.
13364         (mark_used_regs_combine): Likewise.
13365         * cse.c (new_basic_block): Likewise.
13366         (fold_rtx): Likewise.
13367         (cse_insn): Likewise.
13368         (cse_extended_basic_block): Likewise.
13369         (set_live_p): Likewise.
13370         * rtlanal.c (canonicalize_condition): Likewise.
13371         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13372
13373 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13374
13375         * conditions.h: Define macros even if HAVE_cc0 is undefined.
13376         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13377         * final.c: Likewise.
13378         * jump.c: Likewise.
13379         * recog.c: Likewise.
13380         * recog.h: Declare functions even when HAVE_cc0 is undefined.
13381         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13382
13383 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13384
13385         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13386         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13387         * builtins.c (expand_builtin): Remove check if
13388         EH_RETURN_DATA_REGNO is defined.
13389         * df-scan.c (df_bb_refs_collect): Likewise.
13390         (df_get_exit_block_use_set): Likewise.
13391         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13392         * ira-lives.c (process_bb_node_lives): Likewise.
13393         * lra-lives.c (process_bb_lives): Likewise.
13394
13395 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
13396
13397         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13398         FIRST_PSEUDO_REG): New.
13399         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13400         (ARG_POINTER_REGNUM): Define to ARGP_REG.
13401         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13402         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13403         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13404         (FIRST_INT_REG): New.
13405         (LAST_INT_REG): New.
13406         (FIRST_*_REG): Define using *_REG.
13407         (LAST_*_REG): Ditto.
13408         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13409         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13410         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13411
13412 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13413
13414         * expmed.c: (synth_mult): Only assume overlapping
13415         shift with previous steps in alg_sub_t_m2 case.
13416
13417 2015-04-21  Richard Biener  <rguenther@suse.de>
13418
13419         PR tree-optimization/65650
13420         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
13421         transitions involving copies.
13422         (set_lattice_value): Adjust for copy lattice state.
13423         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
13424         if that doesn't dominate the merge point.
13425         (bit_value_unop): Adjust what we treat as varying mask.
13426         (bit_value_binop): Likewise.
13427         (bit_value_assume_aligned): Likewise.
13428         (evaluate_stmt): When we simplified to a SSA name record a copy
13429         instead of dropping to varying.
13430         (visit_assignment): Simplify.
13431
13432         * gimple-match.h (gimple_simplify): Add another callback.
13433         * gimple-fold.c (fold_stmt_1): Adjust caller.
13434         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
13435         for the 2nd callback.
13436         * gimple-match-head.c (gimple_simplify): Add a callback that is
13437         used to valueize the stmt operands and use it that way.
13438
13439 2015-04-21  Richard Biener  <rguenther@suse.de>
13440
13441         PR tree-optimization/65788
13442         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
13443
13444 2015-04-21  Richard Biener  <rguenther@suse.de>
13445
13446         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
13447         vec_construct cost by vec_stmt_cost.
13448
13449 2015-04-21  Richard Biener  <rguenther@suse.de>
13450
13451         * cfghooks.h (create_basic_block): Replace with two overloads
13452         for RTL and GIMPLE.
13453         (split_block): Likewise.
13454         * cfghooks.c (split_block): Rename to ...
13455         (split_block_1): ... this.
13456         (split_block): Add two type-safe overloads for RTL and GIMPLE.
13457         (split_block_after_labels): Call split_block_1.
13458         (create_basic_block): Rename to ...
13459         (create_basic_block_1): ... this.
13460         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
13461         (create_empty_bb): Call create_basic_block_1.
13462         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
13463         split_block_after_labels.
13464         * omp-low.c (expand_parallel_call): Likewise.
13465         (expand_omp_target): Likewise.
13466         (simd_clone_adjust): Likewise.
13467         * tree-chkp.c (chkp_get_entry_block): Likewise.
13468         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
13469         create_basic_block overload.
13470         (cgraph_node::expand_thunk): Likewise.
13471         * tree-cfg.c (make_blocks): Likewise.
13472         (handle_abnormal_edges): Likewise.
13473         * tree-inline.c (copy_bb): Likewise.
13474
13475 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13476
13477         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
13478         New pattern.
13479         (*xor_one_cmplsidi3_ze): Likewise.
13480
13481 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13482
13483         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
13484         use df_remove_problem rather than manually removing problems, leaving
13485         holes in df->problems_in_order[].
13486
13487 2015-04-21  Tom de Vries  <tom@codesourcery.com>
13488
13489         PR tree-optimization/65802
13490         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
13491
13492 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13493
13494         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
13495         Increase to 128.
13496         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
13497         at '.'.  Assert that there's enough space for everything.
13498
13499 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
13500
13501         PR tree-optimization/64950
13502         Revert:
13503         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
13504
13505         PR target/41089
13506         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
13507         as volatile.
13508
13509 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
13510
13511         PR rtl-optimization/64916
13512         * cfgcleanup.c (values_equal_p): New function.
13513         (can_replace_by): Use it.
13514
13515 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
13516
13517         PR c++/65801
13518         * doc/invoke.texi ([-Wnarrowing]): Update.
13519
13520 2015-04-20  Jeff Law  <law@redhat.com>
13521
13522         PR tree-optimization/65658
13523         * tree-ssa-threadupdate.c (redirection_block_p): Remove
13524         redundant test for GIMPLE_ASSIGN in last change.
13525
13526 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
13527
13528         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
13529         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
13530         (legitimize_tls_address): Ditto.
13531         (ix86_expand_move): Ditto.
13532         (ix86_expand_binary_operator): Remove reload_in_progress checks.
13533         (ix86_expand_unary_operator): Ditto.
13534         * config/i386/predicates.md (index_register_operand): Ditto.
13535
13536 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
13537
13538         * reorg.c (try_merge_delay_insns): Improve correctness checking
13539         for targets with multiple delay slots.
13540
13541 2015-04-20  Jeff Law  <law@redhat.com>
13542
13543         PR tree-optimization/65658
13544         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
13545         statements too.
13546
13547 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
13548
13549         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
13550         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
13551         Delete.
13552
13553 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
13554
13555         PR debug/65807
13556         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
13557
13558 2015-04-20  Richard Biener  <rguenther@suse.de>
13559
13560         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
13561         * gimple-fold.c (gimple_build_valueize): New function.
13562         (gimple_build): Always use gimple_build_valueize as valueize hook.
13563
13564 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
13565
13566         PR target/64134
13567         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
13568         and overwrite variable parts if <= 1/2 the elements are variable.
13569
13570 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
13571
13572         PR rtl-optimization/65805
13573         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
13574         Don't use difference of offset and previous offset if
13575         update_sp_offset is non-zero.
13576         (eliminate_regs_in_insn): Ditto.
13577         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
13578         lra_eliminate_regs_1 call.
13579         * lra-constraints.c (get_equiv_with_elimination): Ditto.
13580
13581 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
13582
13583         * hash-table.h: Remove version of hash_table that stored value_type *.
13584         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
13585         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
13586         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
13587         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
13588         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
13589         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
13590         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13591         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
13592         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
13593         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
13594         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
13595         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
13596         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
13597         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13598         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
13599         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
13600
13601 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13602             Jakub Jelinek  <jakub@redhat.com>
13603
13604         PR target/65787
13605         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
13606         subsequent SH_NONE operand does not overwrite an existing *special
13607         value.
13608         (adjust_extract): Handle case where a vec_extract operation is
13609         wrapped in a PARALLEL.
13610
13611 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
13612
13613         PR target/65780
13614         * config/i386/i386.c (ix86_binds_local_p): Define only if
13615         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
13616
13617 2015-04-17  Jeff Law  <law@redhat.com>
13618
13619         PR tree-optimization/47679
13620         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
13621         * tree-ssa-scopedtables.c: New file.
13622         * tree-ssa-scopedtables.h: New file.
13623         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
13624         (const_and_copies): Change name/type.
13625         (record_const_or_copy): Move into tree-ssa-scopedtables.c
13626         (record_const_or_copy_1): Similarly.
13627         (restore_vars_to_original_value): Similarly.
13628         (pass_dominator::execute): Create and destroy const_and_copies table.
13629         (thread_across_edge): Update passing of const_and_copies.
13630         (record_temporary_equivalence): Use method calls rather than
13631         manipulating const_and_copies directly.
13632         (record_equality, cprop_into_successor_phis): Similarly.
13633         (dom_opt_dom_walker::before_dom_children): Similarly.
13634         (dom_opt_dom_walker::after_dom_children): Similarly.
13635         (eliminate_redundant_computations): Similarly.
13636         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
13637         (record_temporary_equivalence): Likewise.
13638         (invalidate_equivalences): Likewise.
13639         (record_temporary_equivalences_from_phis): Update due to type
13640         change of const_and_copies.  Use method calls rather than
13641         manipulating the stack directly.
13642         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
13643         (thread_through_normal_block, thread_across_edge): Likewise.
13644         (thread_across_edge): Likewise.
13645         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13646         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
13647         of equiv_stack.
13648         (identify_jump_threads): Update due to type change of equiv_stack.
13649         (finalize_jump_threads): Delete the equiv_stack when complete.
13650
13651 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
13652
13653         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13654         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
13655         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
13656
13657 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
13658
13659         PR target/65535
13660         * config.gcc: Exit with a comment when we do not have a major version
13661         number for the FreeBSD target.
13662
13663 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
13664
13665         PR target/65689
13666         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
13667         maybe_allows_mem bitfields.
13668         (maybe_allows_none_start, maybe_allows_none_end,
13669         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
13670         maybe_allows_mem_end): New variables.
13671         (compute_maybe_allows): New function.
13672         (add_constraint): Use it to initialize maybe_allows_reg and
13673         maybe_allows_mem fields.
13674         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
13675         is_address constraints such that those that allow neither mem nor
13676         reg come first, then those that only allow reg but not mem, then
13677         those that only allow mem but not reg, then the rest.
13678         (write_allows_reg_mem_function): New function.
13679         (write_tm_preds_h): Call it.
13680         * stmt.c (parse_output_constraint, parse_input_constraint): Use
13681         the generated insn_extra_constraint_allows_reg_mem function
13682         instead of always setting *allows_reg = true; *allows_mem = true;
13683         for unknown extra constraints.
13684
13685 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
13686
13687         PR target/65780
13688         * output.h (default_binds_local_p_3): New.
13689         * varasm.c (default_binds_local_p_3): Make it public.  Take an
13690         argument to indicate if common symbol may be local.  If common
13691         symbol may be local, treat non-external variable as defined
13692         locally.
13693         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
13694         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
13695         * config/i386/i386.c (ix86_binds_local_p): New.
13696         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
13697         ix86_binds_local_p.
13698
13699 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
13700
13701         PR debug/65771
13702         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
13703         trying mem_loc_descriptor on XEXP (rtl, 0).
13704
13705 2015-04-17  Martin Liska  <mliska@suse.cz>
13706
13707         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
13708         Release symbol_compare_collection.
13709         * ipa-reference.c: Add TODO that a vector should be released.
13710
13711 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
13712
13713         PR target/65296
13714         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
13715         to new AVR-LibC file layout (bug #44574).
13716         (*avrlibc_devicelib): Same.
13717         * config/avr/avr-mcus.def: Adjust comments.
13718         * config/avr/avr.opt (nodevicelib): Adjust help.
13719
13720 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
13721
13722         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
13723
13724 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
13725
13726         PR c++/64527
13727         * gimplify.c (gimplify_init_constructor): Always emit a
13728         side-effecting constructor.
13729
13730 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13731
13732         PR tree-optimization/64950
13733         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
13734         in cfun->curr_properties.
13735         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
13736         if we generate an IFN_VA_ARG.
13737         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
13738         function if PROP_gimple_lva is not set in src function.
13739
13740 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13741             Michael Matz  <matz@suse.de>
13742
13743         PR tree-optimization/64950
13744         * gimple-iterator.c (update_modified_stmts): Remove static.
13745         * gimple-iterator.h (update_modified_stmts): Declare.
13746         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
13747         (gimplify_va_arg_internal): New function.
13748         (gimplify_va_arg_expr): Use IFN_VA_ARG.
13749         * gimplify.h (gimplify_va_arg_internal): Declare.
13750         * internal-fn.c (expand_VA_ARG): New unreachable function.
13751         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
13752         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
13753         (expand_ifn_va_arg): New function.
13754         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
13755         (pass_stdarg::execute): Call expand_ifn_va_arg.
13756         (pass_data_lower_vaarg): New pass_data.
13757         (pass_lower_vaarg): New gimple_opt_pass.
13758         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
13759         (make_pass_lower_vaarg): New function.
13760         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
13761         properties_required field.
13762         * passes.def (all_passes): Add pass_lower_vaarg.
13763         * tree-pass.h (PROP_gimple_lva): Add define.
13764         (make_pass_lower_vaarg): Declare.
13765
13766 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13767
13768         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
13769         * calls.c (call_expr_flags): Same.
13770
13771 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13772
13773         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
13774         (pass_stdarg::execute): ... here.
13775
13776 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13777             Michael Matz  <matz@suse.de>
13778
13779         * tree-cfg.c (make_blocks_1): Factor out of ...
13780         (make_blocks): ... here.
13781         (make_edges_bb): Factor out of ...
13782         (make_edges): ... here.
13783         (gimple_find_sub_bbs): New function.
13784         * tree-cfg.h (gimple_find_sub_bbs): Declare.
13785
13786 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13787
13788         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
13789
13790 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
13791
13792         * asan.c (set_sanitized_sections): New function.
13793         (section_sanitized_p): Ditto.
13794         (asan_protect_global): Optionally sanitize user-defined
13795         sections.
13796         * asan.h (set_sanitized_sections): Declare new function.
13797         * common.opt (fsanitize-sections): New option.
13798         * doc/invoke.texi (-fsanitize-sections): Document new option.
13799         * opts-global.c (handle_common_deferred_options): Handle new
13800         option.
13801
13802 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
13803
13804         PR debug/65771
13805         * dwarf2out.c (loc_list_from_tree): Return NULL
13806         for DEBUG_EXPR_DECL.
13807
13808 2015-04-17  Christian Bruel  <christian.bruel@st.com>
13809
13810         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
13811         same attributes.
13812
13813 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13814
13815         * ira-color.c (setup_left_conflict_sizes_p): Do not process
13816         node itself when computing left conflict subnode size.
13817
13818 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
13819
13820         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
13821         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
13822         *fop_<mode>_1_sse using enabled attribute.  Use
13823         register_mixssei387nonimm_operand operand 1 predicate. Change
13824         alternative 3 constraints from "x" to "v".
13825
13826 2015-04-16  Richard Biener  <rguenther@suse.de>
13827
13828         PR tree-optimization/65774
13829         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
13830         bit-value tracking on.
13831
13832 2015-04-16  Richard Biener  <rguenther@suse.de>
13833
13834         PR tree-optimization/64277
13835         * tree-vrp.c (check_array_ref): Fix anti-range handling,
13836         simplify upper bound handling.
13837         (search_for_addr_array): Simplify.
13838         (check_array_bounds): Handle ADDR_EXPRs here.
13839         (check_all_array_refs): Simplify.
13840
13841 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
13842
13843         * config/i386/i386.c (print_reg): Rewrite function.
13844
13845 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13846
13847         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
13848         Invert the condition.
13849
13850 2015-04-16  Renlin Li  <renlin.li@arm.com>
13851
13852         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
13853         simplifications for UNSIGNED_FLOAT.
13854
13855 2015-04-16  Nick Clifton  <nickc@redhat.com>
13856
13857         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
13858         MUL_UNINIT.
13859         (enum rl78_cpu_type): New.
13860         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
13861         (umulhi3_shift_virt): Remove m constraint from operand 1.
13862         (umulqihi3_virt): Likewise.
13863         * config/rl78/rl78.c (rl78_option_override): Add code to process
13864         -mcpu and -mmul options.
13865         (rl78_alloc_physical_registers): Add code to handle divhi and
13866         divsi valloc attributes.
13867         (set_origin): Likewise.
13868         * config/rl78/rl78.h (RL78_MUL_G14): Define.
13869         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
13870         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
13871         __RL78_Gxx__.
13872         (ASM_SPEC): Pass -mcpu on to assembler.
13873         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
13874         (mulqi3_rl78): Likewise.
13875         (mulhi3_g13): Likewise.
13876         (mulhi3): Generate the G13 or G14 versions of the insn directly.
13877         (mulsi3): Likewise.
13878         (mulhi3_g14): Add clobbers of AX and BC.
13879         (mulsi3_g14): Likewise.
13880         (mulsi3_g13): Likewise.
13881         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
13882         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
13883         * config/rl78/rl78.opt (mmul): Initialise value to
13884         RL78_MUL_UNINIT.
13885         (mcpu): New option.
13886         (m13, m14, mrl78): New option aliases.
13887         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
13888         (MULTILIB_DIRNAMES): Add g13 and g14.
13889         * doc/invoke.texi: Document -mcpu and -mmul options.
13890
13891 2015-04-16  Richard Biener  <rguenther@suse.de>
13892
13893         * tree-ssa-ccp.c (likely_value): See if we have operands that
13894         are marked as never simulate again and return CONSTANT in this
13895         case.
13896         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
13897         not have any operands that will be simulated again as
13898         not being simulated again.
13899
13900 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
13901
13902         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
13903         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
13904         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
13905         attribute.
13906         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
13907         enabled attribute.
13908         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
13909         *float<SWI48:mode><MODEF:mode>2_sse.
13910         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
13911         enabled attribute.
13912         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
13913         enabled attribute.
13914
13915 2015-04-15  Tom de Vries  <tom@codesourcery.com>
13916
13917         PR other/65487
13918         * function.c (push_dummy_function): New function.
13919         (init_dummy_function_start): Use push_dummy_function.
13920         (pop_dummy_function): New function.  Factored out of ...
13921         (expand_dummy_function_end): ... here.
13922         * function.h (push_dummy_function, pop_dummy_function): Declare.
13923         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
13924         pop_dummy_function.
13925         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
13926
13927 2015-04-15  Jeff Law  <law@redhat.com>
13928
13929         PR tree-optimization/47679
13930         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
13931         need for forward declaration in upcoming changes.
13932         (record_conditions, record_edge_info): Likewise.
13933
13934         PR rtl-optimization/42522
13935         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
13936         SIGN_EXTRACT as a whole object rather than simplifying
13937         its operand.
13938
13939 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
13940
13941         PR ipa/65765
13942         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
13943         and GIMPLE_PREDICT use break instead of return true. For
13944         GIMPLE_EH_DISPATCH, compare dispatch region.
13945
13946 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
13947
13948         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
13949         details about the implementation.  Make clear preference for
13950         __atomic builtins.  Reduce possibility of future change.
13951
13952 2015-04-15  Nick Clifton  <nickc@redhat.com>
13953
13954         * config/rx/rx.opt (mallow-string-insns): New option.
13955         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
13956         builtin if string instructions are denied.
13957         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
13958         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
13959         appropriate.
13960         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
13961         * config/rx/rx.md (movstr): Enable pattern only if string
13962         instructions are allowed.
13963         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
13964         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
13965         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
13966         (MULTILIB_DIRNAMES): Add no-strings.
13967         * doc/invoke.texi: Document -mno-allow-string-insns.
13968
13969 2015-04-15  Alan Modra  <amodra@gmail.com>
13970
13971         PR target/65408
13972         PR target/58744
13973         PR middle-end/36043
13974         * calls.c (load_register_parameters): Don't load past end of
13975         mem unless suitably aligned.
13976
13977 2015-04-15  Nick Clifton  <nickc@redhat.com>
13978
13979         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
13980         decrement instruction as being frame related.
13981         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
13982         based addresses.
13983         If zero extending a function address enclose the operation in
13984         %code(...).
13985         (rl78_preferred_reload_class): New function.
13986         (TARGET_PREFERRED_RELOAD_CLASS): Define.
13987         * config/rl78/rl78.md: Remove useless constraints in expanders.
13988         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
13989         (mulhi3_rl78): Likewise.
13990         (mulhi3_g13): Likewise.
13991         (mulsi3_rl78): Likewise.
13992         (es_addr): Move to before the multiply patterns.
13993
13994 2015-04-15  Alan Modra  <amodra@gmail.com>
13995
13996         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
13997         and sequence_stack.  Add seq.
13998         (seq_stack): Delete.
13999         * function.c (prepare_function_start): Don't access x_last_insn.
14000         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14001         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14002         * emit_rtl.c (start_sequence, push_topmost_sequence,
14003         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14004         sequence accessors.
14005         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14006         remove_insn): Likewise.  Simplify.
14007         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14008         and pop_topmost_sequence.
14009         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
14010         debug insns.
14011         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14012
14013 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
14014
14015         PR target/65729
14016         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14017         the assertiion.
14018
14019 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
14020
14021         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14022         (LEGACY_INT_REGNO_P): Ditto.
14023         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14024         (ANY_MASK_REG_P): Remove.
14025         (BND_REG_P): Rename from ANY_BND_REG_P.
14026         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14027         legacy integer registers.  Do not handle MMX_REG_P in a special way.
14028         Merge 64byte and 32byte SSE handling.
14029
14030 2015-04-14  Nick Clifton  <nickc@redhat.com>
14031
14032         * expr.c (expand_assignment): Force an address offset computation
14033         into a register before changing its mode.
14034         (expand_expr_real_1): Likewise.
14035
14036 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
14037
14038         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14039         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14040         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14041         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14042         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14043         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14044         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14045         and __aarch64_vget_lane_any.
14046
14047 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
14048
14049         PR rtl-optimization/65761
14050         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14051         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14052
14053 2015-04-14  Richard Biener  <rguenther@suse.de>
14054
14055         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14056         (graphite_can_represent_scev): Use POINTER_TYPE_P.
14057
14058 2015-04-14  Richard Biener  <rguenther@suse.de>
14059
14060         PR tree-optimization/65758
14061         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14062         against -1.
14063         (ccp_lattice_meet): Likewise.
14064         (bit_value_unop): Likewise.
14065         (bit_value_binop): Likewise.
14066         (bit_value_assume_aligned): Likewise.
14067
14068 2015-04-14  Christian Bruel  <christian.bruel@st.com>
14069
14070         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14071         function.
14072
14073 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
14074
14075         PR tree-optimization/63387
14076         * match.pd ((x unord x) | (y unord y) -> (x unord y),
14077         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14078
14079 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
14080
14081         * config/i386/predicates.md (any_QIreg_operand): Rename from
14082         q_regs_operand.  Do not process subregs.
14083         (QIreg_operand): Use QI_REGNO_P predicate.
14084         (ext_QIreg_operand): Ditto.
14085         (ext_register_operand): Ditto.
14086         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14087         (AND splitters): Ditto.
14088         (AND with -65536 splitter): Add SWI48 mode for operand 0.
14089         (AND with -256 splitter): Use any_QIreg_operand predicate and
14090         SWI248 mode for operand 0.
14091         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14092         mode for operand 0.
14093         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14094
14095 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
14096
14097         * doc/plugins.texi: Rewrite first introductory paragraph.
14098
14099 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14100
14101         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14102         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14103
14104 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14105
14106         * ipa-profie.c (ipa_profile): Check number of parameters
14107         and possible polymorphic call targets before
14108         devirtualizing.
14109
14110 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
14111
14112         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14113         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14114
14115 2015-04-13  Richard Biener  <rguenther@suse.de>
14116
14117         PR tree-optimization/65204
14118         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14119         takens for bit-CCP.
14120
14121 2015-04-13  Richard Biener  <rguenther@suse.de>
14122
14123         PR target/65660
14124         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14125         and cond_not_taken_branch_cost to 4 and 2.
14126         (bdver2_cost): Likewise.
14127         (bdver3_cost): Likewise.
14128         (bdver4_cost): Likewise.
14129
14130 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14131
14132         * hash-table.h (hash_table constructor): Add mem stats.
14133         (alloc_entries): Likewise.
14134
14135 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14136
14137         * ipa-cp.c (ipcp_driver): Relase prev_edge.
14138         * passes.c (execute_one_pass): Only add transform if pass has one.
14139
14140 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
14141
14142         * config/i386/i386.c (ix86_option_override_internal): Don't set
14143         -fprefetch-loop-arrays if optimizing for size.
14144
14145 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
14146             Gerald Pfeifer  <gerald@pfeifer.com>
14147
14148         * doc/contrib.texi (Contributors): Add Martin Jambor and
14149         Michael Matz.
14150
14151 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
14152
14153         * BASE-VER: Set to 6.0.0.
14154
14155         PR tree-optimization/65747
14156         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14157         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14158
14159 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
14160
14161         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14162         sentence.  Improve grammar.
14163
14164 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
14165
14166         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14167
14168 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
14169
14170         PR ipa/65743
14171         * ipa-inline-transform.c (speculation_removed): Remove static var.
14172         (check_speculations): New function.
14173         (clone_inlined_nodes): Do not check spculations.
14174         (inline_call): Call check_speculations.
14175         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14176         consider non-invariants.
14177
14178 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
14179             Martin Liska  <mliska@suse.cz>
14180
14181         PR ipa/65722
14182         * ipa-icf.c (sem_item::compare_cgraph_references): function and
14183         variable can not match.
14184         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14185         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14186
14187 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
14188
14189         PR tree-optimization/65735
14190         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14191         Remove visited_phis argument, add visited_bbs, avoid recursing into the
14192         same bb rather than just into the same phi node.
14193         (thread_through_normal_block): Adjust caller.
14194
14195 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
14196
14197         * doc/contrib.texi (Contributors): Add Ira Rosen.
14198
14199 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
14200
14201         * gcov.c (find_source): Fix miswording in error message.
14202         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14203         (ix86_expand_sse_comi_round): Fix typo in error message.
14204
14205 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
14206
14207         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14208
14209 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
14210
14211         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14212
14213 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
14214
14215         PR target/65710
14216         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14217         Print bad_spills_num and insn_pseudos_num.
14218
14219 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14220
14221         PR target/65694
14222         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14223         when creating +1 values for SImode.
14224
14225 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
14226
14227         PR target/65729
14228         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14229         assert.
14230
14231 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
14232             Iain Sandoe  <iain@codesourcery.com>
14233
14234         PR target/65351
14235         * configure: Regenerate.
14236
14237 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14238
14239         PR target/65671
14240         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14241
14242 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
14243
14244         * doc/contrib.texi (Contributors): Add John Marino.
14245
14246 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
14247
14248         PR tree-optimization/65709
14249         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14250         TREE_TYPE (TREE_TYPE (t)).
14251
14252 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
14253
14254         PR target/65710
14255         * lra-int.h (lra_bad_spill_regno_start): New.
14256         * lra.c (lra_bad_spill_regno_start): New.
14257         (lra): Set up lra_bad_spill_regno_start.  Set up
14258         lra_constraint_new_regno_start unconditionally.
14259         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14260         spill preferences.
14261
14262 2015-04-09  Marek Polacek  <polacek@redhat.com>
14263             Jakub Jelinek  <jakub@redhat.com>
14264
14265         PR middle-end/65554
14266         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14267         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14268         of STRIP_NOPS.
14269
14270 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
14271
14272         PR rtl-optimization/65693
14273         * combine.c (is_parallel_of_n_reg_sets): Move outside of
14274         #ifndef HAVE_cc0.
14275
14276 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
14277
14278         PR target/65296
14279         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14280         device specs file if "device-specs%s" didn't resolve to a path.
14281
14282 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14283
14284         PR target/65676
14285         * config/i386/i386.c (fixup_modeless_constant): New.
14286         (ix86_expand_args_builtin): Fixup modeless constant operand.
14287         (ix86_expand_round_builtin): Ditto.
14288         (ix86_expand_special_args_builtin): Ditto.
14289         (ix86_expand_builtin): Ditto.
14290
14291 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
14292
14293         PR target/65693
14294         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14295         any pow2 integer in between 2 and 0x80000000U inclusive.
14296
14297 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
14298
14299         PR rtl-optimization/65693
14300         * combine.c (is_parallel_of_n_reg_sets): Change first argument
14301         from an rtx_insn * to an rtx.
14302         (try_combine): Adjust both callers.  Use it once more.
14303
14304 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14305
14306         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14307         (chkp_make_static_const_bounds): Search existing
14308         symbol by assembler name.  Use make_decl_one_only.
14309         (chkp_get_zero_bounds_var): Remove node search which
14310         is now performed in chkp_make_static_const_bounds.
14311         (chkp_get_none_bounds_var): Likewise.
14312
14313 2015-04-08  Michael Witten  <mfwitten@gmail.com>
14314
14315         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14316         to an example.
14317
14318 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14319
14320         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14321
14322 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
14323
14324         * doc/extend.texi (__sync Builtins): Fix grammar.
14325
14326 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14327
14328         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14329
14330 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14331
14332         * varasm.c (emit_local): Move definition of align.
14333
14334 2015-04-08  Julian Brown  <julian@codesourcery.com>
14335
14336         * config/nvptx/mkoffload.c (process): Support variable mapping.
14337
14338 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
14339
14340         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14341         alpha_links **.
14342         (alpha_write_one_linkage): Correct typo.
14343
14344 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14345
14346         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14347
14348 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
14349
14350         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14351
14352 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
14353
14354         * tree-chkp.h (chkp_insert_retbnd_call): New.
14355         * tree-chkp.c (chkp_insert_retbnd_call): New.
14356         * ipa-split.c (insert_bndret_call_after): Remove.
14357         (split_function): Use chkp_insert_retbnd_call.
14358         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14359         bounds for instrumented functions.
14360
14361 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
14362
14363         PR ipa/65540
14364         * calls.c (initialize_argument_information): When producing tail
14365         call also turn SSA_NAMES passed by references to original PARM_DECLs
14366
14367 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
14368
14369         PR target/65648
14370         * lra-remat.c (do_remat): Process input and non-input insn
14371         registers separately.
14372
14373 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
14374
14375         PR debug/65678
14376         * valtrack.c (debug_lowpart_subreg): New function.
14377         (dead_debug_insert_temp): Use it.
14378
14379         PR middle-end/65680
14380         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14381         into signed HOST_WIDE_INT the same as negative bit_offset.
14382
14383 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14384
14385         * ipa-comdats.c (ipa_comdats): Visit all thunks
14386         to set proper comdat group.
14387
14388 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14389
14390         PR target/65489
14391         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14392         on constants for NEON VSTRUCT modes.
14393
14394 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
14395             Iain Sandoe  <iain@codesourcery.com>
14396
14397         PR target/65351
14398         * configure: Regenerate.
14399
14400 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14401
14402         PR target/65614
14403         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14404         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14405         that LFD is used to load double constants instead of LFS.  Add
14406         defaults for all costs structures.  Add comments for missing
14407         initialization fields.
14408         (size32_cost): Likewise.
14409         (size64_cost): Likewise.
14410         (rs64a_cost): Likewise.
14411         (mpccore_cost): Likewise.
14412         (ppc403_cost): Likewise.
14413         (ppc405_cost): Likewise.
14414         (ppc440_cost): Likewise.
14415         (ppc476_cost): Likewise.
14416         (ppc601_cost): Likewise.
14417         (ppc603_cost): Likewise.
14418         (ppc604_cost): Likewise.
14419         (ppc604e_cost): Likewise.
14420         (ppc620_cost): Likewise.
14421         (ppc630_cost): Likewise.
14422         (ppccell_cost): Likewise.
14423         (ppc750_cost): Likewise.
14424         (ppc7450_cost): Likewise.
14425         (ppc8540_cost): Likewise.
14426         (ppce300c2c3_cost): Likewise.
14427         (ppce500mc_cost): Likewise.
14428         (ppce500mc64_cost): Likewise.
14429         (ppce5500_cost): Likewise.
14430         (ppce6500_cost): Likewise.
14431         (titan_cost): Likewise.
14432         (power4_cost): Likewise.
14433         (power6_cost): Likewise.
14434         (power7_cost): Likewise.
14435         (power8_cost): Likewise.
14436         (ppca2_cost): Likewise.
14437         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
14438
14439         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
14440         instead of XXLOR to copy SFmode to clear out dirty bits created
14441         when SFmode denormals are generated.
14442         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
14443         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
14444
14445 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
14446
14447         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
14448         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
14449         * config/aarch64/aarch64-tune.md: Regenerate.
14450
14451 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
14452
14453         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
14454         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
14455         * config/arm/arm-cores.def (exynos-m1): New core.
14456         * config/arm/arm-tune.md: Regenerate.
14457         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
14458         * config/arm/bpabi.h: Likewise.
14459
14460 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
14461
14462         * ipa-cp (set_single_call_flag): Remove too
14463         restrictive assert.
14464
14465 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
14466
14467         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
14468         GOMP_offload_unregister from the destructor.
14469
14470 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
14471
14472         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
14473         flags for instrumentation thunk.
14474         (chkp_produce_thunks): Likewise.
14475
14476 2015-04-05  Martin Liska  <mliska@suse.cz>
14477
14478         PR ipa/65665
14479         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
14480         has computed data structure.
14481         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14482
14483 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
14484
14485         * invoke.texi (inline-unit-growth): Increase growth to 20%
14486         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
14487
14488 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
14489
14490         PR target/65647
14491         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
14492         value checking.
14493         (lra_rematerialization_iter): New.
14494         * lra.c (lra): Initialize lra_rematerialization_iter.
14495         Stop updating lra_constraint_new_regno_start after switching of
14496         inheritance and rematerialization.
14497         * lra-remat.c (lra_rematerialization_iter): New.
14498         (lra_remat): Add printing pass iteration.  Do rematerialization
14499         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
14500
14501 2015-04-04  Richard Biener  <rguenther@suse.de>
14502
14503         PR tree-optimization/64909
14504         PR tree-optimization/65660
14505         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
14506         to take a cost vector for scalar iteration cost.
14507         (vect_get_single_scalar_iteration_cost): Likewise.
14508         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
14509         Compute the scalar iteration cost into a cost vector.
14510         (vect_get_known_peeling_cost): Use the scalar cost vector to
14511         account for the cost of the peeled iterations.
14512         (vect_estimate_min_profitable_iters): Likewise.
14513         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
14514         Likewise.
14515
14516 2015-04-04  Alan Modra  <amodra@gmail.com>
14517
14518         PR target/65576
14519         PR target/65240
14520         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
14521         0.0 constant unless TARGET_VSX.
14522         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
14523         alternative.
14524
14525 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
14526
14527         PR ipa/65654
14528         * ipa-inline-transform.c (inline_call): Skip sanity check to work
14529         around the ICE
14530
14531 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
14532
14533         PR ipa/65655
14534         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
14535         speculative indirect edges to avoid ordering issue.
14536
14537 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
14538
14539         PR ipa/65076
14540         * ipa-inline.c (edge_badness): Add combined size to the denominator.
14541
14542 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
14543
14544         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
14545         TYPE_ARTIFICIAL on the .omp_data* types.
14546
14547 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14548
14549         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
14550         instrumentation thunks.
14551
14552 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14553
14554         * config/i386/i386.c (ix86_expand_call): Avoid nested
14555         PARALLEL in returned call value.
14556
14557 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14558
14559         * lto-cgraph.c (input_cgraph_1): Always link instrumented
14560         assembler name with original one.
14561
14562 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
14563
14564         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
14565
14566 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
14567
14568         Revert parts of r216820.
14569         * config/i386/i386.md (movqi_internal): Correct type calculation
14570         for alternatives 3 and 5.
14571
14572 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
14573
14574         PR preprocessor/61977
14575         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
14576         predefine __vector/__bool/__pixel macros nor context sensitive
14577         macros for CLK_ASM.
14578         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
14579
14580 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
14581
14582         * config/pa/pa.c (pa_output_move_double): Directly handle register
14583         indexed memory operand.  Simplify handling of scaled register indexed
14584         memory operands.
14585
14586 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14587
14588         PR driver/65444
14589         * config/i386/linux-common.h (MPX_SPEC): New.
14590         (CHKP_SPEC): Add MPX_SPEC.
14591         * doc/invoke.texi (-fcheck-pointer-boudns): Document
14592         possible issues with '-z bndplt' support in linker.
14593
14594 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
14595
14596         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
14597         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
14598         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
14599         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
14600         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
14601
14602 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
14603
14604         * config/i386/sync.md (UNSPEC_MOVA): Remove.
14605         (atomic_load<mode>): Change operand 0 predicate to
14606         nonimmediate_operand and fix up the destination when needed.
14607         Use UNSPEC_LDA.
14608         (atomic_loaddi_fpu): Use UNSPEC_LDA.
14609         (atomic_store<mode>): Change operand 1 predicate to
14610         nonimmendate_operand and move the source to register when needed.
14611         Use UNSPEC_STA.
14612         (atomic_store<mode>_1): Use UNSPEC_STA.
14613         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
14614         Fix moves from memory operand.  Use UNSPEC_STA.
14615
14616 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14617
14618         * expmed.c (strict_volatile_bitfield_p): Check that the access will
14619         not cross a MODESIZE boundary.
14620         (store_bit_field, extract_bit_field): Added assertions in the
14621         strict volatile bitfields code path.
14622
14623 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14624
14625         PR target/65624
14626         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
14627         Increase args array size by one to avoid buffer overflow.
14628
14629 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
14630
14631         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14632         split_part.
14633         * ipa-inline.c (edge_badness): Add wrapper penalty.
14634         (sum_callers): Move up.
14635         (inline_small_functions): Set single_caller.
14636         * ipa-inline.h (inline_summary): Add single_caller.
14637         * ipa-split.c (split_function): Set split_part.
14638         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
14639         * cgraph.h (cgraph_node): Add split_part.
14640
14641 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
14642
14643         PR target/58945
14644         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14645         Do not split operands 0 and operands 2 to halfmode.
14646         (atomic_compare_and_swap<mode>): Update for
14647         atomic_compare_and_swap<dwi>_doubleword changes.
14648
14649 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
14650
14651         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
14652         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
14653         no caching is done.
14654
14655 2015-03-31  Martin Liska  <mliska@suse.cz>
14656
14657         PR ipa/65557
14658         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
14659         has already filled up function summary.
14660         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14661
14662 2015-03-31  Richard Biener  <rguenther@suse.de>
14663
14664         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
14665         of types.
14666
14667 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14668
14669         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
14670         nested functions.
14671         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
14672         (s390_asm_output_function_label): Adapt to new signature of
14673         s390_function_num_hotpatch_hw
14674         Optimise the code generating assembler output.
14675         Add comments to assembler file.
14676
14677 2015-03-31  Richard Biener  <rguenther@suse.de>
14678
14679         PR middle-end/65626
14680         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
14681         of the noreturn call so it is last and cleanup_control_flow_bb
14682         can do the CFG part.
14683
14684 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
14685
14686         PR target/65531
14687         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
14688         same_comdat_group for external symbols.
14689         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
14690         infinite same_comdat_group traversal loop.
14691
14692 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
14693
14694         PR plugins/61176
14695         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
14696         automatically to $headers.
14697
14698 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
14699
14700         PR ipa/65610
14701         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
14702         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
14703         function.
14704         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
14705         Use it.
14706         * ipa-prop.c (param_type_may_change_p): Likewise.
14707         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
14708         (remove_unused_scope_block_p): Add in_ctor_dtor_block
14709         argument.  Before inlining, preserve
14710         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
14711         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
14712         recursive calls.
14713         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
14714
14715 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14716
14717         PR ipa/65076
14718         * ipa-inline.c (edge_badness): Base denominator on callee's
14719         grwoth squared.
14720
14721 2015-03-27  Martin Jambor  <mjambor@suse.cz>
14722
14723         PR ipa/65478
14724         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
14725         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
14726         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
14727         node_calling_single_call.
14728         * ipa-cp.c (count_callers): New function.
14729         (set_single_call_flag): Likewise.
14730         (initialize_node_lattices): Count callers and set single_flag_call if
14731         necessary.
14732         (incorporate_penalties): New function.
14733         (good_cloning_opportunity_p): Use it, dump new flags.
14734         (propagate_constants_topo): Set node_within_scc flag if appropriate.
14735         * doc/invoke.texi (ipa-cp-recursion-penalty,
14736         ipa-cp-single-call-pentalty): Document.
14737
14738 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14739
14740         PR ipa/65588
14741         * symtab.c (symtab_node::get_partitioning_class): Register vars
14742         are duplicated.
14743         * varpool.c (symbol_table::output_variables) Do not assemble unefined
14744         decls for non-symbols.
14745
14746 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14747
14748         PR target/65248
14749         * output.h (default_binds_local_p_2): New.
14750         * varasm.c (default_binds_local_p_2): Renamed to ...
14751         (default_binds_local_p_3): This.  Don't return true on protected
14752         data symbol if protected data may be external.
14753         (default_binds_local_p): Use default_binds_local_p_3.
14754         (default_binds_local_p_1): Likewise.
14755         (default_binds_local_p_2): New.
14756         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
14757         default_binds_local_p_2 if TARGET_MACHO is undefined.
14758
14759 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
14760
14761         PR target/65593
14762         * config/i386/i386.c (legitimize_pic_address): If base
14763         is SYMBOL_REF or LABEL_REF using %rip addressing, force
14764         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
14765
14766 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14767
14768         PR target/65531
14769         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
14770         comdat groups.
14771
14772 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14773
14774         PR ipa/65600
14775         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
14776         of optimized out indirect call.
14777         (redirect_to_unreachable): Always build symbol table node for
14778         BUILT_IN_UNREACHABLE
14779
14780 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14781
14782         PR target/65407
14783         * ira-costs.c (record_reg_classes): Process all constraint string
14784         containing 0-9.
14785
14786 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
14787
14788         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
14789         memory_operand.
14790
14791         PR target/65052
14792         * config/c6x/constraints.md (S3): New constraint.
14793         * config/c6x/c6x.md (real_jump): Use it.
14794
14795 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14796
14797         PR middle-end/65595
14798         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
14799         do redirection if the call is not optimized out.
14800
14801 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
14802
14803         PR target/65495
14804         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
14805         (fchkp-check-incomplete-type): Add LTO.
14806         (fchkp-zero-input-bounds-for-main): Likewise.
14807         (fchkp-first-field-has-own-bounds): Likewise.
14808         (fchkp-narrow-bounds): Likewise.
14809         (fchkp-narrow-to-innermost-array): Likewise.
14810         (fchkp-use-static-bounds): Likewise.
14811         (fchkp-use-static-const-bounds): Likewise.
14812         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
14813
14814 2015-03-27  Marek Polacek  <polacek@redhat.com>
14815
14816         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
14817
14818 2015-03-27  Marek Polacek  <polacek@redhat.com>
14819
14820         PR sanitizer/65583
14821         * ubsan.c (ubsan_create_edge): New function.
14822         (instrument_bool_enum_load): Call it.
14823         (instrument_nonnull_arg): Likewise.
14824         (instrument_nonnull_return): Likewise.
14825         (instrument_object_size): Likewise.
14826
14827 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14828
14829         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
14830         auto_vec.
14831
14832 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14833
14834         PR lto/65536
14835         * lto-streamer.h (class lto_location_cache): New.
14836         (struct data_in): Add location_cache.
14837         (lto_input_location): Update prototype.
14838         (stream_input_location_now): New.
14839         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
14840         pointer to location.
14841         (stream_input_location): Update.
14842         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
14843         (warn_odr): Apply location cache before warning.
14844         (lto_input_location): Update prototype.
14845         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
14846         Use stream_input_location_now.
14847         * lto-streamer-in.c (lto_location_cache::current_cache): New static
14848         variable.
14849         (lto_location_cache::cmp_loc): New function.
14850         (lto_location_cache::apply_location_cache): New function.
14851         (lto_location_cache::accept_location_cache): New function.
14852         (lto_location_cache::revert_location_cache): New function.
14853         (lto_location_cache::input_location): New function.
14854         (lto_input_location): Do location caching.
14855         (stream_input_location_now): New function.
14856         (input_eh_region, input_struct_function_base): Use
14857         stream_input_location_now.
14858         (lto_data_in_create): use new.
14859         (lto_data_in_delete): Use delete.
14860         * tree-streamer-in.c (unpack_ts_block_value_fields,
14861         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
14862         lto_input_ts_exp_tree_pointers): Update for cached location api.
14863
14864 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14865
14866         PR ipa/65076
14867         * passes.def: Add pass_nothrow.
14868         * ipa-pure-const.c: (pass_data_nothrow): New.
14869         (pass_nothrow): New.
14870         (pass_nothrow::execute): New.
14871         (make_pass_nothrow): New.
14872         * tree-pass.h (make_pass_nothrow): Declare.
14873
14874 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14875
14876         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
14877         edge to change by speculation resolution or redirection.
14878         (edge_set_predicate): Likewise.
14879         (inline_summary_t::duplicate): Likewise.
14880         (remap_edge_summaries): Likewise.
14881
14882 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14883
14884         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
14885         New macros.
14886         (can_inline_edge_p): Relax option matching for always inline functions.
14887
14888 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
14889
14890         PR target/65561
14891         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
14892         Check operand 4 and operand 0 for equality.
14893         (avx512f_vextract<shuffletype>32x4_1_maskm):
14894         Check operand 6 and operand 0 for equality.
14895         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
14896         for equality.
14897         (vec_extract_hi_<mode>_maskm): Ditto.
14898
14899 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14900
14901         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
14902         dead calls back to live.
14903         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
14904         cross check to ...
14905         (cgraph_node::verify_node): ... here; verify only callee edges,
14906         not caller.
14907         * cif-code.def (CILK_SPAWN): New code.
14908
14909 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14910
14911         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
14912         (edge_set_predicate): Use it to mark unreachable edges.
14913         (inline_summary_t::duplicate): Remove unnecesary code.
14914         (remap_edge_summaries): Likewise.
14915         (dump_inline_summary): Report contains_cilk_spawn.
14916         (compute_inline_parameters): Compute contains_cilk_spawn.
14917         (inline_read_section, inline_write_summary): Stream
14918         contains_cilk_spawn.
14919         * ipa-inline.c (can_inline_edge_p): Do not touch
14920         DECL_STRUCT_FUNCTION that may not be available;
14921         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
14922         remove check for callee_fun->can_throw_non_call_exceptions and
14923         replace it by optimization attribute check; check for flag_exceptions.
14924         * ipa-inline-transform.c (inline_call): Maintain
14925         DECL_FUNCTION_PERSONALITY
14926         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
14927
14928 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
14929
14930         PR tree-optimization/65551
14931         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
14932         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
14933
14934 2015-03-26  Richard Biener  <rguenther@suse.de>
14935
14936         PR middle-end/65555
14937         * tree-cfg.c (verify_gimple_call): Do not require a call to
14938         have no LHS if it wasn't recognized as control altering yet.
14939
14940 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
14941
14942         PR tree-optimization/64715
14943         * passes.def: Add another instance of pass_object_sizes before ccp1.
14944         * tree-object-size.c (pass_object_sizes::execute): In
14945         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
14946         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
14947         __bos result and the computed constant.  Remove redundant
14948         checks, obsoleted by gimple_call_builtin_p test.
14949
14950         * var-tracking.c (variable_tracking_main_1): Don't track
14951         variables for targetm.no_register_allocation targets.
14952
14953 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
14954
14955         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
14956         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
14957
14958 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14959
14960         PR target/65569
14961         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
14962         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
14963         0.0 is correctly setup.
14964         (extenddftf2_internal): Likewise.
14965
14966 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
14967
14968         PR tree-optimization/65177
14969         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
14970         (bb_in_bbs): New.
14971         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
14972         edges not adjacent on the path to the original code.
14973
14974 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
14975
14976         PR bootstrap/65537
14977         * doc/install.texi (Building a native compiler): Document new
14978         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
14979         configuration assumes that the host supports the linker plugin.
14980
14981 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
14982
14983         PR target/65508
14984         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
14985         chain for generated call.
14986
14987 2015-03-25  Richard Biener  <rguenther@suse.de>
14988
14989         * passes.c (pass_manager::execute_early_local_passes): Guard
14990         execution of pass_chkp_instrumentation_passes with
14991         flag_check_pointer_bounds.
14992         (pass_chkp_instrumentation_passes::gate): Likewise.
14993
14994 2015-03-25  Martin Liska  <mliska@suse.cz>
14995
14996         PR tree-optimization/65538
14997         * symbol-summary.h (function_summary::~function_summary):
14998         Relese memory for allocated summaries.
14999         (function_summary::release): New function.
15000
15001 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
15002
15003         PR lto/65515
15004         * lto-streamer-out.c (DFS::worklist): New struct.
15005         (DFS::worklist_vec): New data member.
15006         (DFS::next_dfs_num): Remove.
15007         (DFS::DFS): Rewritten using worklist instead of recursion,
15008         using most of code from DFS::DFS_write_tree.
15009         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15010         pass it to DFS_write_tree calls.
15011         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15012         quick initial checks push it into worklist_vec and return.
15013
15014 2015-03-25  Richard Biener  <rguenther@suse.de>
15015
15016         PR middle-end/65519
15017         * genmatch.c (expr::gen_transform): Re-write to avoid
15018         using gimple_build.
15019
15020 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
15021
15022         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15023
15024 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
15025
15026         * config/arm/arm.opt (print_tune_info): New option.
15027         * config/arm/arm.c (arm_print_tune_info): New function.
15028         (arm_file_start): Call arm_print_tune_info.
15029         * config/arm/arm-protos.h (struct tune_params): Add comment.
15030         * doc/invoke.texi (@item -mprint-tune-info): New item.
15031         (-mtune): mention it in ARM Option Summary.
15032
15033 2015-03-25  DJ Delorie  <dj@redhat.com>
15034
15035         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15036         correct clause.
15037
15038 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
15039             Martin Liska  <mliska@suse.cz>
15040
15041         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15042         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15043         (sem_item::add_type): New function.
15044         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15045         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15046         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15047         (sem_function::equals_wpa): Fix typo.
15048         * ipa-icf.h (sem_item::add_type): New function.
15049         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15050         order.
15051
15052 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
15053
15054         PR tree-optimization/65533
15055         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15056         with swapped operands, call vect_free_slp_tree on
15057         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15058         vector.
15059
15060 2015-03-24  Richard Biener  <rguenther@suse.de>
15061
15062         PR middle-end/65517
15063         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15064         for fixup if necessary.
15065
15066 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
15067
15068         * doc/extend.texi (Function Attributes): Add @cindex entries
15069         for all attributes and regularize their format.  Delete text
15070         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
15071         information about "eightbit_data", "tiny_data", and "model"
15072         variable attributes to the Variable Attributes section.  Fix
15073         some obvious typos and copy-editing issues.
15074         (Variable Attributes, Type Attributes): Likewise add/fix
15075         @cindex entries for all attributes.
15076
15077 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
15078
15079         PR target/65523
15080         * tree-chkp.c (chkp_build_returned_bound): Ignore
15081         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15082
15083 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
15084
15085         PR target/65505
15086         * config/sh/predicates.md (simple_mem_operand,
15087         displacement_mem_operand): Add test for reg.
15088         (short_displacement_mem_operand): Test for displacement_mem_operand
15089         before invoking sh_disp_addr_displacement.
15090         * config/sh/constraints.md (Sdd, Sra): Simplify.
15091         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15092         Remove redundant displacement_mem_operand tests.
15093
15094 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
15095
15096         PR target/65296
15097         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15098         the same -mmcu=MCU more than once.
15099
15100 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
15101
15102         PR bootstrap/65522
15103         * ipa-devirt.c: Remove duplicate demangle.h include.
15104
15105         PR target/65504
15106         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15107         on the pseudo.
15108         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15109         REG_POINTER on *destptr after adjusting it for prologue size.
15110
15111         PR ipa/65521
15112         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15113         ultimate_alias_target ()->order ints instead of
15114         ultimate_alias_target () pointers.
15115
15116 2015-03-23  Richard Biener  <rguenther@suse.de>
15117
15118         PR tree-optimization/65518
15119         * tree-vect-stmts.c (vectorizable_load): Reject single-element
15120         interleaving cases we generate absymal code for.
15121
15122 2015-03-23  Richard Biener  <rguenther@suse.de>
15123
15124         PR tree-optimization/65494
15125         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15126         matches here.
15127         (vect_analyze_slp_instance): But do that here, always and once.
15128
15129 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15130
15131         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15132         adding T or multiplying by T+1 and subracting T.
15133
15134 2015-03-22  Jeff Law  <law@redhat.com>
15135
15136         PR rtl-optimization/64317
15137         * Makefile.in (OBJS): Add gcse-common.c
15138         * gcse.c: Include gcse-common.h
15139         (struct modify_pair_s): Move structure definition to gcse-common.h
15140         (compute_transp): Move function to gcse-common.c.
15141         (canon_list_insert): Similarly.
15142         (record_last_mem_set_info): Break out some code and put it into
15143         gcse-common.c.  Call into the new common code.
15144         (compute_local_properties): Pass additional arguments to compute_transp.
15145         * postreload-gcse.c: Include gcse-common.h and df.h
15146         (modify_mem_list_set, blocks_with_calls): New variables.
15147         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15148         (get_bb_avail_insn): Pass in the expression index too.
15149         (alloc_mem): Allocate memory for the new bitmaps and lists.
15150         (free_mem): Free memory for the new bitmaps and lists.
15151         (insert_expr_in_table): Record a bitmap index for each entry we
15152         add to the table.
15153         (record_last_mem_set_info): Call into common code in gcse-common.c.
15154         (get_bb_avail_insn): If no available insn was found in the requested
15155         BB.  If BB has a single predecessor, see if the expression is
15156         transparent in BB and available in that single predecessor.
15157         (compute_expr_transp): New wrapper for compute_transp.
15158         (eliminate_partially_redundant_load): Pass expression's bitmap_index
15159         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
15160         (gcse_after_reload_main): If there are elements in the hash table,
15161         then compute transparency for all the elements in the hash table.
15162         * gcse-common.h: New file.
15163         * gcse-common.c: New file.
15164
15165 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
15166
15167         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15168         as an adjective.
15169         (System Headers): Likewise.
15170         (Ifdef): Likewise.
15171         (Traditional macros): Likewise.
15172         (Invocation): Likewise.
15173         (Option Index): Likewise.
15174         * doc/cppopts.texi (-M): Likewise.
15175         (-finput-charset): Likewise.
15176         (--help): Likewise.
15177         * doc.invoke.texi (AVR Options): Likewise.
15178         (V850 Options): Likewise.
15179
15180 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
15181
15182         PR ipa/65475
15183         * ipa-devirt.c: Include demangle.h
15184         (odr_type_d): Add field rtti_broken.
15185         (odr_subtypes_equivalent_p): Do not require name to match.
15186         (compare_virtual_tables): Fix typo; if type already has ODR violation,
15187         bypass the tests; be ready for function referneces in vtables that are
15188         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15189         (warn_odr): Give up for nameless types.
15190         (warn_types_mismatch): Report mismatch in mangled names;
15191         report mismatch in anonymous namespaces; look into component types to
15192         give useful error; report when mismatch is dragged in from other ODR
15193         type.
15194         (odr_types_equivalent_p): Match types for being polymorphic; avoid
15195         duplicated diagnostics.
15196         (add_type_duplicate): Reorder checks so more informative ones come
15197         first; fix typo; do not output "the extra base is defined here" when
15198         we did not warn.
15199         (BINFO_N_BASE_BINFOS): Relax sanity check.
15200
15201 2015-03-22  Martin Liska  <mliska@suse.cz>
15202             Jakub Jelinek  <jakub@redhat.com>
15203
15204         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15205         masks that can potentially include a builtin.
15206         (ix86_add_new_builtins): Introduce fast filter for isa values
15207         that cannot trigger builtin inclusion.
15208
15209 2015-03-22  Martin Liska  <mliska@suse.cz>
15210
15211         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15212         (sem_item::update_hash_by_local_refs): Likewise.
15213         (sem_variable::get_hash): Empty line is fixed.
15214         (sem_item_optimizer::execute): Include adding of hash references.
15215         (sem_item_optimizer::update_hash_by_addr_refs): New function.
15216         (sem_item_optimizer::build_hash_based_classes): Use local hash.
15217         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15218         (sem_item::update_hash_by_local_refs): Likewise.
15219
15220 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15221
15222         PR ipa/65502
15223         * ipa-comdats.c (enqueue_references): Walk through thunks.
15224         (ipa_comdats): Likewise.
15225         (set_comdat_group_1): New function.
15226
15227 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15228
15229         PR ipa/65475
15230         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15231         non-polymorphic
15232
15233 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
15234             Gerald Pfeifer  <gerald@pfeifer.com>
15235
15236         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15237
15238 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
15239             Sandra Loosemore  <sandra@codesourcery.com>
15240
15241         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15242         function parameter declaration.
15243         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15244         Update arguments to nios2_adjust_call_address().
15245         (sibcall_internal): Rename from *sibcall.
15246         (sibcall_value_internal): Rename from *sibcall_value.
15247         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15248         (nios2_large_got_address): Add target temp reg parameter.
15249         (nios2_got_address): Adjust call to nios2_large_got_address, add
15250         force_reg around it.
15251         (nios2_load_pic_address): Add target temp reg parameter, replace call
15252         to nios2_got_address with corresponding code.
15253         (nios2_legitimize_constant_address): Update call to
15254         nios2_load_pic_address.
15255         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15256         to use temp reg for PIC loading purposes.
15257         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15258         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15259         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15260
15261 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15262
15263         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15264         usage of "the @option{...}".
15265         (-Wopenmp-simd): Likewise.
15266         (-fsanitize-recover): Likewise.
15267         (-fsanitize-undefined-trap-on-error): Likewise.
15268         (-flto): Likewise.
15269         (tracer-dynamic-coverage-feedback): Likewise.
15270         (reorder-block-duplicate-feedback): Likewise.
15271         (loop-unroll-jam-size): Likewise.
15272         (-B): Likewise.
15273         (-I-): Likewise.
15274         (-mabs=legacy): Likewise.
15275         (-mupper-regs-df): Likewise.
15276         (-mupper-regs-sf): Likewise.
15277         (-mpointers-to-nested-functions): Likewise.
15278
15279 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15280
15281         * doc/extend.texi (Cilk Plus Builtins): Add markup.
15282
15283 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
15284
15285         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15286         additional index entries and cross-references.
15287         (-fchkp-check-incomplete-type): Likewise.
15288         (-fchkp-first-field-has-own-bounds): Likewise.
15289         (-fchkp-narrow-to-innermost-array): Likewise.
15290         (-fchkp-use-fast-string-functions): Likewise.
15291         (-fchkp-use-nochk-string-functions): Likewise.
15292         (-fchkp-use-static-const-bounds): Likewise.
15293         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15294         (-fchkp-instrument-marked-only): Likewise.
15295         (-fchkp-use-wrappers): Likewise.
15296         (-static-libmpx): Likewise.
15297         (-static-libmpxwrappers): Likewise.
15298         * doc/extend.texi (bnd_legacy): Likewise.
15299         (bnd_instrument): Likewise.
15300         (bnd_variable_size): Likewise.
15301         (Pointer Bounds Checker builtins): Likewise.
15302
15303 2015-03-21  Tom de Vries  <tom@codesourcery.com>
15304
15305         PR tree-optimization/65458
15306         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15307         * cgraph.h (cgraph_node): Add parallelized_function field.
15308         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15309         (input_overwrite_node): Read parallelized_function field.
15310         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15311         parallelized_function on cgraph_node for child_fn.
15312         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15313         Remove include of gt-tree-parloops.h.
15314         (parallelized_functions): Remove static variable.
15315         (parallelized_function_p): Rewrite using parallelized_function field of
15316         cgraph_node.
15317         (create_loop_fn): Remove adding to parallelized_functions.
15318         * Makefile.in (GTFILES): Remove tree-parloops.c
15319
15320 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
15321
15322         PR rtl-optimization/64366
15323         * lra.c (lra_update_insn_regno_info): Consider regs in
15324         CALL_INSN_FUNCTION_USAGE memory.
15325
15326 2015-03-20  Richard Biener  <rguenther@suse.de>
15327
15328         PR middle-end/64715
15329         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15330         for type comparison and gcc_checking_assert.
15331         (chrec_fold_plus_poly_poly): Likewise.
15332         (chrec_fold_multiply_poly_poly): Likewise.
15333         (chrec_convert_1): Likewise.
15334         * gimplify.c (gimplify_expr): Remove premature folding of
15335         &X + CST to &MEM[&X, CST].
15336
15337 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
15338
15339         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15340         already is final.
15341         (ipa_inline): Recompute inline_failed codes.
15342         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15343         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15344         CIF_FINAL_ERROR.
15345
15346 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
15347
15348         PR rtl-optimization/60851
15349         * recog.c (constrain_operands): Accept a pseudo register before reload
15350         for LRA enabled targets.
15351
15352 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15353
15354         PR target/65240
15355         * config/rs6000/predicates.md (easy_fp_constant): Remove special
15356         -ffast-math handling that kept non-0 constants live in the RTL
15357         until reload.  Remove logic testing the number of instructions it
15358         took to create a constant in a GPR that was never used, due to a
15359         test for soft-float earlier.
15360         (memory_fp_constant): Delete, no longer used.
15361
15362         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15363         alternatives for loading non-0 constants into GPRs for hard
15364         floating point that is no longer needed due to changes in
15365         easy_fp_constant.  Add support for loading 0.0 into GPRs.
15366         (mov<mode>_hardfloat32): Likewise.
15367         (mov<mode>_hardfloat64): Likewise.
15368         (mov<mode>_64bit_dm): Likewise.
15369         (movtd_64bit_nodm): Likewise.
15370         (pre-reload move FP constant define_split): Delete define_split,
15371         since it is no longer used.
15372         (extenddftf2_internal): Remove GHF constraints that are not valid
15373         for extenddftf2.
15374
15375 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
15376
15377         PR rtl-optimization/63491
15378         * lra-constraints.c (check_and_process_move): Use src instead of
15379         sreg.  Remove some dead code.
15380
15381 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
15382
15383         PR ipa/65380
15384         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15385         (sem_variable::merge): Likewise.
15386
15387 2015-03-19  Martin Liska  <mliska@suse.cz>
15388
15389         PR ipa/65465
15390         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15391         all fields of cgraph_thunk_info.
15392
15393 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15394
15395         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15396         clone instrumented thunks.
15397
15398 2015-03-19  Richard Biener  <rguenther@suse.de>
15399
15400         Revert
15401         2015-03-10  Richard Biener  <rguenther@suse.de>
15402
15403         PR middle-end/63155
15404         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15405         * tree-ssa-coalesce.c: Include timevar.h.
15406         (attempt_coalesce): Handle graph being NULL.
15407         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15408         Split out abnormal coalescing to ...
15409         (perform_abnormal_coalescing): ... this function.
15410         (coalesce_ssa_name): Perform abnormal coalescing without computing
15411         live/conflict.
15412         (verify_ssa_coalescing_worker): New function.
15413         (verify_ssa_coalescing): Likewise.
15414
15415 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15416             Jakub Jelinek  <jakub@redhat.com>
15417
15418         PR sanitizer/65400
15419         * tsan.c (instrument_gimple): Clear tail call flag on
15420         calls.
15421
15422 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15423
15424         PR sanitizer/65400
15425         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
15426         call in the return bb.
15427         (find_split_points): Add RETURN_BB argument, don't call
15428         find_return_bb.
15429         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
15430         if true append TSAN_FUNC_EXIT internal call after the call to
15431         the split off function.
15432         (execute_split_functions): Call find_return_bb here.
15433         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
15434         Adjust find_split_points and split_function calls.
15435
15436 2015-03-18  DJ Delorie  <dj@redhat.com>
15437
15438         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
15439         (iorqi3_virt): Likewise.
15440
15441 2015-03-18  Tom de Vries  <tom@codesourcery.com>
15442
15443         * tree-parloops.c (parallelize_loops): Make static.
15444         * tree-parloops.h (parallelize_loops): Remove extern declaration.
15445
15446 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
15447
15448         PR middle-end/64491
15449         Revert:
15450         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
15451
15452         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
15453         condition would be removed due to undefined behaviour.
15454
15455 2015-03-18  Martin Liska  <mliska@suse.cz>
15456
15457         PR ipa/65432
15458         * cgraph.c (cgraph_node::get_create): Remove unnecessary
15459         xstrdup_for_dump wrapper.
15460         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
15461         sem_item::name.
15462         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
15463         with xstrdup_for_dump.
15464         (sem_variable::equals): Likewise.
15465         (sem_item_optimizer::read_section): Use symtab_node::name instead of
15466         sem_item::name.
15467         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
15468         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
15469         symtab_node::asm_name with xstrdup_for_dump.
15470         (congruence_class::dump): Use symtab_node::name instead of
15471         sem_item::name.
15472         * ipa-icf.h (symtab_node::name): Remove.
15473         (symtab_node::asm_name): Likewise.
15474
15475 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
15476
15477         PR tree-optimization/65450
15478         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
15479         function.
15480         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
15481         it instead of duplicate_ssa_name_ptr_info.
15482
15483         PR target/65222
15484         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
15485
15486 2015-03-18  Richard Biener  <rguenther@suse.de>
15487
15488         * tree-data-ref.h (struct access_matrix): Remove.
15489         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
15490         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
15491         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
15492         (am_vector_index_for_loop): Likewise.
15493         (struct data_reference): Remove access_matrix member.
15494         (DR_ACCESS_MATRIX): Remove.
15495         (lambda_vector_new): Add comment.
15496         (lambda_matrix_new): Use XOBNEWVEC.
15497
15498 2015-03-18  Richard Biener  <rguenther@suse.de>
15499
15500         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
15501         (pass_ch::execute): Cleanup the CFG only if we did sth.
15502         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
15503
15504 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15505
15506         * expmed.c (synth_mult): Use std::swap instead of manually
15507         swapping algorithms.
15508
15509 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
15510
15511         PR target/65078
15512         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
15513
15514 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
15515
15516         PR target/65296
15517         * config/avr/avr.opt (-nodevicelib): New option.
15518         * doc/invoke.texi (AVR Options): Document it.
15519         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
15520         libgcc.a, libc.a, libm.a.
15521         * config/avr/specs.h: Same.
15522         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
15523         which don't (directly) depend on the device.  Print more help.
15524         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
15525         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
15526         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
15527         case of an error.
15528         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
15529         for specs file name.
15530         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
15531         * config/avr/avr-mcus.def: Adjust initializers and comments.
15532
15533 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
15534
15535         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
15536         DECL_ONE_ONLY to check if decl is one only.
15537         * ipa-split.c (consider_split): Limit splitt of one only functions.
15538
15539 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
15540
15541         PR tree-optimization/65427
15542         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
15543         functions.
15544         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
15545
15546 2015-03-16  Marek Polacek  <polacek@redhat.com>
15547
15548         * cgraph.h (add_new_static_var): Remove declaration.
15549         * varpool.c (add_new_static_var): Remove function.
15550
15551 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
15552
15553         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
15554         instead of vec<tree> * with vec_alloc and release for args.
15555         Adjust all users.
15556
15557         PR middle-end/65431
15558         * omp-low.c (delete_omp_context): Only splay_tree_delete
15559         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
15560         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
15561
15562 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15563
15564         PR sanitizer/64820
15565         * cfgexpand.c (align_base): New function.
15566         (alloc_stack_frame_space): Call it.
15567         (expand_stack_vars): Align prev_frame to be sure
15568         data->asan_vec elements aligned properly.
15569
15570 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
15571
15572         PR middle-end/65409
15573         * expr.c (store_field): Do not do a direct block copy if the source is
15574         a PARALLEL with BLKmode.
15575
15576 2015-03-16  Tom de Vries  <tom@codesourcery.com>
15577
15578         PR middle-end/65414
15579         Revert:
15580         2015-03-12  Tom de Vries  <tom@codesourcery.com>
15581
15582         PR rtl-optimization/64895
15583         * lra-lives.c (check_pseudos_live_through_calls): Use
15584         actual_call_used_reg_set instead of call_used_reg_set, if available.
15585
15586 2015-03-16  Alan Modra  <amodra@gmail.com>
15587
15588         PR target/63150
15589         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
15590         Modify Z->r bswapdi splitter to use dest in place of scratch.
15591         In r->Z and Z->r bswapdi splitter rename word_high, word_low
15592         to word1, word2 and rearrange logic to suit.
15593         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
15594         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
15595         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
15596         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
15597         early clobber.
15598
15599 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
15600
15601         PR tree-optimization/65369
15602         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
15603         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
15604         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
15605
15606         PR tree-optimization/65418
15607         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
15608         are casts in the first PLUS_EXPR operand, ensure tbias and
15609         *totallowp are in the inner type.
15610
15611         PR rtl-optimization/65401
15612         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
15613         argument.  If true, adjust_address_nv of x with big-endian
15614         correction for the mode widening to GET_MODE (y).
15615         (make_field_assignment): Don't do MEM mode widening here.
15616         Use MEM_P instead of GET_CODE == MEM.
15617
15618 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15619
15620         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
15621         the external decls.
15622
15623 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15624
15625         PR target/64600
15626         * config/arm/arm.c (arm_gen_constant, AND case): Use
15627         ARM_SIGN_EXTEND when constructing AND mask.
15628
15629 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15630
15631         * graph.c (print_graph_cfg): Make function names visible and append
15632         parenthesis to it.  Also make groups of basic blocks belonging to the
15633         same function visible.
15634
15635 2015-03-12  Richard Biener  <rguenther@suse.de>
15636
15637         PR middle-end/44563
15638         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
15639         to avoid quadratic behavior with inline expansion splitting blocks.
15640         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
15641         with the successor if the predecessor will be merged with it.
15642         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
15643         entry block with its successor.
15644
15645 2015-03-13  Richard Biener  <rguenther@suse.de>
15646
15647         PR middle-end/44563
15648         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
15649         (cleanup_tree_cfg_1): Do not call it.
15650         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
15651         (fixup_noreturn_call): Mark the stmt as control altering.
15652         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
15653         here.
15654         (pass_data_fixup_cfg): Produce a dump file.
15655         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
15656         (need_noreturn_fixup): New global.
15657         (pass_dominator::execute): Fixup queued noreturn calls.
15658         (optimize_stmt): Queue calls that became noreturn for fixup.
15659         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
15660         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
15661         (el_to_fixup): New global.
15662         (eliminate_dom_walker::before_dom_childre): Queue calls that
15663         became noreturn for fixup.
15664         (eliminate): Fixup queued noreturn calls.
15665         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
15666         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
15667         (substitute_and_fold_dom_walker::before_dom_children): Queue
15668         alls that became noreturn for fixup.
15669         (substitute_and_fold): Fixup queued noreturn calls.
15670
15671 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
15672
15673         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
15674         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
15675         are building; for methods check ODR type of class they belong to if
15676         they may lead to a polymorphic call.
15677         (sem_function::compare_polymorphic_p): Be bit smarter about testing
15678         when function may lead to a polymorphic call.
15679         (sem_function::compare_type_list): Remove.
15680         (sem_variable::equals): Update use of compatible_types_p.
15681         (sem_variable::parse_tree_refs): Remove.
15682         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
15683         cdtor.
15684         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
15685         matching here.
15686         (func_checker::compatible_polymorphic_types_p): Break out from ...
15687         (unc_checker::compatible_types_p): ... here.
15688         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
15689         Declare.
15690         (unc_checker::compatible_types_p): Update.
15691         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
15692         Remove.
15693
15694 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15695
15696         PR rtl-optimization/65235
15697         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
15698         When first element of vec_concat is const_int, calculate its size
15699         using second element.
15700
15701 2015-03-12  Richard Biener  <rguenther@suse.de>
15702
15703         PR middle-end/65270
15704         * fold-const.c (operand_equal_p): Fix ordering of resetting
15705         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
15706
15707 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15708
15709         * config/s390/s390.c (s390_reorg): Move code to output nops after label
15710         to s390_reorg ().
15711         (s390_asm_output_function_label): Likewise.
15712         * config/s390/s390.c (s390_asm_output_function_label):
15713         Fix function label alignment with -mhtopatch.
15714         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
15715         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
15716         ("nop_2_byte"): New define_insn.
15717         ("nop_4_byte"): Likewise.
15718         ("nop_6_byte"): Likewise.
15719         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
15720         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
15721
15722 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
15723
15724         PR target/65103
15725         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
15726         register.
15727
15728 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
15729
15730         PR target/65044
15731         * toplev.c (process_options): Restrict Pointer Bounds Checker
15732         usage with Address Sanitizer.
15733
15734 2015-03-12  Richard Biener  <rguenther@suse.de>
15735
15736         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
15737         to split on.
15738         * omp-low.c (expand_omp_taskreg): Split block before removing
15739         the stmt.
15740         (expand_omp_target): Likewise.
15741         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
15742         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
15743         stmt to split_block.
15744
15745 2015-03-12  Tom de Vries  <tom@codesourcery.com>
15746
15747         PR rtl-optimization/64895
15748         * lra-lives.c (check_pseudos_live_through_calls): Use
15749         actual_call_used_reg_set instead of call_used_reg_set, if available.
15750
15751 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
15752
15753         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
15754         (cgraph_node::remove): Likewise.
15755         (cgraph_node::get_untransformed_body): Likewise.
15756         * varpool.c (varpool_node::remove): Likewise.
15757         (varpool_node::get_constructor): Add sanity check.
15758
15759 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
15760
15761         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
15762         old GCC versions.
15763         (-fabi-compat-version): Likewise.
15764         (-ffriend-injection): Likewise.
15765         (-Wdeclaration-after-statement): Likewise.
15766         (-fomit-frame-pointer): Likewise.
15767         (-ftree-coalesce-inlined-vars): Likewise.
15768         (-fvisibility=): Likewise.
15769         * doc/extend.texi (Typeof): Likewise.
15770         (Zero Length): Likewise.
15771         (Escaped Newlines): Likewise.
15772         (Compound Literals): Likewise.
15773         (Function Attributes): Likewise.
15774         (Label Attributes): Likewise.
15775         (Type Attributes): Likewise.
15776         (Function Names): Likewise.
15777         (Other Builtins): Likewise.
15778         (Function Specific Option Pragmas): Likewise.
15779         (C++ Interface): Likewise.
15780
15781 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
15782
15783         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
15784
15785 2015-03-11  Marek Polacek  <polacek@redhat.com>
15786
15787         PR tree-optimization/65388
15788         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
15789
15790 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
15791
15792         PR target/65296
15793         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
15794         * configure: Regenerate.
15795         * config.in: Regenerate.
15796         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
15797         [-mn-flash]: Document it.
15798         [__AVR_ARCH__]: Document avrtiny.
15799
15800         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
15801         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
15802         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
15803
15804 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15805
15806         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
15807
15808 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15809
15810         PR target/65242
15811         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
15812         allow reloads of PLUS in floating point/VSX registers.
15813
15814 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
15815
15816         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
15817         crypto_sha256_fast.
15818         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
15819
15820 2015-03-11  Richard Biener  <rguenther@suse.de>
15821
15822         PR tree-optimization/65310
15823         * tree-sra.c (build_ref_for_offset): Also preserve larger
15824         alignment.
15825
15826 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
15827
15828         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
15829
15830 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
15831
15832         PR target/65368
15833         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
15834         new define_expand.
15835         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
15836
15837 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
15838
15839         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
15840         (sem_function::equals_wpa): ... here.
15841
15842 2015-03-10  Marek Polacek  <polacek@redhat.com>
15843             Jakub Jelinek  <jakub@redhat.com>
15844
15845         PR sanitizer/65367
15846         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
15847         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
15848         separately.
15849
15850 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
15851
15852         PR target/65286
15853         * config/rs6000/t-linux: For powerpc64* target set
15854         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
15855
15856 2015-03-10  Richard Biener  <rguenther@suse.de>
15857
15858         PR middle-end/44563
15859         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
15860         for redirect_all_calls.
15861
15862 2015-03-10  Marek Polacek  <polacek@redhat.com>
15863
15864         * gdbinit.in (pcfun): Define and document.
15865
15866 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
15867
15868         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
15869         of libgomp-plugin.h.
15870         (find_target_compiler): Support a case when the path to gcc is
15871         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
15872         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
15873         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
15874         libgomp-plugin.h.
15875         (main): Use GCC_INSTALL_NAME as target_driver_name.
15876         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
15877         define.
15878         (mkoffload.o): Remove obsolete include path and defines.
15879         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
15880
15881 2015-03-10  Richard Biener  <rguenther@suse.de>
15882
15883         PR middle-end/63155
15884         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15885         * tree-ssa-coalesce.c: Include timevar.h.
15886         (attempt_coalesce): Handle graph being NULL.
15887         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15888         Split out abnormal coalescing to ...
15889         (perform_abnormal_coalescing): ... this function.
15890         (coalesce_ssa_name): Perform abnormal coalescing without computing
15891         live/conflict.
15892         (verify_ssa_coalescing_worker): New function.
15893         (verify_ssa_coalescing): Likewise.
15894
15895 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
15896
15897         PR target/65296
15898         * config.gcc (extra_options) [avr]: Remove.
15899         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
15900         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
15901         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
15902
15903         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
15904         (-mmcu=): Add Var and MissingArgError properties.
15905         (-march=): Remove.
15906         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
15907         * config/avr/t-multilib: Regenerate.
15908         * config/avr/specs.h: New file.
15909         * config/avr/driver-avr.c: New file.
15910         * config/avr/genopt.sh: Remove file.
15911         * config/avr/avr-tables.opt: Remove file.
15912         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
15913         * config/avr/avr-c.c: Same.
15914         * avr-arch.h: Same.
15915         (avr_current_device): Remove proto.
15916         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
15917         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
15918         (EXTRA_SPEC_FUNCTIONS): Define.
15919         (avr_devicespecs_file): New specs function proto.
15920         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
15921         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
15922         (avr_current_device): Remove definition and usage.
15923         (avr_set_core_architecture): New static function.
15924         (avr_option_override): Use it.
15925         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
15926         (mcu_name): New static array.
15927         (comparator, avr_archs_str, avr_mcus_str): New static functions.
15928         (avr_inform_devices, avr_inform_core_architectures): New functions.
15929         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
15930         (avrlibc.h) [WITH_AVRLIBC]: Include.
15931         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
15932         (print_mcu): Rewrite from scratch.
15933         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
15934         Forward to avr-specific specs defined in device-specs file.
15935         * config/avr/t-avr (driver-avr.o): New rule.
15936         (avr-devices.o): Depend on avr-arch.h.
15937         (avr-mcus): No more depend on avr-tables.opt.
15938         (avr-tables.opt): Remove rule.
15939         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
15940
15941 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15942
15943         * c-family/c.opt (fchkp-use-wrappers): New.
15944         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
15945         (chkp_wrap_function): New.
15946         (chkp_build_instrumented_fndecl): Support wrapped
15947         functions.
15948         * doc/invoke.texi (-fcheck-pointer-bounds): New.
15949         (-fchkp-check-incomplete-type): New.
15950         (-fchkp-first-field-has-own-bounds): New.
15951         (-fchkp-narrow-bounds): New.
15952         (-fchkp-narrow-to-innermost-array): New.
15953         (-fchkp-optimize): New.
15954         (-fchkp-use-fast-string-functions): New.
15955         (-fchkp-use-nochk-string-functions): New.
15956         (-fchkp-use-static-bounds): New.
15957         (-fchkp-use-static-const-bounds): New.
15958         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
15959         (-fchkp-check-read): New.
15960         (-fchkp-check-write): New.
15961         (-fchkp-store-bounds): New.
15962         (-fchkp-instrument-calls): New.
15963         (-fchkp-instrument-marked-only): New.
15964         (-fchkp-use-wrappers): New.
15965         (-static-libmpx): New.
15966         (-static-libmpxwrappers): New.
15967
15968 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15969
15970         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
15971         (CHKP_SPEC): Add wrappers library.
15972         * c-family/c.opt (static-libmpxwrappers): New.
15973
15974 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15975
15976         * config/i386/linux-common.h (LIBMPX_LIBS): New.
15977         (LIBMPX_SPEC): New.
15978         (CHKP_SPEC): New.
15979         * gcc.c (CHKP_SPEC): New.
15980         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
15981         * c-family/c.opt (static-libmpx): New.
15982
15983 2015-03-10  Richard Biener  <rguenther@suse.de>
15984
15985         PR middle-end/44563
15986         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
15987         for compare_type.
15988         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
15989         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
15990         (cgraph_add_edge_to_call_site_hash): Likewise.
15991         (cgraph_node::get_edge): Likewise.
15992         (cgraph_edge::set_call_stmt): Likewise.
15993         (cgraph_edge::remove_caller): Likewise.
15994
15995 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
15996
15997         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
15998         (callee_saved_gpr_regs_size): ... this.
15999         (callee_saved_regs_first_regno): Rename to ...
16000         (callee_saved_first_gpr_regno): ... this.
16001         (callee_saved_regs_last_regno) Rename to ...
16002         (callee_saved_last_gpr_regno): ... this.
16003         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16004         variables.
16005         (nds32_initial_elimination_offset): Likewise.
16006         (nds32_expand_prologue): Likewise.
16007         (nds32_expand_epilogue): Likewise.
16008         (nds32_expand_prologue_v3push): Likewise.
16009         (nds32_expand_epilogue_v3pop): Likewise.
16010         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16011         Adjust renamed variables.
16012         (nds32_output_stack_pop): Likewise.
16013
16014 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16015
16016         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16017         code in comment.
16018
16019 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
16020
16021         PR rtl-optimization/65321
16022         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16023         than shift mode.
16024         * var-tracking.c (use_narrower_mode): Likewise.
16025
16026 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
16027
16028         PR tree-optimization/65355
16029         * varasm.c (notice_global_symbol): Do not produce RTL.
16030         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16031         anchor.
16032         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16033         check for section anchors.
16034
16035 2015-03-10  Alan Modra  <amodra@gmail.com>
16036
16037         PR target/65286
16038         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16039         to be single-arch by default.  Set cpu_is_64bit for powerpc64
16040         given --with-cpu=native.
16041         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16042         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16043         and powerpc64le.
16044         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16045         rs6000_isa_flags rather than TARGET_64BIT.
16046
16047 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
16048             Kaz Kojima  <kkojima@gcc.gnu.org>
16049
16050         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16051
16052 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
16053
16054         PR lto/65361
16055         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16056         on a TREE_BINFO, instead use BINFO_TYPE.
16057
16058 2015-03-09  Richard Biener  <rguenther@suse.de>
16059
16060         PR middle-end/65270
16061         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16062         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16063         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
16064         of that.  When comparing dereferences compare alignment.
16065         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16066
16067 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
16068
16069         * ipa-inline-analysis.c (check_callers): Check
16070         node->can_remove_if_no_direct_calls_and_refs_p.
16071         (growth_likely_positive): Reorganize to call
16072         can_remove_if_no_direct_calls_p later.
16073         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16074         will_be_removed_from_program_if_no_direct_calls_p): Add
16075         will_inline parameter.
16076         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16077         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16078         Handle inliner case correctly.
16079
16080 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16081
16082         PR tree-optimization/63743
16083         * cfgexpand.c (reorder_operands): Also reorder if only second operand
16084         had its definition forwarded by TER.
16085
16086 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
16087
16088         PR lto/65316
16089         * ipa-utils.h (types_odr_comparable): Add strict argument.
16090         * ipa-devirt.c: Fix whitespace;
16091         (odr_hasher): Remove.
16092         (odr_name_hasher, odr_vtable_hasher): New hashers.
16093         (can_be_name_hashed_p): New predicate.
16094         (hash_type_name): remove.
16095         (hash_odr_name): New.
16096         (odr_name_hasher::hash): new.
16097         (can_be_vtable_hashed_p): New.
16098         (hash_odr_vtable): New.
16099         (odr_vtable_hasher::hash): New.
16100         (types_same_for_odr): Add strict parameter.
16101         (types_odr_comparable): Likewise.
16102         (odr_name_hasher::equal): New.
16103         (odr_vtable_hasher::equal): New.
16104         (odr_name_hasher::remove): New.
16105         (odr_hash_type): Change to hash_table<odr_name_hasher>.
16106         (odr_vtable_hash_type): New.
16107         (odr_vtable_hash): New.
16108         (odr_subtypes_equivalent_p): Do strict comparsion.
16109         (add_type_duplicate): Merge type names; cleanup; avoid type
16110         duplicates.
16111         (register_odr_type): Initialize vtable hash.
16112         (build_type_inheritance_graph): Likewise
16113         (get_odr_type): Reorg to use two hashes.
16114         (dump_possible_polymorphic_call_targets): Move sanity check after debug
16115         output.
16116         (ipa_devirt): Dump type_inheritance_graph.
16117         (types_same_for_odr): Add strict mode.
16118
16119 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16120
16121         PR ipa/65334
16122         * cgraph.h (symtab_node): Add definition_alignment,
16123         can_increase_alignment_p and increase_alignment.
16124         * symtab.c (symtab_node::can_increase_alignment_p,
16125         increase_alignment_1, symtab_node::increase_alignment,
16126         symtab_node::definition_alignment): New.
16127         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16128         can_increase_alignment_p.
16129         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16130         * tree-vect-stmts.c (ensure_base_align): Likewise.
16131         * varasm.c (function_section_1): Use definition_alignment.
16132         (assemble_start_function): Likewise.
16133         (emit_local): likewise.
16134         (build_constant_desc): Likewsie.
16135         (output_constant_def_contents): Likewise.
16136         (place_block_symbol): Likewise.
16137         (output_object_block): Likewise.
16138
16139 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16140
16141         PR ipa/65316
16142         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16143         when outputting debug.
16144
16145 2015-03-07  Marek Polacek  <polacek@redhat.com>
16146             Martin Uecker  <uecker@eecs.berkeley.edu>
16147
16148         PR sanitizer/65280
16149         * doc/invoke.texi: Update description of -fsanitize=bounds.
16150
16151 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
16152
16153         * tree-ssa-phiopt.c (neg_replacement): Remove.
16154         (tree_ssa_phiopt_worker): Remove negate optimization.
16155
16156 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16157
16158         PR ipa/65302
16159         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16160
16161 2015-03-06  Richard Biener  <rguenther@suse.de>
16162
16163         PR middle-end/64928
16164         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16165         and liveout_obstack members.
16166         (calculate_live_on_exit): Remove.
16167         (calculate_live_ranges): Change declaration.
16168         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16169         (new_tree_live_info): Adjust.
16170         (calculate_live_ranges): Delete livein when not wanted.
16171         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16172         Deal with partly deleted live info.
16173         (loe_visit_block): Remove temporary bitmap by using
16174         bitmap_ior_and_compl_into.
16175         (live_worklist): Adjust accordingly.
16176         (calculate_live_on_exit): Make static.
16177         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16178         we do not need livein.
16179
16180 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
16181
16182         * real.c (real_from_string): Fix typo in assertion.
16183
16184 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
16185
16186         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16187         the patch.
16188
16189 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
16190
16191         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16192
16193 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
16194
16195         PR target/64342
16196         * lra-assigns.c (find_hard_regno_for): Rename to
16197         find_hard_regno_for_1.  Add a new parameter.
16198         (find_hard_regno_for): New function using find_hard_regno_for_1.
16199
16200 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16201
16202         PR rtl-optimization/65067
16203         * expmed.c (store_bit_field, extract_bit_field): Reworked the
16204         strict volatile bitfield handling.
16205
16206 2015-03-05  Martin Liska  <mliska@suse.cz>
16207
16208         PR ipa/65318
16209         * ipa-icf.c (sem_variable::equals): Compare variables types.
16210
16211 2015-03-05  Richard Henderson  <rth@redhat.com>
16212
16213         PR target/65121
16214         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16215         correctly check weak symbol binding.
16216
16217 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
16218
16219         PR middle-end/65315
16220         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16221         needed alignment.
16222
16223 2015-03-05  Martin Liska  <mliska@suse.cz>
16224
16225         * ipa-inline.c (inline_small_functions): Set default value to
16226         prevent warning during bootstrap.
16227         * tree.h: Add pragma guard that ignores false positives during
16228         bootstrap.
16229
16230 2015-03-05  Richard Biener  <rguenther@suse.de>
16231
16232         PR tree-optimization/65310
16233         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16234         Properly preserve alignment of the base of the access.
16235
16236 2015-03-05  Richard Biener  <rguenther@suse.de>
16237
16238         PR ipa/65270
16239         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16240         Compare dependence info.
16241
16242 2015-03-05  Richard Biener  <rguenther@suse.de>
16243
16244         PR middle-end/65233
16245         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16246         tree-into-ssa.h.
16247         (walk_ssa_copies): Revert last chage.  Instead do not walk
16248         SSA names registered for SSA update.
16249
16250 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16251
16252         PR ipa/65270
16253         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16254         vtable references for their containing type.
16255         (sem_function::equals_wpa): Compare TYPE_RESTRICT
16256         and type attributes.
16257
16258 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
16259
16260         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16261         before negating it.
16262         * stor-layout.c (finalize_record_size): Revert latest change.
16263
16264 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
16265
16266         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16267
16268 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16269
16270         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16271         for correct comdat handling.
16272         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16273         Likewise.
16274         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16275         (used_from_object_file_p_worker): Remove.
16276         (cgraph_node::only_called_directly_or_alised): Add
16277         used_from_object_file_p.
16278         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16279         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16280         can_remove_if_no_direct_calls_and_refs_p.
16281
16282 2015-03-04  Nick Clifton  <nickc@redhat.com>
16283
16284         * config/rl78/rl78.h (enum reg_class): Remove real registers from
16285         General register class.
16286         * config/rl78/rl78-real.md: Replace general register constraints
16287         with real+virtual register constraints.
16288
16289 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16290
16291         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16292         from checking for -mhtm option.
16293
16294 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
16295
16296         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16297         (struct ipa_sra_check_caller_data): Add has_thunk field.
16298         (ipa_sra_check_caller): Check for thunk.
16299         (ipa_sra_preliminary_function_checks): Give up on function with
16300         thunks.
16301         (ipa_early_sra): Use call_for_symbol_and_aliases.
16302
16303 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16304
16305         PR target/65249
16306         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16307         called for __stack_chk_guard symbol.
16308
16309 2015-03-03  DJ Delorie  <dj@redhat.com>
16310
16311         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16312         inc/dec.
16313         (*addhi3_real): Likewise.
16314         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16315         pattern to match incrementing memory.
16316         * config/rl78/predicates.md (rl78_1_2_operand): New.
16317         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16318         it's the same and only mem.
16319         (rl78_alloc_physical_registers_op2): If there's effectively only
16320         one MEM, transcode it into HL.
16321         (rl78_far_p): Reject addresses that aren't legitimate.
16322
16323 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16324
16325         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16326         negating it.
16327
16328         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16329
16330 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
16331
16332         Implement call0 ABI for xtensa
16333         * config/xtensa/constraints.md ("a" constraint): Include stack
16334         pointer in case of call0 ABI.
16335         ("q" constraint): Make empty in case of call0 ABI.
16336         ("D" constraint): Include stack pointer in case of call0 ABI.
16337         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16338         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16339         prototypes.
16340         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16341         variable.
16342         (xtensa_regno_to_class): Make it a local variable in the
16343         function xtensa_regno_to_class.
16344         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16345         macro, function prototype and implementation.
16346         (reg_nonleaf_alloc_order): Make it a local variable in the
16347         function order_regs_for_local_alloc.
16348         (xtensa_conditional_register_usage): New function.
16349         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16350         (xtensa_valid_move): Allow direct moves to stack pointer
16351         register in call0 ABI.
16352         (xtensa_setup_frame_addresses): Only spill register windows in
16353         windowed ABI.
16354         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16355         call0 ABI respectively.
16356         (xtensa_function_arg_1): Only mark a7 register for copying in
16357         windowed ABI.
16358         (xtensa_call_save_reg): New function.
16359         (compute_frame_size): Add space for callee saved register
16360         storage to the frame size in call0 ABI.
16361         (xtensa_expand_prologue): Generate code to set up stack frame
16362         and save callee-saved registers in call0 ABI.
16363         (xtensa_expand_epilogue): New function.
16364         (xtensa_set_return_address): New function.
16365         (xtensa_return_addr): Calculate return address in call0 ABI.
16366         (xtensa_builtin_saveregs): Only mark a7 register for copying and
16367         emit copying code in windowed ABI.
16368         (order_regs_for_local_alloc): Add preferred register allocation
16369         order for non-leaf function in call0 ABI.
16370         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16371         (xtensa_asm_trampoline_template): Add trampoline generation for
16372         call0 ABI.
16373         (xtensa_trampoline_init): Add trampoline initialization for
16374         call0 ABI.
16375         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16376         functions.
16377         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16378         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16379         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16380         ABI call-used registers.
16381         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16382         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16383         call0 ABI.
16384         (REG_CLASS_CONTENTS): Include all registers into the preferred
16385         reload registers set, adjust the set in the
16386         xtensa_conditional_register_usage.
16387         (xtensa_regno_to_class): Drop variable declaration.
16388         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16389         function.
16390         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16391         respectively.
16392         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16393         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16394         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16395         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16396         location in call0 ABI.
16397         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16398         stack adjustment size when handling exception.
16399         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16400         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16401         definitions.
16402         ("return" pattern): Generate ret.n/ret in call0 ABI.
16403         ("epilogue" pattern): Expand epilogue.
16404         ("nonlocal_goto" pattern): Use default in call0 ABI.
16405         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16406         emit eh_set_a0_* depending on ABI.
16407         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16408         ("eh_set_a0_call0", "blockage"): New patterns.
16409
16410 2015-03-03  Martin Liska  <mliska@suse.cz>
16411
16412         PR ipa/65287
16413         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16414
16415 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16416
16417         PR 65138/target
16418         * config/rs6000/rs6000-tables.opt: Regenerate table.
16419
16420 2015-03-03  Renlin Li  <renlin.li@arm.com>
16421
16422         * doc/md.texi (@item ^): Change ? into ^.
16423
16424 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
16425
16426         * doc/tm.texi: Regenerated.
16427
16428 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
16429
16430         * builtins.c (expand_builtin_return_addr): Add
16431         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
16432         surrounding #ifdef.
16433         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
16434         definition to 1.
16435         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
16436         Likewise.
16437         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
16438         undefined.
16439         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
16440         paragraph.
16441
16442 2015-03-03  Martin Jambor  <mjambor@suse.cz>
16443             Eric Botcazou  <ebotcazou@adacore.com>
16444
16445         * tree-sra.c (ipa_sra_check_caller_data): New type.
16446         (has_caller_p): Removed.
16447         (ipa_sra_check_caller): New function.
16448         (ipa_sra_preliminary_function_checks): Use it.
16449
16450 2015-03-03  Martin Liska  <mliska@suse.cz>
16451
16452         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
16453         instead of if branch.
16454
16455 2015-03-03  Martin Liska  <mliska@suse.cz>
16456
16457         PR ipa/65282
16458         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
16459
16460 2015-03-23  Jeff Law  <law@redhat.com>
16461
16462         PR tree-optimization/65241
16463         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
16464         hash table if INSERT is true.
16465
16466 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
16467
16468         PR target/65296
16469         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
16470
16471 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
16472
16473         PR target/64331
16474         * config/avr/avr.c (context.h, tree-pass.h): Include them.
16475         (avr_pass_data_recompute_notes): New static variable.
16476         (avr_pass_recompute_notes): New class.
16477         (avr_register_passes): New static function.
16478         (avr_option_override): Call it.
16479
16480 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
16481
16482         Fix various problems with specs file generation.
16483
16484         PR target/65296
16485         * config.gcc (extra_gcc_objs) [avr]: Remove.
16486         * config/avr/driver-avr.c: Remove file.
16487         * config/avr/t-avr (driver-avr.o): Remove rule.
16488         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
16489         INCLUDES to build.  Depend on TM_H.
16490         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
16491         build warnings.  Fix non-matching types and non-existing %-codes.
16492         (tm.h): Include.
16493         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
16494         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
16495         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
16496         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
16497         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
16498         (LIBGCC_SPEC): Remove definitions.
16499
16500 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16501
16502         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
16503         to create a register in testing mode.
16504
16505 2015-03-03  Martin Liska  <mliska@suse.cz>
16506             Jan Hubicka  <hubicka@ucw.cz>
16507
16508         PR ipa/65263
16509         * cgraph.c (cgraph_node::has_thunk_p): New function.
16510         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
16511         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
16512         (sem_function::merge): Assert is changed.
16513
16514 2015-03-03  Martin Liska  <mliska@suse.cz>
16515             Martin Jambor  <mjambor@suse.cz>
16516
16517         PR ipa/65087
16518         * ipa-icf.c (sem_item_optimizer::execute): Change function
16519         return value to boolean.
16520         (sem_item_optimizer::merge_classes): Likewise.
16521         (ipa_icf_driver): Return TODO_remove_functions in case there's
16522         a merge operation processed.
16523         * ipa-icf.h: Change function return value to boolean.
16524
16525 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16526
16527         PR 65138/target
16528         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
16529         processor type for 64-bit little endian PowerPC.
16530
16531         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16532         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
16533         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
16534         printing built-in mask so it does not pass NULL pointers.
16535
16536         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
16537         -mcpu=powerpc64le.
16538
16539 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
16540
16541         PR target/58158
16542         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
16543         !ISA_HAS_FP_CONDMOVE.
16544
16545 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
16546
16547         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
16548         reload_completed.
16549
16550 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
16551
16552         * doc/invoke.texi (Options for Code Generation Conventions):
16553         Fix URL of DSO paper.
16554
16555 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
16556
16557         PR ipa/65130
16558         * ipa-inline.c (check_callers): Looks for recursion.
16559         (inline_to_all_callers): Give up on uninlinable or recursive edges.
16560         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
16561         summary of inline clones.
16562         (do_estimate_growth_1): Fix recursion check.
16563
16564 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
16565
16566         PR ipa/64988
16567         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
16568         comdat groups.
16569
16570 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
16571             Aldy Hernandez  <aldyh@redhat.com>
16572
16573         PR lto/65276
16574         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
16575         when checking TYPE_BINFO.
16576
16577 2015-03-02  Richard Biener  <rguenther@suse.de>
16578
16579         PR ipa/65270
16580         * ipa-icf-gimple.c: Include builtins.h.
16581         (func_checker::compare_memory_operand): Compare base alignment.
16582
16583 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16584
16585         PR target/65184
16586         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
16587         are never passed by reference.
16588
16589 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16590
16591         PR target/65183
16592         * tree-chkp.c (chkp_check_lower): Don't check against
16593         zero bounds for already instrumented functions.
16594         (chkp_check_upper): Likewise.
16595         (chkp_fini): Clean pass local data to avoid wrong reusage.
16596
16597 2015-02-28  Martin Liska  <mliska@suse.cz>
16598             Jan Hubicka  <hubicka@ucw.cz>
16599
16600         * ipa-icf.c (sem_variable::equals): Improve debug output;
16601         get variable constructor.
16602         (sem_variable::parse): Do not filter out too early; give up on
16603         volatile and register vars.
16604         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
16605         variables.
16606         * ipa-icf.h (sem_variable::init): Do not set ctor.
16607         (sem_variable::ctor): Remove.
16608
16609 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
16610
16611         PR middle-end/65233
16612         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
16613
16614 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16615
16616         * ipa-icf.c: Include stor-layout.h
16617         (sem_function::compare_cgraph_references): Rename to ...
16618         (sem_item::compare_cgraph_references): ... this one.
16619         (sem_variable::equals_wpa): New function
16620         (sem_variable::equals): Do not check stuff already verified by
16621         equals_wpa.
16622         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
16623         * ipa-icf.h (sem_item): Add compare_cgraph_references.
16624         (sem_function): Remove compare_cgraph_references.
16625         (sem_variable): Turns equals_wpa into non-inline.
16626
16627 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16628
16629         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
16630         (sem_item::add_expr): New function.
16631         (sem_function::hash_stmt): Handle operands of most statements.
16632         (sem_variable::get_hash): Hash the actual constructor.
16633         * ipa-icf.h (sem_item): Add add_expr.
16634         (sem_function): Update prototype of hash_stmt
16635
16636 2015-02-28  Martin Liska  <mliska@suse.cz>
16637             Jan Hubicka  <hubicka@ucw.cz>
16638
16639         PR ipa/65245
16640         * ipa-icf-gimple.c (func_checker::compare_function_decl):
16641         Remove.
16642         (func_checker::compare_variable_decl): Skip symtab vars.
16643         (func_checker::compare_cst_or_decl): Update.
16644         * ipa-icf.c (sem_function::parse): Do not consider aliases.
16645         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
16646         use correct symtab predicates.
16647         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
16648         (sem_variable::parse):  Update comment.
16649         (sem_item_optimizer::build_graph): Consider ultimate aliases
16650         for references.
16651
16652 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16653
16654         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
16655         of OBJ_TYPE_REF.
16656
16657 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16658
16659         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
16660         (sem_variable::merge) Likewise.
16661
16662 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16663
16664         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
16665         target; also match flag_ipa_devirt.
16666
16667 2015-03-01  Martin Liska  <mliska@suse.cz>
16668             Jan Hubicka  <hubicka@ucw.cz>
16669
16670         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
16671         Validate variable alignment.
16672         * ipa-icf.c (sem_function::equals_private): Be more precise
16673         about non-common function attributes.
16674         (sem_variable::equals): Likewise.
16675
16676 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16677
16678         PR ipa/65237
16679         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
16680         across COMDAT group boundary.
16681
16682 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16683
16684         PR ipa/65232
16685         * ipa-icf.c (clear_decl_rtl): New function.
16686         (sem_function::merge): Clear RTL before forming alias.
16687         (sem_variable::merge): Clear RTL before forming alias.
16688
16689 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16690
16691         PR ipa/65236
16692         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
16693
16694 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
16695
16696         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
16697         to neon_to_gp<q>.
16698
16699 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16700
16701         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
16702         a typo in the description.
16703
16704 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16705
16706         PR target/64317
16707         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
16708         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
16709         * lra-constraints.c: Include "params.h".
16710         (EBB_PROBABILITY_CUTOFF): Use
16711         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
16712         (lra_inheritance): Use '<' instead of '<=' for
16713         EBB_PROBABILITY_CUTOFF.
16714         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
16715         Document change.
16716
16717 2015-02-27  Martin Liska  <mliska@suse.cz>
16718
16719         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
16720         vector length condition.
16721
16722 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
16723
16724         * doc/extend.texi (x86 transactional memory intrinsics):
16725         Reorganize discussion of _xbegin.  Clarify that the return
16726         value is a bit mask.  Expand example and move to end of section.
16727
16728 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
16729             Aldy Hernandez  <aldyh@redhat.com>
16730
16731         PR rtl-optimization/65220
16732         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
16733
16734 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16735
16736         PR target/65032
16737         * lra-remat.c (update_scratch_ops): New.
16738         (do_remat): Call it.
16739         * lra.c (lra_register_new_scratch_op): New. Take code from ...
16740         (remove_scratches): ... here.
16741         * lra-int.h (lra_register_new_scratch_op): New prototype.
16742
16743 2015-02-27  Marek Polacek  <polacek@redhat.com>
16744
16745         PR c/65040
16746         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
16747         -Wformat-signedness anymore.
16748
16749 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16750
16751         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
16752         function.
16753         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
16754
16755 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16756
16757         * config/s390/s390.c (enum s390_builtin):
16758         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
16759         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
16760         (s390_init_builtins): Generate new builtin functions.
16761         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
16762         (s390_sfpc, s390_efpc): New pattern definitions.
16763
16764 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16765
16766         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
16767         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
16768         (s390_builtin_decls): New array.
16769         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
16770         (s390_builtin_decl): New function.
16771         (TARGET_BUILTIN_DECL): Define macro.
16772
16773 2015-02-27  Richard Biener  <rguenther@suse.de>
16774
16775         PR middle-end/63175
16776         * builtins.c (get_object_alignment_2): Make sure to re-apply
16777         the ANDed mask after recursing to its operand gets us a new
16778         misalignment bit position.
16779
16780 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
16781             Martin Liska  <mliska@suse.cz>
16782
16783         PR bootstrap/65150
16784         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
16785         Use address_matters_p.
16786         (redirect_all_callers, set_addressable): New functions.
16787         (sem_function::merge): Reorganize and fix merging issues.
16788         (sem_variable::merge): Likewise.
16789         (sem_variable::compare_sections): Remove.
16790         * common.opt (fmerge-all-constants, fmerge-constants): Remove
16791         Optimization flag.
16792         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
16793         redirect them.
16794         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
16795         decl is used.
16796         (address_matters_1): New function.
16797         (symtab_node::address_matters_p): New function.
16798         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
16799         check for merged flag.
16800         * cgraph.h (address_matters_p): Declare.
16801         (symtab_node::address_taken_from_non_vtable_p): Remove.
16802         (symtab_node::address_can_be_compared_p): New method.
16803         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
16804         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
16805         Remove.
16806         (comdat_can_be_unshared_p_1) Use address_matters_p.
16807         (update_vtable_references): Fix formating.
16808         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
16809         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
16810         * cgraphclones.c: Preserve merged and icf_merged flags.
16811
16812 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
16813
16814         * doc/extend.texi (Function Attributes): Fix spelling and typos.
16815         (Label Attributes): Likewise.
16816         (Cilk Plus Builtins): Likewise.
16817         (ARC SIMD Built-in Functions): Likewise.
16818         (ARM C Language Extensions (ACLE)): Likewise.
16819         (PowerPC Built-in Functions): Likewise.
16820         (PowerPC Hardware Transactional Memory Built-in Functions):
16821         Likewise.
16822
16823 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
16824
16825         PR tree-optimization/65216
16826         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
16827         new stmt and new SSA_NAME for lhs whenever the arguments have
16828         changed and weren't just swapped.  Fix comment typo.
16829
16830         PR tree-optimization/65215
16831         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
16832         for PDP endian targets.
16833         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
16834         Fix up formatting issues.
16835         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
16836         size is smaller than the original, adjust MEM_REF offset by the
16837         difference of sizes.  Use is_gimple_mem_ref_addr instead of
16838         is_gimple_min_invariant test to avoid adding address temporaries.
16839
16840 2015-02-26  Martin Liska  <mliska@suse.cz>
16841             Jan Hubicka  <hubicka@ucw.cz>
16842
16843         PR ipa/64693
16844         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
16845         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
16846         (sem_item_optimizer::process_cong_reduction): Include division by
16847         sensitive references.
16848         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
16849         * ipa-ref.c (ipa_ref::address_matters_p): New function.
16850         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
16851
16852 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
16853
16854         PR target/65192
16855         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
16856         Remove.
16857         * config/avr/avr.c: Same.
16858         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
16859         Refuse any constant address not in 0..0xbf.
16860         * config/avr/avr.md (*mov<mode>, *movsf): Remove
16861         tiny_valid_direct_memory_access_range from insn conditions.
16862         (mov<mode>): Don't special-case expansion of avrtiny addresses.
16863
16864 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
16865
16866         PR target/61142
16867         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
16868         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
16869         * config/sh/predicates.md (const_logical_operand): New predicate.
16870         * config/sh/sh.md: Add new peephole2 patterns.
16871
16872 2015-02-26  Marek Polacek  <polacek@redhat.com>
16873
16874         PR ipa/65008
16875         * ipa-inline.c (early_inliner): Recompute inline parameters.
16876
16877 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16878
16879         PR target/65171
16880         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
16881         instructions with TImode operands are included in the analysis.
16882
16883 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
16884
16885         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
16886         of an EDGE_FSM_THREAD.
16887
16888 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16889
16890         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
16891
16892 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
16893
16894         PR debug/46102
16895         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
16896
16897 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
16898
16899         PR tree-optimization/65048
16900         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
16901         (thread_through_all_blocks): Call valid_jump_thread_path.
16902         Remove invalid FSM jump-thread paths.
16903
16904 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
16905
16906         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
16907         (ipa_write_optimization_summaries): Likewise.
16908         * tree-streamer.h: Include data-streamer.h.
16909         (streamer_mode_table): Declare extern variable.
16910         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
16911         * lto-streamer-out.c (lto_output_init_mode_table,
16912         lto_write_mode_table): New functions.
16913         (produce_asm_for_decls): Call lto_write_mode_table when streaming
16914         offloading LTO.
16915         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
16916         (lto_create_simple_input_block): Add mode_table argument to the
16917         lto_input_block constructors.
16918         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
16919         Likewise.
16920         * data-streamer-in.c (string_for_index): Likewise.
16921         * ipa-inline-analysis.c (inline_read_section): Likewise.
16922         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
16923         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16924         * lto-streamer-in.c (lto_read_body_or_constructor,
16925         lto_input_toplevel_asms): Likewise.
16926         (lto_input_mode_table): New function.
16927         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
16928         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
16929         Use bp_pack_machine_mode.
16930         * real.h (struct real_format): Add name field.
16931         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
16932         (class lto_input_block): Add mode_table member.
16933         (lto_input_block::lto_input_block): Add mode_table_ argument,
16934         initialize mode_table.
16935         (struct lto_file_decl_data): Add mode_table field.
16936         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
16937         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
16938         unpack_ts_decl_common_value_fields,
16939         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
16940         * tree-streamer.c (streamer_mode_table): New variable.
16941         * real.c (ieee_single_format, mips_single_format,
16942         motorola_single_format, spu_single_format, ieee_double_format,
16943         mips_double_format, motorola_double_format,
16944         ieee_extended_motorola_format, ieee_extended_intel_96_format,
16945         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
16946         ibm_extended_format, mips_extended_format, ieee_quad_format,
16947         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
16948         decimal_single_format, decimal_double_format, decimal_quad_format,
16949         ieee_half_format, arm_half_format, real_internal_format): Add name
16950         field.
16951         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
16952
16953 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
16954
16955         PR target/65161
16956         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
16957         reordering for selective scheduling.
16958
16959 2015-02-26  Terry Guo  <terry.guo@arm.com>
16960
16961         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
16962         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
16963         (arm_arch_no_volatile_ce): Declare new global variable.
16964         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
16965         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
16966         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
16967         (TARGET_NO_VOLATILE_CE): New macro.
16968         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
16969         volatile memory access in IT block
16970
16971 2015-02-25  Kai Tietz  <ktietz@redhat.com>
16972
16973         PR tree-optimization/61917
16974         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
16975         that reduc_def_stmt is null.
16976
16977 2015-02-25  Martin Liska  <mliska@suse.cz>
16978
16979         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
16980         hard register variables.
16981
16982 2015-02-25  Kai Tietz  <ktietz@redhat.com>
16983
16984         PR target/64212
16985         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
16986         (symtab::noninterposable_alias): Likewise.
16987
16988 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
16989
16990         PR target/65167
16991         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
16992         bounds registers.
16993         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
16994
16995 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
16996
16997         PR target/64997
16998         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
16999         as split condition; force split via '#' in output pattern.
17000
17001 2015-02-25  Richard Biener  <rguenther@suse.de>
17002             Kai Tietz  <ktietz@redhat.com>
17003
17004         PR tree-optimization/61917
17005         * tree-vect-loop.c (vectorizable_reduction): Allow
17006         vect_internal_def without reduction to exit graceful.
17007
17008 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
17009
17010         PR target/65196
17011         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17012         only with NONDEBUG_INSN_P.
17013
17014 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
17015
17016         Use variadic macros with avr-log.c.
17017
17018         * config/avr/avr-protos.h (avr_vdump): New prototype.
17019         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17020         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17021         * config/avr/avr-log.c: Adjust comments.
17022         (avr_vdump): New function.
17023         (avr_vadump): Pass caller as 2nd argument instead of format string.
17024         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17025         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17026
17027 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
17028
17029         PR lto/64374
17030         * target.def (target_option_stream_in): New target hook.
17031         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17032         targetm.target_option.post_stream_in if non-NULL.
17033         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17034         * doc/tm.texi: Updated.
17035         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17036         function.
17037         (TARGET_OPTION_POST_STREAM_IN): Redefine.
17038
17039 2015-02-24  Jeff Law  <law@redhat.com>
17040
17041         PR target/65117
17042         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17043         of operand 0 and operand 2.
17044         (zero_cost_loop_end, loop_end): Similarly.
17045
17046 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
17047
17048         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17049         CXX_MEM_STAT_INFO.
17050
17051 2015-02-24  DJ Delorie  <dj@redhat.com>
17052
17053         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17054         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17055         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17056         instead of hardcoding SImode.
17057
17058 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
17059
17060         * omp-low.c (create_omp_child_function): Tag entrypoint
17061         functions with a special attribute.
17062
17063 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17064
17065         PR target/65058
17066         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17067
17068 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
17069
17070         PR rtl-optimization/65123
17071         * lra-remat.c (operand_to_remat): Check hard regs in insn
17072         definition too.
17073
17074 2015-02-24  Nick Clifton  <nickc@redhat.com>
17075
17076         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17077         to the assembler.
17078
17079 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
17080
17081         PR libgomp/64625
17082         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17083         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17084         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17085         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17086         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17087         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17088         (BUILT_IN_GOACC_PARALLEL): Specify as
17089         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17090         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17091         * builtin-types.def
17092         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17093         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17094         Remove function types.
17095         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17096         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17097         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17098         New function types.
17099
17100 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
17101
17102         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17103
17104 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
17105
17106         PR tree-optimization/65170
17107         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17108         if val[1] < 0, clear also val[2] and return 3.
17109
17110 2015-02-24  Alan Modra  <amodra@gmail.com>
17111
17112         PR target/65172
17113         * config/rs6000/rs6000.c (get_memref_parts): Only return true
17114         when *base is a reg.  Handle nested plus addresses.  Simplify
17115         pre_modify test.
17116
17117 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
17118
17119         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17120         use natural alignment when optimizing for size.
17121
17122 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17123
17124         PR target/65153
17125         * config/sh/sh.md (movsicc_true+3): Remove peephole.
17126         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17127         * config/sh/sh.c (replace_n_hard_rtx): Remove.
17128
17129 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
17130
17131         PR fortran/63427
17132         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17133         too big for a wide_int.  Implement missing wrapping operation.
17134
17135 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
17136
17137         PR target/65163
17138         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17139         instead of const_int 4294901760.
17140
17141 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
17142
17143         * config/avr/t-avr: Fix typo in comment.
17144
17145 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
17146
17147         * doc/rtl.texi (fma): Clarify documentation.
17148
17149 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
17150
17151         PR debug/58123
17152         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17153         over input_location.
17154
17155 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17156
17157         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17158         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17159         restrict alignments to absolute_biggest_alignment.
17160         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17161         Define.
17162         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17163         * doc/tm.texi: Regenerate.
17164         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17165
17166 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
17167
17168         PR target/64172
17169         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17170
17171 2015-02-20  Richard Biener  <rguenther@suse.de>
17172
17173         PR tree-optimization/65136
17174         * tree-ssa-propagate.c: Include cfgloop.h.
17175         (replace_phi_args_in): Avoid replacing loop latch edge PHI
17176         arguments with constants.
17177
17178 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
17179             Martin Liska  <mliska@suse.cz>
17180
17181         PR target/63892
17182         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17183         don't try to create_thunk if stdarg_p.  If
17184         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17185         redirect_callers if possible.
17186         (sem_item_optimizer::execute): Call unregister_hooks here...
17187         (ipa_icf_driver): ... instead of here.
17188
17189 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17190
17191         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17192         Mark operand 0 as earlyclobber in 2nd alternative.
17193         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17194         Write negated shift amount into QI lowpart operand 0 and use it
17195         in the shift step.
17196         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17197
17198 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17199
17200         * cgraph.h (clone_function_name_1): Declare.
17201         * cgraphclones.c (clone_function_name_1): New function.
17202         (clone_function_name): Use it.
17203         * lto-partition.c: Include "stringpool.h".
17204         (must_not_rename, maybe_rewrite_identifier)
17205         (validize_symbol_for_target): New static functions.
17206         (privatize_symbol_name): Use must_not_rename.
17207         (promote_symbol): Call validize_symbol_for_target.
17208         (lto_promote_cross_file_statics): Likewise.
17209         (lto_promote_statics_nonwpa): Likewise.
17210
17211 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
17212
17213         PR target/64452
17214         * config/avr/avr.md (pushhi_insn): New insn.
17215         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17216
17217 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
17218             Jakub Jelinek  <jakub@redhat.com>
17219
17220         * tree-streamer.c (preload_common_nodes): Don't preload
17221         TI_VA_LIST* for offloading.
17222         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17223         in_lto_p.
17224
17225 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
17226
17227         * config/pa/pa.c (pa_emit_move_sequence): Always force
17228         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
17229         note on insn.
17230
17231         * config/pa/pa.c (pa_reloc_rw_mask): New function.
17232         (TARGET_ASM_RELOC_RW_MASK): Define.
17233         (pa_cannot_force_const_mem): Revert previous change.
17234
17235 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
17236             Jan Hubicka  <hubicka@ucw.cz>
17237
17238         PR ipa/65028
17239         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17240         across jump functions.
17241
17242 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
17243
17244         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17245
17246 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
17247
17248         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17249
17250 2015-02-19  Richard Henderson  <rth@redhat.com>
17251
17252         PR middle-end/65074
17253         * varasm.c (default_binds_local_p_2): Don't test node->definition;
17254         test DECL_EXTERNAL independent of symtab_node.
17255
17256 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
17257
17258         PR lto/65012
17259         * varpool.c (varpool_node::get_constructor): Return early
17260         if this->lto_file_data is NULL.
17261
17262 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17263
17264         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17265         (rank_for_schedule_debug): Update.
17266         (ready_sort): Make static.  Move sorting logic to ...
17267         (ready_sort_debug, ready_sort_real): New static functions.
17268         (schedule_block): Sort both debug insns and real insns in preparation
17269         for ready list trimming.  Improve debug output.
17270         * sched-int.h (ready_sort): Remove global declaration.
17271
17272 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
17273
17274         * ipa-icf.c (sem_function::equals_private): Adjust.
17275         (sem_function::bb_dict_test): Take a vec<int> * instead of
17276         auto_vec<int>.
17277         * ipa-icf.h (bb_dict_test): Likewise.
17278
17279 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17280
17281         PR gcov-profile/64634
17282         * tree-eh.c (frob_into_branch_around): Fix up typos
17283         in function comment.
17284         (lower_catch): Put eh_seq resulting from EH lowering of
17285         the cleanup sequence after the cleanup rather than before it.
17286
17287 2015-02-18  Tom de Vries  <tom@codesourcery.com>
17288
17289         * common.opt (fstdarg-opt): New option.
17290         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17291         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17292         (@item -fstdarg-opt): New item.
17293
17294 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17295
17296         PR target/65064
17297         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17298         for common symbols.
17299
17300 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17301
17302         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17303         insn-modes.h.
17304         (ALL_HOST_OBJS): Add mkoffload.o.
17305         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17306
17307 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
17308
17309         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17310         (compare_virtual_tables): Be smarter about skipping typeinfos;
17311         do sane output on virtual table table mismatch.
17312         (warn_odr): Be ready for forward declarations of enums;
17313         output sane info on base mismatch and virtual table mismatch.
17314         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17315         when only one type is polymorphic.
17316         (get_odr_type): Fix hashtable corruption.
17317         (dump_odr_type): Dump mangled names.
17318
17319 2015-02-18  Richard Biener  <rguenther@suse.de>
17320
17321         PR tree-optimization/65063
17322         * tree-predcom.c (determine_unroll_factor): Return 1 if we
17323         have replaced looparound PHIs.
17324
17325 2015-02-18  Martin Liska  <mliska@suse.cz>
17326
17327         * lto-streamer.c (lto_streamer_init): Encapsulate
17328         streamer_check_handled_ts_structures with checking macro.
17329
17330 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
17331
17332         PR ipa/65087
17333         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17334         section if !implicit_section.
17335         (cgraph_node::create_version_clone_with_body): Likewise.
17336         * trans-mem.c (ipa_tm_create_version): Likewise.
17337
17338 2015-02-18  Richard Biener  <rguenther@suse.de>
17339
17340         PR tree-optimization/62217
17341         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17342         into BIVs.
17343
17344 2015-02-18  Marek Polacek  <polacek@redhat.com>
17345
17346         PR sanitizer/65081
17347         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17348         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17349         is in range [-16K, -1].  Don't issue run-time error if
17350         (ptr > ptr + offset).
17351
17352 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
17353
17354         * doc/install.texi (nvptx-*-none): New section.
17355         * doc/invoke.texi (Nvidia PTX Options): Likewise.
17356         * config/nvptx/nvptx.opt: Update.
17357
17358         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17359         (access_check): New functions, copied from
17360         config/i386/intelmic-mkoffload.c.
17361         (main): For non-installed testing, look in all COMPILER_PATHs for
17362         GCC_INSTALL_NAME.
17363
17364         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17365
17366 2015-02-18  Andrew Pinski  <apinski@cavium.com>
17367             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17368
17369         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17370         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17371
17372 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
17373
17374         * ipa-visibility.c (function_and_variable_visibility): Only
17375         check locality if node is not already local.
17376         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17377         call_for_symbol_and_aliases instead of
17378         call_for_symbol_thunks_and_aliases.
17379         (ipa_inline): Likewise.
17380         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17381         first walk aliases.
17382         * ipa.c (symbol_table::remove_unreachable_nodes): Use
17383         call_for_symbol_and_aliases.
17384         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17385         (ipa_propagate_frequency_1): Use it; use opt_for_fn
17386         (ipa_propagate_frequency): Update.
17387         (ipa_profile): Add opt_for_fn gueards.
17388
17389 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
17390
17391         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17392         * doc/invoke.texi (SH options): Document it.
17393         * config/sh/sh.c (sh_insn_length_adjustment): Check
17394         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17395
17396 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
17397
17398         * common.opt (fipa-cp-alignment): New.
17399         * ipa-cp.c (ipcp_store_alignment_results): Check
17400         flag_ipa_cp_alignment.
17401         * opts.c (default_options_table): Enable -fipa-cp-alignment for
17402         -O2.
17403         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17404         * doc/invoke.texi: Document -fipa-cp-alignment.
17405
17406 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
17407
17408         PR target/64793
17409         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17410         to nil.  Adjust comments.
17411
17412 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
17413
17414         * ipa-visibility.c (function_and_variable_visibility): Only
17415         check locality if node is not already local.
17416         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17417         call_for_symbol_and_aliases instead of
17418         call_for_symbol_thunks_and_aliases.
17419         (ipa_inline): Likewise.
17420         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17421         first walk aliases.
17422         * ipa.c (symbol_table::remove_unreachable_nodes): Use
17423         call_for_symbol_and_aliases.
17424         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17425         (ipa_propagate_frequency_1): Use it; use opt_for_fn
17426         (ipa_propagate_frequency): Update.
17427         (ipa_profile): Add opt_for_fn guards.
17428
17429 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
17430
17431         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
17432         skipping of "strange" tokens.
17433
17434 2015-02-17  Jeff Law  <law@redhat.com>
17435
17436         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
17437         obsolete comment.
17438
17439 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
17440
17441         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
17442         as forcing a HARD_DEP between instructions, thereby
17443         disallowing rewriting to break dependencies.
17444
17445 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
17446
17447         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
17448         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
17449         variables in boundary that have no inlitalizer encoded and are
17450         not aliases.
17451         * varasm.c (default_binds_local_p_2): External definitions do not
17452         count as definitions here.
17453
17454 2015-02-16  Jeff Law  <law@redhat.com>
17455
17456         PR tree-optimization/64823
17457         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
17458         statements.
17459         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17460         threading through blocks with PHIs, but no statements.
17461         (thread_through_normal_block): Distinguish between blocks where
17462         we did not process all the statements and blocks with no statements.
17463
17464 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
17465             James Greenhalgh  <james.greenhalgh@arm.com>
17466
17467         PR ipa/64963
17468         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
17469         section if not linkonce.  Fix up formatting.
17470         (cgraph_node::create_version_clone_with_body): Copy section.
17471         * trans-mem.c (ipa_tm_create_version): Likewise.
17472
17473 2015-02-16  Richard Biener  <rguenther@suse.de>
17474
17475         PR tree-optimization/65077
17476         * tree-ssa-structalias.c (get_constraint_for_1): Handle
17477         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
17478         (find_func_aliases): Allow float values to carry pointers again.
17479
17480 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
17481
17482         * doc/install.texi (Specific): Reorder targets list to put
17483         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
17484         from the top menu.
17485
17486 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
17487             David Edelsohn  <dje.gcc@gmail.com>
17488
17489         PR target/65058
17490         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
17491         mapping class to external variable or function reference.
17492         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
17493         mapping class.
17494
17495 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
17496
17497         PR target/53348
17498         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
17499         ASM_WEAKEN_DECL if defined.
17500
17501 2015-02-16  Richard Biener  <rguenther@suse.de>
17502
17503         PR lto/65015
17504         * varasm.c (default_file_start): For LTO produced units
17505         emit <artificial> as file directive.
17506
17507 2015-02-16  Richard Biener  <rguenther@suse.de>
17508
17509         PR tree-optimization/63593
17510         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
17511         stmts and releasing SSA names until...
17512         (execute_pred_commoning): ... after processing all chains.
17513
17514 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
17515
17516         PR ipa/65059
17517         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
17518         external functions.
17519
17520 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
17521
17522         * doc/bugreport.texi: Adjust section titles throughout the file
17523         to use "Title Case".
17524         * doc/extend.texi: Likewise.
17525         * doc/gcov.texi: Likewise.
17526         * doc/implement-c.texi: Likewise.
17527         * doc/implement-cxx.texi: Likewise.
17528         * doc/invoke.texi: Likewise.
17529         * doc/objc.texi: Likewise.
17530         * doc/standards.texi: Likewise.
17531         * doc/trouble.texi: Likewise.
17532
17533 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
17534
17535         * cgraph.h (symtab_node::has_aliases_p): Simplify.
17536         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
17537         * tree.c (lookup_binfo_at_offset): Make static.
17538         (get_binfo_at_offset): Do not shadow offset; add explanatory
17539         comment.
17540
17541 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
17542
17543         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
17544         for all floading point loads and stores except those using a register
17545         index address.
17546         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
17547         to a register.
17548
17549 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
17550
17551         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
17552         (do_estimate_growth_1): Record if any uninlinable edge was seen.
17553         (estimate_growth): Handle uninlinable edges correctly.
17554         (check_callers): New.
17555         (growth_likely_positive): Handle aliases correctly.
17556
17557 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
17558
17559         * ipa-chkp.c: Use iterate_direct_aliases.
17560         * symtab.c (resolution_used_from_other_file_p): Move inline.
17561         (symtab_node::create_reference): Fix formating.
17562         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17563         (symtab_node::iterate_reference): Move inline.
17564         (symtab_node::iterate_referring): Move inline.
17565         (symtab_node::iterate_direct_aliases): Move inline.
17566         (symtab_node::used_from_object_file_p_worker): Inline into ...
17567         (symtab_node::used_from_object_file_p): ... this one; move inline.
17568         (symtab_node::call_for_symbol_and_aliases): Move inline;
17569         use iterate_direct_aliases.
17570         (symtab_node::call_for_symbol_and_aliases_1): New method.
17571         (cgraph_node::call_for_symbol_and_aliases): Move inline;
17572         use iterate_direct_aliases.
17573         (cgraph_node::call_for_symbol_and_aliases_1): New method.
17574         (varpool_node::call_for_node_and_aliases): Rename to ...
17575         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
17576         use iterate_direct_aliases.
17577         (varpool_node::call_for_symbol_and_aliases_1): New method.
17578         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
17579         (ipa_discover_readonly_nonaddressable_var): Update.
17580         * ipa-devirt.c: Fix formating.
17581         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
17582         Move inline.
17583         (cgraph_node::call_for_symbol_and_aliases): Move inline.
17584         (cgraph_node::call_for_symbol_and_aliases_1): New function..
17585         * cgraph.h (used_from_object_file_p_worker): Remove.
17586         (resolution_used_from_other_file_p): Move inline.
17587         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17588         (symtab_node::iterate_reference): Move inline.
17589         (symtab_node::iterate_referring): Move inline.
17590         (symtab_node::iterate_direct_aliases): Move inline.
17591         (symtab_node::used_from_object_file_p_worker): Inline into ...
17592         (symtab_node::used_from_object_file_p): Move inline.
17593         * tree-emutls.c (ipa_lower_emutls): Update.
17594         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
17595         (varpool_node::call_for_node_and_aliases): Remove.
17596
17597 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
17598
17599         PR tree-optimization/62209
17600         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
17601         op == range->exp, insert seq and gimplified code after labels
17602         instead of after the phi.
17603
17604 2015-02-13  Jeff Law  <law@redhat.com>
17605
17606         PR bootstrap/65060
17607         Revert my change for tree-optimization/64823.
17608
17609 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
17610
17611         PR tree-optimization/65053
17612         * tree-ssa-phiopt.c (value_replacement): When moving assign before
17613         cond, either reset VR on lhs or set it to phi result VR.
17614
17615 2015-02-13  Jeff Law  <law@redhat.com>
17616
17617         PR tree-optimization/64823
17618         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
17619         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17620         threading through blocks with PHIs, but no statements.
17621         (thread_through_normal_block): Distinguish between blocks where
17622         we did not process all the statements and blocks with no statements.
17623
17624         PR rtl-optimization/47477
17625         * match.pd (convert (plus/minus (convert @0) (convert @1): New
17626         simplifier to narrow arithmetic.
17627
17628 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
17629
17630         PR ipa/65028
17631         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
17632         polymorphic call info when type is not known to be preserved.
17633
17634 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
17635
17636         PR ipa/65028
17637         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
17638         (inline_call): Use it.
17639
17640 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
17641
17642         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
17643         GOMP_DEVICE_NVIDIA_PTX.
17644
17645 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
17646
17647         PR ipa/65034
17648         * stmt.c (emit_case_nodes): Use void_type_node instead of
17649         NULL_TREE as LABEL_DECL type.
17650
17651 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
17652
17653         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
17654         constraints.
17655         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
17656         symbolic references to data to be forced to constant memory on the
17657         SOM target.
17658
17659 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17660
17661         PR tree-optimization/65002
17662         * tree-cfg.c (pass_data_fixup_cfg): Don't update
17663         SSA on start.
17664         * tree-sra.c (some_callers_have_no_vuse_p): New.
17665         (ipa_early_sra): Reject functions whose callers
17666         assume function is read only.
17667
17668 2015-02-13  Richard Biener  <rguenther@suse.de>
17669
17670         PR lto/65015
17671         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
17672         for LTO produced CUs.
17673
17674 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
17675
17676         PR tree-optimization/64705
17677         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
17678         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
17679         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
17680         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
17681         expand_simple_operations.
17682
17683 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
17684             Richard Henderson  <rth@redhat.com>
17685
17686         PR rtl/32219
17687         * cgraphunit.c (cgraph_node::finalize_function): Set definition
17688         before notice_global_symbol.
17689         (varpool_node::finalize_decl): Likewise.
17690         * varasm.c (default_binds_local_p_2): Rename from
17691         default_binds_local_p_1, add weak_dominate argument.  Use direct
17692         returns instead of assigning to local variable.  Unify varpool and
17693         cgraph paths via symtab_node.  Reject undef weak variables before
17694         testing visibility.  Reorder tests for simplicity.
17695         (default_binds_local_p): Use default_binds_local_p_2.
17696         (default_binds_local_p_1): Likewise.
17697         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
17698         via symtab_node.
17699         (default_elf_asm_output_external): Emit visibility when specified.
17700
17701 2015-02-13  Alan Modra  <amodra@gmail.com>
17702
17703         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
17704         code setting up r11 for out-of-line fp restore.
17705
17706 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17707
17708         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
17709         (muser-mode): Likewise.
17710
17711 2015-02-13  Alan Modra  <amodra@gmail.com>
17712
17713         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
17714         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
17715
17716 2015-02-12  David Howells  <dhowells@redhat.com>
17717
17718         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
17719         warning.
17720         * tree-ssa-uninit.c (dump_predicates): Likewise.
17721         * opts.c (print_filtered_help): Likewise.
17722
17723 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
17724
17725         * dwarf2out.c (output_die): Use "%s", name instead of name to
17726         avoid -Wformat-security warning.
17727
17728         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
17729         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
17730         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
17731         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
17732
17733 2015-02-12  Jason Merrill  <jason@redhat.com>
17734
17735         * common.opt (-flifetime-dse): New.
17736
17737 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
17738
17739         PR sanitizer/65019
17740         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
17741
17742         PR tree-optimization/65014
17743         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
17744         use original second operand of arg0 or arg1 instead of
17745         that adjusted by STRIP_NOPS.
17746
17747 2015-02-11  Jeff Law  <law@redhat.com>
17748
17749         PR target/63347
17750         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
17751         that needs to be queued, just queue it for a single cycle.
17752
17753 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
17754
17755         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
17756         bodies of thunks; comment on why.
17757         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
17758         symbols are extern.
17759
17760 2015-02-11  Richard Henderson  <rth@redhat.com>
17761
17762         PR sanitize/65000
17763         * tree-eh.c (mark_reachable_handlers): Mark source and destination
17764         regions of __builtin_eh_copy_values.
17765
17766 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
17767
17768         PR middle-end/65003
17769         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
17770         ultimate alias is MEM with SYMBOL_REF satisfying
17771         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
17772         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
17773
17774 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
17775
17776         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
17777         "diagnostic-core.h".
17778         (main): Initialize progname, and call diagnostic_initialize.
17779
17780         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
17781         instead of __OPENMP_TARGET__.
17782
17783         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
17784         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
17785         hard-coding PTX_ID.
17786
17787 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
17788
17789         * doc/sourcebuild.texi (pie_enabled): Document.
17790
17791 2015-02-11  Martin Liska  <mliska@suse.cz>
17792
17793         PR ipa/64813
17794         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
17795         a return value for call to a function that is noreturn.
17796
17797 2015-02-11  Richard Biener  <rguenther@suse.de>
17798
17799         PR lto/65015
17800         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
17801         and -fresolution.
17802
17803 2015-02-11  Andrew Pinski  <apinski@cavium.com>
17804
17805         PR target/64893
17806         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17807         Change the first argument type to size_type_node and add another
17808         size_type_node.
17809         (aarch64_simd_expand_builtin): Handle the new argument to
17810         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
17811         print an out when the first two arguments are not
17812         nonzero integer constants.
17813         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
17814         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
17815
17816 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
17817
17818         PR target/61925
17819         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
17820         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
17821         (ix86_set_current_function): Rewritten.
17822         (ix86_add_new_builtins): Temporarily clear current_target_pragma
17823         when creating builtin fndecls.
17824
17825 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
17826
17827         PR ipa/65005
17828         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
17829         function.
17830         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
17831         have no comdat group.
17832         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
17833         (lto_output_varpool_node): Always output alias info.
17834         (output_refs): Output refs of boundary aliases, too.
17835         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
17836         (output_symtab): Output call eges in thunks in boundary.
17837         (get_alias_symbol): Remove.
17838         (input_node, input_varpool_node): Do not special case weakrefs.
17839         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
17840         alias and thunks targets in the boundary; do not take removed symbols
17841         from their comdat groups.
17842         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
17843         (cgraph_node::global_info): Remove.
17844         (cgraph_node::rtl_info): Look through aliases and thunks.
17845         * cgrpah.h (global_info): Remove.
17846         (non_local_p): Remove.
17847
17848 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
17849             Sandra Loosemore  <sandra@codesourcery.com>
17850
17851         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
17852         to inline asm.  List dialects in proper order.
17853
17854 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
17855             Sandra Loosemore  <sandra@codesourcery.com>
17856
17857         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
17858
17859 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
17860
17861         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
17862         modified) reference to Solaris.
17863
17864 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
17865
17866         * doc/extend.texi (Extended Asm): Fix typos.
17867
17868 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
17869
17870         PR sanitizer/65004
17871         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
17872
17873 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
17874
17875         PR target/64661
17876         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
17877         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
17878         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
17879         * config/sh/constraints.md (Ara, Add): New constraints.
17880         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
17881         predicates.
17882         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
17883         atomic_mem_operand_0.  Don't use force_reg on the memory address.
17884         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
17885         Sra constraint.  Convert to insn_and_split.  Add workaround for
17886         PR 64974.
17887         (atomic_compare_and_swap<mode>_hard): Copy to
17888         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
17889         Use atomic_mem_operand_0 predicate.
17890         (atomic_compare_and_swap<mode>_soft_gusa,
17891         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
17892         AraAdd constraints.
17893         (atomic_compare_and_swap<mode>_soft_tcb,
17894         atomic_compare_and_swap<mode>_soft_imask,
17895         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
17896         atomic_mem_operand_0 predicate and SraSdd constraints.
17897         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
17898         constraint.
17899         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
17900         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
17901         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
17902         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
17903         force_reg on the memory address.
17904         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
17905         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
17906         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
17907         atomic_mem_operand_1 predicate and Sra constraint.
17908         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
17909         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
17910         Use atomic_mem_operand_1 predicate.
17911         (atomic_<fetchop_name><mode>_hard): Copy to
17912         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
17913         Use atomic_mem_operand_1 predicate.
17914         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
17915         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
17916         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
17917         insn_and_split.  Use atomic_mem_operand_1 predicate.
17918         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
17919         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
17920         Use atomic_mem_operand_1 predicate.
17921         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
17922         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
17923         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
17924         in generated insn with original mem operand before emitting the insn.
17925         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
17926         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
17927         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
17928         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
17929         Use atomic_mem_operand_1 predicate and AraAdd constraints.
17930         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
17931         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
17932         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
17933         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
17934         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
17935         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
17936         atomic_not_fetch<mode>_soft_tcb,
17937         atomic_<fetchop_name>_fetch<mode>_soft_imask,
17938         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
17939         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
17940         Use atomic_mem_operand_1 predicate and SraSdd constraints.
17941
17942 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
17943
17944         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
17945         and 3 earlyclobber operands.
17946
17947 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
17948
17949         * common.opt (fstack-reuse): Mark as optimization.
17950
17951 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
17952
17953         PR ipa/64982
17954         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
17955
17956 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
17957
17958         PR tree-optimization/64326
17959         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
17960
17961 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
17962
17963         PR gcov-profile/61889
17964         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
17965
17966 2015-02-10  Richard Biener  <rguenther@suse.de>
17967
17968         PR tree-optimization/64995
17969         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
17970         value we use is final.
17971         (visit_reference_op_store): Always valueize op.
17972         (visit_use): Properly valueize vuses.
17973
17974 2015-02-10  Richard Biener  <rguenther@suse.de>
17975
17976         PR tree-optimization/64909
17977         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
17978         pass a scalar-stmt count estimate to the cost model.
17979         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
17980
17981 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
17982
17983         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
17984         enabled by default together with var-tracking.
17985
17986 2015-02-10  Nick Clifton  <nickc@redhat.com>
17987
17988         * config/rl78/rl78.c: Remove DIV attribute code accidentally
17989         included in previous rl78 commit.
17990
17991 2015-02-10  Richard Biener  <rguenther@suse.de>
17992
17993         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
17994         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
17995         return the bitpack.
17996
17997 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
17998
17999         PR gcov-profile/61889
18000         * config.in: regenerate.
18001         * configure.in: Likewise.
18002         * configure.ac: Check for ftw.h.
18003         * gcov-tool.c: Check for ftw.h before using nftw.
18004
18005 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
18006
18007         PR lto/64076
18008         * ipa-visibility.c (update_visibility_by_resolution_info): Only
18009         assert when not in lto mode.
18010
18011 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18012
18013         * ira-color.c (setup_left_conflict_sizes_p): Simplify
18014         initialization/assignment of conflict_size.
18015
18016 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
18017
18018         PR ipa/64978
18019         * ipa-cp.c (gather_caller_stats): Skip thunks.
18020         (propagate_constants_topo): Skip aliases.
18021
18022 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
18023
18024         PR target/64761
18025         * config/sh/sh.c (sh_option_override): Don't change
18026         -freorder-blocks-and-partition to -freorder-blocks even when
18027         unwinding is enabled.
18028         (sh_can_follow_jump): Return false if the followee jump is
18029         a crossing jump when -freorder-blocks-and-partition is specified.
18030         * config/sh/sh.md (*jump_compact_crossing): New insn.
18031
18032 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
18033             Kaz Kojima  <kkojima@gcc.gnu.org>
18034
18035         PR target/64761
18036         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18037         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18038         (sh_can_redirect_branch): Rename to ...
18039         (sh_can_follow_jump): ... this.  Constify argument types.
18040         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18041         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18042         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18043         * doc/tm.texi: Regenerate.
18044
18045 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
18046
18047         PR sanitizer/64981
18048         * builtins.c (expand_builtin): Call targetm.expand_builtin
18049         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18050
18051 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18052
18053         PR ipa/61548
18054         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18055
18056 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18057
18058         PR ipa/63566
18059         * ipa-icf.c (set_local): New function.
18060         (sem_function::merge): Use it.
18061
18062 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18063
18064         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18065         (add_type_duplicate): Fix comparison of BINFOs.
18066
18067 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18068
18069         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18070         on getting VOID pointer.
18071
18072 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
18073
18074         PR target/64979
18075         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18076         va_list escapes.
18077
18078 2015-02-09  Richard Biener  <rguenther@suse.de>
18079
18080         * genmatch.c (replace_id): Copy expr_type.
18081
18082 2015-02-09  Richard Biener  <rguenther@suse.de>
18083
18084         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18085         (streamer_write_tree_bitfields): Declare.
18086         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18087         properly unpack padding.
18088         (unpack_value_fields): Inline ...
18089         (streamer_read_tree_bitfields): ... here.
18090         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18091         and properly add padding bits.
18092         (streamer_pack_tree_bitfields): Fold into ...
18093         (streamer_write_tree_bitfields): ... this new function,
18094         exposing the bitpack object.
18095         * lto-streamer-out.c (lto_write_tree_1): Call
18096         streamer_write_tree_bitfields.
18097
18098 2015-02-09  Richard Biener  <rguenther@suse.de>
18099
18100         PR tree-optimization/54000
18101         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18102         (struct ivopts_data): Add loop_loc member.
18103         (tree_ssa_iv_optimize_loop): Dump loop location.
18104         (create_new_ivs): Likewise, also dump number of IVs generated.
18105
18106 2015-02-09  Martin Liska  <mliska@suse.cz>
18107
18108         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18109         just if not yet registered.
18110         (ipa_icf_generate_summary): Register callgraph hooks.
18111
18112 2015-02-08  Andrew Pinski  <apinski@cavium.com>
18113
18114         * config/aarch64/aarch64.c (gty_dummy): Delete.
18115
18116 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18117
18118         PR ipa/63566
18119         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18120         (cgraph_node::local_p): Remove thunk related FIXME.
18121
18122 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18123
18124         PR ipa/63566
18125         * i386.c (ix86_function_regparm): Look through aliases to see if callee
18126         is local and optimized.
18127         (ix86_function_sseregparm): Likewise; also use target's SSE math
18128         settings; error out instead of silently generating wrong code
18129         on mismatches.
18130         (init_cumulative_args): Look through aliases.
18131
18132 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18133
18134         PR ipa/63566
18135         * ipa-split.c (execute_split_functions): Split if function has aliases.
18136
18137 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
18138
18139         PR ipa/63566
18140         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18141         aliases before trying to expand it.
18142         (cgraph_node::expand_thunk): Fix formating.
18143
18144 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
18145
18146         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18147         (Using Assembly Language with C): Expand introduction.
18148         (Basic Asm): Copy-edit.  Add more information about uses of
18149         basic asm.
18150         (Extended Asm): Copy-edit.  Document new escape syntax and
18151         %l[label] syntax.
18152         (Global Reg Vars): Copy-edit.
18153         (Local Reg Vars): Likewise.
18154
18155 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
18156
18157         PR debug/2714
18158         PR bootstrap/64256
18159         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18160         (DBX_CONTIN_CHAR): Define.
18161
18162 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
18163             Brian Rzycki  <b.rzycki@samsung.com>
18164
18165         PR tree-optimization/64878
18166         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18167         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18168         Stop recursion at loop phi nodes after having visited a loop phi node.
18169
18170 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18171
18172         * toplev.c (process_options): Change flag_ipa_ra before creating
18173         optimization_{default,current}_node.
18174
18175         PR ipa/64896
18176         * cgraphunit.c (cgraph_node::expand_thunk): If
18177         restype is not is_gimple_reg_type nor the thunk_fndecl
18178         returns aggregate_value_p, set restmp to a temporary variable
18179         instead of resdecl.
18180
18181 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
18182
18183         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18184
18185 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18186
18187         PR target/64205
18188         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18189         add a general secondary reload handler for SDmode, unless we have
18190         both read/write support for SDmode.
18191
18192 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18193
18194         PR middle-end/64937
18195         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18196         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18197         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18198         1 before, push it to abstract_vec.
18199         (dwarf2out_abstract_function): Adjust caller.  Don't call
18200         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18201         DECL_ABSTRACT_P flags for all abstract_vec elts.
18202
18203 2015-02-06  Renlin Li  <renlin.li@arm.com>
18204
18205         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18206         complex gimple.
18207         * tree-ssa.c (execute_update_addresses_taken): Likewise.
18208
18209 2015-02-06  Jeff Law  <law@redhat.com>
18210
18211         PR target/64889
18212         * config/h8300/h8300.c (push): New argument "in_prologue".
18213         Pass "in_prologue" along to "F".
18214         (h8300_push_pop): Corresponding changes.
18215         (h8300_expand_prologue): Likewise.
18216         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
18217
18218 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
18219
18220         PR rtl-optimization/64957
18221         PR debug/64817
18222         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18223         IOR rather than for AND.
18224
18225 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
18226
18227         PR target/62631
18228         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18229         of shift-add and (add + shift) operations.  Rename local variable.
18230
18231 2015-02-05  Jeff Law  <law@redhat.com>
18232
18233         PR target/17306
18234         * config/h8300/constraints.md (U): Correctly dectect
18235         "eightbit_data" memory addresses.
18236         * config/h8300/h8300.c (eightbit_constant_address_p): Also
18237         handle (const (plus (symbol_ref (x)))) where x is declared
18238         as an 8-bit data memory address.
18239         * config/h8300/h8300.md (call, call_value): Correctly detect
18240         "funcvec" functions.
18241
18242         PR target/43264
18243         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18244         24 to 28 bits for the H8/300.
18245
18246 2015-02-06  Alan Modra  <amodra@gmail.com>
18247
18248         PR target/64876
18249         * config/rs6000/rs6000.c (chain_already_loaded): New function.
18250         (rs6000_call_aix): Use it.
18251
18252 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
18253
18254         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18255         check.
18256
18257 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
18258
18259         * config/h8300/constraints.md ("U" constraint): Use strict
18260         variant of REG_OK_FOR_BASE_P after reload has started.
18261
18262 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
18263
18264         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18265         define to zero if !TARGET_NEON.
18266         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18267
18268 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18269             Trevor Saunders  <tsaunders@mozilla.com>
18270
18271         PR ipa/61548
18272         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18273
18274 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18275
18276         PR ipa/61548
18277         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18278         when removing varpool nodes.
18279
18280 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18281
18282         PR ipa/61548
18283         * varpool.c (varpool_node::remove): Fix order of variables.
18284
18285 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18286
18287         PR ipa/64686
18288         * ipa-inline.c (inline_small_functions): Fix ordering issue between
18289         speculation resolution and key updates.
18290
18291 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18292
18293         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18294         about not letting any speculative edges unupdated.
18295
18296 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18297
18298         PR gcov/64123
18299         * gcov-io.c (gcov_var): Export.
18300
18301 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18302
18303         PR middle-end/64922
18304         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18305         edges that become speculative.
18306
18307 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18308
18309         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18310         or DW_LANG_Fortran08.
18311         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18312         DW_LANG_Fortran08.
18313         (gen_compile_unit_die): Handle "GNU Fortran2003" and
18314         "GNU Fortran2008" language strings.
18315         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18316         * langhooks.h (lang_GNU_Fortran): New prototype.
18317         * langhooks.c (lang_GNU_Fortran): New function.
18318         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18319         lang_GNU_Fortran.
18320
18321 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
18322
18323         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18324         (RTX_OK_FOR_OLO10_P): Likewise.
18325
18326 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
18327
18328         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18329
18330 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
18331
18332         PR middle-end/64922
18333         * gimple.c: Include gimple-ssa.h.
18334         (maybe_remove_unused_call_args): New function.
18335         * gimple.h (maybe_remove_unused_call_args): Declare.
18336         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18337         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18338         * gimple-fold.c (gimple_fold_call): Likewise.
18339
18340 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18341
18342         PR rtl-optimization/64905
18343         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18344         pointer alignment if it isn't needed.
18345
18346 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
18347
18348         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18349         cortex-a72.cortex-a53.
18350         * config/aarch64/aarch64-tune.md: Regenerate.
18351         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18352
18353 2015-02-04  Nick Clifton  <nickc@redhat.com>
18354
18355         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18356         inside a MEM.
18357
18358 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
18359
18360         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18361         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18362         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18363         of DEF_BUILTIN.
18364         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18365         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18366         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18367         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18368         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18369         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18370         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18371         * tree-core.h (enum built_in_function): In between
18372         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18373         for builtins that use DEF_BUILTIN_CHKP macro.
18374
18375 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
18376
18377         PR debug/64817
18378         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18379         operands for tcc_comparison exprs.  Fix typos.
18380
18381         PR debug/64817
18382         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18383         of two XORs that have an intervening AND or IOR.
18384
18385         PR debug/64817
18386         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18387         simplification of XOR of AND to not allocate new rtx before
18388         committing to a simplification.
18389
18390 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18391
18392         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18393         manual swaps in all peepholes.
18394
18395 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18396
18397         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18398         of manual swapping implementation.
18399         (aarch64_expand_vec_perm_const_1): Likewise.
18400
18401 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
18402
18403         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18404         (generic_addrcost_table): Remove NAMED_PARAM.
18405         (cortexa57_addrcost_table): Likewise.
18406         (xgene1_addrcost_table): Likewise.
18407         (generic_regmove_table): Likewise.
18408         (cortexa53_regmove_table): Likewise.
18409         (xgene1_regmove_table): Likewise.
18410         (generic_vector_table): Likewise.
18411         (cortexa57_vector_table): Likewise.
18412         (xgene1_vector_table): Likewise.
18413         (generic_tunings): Likewise.
18414         (cortexa53_tunings): Likewise.
18415         (cortexa57_tunings): Likewise.
18416         (xgene1_tunings): Likewise.
18417
18418 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
18419
18420         * config/arm/arm-cores.def: Add cortex-a72 and
18421         cortex-a72.cortex-a53.
18422         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
18423         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
18424         * config/arm/arm-tune.md: Regenerate.
18425         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
18426         "cortex-a72.cortex-a53".
18427         * doc/invoke.texi (ARM Options/-mtune): Likewise.
18428
18429 2015-02-04  Nick Clifton  <nickc@redhat.com>
18430
18431         PR target/64408
18432         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
18433         of accepted codes.
18434         (nonimmediate_di_operand): Likewise.
18435
18436         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
18437         prefixes of known F5 using MSP430 MCUs.
18438
18439 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18440
18441         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
18442         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
18443         instead of __builtin_sqrt.
18444
18445 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
18446
18447         * varasm.c (do_assemble_alias): Follow transparent alias
18448         chain for target.
18449         (default_assemble_visibility): Follow transparent alias
18450         chain for decl name.
18451
18452 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18453
18454         PR middle-end/62103
18455         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
18456         to compute size of referenced value in the constant case.
18457
18458 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
18459
18460         PR rtl-optimization/64756
18461         * cse.c (invalidate_dest): New function.
18462         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
18463         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
18464         invalidate and do not record it.
18465
18466 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
18467
18468         PR target/64660
18469         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
18470         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
18471         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
18472         atomic_nand<mode>_soft_tcb): New insns.
18473         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
18474         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
18475         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
18476         Split into atomic_not_fetchsi_hard if operands[0] is unused.
18477         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
18478         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18479         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
18480         atomic_not<mode>_hard if operands[0] is unused.
18481         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
18482         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
18483         if operands[0] is unused.
18484         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
18485         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
18486         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
18487         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18488         unused.
18489         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
18490         into atomic_not<mode>_soft_tcb if operands[0] is unused.
18491         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
18492         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
18493         if operands[0] is unused.
18494         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
18495         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
18496         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
18497         atomic_nand_fetchsi_hard if operands[0] is unused.
18498         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
18499         atomic_nand<mode>_hard if operands[0] is unused.
18500         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
18501         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
18502         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
18503         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
18504         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
18505         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
18506         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
18507         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18508         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
18509         atomic_not<mode>_hard if operands[0] is unused.
18510         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
18511         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18512         unused.
18513         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
18514         into atomic_not<mode>_soft_tcb if operands[0] is unused.
18515         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
18516         atomic_nand<mode>_hard if operands[0] is unused.
18517         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
18518         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
18519
18520 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
18521
18522         PR jit/64810
18523         * Makefile.in (GCC_OBJS): Add gcc-main.o.
18524         * gcc-main.c: New file, containing "main" taken from gcc.c.
18525         * gcc.c (do_self_spec): Free decoded_options.
18526         (class driver): Move declaration to gcc.h.
18527         (main): Move declaration and implementation to new file
18528         gcc-main.c.
18529         (driver_get_configure_time_options): New function.
18530         * gcc.h (class driver): Move this declaration here, from
18531         gcc.c.
18532         (driver_get_configure_time_options): New declaration.
18533
18534 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
18535
18536         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
18537         cross-module inlining.
18538         * cgraph.h (cgraph_node): Add flag merged.
18539         * ipa-icf.c (sem_function::merge): Maintain it.
18540
18541 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
18542
18543         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
18544         instead of OBJECT_P.
18545
18546 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
18547
18548         PR target/62631
18549         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
18550         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
18551         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
18552         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
18553
18554 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
18555
18556         PR other/63504
18557         * combine.c (reg_n_sets_max): New variable.
18558         (can_change_dest_mode, reg_nonzero_bits_for_combine,
18559         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
18560         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
18561         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
18562         (rest_of_handle_combine): Initialize reg_n_sets_max.
18563
18564 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
18565
18566         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
18567         if some always_inline was inlined, apply changes before inlining
18568         heuristically.
18569
18570 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
18571
18572         PR jit/64810
18573         * config/arm/arm.c (arm_option_override): Set
18574         arm_selected_arch/cpu/tune to NULL on entry.
18575
18576 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
18577             Andrew Pinski  <pinskia@gcc.gnu.org>
18578             Jakub Jelinek  <jakub@gcc.gnu.org>
18579
18580         PR target/64231
18581         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
18582         integer typing for small model. Use IN_RANGE.
18583
18584 2015-02-02  Richard Biener  <rguenther@suse.de>
18585
18586         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
18587         * tree-vrp.c (vrp_valueize_1): Likewise.
18588
18589 2015-02-02  Alan Modra  <amodra@gmail.com>
18590
18591         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
18592         than mem for toc_restore.
18593         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
18594         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
18595         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
18596
18597 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
18598
18599         PR target/64047
18600         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
18601         explicit default options.
18602
18603 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
18604
18605         PR ipa/64872
18606         * ipa-utils.c (ipa_merge_profiles): Add release argument.
18607         * ipa-icf.c (sem_function::merge): Do not release body when merging.
18608         * ipa-utils.h (ipa_merge_profiles): Update prototype.
18609
18610 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
18611
18612         PR debug/64817
18613         * cfgexpand.c (deep_ter_debug_map): New variable.
18614         (avoid_deep_ter_for_debug): New function.
18615         (expand_debug_expr): If TERed SSA_NAME is in
18616         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
18617         instead of trying to expand SSA_NAME's def stmt.
18618         (expand_debug_locations): When expanding debug bind
18619         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
18620         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
18621         value.
18622         (pass_expand::execute): Call avoid_deep_ter_for_debug on
18623         all debug bind stmts.  Delete deep_ter_debug_map after
18624         expand_debug_location if non-NULL and clear it.
18625
18626 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
18627
18628         PR target/64851
18629         * config/sh/sync.md (atomic_fetch_notsi_hard,
18630         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
18631         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
18632         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
18633         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
18634         atomic_not_fetch<mode>_soft_imask): New insns.
18635
18636 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18637
18638         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
18639         (rank_for_schedule_debug): Split from ...
18640         (rank_for_schedule): ... this.
18641         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
18642         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
18643
18644 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
18645
18646         * doc/md.texi (Machine Constraints): Alphabetize table by target.
18647         * doc/extend.texi (x86 Variable Attributes): Move section to
18648         correct alphabetization after renaming.
18649         (x86 Type Attributes): Likewise.
18650         (Target Builtins): Re-alphabetize menu.
18651         (x86 Built-in Functions): Move section to correct alphabetization
18652         after renaming.
18653         (x86 transactional memory intrinsics): Likewise.
18654         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
18655         and x86 Windows Options in table and menu.
18656         (x86 Options): Move section to correct alphabetization after
18657         renaming.
18658         (x86 Windows Options): Likewise.
18659
18660 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
18661
18662         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
18663         preferred names of the architecture and its 32- and 64-bit
18664         variants.
18665         * doc/invoke.texi: Likewise.
18666         * doc/md.texi: Likewise.
18667
18668 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
18669
18670         PR target/64882
18671         * config/i386/predicates.md (address_no_seg_operand): Reject
18672         non-CONST_INT_P operands in invalid mode.
18673
18674 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
18675
18676         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
18677         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
18678         * config/i386/predicates.md (address_no_seg_operand): Call
18679         address_operand with VOIDmode.
18680         (vsib_address_operand): Ditto.
18681         (address_mpx_no_base_operand): Ditto.
18682         (address_mpx_no_index_operand): Ditto.
18683
18684 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
18685
18686         PR target/64688
18687         * lra-constraints.c (original_subreg_reg_mode): New.
18688         (simplify_operand_subreg): Try to simplify subreg of const.  Use
18689         original_subreg_reg_mode for it.
18690         (swap_operands): Update original_subreg_reg_mode.
18691         (curr_insn_transform): Set up original_subreg_reg_mode.
18692
18693 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
18694
18695         PR target/64617
18696         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
18697         function.
18698         (process_alt_operands): Use it.
18699         (curr_insn_transform): Check the optional reload pseudo class is
18700         ok for the mode.
18701
18702 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
18703
18704         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
18705         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
18706         prototype.
18707         * toplev.h (init_asm_output): Update comment on use of
18708         UNKNOWN_LOCATION with fatal_error.
18709         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
18710         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
18711         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
18712         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
18713         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
18714         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
18715         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
18716         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
18717         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
18718         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
18719         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
18720         fatal_error changed to pass input_location as first argument.
18721
18722 2015-01-30  Martin Liska  <mliska@suse.cz>
18723
18724         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
18725         in #pragma GCC diagnostic guards.
18726
18727 2015-01-30  Richard Biener  <rguenther@suse.de>
18728
18729         PR tree-optimization/64829
18730         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
18731         not add a widening conversion pattern but hand off extra
18732         widenings to callers.
18733         (vect_recog_widen_mult_pattern): Handle extra widening produced
18734         by vect_handle_widen_op_by_const.
18735         (vect_recog_widen_shift_pattern): Likewise.
18736         (vect_pattern_recog_1): Remove excess vertical space in dumping.
18737         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18738         (vect_init_vector_1): Likewise.
18739         (vect_get_vec_def_for_operand): Likewise.
18740         (vect_finish_stmt_generation): Likewise.
18741         (vectorizable_load): Likewise.
18742         (vect_analyze_stmt): Likewise.
18743         (vect_is_simple_use): Likewise.
18744
18745 2015-01-29  Jeff Law  <law@redhat.com>
18746
18747         * combine.c (try_combine): Fix typo in comment.
18748
18749 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
18750
18751         PR target/64580
18752         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
18753         (rs6000_stack_info): Add assert.
18754         (rs6000_output_savres_externs): New function, split off from...
18755         (rs6000_output_function_prologue): ... here.  Do not call it for
18756         thunks.
18757
18758 2015-01-29  Jeff Law  <law@redhat.com>
18759
18760         PR target/15184
18761         * combine.c (try_combine): If I0 is a memory load and I3 a store
18762         to a related address, increase the "goodness" of doing a 4-insn
18763         combination with I0-I3.
18764         (make_field_assignment): Handle SUBREGs in the ior+and case.
18765
18766 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
18767
18768         PR tree-optimization/64746
18769         * tree-if-conv.c (mask_exists): New function.
18770         (predicate_mem_writes): Save created mask with given size for further
18771         use.
18772         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
18773         (ifcvt_repair_bool_pattern): Collect all statements that are root
18774         of bool pattern and use iterative algorithm to remove multiple uses
18775         of predicates, display number of required iterations.
18776
18777 2015-01-29  Richard Biener  <rguenther@suse.de>
18778
18779         PR tree-optimization/64853
18780         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
18781         stmt will get simulated again.
18782         * tree-ssa-ccp.c (valueize_op_1): Likewise.
18783
18784 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18785
18786         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
18787         return_in_pc.  Remove redundant assignments.
18788         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
18789         (arm_expand_epilogue): Don't compare boolean with true in if condition.
18790
18791 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
18792
18793         * config/i386/i386.c (ix86_mode_after): Make static.
18794
18795 2015-01-29  Richard Biener  <rguenther@suse.de>
18796
18797         PR tree-optimization/64844
18798         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
18799         dump cost model analysis.
18800         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18801         Do not register adjusted load/store costs here.
18802
18803 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
18804             Uros Bizjak  <ubizjak@gmail.com>
18805
18806         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
18807         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
18808         using x86_use_pseudo_pic_reg.
18809         * config/i386/i386.c (ix86_conditional_register_usage): Remove
18810         support for fixed PIC register.
18811         (ix86_use_pseudo_pic_reg): Not static any more.
18812
18813 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
18814
18815         PR middle-end/64805
18816         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
18817         to avoid error in cgraph node verification.
18818
18819 2015-01-29  Marek Polacek  <polacek@redhat.com>
18820
18821         * doc/standards.texi: Reflect that the default for C is gnu11.
18822
18823 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
18824
18825         PR target/64761
18826         * reorg.c (switch_text_sections_between_p): New function.
18827         (relax_delay_slots): Call it when testing if the jump insn
18828         is removable.  Use targetm.can_follow_jump when testing if
18829         the conditional branch can follow an unconditional jump.
18830
18831 2015-01-27  Caroline Tice  <cmtice@google.com>
18832
18833         Committing VTV Cywin/Ming patch for Patrick Wollgast
18834         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
18835         if -fvtable-verify=preinit/std is used.
18836         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
18837         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
18838         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
18839         if -fvtable-verify=preinit/std is used.
18840         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18841         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
18842         if -fvtable-verify=preinit/std is used.
18843         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
18844         * config/i386/mingw32.h (LIB_SPEC): Likewise.
18845         * varasm.c (assemble_variable): Add code to properly set the comdat
18846         section and name for the .vtable_map_vars section in case the
18847         target is PE or COFF.
18848
18849 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
18850
18851         PR ipa/64801
18852         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
18853         make sane BB profile.
18854         (cgraph_node::expand_thunk): Make sane BB profile.
18855         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
18856         * cgraph.h (init_lowered_empty_function): Update prototype.
18857         * config/i386/i386.c (make_resolver_func): Update call.
18858         * predict.c (gate): Disable branch prediction pass if
18859         profile is already there.
18860
18861 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
18862
18863         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
18864         * opth-gen.awk: Likewise.
18865         * common.opt: Mark flag_fp_contract_mode as Optimization.
18866
18867 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18868
18869         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
18870         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
18871
18872 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
18873
18874         PR target/64659
18875         * config/sh/predicates.md (atomic_arith_operand,
18876         atomic_logical_operand): Remove.
18877         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
18878         (atomic_arith_operand_0): New predicate.
18879         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
18880         Use atomic_arith_operand_0 for input values.
18881         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
18882         atomic_compare_and_swap<mode>_soft_gusa,
18883         atomic_compare_and_swap<mode>_soft_tcb,
18884         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
18885         arith_reg_operand instead of register_operand.
18886         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
18887         atomic_arith_operand_0 for newval input.
18888         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
18889         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
18890         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
18891         arith_reg_operand instead of register_operand.
18892         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
18893         fetchop_predicate_1, fetchop_constraint_1_llcs,
18894         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
18895         fetchop_constraint_1_imask): New code iterator attributes.
18896         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
18897         register_operand.  Use fetchop_predicate_1.
18898         (atomic_fetch_<fetchop_name>si_hard,
18899         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
18900         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
18901         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
18902         and arith_reg_operand instead of register_operand.  Use
18903         fetchop_predicate_1, fetchop_constraint_1_gusa.
18904         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
18905         and arith_reg_operand instead of register_operand.  Use
18906         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
18907         to allow R0 usage.
18908         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
18909         and arith_reg_operand instead of register_operand.  Use
18910         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
18911         to allow R0 usage.
18912         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
18913         register_operand.  Use atomic_logical_operand_1.
18914         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
18915         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
18916         arith_reg_operand instead of register_operand.
18917         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
18918         Use arith_reg_dest and arith_reg_operand instead of register_operand.
18919         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
18920         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
18921         register_operand.  Use fetchop_predicate_1.
18922         (atomic_<fetchop_name>_fetchsi_hard,
18923         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
18924         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18925         fetchop_constraint_1_llcs.
18926         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
18927         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18928         fetchop_constraint_1_gusa.
18929         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
18930         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18931         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
18932         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
18933         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18934         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
18935         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
18936         register_operand.  Use atomic_logical_operand_1.
18937         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
18938         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
18939         arith_reg_operand instead of register_operand.
18940         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
18941         arith_reg_operand instead of register_operand.  Use logical_operand
18942         and K08.  Adjust asm sequence to allow R0 usage.
18943         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
18944         arith_reg_operand instead of register_operand.  Use logical_operand
18945         and K08.
18946
18947 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
18948
18949         PR other/63504
18950         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
18951         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
18952         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
18953         only get_full_len HOST_WIDE_INTs from get_val () array rather than
18954         all bits in *val_wide.
18955
18956 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
18957
18958         * varpool.c (tls_model_names): Fix names.
18959         (varpool_node::dump): Dump tls- prefix for tls models.
18960
18961 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
18962             Bernd Schmidt  <bernds@codesourcery.com>
18963             Nathan Sidwell  <nathan@codesourcery.com>
18964
18965         * config/nvptx/mkoffload.c: New file.
18966         * config/nvptx/t-nvptx: Add build rules for it.
18967         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
18968         (extra_programs): Add mkoffload.
18969         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
18970         function.
18971         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
18972
18973 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
18974
18975         PR middle-end/64809
18976         * cfgexpand.c (reorder_operands): Skip debug gimples.
18977
18978 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
18979
18980         PR tree-optimization/64277
18981         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
18982         range info when possible to refine estimation.
18983
18984 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18985
18986         PR tree-optimization/64718
18987         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
18988         be a 16bit unsigned integer when n->range is 16.
18989         (bswap_replace): Convert src to that type if necessary for all bswap
18990         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
18991         set in pass_optimize_bswap::execute ().
18992
18993 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
18994
18995         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
18996         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
18997         integer and floating point variants.
18998         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
18999
19000 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
19001
19002         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19003         for all vector modes.
19004
19005 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
19006
19007         PR bootstrap/64612
19008         * doc/sourcebuild.texi (comdat_group): Document.
19009
19010 2015-01-28  Terry Guo  <terry.guo@arm.com>
19011
19012         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19013
19014 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
19015
19016         * toplev.c (print_version): Add param "show_global_state", and
19017         only print GGC and plugin information if it is true.
19018         (init_asm_output): Pass in "true" for the new param when calling
19019         print_version.
19020         (process_options): Likewise.
19021         (toplev::main): Likewise.
19022         * toplev.h (print_version): Add new param to decl.
19023
19024 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
19025
19026         PR ipa/60871
19027         PR ipa/64139
19028         * tree.c (lookup_binfo_at_offset): New function.
19029         (get_binfo_at_offset): Use it.
19030
19031 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
19032
19033         PR ipa/64282
19034         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19035         on vtable being vtable.
19036
19037 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19038
19039         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19040         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19041         -mhotpatch= option.
19042         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19043         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
19044         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19045         Renamed.
19046         (s390_hotpatch_trampoline_halfwords_max): Renamed.
19047         (s390_hotpatch_hw_max): New name.
19048         (s390_hotpatch_trampoline_halfwords): Renamed.
19049         (s390_hotpatch_hw_before_label): New name.
19050         (get_hotpatch_attribute): Removed.
19051         (s390_hotpatch_hw_after_label): New name.
19052         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19053         attribute.
19054         (s390_attribute_table): Ditto.
19055         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19056         (s390_function_num_hotpatch_hw): New name.
19057         Remove special handling of inline functions and hotpatching.
19058         Return number of nops before and after the function label.
19059         (s390_can_inline_p): Removed.
19060         (s390_asm_output_function_label): Emit a configurable number of nops
19061         after the function label.
19062         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19063         (TARGET_CAN_INLINE_P) Removed.
19064         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19065
19066 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19067             Jiong Wang  <jiong.wang@arm.com>
19068
19069         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19070         of scratch reg.
19071         (cb<optab><mode>1): Likewise.
19072         * config/aarch64/iterators.md (bcond): New define_code_attr.
19073
19074 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19075
19076         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19077         memory accesses.
19078
19079 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19080
19081         * config/s390/s390.c (s390_register_move_cost): Increase costs for
19082         FPR->GPR moves.
19083
19084 2015-01-27  Richard Biener  <rguenther@suse.de>
19085
19086         * tree-vrp.c (update_value_range): Intersect the range with
19087         old recorded SSA name range information.
19088
19089 2015-01-27  Nick Clifton  <nickc@redhat.com>
19090
19091         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19092         BC, DE and HL registers directly, not via AX.
19093         When decrementing the stack pointer by a large amount, transfer SP
19094         into AX and perform the subtraction there.
19095         (rl78_expand_epilogue): Perform the inverse of the above
19096         enhancements.
19097
19098 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19099
19100         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19101
19102 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19103             Yury Gribov  <y.gribov@samsung.com>
19104
19105         PR ubsan/64741
19106         * ubsan.c (ubsan_source_location): Refactor code.
19107         (ubsan_type_descriptor): Update type size. Refactor code.
19108
19109 2015-01-27  Richard Biener  <rguenther@suse.de>
19110
19111         PR tree-optimization/56273
19112         PR tree-optimization/59124
19113         PR tree-optimization/64277
19114         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19115         from the first VRP pass.
19116
19117 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19118
19119         PR ipa/64776
19120         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19121         handle the first argument in the same loop as all the other arguments.
19122
19123         PR rtl-optimization/61058
19124         * jump.c (cleanup_barriers): Update basic block boundaries
19125         if BLOCK_FOR_INSN is non-NULL on PREV.
19126
19127 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19128
19129         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19130         bounds narrowing, already instrumented calls and calls to
19131         not instrumentable functions.
19132
19133 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
19134
19135         PR tree-optimization/64807
19136         * wide-int.cc (wi::divmod_internal): Clear
19137         b_dividend[dividend_blocks_needed].
19138
19139 2015-01-26  DJ Delorie  <dj@redhat.com>
19140
19141         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19142         volatile memory references.
19143
19144 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
19145
19146         PR target/49263
19147         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19148         remove_insn.
19149         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19150         shifts if it already fits into K08.
19151
19152 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
19153
19154         PR ipa/64730
19155         * ipa-inline.c (inline_small_functions): Print "unknown" even
19156         if edge->call_stmt is non-NULL, but has builtins or unknown
19157         location.
19158
19159         PR middle-end/64421
19160         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19161         with asterisk, skip the first character.
19162
19163 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19164
19165         PR target/64806
19166         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19167         order change.
19168
19169 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
19170
19171         PR target/64795
19172         * config/i386/i386.md (*movdi_internal): Also check operand 0
19173         to determine TYPE_LEA operand.
19174         (*movsi_internal): Ditto.
19175
19176 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
19177
19178         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19179         OPTION_MASK_QUAD_MEMORY_ATOMIC.
19180
19181 2015-01-26  Renlin Li  <renlin.li@arm.com>
19182
19183         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19184         the comment.
19185         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19186         for higher part.
19187
19188 2015-01-26  Richard Biener  <rguenther@suse.de>
19189
19190         PR middle-end/64764
19191         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19192         combining two BIT_AND_EXPR predicates.
19193
19194 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
19195
19196         PR bootstrap/64754
19197         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19198
19199 2015-01-26  Terry Guo  <terry.guo@arm.com>
19200
19201         * config/arm/arm.c (arm_file_start): Update the assignment of
19202         Tag_ABI_HardFP_use.
19203
19204 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
19205
19206         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19207         pipeline model.
19208         config/arm/arm.md: Include the new Cortex-A57 model.
19209         (generic_sched): Don't use generic_sched when tuning for
19210         Cortex-A57.
19211
19212 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
19213             Uros Bizjak  <ubizjak@gmail.com>
19214
19215         * config/i386/i386.c (get_builtin_code_for_version): Add
19216         support for BMI and BMI2 multiversion functions.
19217
19218 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19219
19220         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19221         (extract_bit_field): Likewise.
19222         (extract_low_bits): Likewise.
19223         (expand_mult): Likewise.
19224         (expand_mult_highpart_adjust): Likewise.
19225
19226 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19227
19228         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19229         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19230         * config/i386/i386.c (processor_model): Add
19231         M_INTEL_COREI7_BROADWELL.
19232         (arch_names_table): Add "broadwell".
19233
19234 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
19235
19236         PR target/49263
19237         PR target/53987
19238         PR target/64345
19239         PR target/59533
19240         PR target/52933
19241         PR target/54236
19242         PR target/51244
19243         * config/sh/sh-protos.h
19244         (sh_extending_set_of_reg::can_use_as_unextended_reg,
19245         sh_extending_set_of_reg::use_as_unextended_reg,
19246         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19247         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19248         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19249         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19250         (sh_treg_insns): New class.
19251         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19252         (scope_counter): New class.
19253         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19254         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19255         sh_extending_set_of_reg::can_use_as_unextended_reg,
19256         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19257         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19258         sh_split_treg_set_expr): New functions.
19259         (addsubcosts): Handle treg_set_expr.
19260         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19261         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19262         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19263         (sh_insn_operands_modified_between_p): Make non-static.
19264         * config/sh/predicates.md (zero_extend_movu_operand): Allow
19265         simple_mem_operand in addition to displacement_mem_operand.
19266         (zero_extend_operand): Don't allow zero_extend_movu_operand.
19267         (treg_set_expr, treg_set_expr_not_const01,
19268         arith_reg_or_treg_set_expr): New predicates.
19269         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19270         arith_or_int_operand instead of logical_operand.  Convert to
19271         insn_and_split.  Try to optimize constant operand in splitter.
19272         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
19273         (*tstqi_t_zero): Delete.
19274         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19275         (tstsi_t_and_not): Delete.
19276         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19277         Convert to insn_and_split.
19278         (unnamed split, tstsi_t_zero_extract_xor,
19279         tstsi_t_zero_extract_subreg_xor_little,
19280         tstsi_t_zero_extract_subreg_xor_big): Delete.
19281         (*tstsi_t_shift_mask): New insn_and_split.
19282         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19283         to recombine with surrounding insns when splitting.
19284         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19285         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19286         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19287         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19288         (*cbranch_div0s: Delete.
19289         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
19290         Try to recombine with surrounding insns when splitting.  Add operand
19291         order variants.
19292         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19293         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19294         *addc_r_r_msb, *addc_2r_msb): Delete.
19295         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
19296         order variant.
19297         (*addc_negreg_t): New insn_and_split.
19298         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
19299         Try to recombine with surrounding insns when splitting.
19300         Add operand order variants.
19301         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19302         insn_and_split patterns.
19303         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
19304         surrounding insns when splitting.
19305         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19306         (*rotcl): Likewise.  Add zero_extract variant.
19307         (*ashrsi2_31): New insn_and_split.
19308         (*negc): Convert to insn_and_split.  Use treg_set_expr.
19309         (*zero_extend<mode>si2_disp_mem): Update comment.
19310         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19311         condition.
19312         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
19313         with surrounding insns when splitting.
19314         (any_treg_expr_to_reg): New insn_and_split.
19315         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19316         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19317         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19318         *zero_extract_2): New single bit zero extract patterns.
19319         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19320         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19321         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19322         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19323         set destination.
19324         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19325         register_operand for set source.
19326
19327 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
19328
19329         * i386.opt (prefetch_sse): New targetsave.
19330         * i386.c (ix86_function_specific_save): Save prefetch_sse.
19331         (ix86_function_specific_restore): Restore prefetch_sse and initialize
19332         ix86_cost/ix86_tune_cost.
19333
19334 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19335
19336         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19337         Support the JIT by using 0 as the language type.
19338
19339 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
19340
19341         PR target/64317
19342         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
19343         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19344         (mark_regno_live, process_bb_lives): Pass new parameter value to
19345         make_hard_regno_born.
19346
19347 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19348
19349         PR rtl-optimization/63637
19350         PR rtl-optimization/60663
19351         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19352         if elt->cost is MAX_COST for ASM_OPERANDS.
19353         (find_sets_in_insn): Fix up comment typo.
19354         (cse_insn): Don't set src_volatile for all non-volatile
19355         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19356         or with "memory" clobber.  Set elt->cost to MAX_COST
19357         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
19358         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19359
19360 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
19361
19362         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19363         alternative 1.
19364
19365 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
19366
19367         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19368         libgcc/config/i386/elf-lib.h.
19369
19370 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19371
19372         PR driver/64737
19373         * gcc.c (print_configuration): Don't print a blank line at the end
19374         here...
19375         (run_attempt): ... but here unstead.
19376
19377         PR middle-end/64734
19378         * omp-low.c (scan_sharing_clauses): Don't ignore
19379         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19380         on target data/update constructs.
19381
19382 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19383
19384         PR target/50928
19385         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19386         (DEBUG_RELOAD): Removed define.
19387         (m32c_limit_reload_class): Enable traces with if DEBUG0.
19388         (m32c_function_arg): Added a type cast.
19389         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19390         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19391         * config/m32c/bitops.md (andqi3_16): Likewise.
19392         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19393         (push_a01_l): Likewise.
19394
19395 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19396
19397         PR jit/64721
19398         * main.c (main): Construct toplev instances with init_signals=true.
19399         * toplev.c (general_init): Add param "init_signals", and use it to
19400         conditionalize the calls to signal and host_hooks.extra_signals.
19401         (toplev::toplev): Add param "init_signals".
19402         (toplev::main): When invoking general_init, pass m_init_signals
19403         to control whether signal-handlers are installed.
19404         * toplev.h (toplev::toplev): Add param "init_signals".
19405         (toplev::m_init_signals): New field.
19406
19407 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
19408
19409         PR jit/64722
19410         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19411         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19412         latter may be affected by the former (e.g. on i686).
19413
19414 2015-01-23  Martin Liska  <mliska@suse.cz>
19415
19416         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19417         false positive during profiledbootstrap.
19418
19419 2015-01-23  Tom de Vries  <tom@codesourcery.com>
19420
19421         PR libgomp/64672
19422         * lto-opts.c (lto_write_options): Output non-explicit conservative
19423         -fno-openacc.
19424         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
19425         (append_compiler_options): Pass -fopenacc through.
19426
19427 2015-01-23  Tom de Vries  <tom@codesourcery.com>
19428
19429         PR libgomp/64707
19430         * lto-opts.c (lto_write_options): Output non-explicit conservative
19431         -fno-openmp.
19432         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
19433         (append_compiler_options): Pass -fopenmp through.
19434
19435 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
19436
19437         PR debug/64511
19438         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
19439         GTY markup.
19440
19441         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
19442         * diagnostic.def (DK_ICE_NOBT): New kind.
19443         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
19444         like DK_ICE, but never print backtrace.
19445         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
19446         (internal_error_no_backtrace): New function.
19447         * gcc.c (execute): Use internal_error_no_backtrace instead of
19448         internal_error.
19449
19450 2015-01-22  Jeff Law  <law@redhat.com>
19451
19452         PR target/52076
19453         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
19454         improve code density for small immediate to memory case.
19455         (insv): Better handle bitfield assignments when the field is
19456         being set to all ones.
19457         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
19458         operand predicate.
19459
19460 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19461             Jakub Jelinek  <jakub@redhat.com>
19462
19463         PR middle-end/64729
19464         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
19465         for !TARGET_LIBC_PROVIDES_SSP version and
19466         -fstack-protector-{all,strong,explicit} otherwise.
19467         * config/freebsd.h (LINK_SSP_SPEC): Handle
19468         -fstack-protector-{strong,explicit}.
19469
19470 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
19471             H.J. Lu  <hongjiu.lu@intel.com>
19472
19473         PR ipa/64694
19474         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
19475         heap.
19476
19477 2015-01-22  Wei Mi  <wmi@google.com>
19478
19479         PR rtl-optimization/64557
19480         * dse.c (record_store): Call get_addr for mem_addr.
19481         (check_mem_read_rtx): Likewise.
19482
19483 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
19484
19485         * fold-const.c (const_binop): Add early return for non-tcc_binary.
19486
19487 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
19488
19489         * toplev.c (init_local_tick): Process the failure when read
19490         fails for random_seed.
19491
19492         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
19493         'pretty_name' to avoid memory overflow.
19494
19495 2015-01-22  Richard Biener  <rguenther@suse.de>
19496
19497         PR middle-end/64728
19498         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
19499         abnormal coalescing on undefined SSA names.
19500
19501 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
19502
19503         PR target/64688
19504         PR target/64477
19505         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
19506         for alternative 3.
19507         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
19508
19509 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
19510
19511         PR middle-end/63325
19512         * fold-const.c (fold_checksum_tree): Don't include value of
19513         expr->decl_with_vis.symtab_node in the checksum.
19514
19515 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19516
19517         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
19518
19519 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19520
19521         PR driver/64690
19522         * gcc.c (insert_comments): New function.
19523         (try_generate_repro): Call it.
19524         (append_text): Removed.
19525
19526 2015-01-22  Richard Biener  <rguenther@suse.de>
19527
19528         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
19529         with IL incompatible options.  Properly honor user optimize
19530         attributes.
19531
19532 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
19533
19534         PR rtl-optimization/64682
19535         * combine.c (distribute_notes): When moving a death note for
19536         a register that is set in the new I2, make sure to put it
19537         before that new I2.
19538
19539 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
19540
19541         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
19542         not TARGET_DEFAULT.
19543
19544 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
19545
19546         PR debug/64511
19547         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
19548         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
19549         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
19550
19551         PR sanitizer/64706
19552         * doc/invoke.texi (-fsanitize=vptr): Document.
19553
19554         PR rtl-optimization/62078
19555         * dse.c: Include cfgcleanup.h.
19556         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
19557         anything call purge_all_dead_edges and cleanup_cfg at the end
19558         of the pass.
19559
19560 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
19561
19562         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
19563         edges.
19564
19565 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19566
19567         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
19568         decl attribute.
19569
19570 2015-01-21  David Sherwood  <david.sherwood@arm.com>
19571             Tejas Belagod <Tejas.Belagod@arm.com>
19572
19573         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
19574         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
19575         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
19576         Removed.
19577
19578 2015-01-21  David Sherwood  <david.sherwood@arm.com>
19579             Tejas Belagod <Tejas.Belagod@arm.com>
19580
19581         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
19582         (aarch64_reverse_mask): New decls.
19583         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
19584         (insn_count): New mode_attr.
19585         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
19586         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
19587         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
19588         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
19589         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
19590         (aarch64_simd_st4): New patterns.
19591         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
19592         (aarch64_reverse_mask): New functions.
19593
19594 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
19595
19596         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
19597         Declare.
19598         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
19599         addressing modes for BE.
19600         (aarch64_print_operand): Add 'R' specifier.
19601         (aarch64_simd_disambiguate_copy): Delete.
19602         (aarch64_simd_emit_reg_reg_move): New function.
19603         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
19604         in define_splits for structural moves.
19605         (mov<mode>): Use less restrictive predicates.
19606         (*aarch64_mov<mode>): Simplify and only allow for LE.
19607         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
19608
19609 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
19610
19611         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
19612
19613 2015-01-21  Richard Henderson  <rth@redhat.com>
19614
19615         PR target/64669
19616         * ccmp.c (used_in_cond_stmt_p): Remove.
19617         (expand_ccmp_expr): Don't use it.
19618
19619 2015-01-21  Nick Clifton  <nickc@redhat.com>
19620
19621         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
19622         PARALLELs.
19623
19624 2015-01-21  Richard Biener  <rguenther@suse.de>
19625
19626         PR middle-end/64313
19627         * tree-core.h (builtin_info, builtin_info_type): Turn from
19628         an object with two arrays into an array of an object with
19629         decl and two flags, implicit_p and declared_p.
19630         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
19631         set_builtin_decl, set_builtin_decl_implicit_p,
19632         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
19633         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
19634         * builtins.c (builtin_info): Adjust.
19635         * gimplify.c (gimplify_addr_expr): References to builtins
19636         that have been declared by the user makes them eligible for
19637         use by the compiler.  Call set_builtin_decl_implicit_p on them.
19638
19639 2015-01-20  Jeff Law  <law@redhat.com>
19640
19641         PR target/59946
19642         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
19643         allow pc-relative addresses in operand predicates or constraints.
19644
19645 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
19646
19647         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
19648         neon on aarch32 processors for stringops.
19649
19650 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19651
19652         PR ipa/63576
19653         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
19654
19655 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19656
19657         PR lto/45375
19658         * ipa-inline.c: Include lto-streamer.h
19659         (report_inline_failed_reason): Output source file differences and
19660         flags on optimization/target node mismatch.
19661         (can_inline_edge_p): Consider caller to be the outer inline function;
19662         be less restrictive about matching opimize and optimize_size attributes.
19663         (inline_account_function_p): Break out from ...
19664         (inline_small_functions): ... here.
19665         * ipa-inline-transform.c (clone_inlined_nodes): Use
19666         inline_account_function_p.
19667         (inline_call): Use optimize attribution; use inline_account_function_p.
19668         (inline_transform): Use opt_for_fn.
19669         * ipa-inline.h (inline_account_function_p): Declare.
19670
19671 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
19672
19673         PR debug/64663
19674         * dwarf2out.c (decl_piece_node): Don't put bitsize into
19675         mode if bitsize <= 0.
19676         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
19677         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
19678         sizes and positions.
19679
19680 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
19681
19682         * config/nios2/nios2.c (nios2_asm_file_end): Implement
19683         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
19684         needed.
19685         (TARGET_ASM_FILE_END): Define.
19686
19687 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19688
19689         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
19690         (struct tune_params): Use the enum.
19691         * arm.c (arm_*_tune): Update.
19692         (arm_option_override): Update.
19693
19694 2015-01-20  Richard Biener  <rguenther@suse.de>
19695
19696         PR ipa/64684
19697         * ipa-reference.c (add_static_var): Inline ...
19698         (analyze_function): ... here after splitting out from ...
19699         (is_proper_for_analysis): ... this.
19700
19701 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
19702
19703         PR target/64149
19704         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
19705         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
19706         replace the conditional with it's true branch.
19707         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
19708         (arm_lra_p): Remove.
19709
19710 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
19711
19712         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
19713
19714 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19715
19716         * config/tilegx/mul-tables.c: Move symtab.h include after
19717         coretypes.h include.
19718         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
19719         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
19720         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
19721         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
19722         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
19723
19724 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
19725
19726         PR bootstrap/64676
19727         Revert:
19728         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
19729
19730         PR rtl-optimization/64081
19731         * loop-iv.c (def_pred_latch_p): New function.
19732         (latch_dominating_def): Allow specific cases with non-single
19733         definitions.
19734         (iv_get_reaching_def): Likewise.
19735         (check_complex_exit_p): New function.
19736         (check_simple_exit): Use check_complex_exit_p to allow certain cases
19737         with exits not executing on any iteration.
19738
19739 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19740
19741         PR lto/45375
19742         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
19743         to set branch cost.
19744
19745 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19746
19747         PR lto/45375
19748         * i386.c (gate): Check flag_expensive_optimizations and
19749         optimize_size.
19750         (ix86_option_override_internal): Drop optimize_size condition
19751         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
19752         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
19753         MASK_PREFER_AVX128.
19754         (ix86_avx256_split_vector_move_misalign,
19755         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
19756         * sse.md (all uses of TARGET_PREFER_AVX128): Add
19757         optimize_insn_for_speed_p check.
19758
19759 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
19760
19761         * config/mips/mips.h (FP_ASM_SPEC): New define.
19762         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
19763         instead.
19764
19765 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
19766
19767         PR target/53988
19768         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
19769         nullptr for insn when reaching the first insn.
19770         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
19771         (sh_insn_operands_modified_between_p): Add nullptr check.
19772         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
19773         sign extending mem load if the insn contains any UNSPEC or
19774         UNSPEC_VOLATILE.
19775
19776 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19777
19778         * params.def (inline-unit-growth): Drop to 15%.
19779         * invoke.texi (inline-unit-growth): Document change.
19780
19781 2015-01-19  Martin Liska  <mliska@suse.cz>
19782
19783         PR ipa/64668
19784         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
19785         function for second argument of OBJ_TYPE_REF.
19786
19787 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19788
19789         PR ipa/64218
19790         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
19791         whether function is an alias.
19792
19793 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19794
19795         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
19796         cases.
19797
19798 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
19799
19800         PR rtl-optimization/64671
19801         * lra-remat.c (operand_to_remat): Don't consider jump and call
19802         insns.
19803
19804 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
19805
19806         PR target/59828
19807         * config/rs6000/default64.h: Include rs6000-cpus.def.
19808         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
19809         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
19810         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
19811         and POWER8.
19812         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
19813         POWER8.
19814         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
19815         pseudo-op to specify assembler dialect.
19816
19817 2015-01-19  Martin Liska  <mliska@suse.cz>
19818
19819         PR ipa/64664
19820         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
19821         Handle safe potentially removed nodes during filtering.
19822
19823 2015-01-19  Martin Liska  <mliska@suse.cz>
19824
19825         * doc/extend.texi (no_icf): Add new attribute description.
19826         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
19827         where the pass attempts to merge a function with no_icf attribute.
19828
19829 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19830
19831         PR target/64532
19832         * doc/md.texi (ARM Options): Document register constraints.
19833
19834 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
19835             Andrew Pinski  <apinski@cavium.com>
19836
19837         PR target/64304
19838         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
19839         (ashl<mode>3): Don't expand if operands[2] is not constant.
19840
19841 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19842
19843         PR target/64448
19844         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
19845         Match xor-and-xor RTL pattern.
19846
19847 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
19848
19849         PR rtl-optimization/64081
19850         * loop-iv.c (def_pred_latch_p): New function.
19851         (latch_dominating_def): Allow specific cases with non-single
19852         definitions.
19853         (iv_get_reaching_def): Likewise.
19854         (check_complex_exit_p): New function.
19855         (check_simple_exit): Use check_complex_exit_p to allow certain cases
19856         with exits not executing on any iteration.
19857
19858 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
19859
19860         * common.opt (fgraphite): Fix a typo.
19861
19862 2015-01-19  Felix Yang  <felix.yang@huawei.com>
19863
19864         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
19865         pattern.
19866         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
19867         uminp, smax_nanp, smin_nanp): New builtins.
19868         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
19869         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
19870         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
19871         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
19872         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
19873         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
19874         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
19875         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
19876         vpminnms_f32): Rewrite using builtin functions.
19877
19878 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
19879
19880         PR libgomp/64625
19881         * omp-low.c (offload_symbol_decl): Remove variable.
19882         (get_offload_symbol_decl): Remove function.
19883         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
19884         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
19885         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
19886         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
19887         BUILT_IN_GOACC_UPDATE don't pass it at all.
19888
19889 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
19890
19891         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
19892         callers.
19893
19894 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
19895
19896         * ipa-chkp.c (chkp_produce_thunks): Add early param
19897         to split thunks production into two passes.  Keep
19898         'always_inline' function bodies after the first pass.
19899         (pass_data_ipa_chkp_early_produce_thunks): New.
19900         (pass_ipa_chkp_early_produce_thunks): New.
19901         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
19902         chkp_produce_thunks signature.
19903         (make_pass_ipa_chkp_early_produce_thunks): New.
19904         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
19905         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
19906         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
19907
19908 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
19909
19910         * cgraph.c (cgraph_node::dump): Dump profile flags.
19911
19912 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
19913
19914         PR target/64652
19915         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
19916         reg appear first in the parallel.
19917
19918 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
19919
19920         * ipa-reference.c (set_reference_optimization_summary,
19921         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
19922         disabled.
19923         (ignore_module_statics): New static var.
19924         (propagate_bits): If ipa-reference is disabled, do not look into local
19925         properties.
19926         (analyze_function): Disable analysis when ipa_reference is disabled.
19927         (generate_summary): Do not dump when reference is disabled;
19928         collect vars accessed from functions with ipa-reference disabled.
19929         (get_read_write_all_from_node): When ipa-reference is disabled, use the
19930         node flags.
19931         (gate): Enable for LTO.
19932         (ignore_edge_p): New function.
19933         (propagate): Skip functions w/o ipa-reference analysis.
19934         * optc-save-gen.awk: Handle optimize_debug correctly.
19935         * opth-gen.awk: Likewise.
19936         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
19937         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
19938         fira-share-save-slots, fira-share-spill-slots,
19939         fmodulo-sched-allow-regmoves, fpartial-inlining,
19940         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
19941         ftracer, ftree-parallelize-loops, fassociative-math,
19942         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
19943         Optimization
19944         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
19945         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
19946         Optimization.
19947         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
19948         Fix for IPA.
19949
19950 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
19951
19952         PR ipa/64378
19953         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
19954         flag correctly.
19955         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
19956
19957 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
19958
19959         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
19960         Remove duplicate option listings.
19961
19962 2015-01-18  Felix Yang  <felix.yang@huawei.com>
19963
19964         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
19965         (autofdo_source_profile::get_callsite_total_count,
19966         function_instance::get_function_instance_by_decl,
19967         string_table::get_index, string_table::get_index_by_decl,
19968         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
19969         Fix comment typos. Reformatting and minor code rearrangement.
19970
19971 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
19972
19973         * config/rs6000/rs6000.md (probe_stack): Delete.
19974         (probe_stack_address): New.
19975
19976 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
19977
19978         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
19979         to test for 32-bit ABIs, not !TARGET_POWERPC64.
19980
19981 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
19982
19983         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
19984         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
19985         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
19986         snafu.
19987         (rs6000_libcall_value): Use the new function.
19988
19989 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
19990
19991         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
19992
19993 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
19994
19995         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
19996         implement a more precise life analysis for it during backward scan.
19997
19998 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
19999
20000         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20001
20002 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
20003
20004         PR rtl-optimization/52773
20005         * calls.c (emit_library_call_value): When pushing arguments use
20006         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20007         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
20008         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20009
20010 2015-01-17  Jeff Law  <law@redhat.com>
20011
20012         PR rtl-optimization/32790
20013         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20014         not ZERO_EXTEND in SET_DESTs.
20015
20016 2015-01-17  Alan Modra  <amodra@gmail.com>
20017
20018         * cprop.c (do_local_cprop): Revert last change.
20019
20020 2015-01-16  DJ Delorie  <dj@redhat.com>
20021             Nick Clifton  <nickc@redhat.com>
20022
20023         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20024         (addhi3_real): Likewise.  Fix [HL+0] syntax.
20025         (subqi3_real): Likewise.
20026         (subhi3_real): Likewise.
20027         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
20028         (cbranchhi4_real): Likewise.
20029         (cbranchhi4_real_inverted): Likewise.
20030         (cbranchsi4_real_lt): Likewise.
20031         (cbranchsi4_real_ge): Likewise.
20032         (cbranchsi4_real_ge): Likewise.
20033         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20034         (sub<mode>3_virt): Likewise.
20035         (cbranchqi4_virt): Likewise.
20036         (cbranchhi4_virt): Likewise.
20037         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20038         always use '[reg+imm]' even when imm is zero.
20039         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20040         (rl78_general_operand): New.
20041         (rl78_nonimmediate_operand): New.
20042         (rl78_nonfar_operand): Use them.
20043         (rl78_nonfar_nonimm_operand): Likewise.
20044         (rl78_stack_based_mem): Fix.
20045         * config/rl78/constraints.md (Ibqi): New.
20046         (IBqi): New.
20047         (Wsa): New.
20048         (Wsf): New.
20049         (Cs1): Fix.
20050         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20051         (iorqi3): Likewise.
20052         (xorqi3): Likewise.
20053         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20054
20055         * config/rl78/constrains (Qs8): New constraint.
20056         * config/rl78/rl78.c (rl78_flags_already_set): New function.
20057         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20058         * config/rl78/rl78-real.md (update_Z): New attribute.
20059         Update patterns to set it.
20060         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20061         shorter compare and branch sequence can be used.
20062         (cbranchhi4_real): Likewise.
20063         (cbranchhi4_real_inverted): Likewise.
20064
20065         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20066         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20067         address space.
20068         * config/rl78/rl78.c (rl78_get_name_encoding): New.
20069         (rl78_option_override): Allow -mes0 only if C.
20070         (characterize_address): Support subregs of symbol_refs.
20071         (rl78_addr_space_address_mode): Move.  Add __near.
20072         (rl78_far_p): Likewise.
20073         (rl78_addr_space_pointer_mode): Likewise.
20074         (rl78_as_legitimate_address): Likewise.
20075         (rl78_addr_space_subset_p): Likewise.
20076         (rl78_addr_space_convert): Likewise.
20077         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20078         symbols with -mes0.
20079         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
20080         addressing.
20081         (rl78_alloc_physical_registers_op1): Change logic to prefer
20082         symbol[BC] addressing.
20083         (frodata_section): New.
20084         (rl78_asm_init_sections): Initialize it.
20085         (rl78_select_section): Put __far readonly symbols in .frodata.
20086         (rl78_make_type_far): New.
20087         (rl78_insert_attributes): Force all readonly symbols to be
20088         __far when -mes0.
20089         (rl78_asm_out_integer): New.
20090         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20091         * config/rl78/rl78.opt (-mes0): New.
20092
20093         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20094         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20095         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20096         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20097         (rl78_saddr_p): New.
20098         (rl78_output_aligned_common): New.
20099         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20100         (rl78_handle_saddr_attribute): New.
20101         (rl78_handle_naked_attribute): New.
20102         (rl78_attribute_table): Add saddr.
20103         (rl78_print_operand_1): Don't print '!' on saddr operands.
20104         (rl78_print_operand_1): Strip encodings.
20105         (rl78_sfr_p): New.
20106         (rl78_strip_name_encoding): New.
20107         (rl78_attrlist_to_encoding): New.
20108         (rl78_encode_section_info): New.
20109         (rl78_asm_init_sections): New.
20110         (rl78_select_section): New.
20111         (rl78_output_labelref): New.
20112         (rl78_output_aligned_common): New.
20113         (rl78_asm_out_integer): New.
20114         (rl78_asm_ctor_dtor): New.
20115         (rl78_asm_constructor): New.
20116         (rl78_asm_destructor): New.
20117
20118         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20119         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20120         (transcode_memory_rtx): Update.
20121         (rl78_expand_epilogue): Use A_REG instead of 0.
20122
20123 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20124
20125         * config/arm/arm-protos.h (struct tune_params): New field
20126         sched_autopref_queue_depth.
20127         * config/arm/arm.c (sched-int.h): Include header.
20128         (arm_first_cycle_multipass_dfa_lookahead_guard,)
20129         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20130         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20131         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20132         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20133         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20134         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20135         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20136         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
20137         * config/arm/t-arm (arm.o): Update.
20138         * haifa-sched.c (update_insn_after_change): Update.
20139         (rank_for_schedule): Use auto-prefetcher model, if requested.
20140         (autopref_multipass_init): New static function.
20141         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20142         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20143         variable for debug dumps.
20144         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20145         (autopref_multipass_dfa_lookahead_guard): New global function that
20146         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20147         (init_h_i_d): Update.
20148         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20149         * sched-int.h (enum autopref_multipass_data_status): New const enum.
20150         (autopref_multipass_data_): Structure for auto-prefetcher data.
20151         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20152         (struct _haifa_insn_data:autopref_multipass_data): New field.
20153         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20154         (autopref_multipass_dfa_lookahead_guard): Declare.
20155
20156 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20157
20158         * rtlanal.c (get_base_term): Handle SCRATCH.
20159
20160 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20161
20162         * config/aarch64/aarch64.c
20163         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20164         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20165         * config/arm/arm.c
20166         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20167         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20168
20169 2015-01-17  Alan Modra  <amodra@gmail.com>
20170
20171         * cprop.c (do_local_cprop): Disallow replacement of fixed
20172         hard registers.
20173
20174 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20175
20176         PR target/62066
20177         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20178         early return 0.
20179
20180 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20181
20182         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20183         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20184
20185 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20186
20187         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20188         * config/arm/thumb1.md: ... Here.
20189
20190 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20191
20192         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20193         TImode for TARGET_32BIT.
20194
20195 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20196
20197         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20198         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20199         as ...
20200         (rs6000_abi_word_mode): New function.
20201
20202 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20203
20204         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20205         instead of UNITS_PER_WORD to describe the size of stack slots.
20206
20207 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20208
20209         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20210         as rs6000_promote_function_mode.  Move comment to there.
20211         (rs6000_promote_function_mode): New function.
20212
20213 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
20214
20215         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20216         -mpowerpc64 is active.
20217
20218 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
20219
20220         PR middle-end/64353
20221         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20222         virtuals on start.
20223
20224 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
20225
20226         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20227         introduced in revision 219724.
20228
20229 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20230             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20231
20232         PR target/64263
20233         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20234         destination is not a GP reg.
20235         (*movdi_aarch64): Likewise.
20236
20237 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
20238
20239         PR target/64623
20240         * config/rs6000/default64.h: Revert ISA change.
20241
20242 2015-01-16  Richard Biener  <rguenther@suse.de>
20243
20244         PR middle-end/64614
20245         * tree-ssa-uninit.c: Include tree-cfg.h.
20246         (MAX_SWITCH_CASES): New define.
20247         (convert_control_dep_chain_into_preds): Handle switch statements.
20248         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20249         (normalize_one_pred_1): Do not split bit-manipulations.
20250         Record (x & CST).
20251
20252 2015-01-16  Richard Biener  <rguenther@suse.de>
20253
20254         PR tree-optimization/64568
20255         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20256         complex load rewriting for TARGET_MEM_REFs.
20257
20258 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
20259
20260         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20261
20262 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
20263
20264         PR target/64149
20265         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20266         variable.
20267         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20268         (aarch64_lra_p): Remove.
20269
20270 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
20271
20272         PR target/64363
20273         * ipa-chkp.h (chkp_instrumentable_p): New.
20274         * ipa-chkp.c: Include tree-inline.h.
20275         (chkp_instrumentable_p): New.
20276         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20277         Fix processing of not instrumentable functions.
20278         (chkp_versioning): Use chkp_instrumentable_p. Warn about
20279         not instrumentable functions.
20280         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20281         chkp_instrumentable_p.
20282         * tree-inline.h (copy_forbidden): New.
20283         * tree-inline.c (copy_forbidden): Not static anymore.
20284
20285 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20286
20287         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20288         ptr1, ptr2 unused.
20289
20290 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20291
20292         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20293         type OP_OUT to OP_INOUT.
20294
20295 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20296
20297         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20298         (high x) y) to y if x and y have the same base.
20299
20300 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
20301
20302         * config/arm/cortex-a57.md: New.
20303         * config/aarch64/aarch64.md: Include it.
20304         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20305         * config/aarch64/aarch64-tune.md: Regenerate.
20306
20307 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
20308
20309         PR target/64015
20310         * ccmp.c (expand_ccmp_next): New function.
20311         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20312         and compare insn sequence.
20313         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20314         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20315         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20316         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20317         (*ccmp_ior): Changed to ccmp_ior<mode>.
20318         (cmp<mode>): New pattern.
20319         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20320         parameters.
20321         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20322
20323 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
20324
20325         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20326         _mm256_bsrli_epi128): New.
20327         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20328
20329 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
20330
20331         * expmed.c (store_bit_field_using_insv): Improve warning message.
20332         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20333
20334 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
20335
20336         PR rtl-optimization/64011
20337         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20338         there is partial overflow.
20339
20340 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20341
20342         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20343         prototype.
20344         (nds32_expand_epilogue_v3pop): Likewise.
20345         * config/nds32/nds32.md (sibcall): Define this for sibling call
20346         optimization.
20347         (sibcall_register): Likewise.
20348         (sibcall_immediate): Likewise.
20349         (sibcall_value): Likewise.
20350         (sibcall_value_register): Likewise.
20351         (sibcall_value_immediate): Likewise.
20352         (sibcall_epilogue): Likewise.
20353         (epilogue): Pass false to indicate this is not a sibcall epilogue.
20354         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20355         (nds32_expand_epilogue_v3pop): Likewise.
20356
20357 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20358
20359         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20360         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20361         (return_internal): New.
20362         (return): Define this named pattern.
20363         (simple_return): Define this named pattern.
20364         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20365         pattern instead of unspec_volatile_func_return.
20366         (nds32_expand_epilogue_v3pop): Likewise.
20367         (nds32_can_use_return_insn): New function.
20368
20369 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20370
20371         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20372         * config/nds32/nds32.md (pop25return): New.
20373         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20374         pop25return pattern.
20375
20376 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20377
20378         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20379         -mforbid-fp-as-gp, and -mex9 options.
20380
20381 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20382
20383         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20384         remove -mgp-direct option.
20385
20386 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20387
20388         * doc/invoke.texi (--param early-inlining-insns): Update default value.
20389         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20390
20391 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20392
20393         * ipa-inline.c (inline_small_functions): Work around hints
20394         cache issue.
20395
20396 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
20397
20398         PR target/59710
20399         * doc/invoke.texi (Option Summary): Document new Nios II
20400         -mgpopt= syntax.
20401         (Nios II Options): Likewise.
20402         * config/nios2/nios2.opt: Add -mgpopt= option support.
20403         Modify existing -mgpopt and -mno-gpopt options to be aliases.
20404         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20405         * config/nios2/nios2.c (nios2_option_override): Adjust
20406         -mgpopt defaulting.
20407         (nios2_in_small_data_p): Return true for explicit small data
20408         sections even with -G0.
20409         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20410         option choices.
20411
20412 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20413
20414         PR ipa/64612
20415         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20416         of comdat locals.
20417         (inline_call): Fix removal of aliases.
20418
20419 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
20420
20421         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
20422         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
20423         * opts.c (common_handle_option): Add -fsanitize=vptr.
20424         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
20425         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
20426         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
20427         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
20428         (ubsan_expand_vptr_ifn): New prototype.
20429         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
20430         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
20431         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
20432         expand_LOOP_VECTORIZED): Make argument nameless, remove
20433         ATTRIBUTE_UNUSED.
20434         (expand_UBSAN_VPTR): New function.
20435         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
20436         in fn spec.
20437         (UBSAN_VPTR): New internal function.
20438         * sanopt.c (tree_map_traits): Renamed to ...
20439         (sanopt_tree_map_traits): ... this.
20440         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
20441         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
20442         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
20443         (maybe_optimize_ubsan_vptr_ifn): New function.
20444         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
20445         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
20446         -fsanitize=vptr.
20447         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
20448         internal calls like pure functions for aliasing, even when they
20449         have other side-effects that prevent making them ECF_PURE.
20450         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
20451         (ubsan_expand_vptr_ifn): New function.
20452
20453 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
20454
20455         PR rtl-optimization/64110
20456         * stmt.c (parse_output_constraint): Process '^' and '$'.
20457         (parse_input_constraint): Ditto.
20458         * lra-constraints.c (process_alt_operands): Process the new
20459         constraints.
20460         * ira-costs.c (record_reg_classes): Process the new constraint
20461         '^'.
20462         * genoutput.c (indep_constraints): Add '^' and '$'.
20463         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
20464         * doc/md.texi: Add description of the new constraints.
20465
20466 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
20467             Bernd Schmidt  <bernds@codesourcery.com>
20468             Cesar Philippidis  <cesar@codesourcery.com>
20469             James Norris  <jnorris@codesourcery.com>
20470             Tom de Vries  <tom@codesourcery.com>
20471             Ilmir Usmanov  <i.usmanov@samsung.com>
20472             Dmitry Bocharnikov  <dmitry.b@samsung.com>
20473             Evgeny Gavrin  <e.gavrin@samsung.com>
20474             Jakub Jelinek  <jakub@redhat.com>
20475
20476         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
20477         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20478         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20479         New function types.
20480         * builtins.c: Include "gomp-constants.h".
20481         (expand_builtin_acc_on_device): New function.
20482         (expand_builtin, is_inexpensive_builtin): Handle
20483         BUILT_IN_ACC_ON_DEVICE.
20484         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
20485         New macros.
20486         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
20487         flag_openmp.
20488         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
20489         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
20490         i386/intelmic-offload.h.
20491         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
20492         to libgomp and its dependencies.
20493         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
20494         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20495         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20496         * config/ia64/hpux.h (LIB_SPEC): Likewise.
20497         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20498         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20499         * doc/generic.texi: Update for OpenACC changes.
20500         * doc/gimple.texi: Likewise.
20501         * doc/invoke.texi: Likewise.
20502         * doc/sourcebuild.texi: Likewise.
20503         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
20504         GF_OMP_FOR_KIND_OACC_LOOP.
20505         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
20506         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
20507         GF_OMP_TARGET_KIND_OACC_UPDATE,
20508         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
20509         Dump more data.
20510         * gimple.c: Update comments for OpenACC changes.
20511         * gimple.def: Likewise.
20512         * gimple.h: Likewise.
20513         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
20514         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20515         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
20516         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
20517         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
20518         appropriate place.
20519         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
20520         * gimplify.c: Include "gomp-constants.h".
20521         Update comments for OpenACC changes.
20522         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
20523         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
20524         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
20525         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
20526         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
20527         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
20528         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
20529         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20530         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20531         OMP_CLAUSE_SEQ.
20532         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
20533         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
20534         OMP_CLAUSE_SET_MAP_KIND.
20535         (gimplify_oacc_cache): New function.
20536         (gimplify_omp_for): Handle OACC_LOOP.
20537         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
20538         OACC_DATA.
20539         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
20540         OACC_EXIT_DATA, OACC_UPDATE.
20541         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
20542         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
20543         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
20544         (gimplify_body): Consider flag_openacc next to flag_openmp.
20545         * lto-streamer-out.c: Include "gomp-constants.h".
20546         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
20547         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
20548         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
20549         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
20550         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
20551         (BUILT_IN_ACC_ON_DEVICE): New builtins.
20552         * omp-low.c: Include "gomp-constants.h".
20553         Update comments for OpenACC changes.
20554         (struct omp_context): Add reduction_map, gwv_below, gwv_this
20555         members.
20556         (extract_omp_for_data, use_pointer_for_field, install_var_field)
20557         (new_omp_context, delete_omp_context, scan_sharing_clauses)
20558         (create_omp_child_function, scan_omp_for, scan_omp_target)
20559         (check_omp_nesting_restrictions, lower_reduction_clauses)
20560         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
20561         Update for OpenACC changes.
20562         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
20563         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
20564         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
20565         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20566         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
20567         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
20568         OMP_CLAUSE_MAP_*.
20569         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
20570         Handle GF_OMP_FOR_KIND_OACC_LOOP.
20571         (expand_omp_target, lower_omp_target): Handle
20572         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20573         GF_OMP_TARGET_KIND_OACC_UPDATE,
20574         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
20575         GF_OMP_TARGET_KIND_OACC_DATA.
20576         (pass_expand_omp::execute, execute_lower_omp)
20577         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
20578         flag_openmp.
20579         (offload_symbol_decl): New variable.
20580         (oacc_get_reduction_array_id, oacc_max_threads)
20581         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
20582         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
20583         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
20584         (oacc_gimple_assign, oacc_initialize_reduction_data)
20585         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
20586         functions.
20587         (is_targetreg_ctx): Remove function.
20588         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
20589         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
20590         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
20591         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
20592         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
20593         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
20594         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
20595         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
20596         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
20597         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
20598         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
20599         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
20600         * tree-core.h: Update comments for OpenACC changes.
20601         (enum omp_clause_map_kind): Remove.
20602         (struct tree_omp_clause): Change type of map_kind member from enum
20603         omp_clause_map_kind to unsigned char.
20604         * tree-inline.c: Update comments for OpenACC changes.
20605         * tree-nested.c: Likewise.  Include "gomp-constants.h".
20606         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
20607         (convert_tramp_reference_stmt, convert_gimple_call): Update for
20608         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
20609         OMP_CLAUSE_SET_MAP_KIND.
20610         * tree-pretty-print.c: Include "gomp-constants.h".
20611         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
20612         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
20613         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
20614         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
20615         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
20616         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
20617         instead of OMP_CLAUSE_MAP_*.
20618         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
20619         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
20620         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
20621         * tree-streamer-in.c: Include "gomp-constants.h".
20622         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
20623         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
20624         * tree-streamer-out.c: Include "gomp-constants.h".
20625         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
20626         OMP_CLAUSE_MAP_*.
20627         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
20628         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
20629         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
20630         * tree.c (omp_clause_num_ops): Update accordingly.
20631         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
20632         Likewise.
20633         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
20634         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
20635         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
20636         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
20637         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
20638         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
20639         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
20640         (OMP_CLAUSE_SET_MAP_KIND): New macro.
20641         * varpool.c (varpool_node::get_create): Consider flag_openacc next
20642         to flag_openmp.
20643         * config/i386/intelmic-offload.h: New file.
20644         * config/nvptx/offload.h: Likewise.
20645
20646 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20647
20648         * explow.h: Remove duplicate contents.
20649         * dojump.h: Likewise.
20650
20651 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
20652
20653         * arm.c (arm_xgene_tune): Add default initializer for instruction
20654         fusion.
20655
20656 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20657
20658         PR ipa/64068
20659         PR ipa/64559
20660         * ipa.c (symbol_table::remove_unreachable_nodes):
20661         Do not put abstract origins into boundary.
20662
20663 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
20664
20665         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
20666         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
20667
20668 2015-01-15  Steve Ellcey  <sellcey@mips.com>
20669
20670         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
20671         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
20672         builtins.def, and chkp-builtins.def.
20673
20674 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
20675
20676         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
20677         ISA 2.7 (POWER8).
20678
20679 2015-01-15  Richard Biener  <rguenther@suse.de>
20680
20681         PR tree-optimization/61743
20682         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
20683         information on PHIs for some simple cases.
20684
20685 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20686
20687         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
20688         Include xgene1.md.
20689         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
20690         * config/arm/arm-cores.def (xgene1): New entry.
20691         * config/arm/arm-tables.opt: Regenerate.
20692         * config/arm/arm-tune.md: Regenerate.
20693         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
20694
20695 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
20696
20697         * tree-if-conv.c: Include hash-map.h.
20698         (aggressive_if_conv): New variable.
20699         (fold_build_cond_expr): Add simplification of non-zero condition.
20700         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
20701         destination block is not always executed.
20702         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
20703         than two predecessors if AGGRESSIVE_IF_CONV is true.
20704         (if_convertible_stmt_p): Fix commentary.
20705         (all_preds_critical_p): New function.
20706         (has_pred_critical_p): New function.
20707         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
20708         BB can have more than two predecessors and all incoming edges can be
20709         critical.
20710         (predicate_bbs): Skip predication for loop exit block, use build2_loc
20711         to compute predicate for true edge.
20712         (find_phi_replacement_condition): Delete this function.
20713         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
20714         Allow interchange PHI arguments if EXTENDED is false.
20715         Change check that block containing reduction statement candidate
20716         is predecessor of phi-block since phi may have more than two arguments.
20717         (phi_args_hash_traits): New helper structure.
20718         (struct phi_args_hash_traits): New type.
20719         (phi_args_hash_traits::hash): New function.
20720         (phi_args_hash_traits::equal_keys): New function.
20721         (gen_phi_arg_condition): New function.
20722         (predicate_scalar_phi): Add handling of phi nodes with more than two
20723         arguments, delete COND and TRUE_BB arguments, insert body of
20724         find_phi_replacement_condition to predicate ordinary phi nodes.
20725         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
20726         delete call of find_phi_replacement_condition and invoke
20727         predicate_scalar_phi with two arguments.
20728         (insert_gimplified_predicates): Add assert that non-predicated block
20729         don't have statements to insert.
20730         (ifcvt_split_critical_edges): New function.
20731         (ifcvt_split_def_stmt): Likewise.
20732         (ifcvt_walk_pattern_tree): Likewise.
20733         (stmt_is_root_of_bool_pattern): Likewise.
20734         (ifcvt_repair_bool_pattern): Likewise.
20735         (ifcvt_local_dce): Likewise.
20736         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
20737         is copy of inner or outer loop force_vectorize field, invoke
20738         ifcvt_split_critical_edges, ifcvt_local_dce and
20739         ifcvt_repair_bool_pattern for aggressive if-conversion.
20740
20741 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
20742
20743         * config/aarch64/aarch64.md: Include xgene1.md.
20744         * config/aarch64/xgene1.md: New file.
20745
20746 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20747
20748         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
20749         xgene1 (APM XGene-1) core definition.
20750         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
20751         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
20752         * doc/invoke.texi: Document -mcpu=xgene1.
20753
20754 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20755
20756         * dojump.h: New header file.
20757         * explow.h: Likewise.
20758         * expr.h: Remove includes.
20759         Move expmed.c prototypes to expmed.h.
20760         Move dojump.c prototypes to dojump.h.
20761         Move alias.c prototypes to alias.h.
20762         Move explow.c prototypes to explow.h.
20763         Move calls.c prototypes to calls.h.
20764         Move emit-rtl.c prototypes to emit-rtl.h.
20765         Move varasm.c prototypes to varasm.h.
20766         Move stmt.c prototypes to stmt.h.
20767         (saved_pending_stack_adjust): Move to dojump.h.
20768         (adjust_address): Move to explow.h.
20769         (adjust_address_nv): Move to emit-rtl.h.
20770         (adjust_bitfield_address): Likewise.
20771         (adjust_bitfield_address_size): Likewise.
20772         (adjust_bitfield_address_nv): Likewise.
20773         (adjust_automodify_address_nv): Likewise.
20774         * explow.c (expr_size): Move to expr.c.
20775         (int_expr_size): Likewise.
20776         (tree_expr_size): Likewise.
20777         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20778         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
20779         * genemit.c (main): Generate includes statistics.h, real.h,
20780         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
20781         stmt.h.
20782         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
20783         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
20784         explow.h, emit-rtl.h, stmt.h.
20785         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
20786         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
20787         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
20788         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
20789         emit-rtl.h, varasm.h, stmt.h.
20790         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
20791         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
20792         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
20793         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
20794         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20795         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
20796         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
20797         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
20798         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
20799         tm.h tree.h varasm.h vec.h wide-int.h.
20800         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20801         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
20802         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
20803         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
20804         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
20805         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
20806         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
20807         * loop-iv.c: Likewise.
20808         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
20809         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
20810         statistics.h stmt.h tree.h varasm.h wide-int.h.
20811         * lra-constraints.c: Likewise.
20812         * lra-eliminations.c: Likewise.
20813         * lra-lives.c: Likewise.
20814         * lra-remat.c: Likewise.
20815         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20816         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
20817         statistics.h stmt.h tree.h varasm.h wide-int.h.
20818         * hw-doloop.c: Likewise.
20819         * ira-color.c: Likewise.
20820         * ira-emit.c: Likewise.
20821         * loop-doloop.c: Likewise.
20822         * loop-invariant.c: Likewise.
20823         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20824         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
20825         statistics.h stmt.h tree.h varasm.h wide-int.h.
20826         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
20827         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
20828         statistics.h stmt.h tree.h varasm.h wide-int.h.
20829         * combine-stack-adj.c: Likewise.
20830         * cse.c: Likewise.
20831         * ddg.c: Likewise.
20832         * ifcvt.c: Likewise.
20833         * ira-costs.c: Likewise.
20834         * jump.c: Likewise.
20835         * lra-coalesce.c: Likewise.
20836         * lra-spills.c: Likewise.
20837         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20838         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
20839         stmt.h varasm.h wide-int.h.
20840         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20841         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
20842         varasm.h.
20843         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
20844         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
20845         statistics.h stmt.h varasm.h wide-int.h.
20846         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
20847         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
20848         varasm.h wide-int.h.
20849         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
20850         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
20851         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
20852         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
20853         statistics.h stmt.h.
20854         * config/tilepro/tilepro.c: Likewise.
20855         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
20856         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
20857         * config/pdp11/pdp11.c: Likewise.
20858         * config/xtensa/xtensa.c: Likewise.
20859         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
20860         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
20861         varasm.h.
20862         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20863         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
20864         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
20865         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20866         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
20867         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
20868         * rtl-chkp.c: Likewise.
20869         * tree-chkp-opt.c: Likewise.
20870         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
20871         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
20872         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
20873         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20874         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
20875         statistics.h stmt.h.
20876         * tree-vect-data-refs.c: Likewise.
20877         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
20878         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20879         rtl.h statistics.h stmt.h varasm.h.
20880         * internal-fn.c: Likewise.
20881         * ipa-icf-gimple.c: Likewise.
20882         * lto-section-out.c: Likewise.
20883         * tree-data-ref.c: Likewise.
20884         * tree-nested.c: Likewise.
20885         * tree-outof-ssa.c: Likewise.
20886         * tree-predcom.c: Likewise.
20887         * tree-pretty-print.c: Likewise.
20888         * tree-scalar-evolution.c: Likewise.
20889         * tree-ssa-strlen.c: Likewise.
20890         * tree-vect-loop.c: Likewise.
20891         * tree-vect-patterns.c: Likewise.
20892         * tree-vect-slp.c: Likewise.
20893         * tree-vect-stmts.c: Likewise.
20894         * tsan.c: Likewise.
20895         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20896         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
20897         stmt.h.
20898         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
20899         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20900         statistics.h stmt.h varasm.h.
20901         * loop-unroll.c: Likewise.
20902         * ubsan.c: Likewise.
20903         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
20904         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
20905         stmt.h varasm.h.
20906         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20907         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
20908         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
20909         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
20910         statistics.h stmt.h.
20911         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
20912         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
20913         statistics.h stmt.h varasm.h.
20914         * gimple-match-head.c: Likewise.
20915         * lto-cgraph.c: Likewise.
20916         * lto-section-in.c: Likewise.
20917         * lto-streamer-in.c: Likewise.
20918         * lto-streamer-out.c: Likewise.
20919         * tree-affine.c: Likewise.
20920         * tree-cfg.c: Likewise.
20921         * tree-cfgcleanup.c: Likewise.
20922         * tree-if-conv.c: Likewise.
20923         * tree-into-ssa.c: Likewise.
20924         * tree-ssa-alias.c: Likewise.
20925         * tree-ssa-copyrename.c: Likewise.
20926         * tree-ssa-dse.c: Likewise.
20927         * tree-ssa-forwprop.c: Likewise.
20928         * tree-ssa-live.c: Likewise.
20929         * tree-ssa-math-opts.c: Likewise.
20930         * tree-ssa-pre.c: Likewise.
20931         * tree-ssa-sccvn.c: Likewise.
20932         * tree-tailcall.c: Likewise.
20933         * tree-vect-generic.c: Likewise.
20934         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20935         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
20936         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20937         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
20938         * varasm.c: Likewise.
20939         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20940         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
20941         varasm.h.
20942         * init-regs.c: Likewise.
20943         * ira.c: Likewise.
20944         * omp-low.c: Likewise.
20945         * stack-ptr-mod.c: Likewise.
20946         * tree-ssa-reassoc.c: Likewise.
20947         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20948         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
20949         varasm.h.
20950         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20951         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
20952         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20953         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
20954         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20955         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
20956         * tree-ssa-phiopt.c: Likewise.
20957         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20958         fixed-value.h hashtab.h real.h statistics.h stmt.h.
20959         * config/fr30/fr30.c: Likewise.
20960         * config/frv/frv.c: Likewise.
20961         * expr.c: Likewise.
20962         * final.c: Likewise.
20963         * optabs.c: Likewise.
20964         * passes.c: Likewise.
20965         * simplify-rtx.c: Likewise.
20966         * stmt.c: Likewise.
20967         * toplev.c: Likewise.
20968         * var-tracking.c: Likewise.
20969         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20970         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
20971         * lower-subreg.c: Likewise.
20972         * postreload-gcse.c: Likewise.
20973         * ree.c: Likewise.
20974         * reginfo.c: Likewise.
20975         * store-motion.c: Likewise.
20976         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20977         fixed-value.h hashtab.h real.h stmt.h varasm.h.
20978         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20979         fixed-value.h hashtab.h statistics.h stmt.h.
20980         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20981         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
20982         * except.c: Likewise.
20983         * explow.c: Likewise.
20984         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20985         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
20986         varasm.h.
20987         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20988         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
20989         * tree-ssa-structalias.c: Likewise.
20990         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20991         fixed-value.h insn-config.h real.h statistics.h.
20992         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20993         fixed-value.h insn-config.h real.h statistics.h stmt.h.
20994         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20995         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
20996         * cfgbuild.c: Likewise.
20997         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20998         fixed-value.h real.h rtl.h statistics.h stmt.h.
20999         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21000         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21001         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21002         fixed-value.h real.h statistics.h stmt.h.
21003         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21004         fixed-value.h real.h statistics.h stmt.h varasm.h.
21005         * cprop.c: Likewise.
21006         * modulo-sched.c: Likewise.
21007         * postreload.c: Likewise.
21008         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21009         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21010         statistics.h stmt.h varasm.h.
21011         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21012         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21013         rtl.h statistics.h stmt.h varasm.h.
21014         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21015         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21016         varasm.h.
21017         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21018         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21019         varasm.h.
21020         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21021         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21022         varasm.h.
21023         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21024         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21025         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21026         function.h real.h statistics.h stmt.h varasm.h.
21027         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21028         insn-config.h real.h statistics.h stmt.h.
21029         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21030         statistics.h stmt.h.
21031         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21032         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21033         statistics.h stmt.h varasm.h.
21034         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21035         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21036         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21037         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21038         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21039         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21040         statistics.h stmt.h varasm.h.
21041         * ipa-polymorphic-call.c: Likewise.
21042         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21043         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21044         statistics.h stmt.h.
21045         * config/c6x/c6x.c: Likewise.
21046         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21047         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21048         statistics.h stmt.h varasm.h.
21049         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21050         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21051         stmt.h varasm.h.
21052         * ipa-split.c: Likewise.
21053         * tree-eh.c: Likewise.
21054         * tree-ssa-dce.c: Likewise.
21055         * tree-ssa-loop-niter.c: Likewise.
21056         * tree-vrp.c: Likewise.
21057         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21058         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21059         stmt.h.
21060         * config/nds32/nds32-fp-as-gp.c: Likewise.
21061         * config/nds32/nds32-intrinsic.c: Likewise.
21062         * config/nds32/nds32-isr.c: Likewise.
21063         * config/nds32/nds32-md-auxiliary.c: Likewise.
21064         * config/nds32/nds32-memory-manipulation.c: Likewise.
21065         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21066         * config/nds32/nds32-predicates.c: Likewise.
21067         * config/nds32/nds32.c: Likewise.
21068         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21069         fixed-value.h hashtab.h real.h statistics.h.
21070         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21071         fixed-value.h hashtab.h real.h statistics.h stmt.h.
21072         * config/arm/arm.c: Likewise.
21073         * config/avr/avr.c: Likewise.
21074         * config/bfin/bfin.c: Likewise.
21075         * config/h8300/h8300.c: Likewise.
21076         * config/i386/i386.c: Likewise.
21077         * config/ia64/ia64.c: Likewise.
21078         * config/iq2000/iq2000.c: Likewise.
21079         * config/m32c/m32c.c: Likewise.
21080         * config/m32r/m32r.c: Likewise.
21081         * config/m68k/m68k.c: Likewise.
21082         * config/mcore/mcore.c: Likewise.
21083         * config/mep/mep.c: Likewise.
21084         * config/mips/mips.c: Likewise.
21085         * config/mn10300/mn10300.c: Likewise.
21086         * config/moxie/moxie.c: Likewise.
21087         * config/pa/pa.c: Likewise.
21088         * config/rl78/rl78.c: Likewise.
21089         * config/rx/rx.c: Likewise.
21090         * config/s390/s390.c: Likewise.
21091         * config/sh/sh.c: Likewise.
21092         * config/sparc/sparc.c: Likewise.
21093         * config/spu/spu.c: Likewise.
21094         * config/stormy16/stormy16.c: Likewise.
21095         * config/v850/v850.c: Likewise.
21096         * config/vax/vax.c: Likewise.
21097         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21098         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21099         * config/msp430/msp430.c: Likewise.
21100         * predict.c: Likewise.
21101         * value-prof.c: Likewise.
21102         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21103         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21104         * config/microblaze/microblaze.c: Likewise.
21105         * config/nios2/nios2.c: Likewise.
21106         * config/rs6000/rs6000.c: Likewise.
21107         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21108         insn-config.h real.h rtl.h statistics.h stmt.h.
21109         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21110         insn-config.h real.h statistics.h stmt.h.
21111         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21112         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21113         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21114         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21115         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21116         fixed-value.h real.h statistics.h stmt.h.
21117         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21118         fixed-value.h statistics.h stmt.h.
21119         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21120         stmt.h.
21121
21122 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
21123
21124         * gengtype.c (create_user_defined_type): Workaround
21125         -Wmaybe-uninitialized false positives.
21126         * cse.c (fold_rtx): Likewise.
21127         * loop-invariant.c (gain_for_invariant): Likewise.
21128
21129 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21130
21131         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21132         set the memory attributes in all cases but clear MEM_EXPR if need be.
21133
21134 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
21135
21136         PR tree-optimization/64434
21137         * cfgexpand.c (reorder_operands): New function.
21138         (expand_gimple_basic_block): Insert call of reorder_operands if
21139         optimized is true.
21140
21141 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21142
21143         * config/mips/micromips.md (*swp): Remove explicit parallel.
21144         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21145         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21146         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21147         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21148         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21149         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21150         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21151         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21152         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21153         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21154         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21155         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21156         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21157         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21158         (mips_wrdsp): Likewise.
21159         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21160         parallel.
21161         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21162         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21163         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21164         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21165         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21166         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21167         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21168         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21169         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21170
21171 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21172
21173         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21174         (mips_print_operand): Support 'y' to print exact log2 in decimal
21175         of a const_int.
21176         * config/mips/mips.h (ISA_HAS_LSA): New define.
21177         (ISA_HAS_DLSA): Likewise.
21178         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21179         * config/mips/predicates.md (const_immlsa_operand): New predicate.
21180
21181 2015-01-15  Martin Liska  <mliska@suse.cz>
21182
21183         PR target/64377
21184         * optc-save-gen.awk: Add support for array types.
21185
21186 2015-01-15  Richard Biener  <rguenther@suse.de>
21187
21188         PR middle-end/64365
21189         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21190         for MEM_REF access functions with the same base can never partially
21191         overlap.
21192
21193 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
21194
21195         * common.opt: New option -fstack-protector-explicit.
21196         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21197         (stack_protect_decl_phase): Handle stack_protect attribute for
21198         explicit stack protection requests.
21199         (expand_used_vars): Similarly.
21200         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21201         * doc/extend.texi: Add documentation for "stack_protect" attribute.
21202         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21203
21204 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
21205
21206         PR target/53988
21207         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21208         reg-reg copies.
21209         (sh_extending_set_of_reg): New struct.
21210         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21211         sh_remove_reg_dead_or_unused_notes): New Declarations.
21212         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21213         sh_find_extending_set_of_reg, sh_split_tst_subregs,
21214         sh_extending_set_of_reg::use_as_extended_reg): New functions.
21215         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21216         convert to insn_and_split and use new function sh_split_tst_subregs.
21217
21218 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
21219
21220         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21221         option.
21222         (Optimization Options): Move -fuse-ld documentation to...
21223         (Link Options): ...here.
21224
21225 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21226
21227         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21228         offsets.
21229         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21230         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21231         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21232         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21233         instead of ZR for the memory operand of LL/SC.
21234         (compare_and_swap_12, sync_add<mode>): Likewise.
21235         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21236         (sync_new_<optab>_12, sync_nand_12): Likewise.
21237         (sync_old_nand_12, sync_new_nand_12): Likewise.
21238         (sync_sub<mode>, sync_old_add<mode>): Likewise.
21239         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21240         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21241         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21242         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21243         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21244         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21245         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21246         * doc/md.texi (ZC): Update description.
21247
21248 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
21249
21250         * builtins.c (expand_builtin_atomic_exchange): Remove error when
21251         memory model is CONSUME.
21252         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21253         expand_builtin_atomic_store): Change invalid memory model errors to
21254         warnings.
21255         (expand_builtin_atomic_clear): Change invalid model errors to warnings
21256         and issue warning for CONSUME.
21257
21258 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
21259
21260         * lto-cgraph: Update function comments for
21261         lto_symtab_encoder_encode_*.
21262
21263 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
21264
21265         * Makefile.in (site.exp): Do not set ENABLE_LTO.
21266
21267 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
21268
21269         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21270         * lto-cgraph.c (select_what_to_stream): Remove argument, use
21271         lto_stream_offload_p instead.
21272         * lto-streamer.h (select_what_to_stream): Remove argument.
21273         * passes.c (ipa_write_summaries): Likewise.
21274         * tree-pass.h (ipa_write_summaries): Likewise.
21275
21276 2015-01-14  Richard Biener  <rguenther@suse.de>
21277
21278         PR tree-optimization/59354
21279         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21280         groups larger than the slp group size as having gaps.
21281
21282 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
21283
21284         PR middle-end/59448
21285         * builtins.c (get_memmodel): Promote consume to acquire always.
21286
21287 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21288
21289         PR target/64386
21290         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21291         V32HImode.
21292
21293 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21294
21295         PR target/64393
21296         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21297         Enable AVX512BW.
21298         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21299         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21300         AVX512VBMI, as it implies AVX512BW.
21301
21302 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
21303
21304         PR target/64387
21305         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21306         (vec_unpacks_hi_v16sf): Ditto.
21307
21308 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21309
21310         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21311         is not available.
21312
21313 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21314
21315         * doc/invoke.texi (mapcs): Mention deprecation.
21316         (mapcs-frame): Likewise.
21317
21318 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21319
21320         PR target/64453
21321         * config/arm/arm.c (callee_saved_reg_p): Define.
21322         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21323         register is callee saved instead of !call_used_regs[reg].
21324         (thumb1_compute_save_reg_mask): Likewise.
21325
21326 2015-01-14  Hale Wang  <hale.wang@arm.com>
21327
21328         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21329         Cortex-M7.
21330
21331 2015-01-14  Richard Biener  <rguenther@suse.de>
21332
21333         PR lto/64415
21334         * tree-inline.c (insert_debug_decl_map): Check destination
21335         function MAY_HAVE_DEBUG_STMTS.
21336         (insert_init_debug_bind): Likewise.
21337         (insert_init_stmt): Remove redundant check.
21338         (remap_gimple_stmt): Drop debug stmts if the destination
21339         function has var-tracking assignments disabled.
21340
21341 2015-01-14  Martin Liska  <mliska@suse.cz>
21342
21343         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21344         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21345
21346 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21347
21348         PR target/64460
21349         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21350         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21351
21352 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
21353
21354         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21355         level from an ARCH; do not inject the default.
21356         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21357         MIPS_ISA_LEVEL_SPEC.
21358         (MIPS_ISA_NAN2008_SPEC): Update comment.
21359         (BASE_DRIVER_SELF_SPECS): Likewise.
21360         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21361         MIPS_DEFAULT_ISA_LEVEL_SPEC.
21362         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21363         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21364         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21365
21366 2015-01-14  Richard Biener  <rguenther@suse.de>
21367
21368         PR tree-optimization/64493
21369         PR tree-optimization/64495
21370         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21371         assign the proper vectorized PHI to the inner loop exit PHIs.
21372
21373 2015-01-14  Joey Ye  <joey.ye@arm.com>
21374
21375         * config/arm/arm.c (arm_compute_save_reg_mask):
21376         Do not save lr in case of tail call.
21377         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21378
21379 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
21380
21381         * tree-vrp.c (check_array_ref): Emit more warnings
21382         for warn_array_bounds >= 2.
21383         * common.opt: New option -Warray-bounds=.
21384         * doc/invoke.texi: Document -Warray-bounds=.
21385
21386 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
21387
21388         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21389         (mforbid-fp-as-gp): Remove.
21390         (mex9): Remove.
21391         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21392         (nds32_symbol_load_store_p): Remove.
21393         (nds32_fp_as_gp_check_available): Clean up implementation.
21394         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21395         cases.
21396         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21397         fp-as-gp and ex9 cases.
21398
21399 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21400
21401         * tree-profile.c (init_ic_make_global_vars): Drop workaround
21402         for bintuils bug 14342.
21403         (init_ic_make_global_vars): Likewise.
21404         (gimple_init_edge_profiler): Likewise.
21405         (gimple_gen_ic_func_profiler): Likewise.
21406
21407 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21408
21409         * ipa-inline.c (inline_small_functions): Swap the operands in
21410         enum.
21411
21412 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21413
21414         PR ipa/64481
21415         * ipa-inline-analysis.c (node_growth_cache): Remove.
21416         (initialize_growth_caches): Do not initialize it.
21417         (free_growth_caches): Do not free it.
21418         (do_estimate_growth): Rename to ...
21419         (estimate_growth): ... this one; drop growth cache code.
21420         (growth_likely_positive): Always go the heuristics way.
21421         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
21422         (reset_edge_caches): Do not reset node growth.
21423         (heap_edge_removal_hook): Do not maintain cache.
21424         (inline_small_functions): Likewise; strenghten sanity check.
21425         (ipa_inline): Do not maintain caches.
21426         * ipa-inline.h (node_growth_cache): Remove.
21427         (do_estimate_growth): Remove to ...
21428         (estimate_growth): this one; remove inline version.
21429         (reset_node_growth_cache): Remove.
21430
21431 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
21432
21433         PR ipa/64565
21434         * ipa-inline.c (inline_small_functions): Update callee keys after
21435         resolving speculation
21436         (inline_small_functions): Always check monotonicity of the queue.
21437
21438 2015-01-13  Marek Polacek  <polacek@redhat.com>
21439
21440         PR middle-end/64391
21441         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
21442
21443 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
21444
21445         PR rtl-optimization/64286
21446         * ree.c (combine_reaching_defs): Move part of comment earlier,
21447         remove !SCALAR_INT_MODE_P check.
21448         (add_removable_extension): Don't add vector mode
21449         extensions if all uses of the source register aren't the same
21450         vector extensions.
21451
21452 2015-01-13  Renlin Li  <renlin.li@arm.com>
21453
21454         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
21455         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
21456
21457 2015-01-13  Martin Liska  <mliska@suse.cz>
21458
21459         * ipa-icf.c (sem_function::equals_private): Call new functions
21460         cl_target_option_print_diff and cl_optimization_print_diff.
21461         * optc-save-gen.awk (cl_target_option_print_diff): New function.
21462         (cl_optimization_print_diff): Likewise.
21463         * opth-gen.awk: Likewise.
21464
21465 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
21466
21467         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
21468         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
21469         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
21470         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
21471         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
21472         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
21473
21474 2015-01-13  Andrew Pinski  <apinski@cavium.com>
21475
21476         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
21477         instead of src mode.
21478
21479 2015-01-13  Richard Biener  <rguenther@suse.de>
21480
21481         PR lto/64373
21482         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
21483         DECL_CONTEXT.
21484
21485 2015-01-13  Andrew Pinski  <apinski@cavium.com>
21486
21487         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
21488         volatile mems.
21489         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
21490
21491 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
21492
21493         PR middle-end/63974
21494         * cfgexpand.c (expand_computed_goto): Don't call
21495         convert_memory_address here.
21496
21497 2015-01-13  Richard Biener  <rguenther@suse.de>
21498
21499         PR tree-optimization/64406
21500         * tree-loop-distibution.c (pass_loop_distribution::execute):
21501         Reset the SCEV hashtable if we distributed anything.
21502
21503 2015-01-13  Richard Biener  <rguenther@suse.de>
21504
21505         PR tree-optimization/64404
21506         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
21507         SLP types for CSEd loads.
21508
21509 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21510
21511         PR tree-optimization/64436
21512         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
21513         merge of two symbolic numbers for a bitwise OR to ...
21514         (perform_symbolic_merge): This. Also fix computation of the range and
21515         end of the symbolic number corresponding to the result of a bitwise OR.
21516
21517 2015-01-13  Richard Biener  <rguenther@suse.de>
21518
21519         PR tree-optimization/64568
21520         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
21521         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
21522
21523 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21524
21525         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
21526         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
21527
21528 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21529
21530         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
21531         target-specific symbol_ref flag.
21532         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
21533         resides in rodata section.
21534         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
21535         (nds32_encode_section_info): New function.
21536
21537 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21538
21539         * config/nds32/nds32.md (call): Use pseudo instruction bal which
21540         clobbers TA_REGNUM if large code model is specified.
21541         (call_register): Likewise.
21542         (call_immediate): Likewise.
21543         (call_value): Likewise.
21544         (call_value_register): Likewise.
21545         (call_value_immediate): Likewise.
21546
21547 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21548
21549         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
21550         (TARGET_CMODEL_MEDIUM): New macro.
21551         (TARGET_CMODEL_LARGE): New macro.
21552         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
21553         code model setting in assembly code.
21554
21555 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21556
21557         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21558         Remove MASK_GP_DIRECT flag.
21559         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
21560         one of the multilib default options.
21561         * config/nds32/nds32.opt (mgp-direct): Remove.
21562         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
21563         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
21564
21565 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21566
21567         * config/nds32/nds32.opt (mcmodel): Add new option.
21568         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
21569         to describe code model.
21570
21571 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
21572
21573         PR target/64479
21574         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
21575
21576 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
21577
21578         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
21579         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
21580         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
21581         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
21582         __builtin_sh_set_fpscr.
21583
21584 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21585
21586         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
21587         after a funtion name just to indicate it is a function.
21588         ([-fsanitize-undefined-trap-on-error]): Likewise.
21589         ([-fdbg-cnt=]): Likewise.
21590         ([-mmemcpy]): Likewise.
21591         ([-mflush-func]): Likewise.
21592         ([-msynci]): Likewise.
21593
21594 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21595
21596         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
21597         example.
21598
21599 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
21600
21601         PR tree-optimization/64563
21602         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
21603         instead of != VR_VARYING.
21604
21605         PR target/64513
21606         * config/i386/i386.c (ix86_expand_prologue): Add
21607         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
21608
21609         PR tree-optimization/64454
21610         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
21611         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
21612         for signed or [0, op1 - 1] for unsigned modulo.
21613         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
21614         even if op1 does not satisfy integer_pow2p.
21615
21616         PR other/64370
21617         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
21618
21619 2015-01-12  Jeff Law  <law@redhat.com>
21620
21621         PR target/64461
21622         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
21623         (trunchiqi2, truncsihi2): Similarly.
21624
21625         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
21626         rather than calling F.
21627
21628 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21629
21630         * tsan.c (instrument_expr): Use force_gimple_operand.
21631         Use may_be_nonaddressable_p instead of is_gimple_addressable.
21632
21633 2015-01-12  Richard Biener  <rguenther@suse.de>
21634
21635         PR tree-optimization/64530
21636         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
21637         back dr1.
21638
21639 2015-01-12  Richard Biener  <rguenther@suse.de>
21640
21641         PR middle-end/64357
21642         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
21643         latches properly.
21644
21645 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21646
21647         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
21648         Cortex-A17 tuning parameters.
21649         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
21650
21651 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21652
21653         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
21654         * config/arm/arm.c (arm_macro_fusion_p): New function.
21655         (arm_macro_fusion_pair_p): Likewise.
21656         (TARGET_SCHED_MACRO_FUSION_P): Define.
21657         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
21658         (ARM_FUSE_NOTHING): Likewise.
21659         (ARM_FUSE_MOVW_MOVT): Likewise.
21660         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
21661         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
21662         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
21663         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
21664         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
21665         arm_cortex_a5_tune): Specify fuseable_ops value.
21666
21667 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
21668
21669         PR bootstrap/64561
21670         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
21671         test for PIE with copy reloc.
21672         * configure: Regenerated.
21673
21674 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21675
21676         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
21677         in gen_rtx_REG.
21678         (arm_tls_descseq_addr): Likewise.
21679         (arm_gen_movmemqi): Likewise.
21680         (arm_expand_epilogue_apcs_frame): Likewise.
21681         (arm_expand_epilogue): Likewise.
21682         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
21683         in gen_rtx_REG.
21684
21685 2015-01-12  Martin Liska  <mliska@suse.cz>
21686
21687         PR ipa/64550
21688         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
21689         volatility for correct operands.
21690
21691 2015-01-12  Martin Liska  <mliska@suse.cz>
21692
21693         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
21694         indication that a function is not leaf.
21695         (sem_function::compare_polymorphic_p): Likewise.
21696
21697 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21698
21699         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
21700         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
21701         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
21702         fold-const.h, tree-check.h.
21703
21704 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
21705
21706         PR ipa/63967
21707         PR ipa/64425
21708         * ipa-inline.c (compute_uninlined_call_time,
21709         compute_inlined_call_time): Use counts for extra precision when
21710         needed possible.
21711         (big_speedup_p): Fix formating.
21712         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
21713         (relative_time_benefit): Remove.
21714         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
21715         merge guessed and read profile paths.
21716         (inline_small_functions): Count only !optimize_size functions into
21717         initial size; be more lax about sanity check when profile is used;
21718         be sure to update inlined function profile when profile is read.
21719
21720 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
21721
21722         PR ipa/63470
21723         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
21724         cost when edge becomes direct.
21725         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
21726         is resolved or when introducing new speculation.
21727
21728 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
21729
21730         PR ipa/64551
21731         PR ipa/64552
21732         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
21733         '||' to fix typo issue.
21734
21735         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
21736         accept and return NULL.
21737
21738 2015-01-12  Martin Liska  <mliska@suse.cz>
21739
21740         * cgraph.c (cgraph_edge::remove_callee): Move function to header
21741         file for being inlined.
21742         (cgraph_set_edge_callee): Delete.
21743         (cgraph_edge::redirect_callee): Move function to header file
21744         for being inlined.
21745         (cgraph_edge::make_direct): Use new function.
21746         (cgraph_edge::dump_edge_flags): New function created from
21747         static dump_edge_flags function.
21748         (cgraph_node::dump): Use new function.
21749         (cgraph_edge::verify_count_and_frequency): New function created
21750         from verify_edge_count_and_frequency.
21751         (cgraph_edge::verify_corresponds_to_fndecl): New function created
21752         from verify_edge_corresponds_to_fndecl.
21753         (verify_edge_corresponds_to_fndecl): Delete.
21754         (cgraph_node::verify_node): Use new function.
21755         * cgraph.h (cgraph_edge::set_callee): New function.
21756         (cgraph_edge::dump_edge_flags): Likewise.
21757         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
21758
21759 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
21760
21761         * ipa-utils.c (estimate_function_body_sizes): Do not
21762         free node params when called late with early=true.
21763
21764 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
21765
21766         * doc/md.texi (Instruction Patterns): Rewrite text for
21767         clarity.
21768         (Example): Likewise.
21769
21770 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
21771
21772         * doc/invoke.texi (Option Summary): Break long lines.
21773         [(-fdiagnostics-color)]: Put long literal in @smallexample
21774         instead of inline.
21775         [(-fsanitize-recover)]: Likewise.
21776         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
21777         [(-ffast-math)]: Likewise.
21778         [(--param max-inline-insns-recursive)]: Likewise.
21779         [(--param max-inline-recursive-depth)]: Likewise.
21780         [(-mno-text-section-literals)]: Likewise.
21781
21782 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
21783
21784         * doc/install.texi: Update for libgomp being renamed from "GNU
21785         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
21786         Runtime Library".
21787         * doc/sourcebuild.texi: Likewise.
21788
21789 2015-01-10  Anthony Green  <green@moxielogic.com>
21790
21791         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
21792         mul.x availability for moxiebox configuration.
21793
21794 2015-01-09  Anthony Green  <green@moxielogic.com>
21795
21796         * config/moxie/moxie.md: Tabify assembly output.
21797
21798 2015-01-09  Anthony Green  <green@moxielogic.com>
21799
21800         * config/moxie/moxie.md (CC_REG): Correct register definition.
21801
21802 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
21803
21804         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
21805         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
21806         of log files.
21807
21808 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
21809
21810         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
21811
21812 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
21813             Jakub Jelinek  <jakub@redhat.com>
21814
21815         PR middle-end/64412
21816         * lto-streamer.h (lto_stream_offload_p): New declaration.
21817         * lto-streamer.c (lto_stream_offload_p): New variable.
21818         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
21819         at the same time as section_name_prefix.
21820         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
21821         if lto_stream_offload_p.
21822         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
21823         stream TREE_TARGET_OPTION if lto_stream_offload_p.
21824         (write_ts_function_decl_tree_pointers): Don't
21825         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
21826         * tree-streamer-in.c (unpack_value_fields): Don't stream
21827         TREE_TARGET_OPTION in if ACCEL_COMPILER.
21828         (lto_input_ts_function_decl_tree_pointers): Don't stream
21829         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
21830         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
21831         instead of section_name_prefix string comparisons.
21832
21833 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
21834
21835         PR rtl-optimization/64536
21836         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
21837         tablejumps.
21838
21839 2015-01-09  Michael Collison  <michael.collison@linaro.org>
21840
21841         PR tree-optimization/64322
21842         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
21843         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
21844
21845 2015-01-09  Tom de Vries  <tom@codesourcery.com>
21846
21847         PR rtl-optimization/64539
21848         * regcprop.c (kill_clobbered_values): Factor out of ...
21849         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
21850         instead of note_stores with kill_clobbered_value.
21851
21852 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
21853
21854          * ginclude/unwind-arm-common.h: Revert previous commit.
21855
21856 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
21857
21858         * config.gcc (arm*-*-freebsd*): New configuration.
21859         * config/arm/freebsd.h: New file.
21860         * config.host: Add extra components for arm*-*-freebsd*.
21861         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
21862         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
21863
21864 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21865
21866         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
21867         for -mcpu=e6500.
21868         * config/rs6000/t-rtems: Add e6500 multilibs.
21869
21870 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21871
21872         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
21873         MPC8540.
21874
21875 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21876
21877         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
21878         MULTILIB_EXCEPTIONS.
21879
21880 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21881
21882         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
21883         MULTILIB_EXCEPTIONS.
21884
21885 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21886
21887         * config/arm/t-rtems-eabi: Rename to...
21888         * config/arm/t-rtems: ...this.
21889         * config/arm/rtems-eabi.h: Rename to...
21890         * config/arm/rtems.h: ...this.
21891         * config.gcc (arm*-*-rtems*): Reflect changes above.
21892
21893 2015-01-09  Richard Biener  <rguenther@suse.de>
21894
21895         PR tree-optimization/64410
21896         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
21897         on the LHS.
21898         (execute_update_addresses_taken): Deal with that.
21899         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
21900         loads/stores for complex variables.
21901
21902 2015-01-09  Martin Liska  <mliska@suse.cz>
21903
21904         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
21905         name comparison.
21906         (func_checker::compare_memory_operand): New function.
21907         (func_checker::compare_operand): Split case to newly
21908         added functions.
21909         (func_checker::compare_cst_or_decl): New function.
21910         (func_checker::compare_gimple_call): Identify
21911         memory operands.
21912         (func_checker::compare_gimple_assign): Likewise.
21913         * ipa-icf-gimple.h: New function.
21914
21915 2015-01-09  Martin Liska  <mliska@suse.cz>
21916
21917         PR ipa/64503
21918         * sreal.c (sreal::dump): Change unsigned format to signed for
21919         m_exp value.
21920         (sreal::to_double): Replace exp2 with scalbln.
21921
21922 2015-01-09  Martin Liska  <mliska@suse.cz>
21923
21924         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
21925         * ipa-icf.c (sem_function::equals_private): Add support for target and
21926         (sem_item_optimizer::merge_classes): Remove redundant function
21927         optimization flags comparison.
21928         * tree.h (target_opts_for_fn): New function.
21929
21930 2015-01-09  Tom de Vries  <tom@codesourcery.com>
21931
21932         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
21933
21934 2015-01-09  Kito Cheng  <kito@0xlab.org>
21935
21936         PR rtl-optimization/64348
21937         * lra-constraints.c (split_reg): Fix caller-save store/restore
21938         instruction generation.
21939
21940 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
21941
21942         PR gcov-profile/61790
21943         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
21944         long long.  Fallback to int64_t if host doesn't have long long and
21945         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
21946
21947 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
21948
21949         PR tree-optimization/63989
21950         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
21951         from 1000 to 10000.
21952         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
21953         (get_stridx): If we don't have a record for certain SSA_NAME,
21954         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
21955         constant offset, call get_stridx_plus_constant.
21956         (get_stridx_plus_constant): New function.
21957         (zero_length_string): Don't use get_stridx here.
21958
21959         PR target/55023
21960         PR middle-end/64388
21961         * dse.c (struct insn_info): Mention frame_read set also
21962         before reload for tail calls on some targets.
21963         (scan_insn): Revert 2014-12-22 change.  Set frame_read
21964         also before reload for tail calls if
21965         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
21966         instead of add_non_frame_wild_read for non-const/memset
21967         tail calls after reload.
21968
21969 2015-01-08  Jason Merrill  <jason@redhat.com>
21970
21971         * ubsan.c (do_ubsan_in_current_function): New.
21972         (pass_ubsan::gate): Use it.
21973         * ubsan.h: Declare it.
21974         * convert.c (convert_to_integer): Use it.
21975
21976 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
21977
21978         PR target/64338
21979         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
21980         compare_code when it is unconditionally overwritten afterwards.
21981         Use ix86_reverse_condition instead of reverse_condition.  Don't
21982         change code if *reverse_condition* returned UNKNOWN and don't
21983         swap ct/cf and negate diff in that case.
21984
21985 2015-01-08  Mike Stump  <mikestump@comcast.net>
21986
21987         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
21988         (pass_tsan_O0::gate): Likewise.
21989         * extend.texi (Function Attributes): Add no_sanitize_thread
21990         documentation.
21991
21992 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
21993
21994         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
21995         for registering builtins.
21996         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
21997         add -fopenmp to the argv_obstack used when invoking
21998         compile_for_target.
21999
22000         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22001         add "-m32" or "-m64" to argv_obstack.
22002         (generate_host_descr_file): Likewise, when invoking host_compiler.
22003         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22004         ld.
22005
22006 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
22007
22008         * config/sh/sh-mem.cc: Use constant as second operand when emitting
22009         tstsi_t insns.
22010
22011 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
22012
22013         PR target/55212
22014         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22015         constant load if constant operand fits into I08.
22016
22017 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
22018
22019         PR sanitizer/64336
22020         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22021         and TREE_THIS_VOLATILE for MEM_REFs.
22022         (build5_stat): Fix up initialization of TREE_READONLY and
22023         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22024
22025 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22026
22027         PR target/64533
22028         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22029         of r for the second alternative of the destination operand.
22030
22031 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
22032
22033         PR target/36557
22034         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22035
22036 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22037
22038         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22039         keywords.
22040         ([-fivar-visibility], [-fvisibility]): Likewise.
22041
22042 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22043
22044         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22045         the file where @code, @command, etc is more appropriate.
22046
22047 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
22048
22049         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22050         of -mrecip= documentation.
22051
22052 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22053
22054         PR target/64505
22055         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22056         correct reload handler if -m32 -mpowerpc64 is used.
22057
22058 2015-01-06  Tom de Vries  <tom@codesourcery.com>
22059
22060         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22061
22062 2015-01-08  Christian Bruel  <christian.bruel@st.com>
22063
22064         PR target/64507
22065         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22066
22067 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22068
22069         PR tree-optimization/63259
22070         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22071         if optab exists for 16bit byteswap.
22072
22073 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
22074
22075         * opts.c (common_handle_option): Add support for
22076         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22077         * doc/invoke.texi: Document -fno-sanitize=all,
22078         -f{,no-}sanitize-recover=all.  Document that
22079         -fsanitize=float-cast-overflow is not enabled
22080         by -fsanitize=undefined.  Fix up documentation
22081         of -f{,no-}sanitize-recover.
22082
22083 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22084
22085         * config.gcc: Add Visium support.
22086         * configure.ac: Likewise.
22087         * configure: Regenerate.
22088         * doc/extend.texi (interrupt attribute): Add Visium.
22089         * doc/invoke.texi: Document Visium options.
22090         * doc/install.texi: Document Visium target.
22091         * doc/md.texi: Document Visium constraints.
22092         * common/config/visium: New directory.
22093         * config/visium: Likewise.
22094
22095 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
22096
22097         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22098         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22099
22100 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
22101
22102         * combine.c (combine_validate_cost): Do not count the cost of a
22103         split I2 twice.  Do not display it twice in the dump, either.
22104
22105 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22106
22107         Revert parts of r219199.
22108         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22109         <inttypes.h>.
22110         ([-Wtraditional]): Restore markup on <limits.h>.
22111
22112 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
22113
22114         PR c++/31397
22115         * doc/invoke.texi: Document -Wsuggest-override.
22116
22117 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
22118
22119         PR rtl-optimization/64287
22120         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22121         (process_options): Disable flag_ipa_ra if profiling.
22122
22123 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22124
22125         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22126
22127 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
22128
22129         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22130         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22131         put under #if TARGET_LOOPS guard.
22132
22133 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
22134
22135         * config/i386/i386.c (output_387_binary_op): Use std::swap.
22136
22137 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
22138
22139         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22140         * rtl.h (refers_to_regno_p): Add overload.
22141         * cse.c: Use it.
22142         * bt-load.c: Likewise.
22143         * combine.c: Likewise.
22144         * df-scan.c: Likewise.
22145         * sched-deps.c: Likewise.
22146         * config/s390/s390.c: Likewise.
22147         * config/m32r/m32r.c: Likewise.
22148         * config/rs6000/spe.md: Likewise.
22149         * config/rs6000/rs6000.c: Likewise.
22150         * config/pa/pa.c: Likewise.
22151         * config/stormy16/stormy16.c: Likewise.
22152         * config/cris/cris.c: Likewise.
22153         * config/arc/arc.md: Likewise.
22154         * config/arc/arc.c: Likewise.
22155         * config/sh/sh.md: Likewise.
22156         * config/sh/sh.c: Likewise.
22157         * config/frv/frv.c: Likewise.
22158
22159 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22160
22161         PR sanitizer/64265
22162         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22163         call as cleanup of the whole body.
22164         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22165         * tsan.c (replace_func_exit): New function.
22166         (instrument_func_exit): Moved earlier.
22167         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22168         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22169         been found.
22170         (tsan_pass): Don't call instrument_func_exit.
22171         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22172         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22173         inlining.
22174
22175         PR sanitizer/64344
22176         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22177         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22178         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
22179         if the result is integer_zerop, return NULL_TREE.
22180         * convert.c (convert_to_integer): Pass expr as ARG.
22181
22182         PR tree-optimization/64465
22183         * tree-inline.c (redirect_all_calls): During inlining
22184         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22185         changed the stmt to a non-throwing call.
22186
22187 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22188
22189         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22190         etc markup throughout the file.
22191
22192 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22193
22194         Enable experimental TSAN support for Ada.
22195         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22196
22197 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22198
22199         PR tree-optimization/64494
22200         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22201         clear SSA_NAME_ANTI_RANGE_P flag.
22202
22203 2015-01-05  Marek Polacek  <polacek@redhat.com>
22204
22205         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22206
22207 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
22208
22209         Update copyright years.
22210
22211         * gcc.c (process_command): Update copyright notice dates.
22212         * gcov-dump.c: Ditto.
22213         * gcov.c: Ditto.
22214         * doc/cpp.texi: Bump @copying's copyright year.
22215         * doc/cppinternals.texi: Ditto.
22216         * doc/gcc.texi: Ditto.
22217         * doc/gccint.texi: Ditto.
22218         * doc/gcov.texi: Ditto.
22219         * doc/install.texi: Ditto.
22220         * doc/invoke.texi: Ditto.
22221
22222         * auto-profile.c, auto-profile.h: Fix up Copyright line.
22223
22224 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
22225
22226         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22227         verb tense, etc.
22228         ([-fvtable-verify], [-fvtv-debug]): Likewise.
22229         ([-Wabi]): Likewise.
22230         ([-fmessage-length]): Likewise.
22231         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22232         ([-Wno-discarded-qualifiers]): Likewise.
22233         ([-Wnodiscarded-array-qualifiers]): Likewise.
22234         ([-Wno-virtual-move-assign]): Likewise.
22235         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22236         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22237         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22238         ([-fsanitize-undefined-trap-on-error]): Likewise.
22239         ([-floop-interchange]): Likewise.
22240         ([-ftree-coalesce-inlined-vars]): Likewise.
22241         ([-fvect-cost-model]): Likewise.
22242         ([-flto]): Likewise.
22243         ([--param]): Likewise.
22244         (Spec Files): Likewise.
22245         ([-mstrict-align]): Likewise.
22246         ([-mfix-cortex-a53-835769]): Likewise.
22247         ([-march], [-mtune]): Likewise.
22248         ([-mpic-register]): Likewise.
22249         ([-munaligned-access]): Likewise.
22250         ([-msp8]): Likewise.
22251         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22252         (AVR Built-in Macros): Likewise.
22253         ([-mpreferred-stack-boundary]): Likewise.
22254         ([-mtune-crtl]): Likewise.
22255         ([-mashf]): Likewise.
22256         ([-mmcu=]): Likewise.
22257         ([-minrt]): Likewise.
22258         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22259         ([-mupper-regs]): Likewise.
22260         ([-matomic-model]): Likewise.
22261         ([-mdiv]): Likewise.
22262         ([-mzdcbranch]): Likewise.
22263         ([-mdisable-callt]): Likewise.
22264         ([-msoft-float]): Likewise.
22265         ([-m8byte-align]): Likewise.
22266         ([-fstack-reuse]): Likewise.
22267
22268 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22269
22270         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22271         Fix markup, light copy-editing.
22272         ([-fauto-profile]): Rewrite to fix formatting and content
22273         problems.
22274
22275 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22276
22277         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22278         Copy-edit description.
22279         ([-fisolate-erroneous-paths-attribute]): Likewise.
22280         * common.opt (fisolate-erroneous-paths-dereference):
22281         Copy-edit description.
22282         (fisolate-erroneous-paths-attribute): Likewise.
22283
22284 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22285
22286         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22287         tidy grammar.
22288
22289 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22290
22291         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22292         ([-fvtv-debug]): Likewise.
22293         ([-Wc++-compat]): Likewise.
22294         ([-Wc++11-compat]): Likewise.
22295         ([-Wc++14-compat]): Likewise.
22296         ([-Wno-sized-deallocation]): Likewise.
22297         ([-femit-class-debug-always]): Likewise.
22298         ([-femit-struct-debug-detailed]): Likewise.
22299         ([-fno-keep-inline-dllexport]): Likewise.
22300         ([-fira-algorithm]): Likewise.
22301         ([-fira-region]): Likewise.
22302         ([-flra-remat]): Likewise.
22303         ([-fipa-ra]): Likewise.
22304         ([-fhoist-adjacent-loads]): Likewise.
22305         ([-fisolate-erroneous-paths-dereference]): Likewise.
22306         ([-fisolate-erroneous-paths-attribute]): Likewise.
22307         ([-ftree-switch-conversion]): Likewise.
22308         ([-ftree-tail-merge]): Likewise.
22309         ([-ftree-loop-if-convert]): Likewise.
22310         ([-ftree-loop-if-convert-stores]): Likewise.
22311         ([-ftree-loop-distribution]): Likewise.
22312         ([-ftree-loop-distribute-patterns]): Likewise.
22313         ([-flto-compression-level]): Likewise.
22314         ([-flto-report]): Likewise.
22315         ([-flto-report-wpa]): Likewise.
22316         ([-fuse-linker-plugin]): Likewise.
22317         ([-mfix-cortex-a53-835769]): Likewise.
22318         ([-mno-fix-cortex-a53-835769]): Likewise.
22319         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22320         explicit listing; add a note to the discussion indicating they
22321         exist.  Reorder table to group similar options.  Add missing
22322         @opindex entries.  Add @need commands throughout the table to
22323         allow it to be split across multiple pages.
22324         ([-m8bit-idiv]): Fix @opindex.
22325         ([-mavx256-split-unaligned-load]): Likewise.
22326         ([-mavx256-split-unaligned-store]): Likewise.
22327         ([-mstack-protector-guard]): Likewise.
22328         ([-mcpu=]): Likewise.
22329         ([-mcpu]): Likewise.
22330         ([-mpointer-size=]): Likewise.
22331
22332 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
22333
22334         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22335         instead of `m' constraint.  Likewise for unnamed movb comparison
22336         patterns using reg_before_reload_operand predicate.
22337         * config/pa/predicates.md (reg_before_reload_operand): Tighten
22338         predicate to reject register index and LO_SUM DLT memory forms
22339         after reload.
22340
22341 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
22342
22343         * doc/invoke.texi (Option Summary): Fix spelling of
22344         -fdevirtualize-at-ltrans.
22345         ([-fdevirtualize]): Fix markup.
22346         ([-fdevirtualize-speculatively]): Fix typo.
22347         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
22348         implementor-speaky.
22349         * common.opt (fdevirtualize-at-ltrans): Likewise.
22350         * ipa-devirt.c: Fix typos in comments throughout the file.
22351         (ipa_devirt): Fix typos in format strings for dump output.
22352
22353 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
22354
22355         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22356         discussion of defaults, light copy-editing.
22357
22358 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22359
22360         * tsan.c (instrument_expr): corrected previous checkin.
22361
22362 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22363
22364         Instrument bit field and unaligned accesses for TSAN.
22365         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22366         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22367         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22368         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22369         unaligned memory regions.
22370
22371 2015-01-01  Anthony Green  <green@moxielogic.com>
22372
22373         * config/moxie/predicates.md (moxie_general_movsrc_operand):
22374         Restrict move source register offsets to 16 bits.
22375 \f
22376 Copyright (C) 2015 Free Software Foundation, Inc.
22377
22378 Copying and distribution of this file, with or without modification,
22379 are permitted in any medium without royalty provided the copyright
22380 notice and this notice are preserved.