Improve function header comments in tree-ssa-loop-manip.c
[official-gcc.git] / gcc / ChangeLog
bloba0123b12ad6a47f18dba5f75fa1a64ab486187a7
1 2015-08-31  Tom de Vries  <tom@codesourcery.com>
3         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
4         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
5         Improve function header comments.
7 2015-08-30  Michael Collison  <michael.collison@linaro.org>
9         PR other/67320
10         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11         standard names
13 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16         special_handling bitfield.
17         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
18         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
19         that represents a general xxpermdi.
20         (insn_is_swappable_p): Add handling for vec_concat of two
21         doublewords, which maps to a specific xxpermdi.
22         (adjust_xxpermdi): New function.
23         (adjust_concat): Likewise.
24         (handle_special_swappables): Call adjust_xxpermdi and
25         adjust_concat.
26         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
28 2015-08-30  Rich Felker <dalias@libc.org>
30         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
31         case instead of sh[123456ble]-*-*.
33 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
35         * ira.c (print_unform_and_important_classes,
36         print_translated_classes): Remove reg_class_names static array.
37         (print_unform_and_important_classes): Rename to ...
38         (print_uniform_and_important_classes): ... this.
39         (ira_debug_allocno_classes): Update accordingly.
41 2015-08-29  Tom de Vries  <tom@codesourcery.com>
43         PR tree-optimization/46193
44         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
45         clause.
47 2015-08-28  Jeff Law  <law@redhat.com>
49         PR lto/66752
50         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
51         unable to find X NE 0 in the tables, return X as the simplified
52         condition.
53         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
54         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
55         to VISISTED_BBS.
56         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
57         after removing the control flow statement and unnecessary edges.
59 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
61         Revert:
62         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
63                 PR tree-optimization/67283
64                 * tree-sra.c (type_consists_of_records_p): Rename to...
65                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
67                 (completely_scalarize_record): Rename to...
68                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
69                  code to:
70                 (scalarize_elem): New.
72 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
74         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
75         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
76         (aarch64_symbol_type): Likewise.
77         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
78         Likewise.
79         (aarch64_expand_mov_immediate): Likewise.
80         (aarch64_print_operand): Likewise.
81         (aarch64_classify_tls_symbol): Likewise.
83 2015-08-28  Richard Biener  <rguenther@suse.de>
85         * cgraphunit.c (symbol_table::compile): Move early debug generation
86         and finish...
87         (symbol_table::finalize_compilation_unit): ... back here and
88         add a !seen_error () guard.
90 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
92         * toplev.c (process_options): Do not use flag_loop_block,
93         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
94         flag_loop_optimize_isl.
96 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
98         * Makefile.in (OBJS): Remove graphite-blocking.o and
99         graphite-interchange.o.
100         * common.opt (floop-strip-mine, floop-interchange, floop-block):
101         Alias of floop-nest-optimize.
102         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
103         Document as alias of -floop-nest-optimize.
104         * graphite-blocking.c: Remove.
105         * graphite-interchange.c: Remove.
106         * graphite-optimize-isl.c: Include dumpfile.h.
107         (getScheduleForBand): Add dump for tiled loops.  Use
108         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
109         * graphite-poly.c (scop_max_loop_depth): Remove.
110         (print_scattering_function_1): Remove.
111         (print_scattering_function): Remove.
112         (print_scattering_functions): Remove.
113         (debug_scattering_function): Remove.
114         (debug_scattering_functions): Remove.
115         (apply_poly_transforms): Remove use of flag_loop_block,
116         flag_loop_strip_mine, and flag_loop_interchange.
117         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
118         PBB_ORIGINAL.
119         (print_pdr_access_layout): Remove.
120         (print_pdr): Print ISL representation.
121         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
122         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
123         (free_scop): Same.
124         (openscop_print_pbb_domain): Remove.
125         (print_pbb): Remove call to print_scattering_function.
126         (openscop_print_scop_context): Remove.
127         (print_scop_context): Do not print matrices anymore.
128         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
129         SCOP_TRANSFORMED_SCHEDULE.
130         (print_isl_set): Add printing of a new line.
131         (print_isl_map): Same.
132         (print_isl_aff): Same.
133         (print_isl_constraint): Same.
134         (loop_to_lst): Remove.
135         (scop_to_lst): Remove.
136         (lst_indent_to): Remove.
137         (print_lst): Remove.
138         (debug_lst): Remove.
139         (dot_lst_1): Remove.
140         (dot_lst): Remove.
141         (reverse_loop_at_level): Remove.
142         (reverse_loop_for_pbbs): Remove.
143         * graphite-poly.h (pdr_dim_iter_domain): Remove.
144         (pdr_nb_params): Remove.
145         (pdr_alias_set_dim): Remove.
146         (pdr_subscript_dim): Remove.
147         (pdr_iterator_dim): Remove.
148         (pdr_parameter_dim): Remove.
149         (same_pdr_p): Remove.
150         (struct poly_scattering): Remove.
151         (struct poly_bb): Remove _original, _transformed, _saved.
152         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
153         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
154         (PBB_NB_LOCAL_VARIABLES): Remove.
155         (PBB_NB_SCATTERING_TRANSFORM): Remove.
156         (schedule_to_scattering): Remove.
157         (number_of_write_pdrs): Remove.
158         (pbb_dim_iter_domain): Remove.
159         (pbb_nb_params): Remove.
160         (pbb_nb_scattering_orig): Remove.
161         (pbb_nb_scattering_transform): Remove.
162         (pbb_nb_dynamic_scattering_transform): Remove.
163         (pbb_nb_local_vars): Remove.
164         (pbb_iterator_dim): Remove.
165         (pbb_parameter_dim): Remove.
166         (psco_scattering_dim): Remove.
167         (psct_scattering_dim): Remove.
168         (psct_local_var_dim): Remove.
169         (psco_iterator_dim): Remove.
170         (psct_iterator_dim): Remove.
171         (psco_parameter_dim): Remove.
172         (psct_parameter_dim): Remove.
173         (psct_dynamic_dim): Remove.
174         (psct_static_dim): Remove.
175         (psct_add_local_variable): Remove.
176         (new_lst_loop): Remove.
177         (new_lst_stmt): Remove.
178         (free_lst): Remove.
179         (copy_lst): Remove.
180         (lst_add_loop_under_loop): Remove.
181         (lst_depth): Remove.
182         (lst_dewey_number): Remove.
183         (lst_dewey_number_at_depth): Remove.
184         (lst_pred): Remove.
185         (lst_succ): Remove.
186         (lst_find_pbb): Remove.
187         (find_lst_loop): Remove.
188         (lst_find_first_pbb): Remove.
189         (lst_empty_p): Remove.
190         (lst_find_last_pbb): Remove.
191         (lst_contains_p): Remove.
192         (lst_contains_pbb): Remove.
193         (lst_create_nest): Remove.
194         (lst_remove_from_sequence): Remove.
195         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
196         (lst_niter_for_loop): Remove.
197         (pbb_update_scattering): Remove.
198         (lst_update_scattering_under): Remove.
199         (lst_update_scattering): Remove.
200         (lst_insert_in_sequence): Remove.
201         (lst_replace): Remove.
202         (lst_substitute_3): Remove.
203         (lst_distribute_lst): Remove.
204         (lst_remove_all_before_including_pbb): Remove.
205         (lst_remove_all_before_excluding_pbb): Remove.
206         (struct scop): Remove original_schedule, transformed_schedule, and
207         saved_schedule.
208         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
209         (SCOP_SAVED_SCHEDULE): Remove.
210         (poly_scattering_new): Remove.
211         (poly_scattering_free): Remove.
212         (poly_scattering_copy): Remove.
213         (store_scattering_pbb): Remove.
214         (store_lst_schedule): Remove.
215         (restore_lst_schedule): Remove.
216         (store_scattering): Remove.
217         (restore_scattering_pbb): Remove.
218         (restore_scattering): Remove.
219         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
220         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
221         compute the scattering polyhedron dimension from the dimension of
222         pbb->domain.
223         (build_scop_scattering): Update call to
224         build_pbb_scattering_polyhedrons.
225         (build_poly_scop): Remove call to scop_to_lst.
226         * graphite.c (graphite_transform_loops): Add call to print_scop.
227         (gate_graphite_transforms): Remove use of flag_loop_block,
228         flag_loop_interchange, and flag_loop_strip_mine.
230 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
232         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
233         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
234         -floop-nest-optimize.
235         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
236         (generate_luj_sepclass): Remove.
237         (generate_luj_options): Remove.
238         (set_options): Remove opt_luj.
239         (scop_to_isl_ast): Remove opt_luj.
240         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
241         flag_loop_unroll_jam.
242         (getPrevectorMap_full): Remove.
243         (getScheduleForBandList): Remove map_sepcl.
244         (getScheduleMap): Same.
245         (apply_schedule_map_to_scop): Remove sepcl.
246         (optimize_isl): Same.
247         * graphite-poly.c (apply_poly_transforms): Remove check for
248         flag_loop_unroll_jam.
249         (new_poly_bb): Remove map_sepclass.
250         * graphite-poly.h (struct poly_bb): Same.
251         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
252         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
253         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
254         * toplev.c (process_options): Remove flag_loop_unroll_jam.
256 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
258         PR target/67317
259         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
260         (addqi3_cc): Ditto.
261         (UNSPEC_ADD_CARRY): Remove.
262         (addqi3_cconly_overflow): New expander.
263         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
264         Adjust for changed add<mode>3_carry.
265         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
266         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
267         (<plusminus_insn><mode>3_carry): Remove expander.
268         (*<plusminus_insn><mode>3_carry): Split insn pattern to
269         add<mode>3_carry and sub<mode>3_carry.
270         (plusminus_carry_mnemonic): Remove code attribute.
271         (add<mode>3_carry): Canonicalize insn pattern.
272         (*addsi3_carry_zext): Ditto.
273         (sub<mode>3_carry): Ditto.
274         (*subsi3_carry_zext): Ditto.
275         (adcx<mode>3): Remove insn pattern.
276         (addcarry<mode>): New insn pattern.
277         (subborrow<mode>): Ditto.
278         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
279         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
280         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
281         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
282         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
283         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
284         Rewrite expander to not clobber carry flag chains.
286 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
288         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
289         instead of a rotate.
291 2015-08-27  Marek Polacek  <polacek@redhat.com>
293         PR middle-end/67005
294         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
295         an entry into an irreducible region.
297 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
299         * configure: Regenerate.
301 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
303         PR tree-optimization/67283
304         * tree-sra.c (type_consists_of_records_p): Rename to...
305         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
307         (completely_scalarize_record): Rename to...
308         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
309         (scalarize_elem): New.
311 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
313         * tree-sra.c (completely_scalarize_var): Rename to...
314         (create_total_scalarization_access): ... Here. Drop call to
315         completely_scalarize_record.
317         (analyze_all_variable_accesses): Replace completely_scalarize_var
318         with create_total_scalarization_access and completely_scalarize_record.
320 2015-08-27  Alan Modra  <amodra@gmail.com>
322         PR target/67356
323         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
324         for operand 1.
326 2015-08-27  Richard Biener  <rguenther@suse.de>
328         * passes.c (rest_of_decl_compilation): Guard early_global_decl
329         call with !seen_error ().
330         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
331         early debug generation and finish...
332         (symbol_table::compile): ... here to put it after a !seen_error ()
333         guard.
335 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
337         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
338         Solaris 12+.
340 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
341             Andre Vieira  <andre.simoesdiasvieira@arm.com>
343         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
344         (*cb<optab><mode>1): Likewise.
345         (*tb<optab><mode>1): Likewise.
346         (*cb<optab><mode>1): Likewise.
347         * config/aarch64/iterators.md (inv_cb): New code attribute.
348         (inv_tb): Likewise.
349         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
350         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
352 2015-08-27  Richard Biener  <rguenther@suse.de>
354         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
356 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
358         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
359         trap to fix ICE.
361 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
363         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
364         Add declaration.
366         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
367         comment.
368         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
369         floating point in VSX registers.
370         (rs6000_output_move_128bit): Always print out the set insn if we
371         can't generate an appropriate 128-bit move.
372         (rs6000_generate_compare): Add support for IEEE 128-bit floating
373         point in VSX registers comparisons.
374         (rs6000_expand_float128_convert): Likewise.
376         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
377         predicate for only GPR hard registers.
379         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
380         modes to iterators. Add new iterators for moving 128-bit values in
381         scalar FPR registers and VSX registers.
382         (FMOVE128): Likewise.
383         (FMOVE128_FPR): Likewise.
384         (FMOVE128_GPR): Likewise.
385         (FMOVE128_VSX): Likewise.
386         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
387         in VSX registers.
388         (IFKF): Likewise.
389         (IBM128): Likewise.
390         (TFIFKF): Likewise.
391         (RELOAD): Add IEEE 128-bit floating point modes.
392         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
393         floating point in VSX registers modes.
394         (signbit<mode>2, IBM128 iterator): Likewise.
395         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
396         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
397         (negtf2): Likewise.
398         (neg<mode>2, TFIFKF iterator): Likewise.
399         (negtf2_internal): Likewise.
400         (abstf2): Likewise.
401         (abs<mode>2, TFIFKF iterator): Likewise.
402         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
403         VSX insn support for negate, absolute value, and negative absolute
404         value.
405         (ieee_128bit_vsx_neg<mode>2): Likewise.
406         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
407         (ieee_128bit_vsx_abs<mode>2): Likewise.
408         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
409         (ieee_128bit_vsx_nabs<mode>2): Likewise.
410         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
411         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
412         floating point in VSX registers.
413         (unpack<mode>_dm): Likewise.
414         (unpack<mode>_nodm): Likewise.
415         (pack<mode>): Likewise.
416         (unpackv1ti): Likewise.
417         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
418         (packv1ti): Likewise.
419         (pack<mode>, FMOVE128_VSX iterator): Likewise.
420         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
421         registers.
422         (extenddftf2_internal): Likewise.
423         (trunctfdf2): Likewise.
424         (trunctfdf2_internal2): Likewise.
425         (fix_trunc_helper): Likewise.
426         (fix_trunctfdi2"): Likewise.
427         (floatditf2): Likewise.
428         (floatuns<mode>tf2): Likewise.
429         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
430         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
431         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
432         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
433         (float<SDI:mode><IFKF:mode>2): Likewise.
434         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
436 2015-08-26  Renlin Li  <renlin.li@arm.com>
438         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
440 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
441             Jiong Wang  <jiong.wang@arm.com>
443         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
444         (tlsie_tiny_<mode>): New define_insn.
445         (tlsie_tiny_sidi): Likewise.
446         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
447         SYMBOL_TINY_TLSIE.
448         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
449         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
450         SYMBOL_TINY_TLSIE.
451         (aarch64_expand_mov_immediate): Likewise.
452         (aarch64_print_operand): Likewise.
453         (arch64_classify_tls_symbol): Likewise.
455 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
457         * config/arm/arm-arches.def: Replace single value flags with
458         an initializer built from ARM_FSET_MAKE_CPU1.
459         * config/arm/arm-cores.def: Likewise.
460         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
461         derivation from the ARM_CORE macro definition, use the given value
462         instead.
463         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
464         ARM_ARCH macro definition, use the given value instead.
466 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
468         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
469         feature set.
470         (struct builtin_description): Replace field mask with field
471         features.
472         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
473         (IWMMXT2_BUILTIN): Likewise.
474         (IWMMXT2_BUILTIN2): Likewise.
475         (FP_BUILTIN): Likewise.
476         (CRC32_BUILTIN): Likewise.
477         (CRYPTO_BUILTIN): Likewise.
478         (iwmmx_mbuiltin): Likewise.
479         (iwmmx2_mbuiltin): Likewise.
480         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
481         struct builtin_description.
483 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
485         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
486         (struct builtin_description): Change type of mask to unsigned
487         long.
488         * config/arm/arm-protos.h (insn_flags): Declare as type
489         arm_feature_set.
490         (tune_flags): Likewise.
491         * config/arm/arm.c (feature_count): New.
492         (insn_flags): Define as type arm_feature_set.
493         (tune_flags): Likewise.
494         (struct processors): Define field flags as type arm_feature_set.
495         (all_cores): Update for change to struct processors.
496         (all_architectures): Likewise.
497         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
498         macros.
499         (arm_option_override_internal): Likewise.
500         (arm_option_override): Likewise.
502 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
503             Jiong Wang  <jiong.wang@arm.com>
505         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
506         tls size for tiny, small, large memory model.
507         (aarch64_load_symref_appropriately): Support new symbol types.
508         (aarch64_expand_mov_immediate): Likewise.
509         (aarch64_print_operand): Likewise.
510         (aarch64_classify_tls_symbol): Likewise.
511         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
512         (aarch64_symbol_type): Likewise.
513         * config/aarch64/aarch64.md (tlsle): Deleted.
514         (tlsle12_<mode>): New define_insn.
515         (tlsle24_<mode>): Likewise.
516         (tlsle32_<mode>): Likewise.
517         (tlsle48_<mode>): Likewise.
518         * doc/sourcebuild.texi (AArch64-specific attributes): Document
519         "aarch64_tlsle32".
521 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
523         * config/arm/arm-protos.h (FL_NONE): New.
524         (FL_ANY): New.
525         (arm_feature_set): New.
526         (ARM_FSET_MAKE): New.
527         (ARM_FSET_MAKE_CPU1): New.
528         (ARM_FSET_MAKE_CPU2): New.
529         (ARM_FSET_CPU1): New.
530         (ARM_FSET_CPU2): New.
531         (ARM_FSET_EMPTY): New.
532         (ARM_FSET_ANY): New.
533         (ARM_FSET_HAS_CPU1): New.
534         (ARM_FSET_HAS_CPU2): New.
535         (ARM_FSET_HAS_CPU): New.
536         (ARM_FSET_ADD_CPU1): New.
537         (ARM_FSET_ADD_CPU2): New.
538         (ARM_FSET_DEL_CPU1): New.
539         (ARM_FSET_DEL_CPU2): New.
540         (ARM_FSET_UNION): New.
541         (ARM_FSET_INTER): New.
542         (ARM_FSET_XOR): New.
543         (ARM_FSET_EXCLUDE): New.
544         (AFM_FSET_IS_EMPTY): New.
545         (ARM_FSET_CPU_SUBSET): New.
547 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
549         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
550         SYMBOL_TLSLE to SYMBOL_TLSLE24.
551         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
552         Likewise.
553         (aarch64_expand_mov_immediate): Likewise.
554         (aarch64_print_operand): Likewise.
555         (aarch64_classify_symbol): Likewise.
557 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
559         * config/aarch64/aarch64.opt (mtls-size): New entry.
560         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
561         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
562         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
564 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
566         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
567         ARM_CORE entry.  Fix some white-space.
568         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
569         ARM_CORE definition.
571 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
573         * fold-const.c (fold_binary_loc) : Move Optimize 
574         root(x)*root(y) as root(x*y) to match.pd.
575         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
576         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
577         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
578         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
579         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
580         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
581         (mult (exps:s @0) (exps:s @1)) : New simplifier.
582         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
583         (rdiv @0 (exps:s @1)) : New simplifier.
585 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
587         * gcc.c (driver::finalize): Only assign to extra_specs if
588         [EXTRA_SPECS].
590 2015-08-25  Marek Polacek  <polacek@redhat.com>
592         PR middle-end/67330
593         * varasm.c (declare_weak): Return after giving an error.
595 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
597         * gcc-main.c (main): Add params to driver ctor.
598         * gcc.c (class env_manager): New.
599         (env): New global.
600         (env_manager::init): New.
601         (env_manager::get): New.
602         (env_manager::xput): New.
603         (env_manager::restore): New.
604         Poison getenv and putenv.
605         (DEFAULT_TARGET_SYSTEM_ROOT): New.
606         (target_system_root): Update initialization to use
607         DEFAULT_TARGET_SYSTEM_ROOT.
608         (struct spec_list): Add field "default_ptr".
609         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
610         (init_spec): Likewise.
611         (set_spec): Clear field "default_ptr".
612         (read_specs): Free "spec" and "buffer".
613         (xputenv): Reimplement in terms of env_manager.
614         (process_command): Replace ::getenv calls with calls to the
615         env_manager singleton.
616         (process_brace_body): Free string in three places.
617         (driver::driver): New.
618         (driver::~driver): New.
619         (used_arg): Convert from a function to...
620         (class used_arg_t): ...this class, and...
621         (used_arg): ...this new global instance.
622         (used_arg_t::finalize): New function.
623         (getenv_spec_function): Add "const" to local "value".  Replace
624         ::getenv call with call to the env_manager singleton.
625         (path_prefix_reset): New function.
626         (driver::finalize): New function.
627         * gcc.h (driver::driver): New.
628         (driver::~driver): New.
629         (driver::finalize): New.
631 2015-08-25  Nathan Sidwell  <nathan@acm.org>
633         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
634         target doesn't have one.
636 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
638         PR target/67346
639         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
641 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
643         PR target/67344
644         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
645         a define_insn, remove second alternative.
647 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
648             Joseph Myers  <joseph@codesourcery.com>
650         * gcc.c (struct switchstr): Expand comment.
652 2015-08-25  Nathan Sidwell  <nathan@acm.org>
654         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
655         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
657 2015-08-25  Richard Biener  <rguenther@suse.de>
659         PR middle-end/67306
660         * genmatch.c (expr::gen_transform): Verify the result of
661         builtin_decl_implicit.
662         (dt_simplify::gen_1): Likewise.
664 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
666         * config/arm/constraints.md: Also list Cs and US ARM-specific
667         constraints as used.
669 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
671         PR target/66609
672         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
673         UNSPEC_PCREL.
674         (nonpic_symbol_mentioned_p): Likewise.
675         (sh_delegitimize_address): Likewise.
676         (sh_function_ok_for_sibcall): Take into account weak symbols.
677         (sh_expand_sym_label2reg): New.
678         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
679         * config/sh/sh.md (UNSPEC_PCREL): New enum.
680         (call_pcrel): Use sh_expand_sym_label2reg.
681         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
682         (symPCREL_label2reg) New expand.
684 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
686         * graphite-poly.c: Change type of region from void* to sese.
687         * graphite-poly.h (struct scop): Changing the type of scop::region
688         from void* to sese. Change accessor macro accordingly.
689         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
691 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
693         * graphite-scop-detection.c (stmt_simple_for_scop_p):
694         Constrain only on INTEGER_TYPE.
696 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
698         PR target/67211
699         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
700         -mefficient-unaligned-vsx on ISA 2.7.
702         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
703         option to a masked option.
705         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
706         logic for -mefficient-unaligned-vsx so that it is set via an arch
707         ISA option, instead of being set if -mtune=power8 is set. Move
708         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
709         near other default option handling.
711 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
713         * genflags.c (gen_macro): Delete.
714         (gen_proto): Don't create GEN.*CALL.* macros.
715         * gensupport.h (get_file_location): Declare.
716         * gensupport.c (rtx_locs): New variable.
717         (read_md_rtx): Record rtx locations.
718         (get_file_location): New function.
719         * target-insns.def (call, call_pop, call_value, call_value_pop)
720         (sibcall, sibcall_value): New patterns.
721         * gentarget-def.c (parse_argument): New function.
722         (def_target_insn): Use it.  Handle optional operands.  Raise an
723         error if an .md pattern has the wrong number of operands for the
724         pattern name.  Remove the names of unused operands from the prototype.
725         * builtins.c (expand_builtin_apply): Use targetm functions
726         instead of HAVE_call_value and GEN_CALL_VALUE.
727         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
728         and sibcall_value_pop.
729         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
730         of GEN_CALL.
731         * config/alpha/alpha.md (untyped_call): Likewise.
732         * config/iq2000/iq2000.md (untyped_call): Likewise.
733         * config/m68k/m68k.md (untyped_call): Likewise.
734         * config/mips/mips.md (untyped_call): Likewise.
735         * config/pa/pa.md (untyped_call): Likewise.
736         * config/rs6000/rs6000.md (untyped_call): Likewise.
737         * config/sparc/sparc.md (untyped_call): Likewise.
738         * config/tilegx/tilegx.md (untyped_call): Likewise.
739         * config/tilepro/tilepro.md (untyped_call): Likewise.
740         * config/visium/visium.md (untyped_call): Likewise.
741         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
742         gen_call_value instead of GEN_CALL_VALUE.
743         * config/arm/arm.md (untyped_call): Likewise.
744         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
745         GEN_CALL.
747 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
749         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
750         (have_cbranchcc4): New variable.
751         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
752         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
753         (if_convert): Initialize have_cbranchcc4.
755 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
757         * builtins.c (expand_cmpstrn): Rename to...
758         (expand_cmpstrn_or_cmpmem): ...this.
759         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
760         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
761         Remove mode argument.
762         (expand_builtin): Update accordingly.
764 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
766         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
767         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
768         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
769         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
770         Add predicates for operands 0 and 3.
771         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
772         operand.
773         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
774         immediate_operand to nonmemory_operand.
776 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
778         * df-scan.c (df_insn_info_init_fields): New function, split out
779         from...
780         (df_insn_create_insn_record): ...here.
781         (df_insn_info_free_fields): New function, split out from...
782         (df_insn_info_delete): ...here.
783         (df_insn_rescan): Use the new functions instead of freeing and
784         reallocating the df_insn_info.
786 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
788         * doc/install.texi (Binaries): Remove links no longer valid.
790 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
792         * config/nvptx/mkoffload.c (process): Replace
793         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
795 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
797         PR target/67329
798         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
800 2015-08-24  Renlin Li  <renlin.li@arm.com>
802         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
803         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
804         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
805         * config/arm/constraints.md ("j"): Add check for high code.
807 2015-08-24  Tom de Vries  <tom@codesourcery.com>
809         PR tree-optimization/65468
810         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
811         chunk_size is one.
813 2015-08-24  Nathan Sidwell  <nathan@acm.org>
815         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
816         change to nvptx_type_from_mode call. Use arg_promotion for both
817         split and non-split args.
819 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
821         * target-insns.def (movstr): New pattern.
822         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
823         (expand_movstr): Use targetm rather than HAVE_movstr/
824         CODE_FOR_movstr.
826 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
828         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
829         cast syntax.
831 2015-08-24  Andrew Pinski  <apinski@cavium.com>
833         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
834         AARCH64_EXTRA_TUNING_OPTION.
835         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
836         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
837         of the argument to AARCH64_EXTRA_TUNING_OPTION.
838         * config/aarch64/aarch64.c: Remove the last argument to
839         AARCH64_EXTRA_TUNING_OPTION.
841 2015-08-23  Nathan Sidwell  <nathan@acm.org>
843         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
844         decls.
845         (nvptx_declare_function_name): Insert formatting tabs for
846         consistency.
848 2015-08-23  Tom de Vries  <tom@codesourcery.com>
850         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
851         parm_decl, rather than generating a dummy default def in cfun.
852         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
853         ssa_name from cfun and child_fn do not share a stmt as def stmt.
854         (move_stmt_op): Handle PARM_DECl.
855         (gather_ssa_name_hash_map_from): New function.
856         (move_sese_region_to_fn): Add default defs for function params, and add
857         them to vars_map.  Release copied ssa names.
858         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
860 2015-08-23  Tom de Vries  <tom@codesourcery.com>
862         * doc/sourcebuild.texi: Rename vect_no_int_max with
863         vect_no_int_min_max.  Update description.
865 2015-08-22  Andrew Pinski  <apinski@cavium.com>
867          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
868         * config/aarch64/aarch64-protos.h
869         (aarch64_fusion_pairs_index): New enum.
870         (aarch64_fusion_pairs): Base the shifted value on the index instead
871         Rewrite AARCH64_FUSE_ALL to be based on the end index.
872         of the argument to AARCH64_FUSION_PAIR.
873         * config/aarch64/aarch64.c: Remove the last argument to
874         AARCH64_FUSION_PAIR.
876 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
878         * dominance.c (new_zero_array): Define.
879         (dom_info): Redefine as class with proper encapsulation.
880         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
881         Add new members.
882         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
883         allocations/deallocations.  Pass function as parameter (instead of
884         using cfun).
885         (dom_info::get_idom): Define accessor method.
886         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
887         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
888         (calculate_dominance_info): Adjust to use dom_info class.
889         (verify_dominators): Likewise.
891 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
893         * print-rtl.c (print_rtx): Check the correct range for
894         flag_dump_unnumbered_links to behave as documented.
896         PR rtl-optimization/67227
897         PR rtl-optimization/64164
898         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
899         (nonoverlapping_memrefs_p): Test offsets and sizes when given
900         identical gimple_reg exprs.
902 2015-08-21  Nathan Sidwell  <nathan@acm.org>
904         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
905         expansion.
906         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
907         crtl->stack_alignment_needed to determine alignment.
908         (nvptx_get_drap_rtx): New.
909         (TARGET_GET_DRAP_RTX): Override.
910         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
912 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
914         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
916 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
918         * configure.ac: Remove uwin* cases.
919         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
920         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
921         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
922         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
923         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
924         i[34567]86-*-uwin*, powerpc-*-beos*.
926 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
928         * gencodes.c (gencodes): Print the comma for the preceding
929         enum value rather than the current one.  Use aliased enum values
930         rather than #defines for compiled-out patterns.
931         (main): Update accordingly.  Replace LAST_INSN_CODE with
932         NUM_INSN_CODES.
933         * lra.c (insn_code_data): Update accordingly.
934         (finish_insn_code_data_once, get_static_insn_data): Likewise.
935         * recog.h (target_recog): Likewise.
936         (preprocess_insn_constraints): Change parameter to unsigned int.
937         * recog.c (preprocess_insn_constraints): Likewise.
938         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
939         * tree-vect-stmts.c (vectorizable_operation): Simplify.
941 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
943         PR rtl-optimization/61657
944         * loop-iv.c (iv_number_of_iterations): Declare up and down as
945         unsigned.  Remove superflous uint64_t cast.
947 2014-08-21  Felix Yang  <felix.yang@huawei.com>
948             Jiji Jiang  <jiangjiji@huawei.com>
950         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
951         and get builtin function code directly from CALL.
952         (gimple_stringop_fixed_value): Modified accordingly.
953         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
954         accordingly and only accept BUILT_IN_NORMAL string operations.
956 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
958         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
960 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
962         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
963         to match.pd.
964         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
965         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
966         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
967         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
968         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
969         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
970         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
971         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
972         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
973         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
975         * match.pd (SIN ) : New Operator.
976         (TAN) : New Operator.
977         (mult (SQRT@1 @0) @1) : New simplifier.
978         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
979         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
980         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
981         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
982         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
983         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
984         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
985         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
986         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
987         (rdiv @0 (POW:s @1 @2)) : New simplifier.
989 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
991         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
992         loop if EXPR is simplified to const value.
994 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
996         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
997         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
999 2015-08-21  Richard Biener  <rguenther@suse.de>
1001         PR middle-end/67285
1002         * gimple-fold.c (replace_stmt_with_simplification): Assert
1003         seq is empty when replacing a call with itself but different
1004         arguments.
1005         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1006         a call require that it is const.
1008 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1010         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1011         * builtins.c (get_object_alignment_2): Adjust.
1012         * varasm.c (align_variable): Likewise.
1013         (get_variable_align): Likewise.
1014         (build_constant_desc): Likewise.
1015         (force_const_mem): Likewise.
1016         * doc/tm.texi.in: Likewise.
1017         * doc/tm.texi: Regenerate.
1019 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1021         * genconfig.c (main): Always define HAVE_cc0.
1022         * recog.c (rest_of_handle_peephole2): Adjust.
1024 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1026         * reorg.c (relax_delay_slots): Don't use #if to check value of
1027         HAVE_cc0.
1029 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1031         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1032         * targhooks.c (default_have_conditional_execution): Adjust.
1034 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1036         * rtl.h (rtvec_all_equal_p): Declare.
1037         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1038         * rtl.c (rtvec_all_equal_p): New function.
1039         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1040         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1041         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1042         * config/arm/arm.c (neon_vdup_constant): Likewise.
1043         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1044         * config/tilegx/constraints.md (W, Y): Likewise.
1045         * config/tilepro/constraints.md (W, Y): Likewise.
1046         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1047         (classify_immediate): Use unwrap_const_vec_duplicate.
1048         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1049         (reg_or_v2s8bit_operand): Likewise.
1050         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1051         (reg_or_v4s8bit_operand): Likewise.
1053 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1055         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1056         (vec_shasigma_be): New #define.
1057         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1058         (VPMSUMH): Likewise.
1059         (VPMSUMW): Likewise.
1060         (VPMSUMD): Likewise.
1061         (VPMSUM): New BU_P8V_OVERLOAD_2.
1062         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1063         entries for VEC_MADD and VEC_VPMSUM.
1065 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
1067         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1068         Multiply argument avr_n_flash by 64 to match unit of "KiB".
1069         (avr_pgm_check_var_decl): Same.
1071 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
1073         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1074         initialization of HFmode scalar type (float16_t) to...
1075         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1076         code.
1078         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1080         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1081         having an -mfp16-format.
1083 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1085         * config/i386/predicates.md (vector_all_ones_operand): Use
1086         CONSTM1_RTX to simplify definition.
1088 2015-08-20  Richard Biener  <rguenther@suse.de>
1090         * toplev.c (compile_file): Remove loop calling late_global_decl
1091         on all symbols.
1092         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1093         on decls we assembled.
1095 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
1097         * common/config/aarch64/aarch64-common.c
1098         (AARCH64_CPU_NAME_LENGTH): Delete.
1099         (aarch64_option_extension): New.
1100         (all_extensions): Likewise.
1101         (processor_name_to_arch): Likewise.
1102         (arch_to_arch_name): Likewise.
1103         (all_cores): New.
1104         (all_architectures): Likewise.
1105         (aarch64_get_extension_string_for_isa_flags): Likewise.
1106         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1107         architecture names.
1108         * config/aarch64/aarch64-protos.h
1109         (aarch64_get_extension_string_for_isa_flags): New.
1110         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1111         (aarch64_option_print): Get the string to print from
1112         aarch64_get_extension_string_for_isa_flags.
1113         (aarch64_declare_function_name): Likewise.
1114         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1115         (MCPU_TO_MARCH_SPEC): This.
1116         (ASM_CPU_SPEC): Use it.
1117         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1118         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1119         (EXTRA_SPEC_FUNCTIONS): Use it.
1121 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
1123         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1124         expansion when !ISA_HAS_LWL_LWR.
1125         (mips_block_move_straight): Update the size of elements copied to
1126         account for alignment when !ISA_HAS_LWL_LWR.
1127         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1129 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1131         * expr.c (expand_expr_real_2): Check gimple statement during
1132         LSHIFT_EXPR expand.
1134 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
1136         * common.opt (fstack-protector): Initialize to -1.
1137         (fstack-protector-all): Likewise.
1138         (fstack-protector-strong): Likewise.
1139         (fstack-protector-explicit): Likewise.
1140         * configure.ac: Add --enable-default-ssp.
1141         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
1142         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1143         -1.
1144         * doc/install.texi: Document --enable-default-ssp.
1145         * config.in: Regenerated.
1146         * configure: Likewise.
1148 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
1150         PR rtl-optimization/64164
1151         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1152         (parm_in_stack_slot_p): ... this.  Disregard mode, what
1153         matters is whether the parm will live in a pseudo or a stack
1154         slot.
1155         (expand_one_ssa_partition): Deal with params without a default
1156         def.  Disregard mode.
1157         * cfgexpand.h: Renamed function declaration.
1158         * tree-ssa-coalesce.c: Adjust.
1159         * function.c (split_complex_args): Allocate stack slot for
1160         unassigned parms before splitting.
1161         (parm_in_unassigned_mem_p): New.  Use it instead of
1162         parm_maybe_byref_p throughout this file.
1163         (assign_parm_setup_block): Use it.  Accept pseudos in the
1164         expand-assigned rtl.
1165         (assign_parm_setup_reg): Drop BLKmode requirement.
1166         (assign_parm_setup_stack): Allocate and fill in the address of
1167         unassigned MEM parms.
1169 2015-08-19  David Sherwood  <david.sherwood@arm.com>
1171         * genmodes.c (emit_mode_unit_size_inline): New function.
1172         (emit_mode_unit_precision_inline): New function.
1173         (emit_insn_modes_h): Emit new #define.  Emit new functions.
1174         (emit_mode_unit_size): New function.
1175         (emit_mode_unit_precision): New function.
1176         (emit_mode_adjustments): Add mode_unit_size adjustments.
1177         (emit_insn_modes_c): Emit new arrays.
1178         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1179         use new inline methods.
1181 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1183         * config/aarch64/aarch64.c (bit_count): Delete prototype
1184         and definition.
1185         (aarch64_print_operand): Use popcount_hwi instead of the above.
1187 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1189         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1190         comment.
1192 2015-08-19  Marek Polacek  <polacek@redhat.com>
1194         PR middle-end/67133
1195         * gimple-ssa-isolate-paths.c
1196         (insert_trap_and_remove_trailing_statements): Rename to ...
1197         (insert_trap): ... this.  Don't remove trailing statements; split
1198         block instead.
1199         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1201 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
1203         PR other/67042
1204         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1205         conditionalize the whole on __GNUC__.  Add fallback code
1206         depending neither on undefined nor implementation-defined behaviour.
1208 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1210         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1211         whitespaces with tab.
1213 2015-08-19  Florian Weimer  <fweimer@redhat.com>
1215         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1216         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1217         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1218         Move Name_Ids instantiation to the Prj.Proc package, to avoid
1219         trampolines.
1221 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1223         * config/arm/arm.c (bounds_check): Use %wd print format
1224         for HOST_WIDE_INT arguments.
1226 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1228         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1229         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1230         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1231         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1232         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1233         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1234         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1235         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1236         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1237         typedefs.
1239 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
1241         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1242         function.c, graphite-scop-detection.c, haifa-sched.c,
1243         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1244         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1245         varasm.c: Remove typedefs of structs.
1247 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1249         * config/rs6000/altivec.h (vec_adde): New define.
1250         (vec_addec): Likewise.
1251         (vec_double): Likewise.
1252         (vec_bperm): Likewise.
1253         (vec_gb): Likewise.
1254         * config/rs6000/rs6000-builtin.def (ADDE): New
1255         BU_ALTIVEC_OVERLOAD_3.
1256         (ADDEC): Likewise.
1257         (DOUBLE): New BU_VSX_OVERLOAD_1.
1258         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1259         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1260         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1261         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1262         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1263         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1264         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1265         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1266         and P8V_BUILTIN_VEC_VBPERMQ.
1268 2015-08-18  Jason Merrill  <jason@redhat.com>
1270         * print-tree.c (print_node): Handle TREE_BINFO.
1272 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1274         PR middle-end/36757
1275         * builtins.c (expand_builtin_signbit): Add asserts to make sure
1276         we can expand BUILT_IN_SIGNBIT inline.
1277         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1278         * doc/extend.texi: Document the type-generic __builtin_signbit.
1280 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
1282         PR rtl-optimization/67218
1283         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1284         (simplify_unary_operation_1): Use it.
1286 2015-08-18  Marek Polacek  <polacek@redhat.com>
1288         PR middle-end/67222
1289         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1290         if the call isn't valid.
1291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1292         gimple_call_builtin_p.
1293         (call_may_clobber_ref_p_1): Likewise.
1294         (stmt_kills_ref_p): Likewise.
1296 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1298         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1299         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1300         (mips_hard_regno_scratch_ok): Likewise.
1301         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1302         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1304 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
1306         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1307         (determine_value_range): Call refine_value_range_using_guard for
1308         each loop initial condition to improve value range.
1310 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
1312         * config/i386/i386.c: Remove include of fibheap.h.
1314 2015-08-17  Richard Biener  <rguenther@suse.de>
1316         PR tree-optimization/67221
1317         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1318         (sccvn_dom_walker::before_dom_children): Mark backedges of
1319         non-executable blocks as not executable.
1321 2015-08-17  David Sherwood  <david.sherwood@arm.com>
1323         * config/arm/arm.c (neon_element_bits): Replace call to
1324         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1325         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1326         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1327         (neon_vdup_lane<mode>): Likewise.
1328         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1329         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1330         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1331         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1332         * config/spu/spu.c (arith_immediate_p): Likewise.
1333         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1334         * expr.c (expand_expr_real_2): Likewise.
1335         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1336         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1337         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1338         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1339         New variable.
1340         * fold-const.c (fold_binary_loc): Replace call to
1341         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1342         GET_MODE_UNIT_PRECISION (m).
1344 2015-08-17  Mike Stump  <mikestump@comcast.net>
1346         * config/arm/arm.c (arm_block_move_unaligned_straight):
1347         Emit normal move instead of unaligned load when source or destination
1348         are appropriately aligned.
1350 2015-08-17  Richard Biener  <rguenther@suse.de>
1351             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1353         PR middle-end/16107
1354         * match.pd (div (coss (op @0) : New simplifier.
1356 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
1358         PR rtl-optimization/64164
1359         PR bootstrap/66978
1360         PR middle-end/66983
1361         PR rtl-optimization/67000
1362         PR middle-end/67034
1363         PR middle-end/67035
1364         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1365         * tree-ssa-copyrename.c: Removed.
1366         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1367         -ftree-coalesce-vars.
1368         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1369         * common.opt (ftree-copyrename): Ignore.
1370         (ftree-coalesce-inlined-vars): Likewise.
1371         * doc/invoke.texi: Remove the ignored options above.
1372         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1373         * tree-ssa-coalesce.h: ... here.
1374         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1375         headers required by it.
1376         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1377         across variables when flag_tree_coalesce_vars.  Check register
1378         use and promoted modes to allow coalescing.  Do not coalesce
1379         maybe-byref parms with SSA_NAMEs of other variables, or
1380         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
1381         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1382         with its member functions to tree-ssa-coalesce.c.
1383         (var_map_base_init): Likewise.  Renamed to
1384         compute_samebase_partition_bases.
1385         (partition_view_normal): Drop want_bases parameter.
1386         (partition_view_bitmap): Likewise.
1387         * tree-ssa-live.h: Adjust declarations.
1388         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1389         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1390         default defs at the entry point.
1391         (dump_part_var_map): New.
1392         (compute_optimized_partition_bases): New, called by...
1393         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1394         of compute_samebase_partition_bases.  Adjust.
1395         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1396         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1397         (ssa_default_def_partition): New.
1398         (get_rtl_for_parm_ssa_default_def): New.
1399         (align_local_variable, add_stack_var): Support anonymous SSA
1400         names.
1401         (defer_stack_allocation): Likewise.  Declare earlier.
1402         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1403         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1404         Do no record deferred-allocation marker in
1405         SA.partition_to_pseudo.
1406         (expand_stack_vars): Adjust check for the marker in it.
1407         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1408         redundant MEM attr setting.
1409         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1410         from...
1411         (expand_one_stack_var): ... this.  New wrapper to check and
1412         skip already expanded SSA partitions.
1413         (record_alignment_for_reg_var): New, factored out of...
1414         (expand_one_var): ... this.
1415         (expand_one_ssa_partition): New.
1416         (adjust_one_expanded_partition_var): New.
1417         (expand_one_register_var): Check and skip already expanded SSA
1418         partitions.
1419         (expand_used_vars): Don't create DECLs for anonymous SSA
1420         names.  Expand all SSA partitions, then adjust all SSA names.
1421         (pass::execute): Replace the loops that set
1422         SA.partition_to_pseudo from partition leaders and cleared
1423         DECL_RTL for multi-location variables, and that which used to
1424         rename vars and set attrs, with one that clears DECL_RTL and
1425         checks that PARMs and RESULTs default_defs match DECL_RTL.
1426         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1427         * emit-rtl.c: Include stor-layout.h.
1428         (set_reg_attrs_for_parm): Handle NULL decl.
1429         (set_reg_attrs_for_decl_rtl): Take mode from expression if
1430         it's not a DECL.
1431         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1432         rather than its possibly-NULL DECL.
1433         * explow.c (promote_ssa_mode): New.
1434         * explow.h (promote_ssa_mode): Declare.
1435         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1436         (read_complex_part): Export.
1437         * expr.h (read_complex_part): Declare.
1438         * cfgexpand.h (parm_maybe_byref_p): Declare.
1439         * function.c: Include cfgexpand.h.
1440         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1441         (use_register_for_parm_decl): Wrapper for the above to
1442         special-case the result_ptr.
1443         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1444         (split_complex_args): Take assign_parm_data_all argument.
1445         Pass it to rtl_for_parm.  Set up rtl and context for split
1446         args.  Reset complex parm before fetching its default decl
1447         rtl.
1448         (assign_parms_unsplit_complex): Use the default-def complex
1449         parm rtl if it matches the components.
1450         (assign_parms_augmented_arg_list): Adjust.
1451         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1452         multiple locations.  Recognize split complex args.
1453         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1454         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1455         (assign_parm_setup_block): Prefer SSA-assigned location, and
1456         fill in its address if the memory location of a maybe-byref
1457         parm was not assigned by cfgexpand.
1458         (assign_parm_setup_reg): Likewise.  Adjust its mode as
1459         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
1460         sure passed_pointer parms don't need conversion.  Copy address
1461         or value as needed.
1462         (assign_parm_setup_stack): Prefer SSA-assigned location.
1463         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1464         rtl before testing for pointer bounds.  Special-case result_ptr.
1465         (expand_function_start): Maybe reset DECL_RTL of result.
1466         Prefer SSA-assigned location for result and static chain.
1467         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
1468         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
1469         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1470         anonymous SSA names.  Use promote_ssa_mode.
1471         (get_temp_reg): Likewise.
1472         (remove_ssa_form): Adjust.
1473         * stor-layout.c (layout_decl): Don't set mem attributes of
1474         non-MEMs.
1475         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1476         and get its reg_usage for reg invalidation.
1477         (compute_bb_dataflow): Pass it insn.
1478         (emit_notes_in_bb): Likewise.
1480 2015-08-14  Marek Polacek  <polacek@redhat.com>
1482         * tree-core.h (tree_base): Fix typo.
1484 2015-08-14  Marek Polacek  <polacek@redhat.com>
1486         PR middle-end/67133
1487         * gimple.c (infer_nonnull_range_by_attribute): Check that the
1488         nonnull argument position is not outside function arguments.
1490 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
1492         PR target/67143
1493         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1494         'lconst_atomic' with 'const_atomic'.
1495         (atomic_fetch_<optab><mode>): Likewise.
1496         (atomic_<optab>_fetch<mode>): Likewise.
1497         * config/aarch64/iterators.md (lconst-atomic): Move below
1498         'const_atomic'.
1499         (const_atomic): New.
1501 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
1502             Bernd Schmidt  <bernds@codesourcery.com>
1504         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1505         debug options.
1506         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1507         (DWARF2_DEBUGGING_INFO): Don't define.
1508         * debug.h (dwarf2_lineno_debug_hooks): Declare.
1509         * toplev.c (process_options): Add a case for it.
1510         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1511         (dwarf2out_init): Skip most initializations if
1512         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1513         case.
1514         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1515         DWARF2_LINENO_DEBUGGING_INFO.
1516         * opts.c (set_debug_level): Likewise.
1518 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
1520         * config/arm/types.md (is_neon_type): Add missing types.
1522 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
1524         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1525         for skylake.
1526         * config/i386/i386.c (PTA_SKYLAKE): New macros.
1527         (processor_alias_table): Add skylake description.
1528         (enum processor_model): Add skylake processor.
1529         (arch_names_table): Add skylake record.
1530         * doc/invoke.texi: Add skylake item.
1532 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
1534         * ira-int.h: Include recog.h.
1535         * ira-build.c: Don't include recog.h.
1536         * ira-color.c: Likewise.
1537         * ira-conflicts.c: Likewise.
1538         * ira-costs.c: Likewise.
1539         * ira-emit.c: Likewise.
1540         * ira-lives.c: Likewise.
1541         * ira.c: Likewise.
1542         * sched-deps.c: Likewise.
1543         * sel-sched.c: Likewise.
1544         * target-globals.c: Likewise.
1546 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1548         PR bootstrap/55035
1549         * reload1.c (elimination_costs_in_insn): Make it obvious to the
1550         compiler that the n_dups and n_operands loop bounds are invariant.
1552 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1554         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1555         expressions in A and B.
1557 2015-08-13  Richard Biener  <rguenther@suse.de>
1559         * tree.c (nonnull_arg_p): Move from ...
1560         * tree-vrp.c (nonnull_arg_p): ... here.
1561         * tree.h (nonnull_arg_p): Declare.
1562         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1563         here, register ptr != 0 for nonnull_arg_p pointer arguments.
1564         Properly initialize static chain and by-reference result pointer.
1565         (run_scc_vn): Adjust.
1567 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1569         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1570         TUNE_I6400.
1572 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1574         * config/aarch64/aarch64-protos.h
1575         (aarch64_gen_atomic_cas): Declare.
1576         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1577         Choose appropriate instruction pattern for the target.
1578         (aarch64_gen_atomic_cas): New.
1579         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1580         (atomic_compare_and_swap<mode>_1): Rename to
1581         aarch64_compare_and_swap<mode>.  Fix some indentation.
1582         (aarch64_compare_and_swap<mode>_lse): New.
1583         (aarch64_atomic_cas<mode>): New.
1585 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1587         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1588         (TARGET_LSE): New.
1590 2015-08-13  Richard Biener  <rguenther@suse.de>
1592         PR tree-optimization/67191
1593         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1594         assert we value-numbered last stmts operand because it can validly
1595         trigger for unreachable code.
1597 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1599         PR rtl-optimization/67103
1600         * ifcvt.c (noce_try_store_flag_constants): Move
1601         x = (-(test != 0) & (b - a)) + a transformation to...
1602         (noce_try_cmove): ... Here.  Try it if normal conditional
1603         move fails.
1605 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1607         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1608         pseudo-processors.
1609         * config/mips/mips.md (processor): Remove w32 and w64.
1611 2015-08-13  Richard Biener  <rguenther@suse.de>
1613         PR tree-optimization/66502
1614         PR tree-optimization/67167
1615         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
1616         backedge arguments.
1617         (vn_phi_lookup): Adjust.
1618         (vn_phi_insert): Likewise.
1619         (visit_phi): Prefer to value-number to another PHI node
1620         over value-numbering to a PHI argument.
1621         (init_scc_vn): Mark DFS back edges.
1623 2015-08-13  Richard Biener  <rguenther@suse.de>
1625         * gimple.h (gcall::code_): New constant static member.
1626         (gcond::code_): Likewise.
1627         * gimple.c (gcall::code_): Define.
1628         (gcond::code_): Likewise.
1629         (is_a_helper <const gcond *>): Add.
1630         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
1631         and forward to a new gcall overload with less checking and a
1632         cheaper way to access the operand.
1633         (gimple_call_lhs_ptr): Likewise.
1634         (gimple_call_set_lhs): Likewise.
1635         (gimple_call_internal_p): Likewise.
1636         (gimple_call_with_bounds_p): Likewise.
1637         (gimple_call_set_with_bounds): Likewise.
1638         (gimple_call_internal_fn): Likewise.
1639         (gimple_call_set_ctrl_altering): Likewise.
1640         (gimple_call_ctrl_altering_p): Likewise.
1641         (gimple_call_fntype): Likewise.
1642         (gimple_call_fn): Likewise.
1643         (gimple_call_fn_ptr): Likewise.
1644         (gimple_call_set_fndecl): Likewise.
1645         (gimple_call_fndecl): Likewise.
1646         (gimple_call_chain): Likewise.
1647         (gimple_call_num_args): Likewise.
1648         (gimple_call_arg): Likewise.
1649         (gimple_call_arg_ptr): Likewise.
1650         (gimple_call_set_arg): Likewise.
1651         (gimple_call_noreturn_p): Likewise.
1652         (gimple_cond_code): Likewise.
1653         (gimple_cond_lhs): Likewise.
1654         (gimple_cond_rhs): Likewise.
1655         (gimple_has_lhs): Reduce checking.
1657 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1659         PR middle-end/25529
1660         * match.pd (div (mult @0 @1) @1) : New simplifier.
1662 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1664         PR target/67071
1665         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
1666         predicate to allow construction of vector constants using the
1667         VSLDOI vector shift instruction.
1669         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
1670         declaration.
1672         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
1673         the number of bytes to be shifted left and filled in with either
1674         all zero or all one bits.
1675         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
1676         methods exist.
1677         (output_vec_const_move): On power8, generate XXLORC to generate
1678         a vector constant with all 1's. Do a split if we need to use a
1679         VSLDOI instruction.
1681         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
1682         properly test for the MSB.
1684         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
1685         vector constants that can be created with VSLDOI.
1687 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
1689         revert:
1690         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
1691         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
1692         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
1693         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
1694         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
1695         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1696         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
1697         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
1698         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
1700 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
1702         * config/xtensa/constraints.md (define_constraint "Y"): New
1703         constraint.
1704         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
1705         * config/xtensa/linux.h (ASM_SPEC): Likewise.
1706         * config/xtensa/predicates.md (move_operand): Match constants
1707         and symbols in the presence of TARGET_AUTO_LITPOOLS.
1708         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
1709         immediate references to TLS data.
1710         (xtensa_emit_move_sequence): Don't force constants to memory in
1711         the presence of TARGET_AUTO_LITPOOLS.
1712         (print_operand): Add 'y' format, same as default, but capable of
1713         printing SF mode constants as well.
1714         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
1715         (movsf_internal): Add movi pattern that loads literal.
1716         (movsf, movdf): Don't force constants to memory in the presence
1717         of TARGET_AUTO_LITPOOLS.
1718         (movdf_internal): Add 'Y' constraint.
1719         * config/xtensa/xtensa.opt (mauto-litpools): New option.
1720         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
1722 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
1724         * config/arm/arm-fpus.def: Replace booleans with feature flags.
1725         Update comment.
1726         * config/arm/arm.c (ARM_FPU): Update macro.
1727         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
1728         (TARGET_FP16): Likewise.
1729         (TARGET_CRYPTO): Likewise.
1730         (TARGET_NEON): Likewise.
1731         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
1732         field features.
1734 2015-08-12  Tom de Vries  <tom@codesourcery.com>
1736         PR other/67092
1737         PR other/67098
1738         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
1739         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
1740         accordingly.  Mention default for --with-stage1-ldflags.
1742 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
1744         * config/arm/arm.h (arm_fpu_feature_set): New.
1745         (ARM_FPU_FSET_HAS): New.
1746         (FPU_FL_NONE): New.
1747         (FPU_FL_NEON): New.
1748         (FPU_FL_FP16): New.
1749         (FPU_FL_CRYPTO): New.
1751 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1753         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
1754         after -mcmodel=large -fPIC sorry.
1756 2015-08-12  Richard Biener  <rguenther@suse.de>
1758         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
1759         comparison operand order and commutative ternary op operand order.
1760         (sccvn_dom_walker::cond_stack): New state to track temporary
1761         expressions.
1762         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
1763         no longer valid.
1764         (sccvn_dom_walker::record_cond): Add a single temporary conditional
1765         expression.
1766         (sccvn_dom_walker::record_conds): Add a temporary conditional
1767         expressions and all related expressions also true/false.
1768         (sccvn_dom_walker::before_dom_children): Record temporary
1769         expressions based on the controlling condition of a single
1770         predecessor.  When trying to simplify a conditional statement
1771         lookup expressions we might have inserted earlier.
1773 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
1775         PR target/67127
1776         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
1777         to ARM core registers.
1779 2015-08-12  Nathan Sidwell  <nathan@acm.org>
1781         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
1782         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
1784 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
1786         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
1787         line with comments.
1788         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
1790 2015-08-12  Richard Biener  <rguenther@suse.de>
1792         * gimple.h (remove_pointer): New trait.
1793         (GIMPLE_CHECK2): New inline template function.
1794         (gassign::code_): New constant static member.
1795         (is_a_helper<const gassign *>): Add.
1796         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
1797         and forward to a new gassign overload with less checking and a
1798         cheaper way to access the operand.
1799         (gimple_assign_lhs_ptr): Likewise.
1800         (gimple_assign_set_lhs): Likewise.
1801         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
1802         Likewise.
1803         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
1804         Likewise.
1805         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
1806         Likewise.
1807         (gimple_assign_rhs_code): Likewise.
1808         * gimple.c (gassign::code_): Define.
1810 2015-08-12  Richard Biener  <rguenther@suse.de>
1812         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1813         Eliminate edges marked as not executable by SCCVN.
1814         * tree-ssa-sccvn.c: Include gimple-iterator.h.
1815         (cond_dom_walker): Rename to sccvn_dom_walker.
1816         (sccvn_dom_walker::before_dom_children): Value-number defs
1817         of all stmts.
1818         (run_scc_vn): Remove loop value-numbering all SSA names.
1819         Drop not visited SSA names to varying.
1821 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
1823         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
1824         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
1825         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
1826         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
1827         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
1828         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1829         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
1830         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
1831         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
1833 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
1835         PR target/66954
1836         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
1837         to enum feature_priority and feature_list.
1838         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
1839         and isa_names_table.
1841 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
1843         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
1844         vect_induction_def.
1846 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1848         PR c/66098
1849         PR c/66711
1850         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
1851         account when deciding what was the command-line status.
1853 2015-08-11  Nathan Sidwell  <nathan@acm.org>
1855         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
1857         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
1858         we're not the only contributor to target phi.
1860 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
1862         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
1863         FIXED_REG0.
1865 2015-08-11  Tom de Vries  <tom@codesourcery.com>
1867         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
1869 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
1871         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
1872         with CPU_SLM.
1873         * config/i386/i386.md (cpu): Remove knl.
1875 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
1877         PR libgomp/65742
1878         PR middle-end/66332
1879         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
1880         open-coded sequence.
1881         * omp-low.c (oacc_process_reduction_data): Remove handline of
1882         GOMP_DEVICE_HOST_NONSHM.
1884         * lto-streamer-in.c (lto_input_mode_table): Adjust to
1885         GET_MODE_INNER changes.
1887 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
1888             Ilya Verbin  <ilya.verbin@intel.com>
1890         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
1891         iterator.
1893 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1895         * doc/options.texi (EnabledBy): Document that the argument must be
1896         a Common option.
1897         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
1898         Not enabled by -Wall.
1899         * optc-gen.awk: Give nicer error messages. Detect if the argument
1900         of EnabledBy is not a Common option.
1901         * common.opt (Wnull-dereference): Not enabled by -Wall.
1902         * opt-functions.awk (lang_enabled_by): Nicer error messages.
1904 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1906         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
1907         model == 0x4f as Broadwell.
1909 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
1911         PR rtl-optimization/67028
1912         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
1913         Add test to see if a const_int fits in the new mode.
1915 2015-08-07  DJ Delorie  <dj@redhat.com>
1917         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
1918         
1919 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1921         PR rtl-optimization/67029
1922         * ira-color.c: Include "recog.h" before including "ira-int.h".
1923         * target-globals.c: Likewise.
1924         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
1925         adds an alternative_mask argument and use it instead of
1926         preferred_alternatives.
1927         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
1928         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
1929         * sched-deps.c: Include "ira-int.h" after including "ira.h".
1930         (sched_analyze_insn): Update call to
1931         ira_implicitly_set_insn_hard_regs.
1932         * sel-sched.c: Include "ira-int.h" after including "ira.h".
1933         (implicit_clobber_conflict_p): Update call to
1934         ira_implicitly_set_insn_hard_regs.
1936 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
1938         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
1940 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
1942         PR target/67002
1943         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
1944         currently_expanding_to_rtl is set.
1946 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
1948         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
1949         * configure: Regenerate.
1951 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1952             Jiong Wang  <jiong.wang@arm.com>
1954         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
1955         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
1956         (REG_CLASS_NAMES): Likewise.
1957         (REG_CLASS_CONTENTS): Likewise.
1958         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
1959         (aarch64_register_move_cost): Likewise.
1960         (aarch64_load_symref_appropriately): Invoke the new added pattern if
1961         possible.
1962         * config/aarch64/constraints.md (Uc0): New constraint.
1964 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
1966         * config/aarch64/constraints.md (Usf): Add the test of
1967         aarch64_is_noplt_call_p.
1969 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
1971         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
1972         declaration.
1973         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
1974         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
1975         (call_symbol): Likewise.
1977 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
1979         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
1980         for vectorizing multiplication patterns.
1981         * tree-vectorizer.h: Adjust the number of patterns.
1983 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
1985         * config/i386/sse.md (*vec_concatv2df): Declare added
1986         alternatives as sselog type.
1988 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1990         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
1991         all GPRs.
1993 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1995         * config/s390/s390.c (s390_expand_tbegin): Expand either
1996         tbegin_1_z13 or tbegin_1 depending on VX flag.
1997         * config/s390/s390.md ("tbegin_1_z13"): New expander.
1999 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2001         * config/s390/s390.opt: Clarify description for -mzvector
2002         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2003         -mzvector.
2005 2015-08-06  Richard Biener  <rguenther@suse.de>
2007         * gimple.h (gimple_call_set_fn): Access op member directly.
2008         (gimple_call_chain_ptr): Likewise.
2009         (gimple_call_set_chain): Likewise.
2010         (gimple_cond_lhs_ptr): Likewise.
2011         (gimple_cond_set_lhs): Likewise.
2012         (gimple_cond_rhs_ptr): Likewise.
2013         (gimple_cond_set_rhs): Likewise.
2014         (gimple_cond_true_label): Likewise.
2015         (gimple_cond_set_true_label): Likewise.
2016         (gimple_cond_set_false_label): Likewise.
2017         (gimple_cond_false_label): Likewise.
2018         (gimple_label_label): Likewise.
2019         (gimple_label_set_label): Likewise.
2020         (gimple_goto_set_dest): Likewise.
2021         (gimple_asm_input_op): Likewise.
2022         (gimple_asm_input_op_ptr): Likewise.
2023         (gimple_asm_set_input_op): Likewise.
2024         (gimple_asm_output_op): Likewise.
2025         (gimple_asm_output_op_ptr): Likewise.
2026         (gimple_asm_set_output_op): Likewise.
2027         (gimple_asm_clobber_op): Likewise.
2028         (gimple_asm_set_clobber_op): Likewise.
2029         (gimple_asm_label_op): Likewise.
2030         (gimple_asm_set_label_op): Likewise.
2031         (gimple_switch_index): Likewise.
2032         (gimple_switch_index_ptr): Likewise.
2033         (gimple_return_retval_ptr): Likewise.
2034         (gimple_return_retval): Likewise.
2035         (gimple_return_set_retval): Likewise.
2036         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
2037         (gimple_switch_label): Likewise.
2038         (gimple_switch_set_label): Likewise.
2040 2015-08-06  Richard Biener  <rguenther@suse.de>
2042         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2043         bool comparison canonicalization and restrict to integers.
2045 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
2047         * coretypes.h (enum symbol_visibility): Relocate here.
2048         * flag-types.h (enum symbol_visibility): Remove.
2049         * tree-core.h (enum symbol_visibility): Remove.
2051 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
2053         PR target/66870
2054         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2055         for no_split_stack function attribute along with
2056         flag_split_stack.
2057         (rs6000_expand_split_stack_prologue): Likewise.
2059 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2060             Jeff Law  <law@redhat.com>
2062         PR c/16351
2063         * doc/invoke.texi (Wnull-dereference): New.
2064         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2065         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2066         Warn for potential NULL dereferences.
2067         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2068         * ubsan.c (instrument_nonnull_arg): Call
2069         infer_nonnull_range_by_attribute.
2070         (instrument_nonnull_return): Likewise.
2071         * common.opt (Wnull-dereference); New.
2072         * gimple.c (infer_nonnull_range): Remove bool arguments.
2073         (infer_nonnull_range_by_dereference): New.
2074         (infer_nonnull_range_by_attribute): New.
2075         * gimple.h: Update declarations.
2077 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2079         * gensupport.c (sequence_num): Replace with...
2080         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2081         ...these new variables.
2082         (init_rtx_reader_args_cb): Update accordingly.
2083         (get_num_code_insns): Likewise.
2084         (read_md_rtx): Rework to use a while loop and get_c_test.
2085         Use the new counters.  Remove redundant DEFINE_SUBST case.
2086         * genoutput.c (gen_split): Delete.
2087         (main): Don't call it.
2089 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2091         * gensupport.h (get_c_test): Declare.
2092         * gensupport.c (get_c_test): New function.
2093         * genconditions.c (main): Use it.
2094         * genrecog.c (validate_pattern): Likewise.
2095         (match_pattern_1): Likewise.  Remove c_test argument.
2096         (match_pattern): Update accordingly and remove c_test argument.
2097         (main): Update accordingly.
2099 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2101         * gensupport.h (get_num_insn_codes): Declare.
2102         * gensupport.c (get_num_insn_codes): New function.
2103         * genattrtab.c (optimize_attrs): Rename max_insn_code to
2104         num_insn_codes.
2105         (main): Likewise.  Use get_num_insn_codes.
2106         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2108 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2110         PR middle-end/66311
2111         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2112         is zero- rather than sign-extended.
2114 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2116         * target-insns.def (can_extend): Delete.
2118 2015-08-05  Richard Biener  <rguenther@suse.de>
2120         PR tree-optimization/67121
2121         * tree-if-conv.c (combine_blocks): Clear range-info produced
2122         by stmts no longer executed conditionally.
2124 2015-08-05  Nick Clifton  <nickc@redhat.com>
2126         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2127         to allow identical far pointers to remain.
2129 2015-08-05  Richard Biener  <rguenther@suse.de>
2131         PR middle-end/67120
2132         * match.pd: Compare address bases with == if they are decls
2133         or SSA names, not operand_equal_p.  Otherwise fail.
2135 2015-08-05  Richard Biener  <rguenther@suse.de>
2137         PR tree-optimization/67055
2138         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2139         NULL gimple_block.
2141         * g++.dg/torture/pr67055.C: New testcase.
2143 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2145         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2146         noavx512vl.
2147         (define_attr "enabled"): Handle avx521vl and noavx512vl.
2148         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2149         AVX-512 alternative out of SSE.
2150         (define_insn "*vec_concatv2df"): Ditto.
2152 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2154         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2155         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2156         CODE_FOR_avx_ptestv4di.
2157         * config/i386/sse.md (define_mode_iterator V_AVX): New.
2158         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2159         (define_insn "avx_ptest256"): Merge this ...
2160         (define_insn "sse4_1_ptest"): And this ...
2161         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2163 2015-08-05  Richard Biener  <rguenther@suse.de>
2165         PR tree-optimization/67109
2166         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2167         against too big groups.  Print whether this is a load or store
2168         group.  Rename from ...
2169         (vect_analyze_group_access): ... this which is now a wrapper
2170         dissolving an invalid group.
2171         (vect_analyze_data_ref_accesses): Print whether this is a load
2172         or store group.
2174 2015-08-05  Richard Biener  <rguenther@suse.de>
2176         PR middle-end/67107
2177         * match.pd: Guard const_binop result checking against NULL_TREE
2178         result.
2180 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2182         * cse.c (cse_insn): Restoring old behaviour for src_eqv
2183          when dest and value in the REG_EQUAL are same and dest
2184          is STRICT_LOW_PART.
2186 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
2188         * config/moxie/moxie.h (PRINT_OPERAND,
2189           PRINT_OPERAND_ADDRESS): Remove macros.
2190         * config/moxie/moxie-protos.h (moxie_print_operand,
2191           moxie_print_operand_address): Remove declaration.
2192         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2193           TARGET_PRINT_OPERAND_ADDRESS): Define.
2194           (moxie_print_operand, moxie_print_operand_address): Make static.
2196 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2198         PR target/66731
2199         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2200         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2202 2015-08-04  Richard Biener  <rguenther@suse.de>
2204         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2205         generated code.
2206         (dt_operand::gen_gimple_expr): Adjust.
2208 2015-08-04  Richard Biener  <rguenther@suse.de>
2210         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2211         bool compares on RHS.
2212         * match.pd: Add X ==/!= !X is false/true pattern.
2214 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
2216         * config/aarch64/aarch64.c: Change inner loop statement cost
2217         to be consistent with other targets.
2219 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
2221         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2222         targets.
2224 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2226         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2227         (machine_function): Remove pseudos field.
2229 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2231         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2232         Exit early and use target_option_current_node if processing current
2233         pragma.
2235 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2237         * doc/extend.texi (AArch64 Function Attributes): New node.
2238         (AArch64 Pragmas): Likewise.
2240 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2242         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2243         Initialize simd builtins if TARGET_SIMD.
2244         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2245         Make sure that the builtins are initialized only once no matter how
2246         many times the function is called.
2247         (aarch64_init_builtins): Unconditionally initialize crc builtins.
2248         (aarch64_relayout_simd_param): New function.
2249         (aarch64_simd_expand_args): Use above during argument expansion.
2250         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2251         simd builtins if TARGET_SIMD.
2252         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2253         prototype.
2254         (aarch64_relayout_simd_types): Likewise.
2256 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2258         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2259         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2260         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2261         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2262         static keyword.
2263         (aarch64_reset_previous_fndecl): New function.
2264         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2265         the string.
2266         * config/aarch64/aarch64-c.c: New file.
2267         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2268         Push and pop options at beginning and end.  Remove ifdef
2269         __ARM_FEATURE_CRC32.
2270         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2271         Add pragma +nothing+simd and +nothing+crypto where appropriate.
2272         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2273         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2274         Define prototype.
2275         (aarch64_register_pragmas): Likewise.
2276         (aarch64_reset_previous_fndecl): Likewise.
2277         (aarch64_process_target_attr): Likewise.
2278         (aarch64_override_options_internal): Likewise.
2280 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2282         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2283         New function.
2284         (aarch64_can_inline_p): Likewise.
2285         (TARGET_CAN_INLINE_P): Define.
2287 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2289         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2290         Remove static.  Handle OPT_mgeneral_regs_only,
2291         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2292         OPT_momit_leaf_frame_pointer.
2293         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2294         (aarch64_attr_opt_type): New enum.
2295         (aarch64_attribute_info): New struct.
2296         (aarch64_handle_attr_arch): New function.
2297         (aarch64_handle_attr_cpu): Likewise.
2298         (aarch64_handle_attr_tune): Likewise.
2299         (aarch64_handle_attr_isa_flags): Likewise.
2300         (aarch64_attributes): New table.
2301         (aarch64_process_one_target_attr): New function.
2302         (num_occurences_in_str): Likewise.
2303         (aarch64_process_target_attr): Likewise.
2304         (aarch64_option_valid_attribute_p): Likewise.
2305         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2306         * config/aarch64/aarch64-protos.h: Include input.h
2307         (aarch64_handle_option): Declare prototype.
2309 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2311         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2312         * config/aarch64/aarch64.c: Include target-globals.h
2313         (aarch64_previous_fndecl): New variable.
2314         (aarch64_set_current_function): New function.
2315         (TARGET_SET_CURRENT_FUNCTION): Define.
2317 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2319         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2320         (explicit_arch): Likewise.
2321         (x_aarch64_isa_flags): Likewise.
2322         (mgeneral-regs-only): Mark as Save.
2323         (mfix-cortex-a53-835769): Likewise.
2324         (mcmodel=): Likewise.
2325         (mstrict-align): Likewise.
2326         (momit-leaf-frame-pointer): Likewise.
2327         (mtls-dialect): Likewise.
2328         (master=): Likewise.
2329         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2330         (aarch64_isa_flags): Remove extern declaration.
2331         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2332         to indicate success or failure.
2333         (aarch64_validate_march): Likewise.
2334         (aarch64_validate_mtune): Likewise.
2335         (aarch64_isa_flags): Delete.
2336         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2337         instead of aarch64_isa_flags.
2338         (aarch64_get_tune_cpu): New function.
2339         (aarch64_get_arch): Likewise.
2340         (aarch64_override_options): Use above and set up explicit_tune_core
2341         and explicit_arch.
2342         (aarch64_print_extension): Move earlier in file.  Add isa_flags
2343         argument and use that instead of the global aarch64_isa_flags.
2344         (aarch64_option_save): New function.
2345         (aarch64_option_restore): Likewise.
2346         (aarch64_option_print): Likewise.
2347         (aarch64_declare_function_name): Likewise.
2348         (aarch64_start_file): Delete.
2349         (TARGET_ASM_FILE_START): Do not define.
2350         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2351         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2352         Declare prototype.
2354 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2356         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2357         flag_omit_leaf_frame_pointer to 2.
2359 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2361         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2362         define to 0 or 1.
2363         (TARGET_FIX_ERR_A53_835769): New macro.
2364         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2365         handling of opts->x_aarch64_fix_a53_err835769.
2366         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2367         than aarch64_fix_a53_err835769.
2368         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2369         * config/aarch64/aarch64-linux.h: Likewise.
2371 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
2373         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2374         ix86_expand_int_movcc as boolean.
2376 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2378         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2379         (aarch64_cpu_string): Likewise.
2380         (aarch64_tune_string): Likewise.
2381         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2382         (aarch64_parse_extension): Return aarch64_parse_opt_result.
2383         Add extra argument to put result into.
2384         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
2385         (aarch64_parse_cpu): Add arguments to put results into. Return
2386         aarch64_parse_opt_result.
2387         (aarch64_parse_tune): Likewise.
2388         (aarch64_override_options_after_change_1): New function.
2389         (aarch64_override_options_internal): New function.
2390         (aarch64_validate_mcpu): Likewise.
2391         (aarch64_validate_march): Likewise.
2392         (aarch64_validate_mtune): Likewise.
2393         (aarch64_override_options): Update to reflect above changes.
2394         Move some logic into aarch64_override_options_internal.
2395         Initialize target_option_default_node and target_option_current_node.
2396         (aarch64_override_options_after_change): Move logic into
2397         aarch64_override_options_after_change_1 and call it with global_options.
2398         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2399         flag values from that.
2401 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2403         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2404         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2405         * config/aarch64/aarch64.c (struct processor): Add arch field.
2406         (all_architectures): Handle above, move above all_cores.
2407         (all_cores): Handle above.
2408         (aarch64_parse_arch): Handle above changes.
2409         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2410         above.  Update comments.
2411         (armv8.1-a): Likewise.
2412         * config/aarch64/aarch64-cores.def: Update according to above.
2413         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2414         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2415         aarch64_arch_driver_info.
2417 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2419         * config/aarch64/aarch64.c (struct processor): Add ident field.
2420         Rename core sched_core.
2421         (all_cores): Handle above changes.
2422         (all_architectures): Likewise.
2423         (aarch64_parse_arch): Likewise.
2424         (aarch64_override_options): Likewise.
2426 2015-08-04  Richard Biener  <rguenther@suse.de>
2428         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2429         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2430         comparisons embedded in [VEC_]COND_EXPRs.
2432 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
2434         * tree-if-conv.c: Fix various typos in comments.
2435         * tree-vect-stmts.c: Likewise.
2437 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2439         PR tree-optimization/67043
2440         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2441         preheader after hoisting invariant in it.
2442         (find_defs): Force recomputation of all luids.
2444 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2446         * config/rs6000/htm.md (tabort.): Restrict the source operand to
2447         using a base register.
2449 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
2451         * main.c (main): Pass in NULL for toplev's external_timer.
2452         * timevar.c: Include coretypes.h.
2453         (class timer::named_items): New.
2454         (timer::named_items::named_items): New.
2455         (timer::named_items::~named_items): New.
2456         (timer::named_items::push): New.
2457         (timer::named_items::pop): New.
2458         (timer::named_items::print): New.
2459         (timer::timer): Initialize field "m_jit_client_items".
2460         (timer::~timer): New.
2461         (timer::push): Move bulk of implementation to...
2462         (timer::push_internal): ...here.  New function.
2463         (timer::pop): Move bulk of implementation to...
2464         (timer::pop_internal): ...here.  New function.
2465         (timer::push_client_item): New.
2466         (timer::pop_client_item): New.
2467         (timer::print_row): New function, taken from timer::print.
2468         (timer::print): Print "GCC items" header if we also have client
2469         items.  Move row-printing to timer::print_row.  Print any client
2470         items.
2471         (timer::get_topmost_item_name): New method.
2472         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2473         (TV_JIT_CLIENT_CODE): New.
2474         * timevar.h (timer::push_client_item): New declaration.
2475         (timer::pop_client_item): New declaration.
2476         (timer::get_topmost_item_name): New method.
2477         (timer::push_internal): New declaration.
2478         (timer::pop_internal): New declaration.
2479         (timer::print_row): New declaration.
2480         (timer::named_items): New declaration.
2481         (timer::m_jit_client_items): New field.
2482         (timer): Add friend class named_items.
2483         (auto_timevar::auto_timevar): Add timer param.
2484         (auto_timevar::~auto_timevar): Use field "m_timer".
2485         (auto_timevar::m_timer): New field.
2486         * toplev.c (initialize_rtl): Add g_timer as param when
2487         constructing auto_timevar instance.
2488         (toplev::toplev): Add "external_timer" param, and use it to
2489         initialize the "g_timer" global if non-NULL.
2490         (toplev::~toplev): If this created "g_timer", delete it.
2491         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2492         with "external_timer" timer *.
2494 2015-08-03  Alexander Basov <coohpt@gmail.com>
2496         PR middle-end/64744
2497         PR middle-end/48470
2498         PR middle-end/43404
2499         * cfgexpand.c (expand_one_var): Add check if stack is going to
2500         be used in naked function.
2501         * expr.c (expand_expr_addr_expr_1): Remove excess checking
2502         whether expression should not reside in MEM.
2503         * function.c (use_register_for_decl): Do not use registers for
2504         non-register things (volatile, float, BLKMode) in naked functions.
2506 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
2508         PR target/67060
2509         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2510         Adjust splits to match new pattern.
2512 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2514         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2515         (VEC_M): Likewise.
2516         (VEC_N): Likewise.
2517         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2518         point in VSX registers.
2520         * config/rs6000/constraints.md (wb constraint): Document unused
2521         w<x> constraint.
2522         (we constraint): Likewise.
2523         (wo constraint): Likewise.
2524         (wp constraint): New constraint for IEEE 128-bit floating point in
2525         VSX registers.
2526         (wq constraint): Likewise.
2528         * config/rs6000/predicates.md (easy_fp_constant): Add support for
2529         IEEE 128-bit floating point in VSX registers.
2530         (easy_scalar_constant): Likewise.
2532         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2533         constraints (wp, wq) for IEEE 128-bit floating point in VSX
2534         registers.
2535         (rs6000_init_hard_regno_mode_ok): Likewise.
2537         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2538         floating point in VSX registers.
2539         (VSX_L): Likewise.
2540         (VSX_M): Likewise.
2541         (VSX_M2): Likewise.
2542         (VSm): Likewise.
2543         (VSs): Likewise.
2544         (VSr): Likewise.
2545         (VSa): Likewise.
2546         (VSv): Likewise.
2547         (vsx_le_permute_<mode>): Add support to properly swap bytes for
2548         IEEE 128-bit floating point in VSX registers on little endian.
2549         (vsx_le_undo_permute_<mode>): Likewise.
2550         (vsx_le_perm_load_<mode>): Likewise.
2551         (vsx_le_perm_store_<mode>): Likewise.
2552         (splitters for IEEE 128-bit fp moves): Likewise.
2554         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2555         wq constraints.
2557         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2558         floating point in VSX registers.
2559         (VM2): Likewise.
2561         * doc/md.text (Machine Constraints): Document wp and wq
2562         constraints on PowerPC.
2564 2015-08-03  Jeff Law  <law@redhat.com>
2566         PR middle-end/66314
2567         PR gcov-profile/66899
2568         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2569         iterate over the jump threading paths when an element in the
2570         jump threading paths array is eliminated.
2572 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
2574         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2576 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
2578         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2579         is_use_properly_guarded the variable def_preds.  Free its
2580         contents before returning.
2581         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2582         (is_use_properly_guarded): Replace local variable def_preds with
2583         a parameter.  Adjust accordingly.  Only update *def_preds if it's
2584         the empty vector.
2586 2015-08-03  Richard Biener  <rguenther@suse.de>
2588         * genmatch.c (simplify::for_subst_vec): New member.
2589         (binary_ok): New helper for for lowering.
2590         (lower_for): Delay substituting operators into result expressions
2591         if we can merge the results eventually again.
2592         (capture_info::walk_result): Adjust for user_id appearing as
2593         result expression operator.
2594         (expr::gen_transform): Likewise.
2595         (dt_simplify::gen_1): Likewise.
2596         (dt_simplify::gen): Pass not substituted operators to tail
2597         functions or initialize local variable with it.
2598         (decision_tree::gen): Adjust function signature.
2599         * match.pd: Fix tests against global code and add default
2600         cases to switch stmts.
2602 2015-08-03  Richard Biener  <rguenther@suse.de>
2604         * genmatch.c (dt_simplify::gen): Create captures array
2605         with an initializer.
2607 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2609         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2610         the host compiler is affected by placement new aliasing bug.
2611         * configure: Regenerate.
2612         * Makefile.in (ALIASING_FLAGS): New variable.
2613         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
2615 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2617         PR target/66731
2618         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
2619         (negmulsf3_vfp): Likewise.
2620         (muldf3negdf_vfp): Disable for -frounding-math.
2621         (mulsf3negsf_vfp): Likewise.
2622         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
2623         fix MULT cost with -frounding-math.
2625 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2627         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
2628         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
2629         explicit.  Prefer to add the flag whenever possible.
2630         (noce_process_if_block): Try noce_try_store_flag_constants before
2631         noce_try_cmove.
2633 2015-08-03  Richard Biener  <rguenther@suse.de>
2635         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
2636         New hash-map to record equivalent transforms.
2637         (dt_node::analyze): Populate the equivalent transforms hash-map.
2638         (dt_simplify::info): Add reference to hash-map entry.
2639         (dt_simplify::gen): If we have split out a function for the
2640         transform, generate a call to it.
2641         (sinfo_hashmap_traits::hash): New function.
2642         (compare_op): New helper function for ...
2643         (sinfo_hashmap_traits::equal_keys): ... this new function.
2644         (decision_tree::gen): Split out common equivalent transforms
2645         into functions.
2647 2015-08-03  Richard Biener  <rguenther@suse.de>
2649         * gimple-fold.c (fold_gimple_assign): Remove folding of
2650         the comparison in COND_EXPRs.
2652 2015-08-03  Richard Biener  <rguenther@suse.de>
2654         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
2655         on the rhs of assignments first simplify the embedded
2656         GENERIC condition.
2658 2015-08-03  Richard Biener  <rguenther@suse.de>
2660         PR tree-optimization/66917
2661         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
2662         field.
2663         (DR_VECT_AUX): New macro.
2664         (set_dr_misalignment): Adjust.
2665         (dr_misalignment): Likewise.
2666         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2667         Compute whether the base is at least element aligned.
2668         * tree-vect-stmts.c (ensure_base_align): Adjust.
2669         (vectorizable_store): If the base is not element aligned
2670         preserve alignment of the original access if misalignment is unknown.
2671         (vectorizable_load): Likewise.
2673 2015-08-02  Martin Sebor  <msebor@redhat.com>
2675         * c-family/c.opt (-Wframe-address): New warning option.
2676         * doc/invoke.texi (Wframe-address): Document it.
2677         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
2678         Clarify possible effects of calling the functions with non-zero
2679         arguments and mention -Wframe-address.
2680         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
2682 2015-08-01  Michael Collison  <michael.collison@linaro.org
2683             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2685         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
2686         (*arm_umin_cmp): Likewise.
2688 2015-08-01  Caroline Tice  <cmtice@google.com>
2690         PR 66521
2691         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
2692         global variables.
2693         (vtbl_find_mangled_name):  New function.
2694         (vtbl_register_mangled_name):  New function.
2695         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
2696         mangled name in mangled name vectors.
2697         (find_or_create_vtbl_map_node):  Ditto.
2698         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
2699         update recursion_depth on function entry; pass it to every recursive
2700         call; automatically exit if depth > 25 (give up looking at that point).
2701         (verify_bb_vtables):  Initialize recursion_depth and pass it to
2702         var_is_used_for_virtual_call_p.
2703         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
2704         global variable decls.
2705         (vtbl_register_mangled_name): New extern function decl.
2707 2015-08-01  Tom de Vries  <tom@codesourcery.com>
2709         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
2710         function.
2711         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
2712         Declare.
2713         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
2714         operation_no_trapping_overflow.  Allow non-overflow operations.
2715         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
2716         operations.
2718 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2720         PR target/67049
2721         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
2723 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2725         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
2726         Enable for TARGET_32BIT.
2727         (*if_move_neg): Likewise.
2729 2015-07-31  Nick Clifton  <nickc@redhat.com>
2731         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
2732         Returns true for __model__.
2733         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2735 2015-07-31  Alan Modra  <amodra@gmail.com>
2737         PR target/66870
2738         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
2739         (rs6000_emit_prologue): Set it.
2740         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
2742 2015-07-31  Richard Biener  <rguenther@suse.de>
2744         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
2745         -> X == (C1 ^ C2) which is already implemented in match.pd.
2746         Remove redundant dispatching to fold_relational_const.
2747         Move unordered self and NaN compares ...
2748         * match.pd: ... as patterns here.  Remove some stray captures
2749         and add a comment.
2751 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
2753         * config/i386/i386.c
2754         (bdesc_special_args): Convert mask type from signed to unsigned for
2755         masked builtins.
2756         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
2757         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
2758         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
2759         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
2760         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
2761         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
2762         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
2763         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
2764         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
2765         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
2766         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
2767         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
2768         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
2769         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
2770         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
2771         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
2772         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
2773         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
2774         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
2775         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
2776         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
2777         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
2778         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
2779         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
2780         * config/i386/i386-builtin-types.def
2781         (V16QI_FTYPE_V16SI): Remove.
2782         (V8DF_FTYPE_V8SI): Ditto.
2783         (V8HI_FTYPE_V8DI): Ditto.
2784         (V8SI_FTYPE_V8DI): Ditto.
2785         (V8SF_FTYPE_V8DF): Ditto.
2786         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
2787         (V16HI_FTYPE_V16SI): Ditto.
2788         (V16SF_FTYPE_V16HI): Ditto.
2789         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
2790         (V16SF_FTYPE_V16SI): Ditto.
2791         (V4DI_FTYPE_V4DI): Ditto.
2792         (V16SI_FTYPE_V16SF): Ditto.
2793         (V16SF_FTYPE_FLOAT): Ditto.
2794         (V8DF_FTYPE_DOUBLE): Ditto.
2795         (V8DI_FTYPE_INT64): Ditto.
2796         (V8DI_FTYPE_V4DI): Ditto.
2797         (V16QI_FTYPE_V8DI): Ditto.
2798         (UINT_FTYPE_V4SF): Ditto.
2799         (UINT64_FTYPE_V4SF): Ditto.
2800         (UINT_FTYPE_V2DF): Ditto.
2801         (UINT64_FTYPE_V2DF): Ditto.
2802         (V16SI_FTYPE_V16SI): Ditto.
2803         (V8DI_FTYPE_V8DI): Ditto.
2804         (V16SI_FTYPE_PV4SI): Ditto.
2805         (V16SF_FTYPE_PV4SF): Ditto.
2806         (V8DI_FTYPE_PV2DI): Ditto.
2807         (V8DF_FTYPE_PV2DF): Ditto.
2808         (V4DI_FTYPE_PV2DI): Ditto.
2809         (V4DF_FTYPE_PV2DF): Ditto.
2810         (V16SI_FTYPE_PV2SI): Ditto.
2811         (V16SF_FTYPE_PV2SF): Ditto.
2812         (V8DI_FTYPE_PV4DI): Ditto.
2813         (V8DF_FTYPE_PV4DF): Ditto.
2814         (V8SF_FTYPE_FLOAT): Ditto.
2815         (V4SF_FTYPE_FLOAT): Ditto.
2816         (V4DF_FTYPE_DOUBLE): Ditto.
2817         (V8SF_FTYPE_PV4SF): Ditto.
2818         (V8SI_FTYPE_PV4SI): Ditto.
2819         (V4SI_FTYPE_PV2SI): Ditto.
2820         (V8SF_FTYPE_PV2SF): Ditto.
2821         (V8SI_FTYPE_PV2SI): Ditto.
2822         (V16SF_FTYPE_PV8SF): Ditto.
2823         (V16SI_FTYPE_PV8SI): Ditto.
2824         (V8DI_FTYPE_V8SF): Ditto.
2825         (V4DI_FTYPE_V4SF): Ditto.
2826         (V2DI_FTYPE_V4SF): Ditto.
2827         (V64QI_FTYPE_QI): Ditto.
2828         (V32HI_FTYPE_HI): Ditto.
2829         (V8UHI_FTYPE_V8UHI): Ditto.
2830         (V16UHI_FTYPE_V16UHI): Ditto.
2831         (V32UHI_FTYPE_V32UHI): Ditto.
2832         (V2UDI_FTYPE_V2UDI): Ditto.
2833         (V4UDI_FTYPE_V4UDI): Ditto.
2834         (V8UDI_FTYPE_V8UDI): Ditto.
2835         (V4USI_FTYPE_V4USI): Ditto.
2836         (V8USI_FTYPE_V8USI): Ditto.
2837         (V16USI_FTYPE_V16USI): Ditto.
2838         (V2DF_FTYPE_V2DF_UINT64): Ditto.
2839         (V2DI_FTYPE_V2DF_V2DF): Ditto.
2840         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
2841         (V8DF_FTYPE_V8DF_V8DI): Ditto.
2842         (V4SF_FTYPE_V4SF_UINT64): Ditto.
2843         (V4SI_FTYPE_V4SF_V4SF): Ditto.
2844         (V16SF_FTYPE_V16SF_V16SI): Ditto.
2845         (V64QI_FTYPE_V32HI_V32HI): Ditto.
2846         (V32HI_FTYPE_V16SI_V16SI): Ditto.
2847         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
2848         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
2849         (V32HI_FTYPE_V64QI_V64QI): Ditto.
2850         (V32HI_FTYPE_V32HI_V32HI): Ditto.
2851         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
2852         (V16SI_FTYPE_V16SI_V4SI): Ditto.
2853         (V16SI_FTYPE_V16SI_V16SI): Ditto.
2854         (V16SI_FTYPE_V32HI_V32HI): Ditto.
2855         (V16SI_FTYPE_V16SI_SI): Ditto.
2856         (V8DI_FTYPE_V8DI_V8DI): Ditto.
2857         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
2858         (V8DI_FTYPE_V16SI_V16SI): Ditto.
2859         (V8DI_FTYPE_V8DI_V2DI): Ditto.
2860         (QI_FTYPE_QI): Ditto.
2861         (SI_FTYPE_SI): Ditto.
2862         (DI_FTYPE_DI): Ditto.
2863         (QI_FTYPE_QI_QI): Ditto.
2864         (QI_FTYPE_QI_INT): Ditto.
2865         (HI_FTYPE_HI_INT): Ditto.
2866         (SI_FTYPE_SI_INT): Ditto.
2867         (DI_FTYPE_DI_INT): Ditto.
2868         (HI_FTYPE_V16QI_V16QI): Ditto.
2869         (SI_FTYPE_V32QI_V32QI): Ditto.
2870         (DI_FTYPE_V64QI_V64QI): Ditto.
2871         (QI_FTYPE_V8HI_V8HI): Ditto.
2872         (HI_FTYPE_V16HI_V16HI): Ditto.
2873         (SI_FTYPE_V32HI_V32HI): Ditto.
2874         (QI_FTYPE_V4SI_V4SI): Ditto.
2875         (QI_FTYPE_V8SI_V8SI): Ditto.
2876         (QI_FTYPE_V2DI_V2DI): Ditto.
2877         (QI_FTYPE_V4DI_V4DI): Ditto.
2878         (QI_FTYPE_V8DI_V8DI): Ditto.
2879         (HI_FTYPE_V16SI_V16SI): Ditto.
2880         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
2881         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
2882         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
2883         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
2884         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
2885         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
2886         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
2887         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
2888         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
2889         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
2890         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
2891         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
2892         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
2893         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
2894         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
2895         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
2896         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
2897         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
2898         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
2899         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
2900         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
2901         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
2902         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
2903         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
2904         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
2905         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
2906         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
2907         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
2908         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
2909         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
2910         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
2911         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
2912         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
2913         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
2914         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
2915         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
2916         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
2917         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
2918         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
2919         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
2920         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
2921         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
2922         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
2923         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
2924         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
2925         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
2926         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
2927         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
2928         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
2929         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
2930         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
2931         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
2932         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
2933         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
2934         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
2935         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
2936         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
2937         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
2938         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
2939         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
2940         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
2941         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
2942         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
2943         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
2944         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
2945         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
2946         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
2947         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
2948         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
2949         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
2950         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
2951         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
2952         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
2953         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
2954         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
2955         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
2956         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
2957         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
2958         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
2959         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
2960         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
2961         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
2962         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
2963         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
2964         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
2965         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
2966         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
2967         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
2968         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
2969         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
2970         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
2971         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
2972         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
2973         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
2974         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
2975         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
2976         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
2977         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
2978         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
2979         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
2980         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
2981         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
2982         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
2983         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
2984         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
2985         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
2986         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
2987         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
2988         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
2989         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
2990         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
2991         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
2992         (HI_FTYPE_HI): Ditto.
2993         (HI_FTYPE_V16QI): Ditto.
2994         (SI_FTYPE_V32QI): Ditto.
2995         (DI_FTYPE_V64QI): Ditto.
2996         (QI_FTYPE_V8HI): Ditto.
2997         (HI_FTYPE_V16HI): Ditto.
2998         (SI_FTYPE_V32HI): Ditto.
2999         (QI_FTYPE_V4SI): Ditto.
3000         (QI_FTYPE_V8SI): Ditto.
3001         (HI_FTYPE_V16SI): Ditto.
3002         (QI_FTYPE_V2DI): Ditto.
3003         (QI_FTYPE_V4DI): Ditto.
3004         (QI_FTYPE_V8DI): Ditto.
3005         (V16QI_FTYPE_HI): Ditto.
3006         (V32QI_FTYPE_SI): Ditto.
3007         (V64QI_FTYPE_DI): Ditto.
3008         (V8HI_FTYPE_QI): Ditto.
3009         (V16HI_FTYPE_HI): Ditto.
3010         (V32HI_FTYPE_SI): Ditto.
3011         (V4SI_FTYPE_QI): Ditto.
3012         (V4SI_FTYPE_HI): Ditto.
3013         (V8SI_FTYPE_QI): Ditto.
3014         (V8SI_FTYPE_HI): Ditto.
3015         (V2DI_FTYPE_QI): Ditto.
3016         (V4DI_FTYPE_QI): Ditto.
3017         (HI_FTYPE_HI_HI): Ditto.
3018         (SI_FTYPE_SI_SI): Ditto.
3019         (DI_FTYPE_DI_DI): Ditto.
3020         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3021         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3022         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3023         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3024         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3025         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3026         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3027         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3028         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3029         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3030         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3031         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3032         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3033         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3034         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3035         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3036         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3037         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3038         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3039         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3040         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3041         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3042         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3043         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3044         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3045         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3046         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3047         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3048         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3049         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3050         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3051         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3052         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3053         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3054         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3055         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3056         (V16SI_FTYPE_HI): Ditto.
3057         (V8DI_FTYPE_QI): Ditto.
3058         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3059         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3060         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3061         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3062         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3063         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3064         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3065         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3066         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3067         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3068         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3069         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3070         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3071         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3072         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3073         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3074         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3075         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3076         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3077         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3078         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3079         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3080         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3081         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3082         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3083         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3084         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3085         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3086         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3087         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3088         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3089         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3090         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3091         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3092         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3093         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3094         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3095         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3096         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3097         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3098         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3099         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3100         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3101         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3102         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3103         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3104         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3105         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3106         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3107         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3108         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3109         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3110         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3111         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3112         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3113         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3114         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3115         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3116         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3117         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3118         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3119         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3120         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3121         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3122         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3123         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3124         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3125         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3126         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3127         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3128         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3129         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3130         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3131         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3132         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3133         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3134         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3135         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3136         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3137         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3138         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3139         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3140         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3141         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3142         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3143         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3144         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3145         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3146         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3147         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3148         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3149         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3150         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3151         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3152         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3153         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3154         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3155         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3156         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3157         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3158         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3159         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3160         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3161         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3162         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3163         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3164         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3165         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3166         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3167         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3168         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3169         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3170         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3171         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3172         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3173         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3174         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3175         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3176         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3177         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3178         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3179         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3180         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3181         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3182         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3183         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3184         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3185         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3186         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3187         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3188         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3189         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3190         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3191         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3192         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3193         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3194         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3195         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3196         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3197         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3198         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3199         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3200         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3201         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3202         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3203         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3204         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3205         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3206         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3207         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3208         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3209         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3210         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3211         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3212         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3213         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3214         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3215         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3216         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3217         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3218         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3219         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3220         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3221         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3222         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3223         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3224         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3225         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3226         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3227         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3228         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3229         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3230         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3231         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3232         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3233         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3234         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3235         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3236         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3237         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3238         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3239         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3240         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3241         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3242         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3243         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3244         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3245         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3246         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3247         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3248         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3249         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3250         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3251         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3252         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3253         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3254         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3255         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3256         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3257         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3258         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3259         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3260         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3261         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3262         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3263         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3264         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3265         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3266         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3267         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3268         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3269         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3270         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3271         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3272         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3273         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3274         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3275         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3276         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3277         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3278         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3279         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3280         (QI_FTYPE_V8DF_INT_QI): Ditto.
3281         (QI_FTYPE_V4DF_INT_QI): Ditto.
3282         (QI_FTYPE_V2DF_INT_QI): Ditto.
3283         (HI_FTYPE_V16SF_INT_HI): Ditto.
3284         (QI_FTYPE_V8SF_INT_QI): Ditto.
3285         (QI_FTYPE_V4SF_INT_QI): Ditto.
3286         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3288 2015-07-31  Richard Biener  <rguenther@suse.de>
3290         * gimple-fold.c (fold_gimple_assign): Remove folding of
3291         GIMPLE_BINARY_RHS.
3293 2015-07-31  Tom de Vries  <tom@codesourcery.com>
3295         PR tree-optimization/66846
3296         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3297         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3298         (expand_omp_target) [ENABLE_CHECKING]: Same.
3299         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3300         cfun if !LOOPS_NEED_FIXUP.
3301         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
3302         that omp_for already has its own loop struct.
3303         * tree-parloops.c (create_phi_for_local_result)
3304         (create_call_for_reduction): Handle simple latch bb.
3305         (create_parallel_loop): Add simple latch bb to preserve
3306         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
3307         (gen_parallel_loop): Remove call to cancel_loop_tree.
3308         (parallelize_loops): Skip loops that are inner loops of parallelized
3309         loops.
3310         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3311         verify_loop_structure.
3313 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3315         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3316         * config/v850/v850.md (RV_REGNUM): New constants.
3317         * config/v850/v850.c (v850_libcall_value): New functions.
3318         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3319         (TARGET_LIBCALL_VALUE): Define.
3321 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3323         * rtl.h (lowpart_subreg): Move in file.
3324         * loop-iv.c (lowpart_subreg): Move to...
3325         * simplify-rtx.c (lowpart_subreg): ...here.
3326           (simplify_binary_operation_1): Use lowpart_subreg instead of
3327           simplify_gen_subreg.
3328         * expr.c (expand_expr_real_2): Ditto.
3329         * emit-rtl.c (gen_lowpart_common): Ditto.
3330         * combine.c (gen_lowpart_for_combine): Ditto.
3331         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3332           expand_debug_source_expr): Ditto.
3334 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
3336         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3337         (expand_builtin_atomic_clear): Remove support for atomic_clear
3338         pattern.
3340 2015-07-30  Richard Biener  <rguenther@suse.de>
3342         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3343         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3344         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
3345         redundant operand canonicalization.
3347 2015-07-30  David Sherwood  <david.sherwood@arm.com>
3349         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3350         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3351         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3352         * config/arm/arm.c (neon_valid_immediate): Likewise.
3353         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3354         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3355         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3356         (expand_vec_perm_vpshufb2_vpermq): Likewise.
3357         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3358         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3359         * config/i386/sse.md
3360         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3361         (*ssse3_palignr<mode>_perm): Likewise.
3362         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3363         * config/spu/spu.c (arith_immediate_p): Likewise.
3364         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3365         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3367 2015-07-30  Richard Biener  <rguenther@suse.de>
3369         * genmatch.c (decision_tree::gen_gimple): Merge with ...
3370         (decision_tree::gen_generic): ... this into ...
3371         (decision_tree::gen): ... this.
3372         (main): Adjust callers.
3374 2015-07-30  Richard Biener  <rguenther@suse.de>
3376         * genmatch.c (verbose): New global.
3377         (warning_at): Add overload with source_location.
3378         (capture_info::capture_info): Add bool whether generating gimple
3379         or generic.  Add gimple member.
3380         (capture_info::cinfo): Add capture member.
3381         (capture_info::walk_match): Record capture.  Warn on
3382         non-captured leafs.
3383         (capture_info::walk_c_expr): Add more fragments captures cannot
3384         escape through.  Warn on escaped captures.
3385         (dt_simplify::gen_1): Warn on operands we force to have no
3386         side-effects.
3387         (main): Initialize verbose.
3388         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3390 2015-07-30  Richard Biener  <rguenther@suse.de>
3392         PR middle-end/67053
3393         * match.pd: Allow both operands to independently have conversion
3394         when simplifying compares of addresses.
3396 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
3398         PR target/66217
3399         PR target/67045
3400         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3401         around those cases that need one.
3403 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
3405         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3407 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
3409         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3410         New.  Copied from config/i386/gnu-user.h.
3411         (ASM_COMMENT_START): Likewise.
3412         (DBX_REGISTER_NUMBER): Likewise.
3414 2015-07-29  Richard Biener  <rguenther@suse.de>
3416         * gimple-fold.c (fold_gimple_cond): Remove.
3417         (fold_stmt_1): Do not call it.
3419 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
3421         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3422         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3424         * config/aarch64/aarch64-modes.def: Add HFmode.
3426         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3427         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3429         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3430         aarch64_promoted_type): New.
3432         (aarch64_float_const_representable_p): Disable HFmode.
3433         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3434         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3435         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3437         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3438         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3440         * config/aarch64/iterators.md (GPF_F16): New.
3442 2015-07-29  Richard Biener  <rguenther@suse.de>
3444         * match.pd: Merge address comparison patterns and make them
3445         handle some more cases.
3447 2015-07-29  Richard Biener  <rguenther@suse.de>
3449         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3450         (parser::parse_capture): Add bool argument on whether to reject
3451         unknown captures.
3452         (parser::parse_expr): Adjust.
3453         (parser::parse_op): Likewise.
3454         (parser::parse_pattern): Likewise.
3456 2015-07-29  Richard Biener  <rguenther@suse.de>
3458         * gimple-fold.c (has_use_on_stmt): New function.
3459         (replace_stmt_with_simplification): Use it to allow
3460         abnormals originally referenced in the stmt.
3461         (fold_stmt_1): Canonicalize operand order.
3463 2015-07-28  David Sherwood  <david.sherwood@arm.com>
3465         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3466         GET_MODE_INNER unconditionally.
3467         * config/spu/spu.c (arith_immediate_p): Likewise.
3468         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3469         * expmed.c (synth_mult): Remove check for VOIDmode result from
3470         GET_MODE_INNER.
3471         (expand_mult_const): Likewise.
3472         * fold-const.c (fold_binary_loc): Replace call to element_precision
3473         with call to GET_MODE_PRECISION.
3474         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3475         m->name.
3476         (emit_mode_inner): Likewise.
3477         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3478         result check.
3479         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3480         (GET_MODE_UNIT_PRECISION): Likewise.
3481         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3482         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3483         * stor-layout.c (bitwise_type_for_mode): Update assert.
3484         (element_precision): Remove.
3486 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3488         * target-insns.def (reload_load_address): New targetm instruction
3489         pattern.
3490         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3492 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3494         * target-insns.def (atomic_test_and_set): New targetm instruction
3495         pattern.
3496         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3497         HAVE_*/gen_* interface.
3499 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3501         * target-insns.def (can_extend, ptr_extend): New targetm instruction
3502         patterns.
3503         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3504         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3505         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3506         * rtlanal.c (nonzero_bits1): Likewise.
3507         (num_sign_bit_copies1): Likewise.
3509 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3511         * target-insns.def (eh_return): New targetm instruction pattern.
3512         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3513         interface.
3514         * function.c (thread_prologue_and_epilogue_insns): Remove
3515         preprocessor condition.
3517 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3519         * target-insns.def (indirect_jump): New targetm instruction pattern.
3520         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3521         interface.
3523 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3525         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3526         instead of nonimmediate_operand.  Remove C condiition.
3528 2015-07-28  Richard Biener  <rguenther@suse.de>
3530         * match.pd: Add more simplification of address comparisons.
3532 2015-07-28  Richard Biener  <rguenther@suse.de>
3534         * match.pd: Re-order two cases in comparison with max/min
3535         value simplification to make it apply for bools.
3537 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3539         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3540         Handle simple SIGN_EXTEND or ZERO_EXTEND.
3541         (aarch64_rtx_costs): Properly strip extend or extract before
3542         passing down to rtx costs again.
3544 2015-07-28  Nick Clifton  <nickc@redhat.com>
3546         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3547         Optimizes the case where -mes0 is active and a constant symbolic
3548         address is used.
3549         * config/rl78/rl78-protos.h: Prototype the new function.
3550         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3552 2015-07-28  Tom de Vries  <tom@codesourcery.com>
3554         * tree-parloops.c (reduc_stmt_res): New function.
3555         (initialize_reductions, add_field_for_reduction)
3556         (create_phi_for_local_result, create_loads_for_reductions)
3557         (create_stores_for_reduction, build_new_reduction): Handle case that
3558         reduc_stmt is a phi.
3559         (gather_scalar_reductions): Allow double_reduc reductions.
3561 2015-07-28  Richard Biener  <rguenther@suse.de>
3563         * fold-const.c (fold_comparison): Remove equality folding
3564         of decl addresses ...
3565         * match.pd: ... here and merge with existing pattern.
3567 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3569         PR tree-optimization/66828
3570         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3571         from int64_t to uint64_t.
3573 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3575         * opts-common.c (read_cmdline_option): List DriverOnly enum values
3576         as valid only in the error message of the driver, not in the
3577         messages of the language compilers.
3579 2015-07-27  Tom de Vries  <tom@codesourcery.com>
3581         * tree-parloops.c (gather_scalar_reductions): Simplify function
3582         structure.
3584 2015-07-27  Marek Polacek  <polacek@redhat.com>
3586         * ipa-devirt.c (types_same_for_odr): Fix typo.
3588 2015-07-27  Jason Merrill  <jason@redhat.com>
3590         PR debug/66468
3591         * dwarf2out.c (gen_inlined_subroutine_die): Check
3592         cgraph_function_possibly_inlined_p.
3594 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3596         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3597         Place integer variant first.
3598         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3600 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3602         PR/63870
3603         * config/arm/arm-builtins.c (enum arm_builtins):
3604         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3605         (ARM_BUILTIN_NEON_BASE): Rename macro to....
3606         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3607         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3608         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3610 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3612         PR/63870
3613         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
3614         Add qualifier_lane_index.
3615         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
3616         (arm_getlane_qualifiers): Use qualifier_lane_index.
3617         (arm_lanemac_qualifiers): Rename to...
3618         (arm_mac_n_qualifiers): ...this.
3619         (LANEMAC_QUALIFIERS): Rename to...
3620         (MAC_N_QUALIFIERS): ...this.
3621         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
3622         (arm_setlane_qualifiers): Use qualifier_lane_index.
3623         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
3624         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
3625         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
3626         (arm_expand_neon_builtin): Handle qualifier_lane_index.
3628         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
3629         * config/arm/arm.c (bounds_check): Likewise, improve error message.
3630         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
3631         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
3632         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
3633         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
3634         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
3635         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
3636         qualifiers to TERNOP_IMM.
3637         (vdup_lane): Change qualifiers to GETLANE.
3638         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
3639         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
3640         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
3641         vqdmlsl_n): Change qualifiers to MAC_N.
3643         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
3644         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
3645         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
3646         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
3647         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
3648         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
3649         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
3650         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
3651         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
3652         Remove call to neon_lane_bounds.
3654 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3656         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3657         Place integer variant first.
3659 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
3661         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
3662         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
3663         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
3664         for armv6kz targets.
3665         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
3666         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
3667         (FL_FOR_ARCH6ZK): Remove.
3668         (FL_FOR_ARCH6KZ): New.
3669         (arm_arch6zk): New declaration.
3670         * config/arm/arm-tables.opt: Regenerate.
3671         * config/arm/arm.c (arm_arch6kz): New.
3672         (arm_option_override): Set arm_arch6kz.
3673         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
3674         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
3675         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
3677 2015-07-27  Marek Polacek  <polacek@redhat.com>
3679         PR c++/66555
3680         PR c/54979
3681         * doc/invoke.texi: Document -Wtautological-compare.
3683 2015-07-27  Richard Biener  <rguenther@suse.de>
3685         * genmatch.c (decision_tree::gen_gimple): Split out large
3686         subtrees into separate functions.
3687         (decision_tree::gen_generic): Likewise.
3689 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
3691         * config/alpha/alpha.c: Use SUBREG_P predicate.
3692         * config/alpha/predicates.md: Ditto.
3694 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3696         * config.host (s390*-*-*): Include driver-native.c only when
3697         building with s390* as host *and* target.
3699 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
3701         PR target/66930
3702         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
3703         T bit register modified_between_p check.
3705 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3707         * config/i386/i386.c: Use SUBREG_P predicate.
3708         * config/i386/i386.md: Ditto.
3709         * config/i386/sse.md: Ditto.
3710         * config/i386/predicates.md: Ditto.
3712 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3714         PR target/67004
3715         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
3716         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
3718 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
3720         * Makefile.in: Remove use of TREEBROWSER.
3721         * config.in: Regenerated.
3722         * configure: Regenerated.
3723         * configure.ac: Remove definition of TREEBROWSER.
3724         * tree-browser.c: Removed.
3725         * tree-browser.def: Removed.
3727 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
3729         * graphite-scop-detection.c: Include gimple-pretty-print.h.
3730         (stmt_simple_for_scop_p): Print when a stmt is not handled in
3731         Graphite.
3732         (scopdet_basic_block_info): Print when a loop or bb cannot be
3733         represented in Graphite.
3735 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3737         PR target/66648
3738         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
3739         execution guard when min_size is less than size_needed.
3741 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
3743         * doc/install.texi: Document supported versions of ISL.
3745 2015-07-25  Jeff Law  <law@redhat.com>
3747         Revert:
3748         PR lto/66752
3749         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3750         unable to find X NE 0 in the tables, return X as the simplified
3751         condition.
3752         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3753         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
3754         to VISISTED_BBS.  */
3755         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3756         after removing the control flow statement and unnecessary edges.
3758 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
3760         Revert:
3761         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
3763         PR rtl-optimization/64164
3764         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3765         * tree-ssa-copyrename.c: Removed.
3766         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
3767         -ftree-coalesce-vars.
3768         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3769         * common.opt (ftree-copyrename): Ignore.
3770         (ftree-coalesce-inlined-vars): Likewise.
3771         * doc/invoke.texi: Remove the ignored options above.
3772         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3773         * tree-ssa-coalesce.h: ... here.
3774         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3775         headers required by it.
3776         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3777         across variables when flag_tree_coalesce_vars.  Check register
3778         use and promoted modes to allow coalescing.  Moved to
3779         tree-ssa-coalesce.c.
3780         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3781         with its member functions to tree-ssa-coalesce.c.
3782         (var_map_base_init): Likewise.  Renamed to
3783         compute_samebase_partition_bases.
3784         (partition_view_normal): Drop want_bases parameter.
3785         (partition_view_bitmap): Likewise.
3786         * tree-ssa-live.h: Adjust declarations.
3787         * tree-ssa-coalesce.c: Include explow.h.
3788         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3789         default defs at the entry point.
3790         (dump_part_var_map): New.
3791         (compute_optimized_partition_bases): New, called by...
3792         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3793         of compute_samebase_partition_bases.  Adjust.
3794         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3795         * cfgexpand.c (leader_merge): New.
3796         (get_rtl_for_parm_ssa_default_def): New.
3797         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3798         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3799         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
3800         redundant MEM attr setting.
3801         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
3802         from...
3803         (expand_one_stack_var): ... this.  New wrapper to check and
3804         skip already expanded SSA partitions.
3805         (record_alignment_for_reg_var): New, factored out of...
3806         (expand_one_var): ... this.
3807         (expand_one_ssa_partition): New.
3808         (adjust_one_expanded_partition_var): New.
3809         (expand_one_register_var): Check and skip already expanded SSA
3810         partitions.
3811         (expand_used_vars): Don't create DECLs for anonymous SSA
3812         names.  Expand all SSA partitions, then adjust all SSA names.
3813         (pass::execute): Replace the loops that set
3814         SA.partition_to_pseudo from partition leaders and cleared
3815         DECL_RTL for multi-location variables, and that which used to
3816         rename vars and set attrs, with one that clears DECL_RTL and
3817         checks that PARMs and RESULTs default_defs match DECL_RTL.
3818         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3819         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
3820         * explow.c (promote_ssa_mode): New.
3821         * explow.h (promote_ssa_mode): Declare.
3822         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3823         * function.c: Include cfgexpand.h.
3824         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3825         (use_register_for_parm_decl): Wrapper for the above to
3826         special-case the result_ptr.
3827         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3828         (split_complex_args): Take assign_parm_data_all argument.
3829         Pass it to rtl_for_parm.  Set up rtl and context for split
3830         args.
3831         (assign_parms_augmented_arg_list): Adjust.
3832         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3833         multiple locations.  Recognize split complex args.
3834         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3835         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
3836         (assign_parm_setup_block): Prefer SSA-assigned location.
3837         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
3838         if stack_parm is NULL.
3839         (assign_parm_setup_stack): Prefer SSA-assigned location.
3840         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
3841         rtl before testing for pointer bounds.  Special-case result_ptr.
3842         (expand_function_start): Maybe reset DECL_RTL of result.
3843         Prefer SSA-assigned location for result and static chain.
3844         Factor out DECL_RESULT and SET_DECL_RTL.
3845         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3846         anonymous SSA names.  Use promote_ssa_mode.
3847         (get_temp_reg): Likewise.
3848         (remove_ssa_form): Adjust.
3849         * stor-layout.c (layout_decl): Don't set mem attributes of
3850         non-MEMs.
3851         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3852         and get its reg_usage for reg invalidation.
3853         (compute_bb_dataflow): Pass it insn.
3854         (emit_notes_in_bb): Likewise.
3856 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3858         * config/i386/i386.c (ix86_va_start): Remove
3859         unneeded !TARGET_64BIT check.
3860         (ix86_gimplify_va_arg): Ditto.
3862 2015-07-24  Tom de Vries  <tom@codesourcery.com>
3864         * graphite-sese-to-poly.c (build_poly_scop): Always call
3865         rewrite_commutative_reductions_out_of_ssa.
3867 2015-07-24  Tom de Vries  <tom@codesourcery.com>
3869         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
3870         flag_associative_math to FLOAT_TYPE_P.  Honour
3871         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
3873 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3875         PR c++/64079
3876         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
3877         and "%qD" in warning_at instead of "%q+D" in warning.
3879 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
3881         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
3882         (ix86_function_abi): Cleanup.
3884 2015-07-24  Michael Darling  <darlingm@gmail.com>
3886         PR other/66259
3887         * acinclude.m4: Reflects renaming of configure.in to configure.ac
3888         * configure: Likewise
3889         * configure.ac: Likewise
3890         * doc/install.texi: Likewise
3891         * doc/tm.texi: Likewise
3892         * doc/tm.texi.in: Likewise
3894 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3896         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
3897         manually swapping values.
3898         * cse.c (fold_rtx): Likewise.
3899         * lra-eliminations.c (form_sum): Likewise.
3901 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
3903         PR target/64003
3904         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
3905         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
3906         (*jcc_1, *jcc_2, jump, simple_return_internal)
3907         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
3908         Set length_nobnd attribute instead of length attribute.
3909         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
3910         (length_nobnd): Remove attribute.
3911         (length): Remove length_nobnd processing.
3913 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
3915         * gimplify.c (omp_default_clause): New function.  Reorganize flow
3916         for clarity. Broken out of ...
3917         (omp_notice_variable): ... here.
3919 2015-07-24  Gary Funck  <gary@intrepid.com>
3921         PR middle-end/66984
3922         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
3923         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
3925 2015-07-24  Tom de Vries  <tom@codesourcery.com>
3927         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
3928         exit-first loop transform.
3930 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
3932         PR 66714
3933         * tree-cfg.c (struct replace_decls_d): New struct.
3934         (replace_block_vars_by_duplicates_1): New function.
3935         (replace_block_vars_by_duplicates): Use it to replace the decls
3936         in the value exprs by duplicates.
3938 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3940         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
3941         -shared, -symbolic, -rdynamic.
3943 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3945         PR target/65711
3946         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
3947         -dynamic-linker within %{!static %{!shared, and -rdynamic within
3948         %{!static.
3950 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
3952         PR ipa/66566
3953         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
3954         edge summary is available.
3956 2015-07-24  Richard Biener  <rguenther@suse.de>
3958         * genmatch.c (struct dt_node): Add statistic fields.
3959         (dt_node::analyze): New method.
3960         (decision_tree::gen_gimple): Call analyze on the root node
3961         and print statistics to stderr.
3962         (decision_tree::gen_generic): Likewise.
3964 2015-07-24  Richard Biener  <rguenther@suse.de>
3966         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
3967         against the highest or lowest possible integer ...
3968         * match.pd: ... as patterns here.
3970 2015-07-24  Richard Biener  <rguenther@suse.de>
3972         * genmatch.c (struct capture_info): Add same_as field.
3973         (capture_info::capture_info): Initialize same_as.
3974         (capture_info::walk_match): Compute same_as.
3975         (capture_info::walk_result): Compute stuff for the leader.
3976         (capture_info::walk_c_expr): Likewise.
3977         (dt_simplify::gen_1): Only look at leaders when deciding
3978         to force no side-effects or emit side-effects of omitted operands.
3980 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3982         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
3983         reg note to the GPR -> FPR save instructions.
3985 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3987         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
3988         cheaper.
3989         (s390_expand_insv): Don't generate risbg pattern for constant zero
3990         sources.
3991         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
3992         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
3993         splitters.
3995 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3997         * config/s390/s390.c (s390_reorg): Clean up handling of processors
3998         with
3999         -mtune=
4000         (s390_issue_rate): Likewise.
4001         (s390_sched_reorder): Likewise.
4002         (s390_sched_variable_issue): Likewise.
4003         (s390_loop_unroll_adjust): Likewise.
4004         (s390_option_override):  Likewise.
4006 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4008         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4009         processor capabilities with -march=native.
4010         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4011         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
4012         (S390_TARGET_BITS_STRING): Macro to simplify specs.
4014 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4016         * config/s390/s390.c (s390_issue_rate): Handle
4017         PROCESSOR_2094_Z9_EC.
4018         (s390_option_override): Likewise.
4019         (s390_adjust_priority): Likewise.
4021 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4023         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4024         when cross compiling.
4026 2015-07-24  Richard Biener  <rguenther@suse.de>
4028         * fold-const.c (maybe_canonicalize_comparison_1): Move
4029         A code CST canonicalization ...
4030         * match.pd: ... to a pattern here.
4032 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
4034         Revert:
4035         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4036         PR target/63521
4037         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4038         (HONOR_REG_ALLOC_ORDER): Define.
4040 2015-07-24  Richard Biener  <rguenther@suse.de>
4042         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4043         * fold-const.c (fold_comparison): Move parameter does not
4044         alias &local simplification ...
4045         * match.pd: ... as a pattern here.
4047 2015-07-24  Richard Biener  <rguenther@suse.de>
4049         * gimple-fold.c (replace_stmt_with_simplification): Special-case
4050         valueizing call operands.
4051         * gimple-match-head.c (maybe_push_res_to_seq): Take
4052         number of call arguments from ops array.
4053         (do_valueize): New function.
4054         (gimple_simplify): Return true if valueization changed
4055         any operand even if the result didn't simplify further.
4057 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4059         PR middle-end/25530
4060         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4062 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4064         PR middle-end/25529
4065         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4067 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4069         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4070         instruction.
4072 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4074         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4075         clean up.
4077 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
4079         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4080         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
4081         targets here.
4082         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4083         ms_va_list_type_node initialization.
4085 2015-07-23  Jeff Law  <law@redhat.com>
4087         PR lto/66752
4088         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4089         unable to find X NE 0 in the tables, return X as the simplified
4090         condition.
4091         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4092         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4093         to VISISTED_BBS.  */
4094         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4095         after removing the control flow statement and unnecessary edges.
4097 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4099         * tree-pass.h (get_current_pass_name): Removed.
4101 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4103         PR rtl-optimization/64164
4104         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4105         * tree-ssa-copyrename.c: Removed.
4106         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4107         -ftree-coalesce-vars.
4108         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4109         * common.opt (ftree-copyrename): Ignore.
4110         (ftree-coalesce-inlined-vars): Likewise.
4111         * doc/invoke.texi: Remove the ignored options above.
4112         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4113         * tree-ssa-coalesce.h: ... here.
4114         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4115         headers required by it.
4116         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4117         across variables when flag_tree_coalesce_vars.  Check register
4118         use and promoted modes to allow coalescing.  Moved to
4119         tree-ssa-coalesce.c.
4120         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4121         with its member functions to tree-ssa-coalesce.c.
4122         (var_map_base_init): Likewise.  Renamed to
4123         compute_samebase_partition_bases.
4124         (partition_view_normal): Drop want_bases parameter.
4125         (partition_view_bitmap): Likewise.
4126         * tree-ssa-live.h: Adjust declarations.
4127         * tree-ssa-coalesce.c: Include explow.h.
4128         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4129         default defs at the entry point.
4130         (dump_part_var_map): New.
4131         (compute_optimized_partition_bases): New, called by...
4132         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4133         of compute_samebase_partition_bases.  Adjust.
4134         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4135         * cfgexpand.c (leader_merge): New.
4136         (get_rtl_for_parm_ssa_default_def): New.
4137         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4138         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4139         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4140         redundant MEM attr setting.
4141         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4142         from...
4143         (expand_one_stack_var): ... this.  New wrapper to check and
4144         skip already expanded SSA partitions.
4145         (record_alignment_for_reg_var): New, factored out of...
4146         (expand_one_var): ... this.
4147         (expand_one_ssa_partition): New.
4148         (adjust_one_expanded_partition_var): New.
4149         (expand_one_register_var): Check and skip already expanded SSA
4150         partitions.
4151         (expand_used_vars): Don't create DECLs for anonymous SSA
4152         names.  Expand all SSA partitions, then adjust all SSA names.
4153         (pass::execute): Replace the loops that set
4154         SA.partition_to_pseudo from partition leaders and cleared
4155         DECL_RTL for multi-location variables, and that which used to
4156         rename vars and set attrs, with one that clears DECL_RTL and
4157         checks that PARMs and RESULTs default_defs match DECL_RTL.
4158         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4159         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4160         * explow.c (promote_ssa_mode): New.
4161         * explow.h (promote_ssa_mode): Declare.
4162         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4163         * function.c: Include cfgexpand.h.
4164         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4165         (use_register_for_parm_decl): Wrapper for the above to
4166         special-case the result_ptr.
4167         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4168         (split_complex_args): Take assign_parm_data_all argument.
4169         Pass it to rtl_for_parm.  Set up rtl and context for split
4170         args.
4171         (assign_parms_augmented_arg_list): Adjust.
4172         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4173         multiple locations.  Recognize split complex args.
4174         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4175         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4176         (assign_parm_setup_block): Prefer SSA-assigned location.
4177         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4178         if stack_parm is NULL.
4179         (assign_parm_setup_stack): Prefer SSA-assigned location.
4180         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4181         rtl before testing for pointer bounds.  Special-case result_ptr.
4182         (expand_function_start): Maybe reset DECL_RTL of result.
4183         Prefer SSA-assigned location for result and static chain.
4184         Factor out DECL_RESULT and SET_DECL_RTL.
4185         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4186         anonymous SSA names.  Use promote_ssa_mode.
4187         (get_temp_reg): Likewise.
4188         (remove_ssa_form): Adjust.
4189         * stor-layout.c (layout_decl): Don't set mem attributes of
4190         non-MEMs.
4191         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4192         and get its reg_usage for reg invalidation.
4193         (compute_bb_dataflow): Pass it insn.
4194         (emit_notes_in_bb): Likewise.
4196 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
4198         PR target/66217
4199         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4200         prototype.
4201         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4202         (rs6000_emit_2insn_and): Handle dot forms.
4203         * config/rs6000/rs6000.md (and<mode>3): Adjust.
4204         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
4205         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4207 2015-07-23  Richard Biener  <rguenther@suse.de>
4209         * generic-match-head.c: Include cgraph.h.
4210         * gimple-match-head.c: Likewise.
4211         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4212         SSA names.
4213         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4214         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
4215         pattern.
4217 2015-07-23  Richard Biener  <rguenther@suse.de>
4219         * gimple-fold.c (fold_gimple_cond): Do not require folding
4220         results to pass valid_gimple_rhs_p.
4221         * tree-cfg.h (fold_cond_expr_cond): Remove.
4222         * tree-cfg.c (fold_cond_expr_cond): Likewise.
4223         (make_edges): Do not call it.
4224         * tree-inline.c (tree_function_versioning): Likewise.
4226 2015-07-23  Tom de Vries  <tom@codesourcery.com>
4228         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4229         vect_force_simple_reduction.
4230         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4231         (vect_is_simple_reduction_1): Add and handle
4232         need_wrapping_integral_overflow parameter.
4233         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4234         need_wrapping_integral_overflow parameter.
4235         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4236         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4237         decl.
4239 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
4241         PR tree-optimization/66926,66951
4242         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4243         INNER_LOOP and fix up condition for renaming virtual operands.
4245 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4247         * combine.c (try_combine): Use std::swap instead of manually
4248         swapping.
4250 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
4252         * config/mips/i6400.md: New file.
4253         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4254         (mips64r6): Likewise.
4255         (i6400): Define.
4256         * config/mips/mips-tables.opt: Regenerate.
4257         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4258         (mips_issue_rate): Add support for i6400.
4259         (mips_multipass_dfa_lookahead): Likewise.
4260         * config/mips/mips.h (TUNE_I6400): Define.
4261         * config/mips/mips.md: Include i6400.md.
4262         (processor): Add i6400.
4263         * doc/invoke.texi (-march=@var{arch}): Add i6400.
4265 2015-07-23  Richard Biener  <rguenther@suse.de>
4267         PR middle-end/66916
4268         * match.pd: Guard widen and sign-change comparison simplification
4269         with single_use.
4271 2015-07-23  Richard Biener  <rguenther@suse.de>
4273         PR tree-optimization/66945
4274         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4275         ::before_dom_children): Force the propagators idea of
4276         non-executable edges to materialize, not what the folder
4277         chooses.
4279 2015-07-23  Richard Biener  <rguenther@suse.de>
4281         * gimple.h (gimple_cond_make_false): Use 0 != 0.
4282         (gimple_cond_make_true): Use 1 != 0.
4284 2015-07-22  DJ Delorie  <dj@redhat.com>
4286         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4287         slashes.
4289         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4290         (ashrhi3): Likewise.
4291         (lshrhi3): Likewise.
4292         (movhi): Take advantage of zero-extend to load small constants.
4293         (movpsi): Likewise.
4294         (and<mode>3): Likewise.
4295         (zero_extendqihi2): Likewise.
4296         (zero_extendqisi2): New.
4297         * config/msp430/constraints.md (N,O): New.
4298         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4300 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
4302         PR target/66954
4303         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4304         to enum feature_priority and feature_list.
4305         (fold_builtin_cpu): Add F_AES to enum processor_features
4306         and isa_names_table.
4308 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
4310         PR driver/66737
4311         * config/i386/linux-common.h (MPX_SPEC): Use linker option
4312         for 64bit target only.
4314 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4316         * config/nvptx/nvptx.c: Expand some comments.
4318 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
4320         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4321         (cortex_a53_advsimd): ...This.
4323 2015-07-22  Richard Biener  <rguenther@suse.de>
4325         * genmatch.c (expr::gen_transform): Clarify error message
4326         and display location.
4328 2015-07-22  Richard Biener  <rguenther@suse.de>
4330         * genmatch.c (struct operand): Add location member.
4331         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4332         constructors.
4333         (struct simplify): Remove match_location and result_location
4334         members.
4335         (elsehwere): Adjust.
4337 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
4339         * config/mips/m5100.md: New file.
4340         * config/mips/mips-cpus.def (m5100, m5101): Define.
4341         * config/mips/mips-tables.opt: Regenerate.
4342         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4343         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4344         -march=m5101 to -mips32r5.
4345         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4346         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4347         !-msoft-float.
4348         * config/mips/mips.md: Include m5100.md.
4349         (processor): Add m5100.
4350         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4352 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
4354         * config/mips/mips-cpus.def (interaptiv): Define.
4355         * config/mips/mips-tables.opt: Regenerate.
4356         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4357         -mips32r2.
4358         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4359         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4361 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4363         PR target/63521
4364         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4365         (HONOR_REG_ALLOC_ORDER): Define.
4367 2015-07-22  Richard Biener  <rguenther@suse.de>
4369         PR tree-optimization/66952
4370         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4371         blocks we end up executing unconditionally reset all SSA
4372         info such as range and alignment.
4373         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4374         * tree-ssanames.c (reset_flow_sensitive_info): New function.
4376 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4378         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4379         typo in attribute.
4381 2015-07-22  Richard Biener  <rguenther@suse.de>
4383         * genmatch.c (parser::parse_result): Properly handle
4384         match with result operands and conditions.
4386 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4388         PR target/63870
4389         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4390         Add qualifier_struct_load_store_lane_index.
4391         (aarch64_types_loadstruct_lane_qualifiers): Use
4392         qualifier_struct_load_store_lane_index for lane index argument for
4393         last argument.
4394         (aarch64_types_storestruct_lane_qualifiers): Ditto.
4395         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4396         (aarch64_simd_expand_args): Add new argument describing mode of
4397         builtin. Check lane bounds for arguments with
4398         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4399         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4400         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4401         (aarch64_simd_expand_builtin): Handle arguments with
4402         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4403         aarch64_simd_expand_args.
4404         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4405         vst[234]_lane with BUILTIN_VALLDIF.
4406         * config/aarch64/aarch64-simd.md:
4407         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4408         endianness reversal on lane index.
4409         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4410         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4411         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4412         (vec_store_lanesci_lane<mode>): Ditto.
4413         (vec_store_lanesxi_lane<mode>): Ditto.
4414         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4415         reversal of lane index.
4416         (aarch64_ld3_lane<mode>): Ditto.
4417         (aarch64_ld4_lane<mode>): Ditto.
4418         (aarch64_st2_lane<mode>): Ditto.
4419         (aarch64_st3_lane<mode>): Ditto.
4420         (aarch64_st4_lane<mode>): Ditto.
4421         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4422         to qmode. Add new mode parameter. Update uses.
4423         (__LD3_LANE_FUNC): Ditto.
4424         (__LD4_LANE_FUNC): Ditto.
4425         (__ST2_LANE_FUNC): Ditto.
4426         (__ST3_LANE_FUNC): Ditto.
4427         (__ST4_LANE_FUNC): Ditto.
4429 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
4431         * doc/invoke.texi (Language Independent Options): Rename node to
4432         Diagnostic Message Formatting Options.
4434 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
4436         PR ipa/66424.
4437         * lra-remat.c (operand_to_remat): Prevent using insns with input
4438         subregs processed separately by IRA.
4440 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
4442         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4443         straight loops.
4444         (single_imm_use): Check for iterator node.
4445         (num_imm_uses): Likewise.
4446         * tree-ssa-operands.c (has_zero_uses_1): Delete.
4447         (single_imm_use_1): Check for iterator node.
4449 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
4450             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4452         * configure.ac: Add check for new options in isl-0.15.
4453         * config.in, configure: Rebuilt.
4454         * graphite-blocking.c: Include <isl/constraint.h>
4455         * graphite-interchange.c,  graphite-poly.c: Likewise.
4456         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4457         * graphite.c: Likewise.
4458         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4459         <isl/union_set.h>.
4460         * graphite-dependences.c: Include <isl/constraint.h>.
4461         (max_number_of_out_dimensions): Returns isl_stat.
4462         (extend_schedule_1): Likewise
4463         (extend_schedule): Corresponding changes.
4464         * graphite-optimize-isl.c: Include <isl/constraint.h> and
4465         <isl/union_set.h>.
4466         (getSingleMap): Change return type of isl_stat.
4467         (optimize_isl): Conditionally use
4468         isl_options_set_schedule_serialize_sccs.
4469         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4470         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4472 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
4474         PR target/66956
4475         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4476         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4478 2015-07-21  Richard Biener  <rguenther@suse.de>
4480         PR tree-optimization/66948
4481         * genmatch.c (capture_info::walk_match): Also recurse to
4482         captures.  Properly compute expr state from captures of
4483         captures.
4484         * match.pd: Add single-use guards to
4485         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4487 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
4489         * config/nvptx/mkoffload.c (process): Add static destructor call.
4491 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4493         PR middle-end/66915
4494         * match.pd (A - B -> A + (-B)): Don't allow folding
4495         when type if a fixed-point type.
4497 2015-07-20  DJ Delorie  <dj@redhat.com>
4499         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4500         (iorqi3_real): Likewise for set1.
4502 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
4504         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4505         for !TARGET_64BIT.
4507 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
4509         * graphite-isl-ast-to-gimple.c:
4510         Refactor so that each function can access 'region'. This will help
4511         maintain a parameter rename_map within a region.
4513 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4515         * config/rs6000/rs6000.md (*lt0_disi): New.
4517 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4519         PR target/66217
4520         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
4521         "available letters" comment.
4522         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4523         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4524         and_2rld_operand):  Delete.
4525         (and_operand): Adjust.
4526         (rotate_mask_operator): New.
4527         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4528         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4529         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4530         extract_ME): Delete.
4531         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4532         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4533         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4534         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4535         rs6000_emit_2insn_and): New.
4536         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4537         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4538         includes_rldic_lshift_p, includes_rldicr_lshift_p,
4539         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4540         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4541         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4542         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4543         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4544         rs6000_emit_2insn_and): New.
4545         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4546         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4547         handling.
4548         <NOT>: Don't fall through to next case.
4549         <AND>: Handle the various rotate-and-mask cases directly.
4550         <IOR>: Always cost as one insn.
4551         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4552         (and<mode>3): Adjust expander for the new patterns.
4553         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4554         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4555         (*and<mode>3_imm_dot_shifted): New.
4556         (*and<mode>3_mask): Delete, rewrite as ...
4557         (and<mode>3_mask): ... New.
4558         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4559         (andsi3_internal0_nomc): Delete.
4560         (*andsi3_internal6): Delete.
4561         (*and<mode>3_2insn): New.
4562         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4563         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4564         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4565         *insvdi_internal3): Delete.
4566         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4567         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4568         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4569         *ior<mode>_mask): New.
4570         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4571         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4572         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4573         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4574         Delete.
4575         (ashr<mode>3): Delete expander.
4576         (*ashr<mode>3): Rename to ...
4577         (ashr<mode>3): ... This.
4578         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4579         (*rotldi3_internal4, *rotldi3_internal5 and split,
4580         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4581         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4582         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4583         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4584         (splitter for loading a mask): Adjust.
4585         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4587 2015-07-20  Marek Polacek  <polacek@redhat.com>
4589         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4590         output_add_clobbers, output_added_clobbers_hard_reg_p,
4591         gen_rtx_scratch): Remove declarations.
4593 2015-07-20  Marek Polacek  <polacek@redhat.com>
4595         PR c++/55095
4596         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4598 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4600         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4601         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4603 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4605         * combine.c (combine_simplify_rtx): Move simplification step
4606         before various transformations/substitutions.
4608 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
4610         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4611         (struct int_traits): Likewise.
4613 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4615         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
4616         function to vmsdbgout_function_decl.
4618 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4620         PR target/66922
4621         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
4622         from misaligned positions.
4623         (ix86_expand_pinsr): Reject insertions to misaligned positions.
4625 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
4627         PR middle-end/46851
4628         PR middle-end/60340
4629         * Makefile.in: Removed omega.o.
4630         * common.opt: Document flag fcheck-data-deps as deprecated.
4631         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
4632         its associated params: omega-max-vars, omega-max-geqs,
4633         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
4634         omega-max-keys, omega-eliminate-redundant-constraints.
4635         * doc/loop.texi: Remove all the section on Omega.
4636         * graphite-blocking.c: Include missing params.h: it used to be
4637         included through tree-data-ref.h and omega.h.
4638         * graphite-isl-ast-to-gimple.c: Same.
4639         * graphite-optimize-isl.c: Same.
4640         * graphite-sese-to-poly.c: Same.
4641         * graphite.c: Same.
4642         * omega.c: Remove.
4643         * omega.h: Remove.
4644         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
4645         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
4646         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
4647         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
4648         * passes.def: Remove pass_check_data_deps.
4649         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
4650         (dump_conflict_function): Same.
4651         (dump_subscript): Same.
4652         (print_direction_vector): Same.
4653         (print_dir_vectors): Same.
4654         (print_lambda_vector): Same.
4655         (print_dist_vectors): Same.
4656         (dump_data_dependence_relation): Same.
4657         (dump_data_dependence_relations): Same.
4658         (dump_dist_dir_vectors): Same.
4659         (dump_ddrs): Same.
4660         (init_omega_eq_with_af): Removed.
4661         (omega_extract_distance_vectors): Removed.
4662         (omega_setup_subscript): Removed.
4663         (init_omega_for_ddr_1): Removed.
4664         (init_omega_for_ddr): Removed.
4665         (ddr_consistent_p): Removed.
4666         (compute_affine_dependence): Do not use omega to check data
4667         dependences.
4668         (compute_data_dependences_for_bb): Removed.
4669         (analyze_all_data_dependences): Removed.
4670         (tree_check_data_deps): Removed.
4671         * tree-data-ref.h: Do not include omega.h.
4672         (compute_data_dependences_for_bb): Removed.
4673         (tree_check_data_deps): Removed.
4674         * tree-ssa-loop.c (pass_check_data_deps): Removed.
4675         (make_pass_check_data_deps): Removed.
4676         * tree-ssa-phiopt.c: Include params.h.
4677         * tree-vect-data-refs.c: Same.
4678         * tree-vect-slp.c: Same.
4680 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4682         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
4683         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
4684         (mem->fpreg splitters): Ditto.
4685         (general_operand->nonimmediate_operand splitter): Use explicit modes.
4686         Disable DFmode for TARGET_64BIT.
4688 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4690         PR target/66906
4691         * config/i386/i386.c (ix86_expand_prologue): Replicate static
4692         chain on the stack.
4694 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
4696         * config/nvptx/mkoffload.c (process): Constify host data.
4697         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
4698         Constify host data.
4699         (generate_host_descr_file): Likewise.
4701 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
4702             Sebastian Pop  <s.pop@samsung.com>
4704         PR middle-end/61929
4705         * graphite-dependences.c (add_pdr_constraints): Renamed
4706         pdr->extent to pdr->subscript_sizes.
4707         * graphite-interchange.c (build_linearized_memory_access): Add
4708         back all gcc_assert's that the "isl_int to isl_val conversion"
4709         patch has removed.  Refactored.
4710         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
4711         * graphite-poly.c (new_poly_dr): Same.
4712         (free_poly_dr): Same.
4713         * graphite-poly.h (struct poly_dr): Same.
4714         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
4715         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
4716         * graphite-scop-detection.h: Fix space.
4717         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
4718         back all gcc_assert's removed by a previous patch.
4719         (wrap): Remove the_isl_ctx global variable that the same patch has
4720         added.
4721         (build_loop_iteration_domains): Same.
4722         (add_param_constraints): Same.
4723         (pdr_add_data_dimensions): Same.  Refactored.
4724         (build_poly_dr): Renamed extent to subscript_sizes.
4726 2015-07-17  Marek Polacek  <polacek@redhat.com>
4728         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
4729         * match.pd: ... here.
4731 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
4733         * config/nvptx/mkoffload.c (process): Constify target data.
4734         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
4735         Constify target data.
4736         (generate_target_offloadend_file): Likewise.
4738 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
4740         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
4741         to allow renaming of PHI arguments on edges incoming from outer
4742         loop header, add corresponding check before start PHI iterator.
4743         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
4744         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
4745         with true force_vectorize.  Set-up dominator for outer loop too.
4746         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
4747         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
4748         was marked with force_vectorize and has restricted cfg.
4749         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
4750         inner loop.
4751         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4752         do peeling for outer loops.
4754 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
4755             Matthias Klose  <doko@ubuntu.com>
4757         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
4758         build-sysroot, sysroot from the `Miscenalleous configure options' to
4759         the `Directories' section and strip trailing `/' from with_sysroot.
4760         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
4761         * configure: Regenerated.
4763 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
4765         PR target/66824
4766         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
4767         (TARGET_HARD_DF_REGS): Ditto.
4768         (TARGET_HARD_XF_REGS): Ditto.
4769         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
4770         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
4771         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
4772         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
4773         (*movsf_internal): Add alternatives 16 and 17. Enable
4774         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
4776 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
4778         PR rtl-optimization/66891
4779         * calls.c (expand_call): Wrap precompute_register_parameters with
4780         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
4782 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
4784         * config/nvptx/mkoffload.c (process): Constify mapping variables.
4785         Define target data struct and initialize it.
4787 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
4789         PR rtl-optimization/66626
4790         * ira.h (emit-rtl.h): Include.
4791         (non_spilled_static_chain_regno_p): New.
4792         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
4793         unless it is non spilled static chain pseudo.
4794         (assign_hard_rego): Spill memory profitable allocno unless it is
4795         non spilled static chain pseudo.
4796         (allocno_spill_priority_compare): Put non spilled static chain
4797         pseudo at the end of sorted array.
4798         (improve_allocation): Do nothing if we have static chain and
4799         non-local goto.
4800         (allocno__priority_compare_func): Put non spilled static chain
4801         pseudo at the beginning of sorted array.
4802         (move_spill_restore): Ignore non spilled static chain pseudo.
4803         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
4804         to non spilled static chain pseudo.
4805         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
4806         pseudo at the beginning of sorted array.
4807         (spill_for): Spill non spilled static chain pseudo last.
4808         * lra-constraints.c (lra_constraints): Remove static chain pseudo
4809         check for equivalence.
4811 2015-07-16  Martin Liska  <mliska@suse.cz>
4813         PR ipa/66896.
4814         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
4815         dst_ctx if it does not exist.
4817 2015-07-16  Martin Liska  <mliska@suse.cz>
4819         * hash-set.h (remove): New function.
4820         (iterator): New iteration class for hash_set.
4822 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
4824         * genattrtab.c (make_canonical): Add a file_location parameter.
4825         Use fatal_at rather than fatal.
4826         (get_attr_value): Likewise.  Update call to make_canonical.
4827         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
4828         (make_internal_attr): Update calls accordingly.
4830 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
4832         * read-md.h (message_with_line, error_with_line): Delete.
4833         * read-md.c (message_with_line, error_with_line): Delete.
4834         * gensupport.h: Include read-md.h.
4835         (md_rtx_info): New structure.
4836         (read_md_rtx): Use it.  Return a bool success value.
4837         * gensupport.c (read_md_rtx): Likewise.
4838         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
4839         (main): Update after interface changes.
4840         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
4841         (main): Update after interface changes.
4842         * genattrtab.c (insn_code_number): Delete.
4843         (optimize_attrs): Add a max_insn_code parameter and use it instead
4844         of insn_code_number.
4845         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
4846         Use *_at rather than *_with_line functions.
4847         (gen_insn): Likewise.
4848         (gen_delay): Likewise.
4849         (gen_insn_reserv): Likewise.
4850         (gen_bypass): Take an md_rtx_info rather than an rtx.
4851         (main): Update after interface changes.  Use a local max_insn_code
4852         variable instead of insn_code_number.
4853         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
4854         an rtx.  Use fatal_at rather than fatal.
4855         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
4856         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
4857         (gen_absence_set, gen_final_absence_set, gen_automaton)
4858         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
4859         (main): Update after interface changes.
4860         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
4861         and code number.
4862         (main): Update after interface changes.
4863         * genconditions.c (main): Use new read_md_rtx interface.
4864         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
4865         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
4866         (main): Update after interface changes.
4867         * genemit.c (insn_code_number, insn_index_number): Delete.
4868         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
4869         Use fatal_at rather than fatal.
4870         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
4871         rather than fatal.
4872         (gen_split): Likewise.
4873         (main): Update after interface changes.
4874         * genextract.c (line_no): Delete.
4875         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
4876         Update call to walk_rtx.
4877         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
4878         rather than message_with_line.
4879         (walk_rtx): Add an md_rtx_info argument.  Update call to
4880         VEC_safe_set_locstr.
4881         (main): Update after interface changes.
4882         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
4883         and lineno.  Use error_at rather than separate message_with_line
4884         calls and have_error assignments.
4885         (main): Update after interface changes.
4886         * genmddump.c (main): Use new read_md_rtx interface.
4887         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
4888         (main): Update after interface changes.
4889         * genoutput.c (next_code_number): Delete.
4890         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
4891         (gen_peephole, gen_expand, gen_split): Likewise.
4892         (note_constraint): Likewise.  Use *_at rather than *_with_line
4893         functions.
4894         (main): Update after interface changes.
4895         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
4896         rtx and lineno.
4897         (main): Update after interface changes.
4898         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
4899         than an rtx and lineno.
4900         (process_define_constraint): Likewise.
4901         (process_define_register_constraint): Likewise.
4902         (main): Update after interface changes.
4903         * genrecog.c (next_insn_code, pattern_lineno): Delete.
4904         (validate_pattern): Replace top-level rtx with an md_rtx_info.
4905         Use *_at rather than *_with_line functions.
4906         (match_pattern_2): Likewise.
4907         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
4908         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
4909         Use *_at rather than *_with_line functions.
4910         * gentarget-def.c (add_insn): New function.
4911         (main): Use it.  Use new read_md_rtx interface.
4913 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
4915         * gensupport.h (compute_test_codes): Take a file_location rather
4916         than a line number.
4917         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
4918         rather than *_with_line functions.
4919         (process_define_predicate): Update call to compute_test_codes.
4920         * genpreds.c (validate_exp): Take a file_location rather than a
4921         line number.  Use *_at functions rather than *_with_line functions.
4922         (process_define_predicate): Update call to validate_exp.
4923         (constraint_data): Replace lineno field with a file_location.
4924         (add_constraint): Take a file_location rather than a line number.
4925         Use *_at functions rather than *_with_line functions.  Fix error
4926         message for address constraints.  Update after changes to
4927         validate_exp, constraint_data and compute_test_codes.
4928         (process_define_constraint): Update accordingly.
4929         (process_define_register_constraint): Likewise.
4931 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
4933         * genoutput.c (data): Use a file_location to record the source
4934         position.
4935         (nothing): Delete.
4936         (idata, idata_end): Remove initialization.
4937         (constraint_data): Replace lineno with a file_location.
4938         (output_insn_data): Update after changes to data.
4939         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
4940         (scan_operands): Likewise, using *_at rather than *_with_line
4941         functions.
4942         (process_template): Likewise.
4943         (validate_insn_alternatives): Likewise.
4944         (validate_insn_operands): Likewise.
4945         (validate_optab_operands): Likewise.
4946         (init_insn_for_nothing): Initialize idata and idata_end.
4947         (note_constraint): Update after changes to constraint_data,
4948         using at rather than with_line functions.
4949         (mdep_constraint_len): Take a file_location rather than a
4950         line number.  Use at rather than with_line functions.
4952 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
4954         * read-md.h (fatal_at): Declare.
4955         * read-md.c (fatal_at): New function.
4956         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
4957         to record the source position.
4958         (check_attr_test): Take a file_location instead of a line number.
4959         Use fatal_at instead of fatal.
4960         (check_attr_value): Update after above changes, using "at"
4961         rather than "with_line" reporting functions.
4962         (convert_set_attr_alternative): Likewise.
4963         (gen_attr): Likewise.
4964         (check_defs): Likewise.  Don't assign to read_md_filename.
4965         (gen_insn): Update initialization after above changes.
4966         (gen_delay): Likewise.
4967         (write_insn_cases): Print the filename for a define_peephole.
4968         (gen_insn_reserv): Take a line number as argument and update
4969         the call to check_attr_test.
4970         (main): Pass a line number to gen_insn_reserv.
4972 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
4974         * read-md.h (file_location): New structure.
4975         (directive_handler_t): Take a file_location rather than a line number.
4976         (message_at, error_at): Declare.
4977         (read_skip_construct): Delete.
4978         * read-md.c (message_with_line_1): Replace with...
4979         (message_at_1): ...this new function.
4980         (message_at, error_at): New functions.
4981         (message_with_line, error_with_line): Update to use message_at_1.
4982         (handle_enum): Take a file_location rather than a line number
4983         and use error_at for error reporting.
4984         (handle_include): Likewise.
4985         (read_skip_construct): Likewise.  Make static.
4986         (handle_file): Update after above changes.  Pass a file_location
4987         rather than a line number to handle_directive.
4988         * gensupport.c (queue_elem): Replace separate filename and lineno
4989         with a file_location.
4990         (queue_pattern): Replace filename and lineno arguments with a
4991         file_location.  Update after change to queue_elem.
4992         (process_define_predicate): Replace lineno argument with a
4993         file_location and use error_at for error reporting.  Update
4994         after above changes.
4995         (process_rtx): Likewise.
4996         (subst_pattern_match): Likewise.
4997         (get_alternatives_number): Likewise.
4998         (alter_predicate_for_insn): Likewise.
4999         (rtx_handle_directive): Likewise.
5000         (is_predicable): Update after above changes, using error_at rather
5001         than error_with_line.
5002         (has_subst_attribute): Likewise.
5003         (identify_predicable_attribute): Likewise.
5004         (alter_attrs_for_subst_insn): Likewise.
5005         (process_one_cond_exec): Likewise.
5006         (process_substs_on_one_elem): Likewise.
5007         (process_define_subst): Likewise.
5008         (check_define_attr_duplicates): Likewise.
5009         (read_md_rtx): Update after change to queue_elem.
5011 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5013         * genoutput.c (next_index_number): Delete.
5014         (data): Remove index_number.
5015         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5016         (main): Remove manipulation of next_index_number.
5018 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5020         * genattrtab.c (check_attr_value): Remove handling of null attrs.
5021         (make_canonical): Likewise.
5023 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5025         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5026         instead of adjust_address_nv.
5027         (restore_stack_nonlocal): Likewise.
5028         (nonlocal_goto): Likewise.
5030 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5032         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5033         not have a corresponding loop header phi.
5035 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5037         * tree-parloops.c (create_loads_for_reductions): Handle case that
5038         reduction is unused.
5040 2015-07-16  Richard Biener  <rguenther@suse.de>
5042         PR tree-optimization/66894
5043         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5044         about deriving NE_EXPR from truncated values.
5046 2015-07-16  Martin Liska  <mliska@suse.cz>
5048         * alloc-pool.h
5049         (object_allocator): Add new class.
5050         (pool_allocator::initialize): Use the underlying class.
5051         (pool_allocator::allocate): Likewise.
5052         (pool_allocator::remove): Likewise.
5053         (operator new): A new generic allocator.
5054         * asan.c (struct asan_mem_ref): Remove unused members.
5055         (asan_mem_ref_new): Replace new operator with
5056         object_allocator::allocate.
5057         (free_mem_ref_resources): Change deallocation.
5058         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5059         with object_allocator.
5060         * config/sh/sh.c (add_constant): Replace new operator with
5061         object_allocator::allocate.
5062         (sh_reorg): Change call to a release method.
5063         * cselib.c (struct elt_list): Remove unused members.
5064         (new_elt_list): Replace new operator with
5065         object_allocator::allocate.
5066         (new_elt_loc_list): Likewise.
5067         (new_cselib_val): Likewise.
5068         (unchain_one_elt_list): Change delete operator with remove method.
5069         (unchain_one_elt_loc_list): Likewise.
5070         (unchain_one_value): Likewise.
5071         (cselib_finish): Release newly added static allocators.
5072         * cselib.h (struct cselib_val): Remove unused members.
5073         (struct elt_loc_list): Likewise.
5074         * df-problems.c (df_chain_alloc): Replace pool_allocator with
5075         object_allocator.
5076         * df-scan.c (struct df_scan_problem_data): Likewise.
5077         (df_scan_alloc): Likewise.
5078         * df.h (struct dataflow): Likewise.
5079         * dse.c (struct read_info_type): Likewise.
5080         (struct insn_info_type): Likewise.
5081         (struct dse_bb_info_type): Likewise.
5082         (struct group_info): Likewise.
5083         (struct deferred_change): Likewise.
5084         (get_group_info): Likewise.
5085         (delete_dead_store_insn): Likewise.
5086         (free_read_records): Likewise.
5087         (replace_read): Likewise.
5088         (check_mem_read_rtx): Likewise.
5089         (scan_insn): Likewise.
5090         (dse_step1): Likewise.
5091         (dse_step7): Likewise.
5092         * et-forest.c (struct et_occ): Remove unused members.
5093         (et_new_occ): Use allocate instead of new operator.
5094         (et_new_tree): Likewise.
5095         (et_free_tree): Call release method explicitly.
5096         (et_free_tree_force): Likewise.
5097         (et_free_pools): Likewise.
5098         (et_split): Use remove instead of delete operator.
5099         * et-forest.h (struct et_node): Remove unused members.
5100         * ipa-cp.c: Change pool_allocator to object_allocator.
5101         * ipa-inline-analysis.c: Likewise.
5102         * ipa-profile.c: Likewise.
5103         * ipa-prop.c: Likewise.
5104         * ipa-prop.h: Likewise.
5105         * ira-build.c (initiate_cost_vectors): Cast return value.
5106         (ira_allocate_cost_vector): Likewise.
5107         * ira-color.c (struct update_cost_record): Remove unused members.
5108         * lra-int.h (struct lra_live_range): Likewise.
5109         (struct lra_copy): Likewise.
5110         (struct lra_insn_reg): Likewise.
5111         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5112         * lra.c (new_insn_reg): Replace new operator with allocate method.
5113         (free_insn_regs): Same for operator delete.
5114         (finish_insn_regs): Release new static allocator.
5115         (finish_insn_recog_data): Likewise.
5116         (lra_free_copies): Replace delete operator with remove method.
5117         (lra_create_copy): Replace operator new with allocate method.
5118         (invalidate_insn_data_regno_info): Same for remove method.
5119         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5120         (free_debug_insn_changes): Replace delete operator with remove method.
5121         (replace_oldest_value_reg): Replace operator new with allocate method.
5122         (pass_cprop_hardreg::execute): Release new static variable.
5123         * sched-deps.c (sched_deps_init): Change pool_allocator to
5124         object_allocator.
5125         * sel-sched-ir.c: Likewise.
5126         * sel-sched-ir.h: Likewise.
5127         * stmt.c (expand_case): Likewise.
5128         (expand_sjlj_dispatch_table): Likewise.
5129         * tree-sra.c (struct access): Remove unused members.
5130         (struct assign_link): Likewise.
5131         (sra_deinitialize): Release newly added static pools.
5132         (create_access_1):Replace operator new with allocate method.
5133         (build_accesses_from_assign): Likewise.
5134         (create_artificial_child_access): Likewise.
5135         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5136         pool_allocator to object_allocator.
5137         * tree-ssa-pre.c: Likewise.
5138         * tree-ssa-reassoc.c: Likewise.
5139         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5140         * tree-ssa-strlen.c: Likewise.
5141         * tree-ssa-structalias.c: Likewise.
5142         * var-tracking.c (onepart_pool_allocate): New function.
5143         (unshare_variable): Use the newly added function.
5144         (variable_merge_over_cur): Likewise.
5145         (variable_from_dropped): Likewise.
5146         (variable_was_changed): Likewise.
5147         (set_slot_part): Likewise.
5148         (emit_notes_for_differences_1): Likewise.
5149         (vt_finalize): Release newly added static pools.
5151 2015-07-16  Martin Jambor  <mjambor@suse.cz>
5153         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
5154         all uses.  Fix two typos in its general comment.
5155         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
5157 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
5159         * config/i386/linux-common.h (LINK_MPX): New.
5160         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5161         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5162         indicating '-z bndplt' support by linker.
5163         * configure: Regenerate.
5164         * config.in: Regenerate.
5166 2015-07-16  Richard Biener  <rguenther@suse.de>
5168         * fold-const.c (fold_widened_comparison): Remove.
5169         (fold_sign_changed_comparison): Likewise.
5170         (fold_comparison): Move widened and sign-changed comparison
5171         simplification ...
5172         * match.pd: ... to patterns here.
5173         * generic-match-head.c: Include target.h.
5174         * gimple-match-head.c: Likewise.
5176 2015-07-16  Richard Biener  <rguenther@suse.de>
5178         * tree-ssa-dom.c (dom_valueize): New function.
5179         (record_temporary_equivalences): Also record equivalences
5180         for dominating stmts that have uses of equivalences we are
5181         about to record.
5183 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
5185         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5186         add_autoinc_candidates.
5187         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5188         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5189         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5190         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5191         Call new function.
5192         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5193         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5194         Remove parameter struct iv*.  Call add_autoinc_candidates here.
5195         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5196         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5197         Call new function.
5198         (find_iv_candidates): Call new functions.
5200 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5202         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5203         uninitialized-variable warning.
5205 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5207         PR target/65249
5208         * config/sh/sh.md (movdi): Split simple reg move to two movsi
5209         when the destination is R0.
5211 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
5213         PR target/66866
5214         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5215         * config/i386/i386.c (ix86_expand_pextr): New function.
5216         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
5217         for non-lowpart subregs.
5218         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5219         (insv<mode>): Use SWI248 mode iterator.
5220         (insv<mode>_1): Ditto.
5222 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5223             Sebastian Pop  <s.pop@samsung.com>
5225         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5226         iterator to use_stmt.
5228 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5229             Sebastian Pop <s.pop@samsung.com>
5231         * graphite-scop-detection.c (build_scops_1): Discard scops for
5232         which entry==exit.
5234 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5235             Sebastian Pop <s.pop@samsung.com>
5237         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5238         case of a return statement in scop.
5240 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5241             Sebastian Pop <s.pop@samsung.com>
5243         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5244         INTEGER_TYPE parameters.
5245         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5246         VECTOR_CST in scan_tree_for_params.
5247         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5249 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5251         * gimple-pretty-print.h: Don't include pretty-print.h.
5252         * tree-streamer.h: Don't include lto-streamer.h.
5253         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5254         * gimple-streamer-in.c: Remove redundant includes.
5255         * gimple-streamer-out.c: Likewise.
5256         * ipa-devirt.c: Likewise.
5257         * ipa-icf.c: Likewise.
5258         * ipa-inline-analysis.c: Likewise.
5259         * ipa-polymorphic-call.c: Likewise.
5260         * ipa-profile.c: Likewise.
5261         * ipa-prop.c: Likewise.
5262         * ipa-pure-const.c: Likewise.
5263         * lto-cgraph.c: Likewise.
5264         * lto-streamer-in.c: Likewise.
5265         * lto-streamer-out.c: Likewise.
5266         * lto-streamer.c: Likewise.
5267         * tree-streamer-in.c: Likewise.
5268         * tree-streamer-out.c: Likewise.
5269         * tree-streamer.c: Likewise.
5271 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5273         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5274         include input.h.
5275         * opts.c: Remove multiline #include comment.
5277 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
5279         * config/nvptx/mkoffload.c (process): Add C++ protection to
5280         emitted code.
5282 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5284         PR target/66854
5285         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5286         null before IEEE 128-bit floating point support patch.
5288 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5290         * simplify-rtx.c (simplify_ternary_operation): Add simplification
5291         for (!c) != {0,...,0} ? a : b for vector modes.
5293 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
5294             Martin Jambor  <mjambor@suse.cz>
5296         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5297         struct func_body_info* instead of struct ipa_node_params*, expecting
5298         fbi->info to be filled in.  Replace throughout.  Adjust call to
5299         ipa_load_from_parm_agg.
5300         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5301         instead of struct ipa_node_params*.  Adjust calls to other functions
5302         so that they pass either fbi or fbi->info.
5303         (set_switch_stmt_execution_predicate): Likewise.
5304         (will_be_nonconstant_predicate): Likewise.
5305         (compute_bb_predicates): Likewise.
5306         (estimate_function_body_sizes): Move asserts earlier.  Fill in
5307         struct func_body_info, replace parms_info with fbi.info.  Adjust
5308         calls to functions that now accept struct func_body_info.
5309         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5310         (struct func_body_info): Likewise.
5311         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5312         remove static.  Adjust callers.
5313         (ipa_load_from_parm_agg): Remove.
5314         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5315         (func_body_info): Likewise.
5316         (ipa_load_from_parm_agg): Adjust prototype.
5318 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5320         * gensupport.c (rtx_handle_directive): Adjust.
5321         * read-rtl.c (apply_iterators): Take vector to add rtxs to
5322         instead of expr list rtx.
5323         (add_define_attr_for_define_subst): Likewise.
5324         (add_define_subst_attr): Likewise.
5325         (read_subst_mapping): Likewise.
5326         (read_rtx): Likewise.
5327         * rtl.h (read_rtx): Adjust.
5329 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5331         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5333 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5335         PR target/58066
5336         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5337         (*tls_local_dynamic_base_64_<mode>): Ditto.
5338         (*tls_local_dynamic_base_64_largepic): Ditto.
5339         (tls_global_dynamic_64_<mode>): Update expander pattern.
5340         (tls_local_dynamic_base_64_<mode>): Ditto.
5342 2015-07-15  Richard Biener  <rguenther@suse.de>
5344         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5345         and bool_var == 1 -> bool_var simplifications ...
5346         * match.pd: ... to patterns here.  Factor out negate_expr_p
5347         cases from the A - B -> A + (-B) patterns as negate_expr_p
5348         predicate and add a -(A + B) -> (-B) - A pattern.
5350 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5352         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5354 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5355             Robert Suchanek  <robert.suchanek@imgtec.com>
5357         * config/mips/mips.c (mips_int_mask): New enum.
5358         (mips_shadow_set): Likewise.
5359         (int_mask): New variable.
5360         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5361         (machine_function): Add int_mask and use_shadow_register_set.
5362         (mips_attribute_table): Add attribute handlers for interrupt and
5363         use_shadow_register_set.
5364         (mips_interrupt_mask): New static function.
5365         (mips_handle_interrupt_attr): Likewise.
5366         (mips_handle_use_shadow_register_set_attr): Likewise.
5367         (mips_use_shadow_register_set): Change return type to enum
5368         mips_shadow_set.  Add argument handling for use_shadow_register_set
5369         attribute.
5370         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5371         compare with mips_shadow_set enum.
5372         (mips_compute_frame_info): Add interrupt mask and
5373         use_shadow_register_set to per-function information structure.
5374         Add a stack slot for EPC unconditionally.
5375         (mips_expand_prologue): Compare use_shadow_register_set value
5376         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
5377         masked interrupt register but in EIC mode use K0 and save Cause in K0.
5378         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
5379         copying the stack pointer from the shadow register set.
5380         * config/mips/mips.h (SR_IM0): New define.
5381         * config/mips/mips.md (mips_rdpgpr): Rename to...
5382         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
5383         * doc/extend.texi (Declaring Attributes of Functions): Document
5384         optional arguments for interrupt and use_shadow_register_set
5385         attributes.
5387 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5389         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5390         interrupt attribute.
5391         (mips_expand_prologue): Disable the floating point unit in an ISR.
5392         * config/mips/mips.h (SR_COP1): New define.
5394 2015-07-15  Richard Biener  <rguenther@suse.de>
5396         * genmatch.c (parser::peek, parser::peek_ident): Add argument
5397         to tell how many tokens to peek ahead (default 1).
5398         (parser::eat_token, parser::eat_ident): Return token consumed.
5399         (parser::parse_result): Parse new switch statement.
5400         * match.pd: Use case statements where appropriate.
5402 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5404         PR rtl-optimization/58066
5405         * calls.c (expand_call): Precompute register parameters before stack
5406         alignment is performed.
5408 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5410         PR rtl-optimization/66838
5411         * postreload.c (reload_cse_move2add): Also process
5412         CALL_INSN_FUNCTION_USAGE when resetting information of
5413         call-clobbered registers.
5415 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5416             Cesar Philippidis  <cesar@codesourcery.com>
5417             Chung-Lin Tang  <cltang@codesourcery.com>
5419         * config/nios2/constraints.md (U, v): New constraints.
5420         * config/nios2/predicates.md (rdprs_dcache_operand): New.
5421         (ldstex_memory_operand): New.
5422         * config/nios2/sync.md: New file.
5423         * config/nios2/nios2.md (unspecv): Add new builtin function
5424         UNSPECV codes.
5425         (rdprs, flushd, flushda, wrpie, eni): New patterns.
5426         (top-level): Include sync.md.
5427         * config/nios2/nios2.c (N2_FTYPES): Add function types for
5428         new builtins.
5429         (N2_BUILTINS): Add arch field setting, add new builtins.
5430         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5431         for arch field.
5432         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5433         Also handle ldex/stex/ldsex/stsex builtins.
5434         (nios2_expand_rdprs_builtin): New function.
5435         (nios2_expand_cache_builtin): New function.
5436         (nios2_expand_wrpie_builtin): New function.
5437         (nios2_expand_eni_builtin): New function.
5438         (nios2_expand_builtin): Add arch field handling and new builtin
5439         cases.
5440         * doc/extend.texi (Altera Nios II Built-in Functions): Document
5441         new builtins.
5442         * doc/md.texi (Machine Constraints): Document U and v constraints.
5444 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5445             Cesar Philippidis  <cesar@codesourcery.com>
5446             Chung-Lin Tang  <cltang@codesourcery.com>
5448         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5449         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5450         callee_save_reg_size and uses_anonymous_args fields.
5451         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5452         (nios2_create_cfa_notes): New function.
5453         (nios2_adjust_stack): New function for adjusting stack.
5454         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5455         Use nios2_adjust_stack.
5456         (nios2_expand_epilogue): Likewise.
5457         (nios2_expand_return): New function.
5458         (nios2_can_use_return_insn): Update for CDX pop.n usage.
5459         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5460         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5461         * config/nios2/nios2.md (return): Use nios2_expand_return.
5463 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5464             Cesar Philippidis  <cesar@codesourcery.com>
5465             Chung-Lin Tang  <cltang@codesourcery.com>
5467         * config/nios2/predicates.md (pop_operation): New.
5468         (ldwm_operation, stwm_operation): New.
5469         (nios2_hard_register_operand): New.
5470         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5471         (ldstwm_operation_p): Declare.
5472         (gen_ldstwm_peep): Declare.
5473         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5474         (base_reg_adjustment_p): New.
5475         (pop_operation_p): New.
5476         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5477         (nios2_ldstwm_regset_p): New.
5478         (ldstwm_operation_p): New.
5479         (gen_ldst): New.
5480         (nios2_ldst_parallel): New.
5481         (struct ldswm_operand): Declare.
5482         (compare_ldstwm_operands): New.
5483         (can_use_cdx_ldstw): New.
5484         (gen_ldstwm_peep): New.
5485         * config/nios2/nios2-ldstwm.sml: New.
5486         * config/nios2/nios2.md: Include ldstwm.md.
5487         * config/nios2/ldstwm.md: Generated.
5489 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5490             Cesar Philippidis  <cesar@codesourcery.com>
5491             Chung-Lin Tang  <cltang@codesourcery.com>
5493         * config/nios2/nios2.h (LABEL_ALIGN): Define.
5494         (REG_ALLOC_ORDER): Define.
5495         (ADJUST_REG_ALLOC_ORDER): Define.
5496         (HONOR_REG_ALLOC_ORDER): Define.
5497         (CDX_REG_P): Define.
5498         (ANDCLEAR_INT): Define.
5499         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5500         (nios2_label_align): Declare.
5501         (nios2_cdx_narrow_form_p): Declare.
5502         (nios2_adjust_reg_alloc_order): Declare.
5503         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5504         operation.
5505         (nios2_large_unspec_reloc_p): New function, split from...
5506         (nios2_legitimate_pic_operand_p): ...here.
5507         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5508         (nios2_print_operand_punct_valid_p): New.
5509         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
5510         (split_mem_address): New.
5511         (split_alu_insn): New.
5512         (cdxreg): New.
5513         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5514         (enum nios2_add_insn_kind): New.
5515         (nios2_add_insn_names, nios2_add_insn_narrow): New.
5516         (nios2_add_insn_classify): New.
5517         (nios2_add_insn_asm): New.
5518         (nios2_cdx_narrow_form_p): New.
5519         (label_align, min_labelno, max_labelno): New.
5520         (nios2_reorg): New.
5521         (nios2_label_align): New.
5522         (nios2_adjust_reg_alloc_order): New.
5523         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5524         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5525         * config/nios2/constraints.md (P): New constraint.
5526         * config/nios2/predicates.md (const_and_operand): New.
5527         (and_operand): New.
5528         (stack_memory_operand): New.
5529         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5530         (length): Update to use nios2_cdx_narrow_form_p().
5531         (type): Add new insn type values.
5532         (control, alu, st, ld, shift): Update insn reservations with
5533         new insn type values.
5534         (*high, *lo_sum): Define new insn patterns for constant generation.
5535         (movqi_internal, movhi_internal, movsi_internal): Reduce
5536         alternatives, update asm template to handle CDX variants, update
5537         type attributes.
5538         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5539         template, update type attributes.
5540         (extendhisi2, extendqi<mode>2): Likewise.
5541         (addsi3): Change to use function for asm string.
5542         (subsi3): Add CDX notation to asm template, update type attributes.
5543         (negsi3, one_cmplsi3): Likewise.
5544         (andsi3): New pattern, specialized from logical patterns.
5545         (<code>si3): Remove and case, combine alternatives, update asm
5546         template.
5547         (<shift_op>si3): Add CDX notation, update type attributes.
5548         (rotrsi3): Update type attribute.
5549         (*merge, extzv, insv): New insn patterns.
5550         (return): Change to define_expand.
5551         (simple_return): Add CDX notation, update type attributes.
5552         (indirect_jump): Add CDX notation.
5553         (jump): Update asm cases, update length attribute expression.
5554         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5555         (nios2_cbranch): Update asm cases and length attribute expression
5556         to handle CDX variants.
5557         (nios2_cmp<code>): Update asm template.
5558         (nop): Add CDX notation, update type attributes.
5559         (trap): Add CDX notation.
5560         (ctrapsi4): Update asm cases and length attribute expression to
5561         handle CDX variant.
5562         * doc/md.texi (Machine Constraints): Document P constraint.
5564 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5565             Cesar Philippidis  <cesar@codesourcery.com>
5566             Chung-Lin Tang  <cltang@codesourcery.com>
5568         * config/nios2/nios2.h (SMALL_INT12): New macro.
5569         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5570         (nios2_valid_addr_expr_p): Use it.
5571         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5572         with implicit "io" instructions on R2.
5573         * config/nios2/constraints.md (w): New constraint.
5574         * config/nios2/predicates.md (ldstio_memory_operand): New.
5575         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5576         operand predicate and constraint.
5577         (ld<bh>io_signed, st<bhw>io>): Likewise.
5578         * doc/md.texi (Machine Constraints): Document w constraint.
5580 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5581             Cesar Philippidis  <cesar@codesourcery.com>
5582             Chung-Lin Tang  <cltang@codesourcery.com>
5584         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
5585         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5586         Nios II architecture level.
5587         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5588         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5589         (OPTION_DEFAULT_SPECS): Define.
5590         (ASM_SPEC): Add -march= spec strings.
5591         * config/nios2/nios2.c (nios2_option_override): Check for
5592         conflicts involving new options.
5593         * config.gcc (nios2*-*-*): Support --with-arch=.
5594         * doc/invoke.texi (Option Summary, Nios II Options): Document
5595         -march=, -mbmx, and -mcdx.
5597 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
5599         PR rtl-optimization/66626
5600         * lra-constraints.c (lra_constraints): Prevent equivalence
5601         substitution for static chain pseudo in functions with nonlocal
5602         goto.
5604 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5606         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5607         (nios2_emit_stack_limit_check): Add size parameter.  Handle
5608         -fstack-limit-symbol as well as -fstack-limit-register.
5609         (nios2_expand_prologue): Emit only a single stack limit check,
5610         even if multiple stack adjustments are required.
5611         (nios2_option_override): Diagnose unsupported combination of -fpic
5612         and -stack-limit-symbol.
5614 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
5616         * Makefile.in (top_srcdir): New.
5617         * configure.ac: Use AM_ZLIB.
5618         * configure: Regeneated.
5620 2015-07-14  Matthias Klose  <doko@ubuntu.com>
5622         PR target/66840
5623         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
5625 2015-07-14  Richard Biener  <rguenther@suse.de>
5627         PR tree-optimization/66863
5628         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
5629         what we record for conversion use stmt lhs inequalities.
5631 2015-07-14  Richard Biener  <rguenther@suse.de>
5633         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
5634         (decision_tree::gen_gimple): Likewise.
5636 2015-07-14  Tom de Vries  <tom@codesourcery.com>
5638         * gcc.c (greater_than_spec_func): Declare forward.
5639         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
5640         -ftree-parallelize-loops={0,1}.
5641         (static_spec_functions): Add greater_than_spec_func function with name
5642         "gt".
5643         (greater_than_spec_func): New function.
5645 2015-07-14  Richard Biener  <rguenther@suse.de>
5647         * tree-ssa-dom.c (record_temporary_equivalences): Merge
5648         wideing type conversion case from record_equivalences_from_incoming_edge
5649         and use record_equality to record equivalences.
5650         (record_equivalences_from_incoming_edge): Call
5651         record_temporary_equivalences.
5653 2015-07-14  Richard Biener  <rguenther@suse.de>
5655         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
5656         (struct if_expr): New.
5657         (struct with_expr): Likewise.
5658         (is_a_helper): Add helpers for if_expr and with_expr.
5659         (struct simplify): Add simplify_kind enum and member.  Remove
5660         ifexpr_vec member.
5661         (simplify::simplify): Adjust.
5662         (lower_commutative): Adjust.
5663         (lower_opt_convert): Likewise.
5664         (lower_cond): Likewise.
5665         (replace_id): Handle with_expr and if_expr.
5666         (lower_for): Adjust.
5667         (dt_simplify::gen_1): New recursive worker, split out from ...
5668         (dt_simplify::gen): ... here.  Deal with if and with expansion
5669         recursively.
5670         (capture_info::capture_info): Take context argument
5671         (capture_info::walk_result): Only analyze specific result.
5672         (parser::parse_result): New function.
5673         (parser::parse_simplify): Adjust to parse ifs with then end
5674         else case.
5675         (parser::parse_if): Simplify.
5676         (parser::parse_pattern): Pass down simplify kind.
5677         * match.pd: Convert if structure to new syntax.
5679 2015-07-13  Marek Polacek  <polacek@redhat.com>
5681         * rtl.c (rtx_equal_p_cb): Fix typo.
5683 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
5685         * omega.h: Don't include config.h, don't include params.h again if
5686         omega.h has already been included.
5687         * graphite-poly.h: Include sese.h.
5688         * graphite.c: Don't include sese.h, remove needless includes and
5689         minimize includes outside #ifdef HAVE_isl block.
5690         * graphite-blocking.c: Don't include sese.h, remove needless includes,
5691         and wrap entire file in #ifdef HAVE_isl
5692         * graphite-dependences.c: Likewise.
5693         * graphite-interchange.c: Likewise.
5694         * graphite-isl-ast-to-gimple.c: Likewise.
5695         * graphite-optimize-isl.c: Likewise.
5696         * graphite-poly.c: Likewise.
5697         * graphite-scop-detection.c: Likewise.
5698         * graphite-sese-to-poly.c: Likewise.
5700 2015-07-13  Tom de Vries  <tom@codesourcery.com>
5702         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
5704 2015-07-13  Renlin Li  <renlin.li@arm.com>
5706         PR rtl/66556
5707         * simplify-rtx.c (simplify_const_relational_operation): Add
5708         side_effects_p checks.
5710 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
5712         * bitmap.h: Fix double word typos.
5713         * builtins.c: Same.
5714         * calls.c: Same.
5715         * cfgloopmanip.c: Same.
5716         * cgraph.c: Same.
5717         * cgraph.h: Same.
5718         * cgraphclones.c: Same.
5719         * combine.c: Same.
5720         * config/aarch64/aarch64-protos.h: Same.
5721         * config/aarch64/aarch64.c: Same.
5722         * config/aarch64/aarch64.md: Same.
5723         * config/arm/arm.md: Same.
5724         * config/arm/arm1020e.md: Same.
5725         * config/arm/arm1026ejs.md: Same.
5726         * config/arm/arm926ejs.md: Same.
5727         * config/arm/fa526.md: Same.
5728         * config/arm/fa606te.md: Same.
5729         * config/arm/fa626te.md: Same.
5730         * config/arm/fa726te.md: Same.
5731         * config/arm/fmp626.md: Same.
5732         * config/darwin.c: Same.
5733         * config/epiphany/epiphany.c: Same.
5734         * config/frv/frv.c: Same.
5735         * config/ft32/ft32.c: Same.
5736         * config/gnu-user.h: Same.
5737         * config/h8300/constraints.md: Same.
5738         * config/i386/i386.c: Same.
5739         * config/i386/i386.md: Same.
5740         * config/iq2000/iq2000.md: Same.
5741         * config/mips/mips.c: Same.
5742         * config/mmix/mmix.md: Same.
5743         * config/moxie/moxie.c: Same.
5744         * config/nds32/nds32.md: Same.
5745         * config/pa/pa.h: Same.
5746         * config/rs6000/aix.h: Same.
5747         * config/rs6000/rs6000.h: Same.
5748         * config/sh/sh.c: Same.
5749         * config/tilegx/tilegx.md: Same.
5750         * config/tilepro/gen-mul-tables.cc: Same.
5751         * cse.c: Same.
5752         * dbxout.c: Same.
5753         * doc/invoke.texi: Same.
5754         * dse.c: Same.
5755         * dwarf2out.c: Same.
5756         * final.c: Same.
5757         * gcc.c: Same.
5758         * genmatch.c: Same.
5759         * gimplify.c: Same.
5760         * hash-table.h: Same.
5761         * internal-fn.c: Same.
5762         * ipa-cp.c: Same.
5763         * ipa-devirt.c: Same.
5764         * ipa-icf.c: Same.
5765         * ipa-icf.h: Same.
5766         * ipa-profile.c: Same.
5767         * ipa-prop.c: Same.
5768         * ipa-prop.h: Same.
5769         * ira.c: Same.
5770         * omp-low.c: Same.
5771         * reg-stack.c: Same.
5772         * regcprop.c: Same.
5773         * reorg.c: Same.
5774         * rtl.h: Same.
5775         * sbitmap.h: Same.
5776         * tree-eh.c: Same.
5777         * tree-inline.c: Same.
5778         * tree-sra.c: Same.
5779         * tree-ssa-dom.c: Same.
5780         * tree-ssa-loop-ivopts.c: Same.
5781         * tree-ssa-structalias.c: Same.
5782         * tree-ssa-tail-merge.c: Same.
5783         * tree-ssa-ter.c: Same.
5784         * tree-ssa-threadupdate.c: Same.
5785         * tree-ssa-uninit.c: Same.
5786         * tree-ssanames.c: Same.
5787         * tree-vect-loop-manip.c: Same.
5788         * tree-vrp.c: Same.
5789         * tree.c: Same.
5790         * valtrack.c: Same.
5791         * vec.h: Same.
5793 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5795         PR middle-end/66726
5796         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
5797         tree_ssa_phiopt_worker): Call it.
5799 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5801         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
5802         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
5803         REG_EQUAL note.
5805 2015-07-11  Marek Polacek  <polacek@redhat.com>
5807         PR middle-end/66353
5808         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
5809         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
5810         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
5811         rather than bb_has_abnormal_call_pred.
5812         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
5813         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
5814         rather than bb_has_abnormal_call_pred.
5816 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
5818         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5819         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
5820         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5821         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
5822         v850_legitimate_address_p): New functions.
5823         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5825 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
5827         PR target/66819
5828         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
5829         indirect sibcall with register arguments if register available
5830         for argument passing.
5831         (init_cumulative_args): Set cfun->machine->arg_reg_available
5832         to (cum->nregs > 0) or to true if function has a variable
5833         argument list.
5834         (function_arg_advance_32): Set cfun->machine->arg_reg_available
5835         to false if cum->nregs <= 0.
5836         * config/i386/i386.h (machine_function): Add arg_reg_available.
5838 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
5840         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
5841         and gen_higpart instead of gen_rtx_SUBREG.
5842         * config/i386/i386.md
5843         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
5844         (read-modify peephole2): Use gen_lowpart instead of
5845         gen_rtx_SUBREG for operand 5.
5847 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
5849         * config/tilepro/gen-mul-tables.cc (main): Change include list for
5850         generated files.
5851         * config/tilepro/mul-tables.c: Regenerate.
5852         * config/tilegx/mul-tables.c: Regenerate.
5854 2015-07-10  Richard Biener  <rguenther@suse.de>
5856         * fold-const.c (distribute_bit_expr): Remove.
5857         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
5858         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
5859         to A & (B | C) and simplifying A << C1 << C2 to ...
5860         * match.pd: ... patterns here.
5862 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
5864         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5865         Mark mem as READONLY and NOTRAP for PIC symbol.
5867 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
5869         * gimple-predict.h: New file.
5870         (gimple_predict_predictor, gimple_predict_set_predictor,
5871         gimple_predict_outcome, gimple_predict_set_outcome,
5872         gimple_build_predict): Relocate here.
5873         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
5874         gimple_predict_outcome, gimple_predict_set_outcome): Move to
5875         gimple-predict.h.
5876         * gimple.c (gimple_build_predict): Move to gimple-predict.h
5877         * basic-block.h: Don't include cfghooks.h.
5878         * backend.h: Don't include predict.h.
5879         * cfghooks.h: Include predict.h.
5880         * gimple-pretty-print.c: Include gimple-predict.h.
5881         * gimplify.c: Likwise.
5882         * predict.c: Adjust includes.
5883         * tree-inline.c: Likewise.
5884         * asan.c: Likewise.
5885         * auto-inc-dec.c: Likewise.
5886         * auto-profile.c: Likewise.
5887         * bb-reorder.c: Likewise.
5888         * builtins.c: Likewise.
5889         * caller-save.c: Likewise.
5890         * calls.c: Likewise.
5891         * cfganal.c: Likewise.
5892         * cfgbuild.c: Likewise.
5893         * cfg.c: Likewise.
5894         * cfgcleanup.c: Likewise.
5895         * cfgexpand.c: Likewise.
5896         * cfghooks.c: Likewise.
5897         * cfgloopanal.c: Likewise.
5898         * cfgloop.c: Likewise.
5899         * cfgloopmanip.c: Likewise.
5900         * cfgrtl.c: Likewise.
5901         * cgraph.c: Likewise.
5902         * cgraphunit.c: Likewise.
5903         * combine.c: Likewise.
5904         * cprop.c: Likewise.
5905         * cse.c: Likewise.
5906         * dce.c: Likewise.
5907         * dojump.c: Likewise.
5908         * dse.c: Likewise.
5909         * except.c: Likewise.
5910         * expmed.c: Likewise.
5911         * expr.c: Likewise.
5912         * final.c: Likewise.
5913         * fold-const.c: Likewise.
5914         * function.c: Likewise.
5915         * fwprop.c: Likewise.
5916         * gcc-plugin.h: Likewise.
5917         * gcse.c: Likewise.
5918         * genattrtab.c: Likewise.
5919         * genemit.c: Likewise.
5920         * gengtype.c: Likewise.
5921         * genopinit.c: Likewise.
5922         * genoutput.c: Likewise.
5923         * genpreds.c: Likewise.
5924         * genrecog.c: Likewise.
5925         * gimple-fold.c: Likewise.
5926         * gimple-iterator.c: Likewise.
5927         * gimple-ssa-isolate-paths.c: Likewise.
5928         * gimple-ssa-strength-reduction.c: Likewise.
5929         * graph.c: Likewise.
5930         * graphite-blocking.c: Likewise.
5931         * graphite.c: Likewise.
5932         * graphite-dependences.c: Likewise.
5933         * graphite-interchange.c: Likewise.
5934         * graphite-isl-ast-to-gimple.c: Likewise.
5935         * graphite-optimize-isl.c: Likewise.
5936         * graphite-poly.c: Likewise.
5937         * graphite-scop-detection.c: Likewise.
5938         * graphite-sese-to-poly.c: Likewise.
5939         * haifa-sched.c: Likewise.
5940         * ifcvt.c: Likewise.
5941         * internal-fn.c: Likewise.
5942         * ipa-cp.c: Likewise.
5943         * ipa-profile.c: Likewise.
5944         * ipa-split.c: Likewise.
5945         * ipa-utils.c: Likewise.
5946         * ira-build.c: Likewise.
5947         * ira-color.c: Likewise.
5948         * ira-conflicts.c: Likewise.
5949         * ira-costs.c: Likewise.
5950         * ira-emit.c: Likewise.
5951         * ira-lives.c: Likewise.
5952         * jump.c: Likewise.
5953         * loop-doloop.c: Likewise.
5954         * loop-init.c: Likewise.
5955         * loop-invariant.c: Likewise.
5956         * loop-unroll.c: Likewise.
5957         * lower-subreg.c: Likewise.
5958         * lra-assigns.c: Likewise.
5959         * lra.c: Likewise.
5960         * lra-coalesce.c: Likewise.
5961         * lra-constraints.c: Likewise.
5962         * lra-lives.c: Likewise.
5963         * lto-cgraph.c: Likewise.
5964         * lto-streamer-in.c: Likewise.
5965         * mode-switching.c: Likewise.
5966         * modulo-sched.c: Likewise.
5967         * omp-low.c: Likewise.
5968         * optabs.c: Likewise.
5969         * passes.c: Likewise.
5970         * postreload.c: Likewise.
5971         * postreload-gcse.c: Likewise.
5972         * profile.c: Likewise.
5973         * recog.c: Likewise.
5974         * regstat.c: Likewise.
5975         * reload1.c: Likewise.
5976         * reorg.c: Likewise.
5977         * rtlanal.c: Likewise.
5978         * sched-ebb.c: Likewise.
5979         * sel-sched-ir.c: Likewise.
5980         * sese.c: Likewise.
5981         * shrink-wrap.c: Likewise.
5982         * simplify-rtx.c: Likewise.
5983         * stmt.c: Likewise.
5984         * store-motion.c: Likewise.
5985         * tracer.c: Likewise.
5986         * trans-mem.c: Likewise.
5987         * tree-call-cdce.c: Likewise.
5988         * tree-cfg.c: Likewise.
5989         * tree-cfgcleanup.c: Likewise.
5990         * tree-chkp.c: Likewise.
5991         * tree-complex.c: Likewise.
5992         * tree-eh.c: Likewise.
5993         * tree-if-conv.c: Likewise.
5994         * tree-loop-distribution.c: Likewise.
5995         * tree-outof-ssa.c: Likewise.
5996         * tree-parloops.c: Likewise.
5997         * tree-predcom.c: Likewise.
5998         * tree-pretty-print.c: Likewise.
5999         * tree-profile.c: Likewise.
6000         * tree-sra.c: Likewise.
6001         * tree-ssa.c: Likewise.
6002         * tree-ssa-coalesce.c: Likewise.
6003         * tree-ssa-dce.c: Likewise.
6004         * tree-ssa-dom.c: Likewise.
6005         * tree-ssa-forwprop.c: Likewise.
6006         * tree-ssa-ifcombine.c: Likewise.
6007         * tree-ssa-loop-ch.c: Likewise.
6008         * tree-ssa-loop-im.c: Likewise.
6009         * tree-ssa-loop-ivcanon.c: Likewise.
6010         * tree-ssa-loop-ivopts.c: Likewise.
6011         * tree-ssa-loop-manip.c: Likewise.
6012         * tree-ssa-loop-prefetch.c: Likewise.
6013         * tree-ssa-loop-unswitch.c: Likewise.
6014         * tree-ssa-math-opts.c: Likewise.
6015         * tree-ssa-phiopt.c: Likewise.
6016         * tree-ssa-pre.c: Likewise.
6017         * tree-ssa-reassoc.c: Likewise.
6018         * tree-ssa-sink.c: Likewise.
6019         * tree-ssa-tail-merge.c: Likewise.
6020         * tree-ssa-threadedge.c: Likewise.
6021         * tree-ssa-threadupdate.c: Likewise.
6022         * tree-switch-conversion.c: Likewise.
6023         * tree-tailcall.c: Likewise.
6024         * tree-vect-data-refs.c: Likewise.
6025         * tree-vect-loop.c: Likewise.
6026         * tree-vect-loop-manip.c: Likewise.
6027         * tree-vectorizer.c: Likewise.
6028         * tree-vrp.c: Likewise.
6029         * ubsan.c: Likewise.
6030         * value-prof.c: Likewise.
6031         * varasm.c: Likewise.
6032         * var-tracking.c: Likewise.
6033         * config/aarch64/aarch64-builtins.c: Likewise.
6034         * config/aarch64/aarch64.c: Likewise.
6035         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6036         * config/alpha/alpha.c: Likewise.
6037         * config/arc/arc.c: Likewise.
6038         * config/arm/arm.c: Likewise.
6039         * config/avr/avr.c: Likewise.
6040         * config/bfin/bfin.c: Likewise.
6041         * config/c6x/c6x.c: Likewise.
6042         * config/cr16/cr16.c: Likewise.
6043         * config/cris/cris.c: Likewise.
6044         * config/darwin.c: Likewise.
6045         * config/darwin-c.c: Likewise.
6046         * config/epiphany/epiphany.c: Likewise.
6047         * config/epiphany/mode-switch-use.c: Likewise.
6048         * config/epiphany/resolve-sw-modes.c: Likewise.
6049         * config/fr30/fr30.c: Likewise.
6050         * config/frv/frv.c: Likewise.
6051         * config/ft32/ft32.c: Likewise.
6052         * config/h8300/h8300.c: Likewise.
6053         * config/i386/i386.c: Likewise.
6054         * config/i386/winnt.c: Likewise.
6055         * config/ia64/ia64.c: Likewise.
6056         * config/iq2000/iq2000.c: Likewise.
6057         * config/lm32/lm32.c: Likewise.
6058         * config/m32c/m32c.c: Likewise.
6059         * config/m32r/m32r.c: Likewise.
6060         * config/m68k/m68k.c: Likewise.
6061         * config/mcore/mcore.c: Likewise.
6062         * config/mep/mep.c: Likewise.
6063         * config/microblaze/microblaze.c: Likewise.
6064         * config/mips/mips.c: Likewise.
6065         * config/mmix/mmix.c: Likewise.
6066         * config/mn10300/mn10300.c: Likewise.
6067         * config/moxie/moxie.c: Likewise.
6068         * config/msp430/msp430.c: Likewise.
6069         * config/nds32/nds32.c: Likewise.
6070         * config/nds32/nds32-cost.c: Likewise.
6071         * config/nds32/nds32-fp-as-gp.c: Likewise.
6072         * config/nds32/nds32-intrinsic.c: Likewise.
6073         * config/nds32/nds32-isr.c: Likewise.
6074         * config/nds32/nds32-md-auxiliary.c: Likewise.
6075         * config/nds32/nds32-memory-manipulation.c: Likewise.
6076         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6077         * config/nds32/nds32-predicates.c: Likewise.
6078         * config/nios2/nios2.c: Likewise.
6079         * config/nvptx/nvptx.c: Likewise.
6080         * config/pa/pa.c: Likewise.
6081         * config/pdp11/pdp11.c: Likewise.
6082         * config/rl78/rl78.c: Likewise.
6083         * config/rs6000/rs6000.c: Likewise.
6084         * config/rx/rx.c: Likewise.
6085         * config/s390/s390.c: Likewise.
6086         * config/sh/sh.c: Likewise.
6087         * config/sh/sh-mem.cc: Likewise.
6088         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6089         * config/sh/sh_treg_combine.cc: Likewise.
6090         * config/sparc/sparc.c: Likewise.
6091         * config/spu/spu.c: Likewise.
6092         * config/stormy16/stormy16.c: Likewise.
6093         * config/tilegx/tilegx.c: Likewise.
6094         * config/tilepro/tilepro.c: Likewise.
6095         * config/v850/v850.c: Likewise.
6096         * config/vax/vax.c: Likewise.
6097         * config/visium/visium.c: Likewise.
6098         * config/xtensa/xtensa.c: Likewise.
6100 2015-07-10  Richard Biener  <rguenther@suse.de>
6102         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6103         (decision_tree::gen_gimple): Likewise.
6104         (decision_tree::gen_generic): Likewise.
6106 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6108         PR target/66813
6109         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6110         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6112 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
6114         PR middle-end/66820
6115         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6116         or ORT_TASK contexts.
6117         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6118         is non-zero.
6120 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6122         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6123         above function.
6125 2015-07-10  Tom de Vries  <tom@codesourcery.com>
6127         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6128         insert nit + 1 bound.
6130 2015-07-10  Richard Biener  <rguenther@suse.de>
6132         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6133         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6134         (if_convertible_loop_p_1): For this always compute bb predicates.
6135         (if_convertible_loop_p): And free them.
6137 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6139         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6140         in dump message.
6142 2015-07-10  Richard Biener  <rguenther@suse.de>
6144         PR tree-optimization/66823
6145         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6146         inverted predicate.
6148 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
6150         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6151         to handle mips[32|64]r3 and mips[32|64]r5.
6153 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
6155         PR middle-end/66633
6156         * tree-nested.c (get_static_chain): Or in a flag into
6157         info->static_chain_added.
6158         (get_frame_field, get_nonlocal_debug_decl): Likewise.
6159         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6160         2015-07-01 changes.
6161         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6162         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6163         add it to clauses.
6165         PR tree-optimization/66718
6166         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6167         field.
6168         (vect_simd_lane_linear): New function.
6169         (vectorizable_simd_clone_call): Support using linear arguments for
6170         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6172 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6174         PR target/66821
6175         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6177 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6179         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6180         Use machine mode, not enum machine_mode in the prototype.
6182         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6183         classify 128-bit floating point support.
6184         (FLOAT128_IBM_P): Likewise.
6185         (FLOAT128_VECTOR_P): Likewise.
6186         (FLOAT128_2REG_P): Likewise.
6187         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6188         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6189         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6190         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6192         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6193         tests against TFmode/TDmode, since those modes do not use VSX
6194         addresses.
6195         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6196         support.
6197         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6198         tests against TFmode, etc.
6199         (invalid_e500_subreg): Add tests against IFmode/KFmode.
6200         (reg_offset_addressing_ok_p): Likewise.
6201         (rs6000_legitimate_offset_address_p): Likewise.
6202         (rs6000_legitimize_address): Likewise.
6203         (rs6000_legitimize_reload_address): Likewise.
6204         (rs6000_legitimate_address_p): Clean up tests against TFmode and
6205         TDmode to use the new helper macros, which will include IFmode and
6206         KFmode.
6207         (rs6000_emit_move): Likewise.
6208         (rs6000_darwin64_record_arg_recurse): Likewise.
6209         (print_operand): Likewise.
6210         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6211         that uses a single vector register as a vector and not as a
6212         floating point register in terms of the calling sequence.
6213         (rs6000_discover_homogeneous_aggregate): Likewise.
6214         (rs6000_return_in_memory): Likewise.
6215         (init_cumulative_args): Likewise.
6216         (rs6000_function_arg_boundary): Likewise.
6217         (rs6000_function_arg_advance_1): Likewise.
6218         (rs6000_function_arg): Likewise.
6219         (rs6000_pass_by_reference): Likewise.
6220         (rs6000_gimplify_va_arg): Likewise.
6221         (rs6000_secondary_reload_memory): Use machine_mode not enum
6222         machine mode.
6223         (rs6000_split_multireg_move): Use new helper macros.
6224         (spe_func_has_64bit_regs_p): Likewise.
6225         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6226         (output_toc): Use new helper macros.
6227         (rs6000_register_move_cost): Likewise.
6228         (rs6000_function_value): Add IEEE 128-bit floating point calling
6229         sequence support.
6230         (rs6000_libcall_value): Likewise.
6231         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6232         floating point support.
6233         (rs6000_vector_mode_supported_p): Likewise.
6235 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
6237         PR rtl-optimization/66782
6238         * lra-int.h (struct lra_insn_recog_data): Add comment about
6239         clobbered hard regs for arg_hard_regs.
6240         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6241         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6242         Add condition for processing used hard regs.
6243         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6244         Process clobbered hard regs.
6246 2015-07-09  Michael Matz  <matz@suse.de>
6248         * genmatch.c (fprintf_indent): New function.
6249         (operand::gen_transform): Add indent parameter.
6250         (expr::gen_transform, c_expr::gen_transform,
6251         capture::gen_transform): Ditto and use fprintf_indent.
6252         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6253         (dt_operand::gen, dt_operand::gen_predicate,
6254         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6255         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6256         (decision_tree::gen_gimple): Adjust calls and indent generated
6257         code.
6258         (decision_tree::gen_generic): Ditto.
6259         (write_predicate): Ditto.
6261 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6263         PR target/66814
6264         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6265         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6266         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6267         {GENERAL,SSE,MMX}_REG_P where appropriate.
6269 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6271         * lto-streamer.h: Don't include target.h and alloc-pool.h.
6272         * builtins.c: Adjust includes.
6273         * gimple.c: Likewise.
6274         * ipa-icf.c: Likewise.
6275         * lto-opts.c: Likewise.
6276         * ipa-reference.c: Likewise.
6277         * lto-section-out.c: Likewise.
6278         * lto-streamer-in.c: Likewise.
6279         * lto-streamer-out.c: Likewise.
6280         * opts-global.c: Likewise.
6281         * symtab.c: Likewise.
6282         * tree-chkp.c: Likewise.
6283         * tree-ssa-live.c: Likewise.
6284         * tree-streamer-in.c: Likewise.
6285         * tree-streamer-out.c: Likewise.
6286         * config/darwin.c: Likewise.
6287         * config/i386/winnt.c: Likewise.
6289 2015-07-09  Richard Biener  <rguenther@suse.de>
6291         * genmatch.c (struct expr): Add force_single_use flag.
6292         (expr::expr): Add copy constructor.
6293         (capture_info::walk_match): Gather force_single_use captures.
6294         (expr::gen_transform): Use possibly NULLified sequence.
6295         (dt_simplify::gen): Apply single-use restrictions by NULLifying
6296         seq if any constrained expr is not single-use.
6297         (parser::parse_expr): Refactor to allow multiple flags.  Handle
6298         's' flag to force an expression have a single-use if the pattern
6299         simplifies to more than one statement.
6300         * match.pd: Convert most single_use conditionals to :s flags.
6302 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6304         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6305         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6306         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6308 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6310         * flags.h: Don't include flag-types.h or options.h.
6311         * opts-common.c: Adjust includes.
6312         * opts-global.c: Likewise.
6313         * common/config/epiphany/epiphany-common.c: Likewise.
6315 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6317         PR target/66818
6318         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6319         for IA MCU.
6321 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6323         PR target/66817
6324         * config/i386/i386.c (ix86_return_in_memory): Return true
6325         if int_size_in_bytes returns negative for IA MCU.
6327 2015-07-09  Marek Polacek  <polacek@redhat.com>
6329         PR tree-optimization/66718
6330         * Makefile.in (OBJS): Add gimple-laddress.o.
6331         * passes.def: Schedule pass_laddress.
6332         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6333         * tree-pass.h (make_pass_laddress): Declare.
6334         * gimple-laddress.c: New file.
6336 2015-07-09  Richard Biener  <rguenther@suse.de>
6338         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6340 2015-07-09  Richard Biener  <rguenther@suse.de>
6342         PR tree-optimization/66807
6343         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6345 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
6347         * function.c (stack_protect_epilogue): Use if rather than switch for
6348         check targetm.have_stack_protect_test.
6350 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6352         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6353         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6354         * config/arc/arc.h: Likewise.
6355         * config/arm/arm.h: Likewise.
6356         * config/bfin/bfin.h: Likewise.
6357         * config/epiphany/epiphany.h: Likewise.
6358         * config/frv/frv.h: Likewise.
6359         * config/ia64/ia64.h: Likewise.
6360         * config/iq2000/iq2000.h: Likewise.
6361         * config/lm32/lm32.h: Likewise.
6362         * config/m32r/m32r.h: Likewise.
6363         * config/mcore/mcore.h: Likewise.
6364         * config/mep/mep.h: Likewise.
6365         * config/microblaze/microblaze.h: Likewise.
6366         * config/mips/mips.h: Likewise.
6367         * config/mmix/mmix.h: Likewise.
6368         * config/mn10300/mn10300.h: Likewise.
6369         * config/nds32/nds32.h: Likewise.
6370         * config/nios2/nios2.h: Likewise.
6371         * config/pa/pa.h: Likewise.
6372         * config/rl78/rl78.h: Likewise.
6373         * config/sh/sh.h: Likewise.
6374         * config/sparc/sparc.h: Likewise.
6375         * config/stormy16/stormy16.h: Likewise.
6376         * config/tilegx/tilegx.h: Likewise.
6377         * config/tilepro/tilepro.h: Likewise.
6378         * config/v850/v850.h: Likewise.
6379         * config/xtensa/xtensa.h: Likewise.
6380         * doc/tm.texi: Regenerate.
6381         * doc/tm.texi.in: Adjust.
6382         * combine.c (simplify_set): Likewise.
6383         (simplify_comparison): Likewise.
6384         * expr.c (store_constructor): Likewise.
6385         * internal-fn.c (expand_arith_overflow): Likewise.
6386         * reload.c (push_reload): Likewise.
6387         (find_reloads): Likewise.
6388         (find_reloads_subreg_address): Likewise.
6389         * reload1.c (eliminate_regs_1): Likewise.
6390         * rtlanal.c (nonzero_bits1): Likewise.
6391         (num_sign_bit_copies1): Likewise.
6392         * simplify-rtx.c (simplify_truncation): Likewise.
6394 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6396         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6397         of AUTO_INC_DEC with the preprocessor.
6398         * combine.c (combine_instructions): Likewise.
6399         (can_combine_p): Likewise.
6400         (try_combine): Likewise.
6401         * emit-rtl.c (try_split): Likewise.
6402         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6403         * lower-subreg.c (resolve_simple_move): Likewise.
6404         * lra.c (update_inc_notes): Likewise.
6405         * recog.c (asm_operand_ok): Likewise.
6406         (constrain_operands): Likewise.
6407         * regrename.c (scan_rtx_address): Likewise.
6408         * reload.c (update_auto_inc_notes): Likewise.
6409         (reg_inc_found_and_valid_p): Likewise.
6410         * reload1.c (reload): Likewise.
6411         (emit_input_reload_insns): Likewise.
6412         (delete_output_reload): Likewise.
6413         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6414         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6416 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6418         * rtl.h: Always define AUTO_INC_DEC.
6419         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6420         * combine.c (combine_instructions): Likewise.
6421         (can_combine_p): Likewise.
6422         (try_combine): Likewise.
6423         * emit-rtl.c (try_split): Likewise.
6424         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6425         * lower-subreg.c (resolve_simple_move): Likewise.
6426         * lra.c (update_inc_notes): Likewise.
6427         * recog.c (asm_operand_ok): Likewise.
6428         (constrain_operands): Likewise.
6429         * regrename.c (scan_rtx_address): Likewise.
6430         * reload.c (update_auto_inc_notes): Likewise.
6431         (find_equiv_reg): Likewise.
6432         * reload1.c (reload): Likewise.
6433         (reload_as_needed): Likewise.
6434         (choose_reload_regs): Likewise.
6435         (emit_input_reload_insns): Likewise.
6436         (delete_output_reload): Likewise.
6437         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6438         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6440 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6442         * combine.c (can_combine_def_p): Don't check the value of
6443         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6444         (combinable_i3pat): Likewise.
6445         (mark_used_regs_combine): Likewise.
6446         * regrename.c (rename_chains): Likewise.
6447         * reload.c (find_reloads_address): Likewise.
6448         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6450 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6452         * combine.c (update_rsp_from_reg_equal): Don't check if
6453         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6454         (reg_nonzero_bits_for_combine): Likewise.
6455         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6456         1.
6457         * config/frv/frv.h: Likewise.
6458         * config/lm32/lm32.h: Likewise.
6459         * config/mep/mep.h: Likewise.
6460         * config/mips/mips.h: Likewise.
6461         * config/rs6000/rs6000.h: Likewise.
6462         * config/sh/sh.h: Likewise.
6463         * config/tilegx/tilegx.h (enum reg_class): Likewise.
6464         * config/tilepro/tilepro.h: Likewise.
6465         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6466         * doc/tm.texi: Regenerate.
6467         * doc/tm.texi.in: Adjust.
6468         * rtlanal.c (nonzero_bits1): Likewise.
6470 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6472         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6473         with the preprocessor.
6474         (combine_instructions): Likewise.
6475         (try_combine): Likewise.
6476         (subst): Likewise.
6477         (distribute_notes): Likewise.
6479 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6481         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6482         defined.
6483         (simplify_set): Likewise.
6484         * cse.c (cse_insn): Likewise.
6485         * fold-const.c (fold_single_bit_test): Likewise.
6486         (fold_unary_loc): Likewise.
6487         * postreload.c (reload_cse_simplify_set): Likewise.
6488         (reload_cse_simplify_operands): Likewise.
6490 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
6492         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6493         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6495 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6497         PR target/66746
6498         * config/i386/x86intrin.h: Include <adxintrin.h> even if
6499         __iamcu__ is defined.
6501 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6503         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6505 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
6507         PR target/66523
6508         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6509         names from preservation.
6511 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6513         PR target/66806
6514         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6515         change for IAMCU.
6516         (function_arg_advance_32): Don't pass vectors in registers for
6517         IAMCU.
6518         (function_arg_32): Likewise.
6519         (ix86_return_in_memory): Don't return vectors in registers for
6520         IAMCU.
6522 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
6524         PR middle-end/66334
6525         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6526         hard regno live at the start of BB with incoming abnormal edges.
6527         * lra-lives.c (process_bb_lives): Ditto.
6529 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
6531         PR libgomp/65099
6532         * config/nvptx/mkoffload.c (main): Create an offload image only in
6533         64-bit configurations.
6535 2015-07-08  Martin Liska  <mliska@suse.cz>
6537         PR bootstrap/66744
6538         * tree-sra.c (create_access_1): Call ctor without brackets.
6539         (create_artificial_child_access): Likewise.
6541 2015-07-08  Richard Biener  <rguenther@suse.de>
6543         PR tree-optimization/66793
6544         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6545         Properly split the block after stmts ending it.
6547 2015-07-08  Richard Biener  <rguenther@suse.de>
6549         PR tree-optimization/66794
6550         * passes.c (execute_function_todo): Assert that post-dominators
6551         are not computed.
6552         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6553         Free post-dominators.
6555 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6557         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6558         with early exit.
6560 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6562         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6563         more than or equal 8 and less than 32 when optimizing for size.
6565 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6567         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6568         COSTS_N_INSNS (1) and increment it appropriately throughout the
6569         function.
6571 2015-07-08  Richard Biener  <rguenther@suse.de>
6573         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6575 2015-07-08  Alan Modra  <amodra@gmail.com>
6577         * target.def (rtx_costs): Remove "code" param, add "mode".
6578         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6579         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
6580         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6581         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
6582         call.  Track mode when given in rtx.
6583         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
6584         (default_address_cost): Pass Pmode to rtx_cost.
6585         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6586         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6587         with NULL set.
6588         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
6589         (notreg_cost): Add mode param.  Use it.
6590         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
6591         mode param and pass to set_src_cost.  Update all calls.
6592         (hash_scan_set): Formatting.
6593         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6594         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6595         * hooks.h: Ditto.
6596         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6597         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6598         emit_store_flag): Update set_src_cost and rtx_cost calls.
6599         * auto-inc-dec.c (attempt_change): Likewise.
6600         * calls.c (precompute_register_parameters): Likewise.
6601         * combine.c (expand_compound_operation, make_extraction,
6602         force_to_mode, distribute_and_simplify_rtx): Likewise.
6603         * dojump.c (prefer_and_bit_test): Likewise.
6604         * dse.c (find_shift_sequence): Likewise.
6605         * expr.c (compress_float_constant): Likewise.
6606         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6607         * ifcvt.c (noce_try_sign_mask): Likewise.
6608         * loop-doloop.c (doloop_optimize): Likewise.
6609         * loop-invariant.c (create_new_invariant): Likewise.
6610         * lower-subreg.c (shift_cost, compute_costs): Likewise.
6611         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6612         lshift_cheap_p): Likewise.
6613         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6614         try_replace_in_use, reload_cse_move2add): Likewise.
6615         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
6616         Likewise.
6617         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6618         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6619         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
6620         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6621         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
6622         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
6623         to rtx_cost calls.
6624         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
6625         * config/arc/arc.c (arc_rtx_costs): Likewise.
6626         * config/arm/arm.c (arm_rtx_costs): Likewise.
6627         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
6628         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6629         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6630         * config/cris/cris.c (cris_rtx_costs): Likewise.
6631         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
6632         * config/frv/frv.c (frv_rtx_costs): Likewise.
6633         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6634         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6635         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6636         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6637         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6638         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6639         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6640         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6641         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6642         * config/mep/mep.c (mep_rtx_cost): Likewise.
6643         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6644         * config/mips/mips.c (mips_rtx_costs): Likewise.
6645         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6646         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
6647         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
6648         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
6649         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
6650         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
6651         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
6652         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6653         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6654         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
6655         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6656         * config/s390/s390.c (s390_rtx_costs): Likewise.
6657         * config/sh/sh.c (sh_rtx_costs): Likewise.
6658         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6659         * config/spu/spu.c (spu_rtx_costs): Likewise.
6660         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6661         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
6662         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
6663         * config/v850/v850.c (v850_rtx_costs): Likewise.
6664         * config/vax/vax.c (vax_rtx_costs): Likewise.
6665         * config/visium/visium.c (visium_rtx_costs): Likewise.
6666         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6667         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
6668         "code" param, and pass as outer_code to first rtx_cost call.  Pass
6669         mode to rtx_cost calls.
6670         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
6671         calls.
6672         (aarch64_rtx_costs_wrapper): Update.
6673         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
6674         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
6675         rtx_cost calls.
6676         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
6677         and rtx_cost calls.
6678         (avr_operand_rtx_cost): Similarly.
6679         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
6680         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
6681         * config/mips/mips.c (mips_stack_address_p): Comment typo.
6682         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
6683         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
6684         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
6685         rtx_cost.
6686         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
6687         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
6688         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
6689         * doc/tm.texi: Regenerate.
6691 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
6693         * tree-core.h: Include symtab.h.
6694         * rtl.h: Include hard-reg-set.h but not flags.h.
6695         (HARD_CONST): Remove condition compilation involving HARD_CONST since
6696         hard-reg-set.h is always included.
6697         * regs.h: Don't include hard-reg-set.h or rtl.h.
6698         * cfg.h: Include dominance.h.
6699         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
6700         * backend.h: New.  Aggregate commonly used backend header files.
6701         * gimple-ssa.h: Don't include tree-hasher.h.
6702         * ssa.h: New.  Aggregate commonly used SSA header files.
6703         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
6704         * sel-sched-ir.h: Flatten includes.
6705         * lra-int.h: Flatten completely.
6706         * sel-sched-dump.h: Flatten includes.
6707         * ira-int.h: Flatten includes.
6708         * gimple-streamer.h: Remove all includes.
6709         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
6710         * resource.h: Flatten hard-reg-set.h and df.h.
6711         * sched-int.h: Flatten insn-arrt.h and df.h.
6712         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
6713         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
6714         * genattrtab.c (write_header): Adjust generated includes.
6715         * genautomata.c (main): Likewise.
6716         * genconditions.c (write-header): Likewise.
6717         * genemit.c (main): Likewise.
6718         * gengtype.c (open_base_files): Likewise.
6719         * genopinit.c (main): Likewise.
6720         * genoutput.c (output_prologue): Likewise.
6721         * genpeep.c (main): Likewise.
6722         * genpreds.c (write_insn_preds_c): Likewise.
6723         * genrecog.c (write_header): Likewise.
6724         * alias.c: Adjust includes.
6725         * asan.c: Likewise.
6726         * attribs.c: Likewise.
6727         * auto-inc-dec.c: Likewise.
6728         * auto-profile.c: Likewise.
6729         * bb-reorder.c: Likewise.
6730         * bt-load.c: Likewise.
6731         * builtins.c: Likewise.
6732         * caller-save.c: Likewise.
6733         * calls.c: Likewise.
6734         * ccmp.c: Likewise.
6735         * cfg.c: Likewise.
6736         * cfganal.c: Likewise.
6737         * cfgbuild.c: Likewise.
6738         * cfgcleanup.c: Likewise.
6739         * cfgexpand.c: Likewise.
6740         * cfghooks.c: Likewise.
6741         * cfgloop.c: Likewise.
6742         * cfgloopanal.c: Likewise.
6743         * cfgloopmanip.c: Likewise.
6744         * cfgrtl.c: Likewise.
6745         * cgraph.c: Likewise.
6746         * cgraphbuild.c: Likewise.
6747         * cgraphclones.c: Likewise.
6748         * cgraphunit.c: Likewise.
6749         * cilk-common.c: Likewise.
6750         * combine-stack-adj.c: Likewise.
6751         * combine.c: Likewise.
6752         * compare-elim.c: Likewise.
6753         * convert.c: Likewise.
6754         * coverage.c: Likewise.
6755         * cppbuiltin.c: Likewise.
6756         * cprop.c: Likewise.
6757         * cse.c: Likewise.
6758         * cselib.c: Likewise.
6759         * data-streamer-in.c: Likewise.
6760         * data-streamer-out.c: Likewise.
6761         * data-streamer.c: Likewise.
6762         * dbxout.c: Likewise.
6763         * dce.c: Likewise.
6764         * ddg.c: Likewise.
6765         * debug.c: Likewise.
6766         * df-core.c: Likewise.
6767         * df-problems.c: Likewise.
6768         * df-scan.c: Likewise.
6769         * dfp.c: Likewise.
6770         * dojump.c: Likewise.
6771         * dominance.c: Likewise.
6772         * domwalk.c: Likewise.
6773         * double-int.c: Likewise.
6774         * dse.c: Likewise.
6775         * dumpfile.c: Likewise.
6776         * dwarf2asm.c: Likewise.
6777         * dwarf2cfi.c: Likewise.
6778         * dwarf2out.c: Likewise.
6779         * emit-rtl.c: Likewise.
6780         * et-forest.c: Likewise.
6781         * except.c: Likewise.
6782         * explow.c: Likewise.
6783         * expmed.c: Likewise.
6784         * expr.c: Likewise.
6785         * final.c: Likewise.
6786         * fixed-value.c: Likewise.
6787         * fold-const.c: Likewise.
6788         * function.c: Likewise.
6789         * fwprop.c: Likewise.
6790         * gcc-plugin.h: Likewise.
6791         * gcse-common.c: Likewise.
6792         * gcse.c: Likewise.
6793         * generic-match-head.c: Likewise.
6794         * ggc-page.c: Likewise.
6795         * gimple-builder.c: Likewise.
6796         * gimple-expr.c: Likewise.
6797         * gimple-fold.c: Likewise.
6798         * gimple-iterator.c: Likewise.
6799         * gimple-low.c: Likewise.
6800         * gimple-match-head.c: Likewise.
6801         * gimple-pretty-print.c: Likewise.
6802         * gimple-ssa-isolate-paths.c: Likewise.
6803         * gimple-ssa-strength-reduction.c: Likewise.
6804         * gimple-streamer-in.c: Likewise.
6805         * gimple-streamer-out.c: Likewise.
6806         * gimple-walk.c: Likewise.
6807         * gimple.c: Likewise.
6808         * gimplify-me.c: Likewise.
6809         * gimplify.c: Likewise.
6810         * godump.c: Likewise.
6811         * graph.c: Likewise.
6812         * graphite-blocking.c: Likewise.
6813         * graphite-dependences.c: Likewise.
6814         * graphite-interchange.c: Likewise.
6815         * graphite-isl-ast-to-gimple.c: Likewise.
6816         * graphite-optimize-isl.c: Likewise.
6817         * graphite-poly.c: Likewise.
6818         * graphite-scop-detection.c: Likewise.
6819         * graphite-sese-to-poly.c: Likewise.
6820         * graphite.c: Likewise.
6821         * haifa-sched.c: Likewise.
6822         * hw-doloop.c: Likewise.
6823         * ifcvt.c: Likewise.
6824         * init-regs.c: Likewise.
6825         * internal-fn.c: Likewise.
6826         * ipa-chkp.c: Likewise.
6827         * ipa-comdats.c: Likewise.
6828         * ipa-cp.c: Likewise.
6829         * ipa-devirt.c: Likewise.
6830         * ipa-icf-gimple.c: Likewise.
6831         * ipa-icf.c: Likewise.
6832         * ipa-inline-analysis.c: Likewise.
6833         * ipa-inline-transform.c: Likewise.
6834         * ipa-inline.c: Likewise.
6835         * ipa-polymorphic-call.c: Likewise.
6836         * ipa-profile.c: Likewise.
6837         * ipa-prop.c: Likewise.
6838         * ipa-pure-const.c: Likewise.
6839         * ipa-ref.c: Likewise.
6840         * ipa-reference.c: Likewise.
6841         * ipa-split.c: Likewise.
6842         * ipa-utils.c: Likewise.
6843         * ipa-visibility.c: Likewise.
6844         * ipa.c: Likewise.
6845         * ira-build.c: Likewise.
6846         * ira-color.c: Likewise.
6847         * ira-conflicts.c: Likewise.
6848         * ira-costs.c: Likewise.
6849         * ira-emit.c: Likewise.
6850         * ira-lives.c: Likewise.
6851         * ira.c: Likewise.
6852         * jump.c: Likewise.
6853         * langhooks.c: Likewise.
6854         * lcm.c: Likewise.
6855         * loop-doloop.c: Likewise.
6856         * loop-init.c: Likewise.
6857         * loop-invariant.c: Likewise.
6858         * loop-iv.c: Likewise.
6859         * loop-unroll.c: Likewise.
6860         * lower-subreg.c: Likewise.
6861         * lra-assigns.c: Likewise.
6862         * lra-coalesce.c: Likewise.
6863         * lra-constraints.c: Likewise.
6864         * lra-eliminations.c: Likewise.
6865         * lra-lives.c: Likewise.
6866         * lra-remat.c: Likewise.
6867         * lra-spills.c: Likewise.
6868         * lra.c: Likewise.
6869         * lto-cgraph.c: Likewise.
6870         * lto-compress.c: Likewise.
6871         * lto-opts.c: Likewise.
6872         * lto-section-in.c: Likewise.
6873         * lto-section-out.c: Likewise.
6874         * lto-streamer-in.c: Likewise.
6875         * lto-streamer-out.c: Likewise.
6876         * lto-streamer.c: Likewise.
6877         * mcf.c: Likewise.
6878         * mode-switching.c: Likewise.
6879         * modulo-sched.c: Likewise.
6880         * omega.c: Likewise.
6881         * omp-low.c: Likewise.
6882         * optabs.c: Likewise.
6883         * opts-global.c: Likewise.
6884         * passes.c: Likewise.
6885         * plugin.c: Likewise.
6886         * postreload-gcse.c: Likewise.
6887         * postreload.c: Likewise.
6888         * predict.c: Likewise.
6889         * print-rtl.c: Likewise.
6890         * print-tree.c: Likewise.
6891         * profile.c: Likewise.
6892         * real.c: Likewise.
6893         * realmpfr.c: Likewise.
6894         * recog.c: Likewise.
6895         * ree.c: Likewise.
6896         * reg-stack.c: Likewise.
6897         * regcprop.c: Likewise.
6898         * reginfo.c: Likewise.
6899         * regrename.c: Likewise.
6900         * regstat.c: Likewise.
6901         * reload.c: Likewise.
6902         * reload1.c: Likewise.
6903         * reorg.c: Likewise.
6904         * resource.c: Likewise.
6905         * rtl-chkp.c: Likewise.
6906         * rtlanal.c: Likewise.
6907         * rtlhooks.c: Likewise.
6908         * sanopt.c: Likewise.
6909         * sched-deps.c: Likewise.
6910         * sched-ebb.c: Likewise.
6911         * sched-rgn.c: Likewise.
6912         * sched-vis.c: Likewise.
6913         * sdbout.c: Likewise.
6914         * sel-sched-dump.c: Likewise.
6915         * sel-sched-ir.c: Likewise.
6916         * sel-sched.c: Likewise.
6917         * sese.c: Likewise.
6918         * shrink-wrap.c: Likewise.
6919         * simplify-rtx.c: Likewise.
6920         * stack-ptr-mod.c: Likewise.
6921         * stmt.c: Likewise.
6922         * stor-layout.c: Likewise.
6923         * store-motion.c: Likewise.
6924         * stringpool.c: Likewise.
6925         * symtab.c: Likewise.
6926         * target-globals.c: Likewise.
6927         * targhooks.c: Likewise.
6928         * toplev.c: Likewise.
6929         * tracer.c: Likewise.
6930         * trans-mem.c: Likewise.
6931         * tree-affine.c: Likewise.
6932         * tree-browser.c: Likewise.
6933         * tree-call-cdce.c: Likewise.
6934         * tree-cfg.c: Likewise.
6935         * tree-cfgcleanup.c: Likewise.
6936         * tree-chkp-opt.c: Likewise.
6937         * tree-chkp.c: Likewise.
6938         * tree-chrec.c: Likewise.
6939         * tree-complex.c: Likewise.
6940         * tree-data-ref.c: Likewise.
6941         * tree-dfa.c: Likewise.
6942         * tree-diagnostic.c: Likewise.
6943         * tree-dump.c: Likewise.
6944         * tree-eh.c: Likewise.
6945         * tree-emutls.c: Likewise.
6946         * tree-if-conv.c: Likewise.
6947         * tree-inline.c: Likewise.
6948         * tree-into-ssa.c: Likewise.
6949         * tree-iterator.c: Likewise.
6950         * tree-loop-distribution.c: Likewise.
6951         * tree-nested.c: Likewise.
6952         * tree-nrv.c: Likewise.
6953         * tree-object-size.c: Likewise.
6954         * tree-outof-ssa.c: Likewise.
6955         * tree-parloops.c: Likewise.
6956         * tree-phinodes.c: Likewise.
6957         * tree-predcom.c: Likewise.
6958         * tree-pretty-print.c: Likewise.
6959         * tree-profile.c: Likewise.
6960         * tree-scalar-evolution.c: Likewise.
6961         * tree-sra.c: Likewise.
6962         * tree-ssa-address.c: Likewise.
6963         * tree-ssa-alias.c: Likewise.
6964         * tree-ssa-ccp.c: Likewise.
6965         * tree-ssa-coalesce.c: Likewise.
6966         * tree-ssa-copy.c: Likewise.
6967         * tree-ssa-copyrename.c: Likewise.
6968         * tree-ssa-dce.c: Likewise.
6969         * tree-ssa-dom.c: Likewise.
6970         * tree-ssa-dse.c: Likewise.
6971         * tree-ssa-forwprop.c: Likewise.
6972         * tree-ssa-ifcombine.c: Likewise.
6973         * tree-ssa-live.c: Likewise.
6974         * tree-ssa-loop-ch.c: Likewise.
6975         * tree-ssa-loop-im.c: Likewise.
6976         * tree-ssa-loop-ivcanon.c: Likewise.
6977         * tree-ssa-loop-ivopts.c: Likewise.
6978         * tree-ssa-loop-manip.c: Likewise.
6979         * tree-ssa-loop-niter.c: Likewise.
6980         * tree-ssa-loop-prefetch.c: Likewise.
6981         * tree-ssa-loop-unswitch.c: Likewise.
6982         * tree-ssa-loop.c: Likewise.
6983         * tree-ssa-math-opts.c: Likewise.
6984         * tree-ssa-operands.c: Likewise.
6985         * tree-ssa-phiopt.c: Likewise.
6986         * tree-ssa-phiprop.c: Likewise.
6987         * tree-ssa-pre.c: Likewise.
6988         * tree-ssa-propagate.c: Likewise.
6989         * tree-ssa-reassoc.c: Likewise.
6990         * tree-ssa-sccvn.c: Likewise.
6991         * tree-ssa-scopedtables.c: Likewise.
6992         * tree-ssa-sink.c: Likewise.
6993         * tree-ssa-strlen.c: Likewise.
6994         * tree-ssa-structalias.c: Likewise.
6995         * tree-ssa-tail-merge.c: Likewise.
6996         * tree-ssa-ter.c: Likewise.
6997         * tree-ssa-threadedge.c: Likewise.
6998         * tree-ssa-threadupdate.c: Likewise.
6999         * tree-ssa-uncprop.c: Likewise.
7000         * tree-ssa-uninit.c: Likewise.
7001         * tree-ssa.c: Likewise.
7002         * tree-ssanames.c: Likewise.
7003         * tree-stdarg.c: Likewise.
7004         * tree-streamer-in.c: Likewise.
7005         * tree-streamer-out.c: Likewise.
7006         * tree-streamer.c: Likewise.
7007         * tree-switch-conversion.c: Likewise.
7008         * tree-tailcall.c: Likewise.
7009         * tree-vect-data-refs.c: Likewise.
7010         * tree-vect-generic.c: Likewise.
7011         * tree-vect-loop-manip.c: Likewise.
7012         * tree-vect-loop.c: Likewise.
7013         * tree-vect-patterns.c: Likewise.
7014         * tree-vect-slp.c: Likewise.
7015         * tree-vect-stmts.c: Likewise.
7016         * tree-vectorizer.c: Likewise.
7017         * tree-vrp.c: Likewise.
7018         * tree.c: Likewise.
7019         * tsan.c: Likewise.
7020         * ubsan.c: Likewise.
7021         * valtrack.c: Likewise.
7022         * value-prof.c: Likewise.
7023         * var-tracking.c: Likewise.
7024         * varasm.c: Likewise.
7025         * varpool.c: Likewise.
7026         * vmsdbgout.c: Likewise.
7027         * vtable-verify.c: Likewise.
7028         * web.c: Likewise.
7029         * wide-int.cc: Likewise.
7030         * xcoffout.c: Likewise.
7031         * config/aarch64/aarch64-builtins.c: Likewise.
7032         * config/aarch64/aarch64.c: Likewise.
7033         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7034         * config/alpha/alpha.c: Likewise.
7035         * config/arc/arc.c: Likewise.
7036         * config/arm/aarch-common.c: Likewise.
7037         * config/arm/arm-builtins.c: Likewise.
7038         * config/arm/arm-c.c: Likewise.
7039         * config/arm/arm.c: Likewise.
7040         * config/avr/avr-c.c: Likewise.
7041         * config/avr/avr-log.c: Likewise.
7042         * config/avr/avr.c: Likewise.
7043         * config/bfin/bfin.c: Likewise.
7044         * config/c6x/c6x.c: Likewise.
7045         * config/cr16/cr16.c: Likewise.
7046         * config/cris/cris.c: Likewise.
7047         * config/darwin-c.c: Likewise.
7048         * config/darwin.c: Likewise.
7049         * config/epiphany/epiphany.c: Likewise.
7050         * config/epiphany/mode-switch-use.c: Likewise.
7051         * config/epiphany/resolve-sw-modes.c: Likewise.
7052         * config/fr30/fr30.c: Likewise.
7053         * config/frv/frv.c: Likewise.
7054         * config/ft32/ft32.c: Likewise.
7055         * config/h8300/h8300.c: Likewise.
7056         * config/i386/i386-c.c: Likewise.
7057         * config/i386/i386.c: Likewise.
7058         * config/i386/msformat-c.c: Likewise.
7059         * config/i386/winnt-cxx.c: Likewise.
7060         * config/i386/winnt-stubs.c: Likewise.
7061         * config/i386/winnt.c: Likewise.
7062         * config/ia64/ia64-c.c: Likewise.
7063         * config/ia64/ia64.c: Likewise.
7064         * config/iq2000/iq2000.c: Likewise.
7065         * config/lm32/lm32.c: Likewise.
7066         * config/m32c/m32c-pragma.c: Likewise.
7067         * config/m32c/m32c.c: Likewise.
7068         * config/m32r/m32r.c: Likewise.
7069         * config/m68k/m68k.c: Likewise.
7070         * config/mcore/mcore.c: Likewise.
7071         * config/mep/mep-pragma.c: Likewise.
7072         * config/mep/mep.c: Likewise.
7073         * config/microblaze/microblaze-c.c: Likewise.
7074         * config/microblaze/microblaze.c: Likewise.
7075         * config/mips/mips.c: Likewise.
7076         * config/mmix/mmix.c: Likewise.
7077         * config/mn10300/mn10300.c: Likewise.
7078         * config/moxie/moxie.c: Likewise.
7079         * config/msp430/msp430-c.c: Likewise.
7080         * config/msp430/msp430.c: Likewise.
7081         * config/nds32/nds32-cost.c: Likewise.
7082         * config/nds32/nds32-fp-as-gp.c: Likewise.
7083         * config/nds32/nds32-intrinsic.c: Likewise.
7084         * config/nds32/nds32-isr.c: Likewise.
7085         * config/nds32/nds32-md-auxiliary.c: Likewise.
7086         * config/nds32/nds32-memory-manipulation.c: Likewise.
7087         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7088         * config/nds32/nds32-predicates.c: Likewise.
7089         * config/nds32/nds32.c: Likewise.
7090         * config/nios2/nios2.c: Likewise.
7091         * config/nvptx/nvptx.c: Likewise.
7092         * config/pa/pa.c: Likewise.
7093         * config/pdp11/pdp11.c: Likewise.
7094         * config/rl78/rl78-c.c: Likewise.
7095         * config/rl78/rl78.c: Likewise.
7096         * config/rs6000/rs6000-c.c: Likewise.
7097         * config/rs6000/rs6000.c: Likewise.
7098         * config/rx/rx.c: Likewise.
7099         * config/s390/s390-c.c: Likewise.
7100         * config/s390/s390.c: Likewise.
7101         * config/sh/sh-c.c: Likewise.
7102         * config/sh/sh-mem.cc: Likewise.
7103         * config/sh/sh.c: Likewise.
7104         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7105         * config/sh/sh_treg_combine.cc: Likewise.
7106         * config/sol2-c.c: Likewise.
7107         * config/sol2-cxx.c: Likewise.
7108         * config/sol2-stubs.c: Likewise.
7109         * config/sol2.c: Likewise.
7110         * config/sparc/sparc-c.c: Likewise.
7111         * config/sparc/sparc.c: Likewise.
7112         * config/spu/spu-c.c: Likewise.
7113         * config/spu/spu.c: Likewise.
7114         * config/stormy16/stormy16.c: Likewise.
7115         * config/tilegx/mul-tables.c: Likewise.
7116         * config/tilegx/tilegx-c.c: Likewise.
7117         * config/tilegx/tilegx.c: Likewise.
7118         * config/tilepro/mul-tables.c: Likewise.
7119         * config/tilepro/tilepro-c.c: Likewise.
7120         * config/tilepro/tilepro.c: Likewise.
7121         * config/v850/v850-c.c: Likewise.
7122         * config/v850/v850.c: Likewise.
7123         * config/vax/vax.c: Likewise.
7124         * config/visium/visium.c: Likewise.
7125         * config/vms/vms-c.c: Likewise.
7126         * config/vms/vms.c: Likewise.
7127         * config/vxworks.c: Likewise.
7128         * config/xtensa/xtensa.c: Likewise.
7130 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
7132         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7133         Remove operand constraints.  Change operand 2 predicate to
7134         nonmemory operand.  Limit const_int values to mode bitsize.  Only
7135         allow const_int values less than 32 when optimizing for size.
7136         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7137         Remove operand constraints.
7138         (*bt<mode>): Use SImode for const_int values less than 32.
7139         (regmode): Remove mode attribute.
7141 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
7143         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7144         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7145           moxie_legitimate_address_p): New functions.
7146           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7148 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7150         PR tree-optimization/66642
7151         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7152         header comment.  Rename split_edge variable to edge_at_split.  Split
7153         exit edge to create new loop exit bb.  Insert loop exit phis in new
7154         loop exit bb.
7156 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7158         * tree-cfg.c (get_virtual_phi): New function.
7159         * tree-cfg.h (get_virtual_phi): Declare.
7160         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7161         (rewrite_virtuals_into_loop_closed_ssa): New function.
7162         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7163         Declare.
7164         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7165         (transform_to_exit_first_loop_alt): Use
7166         rewrite_virtuals_into_loop_closed_ssa.
7168 2015-07-07  Richard Biener  <rguenther@suse.de>
7170         * fold-const.c (fold_binary_loc): Move
7171         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7172         * match.pd: ... here.
7173         Add (X * C1) % C2 -> 0 simplification pattern derived from
7174         extract_muldiv_1.
7176 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7178         PR target/66780
7179         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7180         change for target/65249.
7182 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
7184         * symtab.c (address_matters_1): Fix typo in comment above.
7185         (can_increase_alignment_p): Likewise.
7187 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7189         * function.c (free_after_compilation): Clear PROP_cfg in
7190         f->curr_properties.
7192 2015-07-07  Richard Biener  <rguenther@suse.de>
7194         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7195         add which use to.
7196         (add_control_edge): Remove excessive vertical space in dumping.
7197         (process_ssa_edge_worklist): Simulate at most one statement and
7198         return whether we did.  Do not simulate PHIs if they are in a
7199         BB not yet simulated.
7200         (ssa_propagate): Adjust to always drain the BB worklist whenever
7201         a BB is available there, likewise the VARYING edges list before
7202         the interesting edge list.
7204 2015-07-07  Christian Bruel  <christian.bruel@st.com>
7206         PR target/52144
7207         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7209 2015-07-07  Richard Biener  <rguenther@suse.de>
7211         PR middle-end/66739
7212         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7213         A - B.
7215 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7217         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
7218         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
7219         Copy operand 0 to a temporary if !ext_register_operand.  Remove
7220         ancient extract_bit_field workaround.
7221         (insv<mode>_1): Rename from mov<mode>_insv_1.
7222         (*insvqi): Rename from *movqi_insv_2.
7223         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7224         for renamed insvsi_1.
7225         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7227 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7229         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
7230         call to nvptx_reorg_subreg.
7232 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
7234         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7235         * graphite-dependencies.c, graphite-interchange.c,
7236         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7237         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7238         Likewise.
7240 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
7242         * match.pd: Remove element_mode inside HONOR_*.
7243         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7244         (~X | X -> -1, ~X ^ X -> -1): Merge.
7245         * tree.c (build_each_one_cst): New function.
7246         * tree.h (build_each_one_cst): Likewise.
7248 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7250         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7251         PROCESSOR_IAMCU.
7253 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
7255         * config.gcc <mips*-*-*>: Add fused-madd.opt.
7256         * config/mips/mips.opt (mfused-madd): Remove.
7257         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7258         * config/mips/mips.h (TARGET_MIPS8000): New.
7259         (ISA_HAS_FP_MADD4_MSUB4): Remove.
7260         (ISA_HAS_FP_MADDF_MSUBF): Remove.
7261         (ISA_HAS_FP_MADD3_MSUB3): Remove.
7262         (ISA_HAS_NMADD4_NMSUB4): Remove.
7263         (ISA_HAS_NMADD3_NMSUB3): Remove.
7264         (ISA_HAS_FUSED_MADD4): New.
7265         (ISA_HAS_UNFUSED_MADD4): New.
7266         (ISA_HAS_FUSED_MADDF): New.
7267         (ISA_HAS_FUSED_MADD3): New.
7268         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7269         (*fma<mode>4_madd3) New.
7270         (*fma<mode>4_madd4) New.
7271         (*fma<mode>4_maddf) New.
7272         (fms<mode>4) New.
7273         (*fms<mode>4_msub3) New.
7274         (*fms<mode>4_msub4) New.
7275         (fnma<mode>4) New.
7276         (*fnma<mode>4_nmadd3) New.
7277         (*fnma<mode>4_nmadd4) New.
7278         (fnms<mode>4) New.
7279         (*fnms<mode>4_nmsub3) New.
7280         (*fnms<mode>4_nmsub4) New.
7281         (*madd4<mode>) Modify to be unfused only.
7282         (*msub4<mode>) Modify to be unfused only.
7283         (*nmadd4<mode>) Modify to be unfused only.
7284         (*nmsub4<mode>) Modify to be unfused only.
7285         (*madd3<mode>) Remove.
7286         (*msub3<mode>) Remove.
7287         (*nmadd3<mode>) Remove.
7288         (*nmsub3<mode>) Remove.
7289         (*nmadd3<mode>_fastmath) Remove.
7290         (*nmsub3<mode>_fastmath) Remove.
7291         (*nmadd4<mode>_fastmath) Update condition.
7292         (*nmsub4<mode>_fastmath) Update condition.
7294 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7296         PR target/65956
7297         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7298         alignment attribute, exploring one level down for records and arrays.
7300 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7302         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
7303         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
7304         Copy operand 1 to a temporary if !ext_register_operand.  Remove
7305         ancient extract_bit_field workaround.
7306         (*extv<mode>): Rename from *mov<mode>_extv_1.
7307         (*extvqi): Rename from *movqi_extv_1.
7308         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
7309         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
7310         to a temporary if !ext_register_operand.  Remove ancient
7311         extract_bit_field workaround.
7312         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7313         (*extzvqi): Rename from *movqi_extzv_2.
7314         (*testqi_ext_3): Remove modes from const_int_operand predicated
7315         operands.  Add "n" constraint.
7316         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7317         operand.  Add "J" constraint.
7318         (*btsq, *btrq, *btcq peephole2s): Remove mode from
7319         const_0_to_63 predicated operand.
7320         (regmode): New insn attribute.
7321         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
7322         to nonmemory_operand.  Use regmode insn attribute.
7323         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7324         (*jcc_bt<mode>_mask): Remove mode from operand 3.
7325         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7326         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7327         operands.  Use "N" constraint instead of "n".
7329 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7331         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7333 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7335         PR target/66749
7336         * config/i386/i386.c (iamcu_cost): New.
7337         (m_IAMCU): Likewise.
7338         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7339         (processor_target_table): Add an entry for "iamcu".
7340         (processor_alias_table): Likewise.
7341         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7342         (ix86_adjust_cost): Likewise.
7343         (ia32_multipass_dfa_lookahead): Likewise.
7344         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7345         * config/i386/x86-tune.def: Updated for m_IAMCU.
7347 2015-07-06  Richard Biener  <rguenther@suse.de>
7349         PR tree-optimization/66772
7350         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7351         values are available in the PHI node BB when there are
7352         still unexecutable edges.
7354 2015-07-06  Richard Biener  <rguenther@suse.de>
7356         PR tree-optimization/66767
7357         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7358         Make sure to build the alignment test on a SSA name without
7359         final alignment info valid only if the alignment test
7360         evaluates to true.
7362 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7364         PR target/66620
7365         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7366         loop start when inserting LSETUP.
7368 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7370         PR target/53383
7371         * config/i386/i386.c (ix86_option_override_internal): Allow
7372         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7374 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7376         * read-md.c (decimal_string): Rename to ...
7377         (md_decimal_string): ... this.
7378         (handle_enum): Reflect this.
7380 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7382         PR target/66731
7383         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7385 2015-07-06  Richard Biener  <rguenther@suse.de>
7387         PR middle-end/66759
7388         * match.pd: Add missing constraint of y to REAL_CST in
7389         REAL_CST - x CMP y to y - CST CMP x simplification.
7391 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
7393         PR tree-optimization/66757
7394         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7396 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
7397             Sandra Loosemore <sandra@codesourcery.com>
7399         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7400         Delete extern declaration.
7401         (gprel_constant_p): Add extern declaration.
7402         * config/nios2/constraints.md ("S"): Use gprel_constant_p
7403         instead of nios2_symbol_ref_in_small_data_p.
7404         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7405         (nios2_symbol_ref_in_small_data_p): Make static.
7406         (gprel_constant_p): Make non-static.
7408 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
7410         * doc/fragments.texi (Target Fragment): Convert debian.org
7411         link to use https.
7412         * doc/install.texi (Configuration): Ditto.
7414 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
7416         PR tree-optimization/66718
7417         * tree-vect-stmts.c (vectorizable_call): Replace uses of
7418         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7420         PR tree-optimization/66718
7421         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7422         vectorizable_load, vectorizable_condition): Move vectype,
7423         nunits, ncopies computation after checking what kind of statement
7424         stmt is.
7426 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7428         * target-insns.def (extv, extzv, insv): New targetm instruction
7429         patterns.
7430         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7431         interface.
7432         * recog.c (simplify_while_replacing): Likewise.
7434 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7436         * target-insns.def (doloop_begin, doloop_end): New targetm
7437         instruction patterns.
7438         * loop-init.c: Include target.h.
7439         (pass_loop2::gate): Use the new targetm patterns instead of
7440         HAVE_*/gen_* interface.
7441         (pass_rtl_doloop::gate): Likewise.
7442         (pass_rtl_doloop::execute): Remove preprocessor condition.
7443         * hw-doloop.c: Build unconditionally.
7444         * loop-doloop.c: Likewise.
7445         (doloop_optimize): Use the new targetm patterns instead of
7446         HAVE_*/gen_* interface.
7447         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7448         * modulo-sched.c (doloop_register_get): Likewise.
7450 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7452         * target-insns.def (clear_cache): New targetm instruction pattern.
7453         * builtins.c (expand_builtin___clear_cache): Use it instead of
7454         HAVE_*/gen_* interface.
7456 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7458         * target-insns.def (allocate_stack, check_stack, probe_stack)
7459         (probe_stack_address, split_stack_prologue, split_stack_space_check):
7460         New targetm instruction patterns.
7461         * explow.c (allocate_dynamic_stack_space): Use them instead of
7462         HAVE_*/gen_* interface.
7463         (emit_stack_probe): Likewise.
7464         (probe_stack_range): Likewise.
7465         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7467 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7469         * target-insns.def (stack_protect_set, stack_protect_test): New
7470         targetm instruction patterns.
7471         * cfgexpand.c (stack_protect_prologue): Use them instead of
7472         HAVE_*/gen_* interface.
7473         * function.c (stack_protect_epilogue): Likewise.
7475 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7477         * expr.h (gen_move_insn_uncast): Delete.
7478         * expr.c (gen_move_insn_uncast): Delete.
7480 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7482         * target-insns.def (restore_stack_block, restore_stack_function)
7483         (restore_stack_nonlocal, save_stack_block, save_stack_function)
7484         (save_stack_nonlocal): New targetm instruction patterns.
7485         * builtins.c (expand_builtin_apply): Use them instead of
7486         HAVE_*/gen_* interface.
7487         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7489 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7491         * target-insns.def (trap): New targetm instruction pattern.
7492         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7493         interface.
7494         * explow.c (allocate_dynamic_stack_space): Likewise.
7495         * ifcvt.c (find_if_header): Likewise.
7497 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7499         * target-insns.def (prefetch): New targetm instruction pattern.
7500         * tree-ssa-loop-prefetch.c: Include targeth.
7501         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7502         of HAVE_*/gen_* interface.
7503         * builtins.c (expand_builtin_prefetch): Likewise.
7504         * toplev.c (process_options): Likewise.
7506 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7508         * target-insns.def (untyped_call, untyped_return): New targetm
7509         instruction patterns.
7510         * builtins.c (expand_builtin_apply): Use them instead of
7511         HAVE_*/gen_* interface.
7512         (result_vector): Define unconditionally.
7514 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7516         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7517         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7518         (nonlocal_goto_receiver): New targetm instruction patterns.
7519         * builtins.c (expand_builtin_setjmp_setup): Use them instead
7520         of HAVE_*/gen_* interface.
7521         (expand_builtin_setjmp_receiver): Likewise.
7522         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7523         * except.c (expand_dw2_landing_pad_for_region): Likewise.
7525 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7527         * target.def: Add code_for_* hooks.
7528         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7529         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7530         * target-insns.def (casesi, tablejump): New targetm instruction
7531         patterns.
7532         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7533         (do_tablejump): Likewise.
7534         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7535         (expand_sjlj_dispatch_table): Likewise.
7536         * targhooks.c (default_case_values_threshold): Likewise.
7538 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
7540         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7541         Use rtx_insn * instead of rtx.
7542         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7543         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7544         (nios2_call_tls_get_addr): Likewise.
7545         (nios2_emit_expensive_div): Likewise.
7546         (nios2_emit_move_sequence): Change return type to bool.
7547         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7548         Change return type to bool.
7550 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7552         PR target/66747
7553         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7555 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
7557         PR target/66114
7558         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7559         of register_operand.  Remove constraint.
7561 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
7563         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7564         the first argument.
7566 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
7568         * attribs.c (decl_attributes): Guard inform with the return value
7569         of the preceding warning.
7571 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7573         * doc/invoke.texi (moverride): Move to correct section.
7575 2015-07-03  Richard Biener  <rguenther@suse.de>
7577         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7578         Copy from tree.c
7579         (dt_operand::gen_gimple_expr): After valueizing operands
7580         re-canonicalize operand order for commutative tree codes.
7582 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7584         PR target/66746.
7585         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7586         is defined.
7587         (__crc32w): Likewise.
7588         (__crc32d): Likewise.
7589         (__rdpmc): Likewise.
7590         (__rdtscp): Likewise.
7591         (_rdpmc): Likewise.
7592         (_rdtscp): Likewise.
7593         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7594         is defined.
7596 2015-07-03  Richard Biener  <rguenther@suse.de>
7598         * fold-const.c (fold_mathfn_compare): Remove.
7599         (fold_inf_compare): Likewise.
7600         (fold_comparison): Move floating point comparison simplifications...
7601         * match.pd: ... to patterns here.  Introduce simple_comparisons
7602         operator list and use it for patterns formerly in fold_comparison.
7604 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7606         PR tree-optimization/66119
7607         * toplev.c (process_options): Don't set up default values for
7608         the sra_max_scalarization_size_{speed,size} parameters.
7609         * tree-sra (analyze_all_variable_accesses): If no values
7610         have been set for the sra_max_scalarization_size_{speed,size}
7611         parameters, call get_move_ratio to get target defaults.
7613 2015-07-03  Richard Biener  <rguenther@suse.de>
7615         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
7616         * match.pd: ... here.
7618 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
7620         PR target/37072
7621         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
7622         is not actually the default on FreeBSD.
7624 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7626         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
7627         definition.
7628         (CMPGE_8HI): Likewise.
7629         (CMPGE_4SI): Likewise.
7630         (CMPGE_2DI): Likewise.
7631         (CMPGE_U16QI): Likewise.
7632         (CMPGE_U8HI): Likewise.
7633         (CMPGE_U4SI): Likewise.
7634         (CMPGE_U2DI): Likewise.
7635         (CMPLE_16QI): Likewise.
7636         (CMPLE_8HI): Likewise.
7637         (CMPLE_4SI): Likewise.
7638         (CMPLE_2DI): Likewise.
7639         (CMPLE_U16QI): Likewise.
7640         (CMPLE_U8HI): Likewise.
7641         (CMPLE_U4SI): Likewise.
7642         (CMPLE_U2DI): Likewise.
7643         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7644         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
7645         ALTIVEC_BUILTIN_VEC_CMPLE.
7646         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
7647         floating-point vector modes.
7648         (vector_nlt<mode>): New define_expand.
7649         (vector_nltu<mode>): Likewise.
7650         (vector_ngt<mode>): Likewise.
7651         (vector_ngtu<mode>): Likewise.
7653 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
7655         PR rtl-optimization/66706
7656         * combine.c (make_compound_operation): If an AND of SUBREG of
7657         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
7659 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
7661         * tree-pass.h (make_pass_ch_vect): New.
7662         * passes.def: Add pass_ch_vect just before pass_if_conversion.
7664         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
7665         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
7666         make_pass_ch_vect): New.
7667         (pass_ch): Extend ch_base.
7669         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
7670         (ch_base::copy_headers): ...here.
7672 2015-07-02  Richard Biener  <rguenther@suse.de>
7674         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
7675         * fold-const.c (get_pointer_modulus_and_residue): Remove.
7676         (fold_binary_loc): Implement (T)ptr & CST in terms of
7677         get_pointer_alignment_1.
7678         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
7679         Make sure to build the alignment test on a SSA name without
7680         final alignment info valid only after the prologue.
7682 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
7684         * config/cris/cris.md ("epilogue"): Remove condition.
7685         ("prologue"): Ditto.
7687 2015-07-02  Richard Biener  <rguenther@suse.de>
7689         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
7690         parameter to record a condition that is false.
7691         (record_conditions): When recording an extra NE_EXPR that is
7692         true also record a EQ_EXPR that is false.
7694 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
7696         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
7697         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
7698         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
7699         (set_iv, find_interesting_uses_address, add_candidate_1): New
7700         argument to alloc_iv.
7701         (find_interesting_uses_op, find_interesting_uses_cond): Don't
7702         duplicate struct iv.
7703         (free_loop_data): Don't free struct iv explicitly.
7704         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
7706 2015-07-01  DJ Delorie  <dj@redhat.com>
7708         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
7709         (LIB_SPEC): Add.
7710         (SUPPORTS_DISCRIMINATOR): Define.
7712 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
7714         PR bootstrap/66685
7715         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
7716         there are no CALLs in the same pattern.
7718 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7720         PR rtl-optimization/61047
7721         * rtlanal.c (get_initial_register_offset): New function.
7722         (rtx_addr_can_trap_p_1): Check offsets of stack references.
7724 2015-07-01  Richard Biener  <rguenther@suse.de>
7726         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
7727         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
7728         ~X CMP C -> X CMP' ~C to ...
7729         * match.pd: ... patterns here.
7731 2015-07-01  Nick Clifton  <nickc@redhat.com>
7733         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
7734         a 16-bit value into a 20-bit memory slot.
7736 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
7738         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7739         "aarch64_tiny", "aarch64_small", "aarch64_large",
7740         "aarch64_little_endian", "aarch64_big_endian".
7742 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
7744         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
7745         Document "aarch64_small_fpic".
7747 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
7749         * configure.ac: Add check for aarch64 assembler -fpic relocation
7750         modifier support.
7751         * configure: Regenerate.
7752         * config.in: Regenerate.
7753         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
7754         to -fPIC if not support of -fpic relocation modifier in assembler.
7756 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
7758         PR bootstrap/66685
7759         * rtl.c (classify_insn): Handle returns in PARALLELs.
7761 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
7763         PR middle-end/66633
7764         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
7765         to true if the function is nested and if not optimizing.
7766         (convert_local_omp_clauses): Initialize need_frame to true if the
7767         function contains nested functions and if not optimizing.
7769 2015-07-01  Richard Biener  <rguenther@suse.de>
7771         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
7772         (X & Y) ^ Y -> ~X & Y transforms to ...
7773         * match.pd: ... here.
7775 2015-07-01  Richard Biener <rguenther@suse.de>
7777         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
7778         of converts to avoid uninteresting noise from the conversion
7779         simplifying patterns.
7781 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
7783         * config/c6x/c6x.c (try_rename_operands): Do not depend on
7784         gcc_assert evaluating its argument for side-effect.
7786 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
7788         PR target/64833
7789         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
7790         flag_pic is set.
7792 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7794         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
7795         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
7796         (hash_scc): Add this_ref_p and ref_p parameters and pass them
7797         to the inner DFS walk.
7799 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
7801         * target-insns.def (jump): New targetm instruction pattern.
7802         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
7803         instead of gen_jump.
7804         (fix_up_crossing_landing_pad): Likewise.
7805         (add_labels_and_missing_jumps): Likewise.
7806         (fix_crossing_conditional_branches): Likewise.
7807         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7808         (force_nonfallthru_and_redirect): Likewise.
7809         * cse.c (cse_insn): Likewise.
7810         * expmed.c (expand_divmod): Likewise.
7811         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
7812         * haifa-sched.c (init_before_recovery): Likewise.
7813         (sched_create_recovery_edges): Likewise.
7814         * ifcvt.c (find_cond_trap): Likewise.
7815         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
7816         (expand_float, expand_fix): Likewise.
7817         * stmt.c (emit_jump): Likewise.
7819 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
7821         * defaults.h (HAVE_load_multiple, gen_load_multiple)
7822         (HAVE_store_multiple, gen_store_multiple): Delete.
7823         * target-insns.def (load_multiple, store_multiple): New targetm
7824         instruction patterns.
7825         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
7826         of HAVE_*/gen_* interface.
7828 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
7830         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
7831         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
7832         (gen_mem_signal_fence): Delete.
7833         * target-insns.def (mem_signal_fence, mem_thread_fence)
7834         (memory_barrier): New targetm instruction patterns.
7835         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
7836         interface.
7837         (expand_mem_signal_fence): Likewise.
7839 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
7841         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
7842         * target-insns.def (epilogue, prologue, sibcall_prologue): New
7843         targetm instruction patterns.
7844         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
7845         interface.
7846         * calls.c (expand_call): Likewise.
7847         * cfgrtl.c (cfg_layout_finalize): Likewise.
7848         * df-scan.c (df_get_entry_block_def_set): Likewise.
7849         (df_get_exit_block_use_set): Likewise.
7850         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
7851         * final.c (final_start_function): Likewise.
7852         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7853         (reposition_prologue_and_epilogue_notes): Likewise.
7854         * reorg.c (find_end_label): Likewise.
7855         * toplev.c (process_options): Likewise.
7857 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
7859         * typed-splay-tree.h: New file.
7861 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
7863         PR debug/66691
7864         * lra-int.h (lra_substitute_pseudo): Add a parameter.
7865         (lra_substitute_pseudo_within_insn): Ditto.
7866         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
7867         of constant.
7868         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
7869         to lra_substitute_pseudo.
7870         * lra-lives.c (process_bb_lives): Add an argument to
7871         lra_substitute_pseudo_within_insn call.
7872         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
7873         argument to lra_substitute_pseudo and
7874         lra_substitute_pseudo_within_insn calls.
7875         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
7877 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7879         * configure: Regenerated.
7881 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7883         * config.gcc: Support i[34567]86-*-elfiamcu target.
7884         * config/i386/iamcu.h: New.
7885         * config/i386/i386.opt: Add -miamcu.
7886         * doc/invoke.texi: Document -miamcu.
7887         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
7888         off x87/MMX/SSE/AVX codegen for -miamcu.
7889         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7890         __iamcu/__iamcu__ for -miamcu.
7891         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
7892         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
7893         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
7894         * config/i386/i386.c (ix86_option_override_internal): Ignore and
7895         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
7896         MCU by default.  Default long double to 64-bit for Intel MCU.
7897         Turn on -freg-struct-return for Intel MCU.  Issue an error when
7898         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
7899         AVX is turned on.
7900         (function_arg_advance_32): Pass value whose size is no larger
7901         than 8 bytes in registers for Intel MCU.
7902         (function_arg_32): Likewise.
7903         (ix86_return_in_memory): Return value whose size is no larger
7904         than 8 bytes in registers for Intel MCU.
7905         (iamcu_alignment): New function.
7906         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
7907         true.
7908         (ix86_local_alignment): Don't increase alignment for Intel MCU.
7909         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
7910         true.
7912 2015-06-30  Marek Polacek  <polacek@redhat.com>
7914         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
7915         both operands of the resulting expression.
7917         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
7918         the final expression with the operand's type and then convert
7919         it to the type of the expression.
7921 2015-06-30  Richard Biener  <rguenther@suse.de>
7923         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
7924         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
7925         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
7926         * match.pd: ... to patterns here.
7928 2015-06-30  Richard Biener  <rguenther@suse.de>
7930         PR tree-optimization/66704
7931         * tree-vect-data-refs.c (vect_setup_realignment): Use
7932         make_ssa_name for non-SSA name source.
7934 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
7936         PR middle-end/66702
7937         * omp-low.c (simd_clone_adjust): Handle addressable linear
7938         or uniform parameters or non-gimple type uniform parameters.
7940 2015-06-30  Richard Biener  <rguenther@suse.de>
7942         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
7943         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
7944         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
7945         * match.pd: ... here.
7946         Add a few cases of A - B -> A + (-B) when B "easily" negates.
7947         Move (x & y) | x -> x and friends before
7948         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
7950 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7952         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
7953         -mfix-ut699 is not specified.
7954         (leon3_load): Rename into...
7955         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
7956         is specified.
7958 2015-06-30  Marek Polacek  <polacek@redhat.com>
7960         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
7961         * match.pd: ... here.
7963 2015-06-30  Richard Biener  <rguenther@suse.de>
7965         * target-insns.def (canonicalize_funcptr_for_compare): Add.
7966         * fold-const.c (build_range_check): Replace uses of
7967         HAVE_canonicalize_funcptr_for_compare.
7968         (fold_widened_comparison): Likewise.
7969         (fold_sign_changed_comparison): Likewise.
7970         * dojump.c: Include "target.h".
7971         (do_compare_and_jump): Replace uses of
7972         HAVE_canonicalize_funcptr_for_compare and
7973         gen_canonicalize_funcptr_for_compare.
7974         * expr.c (do_store_flag): Likewise.
7976 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7978         PR tree-optimization/66652
7979         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
7980         max_loop_iterations to determine if nit + 1 overflows.
7982 2015-06-30  Richard Biener  <rguenther@suse.de>
7984         * tree-vrp.c (register_edge_assert_for_2): Also register
7985         asserts for dominating conversion results.
7987 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
7989         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
7990         field in struct iv.
7992 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
7994         PR target/66509
7995         * configure.ac: Fix filds and fildq test for 64-bit.
7996         * configure: Regenerated.
7998 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8000         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8001         (nvptx_reorg): Here.  Keep the non-subreg pieces.
8003 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
8005         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8006         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8008 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
8010         * config/i386/i386.md (*jcc_1): Use %! in asm template.
8011         Set attribute "length_nobnd" instead of "length".
8012         (*jcc_2): Ditto.
8013         (jump): Ditto.
8014         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8016 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
8018         * config/nios2/nios2.c (nios2_delegitimize_address): Make
8019         assert less restrictive.
8021 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8023         PR fortran/66605
8024         * cgraphunit.c (cgraph_node::finalize_function): Do not call
8025         do_warn_unused_parameter.
8026         * function.c (do_warn_unused_parameter): Move from here.
8027         * function.h (do_warn_unused_parameter): Do not declare.
8029 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8031         PR target/65697
8032         * gcc.target/arm/armv-sync-comp-swap.c: New.
8033         * gcc.target/arm/armv-sync-op-acquire.c: New.
8034         * gcc.target/arm/armv-sync-op-full.c: New.
8035         * gcc.target/arm/armv-sync-op-release.c: New.
8037 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8039         PR target/65697
8040         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8041         initial acquire barrier with final barrier.
8043 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8045         PR target/65697
8046         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8047         initial acquire barrier with final barrier.
8049 2015-06-29  Richard Henderson  <rth@redhat.com>
8051         * config/i386/constraints.md (Bf): New constraint.
8052         * config/i386/i386-c.c (ix86_target_macros): Define
8053         __GCC_ASM_FLAG_OUTPUTS__.
8054         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8055         as flags outputs.
8056         * doc/extend.texi (FlagOutputOperands): Document them.
8058 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
8060         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8061         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8062         unspec name.
8063         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8064         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8065         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8066         (aarch64_symbol_context): Ditto.
8067         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8068         and use new pattern name.
8069         (aarch64_expand_mov_immediate): Ditto.
8070         (aarch64_print_operand): Ditto.
8071         (aarch64_classify_tls_symbol): Ditto.
8073 2015-06-29  Marek Polacek  <polacek@redhat.com>
8074             Marc Glisse  <marc.glisse@inria.fr>
8076         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8077         * match.pd: ... pattern here.
8079 2015-06-29  Tom de Vries  <tom@codesourcery.com>
8081         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8082         function structure.
8084 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8086         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8087         feature description, split out the native option, add a link to
8088         the feature documentation, rearrange and slightly rewrite text.
8089         (Aarch64 options, -mcpu): Likewise.
8090         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
8091         +rdma implies Adv. SIMD.
8093 2015-06-29  Marek Polacek  <polacek@redhat.com>
8095         PR c/66322
8096         * function.c (stack_protect_epilogue): Remove a cast to int.
8097         * doc/invoke.texi: Update -Wswitch-bool description.
8099 2015-06-29  Richard Biener  <rguenther@suse.de>
8101         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8102         * fold-const.c (fold_binary_loc): Move &A - &B simplification
8103         via ptr_difference_const ...
8104         * match.pd: ... here.
8105         When matching (X ^ Y) == Y also match with swapped operands.
8107 2015-06-29  Richard Biener  <rguenther@suse.de>
8109         * lto-streamer.h (LTO_major_version): Bump to 5.
8111 2015-06-29  Richard Biener  <rguenther@suse.de>
8113         PR tree-optimization/66677
8114         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8115         STMT_VINFO_VEC_STMT clobbering less strict.
8117 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
8119         PR middle-end/64130
8120         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8121         division, compute max and min when value ranges for dividend and
8122         divisor are available.
8124 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
8125             Sandra Loosemore <sandra@codesourcery.com>
8127         * regrename.h (regrename_do_replace): Change to return bool.
8128         * regrename.c (rename_chains): Check return value of
8129         regname_do_replace.
8130         (regrename_do_replace): Re-validate the modified insns and
8131         return bool status.
8132         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8133         Update to match rename_chains changes.
8134         * config/c6x/c6x.c (try_rename_operands): Assert that
8135         regrename_do_replace returns true.
8137 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
8139         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8140         operand 2 here.  Use copy_addr_to_reg to copy non-index
8141         register operand 2 to a temporary.
8142         (<mode>_stx): Ditto for operand 1.
8143         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8144         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8145         (ix86_store_bounds): Ditto.
8147 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
8149         * print-tree.c (print_node) [TREE_VEC]: Print its length.
8151 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
8153         * gimple.c (gimple_call_set_fndecl): Remove.
8154         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8155         build1_loc directly instead of build_fold_addr_expr_loc.
8157 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8159         * hash-map.h (hash_map::traverse): Use the definition of the
8160         Key typedef rather than the typedef itself.
8162 2015-06-26  Martin Jambor  <mjambor@suse.cz>
8164         PR debug/66301
8165         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8166         NULL instead of calling dump_enabled_p.
8168 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8170         * config/aarch64/aarch64.opt: (override): New.
8171         * doc/invoke.texi (override): Document.
8172         * config/aarch64/aarch64.c (aarch64_flag_desc): New
8173         (aarch64_fusible_pairs): Likewise.
8174         (aarch64_tuning_flags): Likewise.
8175         (aarch64_tuning_override_function): Likewise.
8176         (aarch64_tuning_override_functions): Likewise.
8177         (aarch64_parse_one_option_token): Likewise.
8178         (aarch64_parse_boolean_options): Likewise.
8179         (aarch64_parse_fuse_string): Likewise.
8180         (aarch64_parse_tune_string): Likewise.
8181         (aarch64_parse_one_override_token): Likewise.
8182         (aarch64_parse_override_string): Likewise.
8183         (aarch64_override_options): Parse the -override string if it
8184         is present.
8186 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8188         * config/aarch64/aarch64-protos.h (tune_params): Remove
8189         const from members.
8190         (aarch64_tune_params): Remove const, change to no longer be
8191         a pointer.
8192         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8193         change to no longer be a pointer, initialize to generic_tunings.
8194         (aarch64_min_divisions_for_recip_mul): Change dereference of
8195         aarch64_tune_params to member access.
8196         (aarch64_reassociation_width): Likewise.
8197         (aarch64_rtx_mult_cost): Likewise.
8198         (aarch64_address_cost): Likewise.
8199         (aarch64_branch_cost): Likewise.
8200         (aarch64_rtx_costs): Likewise.
8201         (aarch64_register_move_cost): Likewise.
8202         (aarch64_memory_move_cost): Likewise.
8203         (aarch64_sched_issue_rate): Likewise.
8204         (aarch64_builtin_vectorization_cost): Likewise.
8205         (aarch64_override_options): Take a copy of the selected tuning
8206         struct in to aarch64_tune_params, rather than just setting
8207         a pointer, change dereferences of aarch64_tune_params to member
8208         accesses.
8209         (aarch64_override_options_after_change): Change dereferences of
8210         aarch64_tune_params to member access.
8211         (aarch64_macro_fusion_p): Likewise.
8212         (aarch_macro_fusion_pair_p): Likewise.
8213         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8215 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8217         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8218         (aarch64_tune_flags): Likewise.
8219         (AARCH64_TUNE_FMA_STEERING): Likewise.
8220         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8221         to AARCH64_FL_USE_FMA_STEERING_PASS.
8222         (cortex-a57.cortex-a53): Likewise.
8223         (cortex-a72): Use cortexa72_tunings.
8224         (cortex-a72.cortex-a53): Likewise.
8225         (exynos-m1): Likewise.
8226         * config/aarch64/aarch64-protos.h (tune_params): Add
8227         a field: extra_tuning_flags.
8228         * config/aarch64/aarch64-tuning-flags.def: New.
8229         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8230         (aarch64_extra_tuning_flags): Likewise.
8231         (aarch64_tune_params): Declare here.
8232         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8233         (cortexa53_tunings): Likewise.
8234         (cortexa57_tunings): Likewise.
8235         (thunderx_tunings): Likewise.
8236         (xgene1_tunings): Likewise.
8237         (cortexa72_tunings): New.
8238         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8239          (gate): Check against aarch64_tune_params.
8240         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8241         aarch64-protos.h.
8243 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8245         * config/aarch64/aarch64-fusion-pairs.def: New.
8246         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8247         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8248         aarch64_fusion_pairs.
8249         (AARCH64_FUSE_MOV_MOVK): Likewise.
8250         (AARCH64_FUSE_ADRP_ADD): Likewise.
8251         (AARCH64_FUSE_MOVK_MOVK): Likewise.
8252         (AARCH64_FUSE_ADRP_LDR): Likewise.
8253         (AARCH64_FUSE_CMP_BRANCH): Likewise.
8255 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8257         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8258         SYMBOL_SMALL_GOT_28K.
8259         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8260         relocation modifiers.
8261         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8262         (ldr_got_small_28k_<mode>): New.
8263         (ldr_got_small_28k_sidi): New.
8264         * config/aarch64/iterators.md (got_modifier): New mode iterator.
8265         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8266         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8267         SYMBOL_SMALL_GOT_28K.
8268         (aarch64_rtx_costs): Add costs for new instruction sequences.
8269         (initialize_aarch64_code_model): Initialize new model.
8270         (aarch64_classify_symbol): Recognize new model and new symbol classification.
8271         (aarch64_asm_preferred_eh_data_format): Support new model.
8272         (aarch64_load_symref_appropriately): Generate new instruction
8273         sequences for -fpic.
8274         (TARGET_USE_PSEUDO_PIC_REG): New definition.
8275         (aarch64_use_pseudo_pic_reg): New function.
8277 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8279         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8280         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8281         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8282         (aarch64_expand_mov_immediate): Ditto.
8283         (aarch64_print_operand): Ditto.
8284         (aarch64_classify_symbol): Ditto.
8286 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8288         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8290 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
8292         PR bootstrap/66638
8293         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8294         assertion failed.  Remove assertion itself.
8296 2015-06-26  Richard Biener  <rguenther@suse.de>
8298         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8299         and -A CMP CST -> A CMP -CST which is redundant with a pattern
8300         in match.pd.
8301         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8302         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8303         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8304         * match.pd: ... patterns here.
8306 2015-06-26  Marek Polacek  <polacek@redhat.com>
8308         * match.pd ((x | y) & ~(x & y) -> x ^ y,
8309         (x | y) & (~x ^ y) -> x & y): New patterns.
8311 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8313         * rtl.h (emit): Add an optional boolean parameter to control
8314         whether barriers are emitted.
8315         * emit-rtl.c (emit): Likewise.
8316         * gensupport.c (get_emit_function): Return null rather than "emit".
8317         * genemit.c (gen_emit_seq): Handle the null return value.
8318         Don't emit barriers after the final instruction in the sequence.
8319         * gentarget-def.c (main): Don't emit barriers after the instruction.
8321 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8323         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8324         TARGET_UNIFIED_ASM.
8326 2015-06-26  Richard Biener  <rguenther@suse.de>
8328         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8330 2015-06-26  Richard Biener  <rguenther@suse.de>
8332         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8333         irrespective on whether the inner operation has a single use
8334         of both off are constant.
8336 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
8337             Segher Boessenkool  <segher@kernel.crashing.org>
8339         PR target/66412
8340         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8341         before doing PUT_MODE or PUT_CODE on operands to avoid
8342         in-place RTX modification.
8344 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8346         * gentarget-def.c (def_target_insn): Cast return of strtol to
8347         unsigned int.
8349 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8351         * gimple.h (gimple_call_set_fn): Move inline function.
8352         * gimple.c (gimple_call_set_fn): Relocate here.
8354 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
8356         PR target/65979
8357         PR target/66611
8358         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8359         the replacement insn will work.
8361 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8363         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8364         by default.
8366 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8368         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8369         * cgraph.h: Include ipa-ref.h and plugin-api.h.
8370         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8371         (symtab_node::address_can_be_compared_p): Move function.
8372         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8373         definition here.
8374         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8375         * auto-profile.c: Likewise.
8376         * bb-reorder.c: Likewise.
8377         * builtins.c: Likewise.
8378         * calls.c: Likewise.
8379         * cfgexpand.c: Likewise.
8380         * cgraphbuild.c: Likewise.
8381         * cgraphclones.c: Likewise.
8382         * cgraphunit.c: Likewise.
8383         * combine.c: Likewise.
8384         * coverage.c: Likewise.
8385         * data-streamer-in.c: Likewise.
8386         * data-streamer-out.c: Likewise.
8387         * data-streamer.c: Likewise.
8388         * dbxout.c: Likewise.
8389         * dwarf2out.c: Likewise.
8390         * except.c: Likewise.
8391         * expr.c: Likewise.
8392         * final.c: Likewise.
8393         * fold-const.c: Likewise.
8394         * ggc-page.c: Likewise.
8395         * gimple-fold.c: Likewise.
8396         * gimple-iterator.c: Likewise.
8397         * gimple-pretty-print.c: Likewise.
8398         * gimple-streamer-in.c: Likewise.
8399         * gimple-streamer-out.c: Likewise.
8400         * gimple.c: Likewise.
8401         * gimplify.c: Likewise.
8402         * ipa-chkp.c: Likewise.
8403         * ipa-comdats.c: Likewise.
8404         * ipa-cp.c: Likewise.
8405         * ipa-devirt.c: Likewise.
8406         * ipa-icf-gimple.c: Likewise.
8407         * ipa-icf.c: Likewise.
8408         * ipa-inline-analysis.c: Likewise.
8409         * ipa-inline-transform.c: Likewise.
8410         * ipa-inline.c: Likewise.
8411         * ipa-polymorphic-call.c: Likewise.
8412         * ipa-profile.c: Likewise.
8413         * ipa-prop.c: Likewise.
8414         * ipa-pure-const.c: Likewise.
8415         * ipa-ref.c: Likewise.
8416         * ipa-reference.c: Likewise.
8417         * ipa-split.c: Likewise.
8418         * ipa-utils.c: Likewise.
8419         * ipa-visibility.c: Likewise.
8420         * ipa.c: Likewise.
8421         * langhooks.c: Likewise.
8422         * lto-cgraph.c: Likewise.
8423         * lto-compress.c: Likewise.
8424         * lto-opts.c: Likewise.
8425         * lto-section-in.c: Likewise.
8426         * lto-section-out.c: Likewise.
8427         * lto-streamer-in.c: Likewise.
8428         * lto-streamer-out.c: Likewise.
8429         * lto-streamer.c: Likewise.
8430         * omp-low.c: Likewise.
8431         * opts-global.c: Likewise.
8432         * passes.c: Likewise.
8433         * predict.c: Likewise.
8434         * print-tree.c: Likewise.
8435         * profile.c: Likewise.
8436         * ree.c: Likewise.
8437         * sanopt.c: Likewise.
8438         * stor-layout.c: Likewise.
8439         * symtab.c: Likewise.
8440         * toplev.c: Likewise.
8441         * trans-mem.c: Likewise.
8442         * tree-cfg.c: Likewise.
8443         * tree-chkp.c: Likewise.
8444         * tree-eh.c: Likewise.
8445         * tree-emutls.c: Likewise.
8446         * tree-inline.c: Likewise.
8447         * tree-nested.c: Likewise.
8448         * tree-parloops.c: Likewise.
8449         * tree-pretty-print.c: Likewise.
8450         * tree-profile.c: Likewise.
8451         * tree-sra.c: Likewise.
8452         * tree-ssa-alias.c: Likewise.
8453         * tree-ssa-live.c: Likewise.
8454         * tree-ssa-loop-ivcanon.c: Likewise.
8455         * tree-ssa-loop-ivopts.c: Likewise.
8456         * tree-ssa-pre.c: Likewise.
8457         * tree-ssa-sccvn.c: Likewise.
8458         * tree-ssa-strlen.c: Likewise.
8459         * tree-ssa-structalias.c: Likewise.
8460         * tree-streamer-in.c: Likewise.
8461         * tree-streamer-out.c: Likewise.
8462         * tree-streamer.c: Likewise.
8463         * tree-switch-conversion.c: Likewise.
8464         * tree-tailcall.c: Likewise.
8465         * tree-vect-data-refs.c: Likewise.
8466         * tree-vect-stmts.c: Likewise.
8467         * tree-vectorizer.c: Likewise.
8468         * tree.c: Likewise.
8469         * tsan.c: Likewise.
8470         * ubsan.c: Likewise.
8471         * value-prof.c: Likewise.
8472         * varasm.c: Likewise.
8473         * varpool.c: Likewise.
8474         * config/arm/arm.c: Likewise.
8475         * config/bfin/bfin.c: Likewise.
8476         * config/c6x/c6x.c: Likewise.
8477         * config/cris/cris.c: Likewise.
8478         * config/darwin-c.c: Likewise.
8479         * config/darwin.c: Likewise.
8480         * config/i386/i386.c: Likewise.
8481         * config/i386/winnt.c: Likewise.
8482         * config/microblaze/microblaze.c: Likewise.
8483         * config/mips/mips.c: Likewise.
8484         * config/rs6000/rs6000.c: Likewise.
8485         * config/rx/rx.c: Likewise.
8486         * config/s390/s390.c: Likewise.
8487         * config/tilegx/mul-tables.c: Likewise.
8489 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8491         * config/aarch64/aarch64.c, config/alpha/alpha.c,
8492         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8493         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8494         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8495         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8496         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8497         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8498         config/microblaze/microblaze.c, config/mips/mips.c,
8499         config/mmix/mmix.c, config/mn10300/mn10300.c,
8500         config/moxie/moxie.c, config/msp430/msp430.c,
8501         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8502         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8503         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8504         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8505         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8506         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8507         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8508         target-def.h include.
8509         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
8511 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8513         * Makefile.in (TARGET_DEF): Add target-insns.def.
8514         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8515         (build/gentarget-def.o): New rule.
8516         (genprogrtl): Add target-def.
8517         * target-insns.def, gentarget-def.c: New files.
8518         * target.def: Add targetm.have_* and targetm.gen_* hooks,
8519         based on the contents of target-insns.def.
8520         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8521         (HAVE_return, gen_return): Delete.
8522         * target-def.h: Include insn-target-def.h.
8523         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8524         instead of direct calls.  Rely on them to do the appropriate assertions.
8525         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
8526         (convert_jumps_to_returns): Use targetm interface instead of
8527         direct calls.
8528         (thread_prologue_and_epilogue_insns): Likewise.
8529         * reorg.c (find_end_label, dbr_schedule): Likewise.
8530         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8531         * shrink-wrap.c (convert_to_simple_return): Likewise.
8532         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8534 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8536         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8537         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8538         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8539         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8540         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8541         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8542         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8543         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8544         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8545         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8546         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8547         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8548         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8549         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8550         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8551         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8552         includes to end.
8554 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8556         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8557         (unbounded_int_hashmap_traits::key_type): Likewise.
8558         * hash-map.h (hash_map): Get the key type from the traits.
8559         * hash-traits.h (default_hash_traits): By default, inherit from the
8560         template parameter.
8561         * alias.c (alias_set_traits): Delete.
8562         (alias_set_entry_d::children): Use alias_set_hash as the first
8563         template parameter.
8564         (record_alias_subset): Update accordingly.
8565         * except.c (tree_hash_traits): Delete.
8566         (type_to_runtime_map): Use tree_hash as the first template parameter.
8567         (init_eh): Update accordingly.
8568         * genmatch.c (capture_id_map_hasher): Delete.
8569         (cid_map_t): Use nofree_string_hash as first template parameter.
8570         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8571         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8572         Use symbol_compare_hash as the first template parameter in
8573         subdivide_hash_map.
8574         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8575         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8576         template parameter.
8577         * passes.c (pass_registry_hasher): Delete.
8578         (name_to_pass_map): Use nofree_string_hash as the first template
8579         parameter.
8580         (register_pass_name): Update accordingly.
8581         * sanopt.c (sanopt_tree_map_traits): Delete.
8582         (sanopt_tree_triplet_map_traits): Delete.
8583         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8584         template parameter.
8585         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8586         the first template parameter.
8587         * sese.c (rename_map_hasher): Delete.
8588         (rename_map_type): Use tree_ssa_name_hash as the first template
8589         parameter.
8590         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8591         (function_summary::m_map): Use map_hash as the first template
8592         parameter.
8593         (function_summary::release): Update accordingly.
8594         * tree-if-conv.c (phi_args_hash_traits): Delete.
8595         (predicate_scalar_phi): Use tree_operand_hash as the first template
8596         parameter to phi_arg_map.
8597         * tree-inline.h (dependence_hasher): Delete.
8598         (copy_body_data::dependence_map): Use dependence_hash as the first
8599         template parameter.
8600         * tree-inline.c (remap_dependence_clique): Update accordingly.
8601         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8602         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8603         parameter.
8604         (addr_stridxptr): Update accordingly.
8605         * value-prof.c (profile_id_traits): Delete.
8606         (cgraph_node_map): Use profile_id_hash as the first template
8607         parameter.
8608         (init_node_map): Update accordingly.
8609         * config/alpha/alpha.c (string_traits): Delete.
8610         (machine_function::links): Use nofree_string_hash as the first
8611         template parameter.
8612         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
8613         * config/m32c/m32c.c (pragma_traits): Delete.
8614         (pragma_htab): Use nofree_string_hash as the first template parameter.
8615         (m32c_note_pragma_address): Update accordingly.
8616         * config/mep/mep.c (pragma_traits): Delete.
8617         (pragma_htab): Use nofree_string_hash as the first template parameter.
8618         (mep_note_pragma_flag): Update accordingly.
8619         * config/mips/mips.c (mips16_flip_traits): Delete.
8620         (mflip_mips16_htab): Use nofree_string_hash as the first template
8621         parameter.
8622         (mflip_mips16_use_mips16_p): Update accordingly.
8623         (local_alias_traits): Delete.
8624         (mips16_local_aliases): Use nofree_string_hash as the first template
8625         parameter.
8626         (mips16_local_alias): Update accordingly.
8628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8630         * hash-map-traits.h (default_hashmap_traits): Delete.
8632 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8634         * hash-map-traits.h (unbounded_hashmap_traits): New class.
8635         (unbounded_int_hashmap_traits): Likewise.
8636         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
8638 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8640         * ipa-icf.h (symbol_compare_hash): New class.
8641         (symbol_compare_hashmap_traits): Use it.
8642         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
8643         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
8644         (mem_alloc_description::reverse_mem_map_t): Remove redundant
8645         default_hashmap_traits.
8646         * sanopt.c (sanopt_tree_triplet_hash): New class.
8647         (sanopt_tree_triplet_map_traits): Use it.
8649 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8651         * gengtype-parse.c (require_template_declaration): Allow '+' in
8652         template parameters.  Consolidate cases.
8653         * hash-traits.h (int_hash): New class.
8654         * alias.c (alias_set_hash): New structure.
8655         (alias_set_traits): Use it.
8656         * symbol-summary.h (function_summary::map_hash): New class.
8657         (function_summary::summary_hashmap_traits): Use it.
8658         * tree-inline.h (dependence_hash): New class.
8659         (dependence_hasher): Use it.
8660         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
8661         * value-prof.c (profile_id_hash): New class.
8662         (profile_id_traits): Use it.
8664 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8666         * config/mips/mips.c (mips16_flip_traits): Use it.
8667         (local_alias_traits, mips16_local_aliases): Convert from a map of
8668         rtxes to a map of symbol names.
8669         (mips16_local_alias): Update accordingly.
8671 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8673         * hash-traits.h (string_hash, nofree_string_hash): New classes.
8674         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
8675         * passes.c (pass_registry_hasher): Likewise.
8676         * config/alpha/alpha.c (string_traits): Likewise.
8677         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
8678         * config/m32c/m32c.c (pragma_traits): Likewise.
8679         * config/mep/mep.c (pragma_traits): Likewise.
8681 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8683         * tree-hash-traits.h (tree_hash): New class.
8684         * except.c: Include tree-hash-traits.h.
8685         (tree_hash_traits): Use tree_hash.
8687 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8689         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
8690         * sese.c: Include tree-hash-traits.h.
8691         (rename_map_hasher): Use tree_ssa_name_hasher.
8693 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8695         * tree-hash-traits.h (tree_decl_hash): New class.
8696         * tree-ssa-strlen.c: Include tree-hash-traits.h.
8697         (stridxlist_hash_traits): Use tree_decl_hash.
8699 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8701         * tree-hash-traits.h: New file.
8702         (tree_operand_hash): New class.
8703         * sanopt.c: Include tree-hash-traits.h.
8704         (sanopt_tree_map_traits): Use tree_operand_hash.
8705         * tree-if-conv.c: Include tree-hash-traits.h.
8706         (phi_args_hash_traits): Use tree_operand_hash.
8707         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
8708         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
8710 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8712         * hash-map-traits.h: Include hash-traits.h.
8713         (simple_hashmap_traits): New class.
8714         * mem-stats.h (hash_map): Change the default traits to
8715         simple_hashmap_traits<default_hash_traits<Key> >.
8717 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8719         * hash-table.h: Update comments.
8721 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8723         * hash-traits.h (default_hash_traits): New structure.
8724         * hash-set.h (default_hashset_traits): Delete.
8725         (hash_set): Use default_hash_traits<Key> instead of
8726         default_hashset_traits.  Delete hash_entry type and use Key directly.
8727         * ipa-devirt.c (pair_traits): Delete.
8728         (default_hash_traits <type_pair>): Override.
8729         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
8730         (odr_types_equivalent_p, add_type_duplicate): Likewise.
8732 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8734         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
8736 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8738         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
8739         (has_is_empty, is_empty_helper): Delete.
8740         (has_mark_deleted, mark_deleted_helper): Delete.
8741         (has_mark_empty, mark_empty_helper): Delete.
8742         (hash_table::is_deleted): Call the Descriptor unconditionally.
8743         (hash_table::is_empty): Likewise.
8744         (hash_table::mark_deleted): Likewise.
8745         (hash_table::mark_empty): Likewise.
8747 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8749         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
8750         redundant typedefs and members.
8751         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
8752         redundant typedefs.
8753         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
8754         * ipa-devirt.c (odr_name_hasher): Likewise.
8755         (polymorphic_call_target_hasher): Likewise.
8756         * ira-costs.c (cost_classes_hasher): Likewise.
8757         * statistics.c (stats_counter_hasher): Likewise.
8758         * trans-mem.c (log_entry_hasher): Likewise.
8759         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
8760         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
8761         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
8762         * var-tracking.c (variable_hasher): Likewise.
8763         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
8764         Remove redundant typedefs and members.
8766 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8768         * hash-traits.h (ggc_cache_hasher): Rename to...
8769         (ggc_cache_remove): ...this and remove typedefs.
8770         (ggc_cache_ptr_hash): New class.
8771         * hash-table.h: Update commentary.
8772         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
8773         rather than ggc_cache_hasher.
8774         (const_wide_int_hasher, reg_attr_hasher): Likewise.
8775         (const_double_hasher, const_fixed_hasher): Likewise.
8776         * function.c (insn_cache_hasher): Likewise.
8777         * trans-mem.c (tm_wrapper_hasher): Likewise.
8778         * tree.h (tree_decl_map_cache_hasher): Likewise.
8779         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
8780         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
8781         * ubsan.c (tree_type_map_cache_hasher): Likewise.
8782         * varasm.c (tm_clone_hasher): Likewise.
8783         * config/i386/i386.c (dllimport_hasher): Likewise.
8784         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
8785         (tree_hasher): Likewise.
8787 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8789         * hash-traits.h (ggc_hasher): Rename to...
8790         (ggc_remover): ...this and remove typedefs.
8791         (ggc_cache_hasher): Update accordingly.  Add typedefs.
8792         (ggc_ptr_hash): New class.
8793         * hash-table.h: Update comment.
8794         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
8795         ggc_hasher.
8796         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
8797         (tree_descriptor_hasher): Likewise.
8798         * cgraph.c (function_version_hasher): Likewise.
8799         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
8800         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
8801         (dw_loc_list_hasher, addr_hasher): Likewise.
8802         * function.h (used_type_hasher): Likewise.
8803         * function.c (temp_address_hasher): Likewise.
8804         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
8805         * libfuncs.h (libfunc_hasher): Likewise.
8806         * lto-streamer.h (decl_state_hasher): Likewise.
8807         * optabs.c (libfunc_decl_hasher): Likewise.
8808         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
8809         * varasm.c (section_hasher, object_block_hasher): Likewise.
8810         (const_rtx_desc_hasher): Likewise.
8811         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
8812         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
8814 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8816         * hash-traits.h (free_ptr_hash): New class.
8817         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
8818         rather than typed_free_remove.  Remove redudant typedefs.
8819         (external_ref_hasher): Likewise.
8820         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
8821         (ehspec_hasher): Likewise.
8822         * ggc-common.c (saving_hasher): Likewise.
8823         * gimplify.c (gimplify_hasher): Likewise.
8824         * haifa-sched.c (delay_i2_hasher): Likewise.
8825         * loop-invariant.c (invariant_expr_hasher): Likewise.
8826         * loop-iv.c (biv_entry_hasher): Likewise.
8827         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
8828         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
8829         * tree-cfg.c (locus_discrim_hasher): Likewise.
8830         * tree-eh.c (finally_tree_hasher): Likewise.
8831         * tree-into-ssa.c (var_info_hasher): Likewise.
8832         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
8833         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
8834         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
8835         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
8836         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
8837         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
8838         (shared_bitmap_hasher): Likewise.
8839         * tree-ssa-threadupdate.c (redirection_data): Likewise.
8840         * tree-vectorizer.h (peel_info_hasher): Likewise.
8841         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
8842         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
8844 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8846         * hash-table.h: Update comments.
8847         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
8848         (nofree_ptr_hash): New class.
8849         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
8850         than typed_noop_remove.  Remove redudant typedefs.
8851         * attribs.c (attribute_hasher): Likewise.
8852         * cfg.c (bb_copy_hasher): Likewise.
8853         * cselib.c (cselib_hasher): Likewise.
8854         * dse.c (invariant_group_base_hasher): Likewise.
8855         * dwarf2cfi.c (trace_info_hasher): Likewise.
8856         * dwarf2out.c (macinfo_entry_hasher): Likewise.
8857         (comdat_type_hasher, loc_list_hasher): Likewise.
8858         * gcse.c (pre_ldst_expr_hasher): Likewise.
8859         * genmatch.c (id_base): Likewise.
8860         * genrecog.c (test_pattern_hasher): Likewise.
8861         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
8862         * haifa-sched.c (delay_i1_hasher): Likewise.
8863         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
8864         * ipa-icf.h (congruence_class_group_hash): Likewise.
8865         * ipa-profile.c (histogram_hash): Likewise.
8866         * ira-color.c (allocno_hard_regs_hasher): Likewise.
8867         * lto-streamer.h (string_slot_hasher): Likewise.
8868         * lto-streamer.c (tree_entry_hasher): Likewise.
8869         * plugin.c (event_hasher): Likewise.
8870         * postreload-gcse.c (expr_hasher): Likewise.
8871         * store-motion.c (st_expr_hasher): Likewise.
8872         * tree-sra.c (uid_decl_hasher): Likewise.
8873         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
8874         (ssa_name_var_hash): Likewise.
8875         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
8876         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
8877         * tree-ssa-pre.c (pre_expr_d): Likewise.
8878         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
8879         * vtable-verify.h (registration_hasher): Likewise.
8880         * vtable-verify.c (vtbl_map_hasher): Likewise.
8881         * config/arm/arm.c (libcall_hasher): Likewise.
8882         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
8883         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
8884         * config/sol2.c (comdat_entry_hasher): Likewise.
8885         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
8886         (print_fold_checksum, fold_checksum_tree): Likewise.
8887         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
8888         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
8889         (fold_build_call_array_loc): Likewise.
8890         * tree-ssa-ccp.c (gimple_htab): Likewise.
8891         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
8892         rather than pointer_type.
8894 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8896         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
8897         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
8899 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8901         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
8902         (ggc_hasher::ggc_mx): Likewise.
8903         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
8904         that duplicate ggc_hasher ones.
8906 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8908         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
8909         (gt_cleare_cache): Check here for deleted and empty entries.
8910         Replace handle_cache_entry with a call to keep_cache_entry.
8911         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
8912         (ggc_cache_hasher::keep_cache_entry): New function.
8913         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
8914         (tm_wrapper_hasher::keep_cache_entry): New function.
8915         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
8916         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
8917         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
8918         (type_cache_hasher::keep_cache_entry): New function.
8919         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
8920         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
8921         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
8922         (tree_type_map_cache_hasher::keep_cache_entry): New function.
8923         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
8924         (tm_clone_hasher::keep_cache_entry): New function.
8925         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
8926         (dllimport_hasher::keep_cache_entry): New function.
8928 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8930         * hash-table.h: Include hash-traits.h.
8931         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
8932         (ggc_cache_hasher): Move to...
8933         * hash-traits.h: ...this new file.
8935 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8937         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
8938         struct cl_optimization.
8939         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
8940         * tree.c (make_node_stat): Allocate cl_optimization struct.
8941         (copy_node_stat): Allocate and copy cl_optimization struct.
8943 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8945         * function.h (struct incoming_args): Move struct.
8946         (pass_by_reference, reference_callee_copied): Remove prototypes.
8947         * emit-rtl.h (struct incoming_args): Relocate struct here.
8948         * calls.h (pass_by_reference, reference_callee_copied): Relocate
8949         prototypes here.
8950         * function.c (pass_by_reference, reference_callee_copied): Move.
8951         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
8952         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
8953         * ipa-chkp.c: Include calls.h.
8955 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
8957         * alias.h (alias_set_type): Move typedef.
8958         * coretypes.h (alias_set_type): Relocate typedef here.
8959         * rtl.h: Don't include alias.h.
8961 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8963         * cgraph.h (cgraph_rtl_info): Move to rtl.h
8964         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
8965         and instance.
8966         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
8967         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
8968         doesn't exist.
8969         * calls.c: Include hard-reg-set.h before rtl.h.
8970         * ira.c: Likewise.
8972 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
8973             Vladimir Makarov  <vmakarov@redhat.com>
8975         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
8976         Add assert.
8978 2015-06-25  Richard Biener  <rguenther@suse.de>
8980         * fold-const.c (fold_binary_loc): Move simplification of
8981         (X <<>> C1) & C2 ...
8982         * match.pd: ... here.
8984 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
8986         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
8988 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8990         * match.pd: Add patterns for vec_conds between 1 and 0.
8992 2015-06-25  Richard Biener  <rguenther@suse.de>
8994         * tree-vect-stmts.c (vectorizable_conversion): Do not set
8995         STMT_VINFO_VEC_STMT for SLP.
8996         (vectorizable_store): Likewise.
8997         (vectorizable_load): Likewise.
8998         (vect_transform_stmt): Catch SLP vectorization clobbering
8999         STMT_VINFO_VEC_STMT.
9001 2015-06-25  Richard Biener  <rguenther@suse.de>
9003         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9004         dumping.
9005         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9006         cleanup resulting dead code and parameters.
9007         (vect_transform_slp_perm_load): Adjust.
9009 2015-06-25  Nick Clifton  <nickc@redhat.com>
9011         * config/bfin/bfin.c (bfin_expand_prologue): Set
9012         current_function_static_stack_size if flag_stack_usage_info is set.
9013         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9014         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9015         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9016         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9018 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9020         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9021         comment that the generated IV is unsigned.
9023 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9025         PR target/29693
9026         * config/arm/arm.c (arm_dbx_register_number): Return
9027         DWARF_FRAME_REGISTERS by default.
9029 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9031         * dominance.c (calculate_dominance_info): Fix verify_dominators call
9032         argument.  Call verify_dominator when reusing dominator info.
9034 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9036         PR target/66563
9037         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9038         an additional element of the unspec vector.  Modify indices
9039         of operands.
9040         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9041         * config/sh/sh.c (prepare_move_operands): Pass incremented
9042         const_int to gen_GOTaddr2picreg.
9043         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9045 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9047         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9048         Condition on TARGET_FLOAT.
9050 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9052         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9053         and (no)crypto.
9055 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9057         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9059         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9060         aarch64_err_no_fpadvsimd.
9062         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9063         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9064         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9065         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9066         Turn error into assert, test TARGET_FLOAT.
9067         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9068         TARGET_FLOAT.
9070 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
9072         PR debug/66482
9073         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9075 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9077         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9079 2015-06-24 Renlin Li <renlin.li@arm.com>
9081         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9082         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9084 2015-06-24  Richard Biener  <rguenther@suse.de>
9086         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9087         (main): Likewise.
9088         (lower_opt_convert): Support lowering of conditional view_convert.
9089         (parser::parse_operation): Likewise.
9090         (parser::parse_for): Likewise.
9092 2015-06-24  Renlin Li  <renlin.li@arm.com>
9094         * varasm.c (emit_local): Use unsigned int for align variable.
9096 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9098         PR target/63408
9099         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9100         for negative numbers.
9102 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9104         PR rtl-optimization/66306
9105         * reload.c (find_reloads): Swap the match_dup info for
9106         commutative operands.
9108 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9110         * config/s390/vx-builtins.md
9111         ("vec_scatter_element<mode>_<non_vec_int>")
9112         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9113         attribute with bhfgq.
9115 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9117         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9119 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9121         * config/s390/s390-builtin-types.def: Add flag to indicate the
9122         options under which the function type is needed.
9123         * config/s390/s390-builtins.def: Add flag to indicate the options
9124         under which the builtin is enabled.
9125         * config/s390/s390-builtins.h: Add flags parameter to macro
9126         definitions.
9127         (bflags_for_builtin): New function.
9128         (flags_for_builtin): Renamed to ...
9129         (opflags_for_builtin): ... this.
9130         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9131         flags_for_builtin to bflags_for_builtin and
9132         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9133         * config/s390/s390.c: Add initialization of bflags_builtin and
9134         opflags_builtin arrays.
9135         Remove code for flags_builtin.
9136         (s390_init_builtins): Only create builtin function types if one of
9137         their flags is active.
9138         Only create builtins if all of their flags are active.
9139         (s390_expand_builtin): Rename flags_for_builtin to
9140         opflags_for_builtin.
9142 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9144         * config/s390/vecintrin.h: Remove internal builtins.
9146 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9148         * config/s390/s390.c (s390_secondary_reload): Fix check for
9149         GENERAL_REGS register class.
9151 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9153         * config/s390/s390.c (s390_support_vector_misalignment): Call
9154         default implementation for !TARGET_VX.
9156 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9158         * config/s390/s390.c (s390_legitimate_constant_p): Add
9159         TARGET_VX check.
9161 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9163         * config/s390/s390.c (s390_vector_abi): New variable definition.
9164         (s390_check_type_for_vector_abi): New function.
9165         (TARGET_ASM_FILE_END): New macro definition.
9166         (s390_asm_file_end): New function.
9167         (s390_function_arg): Call s390_check_type_for_vector_abi.
9168         (s390_gimplify_va_arg): Likewise.
9169         * configure: Regenerate.
9170         * configure.ac: Check for .gnu_attribute Binutils feature.
9172 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
9174         PR target/65803
9175         * config/bfin/bfin.c (hwloop_optimize): Initialize
9176         JUMP_LABEL for newly created jump.
9178 2015-06-23  Tristan Gingold  <gingold@adacore.com>
9180         * collect-utils.c (collect_wait): Unlink the response file here
9181         instead of...
9182         (do_wait): ...here.
9183         (utils_cleanup): ...and here.
9185 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9187         * df-scan.c: Don't include target-def.h.
9188         * targhooks.c: Likewise.
9189         * config/arm/arm-c.c: Likewise.
9190         * config/i386/i386-c.c: Likewise.
9191         * config/nds32/nds32-cost.c: Likewise.
9192         * config/nds32/nds32-fp-as-gp.c: Likewise.
9193         * config/nds32/nds32-intrinsic.c: Likewise.
9194         * config/nds32/nds32-isr.c: Likewise.
9195         * config/nds32/nds32-md-auxiliary.c: Likewise.
9196         * config/nds32/nds32-memory-manipulation.c: Likewise.
9197         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9198         * config/nds32/nds32-predicates.c: Likewise.
9200 2015-06-23  Richard Biener  <rguenther@suse.de>
9202         PR tree-optimization/66636
9203         * tree-vect-stmts.c (vectorizable_store): Properly compute the
9204         def type for further defs for strided stores.
9206 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
9208         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9209         conditional selects.
9210         (setcc_int<mode>, setcc_float<mode>): Reformat.
9212 2015-06-23  Marek Polacek  <polacek@redhat.com>
9214         * match.pd ((x + y) - (x | y) -> x & y,
9215         (x + y) - (x & y) -> x | y): New patterns.
9217 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
9219         PR 65711
9220         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9221         '-dynamic-linker' within %{!shared: ...}.
9223 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
9225         PR target/66560
9226         * config/i386/predicates.md (addsub_vm_operator): New predicate.
9227         (addsub_vs_operator): Ditto.
9228         (addsub_vs_parallel): Ditto.
9229         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9230         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9231         Put minus RTX before plus and adjust vec_merge selector.
9232         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9233         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9234         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9235         (addsub vec_merge splitters): New combiner splitters.
9236         (addsub vec_select/vec_concat splitters): Ditto.
9238 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
9240         PR tree-optimization/66449
9241         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9242         POINTER_PLUS_EXPR for pointers.
9244 2015-06-23  Alan Modra  <amodra@gmail.com>
9246         * rtlanal.c (commutative_operand_precedence): Correct comments.
9247         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9248         declaration.  Return an int.  Distinguish REG,REG return from
9249         others.
9250         (struct simplify_plus_minus_op_data): Make local to function.
9251         (simplify_plus_minus): Don't set canonicalized if merely sorting
9252         registers.  Avoid packing ops if nothing changes.  White space fixes.
9254 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9256         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9257         -fdump-ada-spec is passed but not if -fsyntax-only is.
9259 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
9261         PR bootstrap/63740
9262         * lra-lives.c (process_bb_lives): Check insn copying the same
9263         reload pseudo and don't create a copy for it.
9265 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9267         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9268         for cond_stmt.
9270 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9272         * builtins.def (DEF_GOMP_BUILTIN): Test
9273         'flag_tree_parallelize_loops > 1' instead of
9274         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
9276 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9278         * dominance.c (calculate_dominance_info): Verify dominators if
9279         early-out.
9281 2015-06-22  Marek Polacek  <polacek@redhat.com>
9283         * match.pd ((x ^ y) ^ (x | y) -> x & y,
9284         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9285         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9286         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9288 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
9290         PR target/65871
9291         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9292         cost of embedded comparison.
9294 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9296         PR target/65914
9297         * config/rs6000/predicates.md (altivec_register_operand): Permit
9298         virtual stack registers.
9299         (vsx_register_operand): Likewise.
9300         (vfloat_operand): Likewise.
9301         (vint_operand): Likewise.
9302         (vlogical_operand): Likewise.
9304 2015-06-22  Richard Biener  <rguenther@suse.de>
9306         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9307         and single_scalar_iteration_cost members.
9308         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9309         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9310         (vect_get_single_scalar_iteration_cost): Remove.
9311         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9312         Use LOOP_VINFO_SCALAR_ITERATION_COST.
9313         * tree-vect-loop.c (destroy_loop_vec_info): Free
9314         scalar_cost_vec.
9315         (vect_get_single_scalar_iteration_cost): Compute result into
9316         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9317         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
9318         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9319         (vect_estimate_min_profitable_iters): Use them.
9321 2015-06-22  Christian Bruel  <christian.bruel@st.com>
9323         PR target/52144
9324         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9325         (TARGET_INSERT_ATTRIBUTES): Define.
9326         (thumb_flipper): New var.
9327         * config/arm/arm.opt (-mflip-thumb): New switch.
9329 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9330             Martin Liska  <mliska@suse.cz>
9332         PR ipa/65908
9333         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9334         construction of arg_types.
9335         (sem_function::sem_function): Likewise.
9336         (sem_function::~sem_function): Remove destruction of arg_types.
9337         (sem_function::compatible_parm_types_p): New function.
9338         (sem_function::equals_wpa): Reorg matching of return values
9339         and parameter types.
9340         (sem_function::equals_private): Reorg mathcing of argument types.
9341         (sem_function::parse_tree_args): Remove.
9342         * ipa-icf.h (init_wpa): Do not call it.
9343         (parse_tree_args): Remove.
9344         (compatible_parm_types_p): Declare.
9345         (result_type): Remove.
9346         (arg_types): Remove.
9348 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9350         PR ipa/66351
9351         * ipa-polymorphic-call.c
9352         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9353         initializing alias oracle; fix formating; set base_alias_set if it
9354         is known.
9356 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9358         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9359         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9360         (find_inc): Likewise.
9361         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9362         swapping.
9363         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9364         * df-scan.c (df_swap_refs): Remove.
9365         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9366         * dominance.c (link_roots): Use std::swap instead of manually swapping.
9367         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9368         * fold-const.c (fold_relational_const): Likewise.
9369         * genattrtab.c (simplify_test_exp): Likewise.
9370         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9371         gimple_simplify): Likewise.
9372         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9373         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9374         * ipa-devirt.c (add_type_duplicate): Likewise.
9375         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9376         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9377         * lra.c (lra_create_copy): Likewise.
9378         * lto-streamer-out.c (DFS::DFS): Likewise.
9379         * modulo-sched.c (get_sched_window): Likewise.
9380         * omega.c (omega_pretty_print_problem): Likewise.
9381         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9382         * reload1.c (reloads_unique_chain_p): Likewise.
9383         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9384         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9385         use std::swap.
9386         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9387         manually swapping.
9388         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9389         predicate_mem_writes): Likewise.
9390         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9391         * tree-predcom.c (combine_chains): Likewise.
9392         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9393         refs_may_alias_p_1): Likewise.
9394         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9395         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9396         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9397         number_of_iterations_cond): Likewise.
9398         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9399         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9400         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9401         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9402         * tree-vrp.c (extract_range_from_binary_expr_1,
9403         extract_range_from_unary_expr_1): Likewise.
9405 2015-06-20  Marek Polacek  <polacek@redhat.com>
9407         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9409 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9411         PR target/66591
9412         * config/sh/sh.c (prepare_move_operands): Replace subreg
9413         index term with R0 for base and index addressing.
9415 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
9417         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9418         op1 is an fp zero.
9419         (movsf_aarch64): Change condition from register_operand to
9420         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
9421         load1.  Change type for alternative 7 to store1.
9422         (movdf_aarch64): Likewise.
9424 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
9426         * config/vax/vax.md: Adjust sign/zero extend patterns to
9427         handle SUBREGs in operands[1].
9429 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9431         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9432         of manually swapping.
9433         (expand_vec_perm_interleave2): Likewise.
9435 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
9437         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9438         reuse bounds created for abnormal ssa names.
9440 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
9442         * config/nvptx/nvptx.md (allocate_stack): Rename to...
9443         (allocate_stack_<mode>): ... this, and add :P on both
9444         match_operand and unspec.
9445         (allocate_stack): New expander.
9447 2015-06-19  Christian Bruel  <christian.bruel@st.com>
9449         PR target/66541
9450         PR target/52144
9451         * config/arm/arm.c (arm_set_current_function): Handle
9452         explicit default options.
9454 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9456         * config/i386/i386.md (*movsicc_noc_zext): New insn.
9457         (zero-extended cmove with mem peephole2): New pattern.
9458         (cmove with mem peephole2): Merge patterns.
9460 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
9462         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9464 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
9466         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9467         * config/mips/mips.md (*madd4<mode>): Ditto.
9468         (*nmadd3<mode>) Ditto.
9469         (*nmadd4<mode>_fastmath): Ditto.
9470         (*nmadd3<mode>_fastmath): Ditto.
9471         (*nmsub4<mode>): Ditto.
9472         (*nmsub3<mode>): Ditto.
9473         (*nmsub4<mode>_fastmath): Ditto.
9474         (*nmsub3<mode>_fastmath): Ditto.
9476 2015-06-18  Michael Matz  <matz@suse.de>
9478         PR middle-end/66253
9479         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9480         grouped strided stores.
9481         (vectorizable_load): Don't use the DR from first_stmt in
9482         the non-SLP grouped strided case.
9484 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9486         PR target/66569
9487         * function.c (assign_bounds): Add arguments assign_regs,
9488         assign_special, assign_bt.
9489         (assign_parms): For vararg functions handle bounds in BT
9490         and special slots after incoming vararg bounds.
9492 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9494         PR middle-end/66568
9495         * cfgexpand.c (expand_return): Handle missing bounds.
9496         (expand_gimple_stmt_1): Likewise.
9497         * tree-chkp.c (chkp_expand_zero_bounds): New.
9498         * tree-chkp.h (chkp_expand_zero_bounds): New.
9500 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9502         PR middle-end/66567
9503         * ipa-chkp.c (chkp_maybe_create_clone): Require
9504         functions to be instrumentable.
9505         * tree-chkp.c (chkp_replace_function_pointer): Use
9506         chkp_instrumentable_p instead of attribute check.
9508 2015-06-18  Richard Biener  <rguenther@suse.de>
9510         PR tree-optimization/66510
9511         * tree-vect-stmts.c (vectorizable_load): Properly compute the
9512         number of vector loads for SLP permuted loads.
9513         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9514         check the stride for loop vectorization.
9515         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9516         vectorization factor.
9517         (vect_analyze_group_access): If the group size is not a power
9518         of two require a epilogue loop.
9519         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9520         compute and optimizing and alias test pruning after final
9521         vectorization factor computation.
9522         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9523         vector alignment.
9524         (vect_transform_slp_perm_load): Properly compute the original
9525         number of vector load stmts.
9527 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9529         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9530         "unlikely character , in @var" warning.
9532 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
9534         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9535         (ix86_function_arg_advance): Ditto.
9536         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
9538 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9540         * function.h (struct rtl_data): Remove struct and accessor macros.
9541         * emit-rtl.h (struct rtl_data): Relocate to here.
9542         * Makefile.in (GTFILES): Add emit-rtl.h.
9543         * df-core.c: Include emit-rtl.h.
9544         * genattrtab.c: Likewise.
9545         * genconditions.c: Likewise.
9546         * genpreds.c: Likewise.
9547         * genrecog.c: Likewise.
9548         * regcprop.c: Likewise.
9549         * resource.c: Likewise.
9550         * sched-rgn.c: Likewise.
9551         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9552         * config/i386/winnt.c: Likewise.
9554 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
9556         PR middle-end/66429
9557         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9558         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
9559         and has_force_vectorize_loops flags from cfun into
9560         child_cfun.
9561         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9562         if simduid is non-NULL.
9563         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9564         * passes.def (pass_simduid_cleanup): Add new pass after loop
9565         passes.
9566         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9567         indirection from htab argument's type.
9568         (shrink_simd_arrays): New function.
9569         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
9570         Don't call adjust_simduid_builtins if there are no loops.
9571         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9572         (pass_simduid_cleanup::execute): New method.
9573         (make_pass_simduid_cleanup): New function.
9575 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
9577         * tree-core.h (tree_target_option): Make opts field a pointer to a
9578         cl_target_option instead of an instance of the struct.
9579         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9580         the structure.
9581         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9582         TARGET_OPTION_NODE.
9583         (copy_node_stat): Allocate and copy struct cl_target_option.
9585 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9587         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9588         Remove conditional exposure of prototypes.
9589         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9590         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
9591         definitions in tree.h with functions.
9592         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9593         anon_aggrname_p.
9594         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9596 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
9598         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9599         (*cmp<mode>_signed): ... this.
9600         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9601         (*cmp<mode>_unsigned): ... this.  Remove %b.
9603 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9605         * coretypes.h: Include input.h and as-a.h.
9606         * rtl.h: Include input.h and as-a.h for generator files.
9607         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9608         * vec.c: Don't include diagnostic-core.h.
9609         * alias.c: Do not include input.h, line-map.h or is-a.h.
9610         * asan.c: Likewise.
9611         * attribs.c: Likewise.
9612         * auto-inc-dec.c: Likewise.
9613         * auto-profile.c: Likewise.
9614         * bb-reorder.c: Likewise.
9615         * bt-load.c: Likewise.
9616         * builtins.c: Likewise.
9617         * caller-save.c: Likewise.
9618         * calls.c: Likewise.
9619         * ccmp.c: Likewise.
9620         * cfg.c: Likewise.
9621         * cfganal.c: Likewise.
9622         * cfgbuild.c: Likewise.
9623         * cfgcleanup.c: Likewise.
9624         * cfgexpand.c: Likewise.
9625         * cfghooks.c: Likewise.
9626         * cfgloop.c: Likewise.
9627         * cfgloop.h: Likewise.
9628         * cfgloopanal.c: Likewise.
9629         * cfgloopmanip.c: Likewise.
9630         * cfgrtl.c: Likewise.
9631         * cgraph.c: Likewise.
9632         * cgraphbuild.c: Likewise.
9633         * cgraphclones.c: Likewise.
9634         * cgraphunit.c: Likewise.
9635         * cilk-common.c: Likewise.
9636         * combine-stack-adj.c: Likewise.
9637         * combine.c: Likewise.
9638         * compare-elim.c: Likewise.
9639         * convert.c: Likewise.
9640         * coverage.c: Likewise.
9641         * cppbuiltin.c: Likewise.
9642         * cprop.c: Likewise.
9643         * cse.c: Likewise.
9644         * cselib.c: Likewise.
9645         * data-streamer-in.c: Likewise.
9646         * data-streamer-out.c: Likewise.
9647         * data-streamer.c: Likewise.
9648         * dbxout.c: Likewise.
9649         * dce.c: Likewise.
9650         * ddg.c: Likewise.
9651         * debug.c: Likewise.
9652         * df-core.c: Likewise.
9653         * df-problems.c: Likewise.
9654         * df-scan.c: Likewise.
9655         * df.h: Likewise.
9656         * dfp.c: Likewise.
9657         * diagnostic-core.h: Likewise.
9658         * diagnostic.c: Likewise.
9659         * dojump.c: Likewise.
9660         * dominance.c: Likewise.
9661         * domwalk.c: Likewise.
9662         * double-int.c: Likewise.
9663         * dse.c: Likewise.
9664         * dumpfile.c: Likewise.
9665         * dumpfile.h: Likewise.
9666         * dwarf2asm.c: Likewise.
9667         * dwarf2cfi.c: Likewise.
9668         * dwarf2out.c: Likewise.
9669         * emit-rtl.c: Likewise.
9670         * et-forest.c: Likewise.
9671         * except.c: Likewise.
9672         * explow.c: Likewise.
9673         * expmed.c: Likewise.
9674         * expr.c: Likewise.
9675         * final.c: Likewise.
9676         * fixed-value.c: Likewise.
9677         * fold-const.c: Likewise.
9678         * function.c: Likewise.
9679         * fwprop.c: Likewise.
9680         * gcc-plugin.h: Likewise.
9681         * gcse.c: Likewise.
9682         * generic-match-head.c: Likewise.
9683         * ggc-page.c: Likewise.
9684         * gimple-builder.c: Likewise.
9685         * gimple-expr.c: Likewise.
9686         * gimple-fold.c: Likewise.
9687         * gimple-iterator.c: Likewise.
9688         * gimple-low.c: Likewise.
9689         * gimple-match-head.c: Likewise.
9690         * gimple-pretty-print.c: Likewise.
9691         * gimple-ssa-isolate-paths.c: Likewise.
9692         * gimple-ssa-strength-reduction.c: Likewise.
9693         * gimple-streamer-in.c: Likewise.
9694         * gimple-streamer-out.c: Likewise.
9695         * gimple-streamer.h: Likewise.
9696         * gimple-walk.c: Likewise.
9697         * gimple.c: Likewise.
9698         * gimplify-me.c: Likewise.
9699         * gimplify.c: Likewise.
9700         * godump.c: Likewise.
9701         * graph.c: Likewise.
9702         * graphite-blocking.c: Likewise.
9703         * graphite-dependences.c: Likewise.
9704         * graphite-interchange.c: Likewise.
9705         * graphite-isl-ast-to-gimple.c: Likewise.
9706         * graphite-optimize-isl.c: Likewise.
9707         * graphite-poly.c: Likewise.
9708         * graphite-scop-detection.c: Likewise.
9709         * graphite-sese-to-poly.c: Likewise.
9710         * graphite.c: Likewise.
9711         * haifa-sched.c: Likewise.
9712         * hw-doloop.c: Likewise.
9713         * ifcvt.c: Likewise.
9714         * init-regs.c: Likewise.
9715         * input.c: Likewise.
9716         * internal-fn.c: Likewise.
9717         * ipa-chkp.c: Likewise.
9718         * ipa-comdats.c: Likewise.
9719         * ipa-cp.c: Likewise.
9720         * ipa-devirt.c: Likewise.
9721         * ipa-icf-gimple.c: Likewise.
9722         * ipa-icf.c: Likewise.
9723         * ipa-inline-analysis.c: Likewise.
9724         * ipa-inline-transform.c: Likewise.
9725         * ipa-inline.c: Likewise.
9726         * ipa-polymorphic-call.c: Likewise.
9727         * ipa-profile.c: Likewise.
9728         * ipa-prop.c: Likewise.
9729         * ipa-pure-const.c: Likewise.
9730         * ipa-ref.c: Likewise.
9731         * ipa-reference.c: Likewise.
9732         * ipa-split.c: Likewise.
9733         * ipa-utils.c: Likewise.
9734         * ipa-visibility.c: Likewise.
9735         * ipa.c: Likewise.
9736         * ira-build.c: Likewise.
9737         * ira-color.c: Likewise.
9738         * ira-conflicts.c: Likewise.
9739         * ira-costs.c: Likewise.
9740         * ira-emit.c: Likewise.
9741         * ira-lives.c: Likewise.
9742         * ira.c: Likewise.
9743         * jump.c: Likewise.
9744         * langhooks.c: Likewise.
9745         * lcm.c: Likewise.
9746         * loop-doloop.c: Likewise.
9747         * loop-init.c: Likewise.
9748         * loop-invariant.c: Likewise.
9749         * loop-iv.c: Likewise.
9750         * loop-unroll.c: Likewise.
9751         * lower-subreg.c: Likewise.
9752         * lra-assigns.c: Likewise.
9753         * lra-coalesce.c: Likewise.
9754         * lra-constraints.c: Likewise.
9755         * lra-eliminations.c: Likewise.
9756         * lra-lives.c: Likewise.
9757         * lra-remat.c: Likewise.
9758         * lra-spills.c: Likewise.
9759         * lra.c: Likewise.
9760         * lto-cgraph.c: Likewise.
9761         * lto-compress.c: Likewise.
9762         * lto-opts.c: Likewise.
9763         * lto-section-in.c: Likewise.
9764         * lto-section-out.c: Likewise.
9765         * lto-streamer-in.c: Likewise.
9766         * lto-streamer-out.c: Likewise.
9767         * lto-streamer.c: Likewise.
9768         * mcf.c: Likewise.
9769         * mode-switching.c: Likewise.
9770         * modulo-sched.c: Likewise.
9771         * omega.c: Likewise.
9772         * omp-low.c: Likewise.
9773         * optabs.c: Likewise.
9774         * opts-global.c: Likewise.
9775         * opts.h: Likewise.
9776         * passes.c: Likewise.
9777         * plugin.c: Likewise.
9778         * postreload-gcse.c: Likewise.
9779         * postreload.c: Likewise.
9780         * predict.c: Likewise.
9781         * pretty-print.h: Likewise.
9782         * print-rtl.c: Likewise.
9783         * print-tree.c: Likewise.
9784         * profile.c: Likewise.
9785         * real.c: Likewise.
9786         * realmpfr.c: Likewise.
9787         * recog.c: Likewise.
9788         * ree.c: Likewise.
9789         * reg-stack.c: Likewise.
9790         * regcprop.c: Likewise.
9791         * reginfo.c: Likewise.
9792         * regrename.c: Likewise.
9793         * regstat.c: Likewise.
9794         * reload.c: Likewise.
9795         * reload1.c: Likewise.
9796         * reorg.c: Likewise.
9797         * resource.c: Likewise.
9798         * rtl-chkp.c: Likewise.
9799         * rtl-error.c: Likewise.
9800         * rtlanal.c: Likewise.
9801         * rtlhooks.c: Likewise.
9802         * sanopt.c: Likewise.
9803         * sched-deps.c: Likewise.
9804         * sched-ebb.c: Likewise.
9805         * sched-rgn.c: Likewise.
9806         * sched-vis.c: Likewise.
9807         * sdbout.c: Likewise.
9808         * sel-sched-dump.c: Likewise.
9809         * sel-sched-ir.c: Likewise.
9810         * sel-sched.c: Likewise.
9811         * sese.c: Likewise.
9812         * shrink-wrap.c: Likewise.
9813         * simplify-rtx.c: Likewise.
9814         * stack-ptr-mod.c: Likewise.
9815         * statistics.c: Likewise.
9816         * stmt.c: Likewise.
9817         * stor-layout.c: Likewise.
9818         * store-motion.c: Likewise.
9819         * streamer-hooks.c: Likewise.
9820         * stringpool.c: Likewise.
9821         * symtab.c: Likewise.
9822         * target-globals.c: Likewise.
9823         * targhooks.c: Likewise.
9824         * toplev.c: Likewise.
9825         * tracer.c: Likewise.
9826         * trans-mem.c: Likewise.
9827         * tree-affine.c: Likewise.
9828         * tree-browser.c: Likewise.
9829         * tree-call-cdce.c: Likewise.
9830         * tree-cfg.c: Likewise.
9831         * tree-cfgcleanup.c: Likewise.
9832         * tree-chkp-opt.c: Likewise.
9833         * tree-chkp.c: Likewise.
9834         * tree-chrec.c: Likewise.
9835         * tree-complex.c: Likewise.
9836         * tree-data-ref.c: Likewise.
9837         * tree-dfa.c: Likewise.
9838         * tree-diagnostic.c: Likewise.
9839         * tree-dump.c: Likewise.
9840         * tree-eh.c: Likewise.
9841         * tree-emutls.c: Likewise.
9842         * tree-if-conv.c: Likewise.
9843         * tree-inline.c: Likewise.
9844         * tree-into-ssa.c: Likewise.
9845         * tree-iterator.c: Likewise.
9846         * tree-loop-distribution.c: Likewise.
9847         * tree-nested.c: Likewise.
9848         * tree-nrv.c: Likewise.
9849         * tree-object-size.c: Likewise.
9850         * tree-outof-ssa.c: Likewise.
9851         * tree-parloops.c: Likewise.
9852         * tree-phinodes.c: Likewise.
9853         * tree-predcom.c: Likewise.
9854         * tree-pretty-print.c: Likewise.
9855         * tree-profile.c: Likewise.
9856         * tree-scalar-evolution.c: Likewise.
9857         * tree-sra.c: Likewise.
9858         * tree-ssa-address.c: Likewise.
9859         * tree-ssa-alias.c: Likewise.
9860         * tree-ssa-ccp.c: Likewise.
9861         * tree-ssa-coalesce.c: Likewise.
9862         * tree-ssa-copy.c: Likewise.
9863         * tree-ssa-copyrename.c: Likewise.
9864         * tree-ssa-dce.c: Likewise.
9865         * tree-ssa-dom.c: Likewise.
9866         * tree-ssa-dse.c: Likewise.
9867         * tree-ssa-forwprop.c: Likewise.
9868         * tree-ssa-ifcombine.c: Likewise.
9869         * tree-ssa-live.c: Likewise.
9870         * tree-ssa-loop-ch.c: Likewise.
9871         * tree-ssa-loop-im.c: Likewise.
9872         * tree-ssa-loop-ivcanon.c: Likewise.
9873         * tree-ssa-loop-ivopts.c: Likewise.
9874         * tree-ssa-loop-manip.c: Likewise.
9875         * tree-ssa-loop-niter.c: Likewise.
9876         * tree-ssa-loop-prefetch.c: Likewise.
9877         * tree-ssa-loop-unswitch.c: Likewise.
9878         * tree-ssa-loop.c: Likewise.
9879         * tree-ssa-math-opts.c: Likewise.
9880         * tree-ssa-operands.c: Likewise.
9881         * tree-ssa-phiopt.c: Likewise.
9882         * tree-ssa-phiprop.c: Likewise.
9883         * tree-ssa-pre.c: Likewise.
9884         * tree-ssa-propagate.c: Likewise.
9885         * tree-ssa-reassoc.c: Likewise.
9886         * tree-ssa-sccvn.c: Likewise.
9887         * tree-ssa-scopedtables.c: Likewise.
9888         * tree-ssa-sink.c: Likewise.
9889         * tree-ssa-strlen.c: Likewise.
9890         * tree-ssa-structalias.c: Likewise.
9891         * tree-ssa-tail-merge.c: Likewise.
9892         * tree-ssa-ter.c: Likewise.
9893         * tree-ssa-threadedge.c: Likewise.
9894         * tree-ssa-threadupdate.c: Likewise.
9895         * tree-ssa-uncprop.c: Likewise.
9896         * tree-ssa-uninit.c: Likewise.
9897         * tree-ssa.c: Likewise.
9898         * tree-ssanames.c: Likewise.
9899         * tree-stdarg.c: Likewise.
9900         * tree-streamer-in.c: Likewise.
9901         * tree-streamer-out.c: Likewise.
9902         * tree-streamer.c: Likewise.
9903         * tree-switch-conversion.c: Likewise.
9904         * tree-tailcall.c: Likewise.
9905         * tree-vect-data-refs.c: Likewise.
9906         * tree-vect-generic.c: Likewise.
9907         * tree-vect-loop-manip.c: Likewise.
9908         * tree-vect-loop.c: Likewise.
9909         * tree-vect-patterns.c: Likewise.
9910         * tree-vect-slp.c: Likewise.
9911         * tree-vect-stmts.c: Likewise.
9912         * tree-vectorizer.c: Likewise.
9913         * tree-vrp.c: Likewise.
9914         * tree.c: Likewise.
9915         * tsan.c: Likewise.
9916         * ubsan.c: Likewise.
9917         * valtrack.c: Likewise.
9918         * value-prof.c: Likewise.
9919         * var-tracking.c: Likewise.
9920         * varasm.c: Likewise.
9921         * varpool.c: Likewise.
9922         * vmsdbgout.c: Likewise.
9923         * vtable-verify.c: Likewise.
9924         * web.c: Likewise.
9925         * wide-int.cc: Likewise.
9926         * xcoffout.c: Likewise.
9927         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
9928         * common/common-targhooks.c: Likewise.
9929         * config/aarch64/aarch64-builtins.c: Likewise.
9930         * config/aarch64/aarch64.c: Likewise.
9931         * config/alpha/alpha.c: Likewise.
9932         * config/arc/arc.c: Likewise.
9933         * config/arm/aarch-common.c: Likewise.
9934         * config/arm/arm-builtins.c: Likewise.
9935         * config/arm/arm-c.c: Likewise.
9936         * config/arm/arm.c: Likewise.
9937         * config/avr/avr-c.c: Likewise.
9938         * config/avr/avr-log.c: Likewise.
9939         * config/avr/avr.c: Likewise.
9940         * config/bfin/bfin.c: Likewise.
9941         * config/c6x/c6x.c: Likewise.
9942         * config/cr16/cr16.c: Likewise.
9943         * config/cris/cris.c: Likewise.
9944         * config/darwin-c.c: Likewise.
9945         * config/darwin.c: Likewise.
9946         * config/default-c.c: Likewise.
9947         * config/epiphany/epiphany.c: Likewise.
9948         * config/epiphany/mode-switch-use.c: Likewise.
9949         * config/epiphany/resolve-sw-modes.c: Likewise.
9950         * config/fr30/fr30.c: Likewise.
9951         * config/frv/frv.c: Likewise.
9952         * config/ft32/ft32.c: Likewise.
9953         * config/glibc-c.c: Likewise.
9954         * config/h8300/h8300.c: Likewise.
9955         * config/i386/i386-c.c: Likewise.
9956         * config/i386/i386.c: Likewise.
9957         * config/i386/msformat-c.c: Likewise.
9958         * config/i386/winnt-cxx.c: Likewise.
9959         * config/i386/winnt-stubs.c: Likewise.
9960         * config/i386/winnt.c: Likewise.
9961         * config/ia64/ia64-c.c: Likewise.
9962         * config/ia64/ia64.c: Likewise.
9963         * config/iq2000/iq2000.c: Likewise.
9964         * config/lm32/lm32.c: Likewise.
9965         * config/m32c/m32c-pragma.c: Likewise.
9966         * config/m32c/m32c.c: Likewise.
9967         * config/m32r/m32r.c: Likewise.
9968         * config/m68k/m68k.c: Likewise.
9969         * config/mcore/mcore.c: Likewise.
9970         * config/mep/mep-pragma.c: Likewise.
9971         * config/mep/mep.c: Likewise.
9972         * config/microblaze/microblaze-c.c: Likewise.
9973         * config/microblaze/microblaze.c: Likewise.
9974         * config/mips/mips.c: Likewise.
9975         * config/mmix/mmix.c: Likewise.
9976         * config/mn10300/mn10300.c: Likewise.
9977         * config/moxie/moxie.c: Likewise.
9978         * config/msp430/msp430-c.c: Likewise.
9979         * config/msp430/msp430.c: Likewise.
9980         * config/nds32/nds32-cost.c: Likewise.
9981         * config/nds32/nds32-fp-as-gp.c: Likewise.
9982         * config/nds32/nds32-intrinsic.c: Likewise.
9983         * config/nds32/nds32-isr.c: Likewise.
9984         * config/nds32/nds32-md-auxiliary.c: Likewise.
9985         * config/nds32/nds32-memory-manipulation.c: Likewise.
9986         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9987         * config/nds32/nds32-predicates.c: Likewise.
9988         * config/nds32/nds32.c: Likewise.
9989         * config/nios2/nios2.c: Likewise.
9990         * config/nvptx/nvptx.c: Likewise.
9991         * config/pa/pa.c: Likewise.
9992         * config/pdp11/pdp11.c: Likewise.
9993         * config/rl78/rl78-c.c: Likewise.
9994         * config/rl78/rl78.c: Likewise.
9995         * config/rs6000/rs6000-c.c: Likewise.
9996         * config/rs6000/rs6000.c: Likewise.
9997         * config/rx/rx.c: Likewise.
9998         * config/s390/s390-c.c: Likewise.
9999         * config/s390/s390.c: Likewise.
10000         * config/sh/sh-c.c: Likewise.
10001         * config/sh/sh-mem.cc: Likewise.
10002         * config/sh/sh.c: Likewise.
10003         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10004         * config/sh/sh_treg_combine.cc: Likewise.
10005         * config/sol2-c.c: Likewise.
10006         * config/sol2-cxx.c: Likewise.
10007         * config/sol2-stubs.c: Likewise.
10008         * config/sol2.c: Likewise.
10009         * config/sparc/sparc-c.c: Likewise.
10010         * config/sparc/sparc.c: Likewise.
10011         * config/spu/spu-c.c: Likewise.
10012         * config/spu/spu.c: Likewise.
10013         * config/stormy16/stormy16.c: Likewise.
10014         * config/tilegx/mul-tables.c: Likewise.
10015         * config/tilegx/tilegx-c.c: Likewise.
10016         * config/tilegx/tilegx.c: Likewise.
10017         * config/tilepro/mul-tables.c: Likewise.
10018         * config/tilepro/tilepro-c.c: Likewise.
10019         * config/tilepro/tilepro.c: Likewise.
10020         * config/v850/v850-c.c: Likewise.
10021         * config/v850/v850.c: Likewise.
10022         * config/vax/vax.c: Likewise.
10023         * config/visium/visium.c: Likewise.
10024         * config/vms/vms-c.c: Likewise.
10025         * config/vms/vms.c: Likewise.
10026         * config/vxworks.c: Likewise.
10027         * config/winnt-c.c: Likewise.
10028         * config/xtensa/xtensa.c: Likewise.
10030 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
10032         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10033         function.
10034         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10036 2015-06-17  Richard Biener  <rguenther@suse.de>
10038         PR tree-optimization/66251
10039         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10040         stmts for SLP strided stores.
10042         Revert
10043         2015-05-22  Richard Biener  <rguenther@suse.de>
10045         PR tree-optimization/66251
10046         * tree-vect-stmts.c (vectorizable_conversion): Properly
10047         set STMT_VINFO_VEC_STMT even for the SLP case.
10049         2015-05-26  Michael Matz  <matz@suse.de>
10051         PR middle-end/66251
10052         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10053         STMT_VINFO_VEC_STMT, also with SLP.
10055 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
10057         PR target/56766
10058         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10059         (*avx_addsubv4df3_1s): Ditto.
10060         (*sse3_addsubv2df3_1): Ditto.
10061         (*sse3_addsubv2df3_1s): Ditto.
10062         (*avx_addsubv8sf3_1): Ditto.
10063         (*avx_addsubv8sf3_1s): Ditto.
10064         (*sse3_addsubv4sf3_1): Ditto.
10065         (*sse3_addsubv4sf3_1s): Ditto.
10067 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
10069         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10070         (SYSROOT_SUFFIX_SPEC): Update.
10071         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10072         (STARTFILE_PREFIX_SPEC): Update.
10073         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10074         (MULTILIB_REQUIRED): New.
10075         (MULTILIB_OSDIRNAMES): New.
10076         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10077         (MULTILIB_REQUIRED): New.
10078         (MULTILIB_OSDIRNAMES): New.
10080 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
10082         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10083         * config/aarch64/aarch64-options-extensions.def: Update "fP",
10084         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
10085         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10086         (AARCH64_FL_PAN): New.
10087         (AARCH64_FL_LOR): New.
10088         (AARCH64_FL_RDMA): New.
10089         (AARCH64_FL_FOR_ARCH8_1): New.
10090         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10091         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10093 2015-06-16  Martin Liska  <mliska@suse.cz>
10095         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10096         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10097         guard.
10099 2015-06-16  Richard Biener  <rguenther@suse.de>
10101         * tree-vect-stmts.c (vectorizable_store): Adjust.
10102         (vectorizable_load): Likewise.
10103         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10104         Simplify.
10105         (vect_create_data_ref_ptr): Likewise.
10106         (bump_vector_ptr): Adjust.
10108 2015-06-16  Richard Biener  <rguenther@suse.de>
10110         * tree-vect-stmts.c (vectorizable_load): Properly start loads
10111         with the first element if this is grouped loads.
10113 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
10115         * config/arm/arm-protos.h (struct tune_params): Rename
10116         log_op_non_sc to log_op_non_short_circuit, and rename enum
10117         values to expand SC to SHORT_CIRCUIT.
10118         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10119         to LOG_OP_NON_SHORT_CIRCUIT.
10120         (arm_fastmul_tune):Likewise
10121         (arm_strongarm_tune): Likewise.
10122         (arm_xscale_tune): Likewise.
10123         (arm_9e_tune): Likewise.
10124         (arm_marvell_pj4_tune): Likewise.
10125         (arm_v6t2_tune): Likewise.
10126         (arm_cortex_tune): Likewise.
10127         (arm_cortex_a8_tune): Likewise.
10128         (arm_cortex_a7_tune): Likewise.
10129         (arm_cortex_a15_tune): Likewise.
10130         (arm_cortex_a53_tune): Likewise.
10131         (arm_cortex_a57_tune): Likewise.
10132         (arm_xgene1_tune): Likewise.
10133         (arm_cortex_a5_tune): Likewise.
10134         (arm_cortex_a9_tune): Likewise.
10135         (arm_cortex_a12_tune): Likewise.
10136         (arm_v7m_tune): Likewise.
10137         (arm_cortex_m7_tune): Likewise.
10138         (arm_v6m_tune): Likewise.
10139         (arm_fa726te_tune): Likewise.
10141 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
10143         * altivec.md: Delete UNSPEC_VMLADDUHM.
10144         (mulv4si3_p8): New pattern.
10145         (mulv4si3): Use it for POWER8.
10146         (mulv8hi3): Use vmladduhm with zero addend.
10147         (altivec_vmladduhm): Descriptive RTL.
10149 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
10151         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10152         to use neon_move instead of mov_imm.
10153         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10154         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10156         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10157         aarch64_float_const_zero_rtx_p check before TFmode check.
10158         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10159         an fp zero.
10160         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
10161         code and attributes to match.  Change condition from register_operand
10162         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
10163         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
10164         to store2.
10166 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
10168         PR debug/66535
10169         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10170         there is no parent.
10172 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
10174         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10175         HOST_WIDE_INT parameter.
10177 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
10179         PR ipa/66181
10180         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10181         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10182         TYPE_NO_FORCE_BLK.
10183         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10185 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
10187         * rtl.h (classify_insn): Declare.
10188         * emit-rtl.c (classify_insn): Move to...
10189         * rtl.c: ...here and add generator support.
10190         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10191         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10192         * genemit.c (gen_emit_seq): New function.
10193         (gen_expand, gen_split): Use it.
10195 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
10197         * tree.c (make_vector_stat): Fix comment to state that the
10198         function returns a VECTOR_CST.
10200 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
10202         * gensupport.h (add_implicit_parallel): Declare.
10203         * genrecog.c (add_implicit_parallel): Move to...
10204         * gensupport.c (add_implicit_parallel): ...here.
10205         (process_one_cond_exec): Use it.
10206         * genemit.c (gen_insn): Likewise.
10208 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
10210         PR bootstrap/66448
10211         * passes.c (rest_of_decl_compilation): Do not register globals for
10212         early debug if they are declared in built-ins.
10214 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
10216         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10218 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10220         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10221         manually swapping.
10222         (noce_try_cmove_arith): Likewise.
10223         (noce_get_alt_condition): Likewise.
10225 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10227         * common/config/i386/i386-common.c
10228         (OPTION_MASK_ISA_MWAITX_SET): New.
10229         (ix86_handle_option): Handle mwaitx.
10230         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10231         (x86_64-*-*): Likewise.
10232         * config/i386/mwaitxintrin.h: New header.
10233         * config/i386/cpuid.h (bit_MWAITX):  Define.
10234         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10235         MWAITX support.
10236         * config/i386/i386.opt (mwaitx): New.
10237         * config/i386/i386-builtin-types.def
10238         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10239         * config/i386/i386-c.c: Define __MWAITX__ if needed.
10240         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10241         (PTA_MWAITX): New.
10242         (ix86_option_override_internal): Handle new option.
10243         (processor_alias_table): Added PTA_MWAITX.
10244         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10245         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10246         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10247         IX86_BUILTIN_MONITORX  built-ins.
10248         * config/i386/i386.h (TARGET_MWAITX): New.
10249         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10250         UNSPEC_MONITORX.
10251         (mwaitx):  New pattern.
10252         (monitorx_<mode>): New pattern.
10253         * config/i386/x86intrin.h: Include mwaitxintrin.h.
10254         * doc/extend.texi: Document monitorx and mwaitx builtins.
10255         * doc/invoke.texi: Document -mmwaitx option.
10257 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
10259         * emit-rtl.c (need_atomic_barrier_p): Mask model with
10260         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
10262 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10264         * dbxout.c (xcoff_debug_hooks): Provide a function for
10265         register_main_translation_unit hook.
10267 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10269         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10270         variants cases from switch.
10271         (rs6000_post_atomic_barrier): Same.
10272         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10273         (rs6000_expand_atomic_exchange): Same.
10274         (rs6000_expand_atomic_op): Same.
10275         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10276         SYNC variants cases from switch.
10277         (atomic_load): Same.
10278         (atomic_store): Same.
10280 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
10282         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10283         CONST_INT for goto.
10285 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
10287         PR bootstrap/66448
10288         * dwarf2out.c (check_die): Check for common duplicate attributes.
10289         (add_location_or_const_value_attribute): Do not add duplicate
10290         attributes.
10291         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10292         time around.
10293         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10294         (gen_type_die_with_usage): Call check_die.
10295         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10297 2015-06-11  Jason Merrill  <jason@redhat.com>
10299         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10300         dies.
10302 2015-06-11  Marek Polacek  <polacek@redhat.com>
10304         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10306 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10308         PR bootstrap/66252
10309         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10310         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10311         (*addx_extend_sp32): Fix pasto.
10312         (*subx_extend): Rename into...
10313         (*subx_extend_sp32): ...this.
10314         (*adddi3_extend_sp32): Add earlyclobber.
10315         (*subdi3_insn_sp32): Likewise.
10316         (*subdi3_extend_sp32): Likewise.
10317         (*and_not_di_sp32): Likewise.
10318         (*or_not_di_sp32): Likewise.
10319         (*xor_not_di_sp32): Likewise.
10320         (*negdi2_sp32): Likewise.
10321         (*one_cmpldi2_sp32): Likewise.
10323 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
10325         * debug.h (struct gcc_debug_hooks): Add a
10326         register_main_translation_unit hook.
10327         * debug.c (do_nothing_debug_hooks): Provide a function for this
10328         new hook.
10329         * dbxout.c (dbx_debug_hooks): Likewise.
10330         * sdbout.c (sdb_debug_hooks): Likewise.
10331         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10332         * dwarf2out.c (main_translation_unit): New global variable.
10333         (dwarf2out_register_main_translation_unit): New function
10334         implementing the new hook.
10335         (dwarf2_debug_hooks): Assign
10336         dwarf2out_register_main_translation_unit to this new hook.
10337         (dwarf2out_init): Associate any main translation unit to
10338         comp_unit_die ().
10340 2015-06-11  Marek Polacek  <polacek@redhat.com>
10342         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10344 2015-06-11  Marek Polacek  <polacek@redhat.com>
10346         * match.pd: Use single_use throughout.
10348 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10350         * config/arm/arm.c (arm_option_params_internal): When optimising
10351         for speed set max_insns_skipped when arm_restrict_it.
10353 2015-06-11  Christian Bruel  <christian.bruel@st.com>
10355         PR target/52144
10356         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10357          macros in ...
10358         (arm_cpu_builtins): New function.
10359         (arm_pragma_target_parse): Call arm_cpu_builtins.
10360         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10361         (arm_register_target_pragmas): Likewise.
10362         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10363          Call arm_register_target_pragmas.
10364         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10365         (arm_pragma_target_parse): Likewise.
10367 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10369         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10370         of the second operand.
10372 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
10374         PR target/66473
10375         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10376         to prepare mask operand for AVX512 modes.
10378 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
10380         PR target/66474
10381         * doc/md.texi (Machine Constraints): Document that on the PowerPC
10382         if you use a constraint that targets a VSX register, you must use
10383         %x<n> in the template.
10385 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
10387         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10388         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10389         (define_insn "trap"): New definition.
10391 2015-06-10  Richard Biener  <rguenther@suse.de>
10393         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10394         out from ...
10395         (vect_supported_load_permutation_p): ... here.  Handle
10396         supportable permutations in reductions.
10397         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10398         for vectorizing strided group loads.
10400 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
10402         PR target/66470
10403         * config/i386/i386.c (ix86_split_long_move): For collisions
10404         involving direct tls segment refs, move the UNSPEC_TP possibly
10405         wrapped in ZERO_EXTEND out of the address for lea, to each of
10406         the memory loads.
10408 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10410         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10411         dmb sy. Adjust tabs.
10413 2015-06-10  Tom de Vries  <tom@codesourcery.com>
10415         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10417 2015-06-10  Martin Liska  <mliska@suse.cz>
10419         PR bootstrap/66471
10420         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10421         all enum values in mem_alloc_origin.
10422         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10423         name.
10424         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10425         * bitmap.c (bitmap_register): Likewise.
10426         (dump_bitmap_statistics): Likewise.
10427         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10428         (ggc_record_overhead): Likewise.
10429         * hash-map.h: Likewise.
10430         * hash-set.h: Likewise.
10431         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10432         * hash-table.h: Likewise.
10433         * vec.c (vec_prefix::register_overhead): Likewise.
10434         (vec_prefix::release_overhead): Likewise.
10435         (dump_vec_loc_statistics): Likewise.
10437 2015-06-09  Christian Bruel  <christian.bruel@st.com>
10439         PR target/52144
10440         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10441         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10442         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10443         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10444         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10445         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10446         (arm_valid_target_attribute_p): Likewise.
10447         (arm_set_current_function, arm_can_inline_p): Likewise.
10448         (arm_valid_target_attribute_rec): Likewise.
10449         (arm_previous_fndecl): New variable.
10450         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10451         (TARGET_CAN_INLINE_P): Define.
10452         (arm_asm_trampoline_template): Emit mode.
10453         (arm_file_start): Don't set unified syntax.
10454         (arm_declare_function_name): Set unified syntax and mode.
10455         (arm_option_override): Init target_option_default_node.
10456         and target_option_current_node.
10457         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10458         (*call_symbol): Likewise.
10459         * doc/extend.texi: Document ARM/Thumb target attribute.
10460         * doc/invoke.texi: Likewise.
10462 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10464         Revert:
10465         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10466         PR rtl-optimization/64164
10467         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10468         * tree-ssa-copyrename.c: Removed.
10469         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10470         -ftree-coalesce-vars.
10471         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10472         * common.opt (ftree-copyrename): Ignore.
10473         (ftree-coalesce-inlined-vars): Likewise.
10474         * doc/invoke.texi: Remove the ignored options above.
10475         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10476         * tree-ssa-coalesce.h: ... here.
10477         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10478         headers required by it.
10479         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10480         across variables when flag_tree_coalesce_vars.  Check register
10481         use and promoted modes to allow coalescing.  Moved to
10482         tree-ssa-coalesce.c.
10483         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10484         with its member functions to tree-ssa-coalesce.c.
10485         (var_map_base_init): Likewise.  Renamed to
10486         compute_samebase_partition_bases.
10487         (partition_view_normal): Drop want_bases parameter.
10488         (partition_view_bitmap): Likewise.
10489         * tree-ssa-live.h: Adjust declarations.
10490         * tree-ssa-coalesce.c: Include explow.h.
10491         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10492         default defs at the entry point.
10493         (dump_part_var_map): New.
10494         (compute_optimized_partition_bases): New, called by...
10495         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10496         of compute_samebase_partition_bases.  Adjust.
10497         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10498         * cfgexpand.c (leader_merge): New.
10499         (get_rtl_for_parm_ssa_default_def): New.
10500         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10501         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10502         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10503         redundant MEM attr setting.
10504         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10505         from...
10506         (expand_one_stack_var): ... this.  New wrapper to check and
10507         skip already expanded SSA partitions.
10508         (record_alignment_for_reg_var): New, factored out of...
10509         (expand_one_var): ... this.
10510         (expand_one_ssa_partition): New.
10511         (adjust_one_expanded_partition_var): New.
10512         (expand_one_register_var): Check and skip already expanded SSA
10513         partitions.
10514         (expand_used_vars): Don't create DECLs for anonymous SSA
10515         names.  Expand all SSA partitions, then adjust all SSA names.
10516         (pass::execute): Replace the loops that set
10517         SA.partition_to_pseudo from partition leaders and cleared
10518         DECL_RTL for multi-location variables, and that which used to
10519         rename vars and set attrs, with one that clears DECL_RTL and
10520         checks that PARMs and RESULTs default_defs match DECL_RTL.
10521         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10522         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10523         * explow.c (promote_ssa_mode): New.
10524         * explow.h (promote_ssa_mode): Declare.
10525         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10526         * function.c: Include cfgexpand.h.
10527         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10528         (use_register_for_parm_decl): Wrapper for the above to
10529         special-case the result_ptr.
10530         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10531         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10532         multiple locations.
10533         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10534         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10535         (assign_parm_setup_block): Prefer SSA-assigned location.
10536         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10537         if stack_parm is NULL.
10538         (assign_parm_setup_stack): Prefer SSA-assigned location.
10539         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10540         rtl before testing for pointer bounds.  Special-case result_ptr.
10541         (expand_function_start): Maybe reset DECL_RTL of result.
10542         Prefer SSA-assigned location for result and static chain.
10543         Factor out DECL_RESULT and SET_DECL_RTL.
10544         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10545         anonymous SSA names.  Use promote_ssa_mode.
10546         (get_temp_reg): Likewise.
10547         (remove_ssa_form): Adjust.
10548         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10549         and get its reg_usage for reg invalidation.
10550         (compute_bb_dataflow): Pass it insn.
10551         (emit_notes_in_bb): Likewise.
10552         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10553         fail assert on conversion between unsigned types.
10555 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10557         PR tree-optimization/65460
10558         * omp-low.c (expand_omp_target): Set parallelized_function on
10559         cgraph_node for child_fn.
10561 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10563         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10564         parallelized_function before add_new_function.
10566 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
10568         * gcc-plugin.h: Move decls to plugin.h and include it.
10569         * plugin.h: Relocate decls from gcc-plugin.h
10570         * ggc-page.c: Include required header files.
10571         * passes.c: Likewise.
10572         * cgraphunit.c: Likewise.
10574 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10576         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10578 2015-06-09  Jason Merrill  <jason@redhat.com>
10580         PR bootstrap/66448
10581         * toplev.c (check_global_declaration): Don't warn about a clone.
10583 2015-06-09  Marek Polacek  <polacek@redhat.com>
10585         PR tree-optimization/66299
10586         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10587         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10588         patterns.
10590 2015-06-09  Richard Biener  <rguenther@suse.de>
10592         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10593         (vect_analyze_slp_instance): Instead do not falsely drop
10594         load permutations.
10596 2015-06-09  Richard Biener  <rguenther@suse.de>
10598         PR middle-end/66423
10599         * match.pd: Handle A % (unsigned)(1 << B).
10601 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
10603         * varasm.c (output_object_block_htab): Remove.
10604         (output_object_block_compare): New.
10605         (output_object_blocks): Sort named object_blocks before outputting
10606         them.
10608 2015-06-09  Richard Biener  <rguenther@suse.de>
10610         PR tree-optimization/66419
10611         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10612         consider GROUP_GAP when detecting a perfect subchain.
10614 2015-06-09  Nick Clifton  <nickc@redhat.com>
10616         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
10617         place read only data in the .frodata section.
10619 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
10621         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
10622         (atomic_store<mode>): Likewise.
10624 2015-06-09  Richard Biener  <rguenther@suse.de>
10626         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
10628 2015-06-09  Richard Biener  <rguenther@suse.de>
10630         PR middle-end/66413
10631         * tree-inline.c (insert_init_debug_bind): Unshare value.
10633 2015-06-09  Richard Biener  <rguenther@suse.de>
10635         PR tree-optimization/66396
10636         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
10637         Rename virtual operands.
10639 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10641         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
10642         always return false.
10644 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10646         PR rtl-optimization/64164
10647         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10648         * tree-ssa-copyrename.c: Removed.
10649         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10650         -ftree-coalesce-vars.
10651         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10652         * common.opt (ftree-copyrename): Ignore.
10653         (ftree-coalesce-inlined-vars): Likewise.
10654         * doc/invoke.texi: Remove the ignored options above.
10655         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10656         * tree-ssa-coalesce.h: ... here.
10657         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10658         headers required by it.
10659         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10660         across variables when flag_tree_coalesce_vars.  Check register
10661         use and promoted modes to allow coalescing.  Moved to
10662         tree-ssa-coalesce.c.
10663         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10664         with its member functions to tree-ssa-coalesce.c.
10665         (var_map_base_init): Likewise.  Renamed to
10666         compute_samebase_partition_bases.
10667         (partition_view_normal): Drop want_bases parameter.
10668         (partition_view_bitmap): Likewise.
10669         * tree-ssa-live.h: Adjust declarations.
10670         * tree-ssa-coalesce.c: Include explow.h.
10671         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10672         default defs at the entry point.
10673         (dump_part_var_map): New.
10674         (compute_optimized_partition_bases): New, called by...
10675         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10676         of compute_samebase_partition_bases.  Adjust.
10677         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10678         * cfgexpand.c (leader_merge): New.
10679         (get_rtl_for_parm_ssa_default_def): New.
10680         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10681         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10682         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10683         redundant MEM attr setting.
10684         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10685         from...
10686         (expand_one_stack_var): ... this.  New wrapper to check and
10687         skip already expanded SSA partitions.
10688         (record_alignment_for_reg_var): New, factored out of...
10689         (expand_one_var): ... this.
10690         (expand_one_ssa_partition): New.
10691         (adjust_one_expanded_partition_var): New.
10692         (expand_one_register_var): Check and skip already expanded SSA
10693         partitions.
10694         (expand_used_vars): Don't create DECLs for anonymous SSA
10695         names.  Expand all SSA partitions, then adjust all SSA names.
10696         (pass::execute): Replace the loops that set
10697         SA.partition_to_pseudo from partition leaders and cleared
10698         DECL_RTL for multi-location variables, and that which used to
10699         rename vars and set attrs, with one that clears DECL_RTL and
10700         checks that PARMs and RESULTs default_defs match DECL_RTL.
10701         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10702         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10703         * explow.c (promote_ssa_mode): New.
10704         * explow.h (promote_ssa_mode): Declare.
10705         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10706         * function.c: Include cfgexpand.h.
10707         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10708         (use_register_for_parm_decl): Wrapper for the above to
10709         special-case the result_ptr.
10710         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10711         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10712         multiple locations.
10713         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10714         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10715         (assign_parm_setup_block): Prefer SSA-assigned location.
10716         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10717         if stack_parm is NULL.
10718         (assign_parm_setup_stack): Prefer SSA-assigned location.
10719         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10720         rtl before testing for pointer bounds.  Special-case result_ptr.
10721         (expand_function_start): Maybe reset DECL_RTL of result.
10722         Prefer SSA-assigned location for result and static chain.
10723         Factor out DECL_RESULT and SET_DECL_RTL.
10724         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10725         anonymous SSA names.  Use promote_ssa_mode.
10726         (get_temp_reg): Likewise.
10727         (remove_ssa_form): Adjust.
10728         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10729         and get its reg_usage for reg invalidation.
10730         (compute_bb_dataflow): Pass it insn.
10731         (emit_notes_in_bb): Likewise.
10732         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10733         fail assert on conversion between unsigned types.
10735 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10737         PR debug/58315
10738         * tree-inline.c (reset_debug_binding): New.
10739         (reset_debug_bindings): Likewise.
10740         (expand_call_inline): Call it.
10742 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
10744         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
10745         TYPE_STRING_FLAG.
10747 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
10749         * lto-streamer-out.c (lto_output_location): Stream
10750         reserved locations correctly.
10751         * lto-streamer-in.c (lto_output_location): Likewise.
10753 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
10755         * coretypes.h: Include hash-table.h and hash-set.h for host files.
10756         * ggc.h: Don't include statistics.h>
10757         * hash-map.h: Remove all includes.
10758         * hash-set.h: Likewise.
10759         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
10760         the include list. Remove <new>.
10761         * inchash.h: Remove all includes.
10762         * mem-stats.h: Likewise.
10763         * vec.h: No special processing for generators or ggc.
10764         * alias.c : Adjust include files.
10765         * alloc-pool.c : Likewise.
10766         * alloc-pool.h : Likewise.
10767         * asan.c : Likewise.
10768         * attribs.c : Likewise.
10769         * auto-inc-dec.c : Likewise.
10770         * auto-profile.c : Likewise.
10771         * bb-reorder.c : Likewise.
10772         * bitmap.c : Likewise.
10773         * bitmap.h : Likewise.
10774         * bt-load.c : Likewise.
10775         * builtins.c : Likewise.
10776         * caller-save.c : Likewise.
10777         * calls.c : Likewise.
10778         * ccmp.c : Likewise.
10779         * cfg.c : Likewise.
10780         * cfganal.c : Likewise.
10781         * cfgbuild.c : Likewise.
10782         * cfgcleanup.c : Likewise.
10783         * cfgexpand.c : Likewise.
10784         * cfghooks.c : Likewise.
10785         * cfgloop.c : Likewise.
10786         * cfgloop.h : Likewise.
10787         * cfgloopanal.c : Likewise.
10788         * cfgloopmanip.c : Likewise.
10789         * cfgrtl.c : Likewise.
10790         * cgraph.c : Likewise.
10791         * cgraphbuild.c : Likewise.
10792         * cgraphclones.c : Likewise.
10793         * cgraphunit.c : Likewise.
10794         * cilk-common.c : Likewise.
10795         * combine-stack-adj.c : Likewise.
10796         * combine.c : Likewise.
10797         * compare-elim.c : Likewise.
10798         * context.c : Likewise.
10799         * convert.c : Likewise.
10800         * coverage.c : Likewise.
10801         * cppbuiltin.c : Likewise.
10802         * cprop.c : Likewise.
10803         * cse.c : Likewise.
10804         * cselib.c : Likewise.
10805         * data-streamer-in.c : Likewise.
10806         * data-streamer-out.c : Likewise.
10807         * data-streamer.c : Likewise.
10808         * data-streamer.h : Likewise.
10809         * dbxout.c : Likewise.
10810         * dce.c : Likewise.
10811         * ddg.c : Likewise.
10812         * debug.c : Likewise.
10813         * df-core.c : Likewise.
10814         * df-problems.c : Likewise.
10815         * df-scan.c : Likewise.
10816         * df.h : Likewise.
10817         * dfp.c : Likewise.
10818         * dojump.c : Likewise.
10819         * dominance.c : Likewise.
10820         * domwalk.c : Likewise.
10821         * double-int.c : Likewise.
10822         * dse.c : Likewise.
10823         * dumpfile.c : Likewise.
10824         * dwarf2asm.c : Likewise.
10825         * dwarf2cfi.c : Likewise.
10826         * dwarf2out.c : Likewise.
10827         * emit-rtl.c : Likewise.
10828         * et-forest.c : Likewise.
10829         * except.c : Likewise.
10830         * except.h : Likewise.
10831         * explow.c : Likewise.
10832         * expmed.c : Likewise.
10833         * expr.c : Likewise.
10834         * final.c : Likewise.
10835         * fixed-value.c : Likewise.
10836         * fold-const.c : Likewise.
10837         * function.c : Likewise.
10838         * fwprop.c : Likewise.
10839         * gcc-plugin.h : Likewise.
10840         * gcc.c : Likewise.
10841         * gcse-common.c : Likewise.
10842         * gcse.c : Likewise.
10843         * genattrtab.c : Likewise.
10844         * genautomata.c : Likewise.
10845         * genconditions.c : Likewise.
10846         * genemit.c : Likewise.
10847         * generic-match-head.c : Likewise.
10848         * genextract.c : Likewise.
10849         * gengtype-state.c : Likewise.
10850         * gengtype.c : Likewise.
10851         * genhooks.c : Likewise.
10852         * genmatch.c : Likewise.
10853         * genmodes.c : Likewise.
10854         * genrecog.c : Likewise.
10855         * gensupport.c : Likewise.
10856         * ggc-common.c : Likewise.
10857         * ggc-internal.h : Likewise.
10858         * ggc-none.c : Likewise.
10859         * ggc-page.c : Likewise.
10860         * gimple-builder.c : Likewise.
10861         * gimple-expr.c : Likewise.
10862         * gimple-fold.c : Likewise.
10863         * gimple-iterator.c : Likewise.
10864         * gimple-low.c : Likewise.
10865         * gimple-match-head.c : Likewise.
10866         * gimple-pretty-print.c : Likewise.
10867         * gimple-ssa-isolate-paths.c : Likewise.
10868         * gimple-ssa-strength-reduction.c : Likewise.
10869         * gimple-ssa.h : Likewise.
10870         * gimple-streamer-in.c : Likewise.
10871         * gimple-streamer-out.c : Likewise.
10872         * gimple-streamer.h : Likewise.
10873         * gimple-walk.c : Likewise.
10874         * gimple.c : Likewise.
10875         * gimplify-me.c : Likewise.
10876         * gimplify.c : Likewise.
10877         * godump.c : Likewise.
10878         * graph.c : Likewise.
10879         * graphds.c : Likewise.
10880         * graphite-blocking.c : Likewise.
10881         * graphite-dependences.c : Likewise.
10882         * graphite-interchange.c : Likewise.
10883         * graphite-isl-ast-to-gimple.c : Likewise.
10884         * graphite-optimize-isl.c : Likewise.
10885         * graphite-poly.c : Likewise.
10886         * graphite-scop-detection.c : Likewise.
10887         * graphite-sese-to-poly.c : Likewise.
10888         * graphite.c : Likewise.
10889         * haifa-sched.c : Likewise.
10890         * hard-reg-set.h : Likewise.
10891         * hw-doloop.c : Likewise.
10892         * ifcvt.c : Likewise.
10893         * inchash.c : Likewise.
10894         * incpath.c : Likewise.
10895         * init-regs.c : Likewise.
10896         * input.c : Likewise.
10897         * internal-fn.c : Likewise.
10898         * ipa-chkp.c : Likewise.
10899         * ipa-comdats.c : Likewise.
10900         * ipa-cp.c : Likewise.
10901         * ipa-devirt.c : Likewise.
10902         * ipa-icf-gimple.c : Likewise.
10903         * ipa-icf.c : Likewise.
10904         * ipa-inline-analysis.c : Likewise.
10905         * ipa-inline-transform.c : Likewise.
10906         * ipa-inline.c : Likewise.
10907         * ipa-polymorphic-call.c : Likewise.
10908         * ipa-profile.c : Likewise.
10909         * ipa-prop.c : Likewise.
10910         * ipa-pure-const.c : Likewise.
10911         * ipa-ref.c : Likewise.
10912         * ipa-reference.c : Likewise.
10913         * ipa-split.c : Likewise.
10914         * ipa-utils.c : Likewise.
10915         * ipa-visibility.c : Likewise.
10916         * ipa.c : Likewise.
10917         * ira-build.c : Likewise.
10918         * ira-color.c : Likewise.
10919         * ira-conflicts.c : Likewise.
10920         * ira-costs.c : Likewise.
10921         * ira-emit.c : Likewise.
10922         * ira-lives.c : Likewise.
10923         * ira.c : Likewise.
10924         * jump.c : Likewise.
10925         * langhooks.c : Likewise.
10926         * lcm.c : Likewise.
10927         * libfuncs.h : Likewise.
10928         * lists.c : Likewise.
10929         * loop-doloop.c : Likewise.
10930         * loop-init.c : Likewise.
10931         * loop-invariant.c : Likewise.
10932         * loop-iv.c : Likewise.
10933         * loop-unroll.c : Likewise.
10934         * lower-subreg.c : Likewise.
10935         * lra-assigns.c : Likewise.
10936         * lra-coalesce.c : Likewise.
10937         * lra-constraints.c : Likewise.
10938         * lra-eliminations.c : Likewise.
10939         * lra-lives.c : Likewise.
10940         * lra-remat.c : Likewise.
10941         * lra-spills.c : Likewise.
10942         * lra.c : Likewise.
10943         * lto-cgraph.c : Likewise.
10944         * lto-compress.c : Likewise.
10945         * lto-opts.c : Likewise.
10946         * lto-section-in.c : Likewise.
10947         * lto-section-out.c : Likewise.
10948         * lto-streamer-in.c : Likewise.
10949         * lto-streamer-out.c : Likewise.
10950         * lto-streamer.c : Likewise.
10951         * lto-streamer.h : Likewise.
10952         * mcf.c : Likewise.
10953         * mode-switching.c : Likewise.
10954         * modulo-sched.c : Likewise.
10955         * omega.c : Likewise.
10956         * omp-low.c : Likewise.
10957         * optabs.c : Likewise.
10958         * opts-global.c : Likewise.
10959         * opts.h : Likewise.
10960         * passes.c : Likewise.
10961         * plugin.c : Likewise.
10962         * postreload-gcse.c : Likewise.
10963         * postreload.c : Likewise.
10964         * predict.c : Likewise.
10965         * print-rtl.c : Likewise.
10966         * print-tree.c : Likewise.
10967         * profile.c : Likewise.
10968         * read-md.c : Likewise.
10969         * read-md.h : Likewise.
10970         * read-rtl.c : Likewise.
10971         * real.c : Likewise.
10972         * realmpfr.c : Likewise.
10973         * recog.c : Likewise.
10974         * ree.c : Likewise.
10975         * reg-stack.c : Likewise.
10976         * regcprop.c : Likewise.
10977         * reginfo.c : Likewise.
10978         * regrename.c : Likewise.
10979         * regstat.c : Likewise.
10980         * reload.c : Likewise.
10981         * reload1.c : Likewise.
10982         * reorg.c : Likewise.
10983         * resource.c : Likewise.
10984         * rtl-chkp.c : Likewise.
10985         * rtl.c : Likewise.
10986         * rtl.h : Likewise.
10987         * rtlanal.c : Likewise.
10988         * rtlhash.c : Likewise.
10989         * rtlhash.h : Likewise.
10990         * rtlhooks.c : Likewise.
10991         * sanopt.c : Likewise.
10992         * sched-deps.c : Likewise.
10993         * sched-ebb.c : Likewise.
10994         * sched-rgn.c : Likewise.
10995         * sched-vis.c : Likewise.
10996         * sdbout.c : Likewise.
10997         * sel-sched-dump.c : Likewise.
10998         * sel-sched-ir.c : Likewise.
10999         * sel-sched-ir.h : Likewise.
11000         * sel-sched.c : Likewise.
11001         * sese.c : Likewise.
11002         * shrink-wrap.c : Likewise.
11003         * shrink-wrap.h : Likewise.
11004         * simplify-rtx.c : Likewise.
11005         * stack-ptr-mod.c : Likewise.
11006         * statistics.c : Likewise.
11007         * stmt.c : Likewise.
11008         * stor-layout.c : Likewise.
11009         * store-motion.c : Likewise.
11010         * stringpool.c : Likewise.
11011         * symtab.c : Likewise.
11012         * target-globals.c : Likewise.
11013         * targhooks.c : Likewise.
11014         * tlink.c : Likewise.
11015         * toplev.c : Likewise.
11016         * tracer.c : Likewise.
11017         * trans-mem.c : Likewise.
11018         * tree-affine.c : Likewise.
11019         * tree-affine.h : Likewise.
11020         * tree-browser.c : Likewise.
11021         * tree-call-cdce.c : Likewise.
11022         * tree-cfg.c : Likewise.
11023         * tree-cfgcleanup.c : Likewise.
11024         * tree-chkp-opt.c : Likewise.
11025         * tree-chkp.c : Likewise.
11026         * tree-chrec.c : Likewise.
11027         * tree-complex.c : Likewise.
11028         * tree-data-ref.c : Likewise.
11029         * tree-dfa.c : Likewise.
11030         * tree-diagnostic.c : Likewise.
11031         * tree-dump.c : Likewise.
11032         * tree-eh.c : Likewise.
11033         * tree-eh.h : Likewise.
11034         * tree-emutls.c : Likewise.
11035         * tree-hasher.h : Likewise.
11036         * tree-if-conv.c : Likewise.
11037         * tree-inline.c : Likewise.
11038         * tree-inline.h : Likewise.
11039         * tree-into-ssa.c : Likewise.
11040         * tree-iterator.c : Likewise.
11041         * tree-loop-distribution.c : Likewise.
11042         * tree-nested.c : Likewise.
11043         * tree-nrv.c : Likewise.
11044         * tree-object-size.c : Likewise.
11045         * tree-outof-ssa.c : Likewise.
11046         * tree-parloops.c : Likewise.
11047         * tree-phinodes.c : Likewise.
11048         * tree-predcom.c : Likewise.
11049         * tree-pretty-print.c : Likewise.
11050         * tree-profile.c : Likewise.
11051         * tree-scalar-evolution.c : Likewise.
11052         * tree-sra.c : Likewise.
11053         * tree-ssa-address.c : Likewise.
11054         * tree-ssa-alias.c : Likewise.
11055         * tree-ssa-ccp.c : Likewise.
11056         * tree-ssa-coalesce.c : Likewise.
11057         * tree-ssa-copy.c : Likewise.
11058         * tree-ssa-copyrename.c : Likewise.
11059         * tree-ssa-dce.c : Likewise.
11060         * tree-ssa-dom.c : Likewise.
11061         * tree-ssa-dse.c : Likewise.
11062         * tree-ssa-forwprop.c : Likewise.
11063         * tree-ssa-ifcombine.c : Likewise.
11064         * tree-ssa-live.c : Likewise.
11065         * tree-ssa-loop-ch.c : Likewise.
11066         * tree-ssa-loop-im.c : Likewise.
11067         * tree-ssa-loop-ivcanon.c : Likewise.
11068         * tree-ssa-loop-ivopts.c : Likewise.
11069         * tree-ssa-loop-manip.c : Likewise.
11070         * tree-ssa-loop-niter.c : Likewise.
11071         * tree-ssa-loop-prefetch.c : Likewise.
11072         * tree-ssa-loop-unswitch.c : Likewise.
11073         * tree-ssa-loop.c : Likewise.
11074         * tree-ssa-math-opts.c : Likewise.
11075         * tree-ssa-operands.c : Likewise.
11076         * tree-ssa-phiopt.c : Likewise.
11077         * tree-ssa-phiprop.c : Likewise.
11078         * tree-ssa-pre.c : Likewise.
11079         * tree-ssa-propagate.c : Likewise.
11080         * tree-ssa-reassoc.c : Likewise.
11081         * tree-ssa-sccvn.c : Likewise.
11082         * tree-ssa-scopedtables.c : Likewise.
11083         * tree-ssa-sink.c : Likewise.
11084         * tree-ssa-strlen.c : Likewise.
11085         * tree-ssa-structalias.c : Likewise.
11086         * tree-ssa-tail-merge.c : Likewise.
11087         * tree-ssa-ter.c : Likewise.
11088         * tree-ssa-threadedge.c : Likewise.
11089         * tree-ssa-threadupdate.c : Likewise.
11090         * tree-ssa-uncprop.c : Likewise.
11091         * tree-ssa-uninit.c : Likewise.
11092         * tree-ssa.c : Likewise.
11093         * tree-ssanames.c : Likewise.
11094         * tree-stdarg.c : Likewise.
11095         * tree-streamer-in.c : Likewise.
11096         * tree-streamer-out.c : Likewise.
11097         * tree-streamer.c : Likewise.
11098         * tree-streamer.h : Likewise.
11099         * tree-switch-conversion.c : Likewise.
11100         * tree-tailcall.c : Likewise.
11101         * tree-vect-data-refs.c : Likewise.
11102         * tree-vect-generic.c : Likewise.
11103         * tree-vect-loop-manip.c : Likewise.
11104         * tree-vect-loop.c : Likewise.
11105         * tree-vect-patterns.c : Likewise.
11106         * tree-vect-slp.c : Likewise.
11107         * tree-vect-stmts.c : Likewise.
11108         * tree-vectorizer.c : Likewise.
11109         * tree-vectorizer.h : Likewise.
11110         * tree-vrp.c : Likewise.
11111         * tree.c : Likewise.
11112         * tsan.c : Likewise.
11113         * ubsan.c : Likewise.
11114         * valtrack.c : Likewise.
11115         * valtrack.h : Likewise.
11116         * value-prof.c : Likewise.
11117         * var-tracking.c : Likewise.
11118         * varasm.c : Likewise.
11119         * varpool.c : Likewise.
11120         * vec.c: Likewise.
11121         * vmsdbgout.c : Likewise.
11122         * vtable-verify.c : Likewise.
11123         * vtable-verify.h : Likewise.
11124         * web.c : Likewise.
11125         * wide-int.cc : Likewise.
11126         * xcoffout.c : Likewise.
11127         * config/aarch64/aarch64-builtins.c : Likewise.
11128         * config/aarch64/aarch64.c : Likewise.
11129         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11130         * config/alpha/alpha.c : Likewise.
11131         * config/arc/arc.c : Likewise.
11132         * config/arm/aarch-common.c : Likewise.
11133         * config/arm/arm-builtins.c : Likewise.
11134         * config/arm/arm-c.c : Likewise.
11135         * config/arm/arm.c : Likewise.
11136         * config/avr/avr-c.c : Likewise.
11137         * config/avr/avr-log.c : Likewise.
11138         * config/avr/avr.c : Likewise.
11139         * config/bfin/bfin.c : Likewise.
11140         * config/c6x/c6x.c : Likewise.
11141         * config/cr16/cr16.c : Likewise.
11142         * config/cris/cris.c : Likewise.
11143         * config/darwin-c.c : Likewise.
11144         * config/darwin.c : Likewise.
11145         * config/default-c.c : Likewise.
11146         * config/epiphany/epiphany.c : Likewise.
11147         * config/epiphany/mode-switch-use.c : Likewise.
11148         * config/epiphany/resolve-sw-modes.c : Likewise.
11149         * config/fr30/fr30.c : Likewise.
11150         * config/frv/frv.c : Likewise.
11151         * config/ft32/ft32.c : Likewise.
11152         * config/glibc-c.c : Likewise.
11153         * config/h8300/h8300.c : Likewise.
11154         * config/i386/i386-c.c : Likewise.
11155         * config/i386/i386.c : Likewise.
11156         * config/i386/msformat-c.c : Likewise.
11157         * config/i386/winnt-cxx.c : Likewise.
11158         * config/i386/winnt-stubs.c : Likewise.
11159         * config/i386/winnt.c : Likewise.
11160         * config/ia64/ia64-c.c : Likewise.
11161         * config/ia64/ia64.c : Likewise.
11162         * config/iq2000/iq2000.c : Likewise.
11163         * config/lm32/lm32.c : Likewise.
11164         * config/m32c/m32c-pragma.c : Likewise.
11165         * config/m32c/m32c.c : Likewise.
11166         * config/m32r/m32r.c : Likewise.
11167         * config/m68k/m68k.c : Likewise.
11168         * config/mcore/mcore.c : Likewise.
11169         * config/mep/mep-pragma.c : Likewise.
11170         * config/mep/mep.c : Likewise.
11171         * config/microblaze/microblaze-c.c : Likewise.
11172         * config/microblaze/microblaze.c : Likewise.
11173         * config/mips/mips.c : Likewise.
11174         * config/mmix/mmix.c : Likewise.
11175         * config/mn10300/mn10300.c : Likewise.
11176         * config/moxie/moxie.c : Likewise.
11177         * config/msp430/msp430-c.c : Likewise.
11178         * config/msp430/msp430.c : Likewise.
11179         * config/nds32/nds32-cost.c : Likewise.
11180         * config/nds32/nds32-fp-as-gp.c : Likewise.
11181         * config/nds32/nds32-intrinsic.c : Likewise.
11182         * config/nds32/nds32-isr.c : Likewise.
11183         * config/nds32/nds32-md-auxiliary.c : Likewise.
11184         * config/nds32/nds32-memory-manipulation.c : Likewise.
11185         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11186         * config/nds32/nds32-predicates.c : Likewise.
11187         * config/nds32/nds32.c : Likewise.
11188         * config/nios2/nios2.c : Likewise.
11189         * config/nvptx/nvptx.c : Likewise.
11190         * config/pa/pa.c : Likewise.
11191         * config/pdp11/pdp11.c : Likewise.
11192         * config/rl78/rl78-c.c : Likewise.
11193         * config/rl78/rl78.c : Likewise.
11194         * config/rs6000/rs6000-c.c : Likewise.
11195         * config/rs6000/rs6000.c : Likewise.
11196         * config/rx/rx.c : Likewise.
11197         * config/s390/s390-c.c : Likewise.
11198         * config/s390/s390.c : Likewise.
11199         * config/sh/sh-c.c : Likewise.
11200         * config/sh/sh-mem.cc : Likewise.
11201         * config/sh/sh.c : Likewise.
11202         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11203         * config/sh/sh_treg_combine.cc : Likewise.
11204         * config/sol2-c.c : Likewise.
11205         * config/sol2-cxx.c : Likewise.
11206         * config/sol2-stubs.c : Likewise.
11207         * config/sol2.c : Likewise.
11208         * config/sparc/sparc-c.c : Likewise.
11209         * config/sparc/sparc.c : Likewise.
11210         * config/spu/spu-c.c : Likewise.
11211         * config/spu/spu.c : Likewise.
11212         * config/stormy16/stormy16.c : Likewise.
11213         * config/tilegx/mul-tables.c : Likewise.
11214         * config/tilegx/tilegx-c.c : Likewise.
11215         * config/tilegx/tilegx.c : Likewise.
11216         * config/tilepro/mul-tables.c : Likewise.
11217         * config/tilepro/tilepro-c.c : Likewise.
11218         * config/tilepro/tilepro.c : Likewise.
11219         * config/v850/v850-c.c : Likewise.
11220         * config/v850/v850.c : Likewise.
11221         * config/vax/vax.c : Likewise.
11222         * config/visium/visium.c : Likewise.
11223         * config/vms/vms-c.c : Likewise.
11224         * config/vms/vms.c : Likewise.
11225         * config/vxworks.c : Likewise.
11226         * config/winnt-c.c : Likewise.
11227         * config/xtensa/xtensa.c : Likewise.
11229 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11231         PR lto/65378
11232         * ipa-utils.h (warn_types_mismatch): Update prototype.
11233         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11234         parameters.
11235         (type_mismatch_p): New function.
11236         (warn_types_mismatch): Reorg to work better on non-C++ types.
11237         (odr_types_equivalent_p): Add loc1/loc2 parameters.
11238         (add_type_duplicate): Update.
11240 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11242         PR rtl-optimization/66444
11243         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11244         call_used_regs.
11246 2015-06-08  Richard Biener  <rguenther@suse.de>
11248         PR tree-optimization/66422
11249         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11250         block after inserted gcc_unreachable.
11252 2015-06-08  Nick Clifton  <nickc@redhat.com>
11254         * config/rx/rx.c (rx_function_value): Do not promote vector types.
11255         (rx_promote_function_mode): Likewise.
11256         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11258 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
11260         * genattrtab.c (insn_alternatives): Change type from int *
11261         to uint64_t *.
11262         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11263         (get_attr_value): Change type of num_alt to uint64_t.
11264         (compute_alternative_mask): Change return type from
11265         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11266         (make_alternative_compare, mk_attr_alt): Change argument type
11267         from int to uint64_t.
11268         (simplify_test_exp): Change type of i from int to uint64_t.
11269         Shift ((uint64_t) 1) instead of 1 up.
11270         (main): Adjust oballocvec first argument from int to uint64_t.
11271         Shift ((uint64_t) 1) instead of 1 up.
11273 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11275         PR other/65366
11276         * gdbhooks.py: Import sys.
11277         (intptr): New function.  Replace int(...) by intptr(...).
11279 2015-06-08  Richard Biener  <rguenther@suse.de>
11281         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11282         adjustment for gaps at the end of a SLP load group properly.
11283         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11284         all permutations we can generate.
11285         (vect_transform_slp_perm_load): Use the correct group-size.
11287 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
11289         * genmatch.c (expr::gen_transform): For conditions, guess the type
11290         from the second operand.
11292 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11294         PR tree-optimization/66442
11295         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11296         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11297         if the loop latch is not a singleton.  Use
11298         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11300 2015-06-08  Marek Polacek  <polacek@redhat.com>
11302         PR sanitizer/66452
11303         * toplev.c (check_global_declaration): Don't warn about artificial
11304         decls.
11306 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11308         PR tree-optimization/66436
11309         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11310         dump file.
11311         * gimplify.c: Add tree-dump.h include.
11312         (gimplify_function_tree): Dump function to gimple dump file.
11313         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11314         dump file.
11316 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11318         PR tree-optimization/66435
11319         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11320         function.
11322 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
11324         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11325         of ptr_type_node to not be ptr_to_node.
11326         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11327         TREE_TYPE of pointers.
11328         * gimple-expr.c (useless_type_conversion): Reorder the check for
11329         function pointers and TYPE_CANONICAL.
11331 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
11333         PR bootstrap/66319
11334         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11335         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11336         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11337         later.
11338         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11339         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11340         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11341         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11342         and non iso if unix2003.
11344 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
11346         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11348 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
11350         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11351         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11352         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11353         except.c, final.c, function.c, gcse-common.c, genemit.c,
11354         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11355         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11356         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11357         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11358         more derived ones.
11360 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
11362         * combine.c (combine_split_insns): Remove cast.
11363         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11364         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11365         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11366         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11367         * genemit.c (gen_split): Change return type of generated functions to
11368         rtx_insn.
11369         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11370         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11371         gen_peephole2_* functions.
11372         (print_subroutine, main): Likewise.
11373         * recog.c (peephole2_optimize): Remove cast.
11374         (peep2_next_insn): Promote return type to rtx_insn.
11375         * recog.h (peep2_next_insn): Fix prototype.
11376         * rtl.h (try_split, split_insns): Likewise.
11378 2015-06-06  DJ Delorie  <dj@redhat.com>
11380         * config/msp430/msp430.c (msp430_asm_integer): Support addition
11381         and subtraction too.
11383 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11385         PR target/66410
11386         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11387         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11388         instead of Snd.  Disparage Sid/z alternative with '^'.
11390 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
11392         * dwarf2out.c: Remove deferred_locations*.
11393         (dwarf2_debug_hooks): Add early_finish hook.
11394         Remove global_decl hook.
11395         Add early_global_decl and late_global_decl hook.
11396         New global early_dwarf.
11397         New structure set_early_dwarf.
11398         (output_die): Indicate whether a DIE was generated early
11399         when generating assembly with -dA.
11400         (struct limbo_die_struct): Document created_for field.
11401         Remove file_table_last_lookup.
11402         (remove_AT): Return TRUE if successful.
11403         (remove_child_TAG): Clear die_parent.
11404         (reparent_child): New function abstracted from...
11405         (splice_child_die): ...here.
11406         (new_die): ICE if a DIE ends up in limbo too late.
11407         (check_die): New.
11408         (defer_location): Remove.
11409         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11410         (fill_variable_array_bounds): New.
11411         (decl_start_label): Call fill_variable_array_bounds.
11412         (gen_formal_parameter_die): Rewrite to reuse previously generated
11413         DIEs.
11414         (gen_subprogram_die): Same.
11415         (gen_variable_die): Same.
11416         (gen_const_die): Same.
11417         (gen_label_die): Same.
11418         (gen_lexical_block_die): Same.
11419         (decl_will_get_specification_p): New.
11420         (local_function_static): New.
11421         (gen_struct_or_union_type_die): Fill in variable-length fields.
11422         (gen_typedef_die): Fill in variable-length typedefs.
11423         (gen_tagged_type_die): Gracefully return on error_mark_node.
11424         Handle re-entrancy.
11425         (gen_type_die_with_usage): Handle variable-length types.
11426         Remove duplicate code for ARRAY_TYPE case.
11427         (process_scope_var): Only process imported modules during early
11428         dwarf.
11429         (dwarf2out_early_global_decl): New.
11430         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11431         (dwarf2out_type_decl): Set early_dwarf while calling
11432         dwarf2out_decl.
11433         (dwarf2out_decl): Verify that we did not recreate a previously
11434         generated DIE.
11435         Do not return on DECL_EXTERNALs in VAR_DECLs.
11436         Abstract some code to local_function_static.
11437         (lookup_filename): Remove use of file_table_last_lookup.
11438         Gracefully exit on missing file_name.
11439         (dwarf2out_finish): Verify limbo list.
11440         Remove deferred_locations_list use.
11441         Move deferred_asm_name and limbo flushing to...
11442         (dwarf2out_early_finish): ...here.  New.
11443         (dwarf2out_c_finalize): Remove set of deferred_location_list,
11444         deferred_asm_name, and file_table_last_lookup.
11445         * cgraph.h (referred_to_p): Add default argument.
11446         * cgraphunit.c (referred_to_p): Add and handle include_self
11447         argument.
11448         (analyze_functions): Add first_time argument.
11449         Call check_global_declaration for all symbols.
11450         Call late_global_decl for nodes for moribund nodes.
11451         (finalize_compilation_unit): Add new argument to
11452         analyze_functions.
11453         Call early_global_decl for functions.
11454         Call early_finish debug hook.
11455         * dbxout.c (dbxout_early_global_decl): New.
11456         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
11457         (dbx_debug_hooks): Add new hooks.
11458         (xcoff_debug_hooks): Same.
11459         * debug.c (do_nothing_debug_hooks): Add early_finish field.
11460         Add early and late debug hooks.
11461         Remove global_decl hook.
11462         * debug.h (struct gcc_debug_hooks): Add early_finish,
11463         early_global_decl, and late_global_decl fields.
11464         Remove global_decl field.
11465         Document gcc_debug_hooks.
11466         * gengtype.c (output_typename): Remove.
11467         * godump.c (go_early_global_decl): New.
11468         (go_late_global_decl): New.
11469         (go_global_decl): Remove.
11470         (dump_go_spec_init): Remove global_decl.  Add
11471         {early,late}_global_decl.
11472         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11473         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11474         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11475         (write_global_declarations): Remove.
11476         (global_decl_processing): New.
11477         * langhooks.h (struct lang_hooks_for_decls): Remove
11478         final_write_globals field.
11479         Add post_compilation_parsing_cleanups field.
11480         * passes.c (rest_of_decl_compilation): Call early_global_decl.
11481         * sdbout.c: Add early and late_global_decl hooks.  Remove
11482         sdbout_global_decl hook.
11483         Add early_finish field for sdb_debug_hooks.
11484         (sdbout_global_decl): Remove.
11485         (sdbout_early_global_decl): New.
11486         (sdbout_late_global_decl): New.
11487         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11488         * toplev.c (check_global_declaration): Rename from
11489         check_global_declaration_1.
11490         Adapt to use symtab infrastructure.
11491         (check_global_declarations): Remove.
11492         (emit_debug_global_declarations): Remove.
11493         (compile_file): Remove call to final_write_globals langhook.
11494         Run the actual compilation process.
11495         Perform any post compilation parser cleanups.
11496         Generate late debug info.
11497         * toplev.h (check_global_declaration): New.
11498         (check_global_declaration_1): Remove.
11499         (check_global_declarations): Remove.
11500         (write_global_declarations): Remove.
11501         (emit_debug_global_declarations): Remove.
11502         (global_decl_processing): New.
11503         * tree-core.h (struct tree_block): Add DIE field.
11504         * tree.h (BLOCK_DIE): New.
11505         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11506         throughout.
11507         (vmsdbgout_early_global_decl): New.
11508         (vmsdbgout_late_global_decl): New.
11509         Add early_finish debug hook field to vmsdbg_debug_hooks.
11510         Remove vmsdbgout_decl to vmsdbgout_function_decl.
11511         Add early and late_global_decl debug hooks.
11513 2015-06-05  Julian Brown  <julian@codesourcery.com>
11514             Sandra Loosemore  <sandra@codesourcery.com>
11516         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11517         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11518         to print-sysroot-suffix.sh script.
11520 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11522         merge from gomp4 branch:
11523         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11525         PR tree-optimization/65443
11526         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11527         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11528         (try_transform_to_exit_first_loop_alt): New function.
11529         (transform_to_exit_first_loop): Use
11530         try_transform_to_exit_first_loop_alt.
11532 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
11534         * builtins.c (expand_builtin_atomic_compare_exchange): Call
11535         emit_cmp_and_jump_insns with the mode of target.
11537 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11539         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11541 2015-06-04  DJ Delorie  <dj@redhat.com>
11543         * config/msp430/msp430.md (movsi_s): New.  Special case for
11544         storing a 20-bit symbol into a 32-bit register.
11545         * config/msp430/msp430.c (msp430_subreg): Add support for it.
11546         * config/msp430/predicates.md (msp430_symbol_operand): New.
11548 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
11550         * c-family/c-common.c (noplt): New attribute.
11551         (handle_noplt_attribute): New handler.
11552         * calls.c (prepare_call_address): Check for noplt
11553         attribute.
11554         * config/i386/i386.c (ix86_expand_call): Check
11555         for noplt attribute.
11556         (ix86_nopic_noplt_attribute_p): New function.
11557         (ix86_output_call_insn): Output indirect call for non-pic
11558         no plt calls.
11559         * doc/extend.texi (noplt): Document new attribute.
11560         * doc/invoke.texi: Document new attribute.
11562 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
11564         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11565         real.h, and fixed-value.h when included in host source files.
11566         * double-int.h: Remove redundant #includes listed above.
11567         * fixed-value.h: Likewise.
11568         * real.h: Likewise.
11569         * wide-int.h: Likewise.
11570         * inchash.h: Likewise.
11571         * rtl.h: Add some include files When included from a generator file.
11572         * target.h: Remove wide-int.h and insn-modes.h from the include list.
11573         * internal-fn.h: Don't include coretypes.h.
11574         * alias.c: Adjust includes for restructured coretypes.h.
11575         * asan.c: Likewise.
11576         * attribs.c: Likewise.
11577         * auto-inc-dec.c: Likewise.
11578         * auto-profile.c: Likewise.
11579         * bb-reorder.c: Likewise.
11580         * bt-load.c: Likewise.
11581         * builtins.c: Likewise.
11582         * caller-save.c: Likewise.
11583         * calls.c: Likewise.
11584         * ccmp.c: Likewise.
11585         * cfg.c: Likewise.
11586         * cfganal.c: Likewise.
11587         * cfgbuild.c: Likewise.
11588         * cfgcleanup.c: Likewise.
11589         * cfgexpand.c: Likewise.
11590         * cfghooks.c: Likewise.
11591         * cfgloop.c: Likewise.
11592         * cfgloop.h: Likewise.
11593         * cfgloopanal.c: Likewise.
11594         * cfgloopmanip.c: Likewise.
11595         * cfgrtl.c: Likewise.
11596         * cgraph.c: Likewise.
11597         * cgraphbuild.c: Likewise.
11598         * cgraphclones.c: Likewise.
11599         * cgraphunit.c: Likewise.
11600         * cilk-common.c: Likewise.
11601         * combine-stack-adj.c: Likewise.
11602         * combine.c: Likewise.
11603         * compare-elim.c: Likewise.
11604         * convert.c: Likewise.
11605         * coverage.c: Likewise.
11606         * cppbuiltin.c: Likewise.
11607         * cprop.c: Likewise.
11608         * cse.c: Likewise.
11609         * cselib.c: Likewise.
11610         * data-streamer-in.c: Likewise.
11611         * data-streamer-out.c: Likewise.
11612         * data-streamer.c: Likewise.
11613         * dbxout.c: Likewise.
11614         * dce.c: Likewise.
11615         * ddg.c: Likewise.
11616         * debug.c: Likewise.
11617         * df-core.c: Likewise.
11618         * df-problems.c: Likewise.
11619         * df-scan.c: Likewise.
11620         * df.h: Likewise.
11621         * dfp.c: Likewise.
11622         * dojump.c: Likewise.
11623         * dominance.c: Likewise.
11624         * domwalk.c: Likewise.
11625         * double-int.c: Likewise.
11626         * dse.c: Likewise.
11627         * dumpfile.c: Likewise.
11628         * dwarf2asm.c: Likewise.
11629         * dwarf2cfi.c: Likewise.
11630         * dwarf2out.c: Likewise.
11631         * dwarf2out.h: Likewise.
11632         * emit-rtl.c: Likewise.
11633         * et-forest.c: Likewise.
11634         * except.c: Likewise.
11635         * explow.c: Likewise.
11636         * expmed.c: Likewise.
11637         * expr.c: Likewise.
11638         * final.c: Likewise.
11639         * fixed-value.c: Likewise.
11640         * fold-const.c: Likewise.
11641         * function.c: Likewise.
11642         * fwprop.c: Likewise.
11643         * gcc-plugin.h: Likewise.
11644         * gcse.c: Likewise.
11645         * generic-match-head.c: Likewise.
11646         * ggc-page.c: Likewise.
11647         * gimple-builder.c: Likewise.
11648         * gimple-expr.c: Likewise.
11649         * gimple-fold.c: Likewise.
11650         * gimple-iterator.c: Likewise.
11651         * gimple-low.c: Likewise.
11652         * gimple-match-head.c: Likewise.
11653         * gimple-pretty-print.c: Likewise.
11654         * gimple-ssa-isolate-paths.c: Likewise.
11655         * gimple-ssa-strength-reduction.c: Likewise.
11656         * gimple-streamer-in.c: Likewise.
11657         * gimple-streamer-out.c: Likewise.
11658         * gimple-streamer.h: Likewise.
11659         * gimple-walk.c: Likewise.
11660         * gimple.c: Likewise.
11661         * gimplify-me.c: Likewise.
11662         * gimplify.c: Likewise.
11663         * godump.c: Likewise.
11664         * graph.c: Likewise.
11665         * graphite-blocking.c: Likewise.
11666         * graphite-dependences.c: Likewise.
11667         * graphite-interchange.c: Likewise.
11668         * graphite-isl-ast-to-gimple.c: Likewise.
11669         * graphite-optimize-isl.c: Likewise.
11670         * graphite-poly.c: Likewise.
11671         * graphite-scop-detection.c: Likewise.
11672         * graphite-sese-to-poly.c: Likewise.
11673         * graphite.c: Likewise.
11674         * haifa-sched.c: Likewise.
11675         * hooks.h: Likewise.
11676         * hw-doloop.c: Likewise.
11677         * ifcvt.c: Likewise.
11678         * incpath.c: Likewise.
11679         * init-regs.c: Likewise.
11680         * internal-fn.c: Likewise.
11681         * ipa-chkp.c: Likewise.
11682         * ipa-comdats.c: Likewise.
11683         * ipa-cp.c: Likewise.
11684         * ipa-devirt.c: Likewise.
11685         * ipa-icf-gimple.c: Likewise.
11686         * ipa-icf.c: Likewise.
11687         * ipa-inline-analysis.c: Likewise.
11688         * ipa-inline-transform.c: Likewise.
11689         * ipa-inline.c: Likewise.
11690         * ipa-polymorphic-call.c: Likewise.
11691         * ipa-profile.c: Likewise.
11692         * ipa-prop.c: Likewise.
11693         * ipa-pure-const.c: Likewise.
11694         * ipa-ref.c: Likewise.
11695         * ipa-reference.c: Likewise.
11696         * ipa-split.c: Likewise.
11697         * ipa-utils.c: Likewise.
11698         * ipa-visibility.c: Likewise.
11699         * ipa.c: Likewise.
11700         * ira-build.c: Likewise.
11701         * ira-color.c: Likewise.
11702         * ira-conflicts.c: Likewise.
11703         * ira-costs.c: Likewise.
11704         * ira-emit.c: Likewise.
11705         * ira-lives.c: Likewise.
11706         * ira.c: Likewise.
11707         * jump.c: Likewise.
11708         * langhooks.c: Likewise.
11709         * lcm.c: Likewise.
11710         * loop-doloop.c: Likewise.
11711         * loop-init.c: Likewise.
11712         * loop-invariant.c: Likewise.
11713         * loop-iv.c: Likewise.
11714         * loop-unroll.c: Likewise.
11715         * lower-subreg.c: Likewise.
11716         * lra-assigns.c: Likewise.
11717         * lra-coalesce.c: Likewise.
11718         * lra-constraints.c: Likewise.
11719         * lra-eliminations.c: Likewise.
11720         * lra-lives.c: Likewise.
11721         * lra-remat.c: Likewise.
11722         * lra-spills.c: Likewise.
11723         * lra.c: Likewise.
11724         * lto-cgraph.c: Likewise.
11725         * lto-compress.c: Likewise.
11726         * lto-opts.c: Likewise.
11727         * lto-section-in.c: Likewise.
11728         * lto-section-out.c: Likewise.
11729         * lto-streamer-in.c: Likewise.
11730         * lto-streamer-out.c: Likewise.
11731         * lto-streamer.c: Likewise.
11732         * mcf.c: Likewise.
11733         * mode-switching.c: Likewise.
11734         * modulo-sched.c: Likewise.
11735         * omega.c: Likewise.
11736         * omp-low.c: Likewise.
11737         * optabs.c: Likewise.
11738         * opts-global.c: Likewise.
11739         * passes.c: Likewise.
11740         * plugin.c: Likewise.
11741         * postreload-gcse.c: Likewise.
11742         * postreload.c: Likewise.
11743         * predict.c: Likewise.
11744         * print-rtl.c: Likewise.
11745         * print-tree.c: Likewise.
11746         * profile.c: Likewise.
11747         * real.c: Likewise.
11748         * realmpfr.c: Likewise.
11749         * realmpfr.h: Likewise.
11750         * recog.c: Likewise.
11751         * ree.c: Likewise.
11752         * reg-stack.c: Likewise.
11753         * regcprop.c: Likewise.
11754         * reginfo.c: Likewise.
11755         * regrename.c: Likewise.
11756         * regs.h: Likewise.
11757         * regstat.c: Likewise.
11758         * reload.c: Likewise.
11759         * reload1.c: Likewise.
11760         * reorg.c: Likewise.
11761         * resource.c: Likewise.
11762         * rtl-chkp.c: Likewise.
11763         * rtlanal.c: Likewise.
11764         * rtlhooks.c: Likewise.
11765         * sanopt.c: Likewise.
11766         * sched-deps.c: Likewise.
11767         * sched-ebb.c: Likewise.
11768         * sched-rgn.c: Likewise.
11769         * sched-vis.c: Likewise.
11770         * sdbout.c: Likewise.
11771         * sel-sched-dump.c: Likewise.
11772         * sel-sched-ir.c: Likewise.
11773         * sel-sched.c: Likewise.
11774         * sese.c: Likewise.
11775         * shrink-wrap.c: Likewise.
11776         * shrink-wrap.h: Likewise.
11777         * simplify-rtx.c: Likewise.
11778         * stack-ptr-mod.c: Likewise.
11779         * statistics.c: Likewise.
11780         * stmt.c: Likewise.
11781         * stor-layout.c: Likewise.
11782         * store-motion.c: Likewise.
11783         * stringpool.c: Likewise.
11784         * symtab.c: Likewise.
11785         * target-globals.c: Likewise.
11786         * targhooks.c: Likewise.
11787         * toplev.c: Likewise.
11788         * tracer.c: Likewise.
11789         * trans-mem.c: Likewise.
11790         * tree-affine.c: Likewise.
11791         * tree-affine.h: Likewise.
11792         * tree-browser.c: Likewise.
11793         * tree-call-cdce.c: Likewise.
11794         * tree-cfg.c: Likewise.
11795         * tree-cfgcleanup.c: Likewise.
11796         * tree-chkp-opt.c: Likewise.
11797         * tree-chkp.c: Likewise.
11798         * tree-chrec.c: Likewise.
11799         * tree-complex.c: Likewise.
11800         * tree-data-ref.c: Likewise.
11801         * tree-dfa.c: Likewise.
11802         * tree-diagnostic.c: Likewise.
11803         * tree-dump.c: Likewise.
11804         * tree-eh.c: Likewise.
11805         * tree-emutls.c: Likewise.
11806         * tree-if-conv.c: Likewise.
11807         * tree-inline.c: Likewise.
11808         * tree-into-ssa.c: Likewise.
11809         * tree-iterator.c: Likewise.
11810         * tree-loop-distribution.c: Likewise.
11811         * tree-nested.c: Likewise.
11812         * tree-nrv.c: Likewise.
11813         * tree-object-size.c: Likewise.
11814         * tree-outof-ssa.c: Likewise.
11815         * tree-parloops.c: Likewise.
11816         * tree-phinodes.c: Likewise.
11817         * tree-predcom.c: Likewise.
11818         * tree-pretty-print.c: Likewise.
11819         * tree-pretty-print.h: Likewise.
11820         * tree-profile.c: Likewise.
11821         * tree-scalar-evolution.c: Likewise.
11822         * tree-sra.c: Likewise.
11823         * tree-ssa-address.c: Likewise.
11824         * tree-ssa-alias.c: Likewise.
11825         * tree-ssa-ccp.c: Likewise.
11826         * tree-ssa-coalesce.c: Likewise.
11827         * tree-ssa-copy.c: Likewise.
11828         * tree-ssa-copyrename.c: Likewise.
11829         * tree-ssa-dce.c: Likewise.
11830         * tree-ssa-dom.c: Likewise.
11831         * tree-ssa-dse.c: Likewise.
11832         * tree-ssa-forwprop.c: Likewise.
11833         * tree-ssa-ifcombine.c: Likewise.
11834         * tree-ssa-live.c: Likewise.
11835         * tree-ssa-loop-ch.c: Likewise.
11836         * tree-ssa-loop-im.c: Likewise.
11837         * tree-ssa-loop-ivcanon.c: Likewise.
11838         * tree-ssa-loop-ivopts.c: Likewise.
11839         * tree-ssa-loop-manip.c: Likewise.
11840         * tree-ssa-loop-niter.c: Likewise.
11841         * tree-ssa-loop-prefetch.c: Likewise.
11842         * tree-ssa-loop-unswitch.c: Likewise.
11843         * tree-ssa-loop.c: Likewise.
11844         * tree-ssa-loop.h: Likewise.
11845         * tree-ssa-math-opts.c: Likewise.
11846         * tree-ssa-operands.c: Likewise.
11847         * tree-ssa-phiopt.c: Likewise.
11848         * tree-ssa-phiprop.c: Likewise.
11849         * tree-ssa-pre.c: Likewise.
11850         * tree-ssa-propagate.c: Likewise.
11851         * tree-ssa-reassoc.c: Likewise.
11852         * tree-ssa-sccvn.c: Likewise.
11853         * tree-ssa-scopedtables.c: Likewise.
11854         * tree-ssa-sink.c: Likewise.
11855         * tree-ssa-strlen.c: Likewise.
11856         * tree-ssa-structalias.c: Likewise.
11857         * tree-ssa-tail-merge.c: Likewise.
11858         * tree-ssa-ter.c: Likewise.
11859         * tree-ssa-threadedge.c: Likewise.
11860         * tree-ssa-threadupdate.c: Likewise.
11861         * tree-ssa-uncprop.c: Likewise.
11862         * tree-ssa-uninit.c: Likewise.
11863         * tree-ssa.c: Likewise.
11864         * tree-ssanames.c: Likewise.
11865         * tree-stdarg.c: Likewise.
11866         * tree-streamer-in.c: Likewise.
11867         * tree-streamer-out.c: Likewise.
11868         * tree-streamer.c: Likewise.
11869         * tree-switch-conversion.c: Likewise.
11870         * tree-tailcall.c: Likewise.
11871         * tree-vect-data-refs.c: Likewise.
11872         * tree-vect-generic.c: Likewise.
11873         * tree-vect-loop-manip.c: Likewise.
11874         * tree-vect-loop.c: Likewise.
11875         * tree-vect-patterns.c: Likewise.
11876         * tree-vect-slp.c: Likewise.
11877         * tree-vect-stmts.c: Likewise.
11878         * tree-vectorizer.c: Likewise.
11879         * tree-vrp.c: Likewise.
11880         * tree.c: Likewise.
11881         * tsan.c: Likewise.
11882         * ubsan.c: Likewise.
11883         * valtrack.c: Likewise.
11884         * value-prof.c: Likewise.
11885         * var-tracking.c: Likewise.
11886         * varasm.c: Likewise.
11887         * varpool.c: Likewise.
11888         * vmsdbgout.c: Likewise.
11889         * vtable-verify.c: Likewise.
11890         * web.c: Likewise.
11891         * wide-int-print.cc: Likewise.
11892         * wide-int-print.h: Likewise.
11893         * wide-int.cc: Likewise.
11894         * xcoffout.c: Likewise.
11895         * config/aarch64/aarch64-builtins.c: Likewise.
11896         * config/aarch64/aarch64.c: Likewise.
11897         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11898         * config/alpha/alpha.c: Likewise.
11899         * config/arc/arc.c: Likewise.
11900         * config/arm/aarch-common.c: Likewise.
11901         * config/arm/arm-builtins.c: Likewise.
11902         * config/arm/arm-c.c: Likewise.
11903         * config/arm/arm.c: Likewise.
11904         * config/avr/avr-c.c: Likewise.
11905         * config/avr/avr-log.c: Likewise.
11906         * config/avr/avr.c: Likewise.
11907         * config/bfin/bfin.c: Likewise.
11908         * config/c6x/c6x.c: Likewise.
11909         * config/cr16/cr16.c: Likewise.
11910         * config/cris/cris.c: Likewise.
11911         * config/darwin-c.c: Likewise.
11912         * config/darwin.c: Likewise.
11913         * config/default-c.c: Likewise.
11914         * config/epiphany/epiphany.c: Likewise.
11915         * config/epiphany/mode-switch-use.c: Likewise.
11916         * config/epiphany/resolve-sw-modes.c: Likewise.
11917         * config/fr30/fr30.c: Likewise.
11918         * config/frv/frv.c: Likewise.
11919         * config/ft32/ft32.c: Likewise.
11920         * config/glibc-c.c: Likewise.
11921         * config/h8300/h8300.c: Likewise.
11922         * config/i386/i386-c.c: Likewise.
11923         * config/i386/i386.c: Likewise.
11924         * config/i386/msformat-c.c: Likewise.
11925         * config/i386/winnt-cxx.c: Likewise.
11926         * config/i386/winnt-stubs.c: Likewise.
11927         * config/i386/winnt.c: Likewise.
11928         * config/ia64/ia64-c.c: Likewise.
11929         * config/ia64/ia64.c: Likewise.
11930         * config/iq2000/iq2000.c: Likewise.
11931         * config/lm32/lm32.c: Likewise.
11932         * config/m32c/m32c-pragma.c: Likewise.
11933         * config/m32c/m32c.c: Likewise.
11934         * config/m32r/m32r.c: Likewise.
11935         * config/m68k/m68k.c: Likewise.
11936         * config/mcore/mcore.c: Likewise.
11937         * config/mep/mep-pragma.c: Likewise.
11938         * config/mep/mep.c: Likewise.
11939         * config/microblaze/microblaze-c.c: Likewise.
11940         * config/microblaze/microblaze.c: Likewise.
11941         * config/mips/mips.c: Likewise.
11942         * config/mmix/mmix.c: Likewise.
11943         * config/mn10300/mn10300.c: Likewise.
11944         * config/moxie/moxie.c: Likewise.
11945         * config/msp430/msp430-c.c: Likewise.
11946         * config/msp430/msp430.c: Likewise.
11947         * config/nds32/nds32-cost.c: Likewise.
11948         * config/nds32/nds32-fp-as-gp.c: Likewise.
11949         * config/nds32/nds32-intrinsic.c: Likewise.
11950         * config/nds32/nds32-isr.c: Likewise.
11951         * config/nds32/nds32-md-auxiliary.c: Likewise.
11952         * config/nds32/nds32-memory-manipulation.c: Likewise.
11953         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11954         * config/nds32/nds32-predicates.c: Likewise.
11955         * config/nds32/nds32.c: Likewise.
11956         * config/nios2/nios2.c: Likewise.
11957         * config/nvptx/nvptx.c: Likewise.
11958         * config/pa/pa.c: Likewise.
11959         * config/pdp11/pdp11.c: Likewise.
11960         * config/rl78/rl78-c.c: Likewise.
11961         * config/rl78/rl78.c: Likewise.
11962         * config/rs6000/rs6000-c.c: Likewise.
11963         * config/rs6000/rs6000.c: Likewise.
11964         * config/rx/rx.c: Likewise.
11965         * config/s390/s390-c.c: Likewise.
11966         * config/s390/s390.c: Likewise.
11967         * config/sh/sh-c.c: Likewise.
11968         * config/sh/sh-mem.cc: Likewise.
11969         * config/sh/sh.c: Likewise.
11970         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11971         * config/sh/sh_treg_combine.cc: Likewise.
11972         * config/sol2-c.c: Likewise.
11973         * config/sol2-cxx.c: Likewise.
11974         * config/sol2-stubs.c: Likewise.
11975         * config/sol2.c: Likewise.
11976         * config/sparc/sparc-c.c: Likewise.
11977         * config/sparc/sparc.c: Likewise.
11978         * config/spu/spu-c.c: Likewise.
11979         * config/spu/spu.c: Likewise.
11980         * config/stormy16/stormy16.c: Likewise.
11981         * config/tilegx/mul-tables.c: Likewise.
11982         * config/tilegx/tilegx-c.c: Likewise.
11983         * config/tilegx/tilegx.c: Likewise.
11984         * config/tilepro/mul-tables.c: Likewise.
11985         * config/tilepro/tilepro-c.c: Likewise.
11986         * config/tilepro/tilepro.c: Likewise.
11987         * config/v850/v850-c.c: Likewise.
11988         * config/v850/v850.c: Likewise.
11989         * config/vax/vax.c: Likewise.
11990         * config/visium/visium.c: Likewise.
11991         * config/vms/vms-c.c: Likewise.
11992         * config/vms/vms.c: Likewise.
11993         * config/vxworks.c: Likewise.
11994         * config/winnt-c.c: Likewise.
11995         * config/xtensa/xtensa.c: Likewise.
11996         * common/config/bfin/bfin-common.c: Likewise.
11998 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
12000         * tree.h (tree_code_for_canonical_type_merging): New function.
12001         * tree.c (gimple_canonical_types_compatible_p): Use
12002         tree_code_for_canonical_type_merging..
12004 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12006         PR c++/66192
12007         PR target/66200
12008         * doc/tm.texi: Regenerate.
12009         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12010         * target.def (TARGET_RELAXED_ORDERING): Likewise.
12011         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12012         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12013         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12014         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12015         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12016         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12017         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12019 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12021         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12022         register fma steering pass.
12023         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12024         AARCH64_TUNE_FMA_STEERING.
12026 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
12028         * tree.c (verify_type_variant): Verify that type and variant is
12029         compatible.
12030         (gimple_canonical_types_compatible_p): Look for main variants.
12032 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12034         * config.gcc (powerpc*-*-*): Add support for a new configure
12035         option --with-advance-toolchain=<xxx> which overrides using the
12036         default header files, libraries and dynamic linker.
12038         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12039         specs to support the configure --with-advance-toolchain=<xxx>
12040         option.
12041         (INCLUDE_EXTRA_SPEC): Likewise.
12042         (LINK_OS_EXTRA_SPEC32): Likewise.
12043         (LINK_OK_EXTRA_SPEC64): Likewise.
12044         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12045         (DYNAMIC_LINKER_PREFIX): Likewise.
12046         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12047         toolchain support.
12048         (GLIBC_DYNAMIC_LINKER32): Likewise.
12049         (GLIBC_DYNAMIC_LINKER64): Likewise.
12050         (LINK_OS_LINUX_SPEC32): Likewise.
12051         (LINK_OS_LINUX_SPEC64): Likewise.
12053         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12054         configuration option.
12056 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
12058         PR target/66275
12059         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12060         to determine current function ABI.
12061         (ix86_function_value_regno_p): Ditto.
12063 2015-06-03  Martin Liska  <mliska@suse.cz>
12065         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12066         * bitmap.h (struct bitmap_usage): Likewise.
12067         * ggc-common.c (struct ggc_usage): Likewise.
12068         * mem-stats.h (struct mem_location): Likewise.
12069         (struct mem_usage): Likewise.
12070         * vec.c (struct vec_usage): Likewise.
12072 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
12074         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12075         -Bsymbolic.
12077 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
12079         * doc/plugins.texi (enum plugin_event): New event.
12080         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12081         and PLUGIN_FINISH_FUNCTION.
12082         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12083         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12085 2015-06-03  Richard Biener  <rguenther@suse.de>
12087         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12088         compute GROUP_GAP for the first element.
12089         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12090         on in-group gaps.
12092 2015-06-03  Nick Clifton  <nickc@redhat.com>
12094         * config/rl78/rl78-real.md: Add peepholes to avoid a register
12095         copy when calling a function.
12096         * config/rl78/rl78.c (need_to_save): Do not push the frame
12097         pointer in an interrupt handler prologue if it is never used.
12099 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12101         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12103 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12105         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12106         reference when cloning alias node.
12108 2015-06-03  Martin Liska  <mliska@suse.cz>
12110         * alloc-pool.h (struct pool_usage): Correct space padding.
12111         * ggc-page.c (ggc_print_statistics): Align columns in a report.
12112         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12113         * tree.c (dump_tree_statistics): Align columns in a report.
12115 2015-06-03  Martin Liska  <mliska@suse.cz>
12117         * alloc-pool.c (allocate_pool_descriptor): Remove.
12118         (struct pool_output_info): Likewise.
12119         (print_alloc_pool_statistics): Likewise.
12120         (dump_alloc_pool_statistics): Likewise.
12121         * alloc-pool.h (struct pool_usage): New struct.
12122         (pool_allocator::initialize): Change usage of memory statistics
12123         to a new interface.
12124         (pool_allocator::release): Likewise.
12125         (pool_allocator::allocate): Likewise.
12126         (pool_allocator::remove): Likewise.
12127         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12128         for a pool allocator.
12129         * mem-stats.h (struct mem_location): Add new ctor.
12130         (struct mem_usage): Add counter for number of
12131         instances.
12132         (mem_alloc_description::register_descriptor): New overload of
12133         * mem-stats.h (mem_location::to_string): New function.
12134         * bitmap.h (struct bitmap_usage): Use this new function.
12135         * ggc-common.c (struct ggc_usage): Likewise.
12136         the function.
12138 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12140         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12141         of GCC_INSN_FLAGS_H block.
12143 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
12145         * explow.c (plus_constant): Update check after force_const_mem call
12146         to see if the value returned is not a NULL_RTX.
12148 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12150         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12151         remove instumentation thunks calling reachable functions.
12152         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12153         * lto/lto-partition.c (privatize_symbol_name_1): New.
12154         (privatize_symbol_name): Privatize both decl and orig_decl
12155         names for instrumented functions.
12156         * cgraph.c (cgraph_node::verify_node): Add transparent
12157         alias chain check for instrumented node.
12159 2015-06-03  Marek Polacek  <polacek@redhat.com>
12161         PR c/64223
12162         PR c/29358
12163         * tree.c (attribute_value_equal): Handle attribute format.
12164         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12166 2015-06-03  Richard Biener  <rguenther@suse.de>
12168         PR tree-optimization/63916
12169         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12170         Forward-propagate non-invariant addresses by splicing their
12171         reference ops if the result isn't going to be used by PRE.
12172         (vn_reference_lookup_3): Remove pointless assert.
12174 2015-06-03  Richard Biener  <rguenther@suse.de>
12176         PR tree-optimization/66375
12177         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12178         add to the evolution before following SSA edges.
12180 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
12182         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12183         (dump_use, dump_cand, find_induction_variables): Pass new argument
12184         to dump_iv.
12185         (record_use): Preserve the ssa name information in IV.
12187 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12189         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12190         NO_MODE_TEST.
12191         (add_mode_tests): Don't add mode tests if the predicate only
12192         accepts scalar constant integers.  Otherwise, allow the mode
12193         of "op" to be VOIDmode if the predicate does accept such integers.
12195 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
12197         PR target/66258
12198         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12199         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12200         (aarch64_secondary_reload): Likewise
12201         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12202         to !TARGET_FLOAT.
12203         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12204         Likewise.
12206 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
12207             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12209         PR target/65768
12210         * cprop.c (try_replace_reg): Check cost of constants before propagating.
12212 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12214         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12215         provide access to the IBM extended double floating point mode if
12216         long double is IEEE 128-bit floating point.
12217         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12218         point if long double is the IBM extended double type.
12220         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12221         enable adding IEEE 128-bit floating point support.
12222         (-mfloat128-software): Likewise.
12223         (-mfloat128-sw): Likewise.
12225         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12226         128-bit floating point types to occupy any register if
12227         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
12228         -mfloat128-software is enabled.
12229         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12230         support.
12231         (rs6000_option_override_internal): Add -mfloat128-* support.
12232         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12234         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12235         and float128 type nodes.
12236         (ieee128_float_type_node): Likewise.
12237         (ibm128_float_type_node): Likewise.
12239 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12241         PR target/66136
12242         * config/aarch64/geniterators.sh: Rewrite in awk.
12244 2015-06-02  Martin Liska  <mliska@suse.cz>
12246         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12247         values to avoid -Wmaybe-uninitialized errors.
12249 2015-06-02  Richard Biener  <rguenther@suse.de>
12251         PR debug/65549
12252         * dwarf2out.c (lookup_context_die): New function.
12253         (resolve_addr): Avoid forcing a full DIE for the
12254         target of a DW_TAG_GNU_call_site during late compilation.
12255         Instead create a stub DIE without a type if we have a
12256         context DIE present.
12258 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
12260         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12262 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12264         PR tree-optimization/48052
12265         * cfgloop.h (struct control_iv): New.
12266         (struct loop): New field control_ivs.
12267         * tree-ssa-loop-niter.c : Include "stor-layout.h".
12268         (number_of_iterations_lt): Set no_overflow information.
12269         (number_of_iterations_exit): Init control iv in niter struct.
12270         (record_control_iv): New.
12271         (estimate_numbers_of_iterations_loop): Call record_control_iv.
12272         (loop_exits_before_overflow): New.  Interface factored out of
12273         scev_probably_wraps_p.
12274         (scev_probably_wraps_p): Factor loop niter related code into
12275         loop_exits_before_overflow.
12276         (free_numbers_of_iterations_estimates_loop): Free control ivs.
12277         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12279 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12281         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12282         the target doesn't belong to the current function.
12284 2015-06-02  Marek Polacek  <polacek@redhat.com>
12286         PR middle-end/66345
12287         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12288         get_maxval_strlen does not produce an INTEGER_CST.
12290 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
12292         * config/arc/constraints.md: Use lower-case names in match_code.
12293         * config/mmix/constraints.md: Likewise.
12295 2015-06-02  Richard Biener  <rguenther@suse.de>
12297         PR tree-optimization/65961
12298         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12299         check and clarify dump message.
12300         (vect_build_slp_tree): If all children are built up from scalars
12301         build up the parent from scalars instead.
12302         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12304 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12306         PR other/65366
12307         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
12308         instead of print ... .
12310 2015-06-02  Alan Modra  <amodra@gmail.com>
12312         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12313         2014-08-11 change.
12315 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12317         PR tree-optimization/52563
12318         PR tree-optimization/62173
12319         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
12320         (alloc_iv, set_iv): New parameter.
12321         (determine_biv_step): Delete.
12322         (find_bivs): Inline original determine_biv_step.  Pass new
12323         argument to set_iv.
12324         (idx_find_step): Use no_overflow information for conversion.
12325         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12326         resolve_mixers handle folded_casts.
12327         (instantiate_scev_name): Change bool parameter to bool pointer.
12328         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12329         (instantiate_array_ref, instantiate_scev_not): Ditto.
12330         (instantiate_scev_3, instantiate_scev_2): Ditto.
12331         (instantiate_scev_1, instantiate_scev_r): Ditto.
12332         (instantiate_scev_convert, ): Change parameter.  Pass argument
12333         to chrec_convert_aggressive.
12334         (instantiate_scev): Change argument.
12335         (resolve_mixers): New parameter and set it.
12336         (scev_const_prop): New argument.
12337         * tree-scalar-evolution.h (resolve_mixers): New parameter.
12338         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12339         of chrec_conert_1.
12340         (chrec_convert): New parameter.  Move definition below.
12341         (chrec_convert_aggressive): New parameter and set it.  Call
12342         convert_affine_scev.
12343         * tree-chrec.h (chrec_convert): New parameter.
12344         (chrec_convert_aggressive): Ditto.
12346 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12348         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12349         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12350         the LHS of a no-return call if its type has variable size.
12351         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12352         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12354 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
12356         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12357         * config.in: Regenerate.
12359 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
12361         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12362         consecutive accesses within outer-loop with force_vectorize
12363         for references with zero step in inner-loop.
12365 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12367         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12368         rather than from gcc/build directory.
12370 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12372         PR target/65697
12373         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12374         for __sync memory models, emit initial loads and final barriers as
12375         appropriate.
12377 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12379         PR target/65697
12380         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12381         (aarch64_split_atomic_op): Check for __sync memory models, emit
12382         appropriate initial loads and final barriers.
12384 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12386         * Makefile.in: Fix gcov dependencies that should
12387         not point to a build folder.
12389 2015-06-01  Richard Biener  <rguenther@suse.de>
12391         Revert
12392         2015-05-29  Richard Biener  <rguenther@suse.de>
12394         PR tree-optimization/66314
12395         * tree-ssa-threadupdate.c (create_block_for_threading): Add
12396         parameter that says which loop the new block belongs to.
12397         (ssa_create_duplicates): Blocks duplicated for the threaded
12398         path belong to the loop of the thread destination.
12400 2015-06-01  Martin Liska  <mliska@suse.cz>
12402         * sched-deps.c: Include pool-alloc.h before
12403         cselib.h header file is included.
12405 2015-06-01  Richard Biener  <rguenther@suse.de>
12407         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12408         functions.
12410 2015-06-01  Martin Liska  <mliska@suse.cz>
12412         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12413         a function local variable.
12415 2015-06-01  Martin Liska  <mliska@suse.cz>
12417         * alloc-pool.c (create_alloc_pool): Remove.
12418         (empty_alloc_pool): Likewise.
12419         (free_alloc_pool): Likewise.
12420         (free_alloc_pool_if_empty): Likewise.
12421         (pool_alloc): Likewise.
12422         (pool_free): Likewise.
12423         * alloc-pool.h: Remove old declarations.
12425 2015-06-01  Martin Liska  <mliska@suse.cz>
12427         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12428         (ira_create_object): Likewise.
12429         (ira_create_allocno): Likewise.
12430         (ira_create_live_range): Likewise.
12431         (copy_live_range): Likewise.
12432         (ira_finish_live_range): Likewise.
12433         (ira_free_allocno_costs): Likewise.
12434         (finish_allocno): Likewise.
12435         (finish_allocnos): Likewise.
12436         (initiate_prefs): Likewise.
12437         (ira_create_pref): Likewise.
12438         (finish_pref): Likewise.
12439         (finish_prefs): Likewise.
12440         (initiate_copies): Likewise.
12441         (ira_create_copy): Likewise.
12442         (finish_copy): Likewise.
12443         (finish_copies): Likewise.
12444         (finish_prefs): Likewise.
12446 2015-06-01  Martin Liska  <mliska@suse.cz>
12448         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12449         (allocate_and_init_ipcp_value): Likewise.
12450         (ipcp_lattice::add_value): Likewise.
12451         (merge_agg_lats_step): Likewise.
12452         (ipcp_driver): Likewise.
12453         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12454         (ipa_free_all_structures_after_iinln): Likewise.
12455         * ipa-prop.h: Likewise.
12457 2015-06-01  Martin Liska  <mliska@suse.cz>
12459         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12460         pool allocator.
12461         (set_hint_predicate): Likewise.
12462         (inline_summary_alloc): Likewise.
12463         (reset_inline_edge_summary): Likewise.
12464         (reset_inline_summary): Likewise.
12465         (set_cond_stmt_execution_predicate): Likewise.
12466         (set_switch_stmt_execution_predicate): Likewise.
12467         (compute_bb_predicates): Likewise.
12468         (estimate_function_body_sizes): Likewise.
12469         (inline_free_summary): Likewise.
12471 2015-06-01  Martin Liska  <mliska@suse.cz>
12473         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12474         (ipa_edge_duplication_hook): Likewise.
12475         (ipa_free_all_structures_after_ipa_cp): Likewise.
12476         (ipa_free_all_structures_after_iinln): Likewise.
12478 2015-06-01  Martin Liska  <mliska@suse.cz>
12480         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12481         (ipa_profile_generate_summary): Likewise.
12482         (ipa_profile_read_summary): Likewise.
12483         (ipa_profile): Likewise.
12485 2015-06-01  Martin Liska  <mliska@suse.cz>
12487         * tree-ssa-structalias.c (new_var_info): Use new type-based
12488         pool allocator.
12489         (new_constraint): Likewise.
12490         (init_alias_vars): Likewise.
12491         (delete_points_to_sets): Likewise.
12493 2015-06-01  Martin Liska  <mliska@suse.cz>
12495         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12496         (free_strinfo): Likewise.
12497         (pass_strlen::execute): Likewise.
12499 2015-06-01  Martin Liska  <mliska@suse.cz>
12501         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12502         pool allocator.
12503         (vn_reference_insert_pieces): Likewise.
12504         (vn_phi_insert): Likewise.
12505         (visit_reference_op_call): Likewise.
12506         (copy_phi): Likewise.
12507         (copy_reference): Likewise.
12508         (process_scc): Likewise.
12509         (allocate_vn_table): Likewise.
12510         (free_vn_table): Likewise.
12512 2015-06-01  Martin Liska  <mliska@suse.cz>
12514         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12515         pool allocator.
12516         (add_repeat_to_ops_vec): Likewise.
12517         (get_ops): Likewise.
12518         (maybe_optimize_range_tests): Likewise.
12519         (init_reassoc): Likewise.
12520         (fini_reassoc): Likewise.
12522 2015-06-01  Martin Liska  <mliska@suse.cz>
12524         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12525         pool allocator.
12526         (bitmap_set_new): Likewise.
12527         (get_or_alloc_expr_for_constant): Likewise.
12528         (get_or_alloc_expr_for): Likewise.
12529         (phi_translate_1): Likewise.
12530         (compute_avail): Likewise.
12531         (init_pre): Likewise.
12532         (fini_pre): Likewise.
12534 2015-06-01  Martin Liska  <mliska@suse.cz>
12536         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12537         (delete_dep_node): Likewise.
12538         (create_deps_list): Likewise.
12539         (free_deps_list): Likewise.
12540         (sched_deps_init): Likewise.
12541         (sched_deps_finish): Likewise.
12543 2015-06-01  Martin Liska  <mliska@suse.cz>
12545         * regcprop.c (free_debug_insn_changes): Use new type-based
12546         pool allocator.
12547         (replace_oldest_value_reg): Likewise.
12548         (pass_cprop_hardreg::execute): Likewise.
12550 2015-06-01  Martin Liska  <mliska@suse.cz>
12552         * ira-build.c (initiate_cost_vectors): Use new type-based
12553         pool allocator.
12554         (ira_allocate_cost_vector): Likewise.
12555         (ira_free_cost_vector): Likewise.
12556         (finish_cost_vectors): Likewise.
12558 2015-06-01  Martin Liska  <mliska@suse.cz>
12560         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12561         pool allocator.
12562         (free_sched_pools): Likewise.
12563         * sel-sched-ir.h (_list_alloc): Likewise.
12564         (_list_remove): Likewise.
12566 2015-06-01  Martin Liska  <mliska@suse.cz>
12568         * stmt.c (add_case_node): Use new type-based pool allocator.
12569         (expand_case): Likewise.
12570         (expand_sjlj_dispatch_table): Likewise.
12572 2015-06-01  Martin Liska  <mliska@suse.cz>
12574         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12575         (free_bb): Likewise.
12576         (pass_cse_reciprocals::execute): Likewise.
12578 2015-06-01  Martin Liska  <mliska@suse.cz>
12580         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12581         (sra_deinitialize) Likewise.
12582         (create_access_1) Likewise.
12583         (build_accesses_from_assign) Likewise.
12584         (create_artificial_child_access) Likewise.
12586 2015-06-01  Martin Liska  <mliska@suse.cz>
12588         * dse.c (get_group_info):Use new type-based pool allocator.
12589         (dse_step0) Likewise.
12590         (free_store_info) Likewise.
12591         (delete_dead_store_insn) Likewise.
12592         (free_read_records) Likewise.
12593         (record_store) Likewise.
12594         (replace_read) Likewise.
12595         (check_mem_read_rtx) Likewise.
12596         (scan_insn) Likewise.
12597         (dse_step1) Likewise.
12598         (dse_step7) Likewise.
12600 2015-06-01  Martin Liska  <mliska@suse.cz>
12602         * df-scan.c (struct df_scan_problem_data):Use new type-based
12603         pool allocator.
12604         (df_scan_free_internal) Likewise.
12605         (df_scan_alloc) Likewise.
12606         (df_grow_reg_info) Likewise.
12607         (df_free_ref) Likewise.
12608         (df_insn_create_insn_record) Likewise.
12609         (df_mw_hardreg_chain_delete) Likewise.
12610         (df_insn_info_delete) Likewise.
12611         (df_free_collection_rec) Likewise.
12612         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
12613         (df_sort_and_compress_mws) Likewise.
12614         (df_ref_create_structure) Likewise.
12615         (df_ref_record) Likewise.
12617 2015-06-01  Martin Liska  <mliska@suse.cz>
12619         * df-problems.c (df_chain_create):Use new type-based pool allocator.
12620         (df_chain_unlink_1) Likewise.
12621         (df_chain_unlink) Likewise.
12622         (df_chain_remove_problem) Likewise.
12623         (df_chain_alloc) Likewise.
12624         (df_chain_free) Likewise.
12625         * df.h (struct dataflow) Likewise.
12627 2015-06-01  Martin Liska  <mliska@suse.cz>
12629         * cselib.c (new_elt_list):Use new type-based pool allocator.
12630         (new_elt_loc_list) Likewise.
12631         (unchain_one_elt_list) Likewise.
12632         (unchain_one_elt_loc_list) Likewise.
12633         (unchain_one_value) Likewise.
12634         (new_cselib_val) Likewise.
12635         (cselib_init) Likewise.
12636         (cselib_finish) Likewise.
12638 2015-06-01  Martin Liska  <mliska@suse.cz>
12640         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
12641         (sh_reorg) Likewise.
12643 2015-06-01  Martin Liska  <mliska@suse.cz>
12645         * cfg.c (initialize_original_copy_tables):Use new type-based
12646         pool allocator.
12647         (free_original_copy_tables) Likewise.
12648         (copy_original_table_clear) Likewise.
12649         (copy_original_table_set) Likewise.
12651 2015-06-01  Martin Liska  <mliska@suse.cz>
12653         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
12654         pool allocator.
12655         (asan_mem_ref_new) Likewise.
12656         (free_mem_ref_resources) Likewise.
12658 2015-06-01  Martin Liska  <mliska@suse.cz>
12660         * var-tracking.c (variable_htab_free):Use new type-based
12661         pool allocator.
12662         (attrs_list_clear) Likewise.
12663         (attrs_list_insert) Likewise.
12664         (attrs_list_copy) Likewise.
12665         (shared_hash_unshare) Likewise.
12666         (shared_hash_destroy) Likewise.
12667         (unshare_variable) Likewise.
12668         (var_reg_delete_and_set) Likewise.
12669         (var_reg_delete) Likewise.
12670         (var_regno_delete) Likewise.
12671         (drop_overlapping_mem_locs) Likewise.
12672         (variable_union) Likewise.
12673         (insert_into_intersection) Likewise.
12674         (canonicalize_values_star) Likewise.
12675         (variable_merge_over_cur) Likewise.
12676         (dataflow_set_merge) Likewise.
12677         (remove_duplicate_values) Likewise.
12678         (variable_post_merge_new_vals) Likewise.
12679         (dataflow_set_preserve_mem_locs) Likewise.
12680         (dataflow_set_remove_mem_locs) Likewise.
12681         (variable_from_dropped) Likewise.
12682         (variable_was_changed) Likewise.
12683         (set_slot_part) Likewise.
12684         (clobber_slot_part) Likewise.
12685         (delete_slot_part) Likewise.
12686         (loc_exp_insert_dep) Likewise.
12687         (notify_dependents_of_changed_value) Likewise.
12688         (emit_notes_for_differences_1) Likewise.
12689         (vt_emit_notes) Likewise.
12690         (vt_initialize) Likewise.
12691         (vt_finalize) Likewise.
12693 2015-06-01  Martin Liska  <mliska@suse.cz>
12695         * ira-color.c (init_update_cost_records):Use new type-based
12696         pool allocator.
12697         (get_update_cost_record) Likewise.
12698         (free_update_cost_record_list) Likewise.
12699         (finish_update_cost_records) Likewise.
12700         (initiate_cost_update) Likewise.
12702 2015-06-01  Martin Liska  <mliska@suse.cz>
12704         * lra.c (init_insn_regs): Use new type-based pool allocator.
12705         (new_insn_reg) Likewise.
12706         (free_insn_reg) Likewise.
12707         (free_insn_regs) Likewise.
12708         (finish_insn_regs) Likewise.
12709         (init_insn_recog_data) Likewise.
12710         (init_reg_info) Likewise.
12711         (finish_reg_info) Likewise.
12712         (lra_free_copies) Likewise.
12713         (lra_create_copy) Likewise.
12714         (invalidate_insn_data_regno_info) Likewise.
12716 2015-06-01  Martin Liska  <mliska@suse.cz>
12718         * lra-lives.c (free_live_range): Use new type-based pool allocator.
12719         (free_live_range_list) Likewise.
12720         (create_live_range) Likewise.
12721         (copy_live_range) Likewise.
12722         (lra_merge_live_ranges) Likewise.
12723         (remove_some_program_points_and_update_live_ranges) Likewise.
12724         (lra_live_ranges_init) Likewise.
12725         (lra_live_ranges_finish) Likewise.
12727 2015-06-01  Martin Liska  <mliska@suse.cz>
12729         * et-forest.c (et_new_occ): Use new type-based pool allocator.
12730         (et_new_tree): Likewise.
12731         (et_free_tree): Likewise.
12732         (et_free_tree_force): Likewise.
12733         (et_free_pools): Likewise.
12734         (et_split): Likewise.
12736 2015-06-01  Martin Liska  <mliska@suse.cz>
12738         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
12739         to header file.
12740         * alloc-pool.h (pool_allocator::pool_allocator): New function.
12741         (pool_allocator::release): Likewise.
12742         (inline pool_allocator::release_if_empty): Likewise.
12743         (inline pool_allocator::~pool_allocator): Likewise.
12744         (pool_allocator::allocate): Likewise.
12745         (pool_allocator::remove): Likewise.
12747 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
12749         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
12750         in comment.
12752 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
12754         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
12755         to fusible_ops.
12756         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
12757         (arm_macro_fusion_p): Likewise.
12758         (arm_macro_fusion_pair_p): Likewise.
12760 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
12762         * config/aarch64/aarch64-protos.h (tune_params): Rename
12763         fuseable_ops to fusible_ops.
12764         * config/aarch64/aarch64.c (generic_tunings): Rename
12765         fuseable_ops to fusible_ops.
12766         (cortexa53_tunings): Likewise.
12767         (cortexa57_tunings): Likewise.
12768         (thunderx_tunings): Likewise.
12769         (xgene1_tunings): Likewise.
12770         (aarch64_macro_fusion_p): Likewise.
12771         (aarch64_macro_fusion_pair_p): Likewise.
12773 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12775         * config/s390/driver-native.c: New file.
12776         * config/s390/x-native: New file.
12777         * config.host: Add new files for s390.
12778         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
12779         and -march=native
12780         * config.gcc: Likewise.
12781         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
12782         * config/s390/s390-opts.h (enum processor_type): Ditto.
12783         * config/s390/s390.c (s390_option_override): Catch unhandled
12784         PROCESSOR_NATIVE
12786 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
12788         PR target/65527
12789         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
12790         redirection for instrumented calls.
12791         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
12792         (append_compiler_options): Append -fcheck-pointer-bounds.
12793         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
12794         (chkp_redirect_edge): New.
12795         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
12796         (chkp_redirect_edge): New.
12798 2015-06-01  Richard Biener  <rguenther@suse.de>
12800         PR tree-optimization/66280
12801         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
12802         def-use walking.
12804 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12806         * config/aarch64/aarch64.md
12807         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
12808         logic_shift_imm.
12810 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12812         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
12813         Remove obsolete kludge.
12815 2015-06-01  Richard Biener  <rguenther@suse.de>
12817         * tree-ssa-reassoc.c (get_rank): Simplify.
12819 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12821         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
12822         * configure: Regenerated.
12824 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
12826         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
12827         issue (add space between string literal and macro).
12828         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
12830 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12832         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
12833         implict or explicit -fPIE or -fpie.
12835 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
12837         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
12839 2015-05-28  DJ Delorie  <dj@redhat.com>
12841         * expmed.c (extract_bit_field_1): Avoid clobbering a
12842         yet-to-be-used base/index register.
12844 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
12846         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
12847         (alias_stats): Add num_universal.
12848         (alias_set_subset_of): Special case pointers; be ready for NULL
12849         children.
12850         (alias_sets_conflict_p): Special case pointers; be ready for NULL
12851         children.
12852         (init_alias_set_entry): Break out from ...
12853         (record_alias_subset): ... here; propagate new fields;
12854         allocate children only when really needed.
12855         (get_alias_set): Do less generous pointer globbing.
12856         (dump_alias_stats_in_alias_c): Update statistics.
12858 2015-05-30  Alan Modra  <amodra@gmail.com>
12860         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
12861         correct block for use of r12.
12862         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
12864 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12866         PR target/66215
12867         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
12868         with -mhotpatch=.
12870 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
12872         PR tree-optimization/66142
12873         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
12874         virtual phis that feed themselves.
12876 2015-05-29  Richard Biener  <rguenther@suse.de>
12878         PR tree-optimization/66314
12879         * tree-ssa-threadupdate.c (create_block_for_threading): Add
12880         parameter that says which loop the new block belongs to.
12881         (ssa_create_duplicates): Blocks duplicated for the threaded
12882         path belong to the loop of the thread destination.
12884 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12886         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
12887         to cleanup-saved-temps.
12888         * doc/sourcebuild.texi (Clean up generated test files): Expand
12889         introduction.
12890         (dg-keep-saved-temps): Document new proc.
12891         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
12892         cleanup-saved-temps): Remove.
12894 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
12896         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
12897         gcc_AC_CHECK_DECLS.
12898         * configure: Regenerate.
12900 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
12902         * config/nios2/linux.h (CPP_SPEC): Define.
12904 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
12906         * config/microblaze/linux.h (CPP_SPEC): Define.
12908 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
12910         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
12911         -pthread is specified.
12913 2015-05-28  Richard Biener  <rguenther@suse.de>
12915         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
12916         (vect_fixup_scalar_cycles_with_patterns): Likewise.
12917         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
12918         after pattern recog.
12919         (vect_create_epilog_for_reduction): Properly handle reductions
12920         with patterns.
12921         (vectorizable_reduction): Likewise.
12922         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
12923         reduction chains.
12924         (vect_get_constant_vectors): Create the correct number of
12925         initial values for reductions.
12926         (vect_schedule_slp_instance): Handle reduction chains that are
12927         type changing properly.
12928         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
12930 2015-05-28  Richard Biener  <rguenther@suse.de>
12932         PR tree-optimization/66142
12933         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
12934         values better in memcpy destination handling.  Handle non-aliasing
12935         we discover here.
12937 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
12939         PR target/63810
12940         * config/darwin-c.c (version_components): New global enum.
12941         (parse_version, version_as_legacy_macro)
12942         (version_as_modern_macro, macosx_version_as_macro): New functions.
12943         (version_as_macro): Remove.
12944         (darwin_cpp_builtins): Use new function.
12946 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
12948         * builtins.c (expand_builtin_acc_on_device): Mark parameters
12949         with ATTRIBUTE_UNUSED.
12951 2015-05-28  Julian Brown  <julian@codesourcery.com>
12953         PR libgomp/65742
12955         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
12956         sequence for !ACCEL_COMPILER.
12958 2015-05-28  Nick Clifton  <nickc@redhat.com>
12960         * config/rx/rx.c (push_regs): New function.  Extracts code from...
12961         (rx_expand_prologue): ... here.  Use push_regs to push even small
12962         spans of registers.
12963         (pop_regs): New function.
12964         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
12965         registers.
12967 2015-05-28  Richard Biener  <rguenther@suse.de>
12969         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
12970         member.
12971         (SLP_INSTANCE_BODY_COST_VEC): Remove.
12972         (vect_update_slp_costs_according_to_vf): Likewise.
12973         (vect_slp_analyze_operations): Update prototype.
12974         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
12975         vect_update_slp_costs_according_to_vf, adjust.
12976         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
12977         (vect_analyze_slp_cost_1): Likewise.
12978         (vect_analyze_slp_cost): Likewise.  Properly deal with
12979         widening reduction ops.  Commit body costs.
12980         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
12981         cost for loops from here.
12982         (vect_slp_analyze_operations): But do it from here when
12983         the vectorization factor is known and stmts are analyzed.
12984         (vect_bb_vectorization_profitable_p): Simplify.
12985         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
12986         (vect_update_slp_costs_according_to_vf): Remove.
12988 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
12989             H.J. Lu  <hongjiu.lu@intel.com>
12991         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
12992         (BUILD_CFLAGS): Likewise.
12993         (BUILD_CXXFLAGS): Likewise.
12994         (LINKER): Add @NO_PIE_FLAG@.
12995         (BUILD_LDFLAGS): Likewise.
12996         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
12997         --enable-default-pie.
12998         * common.opt (fPIE): Initialize to -1.
12999         (fpie): Likewise.
13000         (no-pie): New option.
13001         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13002         * configure.ac: Add --enable-default-pie.
13003         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
13004         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
13005         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
13006         * gcc.c (NO_PIE_SPEC): New.
13007         (PIE_SPEC): Likewise.
13008         (NO_FPIE1_SPEC): Likewise.
13009         (FPIE1_SPEC): Likewise.
13010         (NO_FPIE2_SPEC): Likewise.
13011         (FPIE2_SPEC): Likewise.
13012         (NO_FPIE2_SPEC): Likewise.
13013         (FPIE_SPEC): Likewise.
13014         (NO_FPIE_SPEC): Likewise.
13015         (NO_FPIC1_SPEC): Likewise.
13016         (FPIC1_SPEC): Likewise.
13017         (NO_FPIC2_SPEC): Likewise.
13018         (FPIC2_SPEC): Likewise.
13019         (NO_FPIC2_SPEC): Likewise.
13020         (FPIC_SPEC): Likewise.
13021         (NO_FPIC_SPEC): Likewise.
13022         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13023         (FPIE1_OR_FPIC1_SPEC): Likewise.
13024         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13025         (FPIE2_OR_FPIC2_SPEC): Likewise.
13026         (NO_FPIE_AND_FPIC_SPEC): Likewise.
13027         (FPIE_OR_FPIC_SPEC): Likewise.
13028         (LD_PIE_SPEC): Likewise.
13029         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
13030         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13031         * config/darwin.h (PIE_SPEC): Renamed to ...
13032         (DARWIN_PIE_SPEC): This.
13033         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13034         * config/darwin9.h (PIE_SPEC): Renamed to ...
13035         (DARWIN_PIE_SPEC): This.
13036         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13037         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13038         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13039         FPIE2_OR_FPIC2_SPEC.
13040         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13041         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13042         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13043         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13044         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13045         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13046         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13047         * config/m32r/m32r.h (ASM_SPEC): Likewise.
13048         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13049         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13050         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13051         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13052         * config/sparc/linux.h (ASM_SPEC): Likewise.
13053         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13054         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13055         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13056         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13057         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13058         * config/sparc/sparc.h (ASM_SPEC): Likewise.
13059         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13060         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13061         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13062         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13063         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13064         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13065         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13066         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13067         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13068         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13069         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13070         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13071         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13072         * config/vax/linux.h (ASM_SPEC): Likewise.
13073         * doc/install.texi: Document --enable-default-pie.
13074         * doc/invoke.texi: Document -no-pie.
13075         * config.in: Regenerated.
13076         * configure: Likewise.
13078 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13080         PR rtl-optimization/66168
13081         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13082         can_move_invariant_reg.
13084 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
13086         PR target/66148
13087         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13088         REG_EQUAL note when doing insert.
13090         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13091         instead of "%d" for 'o' operand.
13093 2015-05-27  Nathan Sidwell  <nathan@acm.org>
13095         PR c++/66270
13096         * tree.c (build_pointer_type_for_mode): Canonical type does not
13097         inherit can_alias_all.
13098         (build_reference_type_for_mode): Likewise.
13100 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13102         * expr.h (array_at_struct_end_p): Move to...
13103         (array_ref_element_size): Likewise.
13104         (component_ref_field_offset): Likewise.
13105         * tree.h (array_ref_element_size): ...here.
13106         (array_at_struct_end_p): Likewise.
13107         (component_ref_field_offset): Likewise.
13108         * expr.c (array_ref_element_size): Move to...
13109         (array_ref_low_bound): Likewise.
13110         (array_at_struct_end_p): Likewise.
13111         (array_ref_up_bound): Likewise.
13112         (component_ref_field_offset): Likewise.
13113         * tree.c (array_ref_element_size): ...here.
13114         (array_ref_low_bound): Likewise.
13115         (array_ref_up_bound): Likewise.
13116         (array_at_struct_end_p): Likewise.
13117         (component_ref_field_offset): Likewise.
13119 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13120             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13122         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13124 2015-05-27  Jason Merrill  <jason@redhat.com>
13126         PR bootstrap/66304
13127         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13128         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13129         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13131 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
13133         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13134         is true.
13136         * statistics.c (statistics_fini_pass): Print pass name.
13138 2015-05-27  Richard Biener  <rguenther@suse.de>
13140         PR tree-optimization/66272
13141         Revert parts of
13142         2014-08-15  Richard Biener  <rguenther@suse.de>
13144         PR tree-optimization/62031
13145         * tree-data-ref.c (dr_analyze_indices): Do not set
13146         DR_UNCONSTRAINED_BASE.
13147         (dr_may_alias_p): All indirect accesses have to go the
13148         formerly DR_UNCONSTRAINED_BASE path.
13149         * tree-data-ref.h (struct indices): Remove
13150         unconstrained_base member.
13151         (DR_UNCONSTRAINED_BASE): Remove.
13153 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
13155         * dwarf2out.c: Remove block_map.
13156         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13157         (gen_lexical_block_die): Same.
13158         (dwarf2out_function_decl): Remove block_map use.
13159         (dwarf2out_c_finalize): Same.
13160         * tree-core.h (struct tree_block): Add die field.
13161         * tree.h (BLOCK_DIE): New.
13163 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13165         PR target/65358
13166         * expr.c (memory_load_overlap): New function.
13167         (emit_push_insn): When pushing partial args to the stack would
13168         clobber the register part load the overlapping part into a pseudo
13169         and put it into the hard reg after pushing.  Change return type
13170         to bool.  Add bool argument.
13171         * expr.h (emit_push_insn): Change return type to bool.
13172         Add bool argument.
13173         * calls.c (expand_call): Cancel sibcall optimization when encountering
13174         partial argument on targets with ARGS_GROW_DOWNWARD and
13175         !STACK_GROWS_DOWNWARD.
13176         (emit_library_call_value_1): Update callsite of emit_push_insn.
13177         (store_one_arg): Likewise.
13179 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13181         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13183 2015-05-27  Martin Liska  <mliska@suse.cz>
13185         * Makefile.in: Add additional dependencies related to memory report
13186         enhancement.
13187         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13188         * bitmap.c (struct bitmap_descriptor_d): Remove.
13189         (struct loc): Likewise.
13190         (struct bitmap_desc_hasher): Likewise.
13191         (bitmap_desc_hasher::hash): Likewise.
13192         (bitmap_desc_hasher::equal): Likewise.
13193         (get_bitmap_descriptor): Likewise.
13194         (bitmap_register): User new memory descriptor API.
13195         (register_overhead): Likewise.
13196         (bitmap_find_bit): Register nsearches and search_iter statistics.
13197         (struct bitmap_output_info): Remove.
13198         (print_statistics): Likewise.
13199         (dump_bitmap_statistics): Use new memory descriptor.
13200         * bitmap.h (struct bitmap_usage): New class.
13201         * genmatch.c: Extend header file inclusion.
13202         * genpreds.c: Likewise.
13203         * ggc-common.c (struct ggc_usage): New class.
13204         (struct ggc_loc_desc_hasher): Remove.
13205         (ggc_loc_desc_hasher::hash): Likewise.
13206         (ggc_loc_desc_hasher::equal): Likewise.
13207         (struct ggc_ptr_hash_entry): Likewise.
13208         (struct ptr_hash_hasher): Likewise.
13209         (ptr_hash_hasher::hash): Likewise.
13210         (ptr_hash_hasher::equal): Likewise.
13211         (make_loc_descriptor): Likewise.
13212         (ggc_prune_ptr): Likewise.
13213         (dump_ggc_loc_statistics): Use new memory descriptor.
13214         (ggc_record_overhead): Likewise.
13215         (ggc_free_overhead): Likewise.
13216         (final_cmp_statistic): Remove.
13217         (cmp_statistic): Likewise.
13218         (ggc_add_statistics): Liekwise.
13219         (ggc_prune_overhead_list): Likewise.
13220         * hash-map-traits.h: New file.
13221         * hash-map.h (struct default_hashmap_traits): Move the traits to a
13222         separate header file.
13223         * hash-set.h: Pass memory statistics info to ctor.
13224         * hash-table.c (void dump_hash_table_loc_statistics): New function.
13225         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13226         (hash_table::~hash_table): Register memory release operation.
13227         (hash_table::alloc_entries): Handle memory allocation operation.
13228         (hash_table::expand): Likewise.
13229         * inchash.c (iterative_hash_hashval_t): Move implementation to header
13230         file.
13231         (iterative_hash_host_wide_int): Likewise.
13232         * inchash.h (class hash): Likewise.
13233         * mem-stats-traits.h: New file.
13234         * mem-stats.h: New file.
13235         (mem_location): Add new class.
13236         (mem_usage): Likewise.
13237         (mem_alloc_description): Likewise.
13238         * sese.c: Add new header file inclusision.
13239         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13240         and hash_set.
13241         * tree-sra.c: Add new header file inclusision.
13242         * vec.c (struct vec_descriptor): Remove.
13243         (hash_descriptor): Likewise.
13244         (struct vec_usage): Likewise.
13245         (struct ptr_hash_entry): Likewise.
13246         (hash_ptr): Likewise.
13247         (eq_ptr): Likewise.
13248         (vec_prefix::register_overhead): Use new memory descriptor API.
13249         (vec_prefix::release_overhead): Likewise.
13250         (add_statistics): Remove.
13251         (dump_vec_loc_statistics): Use new memory descriptor API.
13252         * vec.h (struct vec_prefix): Likewise.
13253         (va_heap::reserve): Likewise.
13254         (va_heap::release): Likewise.
13255         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13257 2015-05-27  Richard Biener  <rguenther@suse.de>
13259         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13260         earlier and remove ??? comment.
13261         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13262         and got called from loop analysis bail out.  Always pass the SLP
13263         node to the vectorizable_* functions.
13264         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13265         the premature SLP check here.
13266         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13267         detected SLP stmts.
13268         (vect_detect_hybrid_slp_1): Likewise.
13270 2015-05-26  Jeff Law  <law@redhat.com>
13272         * combine.c (find_split_point): Verify that the shift count is a
13273         constant when choosing (plus (ashift ...)) as a split point.
13275         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13276         No functional changes.
13278 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
13280         * ipa-polymorphic-call.c
13281         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13282         case when call target is already known.
13284 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
13286         PR target/65979
13287         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13288         take into account the case that operands[1] and operands[2]
13289         are the same register.
13291 2015-05-26  Michael Matz  <matz@suse.de>
13293         PR middle-end/66251
13295         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13296         stores.
13297         (vect_create_vectorized_demotion_stmts): Always set
13298         STMT_VINFO_VEC_STMT, also with SLP.
13299         (vectorizable_store): Handle strided group stores.
13301 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13303         PR target/66049
13304         * config/aarch64/aarch64.md
13305         (*adds_shift_imm_<mode>):  New pattern.
13306         (*subs_shift_imm_<mode>):  Likewise.
13307         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
13308         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13309         (*add_uxt<mode>_shift2): Likewise.
13310         (*add_uxtsi_shift2_uxtw): Likewise.
13311         (*sub_uxt<mode>_shift2): Likewise.
13312         (*sub_uxtsi_shift2_uxtw): Likewise.
13314 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
13316         * config/rs6000/constraints.md (Y, U): Use match_test.
13318 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13320         PR target/52144
13321         * config/arm/arm.c (arm_option_check_internal)
13322         (arm_option_params_internal): Check opts->target_flags to set macros.
13323         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13324         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13325         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13326         (builtin_define): Replaced with def_or_undef_macro.
13327         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13328         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13329         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13330         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13331         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13332         (TARGET_ARM_FEATURE_LDREX_P)
13333         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13334         * config/arm/arm-c.c (def_or_undef_macro): New function.
13335         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13337 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13339         * c-common.h (builtin_define_with_int_value)
13340         (builtin_define_type_sizeof): Declare.
13341         * c-cppbuiltin.c (builtin_define_with_int_value)
13342         (builtin_define_type_sizeof): Externalize.
13343         (builtin_define_std): Cleanup declaration.
13344         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13345         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13346         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13347         (builtin_define, builtin_assert): New macros.
13349 2015-05-26  Richard Biener  <rguenther@suse.de>
13351         PR tree-optimization/66142
13352         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13353         MEM_REFs for the same base address.
13355 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13357         PR ipa/66181
13358         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13360 2015-05-26  Jason Merrill  <jason@redhat.com>
13362         * configure.ac: Set CXXFLAGS for ISL test.
13363         * configure: Regenerate.
13365         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
13366         strstr and basename.
13367         * configure: Regenerate.
13369 2015-05-26  Richard Biener  <rguenther@suse.de>
13371         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13372         X % C -> X & (C - 1) for C being a power-of two to ...
13373         * match.pd: ... patterns.
13375 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
13377         * match.pd (swapped_tcc_comparison): New operator list.
13378         (-A CMP -B): New simplification.
13379         * fold-const.c (fold_comparison): Remove corresponding code.
13381 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13383         * caller-save.c (init_caller_save): Base temporary register numbers
13384         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13385         * cfgloopanal.c (init_set_costs): Likewise.
13386         * dojump.c (prefer_and_bit_test): Likewise.
13387         * expr.c (init_expr_target): Likewise.
13388         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13389         * lower-subreg.c (init_lower_subreg): Likewise.
13390         * postreload.c (reload_cse_regs_1): Likewise.
13392 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13394         * gensupport.h (compute_test_codes): Declare.
13395         * gensupport.c (compute_predicate_codes): Rename to...
13396         (compute_test_codes): ...this.  Generalize error message.
13397         (process_define_predicate): Update accordingly.
13398         * genpreds.c (compute_maybe_allows): Delete.
13399         (add_constraint): Use compute_test_codes to determine whether
13400         something can accept a SUBREG, REG or MEM.
13402 2015-05-26  Torvald Riegel  <triegel@redhat.com>
13404         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13405         'memory model' to align with C++11; fix description of memory orders;
13406         fix a few typos.
13408 2015-05-26  Richard Biener  <rguenther@suse.de>
13410         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13411         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
13412         detect whether we apply SLP.  Remove call to
13413         vect_update_slp_costs_according_to_vf.
13414         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13415         vect_update_slp_costs_according_to_vf from here.  Dispatch
13416         to vect_slp_analyze_operations to analyze SLP stmts.
13417         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13418         unused bb_vec_info parameter, adjust assert.
13419         (vect_slp_analyze_operations): Pass in the slp instance tree
13420         instead of bb_vec_info.
13421         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13422         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13424 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13426         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13427         Q_REGS.  Expand comment.
13428         (REG_CLASS_NAMES): Ditto.
13429         (REG_CLASS_CONTENTS): Ditto.
13431 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
13433         PR target/66274
13434         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13435         when LEGACY_INT_REGNO_P is processed.
13437 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13439         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13441 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13443         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13444         register if not marked dead/unused, before return.
13446 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13448         PR lto/66180
13449         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13450         is set; check for assembler name at LTO time.
13451         (type_in_anonymous_namespace): Remove hacks, check that all
13452         anonymous types are called "<anon>"
13453         (odr_type_p): Simplify; add check for "<anon>"
13454         (odr_subtypes_equivalent): Add odr_type_p check.
13455         * tree.c (need_assembler_name_p): Even anonymous namespace needs
13456         assembler name.
13458 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13460         * ipa-utils.h (method_class_type): Remove.
13461         * cgraphunit.c (walk_polymorphic_call_targets): Use
13462         TYPE_METHOD_BASETYPE.
13463         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13464         on main variants only.
13465         (method_class_type): Remove.
13466         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13467         (build_type_inheritance_graph): Likewise.
13468         * ipa-icf.c (sem_function::equals_wpa): Likewise.
13469         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13470         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13472 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13474         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13475         is_typedef_decl, typedef_variant_p): Constify.
13476         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13477         is_typedef_decl, typedef_variant_p): Constify.
13479 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13481         * defaults.h (gen_tablejump): New function.
13482         (HAVE_tablejump): Add default value.
13483         * expr.c: Adjust.
13484         * stmt.c: Likewise.
13486 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13488         * defaults.h (gen_store_multiple): New function.
13489         (HAVE_store_multiple): Add default value.
13490         * expr.c (move_block_from_reg): Adjust.
13492 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13494         * defaults.h (gen_load_multiple): New function.
13495         (HAVE_load_multiple): Add default value.
13496         * expr.c (move_block_to_reg): Adjust.
13498 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13500         * defaults.h (gen_mem_signal_fence): New function.
13501         (HAVE_mem_signal_fence): Add default value.
13502         * optabs.c: Adjust.
13504 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13506         * defaults.h (gen_memory_barrier): New function.
13507         (HAVE_memory_barrier): Add default value.
13508         * optabs.c: Adjust.
13510 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13512         * defaults.h (gen_mem_thread_fence): New function.
13513         (HAVE_mem_thread_fence): Add default definition.
13514         * optabs.c: Adjust.
13516 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13518         * combine.c (find_split_point): Check the value of HAVE_lo_sum
13519         instead of if it is defined.
13520         (combine_simplify_rtx): Likewise.
13521         * lra-constraints.c (process_address_1): Likewise.
13522         * config/darwin.c: Adjust.
13523         * genconfig.c (main): Always define HAVE_lo_sum.
13525 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13527         * genmatch.c (parser::parse_operation): Reject expanding
13528         operator-list inside 'for'.
13530 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13532         * genmatch.c (parser::parse_for): Reject iterator if used as
13533         operator-list.
13535 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13537         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13538         after end of id-list.
13540 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13542         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13543         we do not try to compute canonical type for type that does not need
13544         alias set.
13545         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13546         FUNCITON_TYPE.
13547         * tree.h (type_with_alias_set_p): New.
13549 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13551         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
13552         function attributes.
13553         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13555 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
13557         * Makefile.in (check_gcc_parallelize): Delete.
13558         (lang_checks_parallelized): Update comment.
13560 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
13562         PR rtl-optimization/66237
13563         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13564         location of an "as_a" cast.
13566 2015-05-22  Jeff Law  <law@redhat.com>
13568         * config/pa/pa.md (non-canonical shift-add insns): Remove.
13569         (peepholes with non-canonical RTL sources): Remove.
13570         (peepholes for indexed stores of FP regs in integer modes): Match and
13571         generate canonical RTL.
13573 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13575         PR tree-optimization/63387
13576         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13577         ((x ord x) & (y ord y) -> (x ord y),
13578         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13579         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13580         vectors like scalars.
13582 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13584         * convert.c (convert_to_integer, convert_to_vector): Include the
13585         types in the error message.
13587 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13589         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13590         simplifications.
13592 2015-05-22  Jeff Law  <law@redhat.com>
13594         * config/pa/pa.md (integer_indexed_store splitters): Use
13595         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
13596         insns -- adjusting the constant 2nd operand accordingly.
13598         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13599         (plus (ashift X log2) Y) if it is a split point.
13601         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13602         out of hppa_legitimize_address to handle both forms of a multiply
13603         by 2, 4 or 8.
13604         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13605         Always generate the ASHIFT variant as the result is not directly
13606         used in a MEM.  Update comments and refactor slightly to improve
13607         readability.
13609 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13611         PR target/65491
13612         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
13613         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
13614         (aarch64_composite_type_p): Return false if given type and mode are
13615         for a short vector.
13617 2015-05-22  Richard Biener  <rguenther@suse.de>
13619         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
13620         member.
13621         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
13622         patterns when determining whether SLP is pure.
13623         (vect_is_slp_reduction): Remove check for pattern stmts.
13624         (vect_is_simple_reduction_1): Remove dead code.
13625         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
13626         (vect_get_and_check_slp_defs): Pass in the stmt number.
13627         Allow the first def in a reduction to be not a pattern stmt when
13628         the rest of the stmts def are patterns.
13629         (vect_build_slp_tree_1): Allow tcc_expression codes like
13630         SAD_EXPR and DOT_PROD_EXPR.
13631         (vect_build_slp_tree): Adjust.
13632         (vect_analyze_slp): Refactor and move BB vect error message ...
13633         (vect_slp_analyze_bb_1): ... here.
13635 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
13637         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
13638         for CSWTCH temporary.
13640 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13642         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
13643         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
13644         unknown unspecs.
13646 2015-05-22  Richard Biener  <rguenther@suse.de>
13648         PR tree-optimization/66251
13649         * tree-vect-stmts.c (vectorizable_conversion): Properly
13650         set STMT_VINFO_VEC_STMT even for the SLP case.
13652 2015-05-22  Marek Polacek  <polacek@redhat.com>
13654         * doc/extend.texi: Use @pxref instead of @xref.
13656 2015-05-22  hiraditya  <hiraditya@msn.com>
13658         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
13659         redundant if.
13661 2015-05-22  Richard Biener  <rguenther@suse.de>
13663         PR tree-optimization/65701
13664         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13665         Move peeling cost models into one place.  Peel for alignment
13666         for single loads only if an aligned load is cheaper than
13667         an unaligned load.
13669 2015-05-22  Marek Polacek  <polacek@redhat.com>
13671         PR c/47043
13672         * doc/extend.texi (Enumerator Attributes): New section.
13673         Document syntax of enumerator attributes.
13675 2015-05-22  Richard Biener  <rguenther@suse.de>
13677         * tree-vect-loop.c (get_reduction_op): New function.
13678         (vect_model_reduction_cost): Use it, add reduc_index parameter.
13679         Make ready for BB reductions.
13680         (vect_create_epilog_for_reduction): Use get_reduction_op.
13681         (vectorizable_reduction): Init reduc_index to a valid value.
13682         Adjust vect_model_reduction_cost call.
13683         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
13684         operand for reduction defaults.  Add SAD_EXPR support.
13685         Assert we have a neutral op for SLP reductions.
13686         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
13687         walking pattern stmt ops only recurse to SSA names.
13689 2015-05-22  Richard Biener  <rguenther@suse.de>
13691         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
13692         assert with guard, remove check on detected reduction.
13693         (vect_recog_sad_pattern): Likewise.
13694         (vect_recog_widen_sum_pattern): Likewise.
13696 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13698         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
13699         __always_inline__ attribute.
13700         (vaesdq_u8): Likewise.
13701         (vaesmcq_u8): Likewise.
13702         (vaesimcq_u8): Likewise.
13703         (vsha1cq_u32): Likewise.
13704         (vsha1mq_u32): Likewise.
13705         (vsha1pq_u32): Likewise.
13706         (vsha1h_u32): Likewise.
13707         (vsha1su0q_u32): Likewise.
13708         (vsha1su1q_u32): Likewise.
13709         (vsha256hq_u32): Likewise.
13710         (vsha256h2q_u32): Likewise.
13711         (vsha256su0q_u32): Likewise.
13712         (vsha256su1q_u32): Likewise.
13713         (vmull_p64): Likewise.
13714         (vmull_high_p64): Likewise.
13716 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13718         * final.c (final_scan_insn): Don't check HAVE_peephole with the
13719         preprocessor.
13720         * output.h: Likewise.
13721         * genconfig.c (main): Alwways define HAVE_peephole.
13722         * genpeep.c: Don't emit checks of HAVE_peephole.
13724 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13726         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
13727         check HAVE_conditional_move with the preprocessor.
13729 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13731         * genconfig.c (main): Always define HAVE_conditional_move.
13732         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
13733         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
13734         is defined.
13736 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13738         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
13739         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
13740         and FRAME_POINTER_REGNUM with the preprocessor.
13742 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13744         * defaults.h: Add default for STACK_PUSH_CODE.
13745         * expr.c: Don't redefine STACK_PUSH_CODE.
13746         * recog.c: Likewise.
13748 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13750         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
13751         sched-deps.c: Use if instead of preprocessor checks with
13752         STACK_GROWS_DOWNWARD.
13754 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13756         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
13757         is defined.
13758         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
13759         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
13760         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
13761         * doc/tm.texi: Regenerate.
13763 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13765         PR target/66232
13766         * config/i386/constraints.md (Bg): New constraint for GOT memory
13767         operand.
13768         * config/i386/i386.md (*call_got_x32): New pattern.
13769         (*call_value_got_x32): Likewise.
13770         * config/i386/predicates.md (GOT_memory_operand): New predicate.
13772 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
13774         PR tree-optimization/66233
13775         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
13776         Simplify.
13778 2015-05-21  Jeff Law  <law@redhat.com>
13780         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
13781         than MULT for shadd sequences.
13783 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
13785         * alias.c (alias_stats): New static var.
13786         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
13787         (dump_alias_stats_in_alias_c): New function.
13788         * alias.h (dump_alias_stats_in_alias_c): Declare.
13789         * tree-ssa-alias.c (dump_alias_stats): Call it.
13791 2015-05-08  Michael Matz  <matz@suse.de>
13793         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
13794         to strided_p.
13795         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
13796         (STMT_VINFO_STRIDED_P): ... this.
13797         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
13798         (vect_verify_datarefs_alignment): Likewise.
13799         (vect_enhance_data_refs_alignment): Likewise.
13800         (vect_analyze_data_ref_access): Likewise.
13801         (vect_analyze_data_refs): Accept strided stores.
13802         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
13803         (vect_model_load_cost): Adjust for macro rename.
13804         (vectorizable_mask_load_store): Likewise.
13805         (vectorizable_load): Likewise.
13806         (vectorizable_store): Open code strided stores.
13808 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13810         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
13811         Document sqrt_insn.
13813 2015-05-21  Richard Biener  <rguenther@suse.de>
13815         PR c++/66211
13816         * match.pd: Guard pattern optimzing (int)(float)int
13817         conversions to apply only on GIMPLE.
13819 2015-05-21  Jeff Law  <law@redhat.com>
13821         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
13822         multiply-accumulate/shift-add insn generation.
13824 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
13826         PR target/54236
13827         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
13828         operands[1] are the same.
13830 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
13832         PR middle-end/66221
13833         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
13834         build_distinct_type_copy to copy bounds.
13836 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
13838         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
13839         Change to unsigned int.
13841 2015-05-20  Jeff Law  <law@redhat.com>
13843         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
13844         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
13845         (pa_shadd_constant_p): Allow constants for shadd insns rather
13846         than valid scaling constants for memory addresses.
13847         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
13848         * config/pa/predicates.md (mem_shadd_operand): New predicate.
13849         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
13850         (shift-add insns using ASHIFT): New patterns.
13852 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
13854         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
13855         feasible.
13856         (fix_up_fall_thru_edges): Likewise.
13857         (fix_crossing_conditional_branches): Likewise. Promote jump targets
13858         from to rtx_insn to rtx_code_label where feasible.
13859         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
13860         gen_move_insn (returned type changed to rtx_insn).
13861         * builtins.c (expand_errno_check): Fix arguments of
13862         do_compare_rtx_and_jump (now expects rtx_code_label).
13863         (expand_builtin_acc_on_device): Likewise.
13864         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
13865         invert_jump (now exprects rtx_jump_insn).
13866         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
13867         (construct_init_block): Use rtx_code_label.
13868         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
13869         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
13870         calling redirect_jump.
13871         (patch_jump_insn): Likewise.
13872         (redirect_branch_edge): Likewise.
13873         (force_nonfallthru_and_redirect): Likewise.
13874         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
13875         when suitable.
13876         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
13877         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
13878         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
13879         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
13880         to store the value retured by gen_label_rtx.
13881         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
13882         rtx_jump_insn.
13883         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
13884         (split_branches): Fix calls of redirect_jump.
13885         * dojump.c (jumpifnot): Promote argument type from rtx to
13886         rtx_code_label.
13887         (jumpifnot_1): Likewise.
13888         (jumpif): Likewise.
13889         (jumpif_1): Likewise.
13890         (do_jump_1): Likewise.
13891         (do_jump): Likewise. Use rtx_code_label when feasible.
13892         (do_jump_by_parts_greater_rtx): Likewise.
13893         (do_jump_by_parts_zero_rtx): Likewise.
13894         (do_jump_by_parts_equality_rtx): Likewise.
13895         (do_compare_rtx_and_jump): Likewise.
13896         * dojump.h: Update function prototypes.
13897         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
13898         returns rtx_insn).
13899         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
13900         rtx_jump_insn.
13901         (emit_label_before): Likewise.
13902         (emit_jump_insn_after_noloc): Likewise.
13903         (emit_jump_insn_after_setloc): Likewise.
13904         (emit_jump_insn_after): Likewise
13905         (emit_jump_insn_before_setloc): Likewise.
13906         (emit_jump_insn_before): Likewise.
13907         (emit_label_before): Promote return type to rtx_code_label.
13908         (emit_label): Likewise.
13909         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
13910         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
13911         gen_move_insn.
13912         (emit_stack_restore): Likewise.
13913         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
13914         (do_cmp_and_jump): Likewise.
13915         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
13916         from rtx to rtx_code_label.
13917         (gen_move_insn_uncast): New function.
13918         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
13919         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
13920         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
13921         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
13922         invert_jump_1 and redirect_jump_1.
13923         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
13924         do_compare_rtx_and_jump.
13925         (expand_addsub_overflow): Likewise.
13926         (expand_neg_overflow): Likewise.
13927         (expand_mul_overflow): Likewise.
13928         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
13929         return value of gen_move_insn.
13930         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
13931         * loop-doloop.c (add_test): Use rtx_code_label.
13932         (doloop_modify): Likewise.
13933         (doloop_optimize): Likewise.
13934         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
13935         * lra-constraints.c (emit_spill_move): Remove cast of value returned
13936         by gen_move_insn.
13937         (inherit_reload_reg): Add cast when calling dump_insn_slim.
13938         (split_reg): Likewise.
13939         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
13940         gen_move_insn.
13941         * optabs.c (expand_binop_directly): Remove casts of values returned by
13942         maybe_gen_insn.
13943         (expand_unop_direct): Likewise.
13944         (expand_abs): Likewise.
13945         (maybe_emit_unop_insn): Likewise.
13946         (maybe_gen_insn): Promote return type to rtx_insn.
13947         * optabs.h: Update prototype of maybe_gen_insn.
13948         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
13949         redundant cast.
13950         * recog.c (struct peep2_insn_data): Promote type of insn field to
13951         rtx_insn.
13952         (peep2_reinit_state): Use NULL instead of NULL_RTX.
13953         (peep2_attempt): Remove casts of insn in peep2_insn_data.
13954         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
13955         * recog.h (struct insn_gen_fn): Promote return types of function
13956         pointers and operator ().from rtx to rtx_insn.
13957         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
13958         (fill_eager_delay_slots): Likewise.
13959         (relax_delay_slots): Likewise.
13960         (make_return_insns): Likewise.
13961         (dbr_schedule): Likewise.
13962         (optimize_skips): Likewise.
13963         (reorg_redirect_jump): Likewise.
13964         (fill_slots_from_thread): Likewise.
13965         * reorg.h: Update prototypes.
13966         * resource.c (find_dead_or_set_registers): Use dyn_cast to
13967         rtx_jump_insn instead of check.  Use it's jump_target method.
13968         * rtl.h (rtx_jump_insn::jump_label): Define new method.
13969         (rtx_jump_insn::jump_target): Define new method.
13970         (rtx_jump_insn::set_jump_target): Define new method.
13971         * rtlanal.c (tablejump_p): Promote type of one local variable.
13972         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
13973         (sched_analyze_insn): Likewise.
13974         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
13975         (print_insn): Likewise.
13976         * stmt.c (label_rtx): Promote return type to rtx_insn.
13977         (force_label_rtx): Likewise.
13978         (jump_target_rtx): Define new function.
13979         (expand_label): Use it, get rid of one cast.
13980         (expand_naked_return): Promote rtx to rtx_code_label.
13981         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
13982         (expand_case): Use rtx_code_label instread of rtx where feasible.
13983         (expand_sjlj_dispatch_table): Likewise.
13984         (emit_case_nodes): Likewise.
13985         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
13986         * store-motion.c (insert_store): Make use of new return type of
13987         gen_move_insn and remove a cast.
13988         (replace_store_insn): Likewise.
13990 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
13992         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
13993         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
13995 2015-05-20  Jeff Law  <law@redhat.com>
13997         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
13998         dispose of the jump thread path when the jump threading
13999         opportunity is cancelled.
14001 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14003         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14004         when printing the caret character.
14006 2015-05-20  Marek Polacek  <polacek@redhat.com>
14008         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14010 2015-05-20  Marek Polacek  <polacek@redhat.com>
14012         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14013         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14014         * gimple-fold.c (canonicalize_bool): Likewise.
14015         (same_bool_result_p): Likewise.
14016         * tree-if-conv.c (parse_predicate): Likewise.
14018 2015-05-20  Marek Polacek  <polacek@redhat.com>
14020         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14021         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14023 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14025         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14026         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14027         values.
14029 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
14031         * config/mips/mips.h (micromips_globals): Declare.
14033 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
14035         * timevar.def (TV_INITIALIZE_RTL): New.
14036         * toplev.c (initialize_rtl): Use an auto_timevar to account this
14037         function's time to TV_INITIALIZE_RTL.
14039 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14041         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14042         gimple_build_nop calls.
14043         (chkp_find_bounds_for_elem): Likewise.
14044         (chkp_get_zero_bounds): Likewise.
14045         (chkp_get_none_bounds): Likewise.
14046         (chkp_get_bounds_by_definition): Likewise.
14047         (chkp_generate_extern_var_bounds): Likewise.
14048         (chkp_get_bounds_for_decl_addr): Likewise.
14049         (chkp_get_bounds_for_string_cst): Likewise.
14051 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
14053         PR tree-optimization/65447
14054         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14055         (dump_use, dump_uses): Support to dump sub use.
14056         (record_use): New parameters to support sub use.  Remove call to
14057         dump_use.
14058         (record_sub_use, record_group_use): New functions.
14059         (compute_max_addr_offset, split_all_small_groups): New functions.
14060         (group_address_uses, rewrite_use_address): New functions.
14061         (strip_offset): New declaration.
14062         (find_interesting_uses_address): Call record_group_use.
14063         (add_candidate): New assertion.
14064         (infinite_cost_p): Move definition forward.
14065         (add_costs): Check INFTY cost and return immediately.
14066         (get_computation_cost_at): Clear setup cost and dependent bitmap
14067         for sub uses.
14068         (determine_use_iv_cost_address): Compute cost for sub uses.
14069         (rewrite_use_address_1): Rename from old rewrite_use_address.
14070         (free_loop_data): Free sub uses.
14071         (tree_ssa_iv_optimize_loop): Call group_address_uses.
14073 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14074             Jim Wilson  <jim.wilson@linaro.org>
14076         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14077         new  fields loadv and storev.
14078         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14079         Initialize loadv and storev.
14080         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14081         (cortexa53_extra_costs): Likewise.
14082         (cortexa57_extra_costs): Likewise.
14083         (xgene1_extra_costs): Likewise.
14084         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14085         rtx_costs.
14087 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14089         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14090          storev.
14091         (cortexa8_extra_costs): Likewise.
14092         (cortexa5_extra_costs): Likewise.
14093         (cortexa7_extra_costs): Likewise.
14094         (cortexa12_extra_costs): Likewise.
14095         (cortexa15_extra_costs): Likewise.
14096         (v7m_extra_costs): Likewise.
14098 2015-05-20  Jeff Law  <law@redhat.com>
14100         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14101         instead of open-coded version.  Also delete the jump thread created
14102         within this function.
14104 2015-05-20  Alan Modra  <amodra@gmail.com>
14106         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14107         stack adjusting insn.  Formatting.
14108         (rs6000_emit_prologue): Track stack adjusting insn, and use of
14109         r12.  If possible, emit first -fsplit-stack arg pointer insn
14110         before stack adjust.  Don't use r12 to save cr if split-stack.
14112 2015-05-20  Alan Modra  <amodra@gmail.com>
14114         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14115         Define.
14116         (rs6000_supports_split_stack): New function.
14117         * gcc/config/rs6000/rs6000.c (machine_function): Add
14118         split_stack_arg_pointer.
14119         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14120         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14121         rather than virtual_incoming_args_rtx.
14122         (rs6000_va_start): Likewise.
14123         (split_stack_arg_pointer_used_p): New function.
14124         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14125         (morestack_ref): New var.
14126         (gen_add3_const, rs6000_expand_split_stack_prologue,
14127         rs6000_internal_arg_pointer, rs6000_live_on_entry,
14128         rs6000_split_stack_space_check): New functions.
14129         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14130         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14131         (UNSPECV_SPLIT_STACK_RETURN): Define.
14132         (split_stack_prologue, load_split_stack_limit,
14133         load_split_stack_limit_di, load_split_stack_limit_si,
14134         split_stack_return, split_stack_space_check): New expands and insns.
14135         * gcc/config/rs6000/rs6000-protos.h
14136         (rs6000_expand_split_stack_prologue): Declare.
14137         (rs6000_split_stack_space_check): Declare.
14139 2015-05-20  Alan Modra  <amodra@gmail.com>
14141         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14142         (direct_return): Test vrsave_size rather than vrsave_mask.
14143         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
14144         (rs6000_emit_epilogue): Likewise.
14146 2015-05-20  Alan Modra  <amodra@gmail.com>
14148         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14149         when not saving registers.
14150         (debug_stack_info): Adjust to omit printing unused offsets,
14151         as before.
14152         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14153         expression.
14155 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14157         PR c++/65835
14158         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14159         value_type to const char *.
14161 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
14163         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14164         to build a biarch toolchain again.
14166 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14168         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14169         or implicit declarations.
14170         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14171         into it.
14172         (get_odr_type): Check type has linkage before adding bases.
14173         (register_odr_type): Check that type has linkage before adding it.
14174         (type_known_to_have_no_deriavations_p): Rename to ..
14175         (type_known_to_have_no_derivations_p): This one.
14176         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14177         (type_known_to_have_no_derivations_p): This one.
14178         * ipa-polymorphic-call.c
14179         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14180         type has linkage.
14182 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14184         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14185         (layout_type): Use RECORD_OR_UNION_TYPE_P.
14187 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14189         * config/s390/s390.c (s390_vector_bool_type_p): New function.
14190         (s390_invalid_binary_op): New function.
14191         (TARGET_INVALID_BINARY_OP): Define macro.
14193 2015-05-19  David Sherwood  <david.sherwood@arm.com>
14195         * loop-invariant.c (create_new_invariant): Don't calculate address cost
14196         if mode is not a scalar integer.
14197         (get_inv_cost): Increase computational cost for unused invariants.
14199 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14201         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
14202         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
14203         * config/s390/s390-builtin-types.def: New file.
14204         * config/s390/s390-builtins.def: New file.
14205         * config/s390/s390-builtins.h: New file.
14206         * config/s390/s390-c.c: New file.
14207         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14208         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14209         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14210         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14211         prototypes.
14212         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14213         Include.
14214         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14215         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14216         variable definitions.
14217         (s390_const_operand_ok): New function.
14218         (s390_expand_builtin): Rewrite.
14219         (s390_init_builtins): New function.
14220         (s390_handle_vectorbool_attribute): New function.
14221         (s390_attribute_table): Add s390_vector_bool attribute.
14222         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14223         (s390_branch_condition_mask): Generate masks for new modes.
14224         (s390_expand_vec_compare_cc): New function.
14225         (s390_mangle_type): Add mangling for vector bool types.
14226         (enum s390_builtin): Remove.
14227         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14228         efpc builtins.
14229         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14230         s390_cpu_cpp_builtins.
14231         (REGISTER_TARGET_PRAGMAS): New macro.
14232         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14233         (insn_cmp mode attribute): Add new CC modes.
14234         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14235         (lcbb): New pattern definition.
14236         * config/s390/s390intrin.h: Include vecintrin.h.
14237         * config/s390/t-s390: New file.
14238         * config/s390/vecintrin.h: New file.
14239         * config/s390/vector.md: Include vx-builtins.md.
14240         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14241         support.
14243 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14245         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14246         CCVFHE.
14247         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14248         (s390_select_ccmode): Likewise.
14249         (s390_canonicalize_comparison): Swap operands if necessary.
14250         (s390_expand_vec_compare_scalar): Expand DFmode compare using
14251         single element vector instructions.
14252         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14253         (s390_branch_condition_mask): Generate CC masks for the new modes.
14254         * config/s390/s390.md (v0, vf, vd): New mode attributes.
14255         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14256         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14257         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14258         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14259         (*extend<DSF:mode><BFP:mode>2): New insn definition.
14260         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14261         (extend<DSF:mode><BFP:mode>2): Turn into expander.
14262         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14263         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14264         (sqrt<mode>2): Add vector instruction.
14266 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14268         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14269         constraints.
14270         * config/s390/predicates.md (const0_operand, constm1_operand)
14271         (constable_operand): Accept vector operands.
14272         * config/s390/s390-modes.def: Add supported vector modes.
14273         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14274         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14275         (s390_bytemask_vector_p, s390_expand_vec_strlen)
14276         (s390_expand_vec_compare, s390_expand_vcond)
14277         (s390_expand_vec_init): Add prototypes.
14278         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14279         (s390_vector_mode_supported_p): New function.
14280         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14281         (s390_contiguous_bitmask_vector_p): New function.
14282         (s390_bytemask_vector_p): New function.
14283         (s390_split_ok_p): Vector regs don't work either.
14284         (regclass_map): Add VEC_REGS.
14285         (s390_legitimate_constant_p): Handle vector constants.
14286         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14287         (legitimate_reload_vector_constant_p): New function.
14288         (s390_preferred_reload_class): Handle CONST_VECTOR.
14289         (s390_reload_symref_address):  Likewise.
14290         (s390_secondary_reload): Vector memory instructions only support
14291         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
14292         (s390_emit_ccraw_jump): New function.
14293         (s390_expand_vec_strlen): New function.
14294         (s390_expand_vec_compare): New function.
14295         (s390_expand_vcond): New function.
14296         (s390_expand_vec_init): New function.
14297         (s390_dwarf_frame_reg_mode): New function.
14298         (print_operand): Handle addresses with 'O' and 'R' constraints.
14299         (NR_C_MODES, constant_modes): Add vector modes.
14300         (s390_output_pool_entry): Handle vector constants.
14301         (s390_hard_regno_mode_ok): Handle vector registers.
14302         (s390_class_max_nregs): Likewise.
14303         (s390_cannot_change_mode_class): New function.
14304         (s390_invalid_arg_for_unprototyped_fn): New function.
14305         (s390_function_arg_vector): New function.
14306         (s390_function_arg_float): Remove size variable.
14307         (s390_pass_by_reference): Handle vector arguments.
14308         (s390_function_arg_advance): Likewise.
14309         (s390_function_arg): Likewise.
14310         (s390_return_in_memory): Vector values are returned in a VR if
14311         possible.
14312         (s390_function_and_libcall_value): Handle vector arguments.
14313         (s390_gimplify_va_arg): Likewise.
14314         (s390_call_saved_register_used): Consider the arguments named.
14315         (s390_conditional_register_usage): Disable v16-v31 for non-vec
14316         targets.
14317         (s390_preferred_simd_mode): New function.
14318         (s390_support_vector_misalignment): New function.
14319         (s390_vector_alignment): New function.
14320         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14321         (TARGET_VECTOR_MODE_SUPPORTED_P)
14322         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14323         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14324         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14325         (TARGET_VECTOR_ALIGNMENT): Define target macro.
14326         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14327         (FIRST_PSEUDO_REGISTER): Increase value.
14328         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14329         (VECTOR_REG_P): Define macros.
14330         (FIXED_REGISTERS, CALL_USED_REGISTERS)
14331         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14332         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14333         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14334         Add vector registers.
14335         (CANNOT_CHANGE_MODE_CLASS): Call C function.
14336         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14337         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14338         memory.
14339         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14340         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14341         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14342         (VR*_REGNUM): New constants.
14343         (ALL): New mode iterator.
14344         (INTALL): Remove mode iterator.
14345         Include vector.md.
14346         (movti): Implement TImode moves for VRs.
14347         Disable TImode splitter for VR targets.
14348         Implement splitting TImode GPR<->VR moves.
14349         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14350         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14351         reload<mode>_la_in, reload<mode>_la_out.
14352         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14353         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14354         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14355         (mov<mode> SF SD): Prefer lder, lde for loading.
14356         Add lrl and strl instructions.
14357         Add vector instructions.
14358         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14359         Call s390_expand_vec_strlen on z13.
14360         (*cc_to_int): Change predicate to nonimmediate_operand.
14361         (addti3): Rename to *addti3.  New expander.
14362         (subti3): Rename to *subti3.  New expander.
14363         * config/s390/vector.md: New file.
14365 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14367         * common/config/s390/s390-common.c (processor_flags_table): Add
14368         z13.
14369         * config.gcc: Add z13.
14370         * config/s390/s390-opts.h (enum processor_type): Add
14371         PROCESSOR_2964_Z13.
14372         * config/s390/s390.c (s390_adjust_priority): Check for
14373         PROCESSOR_2964_Z13.
14374         (s390_reorg): Likewise.
14375         (s390_sched_reorder): Likewise.
14376         (s390_sched_variable_issue): Likewise.
14377         (s390_loop_unroll_adjust): Likewise.
14378         (s390_option_override): Likewise. Default to -mvx when available.
14379         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14380         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14381         (TARGET_VX_ABI): Define macros.
14382         macros.
14383         (TARGET_DEFAULT): Add MASK_OPT_VX.
14384         * config/s390/s390.md ("cpu" attribute): Add z13.
14385         ("cpu_facility" attribute): Add vec.
14386         * config/s390/s390.opt (processor_type): Add z13.
14387         (mvx): New options.
14388         * doc/invoke.texi: Add z13 option for -march.
14390 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14392         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14393         mode check to make sure that only scalar integer values are
14394         accepted.
14396 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14398         * tree.c (verify_type_variant): Fix #undef.
14399         (gimple_canonical_types_compatible_p): Move here from lto.c
14400         (verify_type): Verify TYPE_CANONICAL compatibility.
14401         * tree.h (gimple_canonical_types_compatible_p): Declare.
14403 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14405         PR middle-end/66199
14406         * tree.h (OMP_TEAMS_COMBINED): Define.
14407         * gimplify.c (enum gimplify_omp_var_data): Add
14408         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14409         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14410         (omp_notice_variable): Accept both ORT_TEAMS
14411         and ORT_COMBINED_TEAMS.  Don't recurse if
14412         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14413         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14414         GOVD_FIRSTPRIVATE.
14415         (omp_no_lastprivate): New function.
14416         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14417         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14418         notice_outer and set appropriate bits, otherwise make
14419         sure default(none) combined constructs won't complain.
14420         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14421         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14422         omp_no_lastprivate either remove the clause or turn it
14423         into OMP_CLAUSE_PRIVATE.
14424         (gimplify_omp_for): Fix up handling of implicit
14425         lastprivate or linear iterators.
14426         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14427         ORT_COMBINED_TEAMS.
14428         * omp-low.c (lower_omp_for_lastprivate): For combined
14429         for simd use fd.loop.n2 from the for rather than simd.
14431 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14433         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14434         instead of gen_rtx_raw_REG.
14435         (cris_expand_epilogue): Likewise.
14436         * config/microblaze/microblaze.c (microblaze_classify_address):
14437         Likewise.
14438         * config/sparc/sparc.md: Likewise.
14440 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
14442         * config/alpha/alpha.c (alpha_legitimize_reload_address)
14443         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14444         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14445         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14446         Use CASE_CONST_SCALAR_INT.
14447         (print_operand) <case 'M'>: Use mode_width_operand to check the
14448         value of the constant.
14449         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14450         * config/alpha/predicates.md (input_operand): Use general_operand
14451         instead of match_code as operand check.
14452         (symbolic_operand): Use match_code with subexpression digits.
14453         * config/alpha/constraints.md (Q): Ditto.
14455 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14457         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14459 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14461         * config/s390/s390.c (s390_secondary_reload): Fix check for
14462         load/store relative.
14464 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14466         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
14467         alternative_mask to uint64_t.
14469 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14471         PR tree-optimization/66187
14472         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14473         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
14474         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14476 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
14478         * diagnostic.c (diagnostic_report_current_module): Strengthen
14479         local "new_map" from const line_map * to
14480         const line_map_ordinary *.
14481         * genmatch.c (error_cb): Likewise for local "map".
14482         (output_line_directive): Likewise for local "map".
14483         * input.c (expand_location_1): Likewise for local "map".
14484         Pass NULL rather than &map to
14485         linemap_unwind_to_first_non_reserved_loc, since the value is never
14486         read from there, and the value written back not read from here.
14487         (is_location_from_builtin_token): Strengthen local "map" from
14488         const line_map * to const line_map_ordinary *.
14489         (dump_location_info): Strengthen locals "map" from
14490         line_map *, one to const line_map_ordinary *, the other
14491         to const line_map_macro *.
14492         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14493         const line_map * to const line_map_macro *.
14494         (maybe_unwind_expanded_macro_loc): Add a call to
14495         linemap_check_macro when writing to the "map" field of the
14496         loc_map_pair.
14497         Introduce local const line_map_ordinary * "ord_map", using it in
14498         place of "map" in the part of the function where we know we have
14499         an ordinary map.  Strengthen local "m" from const line_map * to
14500         const line_map_ordinary *.
14502 2015-05-19  Nick Clifton  <nickc@redhat.com>
14504         PR target/66156
14505         * config/msp430/msp430.md (zero_extendhisi2): Add support for
14506         separate source and destination registers.
14508 2015-05-19  Richard Biener  <rguenther@suse.de>
14510         PR tree-optimization/66165
14511         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14512         for no load permutation.
14514         PR tree-optimization/66185
14515         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14516         when building the SLP node from scalars.
14518 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14519             Tristan Gingold  <gingold@adacore.com>
14521         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14522         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14523         (expand_stack_restore): Call record_new_stack_level.
14524         (expand_stack_save): Do not call do_pending_stack_adjust.
14525         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14526         * calls.c (expand_call): Call record_new_stack_level for alloca.
14527         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14528         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14529         (update_sjlj_context): New global function.
14530         * except.h (update_sjlj_context): Declare.
14531         * explow.c (record_new_stack_level): New global function.
14532         (allocate_dynamic_stack_space): Call record_new_stack_level.
14533         * explow.h (record_new_stack_level): Declare.
14534         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14535         * cfgrtl.c (duplicate_insn_chain): Likewise.
14537 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14539         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14540         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14541         STACK_GROWS_DOWNWARD as normal if.
14542         (expand_call): Likewise.
14544 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
14546         PR target/54236
14547         * config/sh/sh.md (*round_int_even): New insn_and_split and
14548         accompanying new unnamed split.
14550 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14552         * bitmap.c (bitmap_set_range): Handle count==1 specially.
14553         (bitmap_clear_range): Likewise.
14554         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14555         bitmap_set_range unconditionally.
14556         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14557         * df-scan.c (df_mark_reg): Likewise.
14558         * haifa-sched.c (setup_ref_regs): Likewise.
14559         * sched-rgn.c (update_live_1): Likewise.
14561 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14563         * regs.h (END_HARD_REGNO): Delete.
14564         (END_REGNO): Move to...
14565         * rtl.h: ...here.
14566         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14567         * caller-save.c (mark_set_regs): Likewise.
14568         * combine.c (move_deaths, distribute_notes): Likewise.
14569         * cse.c (invalidate, invalidate_for_call): Likewise.
14570         * df-scan.c (df_ref_record): Likewise.
14571         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14572         (record_last_reg_set_info): Likewise.
14573         * reg-stack.c (convert_regs_exit): Likewise.
14574         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14575         * resource.c (update_live_status): Likewise.
14576         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14578 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14580         * rtl.h (reg_info): Add an nregs field.
14581         (REG_NREGS): Use it.
14582         (SET_REGNO_RAW): Delete.
14583         (set_regno_raw): New function.
14584         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14585         (END_REGNO): Redefine in terms of REG_NREGS.
14586         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14587         SET_REGNO_RAW.
14588         * emit-rtl.c (set_mode_and_regno): Likewise.
14589         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14590         instead of SET_REGNO_RAW.
14592 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14594         * rtl.h (PUT_MODE_RAW): New macro.
14595         (PUT_REG_NOTE_KIND): Use it.
14596         (set_mode_and_regno): Declare.
14597         (gen_raw_REG): Change regno to "unsigned int".
14598         (gen_rtx_REG): Change "unsigned" to "unsigned int".
14599         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14600         use set_mode_and_regno to change the mode of registers.
14601         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14602         * emit-rtl.c (set_mode_and_regno): New function.
14603         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
14604         * caller-save.c (reg_save_code): Use set_mode_and_regno.
14605         * expr.c (init_expr_target): Likewise.
14606         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14607         * postreload.c (reload_cse_simplify_operands): Likewise.
14609 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14611         * caller-save.c (init_caller_save): Use word_mode and
14612         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
14613         * expr.c (init_expr_target): Likewise.
14614         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14615         * postreload.c (reload_cse_regs_1): Likewise.
14617 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14619         * rtl.def (REG): Change format to "r".
14620         * rtl.h (rtunion): Remove rt_reg.
14621         (reg_info): New structure.
14622         (rtx_def): Add reg field to main union.
14623         (X0REGATTR): Delete.
14624         (REG_CHECK): New macro.
14625         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
14626         * rtl.c (rtx_format): Document "r".
14627         (rtx_code_size): Handle REG specially.
14628         * gengenrtl.c (special_format): Return true for formats
14629         that include 'r'.
14630         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
14631         Deal with REG_ATTRS after the field loop.
14632         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
14633         * expmed.c (init_expmed): Call gen_raw_REG instead of
14634         gen_rtx_raw_REG.
14635         * expr.c (init_expr_target): Likewise.
14636         * regcprop.c (maybe_mode_change): Likewise.
14637         * varasm.c (make_decl_rtl): Likewise.
14638         * final.c (leaf_renumber_regs_insn): Return early after
14639         handling REGs.
14640         * genemit.c (gen_exp): Handle 'r' fields.
14641         * genpeep.c (match_rtx): Likewise.
14642         * gensupport.c (subst_pattern_match): Likewise.
14643         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
14644         (alter_constraints, subst_dup): Likewise.
14645         * read-rtl.c (read_rtx_code): Likewise.
14646         * print-rtl.c (print_rtx): Likewise.
14647         * genrecog.c (find_operand, find_matching_operand): Likewise.
14648         (validate_pattern, match_pattern_2): Likewise.
14649         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
14650         (rtx_test::regno_field): New function.
14651         (operator ==, safe_to_hoist_p, transition_parameter_type)
14652         (parameter_type_string, print_parameter_value)
14653         (print_nonbool_test, print_test): Handle new enum values.
14654         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
14655         * lra-constraints.c (operands_match_p): Likewise.
14657 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14659         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
14660         Change type of new_regno to unsigned int.
14661         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
14662         new_regno to unsigned int.
14663         (df_ref_change_reg_with_loc): Remove old_regno parameter.
14664         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
14665         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
14666         (SET_REGNO_RAW): Add space after ",".
14668 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14670         * rtl.h (REG_NREGS): New macro
14671         * alias.c (record_set): Use it.
14672         * cfgcleanup.c (mark_effect): Likewise.
14673         * combine.c (likely_spilled_retval_1): Likewise.
14674         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
14675         (move_deaths, distribute_notes): Likewise.
14676         * cselib.c (cselib_record_set): Likewise.
14677         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14678         * df-scan.c (df_mark_reg): Likewise.
14679         * dse.c (look_for_hardregs): Likewise.
14680         * dwarf2out.c (reg_loc_descriptor): Likewise.
14681         (multiple_reg_loc_descriptor): Likewise.
14682         * expr.c (write_complex_part, read_complex_part): Likewise.
14683         (emit_move_complex): Likewise.
14684         * haifa-sched.c (setup_ref_regs): Likewise.
14685         * ira-lives.c (mark_hard_reg_live): Likewise.
14686         * lra.c (lra_set_insn_recog_data): Likewise.
14687         * mode-switching.c (create_pre_exit): Likewise.
14688         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
14689         (reload_combine_recognize_pattern): Likewise.
14690         (reload_combine_note_use, move2add_record_mode): Likewise.
14691         (reload_cse_move2add): Likewise.
14692         * reg-stack.c (subst_stack_regs_pat): Likewise.
14693         * regcprop.c (kill_value, copy_value): Likewise.
14694         (copyprop_hardreg_forward_1): Likewise.
14695         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
14696         (build_def_use): Likewise.
14697         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
14698         (deps_analyze_insn): Likewise.
14699         * sched-rgn.c (check_live_1, update_live_1): Likewise.
14700         * sel-sched.c (count_occurrences_equiv): Likewise.
14701         * valtrack.c (dead_debug_insert_temp): Likewise.
14703 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14705         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
14706         * dse.c (note_add_store): Likewise.
14707         * ira-lives.c (mark_hard_reg_dead): Likewise.
14708         * loop-invariant.c (mark_reg_store): Likewise.
14709         (mark_reg_death): Likewise.
14710         * postreload.c (reload_combine): Likewise.
14711         (reload_combine_note_store): Likewise.
14712         (reload_combine_note_use): Likewise.
14713         * recog.c (peep2_reg_dead_p): Likewise.
14715 2015-05-19  Alan Modra  <amodra@gmail.com>
14717         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
14718         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
14719         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
14720         unused predicates.
14721         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
14722         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
14723         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
14724         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
14726 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
14728         * config/mips/mips.md (JOIN_MODE): New mode iterator.
14729         (join2_load_Store<JOIN_MODE:mode>): New pattern.
14730         (join2_loadhi): Likewise.
14731         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
14732         load-load and store-stores.
14733         * config/mips/mips.opt (mload-store-pairs): New option.
14734         (TARGET_LOAD_STORE_PAIRS): New macro.
14735         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
14736         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
14737         * config/mips/mips.c (mips_load_store_bonding_p): New function.
14739 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
14741         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
14742         explicit swaps.
14743         * dojump.c (do_compare_rtx_and_jump): Likewise.
14744         * expmed.c (emit_store_flag_1): Likewise.
14745         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
14746         * final.c (sprint_ul): Use std::reverse for reversing a string.
14747         * fold-const.c (extract_muldiv_1): Use std::swap.
14748         * genmodes.c (emit_mode_int_n): Likewise.
14749         * ifcvt.c (dead_or_predicable): Likewise.
14750         * ira-build.c (ira_merge_live_ranges): Likewise.
14751         (swap_allocno_copy_ends_if_necessary): Likewise.
14752         * ira.c (ira_setup_alts): Likewise.
14753         * loop-iv.c (iv_analyze_expr): Likewise.
14754         (implies_p): Likewise.
14755         (canon_condition): Likewise.
14756         * lra-constraints.c (swap_operands): Likewise.
14757         * lra-lives.c (lra_merge_live_ranges): Likewise.
14758         * omega.c (swap): Remove.
14759         (bswap): Remove.
14760         (omega_unprotect_1): Use std::swap.
14761         (omega_solve_geq): Likewise.
14762         * optabs.c (expand_binop_directly): Likewise.
14763         (expand_binop): Likewise.
14764         (emit_conditional_move): Likewise.
14765         (emit_conditional_add): Likewise.
14766         * postreload.c (reload_cse_simplify_operands): Likewise.
14767         * reg-stack.c (emit_swap_insn): Likewise.
14768         (swap_to_top): Likewise.
14769         (compare_for_stack_reg): Likewise.
14770         (subst_asm_stack_regs): Likewise.
14771         * reload.c (find_reloads): Likewise.
14772         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
14773         * sel-sched.c (invoke_reorder_hooks): Likewise.
14774         (create_block_for_bookkeeping): Likewise.
14775         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
14776         (lambda_matrix_right_hermite): Use std::swap.
14777         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
14778         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
14779         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
14780         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
14781         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
14782         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
14783         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
14784         * tree-vrp.c (compare_ranges): Likewise.
14785         * var-tracking.c (add_with_sets): Likewise.
14786         (vt_find_locations): Likewise.
14788 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
14790         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
14791         pie executables.
14792         (FBSD_ENDFILE_SPEC): Likewise.
14793         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
14794         config/freebsd-spec.h.
14795         (ENDFILE_SPEC): Likewise.
14797 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
14798             Richard Henderson  <rth@redhat.com>
14800         PR target/57032
14801         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
14802         Check for a memory location that is not a reference (using an AND)
14803         to an unaligned location here.
14804         * config/alpha/predicates.md (normal_memory_operand): Remove.
14806 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
14808         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
14809         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
14811 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
14813         * config/mips/mips.c (micromips_globals): New variable.
14814         (mips_set_compression_mode): Save and reinitialize target-dependent
14815         state for microMIPS.
14817 2015-05-18  Martin Liska  <mliska@suse.cz>
14819         * dbgcnt.def: Add new counter.
14820         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
14822 2015-05-18  Martin Liska  <mliska@suse.cz>
14824         * dbgcnt.def: Sort counters.
14825         * opts.c (common_handle_option): Do not compile if
14826         -fdbg-cnt-list is enabled.
14828 2015-05-18  Tom de Vries  <tom@codesourcery.com>
14830         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
14831         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
14832         address operator to va_list operand.
14833         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
14834         unconditionally.
14835         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
14836         operand.
14837         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
14838         * config/s390/s390.c (s390_gimplify_va_arg): Same.
14839         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
14841 2015-05-18  Tom de Vries  <tom@codesourcery.com>
14843         * tree-ssa-tail-merge.c: Fix whitespace.
14845 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
14847         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
14848         cortex-a17, and cortex-a17.cortex-a7.
14850 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
14852         PR target/54236
14853         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
14855 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
14857         PR target/66174
14858         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
14859         QImode inner modes for TARGET_AVX512BW.  Force mask operand
14860         to a register for AVX512F modes.
14862 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
14864         * toplev.c (emit_debug_global_declarations): Do not output debug info
14865         when doing slim LTO objects.
14867 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
14869         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
14870         odr_types_equivalent_p): Declare.
14871         (odr_type_p): Use gcc_checking_assert.
14872         (type_in_anonymous_namespace_p) Declare.
14873         (type_with_linkage_p): Declare.
14874         * common.opt (Wlto-type-mismatch): New warning.
14875         * ipa-devirt.c (compound_type_base): New function.
14876         (odr_or_derived_type_p): New function.
14877         (odr_types_equivalent_p): New function.
14878         (add_type_duplicate): Simplify.
14879         (type_with_linkage_p): Add hack to prevent false positives on C types
14880         (type_in_anonymous_namespace_p): Likewise.
14881         * tree.c (need_assembler_name_p): Use type_with_linkage.
14882         * tree.h (type_in_anonymous_namespace_p): Remove.
14883         * doc/invoke.texi (-Wlto-type-mismatch): Document
14885 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
14887         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
14888         (verify_type): Verify STRING_FLAG.
14890 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14892         PR fortran/44054
14893         * tree-pretty-print.c (percent_K_format): Replace locus pointer
14894         with accessor function.
14895         * tree-diagnostic.c (diagnostic_report_current_function): Use
14896         diagnostic_location function.
14897         (maybe_unwind_expanded_macro_loc): Likewise.
14898         (virt_loc_aware_diagnostic_finalizer): Likewise.
14899         (default_tree_printer): Replace locus pointer with accessor function.
14900         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
14901         (diagnostic_set_info_translated): Initialize second location.
14902         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
14903         (diagnostic_show_locus): Handle two locations. Call
14904         diagnostic_print_caret_line.
14905         (diagnostic_print_caret_line): New.
14906         (default_diagnostic_starter): Use diagnostic_location function.
14907         (diagnostic_report_diagnostic): Use diagnostic_location function.
14908         (verbatim): Do not set text.locus.
14909         * diagnostic.h (struct diagnostic_info): Remove location field.
14910         (struct diagnostic_context): Make caret_chars an array of two.
14911         (diagnostic_location): New inline.
14912         (diagnostic_expand_location): Handle two locations.
14913         (diagnostic_same_line): New inline.
14914         (diagnostic_print_caret_line): Declare.
14915         (CARET_LINE_MARGIN): New constant.
14916         * pretty-print.c (pp_printf): Do not set text.locus.
14917         (pp_verbatim): Do not set text.locus.
14918         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
14919         (struct text_info): Replace locus pointer with locations
14920         array. Add accessor functions.
14922 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
14923             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14925         PR target/65768
14926         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
14927         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
14928          large constants in register instead of splitting them.
14930 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
14932         PR target/66140
14933         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
14934         replacements in memory addresses.
14935         (get_unaligned_address): Ditto.
14937 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
14939         * config/ft32/*: New files for FT32 port.
14940         * doc/install.texi: Add FT32 information.
14941         * doc/invoke.texi: Add FT32 information.
14942         * doc/md.texi: Add FT32 information.
14943         * doc/contrib.texi: Self added.
14945 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
14947         PR tree-optimization/64454
14948         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
14949         (-1 - A -> ~A): Remove unnecessary condition.
14951 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
14953         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
14954         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
14955         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
14957 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
14959         * ipa-chkp.h (chkp_wrap_function): New.
14960         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
14961         (chkp_wrap_function_name): New.
14962         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
14963         to get wrapper name.
14964         * lto-cgraph.c: Include ipa-chkp.h.
14965         (input_cgraph_1): Avoid alias chain for wrappers.
14967 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
14969         PR middle-end/66134
14970         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
14971         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
14973 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14975         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
14976         (AARCH64_FL_SLOWMUL): Delete.
14977         (AARCH64_FL_CRC): Redefine to 1<<3.
14978         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
14980 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14982         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
14983         casting.
14985 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
14987         * config/alpha/alpha.md (extendqidi2): Use general_operand
14988         instead of some_operand for operand[1] predicate.
14989         (extendhidi2): Ditto.
14990         (cbranchdi4): Use general_operand instead of some_operand
14991         for operand[1] and operands[2] predicates.
14992         (cstoredi4): Ditto.
14993         * config/alpha/predicates.md (some_operand): Remove unused predicate.
14994         (some_ni_operand): Ditto.
14996 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
14998         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
14999         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
15000         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15001         low part of the constant using alpha_emit_set_const_1.
15002         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15004 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
15006         * varasm.c (output_constant_pool_1): Pass down alignment from
15007         constant pool entry's descriptor to output_constant_pool_2.
15008         (output_object_block): Add comment prior to call to
15009         output_constant_pool_1.
15011 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
15013         PR rtl-optimization/65862
15014         * target.def (ira_change_pseudo_allocno_class): New hook.
15015         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15016         value of the hook.
15017         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15018         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15019         hook.
15020         * ira-costs.c (find_costs_and_classes): Call the hook and change
15021         classes when it is necessary.
15022         * doc/tm.texi: Update.
15024 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
15026         * config/i386/i386.md (sibcall_memory): Check that register with
15027         callee address is not also used as one of the arguments, instead
15028         of checking that it is not live after the sibcall.
15029         (sibcall_pop_memory): Ditto.
15030         (sibcall_value_memory): Ditto.
15031         (sibcall_value_pop_memory): Ditto.
15033 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
15035         * generic-match-head.c (types_match): Handle non-types.
15036         * gimple-match-head.c (types_match): Likewise.
15037         * match.pd: Remove unnecessary TREE_TYPE for types_match.
15039 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
15041         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15042         (csneg3<mode>_insn): Enable expansion of pattern.
15044 2015-05-14  Nick Clifton  <nickc@redhat.com>
15046         * config/rl78/rl78.c (rl78_select_section): Select the correct
15047         default section based upon the category of the decl.
15049 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15051         PR rtl-optimization/30967
15052         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15053         destination mode for the cost of scc patterns.
15055 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15057         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15058         using SWIM248 mode iterator.
15059         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15060         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
15061         for operand[2] constraint.
15062         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15064 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15066         PR middle-end/66133
15067         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15068         make sure it is never noreturn, even when the task body does not
15069         return.
15070         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15071         right before GIMPLE_OMP_RETURN.
15072         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15073         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
15074         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15076 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15078         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15079         * tree-ssa-math-opts.c: Include params.h
15080         (pow_synth_sqrt_info): New struct.
15081         (representable_as_half_series_p): New function.
15082         (get_fn_chain): Likewise.
15083         (print_nested_fn): Likewise.
15084         (dump_fractional_sqrt_sequence): Likewise.
15085         (dump_integer_part): Likewise.
15086         (expand_pow_as_sqrts): Likewise.
15087         (gimple_expand_builtin_pow): Use above to attempt to expand
15088         pow as series of square roots.  Removed now unused variables.
15090 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15092         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15093         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15094         Remove *p0 and *p1 arguments.  Rewrite function.
15095         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15096         (alpha_split_const_mov): Update calls to alpha_extract_integer and
15097         alpha_emit_set_long_const.
15098         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15099         (alpha_output_mi_thunk_osf): Ditto.
15100         * config/alpha/alpha.md (movti): Do not check operands[1]
15101         for CONST_DOUBLE.
15103 2015-05-13  Richard Biener  <rguenther@suse.de>
15105         PR tree-optimization/66129
15106         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15107         commutative.
15108         (vect_schedule_slp_instance): Fix typo.
15110 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
15112         * common.opt (fdump-internal-locations): New option.
15113         * input.c: Include diagnostic-core.h.
15114         (get_end_location): New function.
15115         (write_digit): New function.
15116         (write_digit_row): New function.
15117         (dump_location_range): New function.
15118         (dump_labelled_location_range): New function.
15119         (dump_location_info): New function.
15120         * input.h (dump_location_info): New prototype.
15121         * toplev.c (compile_file): Handle flag_dump_locations.
15123 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15125         * gimple-expr.h (is_gimple_constant): Reorder.
15126         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15128 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15130         * combine.c (simplify_set): When generating a CC set, if the
15131         source already is in the correct mode, do not wrap it in a
15132         compare.  Simplify the rest of that code.
15134 2015-05-13  Richard Biener  <rguenther@suse.de>
15136         PR tree-optimization/66123
15137         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15138         a taken edge.
15140 2015-05-13  Richard Biener  <rguenther@suse.de>
15142         PR middle-end/66110
15143         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15144         specially.
15145         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15147 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15149         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15150         * aclocal.m4: Regenerated with automake-1.11.6.
15152 2015-05-13  Tom de Vries  <tom@codesourcery.com>
15154         PR tree-optimization/66010
15155         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15156         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15157         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
15158         and rval based on do_deref.
15160 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15162         PR target/65103
15163         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15164         link time constants into adress expressions and therefore set
15165         their cost to 0.
15167 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15169         PR target/66112
15170         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15171         Use SWI248 iterator instead of SWI.
15172         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
15173         Use eq_attr "alternative" "0" instead of match_test in
15174         length_immediate attribute computation.
15175         (*mulvhi4, *mulvhi4_1): New define_insns.
15177         PR target/66112
15178         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15179         SIGNED to get precision of non-negative value.
15181 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15183         PR target/66048
15184         * function.c (diddle_return_value_1): Process bounds first.
15185         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15186         register.
15188 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15190         PR rtl-optimization/64616
15191         * loop-invariant.c (can_move_invariant_reg): New.
15192         (move_invariant_reg): Call above new function to decide whether
15193         instruction can just be moved, skipping creation of temporary
15194         register.
15196 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15198         PR target/pr66047.c
15199         * i386.c (ix86_function_sseregparm): Only return -1 if local function
15200         with implied regparm is called from -mno-sse function.
15201         (init_cumulative_args): Output error if ix86_function_sseregparm
15202         return -1 and SSE register would be needed.
15203         (function_arg_advance_32): Likewise.
15204         (function_arg_32): Likewise.
15205         * i386.h (ix86_args): Add decl field.
15207 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15209         PR ipa/65873
15210         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15211         inlines across optimization boundary.
15213 2015-05-12  Jason Merrill  <jason@redhat.com>
15215         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15216         string literal and macro name.
15218 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
15220         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15221         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15222         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15224 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15226         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15227         (-Wmisleading-indentation): New option.
15228         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15230 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
15232         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15233         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15234         (alpha_extract_integer): Ditto.
15235         (alpha_legitimate_constant_p): Ditto.
15236         (alpha_split_tmode_pair): Ditto.
15237         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15238         (alpha_expand_mov): Ditto.
15239         (print_operand): Remove handling of 'H' modifier.
15240         <case 'm'>: Remove CONST_DOUBLE handling.
15241         (summarize_insn): Handle CONST_WIDE_INT.
15242         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15243         (anddi3): Ditto.
15244         (movti): Handle CONST_WIDE_INT.
15245         * config/alpha/constraints.md ('H'): Remove constraint definition.
15246         ('G'): Do not match MODE_FLOAT class.
15247         * config/alpha/predicates.md (const0_operand): Also match
15248         const_wide_int.
15249         (non_add_const_operand): Ditto.
15250         (non_zero_const_operand): Ditto.
15251         (some_operand): Ditto.
15252         (input_operand): Ditto.  Handle CONST_WIDE_INT.
15253         (and_operand): Do not match const_double.
15254         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15256 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
15258         PR target/65697
15259         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15260         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15261         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15262         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15263         is_mm_seq_cst, is_mm_sync): New accessor functions.
15264         * builtins.c (expand_builtin_sync_operation,
15265         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15266         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15267         (get_memmodel,  expand_builtin_atomic_compare_exchange,
15268         expand_builtin_atomic_load, expand_builtin_atomic_store,
15269         expand_builtin_atomic_clear): Use new accessor routines.
15270         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15271         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15272         (maybe_emit_sync_lock_test_and_set): Use new accessors and
15273         MEMMODEL_SYNC_ACQUIRE.
15274         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15275         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15276         expand_atomic_store): Use new accessors.
15277         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15278         * tsan.c (instrument_builtin_call): Update check for memory model beyond
15279         final enum to use MEMMODEL_LAST.
15280         * c-family/c-common.c: Use new accessor for memmodel_base.
15281         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15282         accessors.
15283         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15284         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15285         mem_thread_fence, *dmb): Likewise.
15286         * config/alpha/alpha.c (alpha_split_compare_and_swap,
15287         alpha_split_compare_and_swap_12): Likewise.
15288         * config/arm/arm.c (arm_expand_compare_and_swap,
15289         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15290         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15291         atomic_loaddi): Likewise.
15292         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15293         Likewise.
15294         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15295         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15296         use new accessors.
15297         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15298         atomic_store<mode>, atomic_compare_and_swap<mode>,
15299         atomic_exchange<mode>): Use new accessors.
15300         * config/mips/mips.c (mips_process_sync_loop): Likewise.
15301         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15302         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15303         rs6000_post_atomic_barrier): Add new cases.
15304         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15305         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15306         (atomic_load<mode>): Add new cases and use new accessors.
15307         (store_quadpti): Add new cases.
15308         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15309         accessors.
15310         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15311         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15312         model, not 8.
15314 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15316         * ipa-devirt.c (type_with_linkage_p): New function.
15317         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15318         type has linkage.
15319         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15320         (can_be_name_hashed_p): Simplify.
15321         (hash_odr_name): Check that type has linkage before checking if it is
15322         anonymous.
15323         (types_same_for_odr): Likewise.
15324         (odr_name_hasher::equal): Likewise.
15325         (odr_subtypes_equivalent_p): Likewise.
15326         (warn_types_mismatch): Likewise.
15327         (get_odr_type): Likewise.
15328         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15329         * ipa-utils.h (odr_type_p): Move offline.
15330         * tree.c (need_assembler_name_p): Fix handling of types
15331         without linkages.
15332         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15334 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15336         * timevar.c (timevar_enable): Delete in favor of...
15337         (g_timer): New global.
15338         (struct timevar_def): Move to timevar.h inside class timer.
15339         (struct timevar_stack_def): Likewise.
15340         (timevars): Delete global in favor of field "m_timevars" within
15341         class timer in timevar.h
15342         (stack): Likewise, in favor of field "m_stack".
15343         (unused_stack_instances): Likewise, in favor of field
15344         "m_unused_stack_instances".
15345         (start_time): Likewise, in favor of field "m_start_time".
15346         (get_time): Eliminate check for timevar_enable.
15347         (timer::timer): New function, built from part of timevar_init.
15348         (timevar_init): Rewrite idempotency test from using
15349         "timevar_enable" bool to using dynamic allocation of "g_timer".
15350         Move rest of implementation into timer's constructor.
15351         (timevar_push_1): Rename to...
15352         (timer::push): ...this, adding "m_" prefixes to variables that
15353         are now fields of timer.
15354         (timevar_pop_1): Likewise, rename to...
15355         (timer::pop): ...this, and add "m_" prefixes.
15356         (timevar_start): Replace test for "timevar_enable" with one for
15357         "g_timer", and move bulk of implementation to...
15358         (timer::start): ...here, adding "m_" prefixes.
15359         (timevar_stop): Likewise, from here...
15360         (timer::stop): ...to here.
15361         (timevar_cond_start): Likewise, from here...
15362         (timer::cond_start): ...to here.
15363         (timevar_cond_stop): Likewise, from here...
15364         (timer::cond_stop): ...to here.
15365         (validate_phases): Rename to...
15366         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
15367         locals "total" and "tv" const.
15368         (timevar_print): Rename to...
15369         (timer::print): ...this, and add "m_" prefixes.  Make locals
15370         "total" and "tv" const.  Eliminate test for timevar_enable.
15371         * timevar.h (timevar_enable): Eliminate.
15372         (g_timer): New declaration.
15373         (timevar_push_1): Eliminate.
15374         (timevar_pop_1): Eliminate.
15375         (timevar_print): Eliminate.
15376         (class timer): New class.
15377         (timevar_push): Rewrite to use g_timer.
15378         (timevar_pop): Likewise.
15379         * toplev.c (toplev::~toplev): Likewise.
15381 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
15383         * arm-protos.h (arm_sched_autopref): Delete.
15384         (tune_params): Re-organize, use enums for flag values.
15385         (FUSE_OPS): New macro.
15386         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15387         (ARM_PREFETCH_BENEFICIAL): Likewise.
15388         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15389         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15390         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15391         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15392         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15393         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
15394         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15395         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15396         format.
15397         (arm_option_override, thumb2_reorg, arm_print_tune_info)
15398         (aarch_macro_fusion_pair_p): Update uses of current_tune.
15399         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15401 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
15403         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15404         "break".
15406 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
15407             Sandra Loosemore <sandra@codesourcery.com>
15409         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15410         value.
15411         (REG_CLASS_NAMES): Add "IJMP_REGS".
15412         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15413         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15414         use new "c" register constraint.
15415         * config/nios2/constraint.md (c): New register constraint
15416         corresponding to IJMP_REGS.
15418 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15420         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15421         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15422         define_splits): Delete, revamp, transmogrify into ...
15423         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15424         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15425         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15426         New.
15428 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15430         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15431         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15433 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15435         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15436         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15437         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15438         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15439         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15440         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15441         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15442         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15443         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15444         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15445         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15446         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15447         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15448         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15449         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15450         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15451         and 30 corresponding splitters): Delete.
15453 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15455         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15456         zero_extract.
15458 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15460         * combine.c (recog_for_combine_1): New function, factored out
15461         from recog_for_combine.
15462         (change_zero_ext): New function.
15463         (recog_for_combine): If recog fails, try again with the pattern
15464         modified by change_zero_ext; if that still fails, restore the
15465         pattern.
15467 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15469         * combine.c (get_undo_marker): New function.
15470         (undo_to_marker): New function, largely factored out from ...
15471         (undo_all): ... this.  Adjust.
15473 2015-05-12  Richard Biener  <rguenther@suse.de>
15475         PR tree-optimization/66101
15476         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15477         fixup if we turn a loop exit edge to a fallthru edge.
15479 2015-05-12  Richard Biener  <rguenther@suse.de>
15481         PR tree-optimization/37021
15482         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15483         (SLP_TREE_TWO_OPERATORS): New define.
15484         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15485         SLP_TREE_TWO_OPERATORS.
15486         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15487         SLP node.
15488         (vect_build_slp_tree): Adjust.
15489         (vect_analyze_slp_cost_1): Likewise.
15490         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15491         emitting two vector stmts and mixing the results.
15493 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15495         * call.c (print_z_candidates): Remove dead code.
15497 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15499         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15500         and zEC12_simple_fp.
15501         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15502         to 1.
15504 2015-05-12  Tom de Vries  <tom@codesourcery.com>
15506         PR tree-optimization/66010
15507         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15508         ifn_va_arg.
15509         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15510         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
15511         va_lists are passed, and remove corresponding handling.
15512         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
15513         do_deref argument to ifn_va_arg.
15514         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15515         ifn_va_arg.
15517 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15519         PR target/65955
15520         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15521         REG before taking its REGNO.
15523 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15525         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15526         rsp->sign_bit_copies and rsp->nonzero_bits into ...
15527         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
15528         present to get more accurate information about the number of sign bit
15529         copies and non zero bits.
15531 2015-05-12  Richard Biener  <rguenther@suse.de>
15533         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15534         do not allow unrolling.
15536 2015-05-11  Richard Henderson  <rth@redhat.com>
15538         * config/i386/i386-modes.def (CCP): New.
15539         * config/i386/i386.c (put_condition_code): Handle it.
15540         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15542 2015-05-11  Richard Henderson  <rth@redhat.com>
15544         * target.def (md_asm_clobbers): Replace with...
15545         (md_asm_adjust): this.
15546         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15547         (TARGET_MD_ASM_ADJUST): New.
15548         * tm.texi: Rebuild.
15549         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15550         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15551         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15553         * cfgexpand.c (check_operand_nalternatives): Accept vector of
15554         constraints instead of lists of outputs and inputs.
15555         (expand_asm_stmt): Save and restore input_location around the
15556         body of the function.  Move asm data into vectors instead of
15557         building tree lists.  Generate cleanup sequences as needed,
15558         rather than waiting til the end.  Use new md_asm_adjust hook.
15560         * config/vxworks.c: Include vec.h before target.h.
15561         * gimple.c: Likewise.
15562         * incpath.c: Likewise.
15563         * mode-switching.c: Likewise.
15565         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15566         (cris_md_asm_adjust): this.
15567         (TARGET_MD_ASM_CLOBBERS): Remove.
15568         (TARGET_MD_ASM_ADJUST): New.
15569         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15570         (ix86_md_asm_adjust): this.
15571         (TARGET_MD_ASM_CLOBBERS): Remove.
15572         (TARGET_MD_ASM_ADJUST): New.
15573         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15574         (mn10300_md_asm_adjust): this.
15575         (TARGET_MD_ASM_CLOBBERS): Remove.
15576         (TARGET_MD_ASM_ADJUST): New.
15577         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15578         (rs6000_md_asm_adjust): this.
15579         (TARGET_MD_ASM_CLOBBERS): Remove.
15580         (TARGET_MD_ASM_ADJUST): New.
15581         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15582         (visium_md_asm_adjust): this.
15583         (TARGET_MD_ASM_CLOBBERS): Remove.
15584         (TARGET_MD_ASM_ADJUST): New.
15586 2015-05-11  Richard Henderson  <rth@redhat.com>
15588         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15589         if noutputs is zero.
15590         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15592         * cfgexpand.c (expand_asm_operands): Merge into...
15593         (expand_asm_stmt): ... here.
15595         * cfgexpand.c (expand_asm_operands): Don't call
15596         resolve_asm_operand_names.
15597         * stmt.c (resolve_asm_operand_names): Clarify block comment.
15599 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
15601         * dwarf2out.c (gen_member_die): Sanity check that we access
15602         TYPE_MAIN_VARIANT for TYPE_METHODS.
15603         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15604         checking TYPE_METHODS.
15605         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15606         if non-null.
15607         (build_distinct_type_copy): Clear TYPE_METHODS.
15608         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15609         (verify_type): Allow TYPE_METHODS to be error_mark_node.
15610         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15612 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15614         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
15615         (emit_pattern_before_setloc): Likewise.
15617 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15619         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
15620         for define_peephole2s.
15621         (get_peephole2_pattern): New function.
15622         (main): Use it.  Call validate_pattern.
15624 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15626         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
15627         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
15628         (Last callee saved reg is different for AVR_TINY architecture)
15630 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
15632         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
15633         when looking for memory references.
15635 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15637         PR target/65753
15638         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
15639         via function pointers.
15641 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15643         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
15644         indirect call by forcing address into a pseudo with -fno-plt.
15645         * common.opt (flag_plt): New option.
15646         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
15647         ([-fno-plt]): Document.
15649 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
15651         PR bootstrap/66105
15652         * config/rs6000/option-defaults.h: Add space between string literal
15653         and macro name.
15655 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15657         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
15658         accross ARM targets.
15660 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15662         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
15663         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
15665 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15667         PR rtl-optimization/66076
15668         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
15669         Don't grow the heap array if it is already big enough from a
15670         previous iteration.
15672 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15674         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
15675         (is_called_in_ARM_mode): Remove.
15676         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
15677         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
15678         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
15679          arm_declare_function_name.
15681 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15683         * config/arm/arm.c (arm_option_override): Reoganized and split into :
15684         (arm_option_params_internal); New function.
15685         (arm_option_check_internal): New function.
15686         (arm_option_override_internal): New function.
15687         (thumb_code, thumb1_code): Remove.
15688         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
15689         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
15690         (thumb_code, thumb1_code): Remove.
15691         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
15693 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
15695         * config/alpha/alpha.c (alpha_emit_set_const_1)
15696         (alpha_emit_set_long_const, alpha_extract_integer)
15697         (alpha_legitimate_constant_p, alpha_split_const_mov)
15698         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
15699         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15700         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
15701         HOST_WIDE_INT_1U.
15702         * config/alpha/predicates.md (mode_mask_operand): Do not match
15703         const_double RTX.
15704         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15705         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
15706         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
15707         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15708         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
15710 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
15712         PR target/65780
15713         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
15714         default_binds_local_p_2.
15715         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
15716         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
15718 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15720         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
15722 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15724         Patch by Richard Biener
15725         * coverage.c (coverage_obj_init): Delay building of type variant
15726         until the type is finished.
15728 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15730         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
15731         mismatch between C and C++ type; compoare correctly ARG_TYPES
15732         for non-prototypes and output correctly parameter index for METHOD_TYPE.
15733         (odr_types_equivalent_p): Fix wording of warning about attributes;
15734         it is OK to match prototype and non-prototype.
15736 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15738         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
15739         TYPE_ARG_TYPES list.
15740         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
15741         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
15743 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15745         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
15746         * tree.h (is_lang_specific): Constify.
15748 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
15750         PR tree-optimization/64454
15751         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
15752         Rewrite.
15754 2015-05-08  Jason Merrill  <jason@redhat.com>
15756         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
15757         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
15758         config/darwin.h, config/darwin9.h, config/elfos.h,
15759         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
15760         config/microblaze/microblaze.h, config/mips/mips.h,
15761         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
15762         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
15763         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
15764         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
15765         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
15766         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
15767         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
15768         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
15769         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
15770         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
15771         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
15772         between string literal and macro name.
15774 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15776         * jump.c: Change argument types to rtx_insn *.
15777         * rtl.h: Adjust.
15779 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15781         * lra-constraints.c: Change argument type to rtx_insn *.
15783 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15785         * df-problems.c: Change argument type to rtx_insn *.
15787 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15789         * combine.c: Change argument type to rtx_insn *.
15791 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15793         * rtl.h: Adjust.
15794         * rtlanal.c: Change argument type to rtx_insn *.
15796 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15798         * sched-deps.c: Change argument types to rtx_insn *.
15799         * sched-int.h: Adjust.
15801 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15803         * dwarf2cfi.c: Change argument type to rtx_insn *.
15805 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15807         * ira.c (decrease_live_ranges_number): Changetype of local
15808         variable to rtx_insn *.
15809         * recog.c: Change argument types to rtx_insn *.
15810         * recog.h: Adjust.
15812 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15814         * reorg.c: Change argument types to rtx_insn *.
15816 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15818         * ira-color.c: Change argument types to rtx_insn *.
15819         * lra-eliminations.c: Likewise.
15820         * ira.h: Adjust.
15822 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15824         * gcse.c: Change argument types to rtx_insn *.
15826 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15828         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
15830 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15832         * emit-rtl.c (emit_debug_insn_before): Change argument type to
15833         rtx_insn *.
15834         * rtl.h: Adjust.
15836 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15838         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
15839         * rtl.h: Adjust.
15841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15843         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
15844         * rtl.h: Adjust.
15846 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15848         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
15849         * rtl.h: Adjust.
15851 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15853         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
15854         * rtl.h: Adjust.
15856 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15858         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
15859         to rtx_insn *.
15860         * rtl.h: Adjust.
15862 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15864         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
15865         to rtx_insn *.
15866         * rtl.h: Likewise.
15868 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15870         * except.c (can_nonlocal_goto): Change type of argument to
15871         rtx_insn *.
15872         * rtl.h: Adjust.
15874 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15876         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
15877         * rtl.h: Adjust.
15879 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15881         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
15882         * cfgrtl.c (can_delete_label_p): Adjust.
15883         * rtl.h: likewise.
15885 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15887         * reorg.c (stop_search_p): Change argument to rtx_insn *.
15889 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15891         * except.c (make_reg_eh_region_note): Change argument to
15892         rtx_insn *.
15893         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
15894         * except.h: Adjust.
15896 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15898         * mode-switching.c (commit_mode_sets): Change type of local
15899         variable from rtx to rtx_insn *.
15901 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
15903         * doc/install.texi (--enable-languages): Add missing jit and lto info.
15904         Add ^ to grep command.
15905         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
15906         arg to last gimple_simplify declaration.  Add missing gimple_build
15907         declaration for built-in function case with four tree args.
15909 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
15910             Szabolcs Nagy  <szabolcs.nagy@arm.com>
15912         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
15913         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
15914         (GNU_USER_DYNAMIC_LINKERN32): Update.
15916 2015-05-08  Richard Biener  <rguenther@suse.de>
15918         PR tree-optimization/66036
15919         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15920         Handle strided group loads.
15921         (vect_verify_datarefs_alignment): Likewise.
15922         (vect_enhance_data_refs_alignment): Likewise.
15923         (vect_analyze_group_access): Likewise.
15924         (vect_analyze_data_ref_access): Likewise.
15925         (vect_analyze_data_ref_accesses): Likewise.
15926         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
15927         (vectorizable_load): Likewise.
15929 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
15931         * config/rs6000/rs6000.md: Require operand inequality in one
15932         of the peepholes.
15934 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
15935             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15937         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
15938         from (set ...).
15939         * config/rx/rx.md (movdi, movdf): Likewise.
15940         Likewise for define_peephole2s.
15942 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
15944         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
15945         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
15946         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
15947         vtst_u64): Rewrite using gcc vector extensions.
15949 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
15951         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
15952         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
15954 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
15956         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
15958 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15960         * config/glibc-stdint.h (OPTION_MUSL): Define.
15961         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
15962         Change the definition based on OPTION_MUSL for 64 bit targets.
15963         * config/linux.h (OPTION_MUSL): Redefine.
15964         * config/alpha/linux.h (OPTION_MUSL): Redefine.
15965         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
15966         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
15968 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
15969             Szabolcs Nagy  <szabolcs.nagy@arm.com>
15971         * config.gcc (LIBC_MUSL): New tm_defines macro.
15972         * config/linux.h (OPTION_MUSL): Define.
15973         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
15974         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
15975         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15976         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15977         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15978         * config/linux.opt (mmusl): New option.
15979         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
15980         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15981         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15982         * configure: Regenerate.
15984 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15985             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15987         PR target/48904
15988         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
15989         * config/i386/knetbsd-gnu64.h: New file.
15991 2015-05-08  Marek Polacek  <polacek@redhat.com>
15993         PR c/64918
15994         * doc/invoke.texi: Document -Woverride-init-side-effects.
15996 2015-05-07  Marek Polacek  <polacek@redhat.com>
15998         PR c/65179
15999         * doc/invoke.texi: Document -Wshift-negative-value.
16001 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
16003         * gcov-tool.c (do_merge): Refactore to remove int ret.
16004         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16005         !type == FUNC to type != FUNC.
16006         * reload.h (struct target_reload): Changee to type of
16007         x_spill_indirect_levels from bool to unsigned char.
16009 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
16011         * rtl.h (always_void_p): New function.
16012         * gengenrtl.c (always_void_p): Likewise.
16013         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16014         with code foo are always VOIDmode.
16015         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16016         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16017         compare-elim.c, config/aarch64/aarch64.c,
16018         config/aarch64/aarch64.md, config/alpha/alpha.c,
16019         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16020         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16021         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16022         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16023         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16024         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16025         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16026         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16027         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16028         config/ia64/vect.md, config/iq2000/iq2000.c,
16029         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16030         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16031         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16032         config/mep/mep.c, config/microblaze/microblaze.c,
16033         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16034         config/mn10300/mn10300.c, config/msp430/msp430.c,
16035         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16036         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16037         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16038         config/rs6000/altivec.md, config/rs6000/rs6000.c,
16039         config/rs6000/rs6000.md, config/rs6000/vector.md,
16040         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16041         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16042         config/sh/sh.md, config/sh/sh_treg_combine.cc,
16043         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16044         config/spu/spu.md, config/stormy16/stormy16.c,
16045         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16046         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16047         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16048         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16049         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16050         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16051         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16052         var-tracking.c: Update calls accordingly.
16054 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16056         PR middle-end/192
16057         PR middle-end/54303
16058         * varasm.c (function_mergeable_rodata_prefix): New function.
16059         (mergeable_string_section): Use it.
16060         (mergeable_constant_section): Use it.
16062 2015-05-07  Jeff Law  <law@redhat.com>
16064         PR target/39726
16065         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16066         simplifier to narrow arithmetic.
16067         * generic-match-head.c: (types_match, single_use): New functions.
16068         * gimple-match-head.c: (types_match, single_use): New functions.
16070 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16072         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16073         rtx type.
16075 2015-05-07  Richard Biener  <rguenther@suse.de>
16077         PR tree-optimization/66002
16078         * passes.def: Schedule another pass_merge_phi after ifcombine, right
16079         before phiopt.
16081 2015-05-07  Marek Polacek  <polacek@redhat.com>
16082             Martin Uecker  <uecker@eecs.berkeley.edu>
16084         * doc/invoke.texi: Document -fsanitize=bounds-strict.
16085         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16086         into SANITIZE_NONDEFAULT.
16087         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16089 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
16091         PR target/66015
16092         * config/alpha/alpha.c (alpha_override_options_after_change): New.
16093         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16094         (alpha_override_options): Move align_loops, align_jumps and
16095         align_functions handling into alpha_override_options_after_change.
16097 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
16098             Chris Jones  <chrisj@nvidia.com>
16099             Joshua Conner  <jconner@nvidia.com>
16101         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16102         linking of crtfastmath.o.
16103         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16105 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
16107         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16108         (cstore<mode>4_unsigned_imm): New expander.
16109         (cstore<mode>4): Remove empty constraint strings.  Use the new
16110         expanders.
16112 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
16114         PR target/64208
16115         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16116         alternatives.
16118 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16120         * config/aarch64/geniterators.sh: Use standard BRE in sed.
16122 2015-05-06  Alan Modra  <amodra@gmail.com>
16124         PR target/66033
16125         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16126         (UNSPEC_NOP): Define.
16127         (reload_vsx_from_gpr<mode>): Add missing DONE.
16128         (reload_gpr_from_vsx<mode>): Likewise.
16129         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16130         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16132 2015-05-06  Christian Bruel  <christian.bruel@st.com>
16134         PR target/66015
16135         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16136         align_jumps, align_functions into aarch64_override_options_after_change.
16138 2015-05-06  Richard Biener  <rguenther@suse.de>
16140         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16141         vect_transform_slp_perm_load to check if we support a permutation
16142         for basic-block vectorization.
16144 2015-05-06  Nick Clifton  <nickc@redhat.com>
16146         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16147         used, even if it is not being used as a frame pointer.
16149 2015-05-05  Jason Merrill  <jason@redhat.com>
16151         * dwarf2out.c (gen_member_die): Don't emit anything for an
16152         anonymous class constructor.
16154 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
16156         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16157         that it reflects the block structure.
16158         (afdo_propagate_edge): Likewise.
16159         (afdo_calculate_branch_prob): Likewise.
16160         (afdo_annotate_cfg): Likewise.
16161         * cfgcleanup.c (equal_different_set_p): Likewise.
16162         (try_crossjump_to_edge): Likewise.
16163         * cgraph.c (cgraph_node::verify_node): Likewise.
16164         * cgraphunit.c (expand_all_functions): Likewise.
16165         * config/i386/i386.c (ix86_expand_copysign): Likewise.
16166         (exact_dependency_1): Likewise.
16167         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16168         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16169         * gensupport.c (process_define_subst): Likewise.
16170         * lto-wrapper.c (merge_and_complain): Likewise.
16171         * tree-if-conv.c (if_convertible_bb_p): Likewise.
16172         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16173         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16174         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16175         * tree-vect-loop.c (vectorizable_reduction): Likewise.
16176         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16177         * tree-vect-stmts.c (vectorizable_shift): Likewise.
16178         * tree-vrp.c (vrp_finalize): Likewise.
16179         * tree.c (variably_modified_type_p): Likewise.
16181 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
16183         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16184         on darwin12 and later.
16185         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16186         file to pass -rdynamic on darwin12 and later.
16187         * config/darwin.opt (rdynamic): Add.
16189 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16191         * doc/extend.texi (C Extensions): Update menu for moved Variable
16192         Attributes and Type Attributes sections.
16194 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16196         PR target/65990
16197         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16198         if rep_8byte stringop strategy was specified for 32-bit target.
16200 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
16202         PR target/65915
16203         * config/i386/i386.md (vector convert to float spltiter): Check for
16204         xmm16+, when splitting scalar float conversion.
16205         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16207 2015-05-05  Nick Clifton  <nickc@redhat.com>
16209         * config/msp430/msp430-opts.h (enum msp430_regions): New.
16210         * config/msp430/msp430.c (msp430_override_options): Complain if
16211         -mcode-region or -mdata-region is used on a non MSP430X.
16212         (msp430_section_attr): New function.  Checks lower, upper and
16213         either attributes.
16214         (msp430_attribute_table): Add lower, upper and either.
16215         (gen_prefix): New function.  Generates a prefix for a section
16216         name.
16217         (msp430_select_section): New function - handles the choice of
16218         section for an object.  Takes into account memory region
16219         attributes and options.
16220         (msp430_function_section): Use gen_prefix.
16221         (TARGET_SECTION_TYPE_FLAGS): Define.
16222         (msp430_section_type_flags): New function.
16223         (TARGET_ASM_UNIQUE_SECTION): Define.
16224         (msp430_unique_section): New function.
16225         (msp430_output_aligned_decl_common): New function.
16226         (msp430_do_not_relax_short_jumps): New function.
16227         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16228         Define.
16229         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16230         * config/msp430/msp430-protos.h
16231         (msp430_do_not_relax_short_jumps): New prototype.
16232         (msp430_output_aligned_decl_common): New prototype.
16233         * config/msp430/msp430.md (length): New attribute.
16234         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16235         then use a long code sequence for short jumps.
16236         * config/msp430/msp430.opt (mcode-region): New.
16237         (mdata-region): New.
16238         * doc/invoke.texi: Document new options.
16239         * doc/extend.texi: Document new attributes.
16241 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16243         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16244         (tune_params): Add field branch_costs.
16245         (aarch64_branch_cost): Declare.
16246         * gcc/config/aarch64.c (generic_branch_cost): New.
16247         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16248         (cortexa53_tunings): Likewise.
16249         (cortexa57_tunings): Likewise.
16250         (thunderx_tunings): Likewise.
16251         (xgene1_tunings): Likewise.
16252         (aarch64_branch_cost): Define.
16253         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16255 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16257         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16258         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16259         * config/i386/i386.md: Ditto.
16260         * config/i386/winnt.c: Ditto.
16262 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16264         * doc/extend.texi (__atomic Builtins): Move implementation details
16265         to the end of the description, rewrite opening paragraphs, state
16266         difference with __sync builtins, state C11/C++11 assumptions,
16267         weaken itemized descriptions, add explanation of memory model
16268         behaviour, expand description of compare-exchange, simplify text.
16270 2015-05-05  Renlin Li  <renlin.li@arm.com>
16272         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16274 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
16276         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16277         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16278         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16279         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16280         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16281         * configure: Regenerate.
16282         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16283         * doc/install.texi (aarch64*-*-*): Document new
16284         --enable-fix-cortex-a53-843419 option.
16285         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16286         and -mno-fix-cortex-a53-843419 options.
16288 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16290         PR target/65871
16291         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16293 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
16295         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16296         fix overactive TYPE_MIN_VALUE check and add FIXME for type
16297         compatibility problems.
16299 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16301         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16302         constraints.
16303         (cbranchsi4_reg): New.
16304         * config/microblaze/microblaze.c
16305         (microblaze_expand_conditional_branch_reg): New.
16306         * config/microblaze/microblaze-protos.h
16307         (microblaze_expand_conditional_branch_reg): New prototype.
16309 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16311         * config/microblaze/microblaze.md (peephole2): New.
16313 2015-05-04  Jeff Law  <law@redhat.com>
16315         Revert:
16316         2015-05-04  Jeff Law  <law@redhat.com>
16318         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16319         simplifier to narrow arithmetic.
16320         * generic-match-head.c: (types_match, single_use): New functions.
16321         * gimple-match-head.c: (types_match, single_use): New functions.
16323 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16325         PR target/65987
16326         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16327         (split_branches): Likewise.
16329 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
16331         * common.opt (fdelete-null-pointer-checks): Init to -1.
16332         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16333         override flag_delete_null_pointer_checks default.
16334         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16335         behavior re address zero.  Better document target-specific behavior.
16336         (-fisolate-errneous-paths-dereference): Mention relationship to
16337         -fdelete-null-pointer-checks.
16339 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16341         PR tree-optimization/65984
16342         * ubsan.c: Include tree-cfg.h.
16343         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16344         stmt_could_throw_p test, rename can_throw variable to ends_bb.
16346 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16348         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16349         to CONST_DOUBLE_P predicate.
16350         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16351         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16352         allow only operands that satisfy standard_sse_constant_p predicate.
16353         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16354         to CONST_DOUBLE_P predicate.
16356 2015-05-04  Jeff Law  <law@redhat.com>
16358         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16359         simplifier to narrow arithmetic.
16360         * generic-match-head.c: (types_match, single_use): New functions.
16361         * gimple-match-head.c: (types_match, single_use): New functions.
16363 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
16365         * config/arm/arm.c: Restore bootstrap.
16367 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16369         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16370         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16371         as CONST_WIDE_INT, not CONST_DOUBLE.
16372         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16373         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16374         (ix86_find_base_term): Do not check for CONST_DOUBLE.
16375         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16376         (ix86_build_signbit_mask): Rewrite using wide ints.
16377         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16378         (ix86_rtx_costs): Handle CONST_WIDE_INT.
16379         (find_constant): Ditto.
16380         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16381         using gen_int_mode.
16382         * config/i386/predicates.md (x86_64_immediate_operand)
16383         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16384         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16385         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16386         (const0_operand): Also match const_wide_int.
16387         (constm1_operand): Ditto.
16388         (const1_operand): Ditto.
16390 2015-05-04  Richard Biener  <rguenther@suse.de>
16392         PR tree-optimization/65965
16393         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16394         store groups at gaps.
16396 2015-05-04  Richard Biener  <rguenther@suse.de>
16398         PR tree-optimization/65935
16399         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16400         then make sure to apply that swapping to the IL.
16402 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16404         * Makefile.in (PATCHLEVEL_c): New variable.
16405         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16406         expand the same way as if DEVPHASE_c was non-empty.
16408 2015-05-04  Kai Tietz  <ktietz@redhat.com>
16410         PR target/65559
16411         * lto-wrapper.c (run_gcc): Open filename
16412         in binary-mode.
16414 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
16416         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
16417         sections up in file, to immediately after the Function Attributes
16418         section.
16420 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
16422         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16424 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16426         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16427         (insert_partition_copy_on_edge): Adjust.
16428         (insert_rtx_to_part_on_edge): Likewise.
16429         (insert_part_to_rtx_on_edge): Likewise.
16431 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16433         * function.c (set_return_jump_label): Change type of argument to
16434         rtx_insn *.
16435         * function.h (set_return_jump_label): Adjust.
16437 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16439         * reload.h (struct reg_equivs_t): Change type of init to
16440         rtx_insn *.
16441         * ira.c (fix_reg_equiv_init): Adjust.
16442         * reload1.c (eliminate_regs_1): Likewise.
16443         (init_eliminable_invariants): Likewise.
16445 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16447         * cselib.c (fp_setter_insn): Take a rtx_insn *.
16448         * cselib.h (fp_setter_insn): Adjust.
16450 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16452         * recog.c (struct validate_replace_src_data): Change type of
16453         insn field to rtx_insn *.
16454         (validate_replace_src_group): Change type of argument to rtx_insn *.
16455         * recog.h (validate_replace_src_group): Adjust.
16457 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16459         * haifa-sched.c: Change the type of some variables to rtx_insn *.
16460         * sched-deps.c: Likewise.
16461         * sched-int.h: Likewise.
16462         * sched-rgn.c: Likewise.
16463         * sel-sched.c: Likewise.
16465 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16467         to rtx_insn *.
16468         * config/i386/i386.c: Change the type of some arguments to
16469         rtx_insn *.
16470         * config/arm/arm.c: Likewise.
16472 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16474         * lra-constraints.c: Change type of some arguments to rtx_insn *.
16476 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16478         * regcprop.c (kill_autoinc_value): Change type of argument to
16479         rtx_insn *.
16481 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16483         * genrecog.c (print_subroutine): Adjust.
16484         * recog.c (get_bool_attr_mask_uncached): Likewise.
16485         * recog.h (struct recog_data_d): Change the type of insn to
16486         rtx_insn *.
16488 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16490         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16492 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16494         * df-problems.c (df_set_note): Change type of argument to
16495         rtx_insn *.
16497 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16499         * builtins.c (expand_builtin_trap): Change type of local
16500         variable to rtx_insn *.
16501         (add_sched_insns_for_speculation): Likewise.
16502         (ix86_emit_save_regs): Likewise.
16503         (get_scratch_register_on_entry): Likewise.
16504         (ix86_emit_restore_reg_using_pop): Likewise.
16505         (ix86_emit_leave): Likewise.
16506         (ix86_emit_restore_regs_using_mov): Likewise.
16507         (ix86_expand_epilogue): Likewise.
16508         Likewise.
16509         (rl78_alloc_physical_registers_umul): Likewise.
16510         * cselib.c (discard_useless_locs): Likewise.
16511         (cselib_invalidate_regno): Likewise.
16512         (cselib_invalidate_mem): Likewise.
16513         * function.c (expand_function_start): Likewise.
16514         (emit_use_return_register_into_block): Likewise.
16515         * gcse.c: Likewise.
16516         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16517         * ifcvt.c (noce_get_alt_condition): Likewise.
16518         * loop-doloop.c (doloop_condition_get): Likewise.
16519         * lra-constraints.c (inherit_in_ebb): Likewise.
16520         * modulo-sched.c (sms_schedule_by_order): Likewise.
16521         * recog.c (next_insn_tests_no_inequality): Likewise.
16522         * reorg.c (emit_delay_sequence): Likewise.
16523         (update_reg_dead_notes): Likewise.
16524         (fix_reg_dead_note): Likewise.
16525         (fill_slots_from_thread): Likewise.
16526         (delete_computation): Likewise.
16528 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
16530         * doc/extend.texi (Variable Attributes): Add menu and proper
16531         @nodes to subsections.  Move Microsoft Windows attributes to
16532         their own subsection.
16533         (Type Attributes): Reorganize introduction to remove duplicate
16534         list of attributes.  Add menu and proper @nodes to subsections.
16535         Alphabetize the main table of common attributes.
16537 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
16539         * match.pd: New simplification patterns.
16540         (x + (x & 1))  -> ((x + 1) & ~1)
16541         (x & ~(x & y)) -> ((x & ~y))
16542         (x | ~(x | y)) -> ((x | ~y))
16544 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16546         * target.def (attribute_table): Mention that struct attribute_spec
16547         is defined in tree-core.h rather than tree.h
16548         * doc/tm.texi: Regenerate.
16550 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
16552         * genrecog.c (test): Rename to rtx_test.  Update rest of file
16553         accordingly.
16555 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16557         PR translation/65959
16558         * params.h (DEFPARAM): Rename msgid to nocmsgid.
16560 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16562         * gcc/config/aarch64/aarch64-protos.h (tune_params):
16563         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16564         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16565         Return value depending on target.
16566         (generic_tunings): Initialize new target settings.
16567         (cortexa53_tunings): Likewise.
16568         (cortexa57_tunings): Likewise.
16569         (thunderx_tunings): Likewise.
16570         (xgene1_tunings): Likewise.
16572 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16574         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16575         Make Cortex-A53 shift costs more accurate.
16577 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16579         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16580         UNSIGNED_FLOAT.
16582 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16584         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16585         Calculate cost of op0 and op1 in PLUS and MINUS cases.
16587 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16589         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16590         Add cost of op0 in the compare-with-fpzero case.
16592 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
16594         * builtins.c (fold_builtin_1): Remove spurious second
16595         semicolon.
16596         * cgraph.h (symtab_node::get_availability): Likewise.
16597         * opts.c (common_handle_option): Remove spurious second semicolon.
16598         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16599         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16601 2015-04-30  Caroline Tice  <cmtice@google.com>
16603         PR gcov-profile/65929
16604         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16605         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16606         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16607         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16608         * doc/tm.texi: Regenerate.
16609         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
16610         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16611         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
16612         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
16614 2015-04-30  Marek Polacek  <polacek@redhat.com>
16616         * varasm.c (handle_cache_entry): Fix logic.
16618 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16620         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
16621         (*extrsi5_insn_uxtw_alt): Likewise.
16622         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
16623         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
16624         operations.
16626 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16628         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
16629         fabd in ABS case.
16631 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16633         * config/aarch64/aarch64.md
16634         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
16635         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
16636         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
16637         appropriately.  Handle alternative EON form.
16639 2015-04-30  Renlin Li  <renlin.li@arm.com>
16641         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
16642         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
16644 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16646         PR ipa/65873
16647         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
16648         -fstrict-aliasing boundaries.
16650 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16652         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
16653         and [SU]MNEGL patterns.
16655 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16657         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
16658         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
16659         combined arithmetic-shift ops.  Properly handle all shift and extend
16660         operations that can occur in combination with PLUS/MINUS.
16661         Rename maybe_fma to compound_p.
16662         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
16663         arithmetic and shift operations.
16665 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16667         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
16668         rather than arith_shift cost when costing ADD/MINUS of an
16669         extended value.
16671 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16673         PR lto/65948
16674         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
16675         to itself.
16677 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
16679         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
16680         are for the same position.
16682 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
16684         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
16685         vectorize_loops.
16686         (vectorize_loops): Use it.
16688 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16690         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
16691         for aggregate types.
16692         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
16693         type to be non_ODR.
16694         * tree.c (need_assembler_name_p): Compute mangled name for
16695         non-fundamental types and integer types.
16697 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
16699         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
16700         manual swaps.
16701         * expr.c (expand_expr_real_2): Likewise.
16703 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16705         * tree.c (build_common_builtin_nodes): Do not build
16706         __builtin_alloca_with_align as equivalent of library alloca.
16708 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16710         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
16711         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
16712         bugus variants.
16713         * tree.c: Include print-tree.h and ipa-utils.h
16714         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
16715         (free_lang_data_in_cgraph): Call verify_type.
16716         (verify_type_variant): New function.
16717         (verify_type): New function.
16718         * tree.h (verify_type): Declare.
16720 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
16722         * config/mips/mips-cpus.def: (mips4): Change default processor
16723         from PROCESSOR_R8000 to PROCESSOR_R10000.
16725 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
16727         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
16728         la/jalr instead of jal.
16730 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
16732         PR target/65871
16733         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
16734         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
16735         (setcc+movzbl peephole2): Check also clobbered reg.
16736         (setcc+andl peephole2): Ditto.
16738 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
16740         PR libgomp/65099
16741         * config/nvptx/mkoffload.c (target_ilp32): New variable.
16742         (main): Set it depending on "-foffload-abi=[...]".
16743         (compile_native, main): Use it to pass "-m32" or "-m64" to the
16744         compiler.
16746 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
16748         PR target/65770
16749         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
16750         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
16751         Flip lane index back at assembly time for bigendian.
16753 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
16755         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
16756         * gimplify.c (gimplify_omp_workshare): Use it.
16758 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
16760         * Makefile.in (build/genrecog.o): Depend on inchash.h.
16761         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
16762         build/inchash.o
16763         * genrecog.c: Rewrite most of the code except for the third page.
16765 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
16767         * inchash.h, inchash.c: Include bconfig.h for build objects.
16768         * Makefile.in (build/inchash.o): New rule.
16770 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
16772         PR target/65924
16773         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
16774         number in type attribute expression.
16776 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
16778         * loop-iv.c (canon_condition): Generalize to all types of integer
16779         constant.
16781 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
16783         * gimple-walk.c: Prune duplicate or unneeded includes.
16784         (walk_gimple_asm): Only call parse_input_constraint or
16785         parse_output_constraint if their findings are used.
16786         Honour parse_input_constraint and parse_output_constraint
16787         result.
16789 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
16791         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
16793 2015-04-29  Tom de Vries  <tom@codesourcery.com>
16795         PR tree-optimization/65893
16796         * passes.def (pass_all_optimizations): Move pass_stdarg to after
16797         pass_dce.
16799 2015-04-29  Richard Biener  <rguenther@suse.de>
16801         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16802         compute GROUP_SIZE for basic-block SLP.
16803         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
16804         take into account gaps.
16805         (vect_get_mask_element): Properly reject references to previous
16806         vectors.
16807         (vect_transform_slp_perm_load): Likewise.
16809 2015-04-29  Christian Bruel  <christian.bruel@st.com>
16811         PR target/64835
16812         * config/i386/i386.c (ix86_default_align): New function.
16813         (ix86_override_options_after_change): Call ix86_default_align.
16814         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
16815         (ix86_override_options_after_change): New function.
16817 2015-04-28  Jeff Law  <law@redhat.com>
16819         * tree-ssa-dom.c (record_equality); Fix comment typos.
16821 2015-04-28  Tom de Vries  <tom@codesourcery.com>
16823         PR tree-optimization/65887
16824         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
16826 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
16828         * doc/extend.texi (Declaring Attributes of Functions): Split into
16829         subsections by target.  Alphabetize the table of common attributes.
16830         Rewrite some of the introductory text to reflect the new structure.
16831         Update some cross-references to point to the new subsections.
16832         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
16833         duplicate copies in the discussion of function, label, and type
16834         attributes.
16836 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
16838         PR bootstrap/65910
16839         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
16841 2015-04-28  Jason Merrill  <jason@redhat.com>
16843         PR c++/65734
16844         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
16845         (finalize_type_size): Respect TYPE_USER_ALIGN.
16846         (layout_type) [ARRAY_TYPE]: Likewise.
16848 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
16850         * config/arm/arm.md (*arm_movt): Fix type attribute.
16851         (*cmpsi_shiftsi): Likewise.
16852         (*cmpsi_shiftsi_swp): Likewise.
16853         (*movsicc_insn): Likewise.
16854         (*cond_move): Likewise.
16855         (*if_plus_move): Likewise.
16856         (*if_move_plus): Likewise.
16857         (*if_arith_move): Likewise.
16858         (*if_move_arith): Likewise.
16859         (*if_shift_move): Likewise.
16860         (*if_move_shift): Likewise.
16861         (*arm_movtas_ze): Likewise.
16862         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
16863         redundancy and type attribute.
16864         (*thumb2_movsi_insn): Fix type attribute.
16865         (*thumb2_addsi_short): Likewise.
16866         (thumb2_addsi3_compare0): Likewise.
16867         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
16868         attributes accordingly.
16870 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
16872         PR other/65911
16873         * function.c (pad_to_arg_alignment): Add parentheses.
16875 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
16877         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
16878         libgcc/config/frv/elf-lib.h.
16880 2015-04-28  Tom de Vries  <tom@codesourcery.com>
16882         * tree-call-cdce.c: Fix example in header comment.
16884 2015-04-28  Richard Biener  <rguenther@suse.de>
16886         PR tree-optimization/62283
16887         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
16888         fails fatally and we are vectorizing a basic-block simply
16889         cause the child to be constructed piecewise.
16890         (vect_analyze_slp_cost_1): Adjust.
16891         (vect_detect_hybrid_slp_stmts): Likewise.
16892         (vect_bb_slp_scalar_cost): Likewise.
16893         (vect_get_constant_vectors): For piecewise constructed
16894         constants place them after the last def.
16895         (vect_get_slp_defs): Adjust.
16896         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
16897         externals for basic-block vectorization.
16899 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16901         PR target/63503
16902         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
16903         aarch64-*-*.
16904         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
16905         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
16906         (AARCH64_TUNE_FMA_STEERING): Likewise.
16907         * config/aarch64/aarch64-cores.def: Set
16908         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
16909         FMUL/FMADD instructions.
16910         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
16911         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
16912         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
16913         * config/aarch64/cortex-a57-fma-steering.h: New file.
16914         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16916 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
16918         * gensupport.c (std_preds): Add missing codes to address_operand entry.
16920 2015-04-28  Richard Biener  <rguenther@suse.de>
16922         PR tree-optimization/65851
16923         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
16924         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
16925         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
16926         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
16927         (ccp_visit_phi_node): Adjust.
16928         (evaluate_stmt): For simplifications to SSA names return its
16929         lattice value if that isn't VARYING.  Return immediately when
16930         simplified to a constant.
16931         (visit_assignment): Adjust.
16932         (ccp_visit_stmt): Likewise.
16934 2015-04-28  Tom de Vries  <tom@codesourcery.com>
16936         PR tree-optimization/65818
16937         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
16938         evaluated.
16940 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16942         * calls.c (save_fixed_argument_area): Don't check
16943         ARGS_GROW_DOWNWARD with the preprocessor.
16944         (restore_fixed_argument_area): Likewise.
16945         (mem_overlaps_already_clobbered_arg_p): Likewise.
16946         (check_sibcall_argument_overlap): Likewise.
16947         (expand_call): Likewise.
16948         (emit_library_call_value_1): Likewise.
16949         (store_one_arg): Likewise.
16950         * function.c (assign_parms): Likewise.
16951         (locate_and_pad_parm): Likewise.
16952         (pad_to_arg_alignment): Likewise.
16953         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16955 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16957         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
16958         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
16959         * calls.c (save_fixed_argument_area): Don't chekc if
16960         ARGS_GROW_DOWNWARD is defined.
16961         (restore_fixed_argument_area): Likewise.
16962         (mem_overlaps_already_clobbered_arg_p): Likewise.
16963         (check_sibcall_argument_overlap): Likewise.
16964         (expand_call): Likewise.
16965         (emit_library_call_value_1): Likewise.
16966         (store_one_arg): Likewise.
16967         * function.c (assign_parms): Likewise.
16968         (locate_and_pad_parm): Likewise.
16969         (pad_to_arg_alignment): Likewise.
16970         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16972 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16974         * defaults.h (gen_epilogue): New function.
16975         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
16976         defined.
16977         * cfgrtl.c (cfg_layout_finalize): Likewise.
16978         * df-scan.c: Likewise.
16979         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16980         (reposition_prologue_and_epilogue_notes): Likewise.
16981         * reorg.c (find_end_label): Likewise.
16982         * toplev.c: Likewise.
16984 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16986         * bb-reorder.c (HAVE_return): Don't check if its undefined.
16987         * defaults.h (gen_simple_return): New function.
16988         (gen_simple_return): Likewise.
16989         (HAVE_return): Add default definition to false.
16990         (HAVE_simple_return): Likewise.
16991         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
16992         HAVE_return and HAVE_simple_return are defined.
16993         * function.c (gen_return_pattern): Likewise.
16994         (convert_jumps_to_returns): Likewise.
16995         (thread_prologue_and_epilogue_insns): Likewise.
16996         * reorg.c (find_end_label): Likewise.
16997         (dbr_schedule): Likewise.
16998         * shrink-wrap.c: Likewise.
16999         * shrink-wrap.h: Likewise.
17001 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17003         * defaults.h (EPILOGUE_USES): Add default definition of false.
17004         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17005         * resource.c (init_resource_info): Likewise.
17007 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17009         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17010         to false.
17011         * dwarf2out.c (field_byte_offset): REmove check if
17012         PCC_BITFIELD_TYPE_MATTERS is defined.
17013         * stor-layout.c (layout_decl): Likewise.
17014         (update_alignment_for_field): Likewise.
17015         (place_field): Likewise.
17017 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17019         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17020         true.
17021         * regrename.c (check_new_reg_p): Remove check if
17022         HARD_REGNO_RENAME_OK is defined.
17023         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17025 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17027         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17028         * cse.c (fold_rtx): Likewise.
17029         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17030         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17031         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17032         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17033         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17034         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17035         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17036         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17037         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17038         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17039         * Likewise.
17040         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17041         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17042         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17043         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17044         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17045         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17046         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17047         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17048         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17049         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17050         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17051         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17052         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17053         * doc/tm.texi: Regenerate.
17054         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17055         either true or false.
17057 2015-04-27  Jeff Law  <law@redhat.com>
17059         PR tree-optimization/65217
17060         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17061         of them has a single use, make sure it is the LHS of the implied
17062         copy.
17064 2015-04-28  Alan Modra  <amodra@gmail.com>
17066         PR target/65810
17067         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17068         (offsettable_ok_by_alignment): Use minimum of decl and toc
17069         pointer alignment.  Replace dead code with assertion.
17070         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
17071         case if size exceeds toc pointer alignment.
17072         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17073         (rs6000_emit_move): Likewise.
17074         * configure.ac: Add linker toc pointer alignment check.
17075         * configure: Regenerate.
17076         * config.in: Regenerate.
17078 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
17080         * config.gcc: Add h8300-*-linux.
17081         * config/h8300/linux.h: New.
17082         * config/h8300/t-linux: New.
17083         * config/h8300/h8300.c (h8300_option_override): Normal mode
17084         is not supported for h8300-*-linux.
17085         (h8300_file_start): Target priority change.
17086         (get_shift_alg): Likewise.
17087         (h8300_shift_need_scratch_p): Likewise.
17088         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17089         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17091 2015-04-27  Caroline Tice  <cmtice@google.com>
17093         * final.c (final_scan_insn):  Output cold_function_name as function
17094         type.
17095         * varasm.c (cold_function_name):  Make global.
17096         (assemble_start_function):  Re-set cold_function_name.
17097         (assemble_end_function): Output cold partition size.
17098         * varasm.h (cold_function_name):  Declare global.
17100 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
17102         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17103         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17104         constraint.
17105         (*movxi_internal_avx512f): Ditto.
17106         (define_split): Check for xmm16+, when splitting scalar float_extend.
17107         (*extendsfdf2_mixed): Use "v" constraint.
17108         (define_split): Check for xmm16+, when splitting scalar float_truncate.
17109         (*truncdfsf_fast_sse): Use "v" constraint.
17110         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17111         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17112         (define_peephole2): Check for xmm16+, when converting scalar
17113         float_truncate.
17114         (define_peephole2): Check for xmm16+, when converting scalar
17115         float_extend.
17116         (*fop_<mode>_comm_mixed): Use "v" constraint.
17117         (*fop_<mode>_comm_sse): Ditto.
17118         (*fop_<mode>_1_mixed): Ditto.
17119         (*sqrt<mode>2_sse): Ditto.
17120         (*ieee_s<ieee_maxmin><mode>3): Ditto.
17122 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17124         * combine.c (simplify_if_then_else): Use std::swap instead
17125         of manually swapping.
17126         (known_cond): Likewise.
17127         (simplify_comparison): Likewise.
17129 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
17131         PR target/64579
17132         * config/rs6000/htm.md: Remove all define_expands.
17133         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17134         UNSPECV_HTM_TABORTWCI): Remove.
17135         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17136         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17137         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17138         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17139         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17140         tabortwci_internal): Remove define_insns.
17141         (tabort<wd>c, tabort<wd>ci): New define_insns.
17142         (tabort): Use gpc_reg_operand.
17143         (tcheck): Remove operand.
17144         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17145         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17146         expected value.
17147         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17148         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
17149         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17150         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17151         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17152         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17153         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17154         (tcheck): Remove builtin argument.
17155         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17156         not TARGET_64BIT.
17157         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
17158         tabortdc and tabortdci builtins when not in 64-bit mode.
17159         Modify code to handle the loss of the HTM define_expands.
17160         Emit code to copy the CR register to TARGET.
17161         (htm_init_builtins): Modify code to handle the loss of the HTM
17162         define_expands.
17163         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17164         (RS6000_BTC_64BIT): Likewise.
17165         (RS6000_BTC_CR): New macro.
17166         * doc/extend.texi: Update documentation for htm builtins.
17168 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17170         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17171         of manually swapping.
17172         (simplify_associative_operation): Likewise.
17173         (simplify_binary_operation): Likewise.
17174         (simplify_plus_minus): Likewise.
17175         (simplify_relational_operation): Likewise.
17176         (simplify_ternary_operation): Likewise.
17178 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17180         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17181         (xs_hi_nonmemory_operand): Remove error.
17182         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17183         general_operand rather than xs_hi_general_operand.
17185 2015-04-27  Richard Biener  <rguenther@suse.de>
17187         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17188         (record_equivalences_from_stmt): Valueize rhs.
17189         (record_equality): Canonicalize x and y order via
17190         tree_swap_operands_p.  Do not swap operands for same loop depth.
17192 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
17194         PR target/65296
17195         PR target/65895
17196         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17197         Add hint how to use own spec file.
17199 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
17201         PR tree-optimization/65875
17202         * tree-vrp.c (update_value_range): If in is_new case setting
17203         old_vr to VR_VARYING, also set new_vr to it.  Remove
17204         old_vr->type == VR_VARYING test.
17205         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17206         SSA_PROP_INTERESTING if update_value_range returned true,
17207         but new range is VR_VARYING.
17209 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17211         * combine.c (sign_extend_short_imm): New.
17212         (set_nonzero_bits_and_sign_copies): Use above new function for sign
17213         extension of src short immediate.
17214         (reg_nonzero_bits_for_combine): Likewise for tem.
17216 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17218         * stor-layout.c (self_referential_component_ref_p): New predicate.
17219         (copy_self_referential_tree_r): Use it.
17220         (self_referential_size): Punt for simple operations directly involving
17221         self-referential component references.
17222         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17224 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17226         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17228 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17230         * vec.h (vec): Make splice arguments const.  Update definitions
17231         accordingly.
17233 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
17235         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17236         alternatives.
17238 2015-04-26  Tom de Vries  <tom@codesourcery.com>
17240         PR tree-optimization/65826
17241         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17243 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
17245         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17246         (*madd3<mode>): Ditto.
17247         (*msub4<mode>): Ditto.
17248         (*msub3<mode>): Ditto.
17249         (*nmadd4<mode>): Ditto.
17250         (*nmadd3<mode>): Ditto.
17251         (*nmadd4<mode>_fastmath): Ditto.
17252         (*nmadd3<mode>_fastmath): Ditto.
17253         (*nmsub4<mode>): Ditto.
17254         (*nmsub3<mode>): Ditto.
17255         (*nmsub4<mode>_fastmath): Ditto.
17256         (*nmsub3<mode>_fastmath): Ditto.
17258 2015-04-24  Jason Merrill  <jason@redhat.com>
17260         PR c++/50800
17261         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17262         down when building TYPE_CANONICAL.
17263         (build_pointer_type_for_mode): Likewise.
17265 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
17267         * genrecog.c (validate_pattern): Check matching constraint refers
17268         to a lower numbered operand.
17270 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17272         PR target/65849
17273         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17274         save to independent variables use the Save attribute.  This will
17275         allow these options to be modified with the #pragma/attribute
17276         target support.
17277         (-mallow-movmisalign): Likewise.
17278         (-mallow-df-permute): Likewise.
17279         (-msched-groups): Likewise.
17280         (-malways-hint): Likewise.
17281         (-malign-branch-targets): Likewise.
17282         (-mvectorize-builtins): Likewise.
17283         (-msave-toc-indirect): Likewise.
17285         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17286         can be set via the #pragma/attribute target support.
17287         (rs6000_opt_vars): Likewise.
17288         (rs6000_inner_target_options): If VSX was set, also set
17289         -mno-avoid-indexed-addresses.
17291 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17293         * config/arm/iterators.md (shiftable_ops): Rename to...
17294         (SHIFTABLE_OPS): ... This.  Update use in comments.
17295         (ior_xor): Rename to...
17296         (IOR_XOR): ... This.
17297         (vqh_ops): Rename to...
17298         (VQH_OPS): ... This.
17299         (vqhs_ops): Rename to...
17300         (VQHS_OPS): ... This.
17301         (rshifts): Rename to...
17302         (RSHIFTS): ... This.
17303         (returns): Rename to...
17304         (RETURNS): ... This.
17305         * config/arm/arm.md: Update uses of the above.
17306         * config/arm/neon.md: Likewise.
17308 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17310         * config.host (case ${host}): Add aarch64*-*-linux case.
17311         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17312         fields to all the cores.
17313         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17314         Add MCPU_MTUNE_NATIVE_SPECS.
17315         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17316         field to all extensions.
17317         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17318         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17319         Adjust definition of AARCH64_OPT_EXTENSION.
17320         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17321         (MCPU_MTUNE_NATIVE_SPECS): Define.
17322         * config/aarch64/driver-aarch64.c: New file.
17323         * config/aarch64/x-arch64: New file.
17324         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17325         -mtune and -march.
17327 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17328             Wei Mi  <wmi@google.com>
17330         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17331         * config/i386/i386.c (extract_base_offset_in_addr): New function.
17332         (ix86_operands_ok_for_move_multiple): Ditto.
17333         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17334         (movlpd/movhpd to movupd peephole2): Ditto.
17336 2015-04-24  Marek Polacek  <polacek@redhat.com>
17338         PR c/61534
17339         * input.h (from_macro_expansion_at): Define.
17341         PR c/63357
17342         * doc/invoke.texi: Update description of -Wlogical-op.
17344 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17346         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17347         ternary operator in fprintf and harmonize spacing.
17349 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17351         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17352         Mark operand1 commutative.
17354 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17356         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17357         input operands in memory.
17358         (*vec_concatv2si_sse4_1): Ditto.
17359         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17360         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17361         register_operand.
17362         (vec_extract_hi_v32hi): Ditto.
17363         (vec_extract_hi_v64hi): Ditto.
17364         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17366 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17367             Steven Bosscher <steven@gcc.gnu.org>
17369         PR rtl-optimization/34503
17370         * cprop.c (cprop_reg_p): New.
17371         (hash_scan_set): Use above function to check if register can be
17372         propagated.
17373         (find_avail_set): Return up to two sets, one whose source is a
17374         register and one whose source is a constant.  Sets are returned in an
17375         array passed as parameter rather than as a return value.
17376         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
17377         sets returned by find_avail_set, starting with the one whose source is
17378         a constant. Use cprop_reg_p to check if register can be propagated.
17379         (do_local_cprop): Use cprop_reg_p to check if register can be
17380         propagated.
17381         (implicit_set_cond_p): Likewise.
17383 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17385         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17386         (sem_function::equals): IGNORED_NODES parameter is now unused;
17387         update call of equals_private.
17388         (sem_function::equals_private): Do not call equals_wpa; skip
17389         gimple body matching if there is no body.
17390         (sem_function::init): Add logic to hash tthunk info.
17391         (sem_function::parse): Also parse thunks.
17392         * ipa-icf.h (equals_private): Update declaration.
17394 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17396         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17397         asterisk from name so this can be generated directly.
17398         (*altivec_stvx_<mode>_internal): Likewise.
17399         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17400         that this is never called during or after reload/lra.
17401         (rs6000_frame_related): Remove split_reg
17402         argument and logic that references it.
17403         (emit_frame_save): Remove last parameter from call to
17404         rs6000_frame_related.
17405         (rs6000_emit_prologue): Remove last parameter from eight calls to
17406         rs6000_frame_related.  Force generation of stvx instruction for
17407         Altivec register saves.  Remove split_reg handling, which is no
17408         longer needed.
17409         (rs6000_emit_epilogue):  Force generation of lvx instruction for
17410         Altivec register restores.
17412 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17414         * config/rs6000/rs6000.opt (mcrypto): Change option description to
17415         match category changes in ISA 2.07B.
17417 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17419         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17420         iterators.
17421         (cmp_op, cmp_type): New code attributes.
17422         (NEON_VCMP, NEON_VACMP): New int iterators.
17423         (cmp_op_unsp): New int attribute.
17424         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17425         (neon_vceq<mode>): Delete.
17426         (neon_vc<cmp_op><mode>_insn): New pattern.
17427         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17428         (neon_vcgeu<mode>): Delete.
17429         (neon_vcle<mode>): Likewise.
17430         (neon_vclt<mode>: Likewise.
17431         (neon_vcage<mode>): Likewise.
17432         (neon_vcagt<mode>): Likewise.
17433         (neon_vca<cmp_op><mode>): New define_expand.
17434         (neon_vca<cmp_op><mode>_insn): New pattern.
17435         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17437 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17439         * tree.h (attribute_value_equal): Declare.
17440         * tree.c (attribute_value_equal): Export.
17442 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17444         * ipa-icf.c (sem_item::compare_attributes): New function.
17445         (sem_item::compare_referenced_symbol_properties): Compare variable
17446         attributes.
17447         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17448         (sem_function::param_used_p): New function.
17449         (sem_function::equals_wpa): Fix attribute comparsion; match
17450         parameter type codes; do not compare paremter flags when
17451         they are not used; compare edge flags; compare indirect calls.
17452         (sem_item::update_hash_by_addr_refs): Hash reference type.
17453         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17454         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17455         reference use type.
17456         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17457         * ipa-icf.h (compare_attributes, param_used_p): Declare.
17459 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17461         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17462         cleanup.
17463         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17464         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17465         (sem_item::compare_referenced_symbol_properties): New.
17466         (sem_item::hash_referenced_symbol_properties): New.
17467         (sem_item::compare_cgraph_references): Rename to ...
17468         (sem_item::compare_symbol_references): ... this one; use
17469         compare_referenced_symbol_properties.
17470         (sem_function::equals_wpa): Do not compare
17471         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17472         DECL_IS_OPERATOR_NEW; compare pointer sizes.
17473         (sem_item::update_hash_by_addr_refs): Call
17474         hash_referenced_symbol_properties.
17475         (sem_item::update_hash_by_local_refs): Cleanup.
17476         (sem_function::merge): Do not mix up symbol properties.
17477         (sem_variable::equals_wpa): Use compare_symbol_references.
17478         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17479         (sem_item::hash_referenced_symbol_properties): New.
17480         (sem_item::compare_symbol_references): New.
17481         (sem_item::compare_cgraph_references): Remove.
17483 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
17485         PR target/26702
17486         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17487         Emit size of local.
17489 2015-04-23  Nick Clifton  <nickc@redhat.com>
17491         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17492         ATTRIBUTE_UNUSED to x parameter.
17493         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17495 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17497         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17498         TARGET_CRYPTO to TARGET_P8_VECTOR>
17499         (crypto_vpermxor_<mode>): Likewise.
17500         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17501         (BU_CRYPTO_3A): Likewise.
17502         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17503         (BU_CRYPTO_OVERLOAD_3A): New #define.
17504         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17505         (VPMSUMH): Likewise.
17506         (VPMSUMW): Likewise.
17507         (VPMSUMD): Likewise.
17508         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17509         (VPERMXOR_V4SI): Likewise.
17510         (VPERMXOR_V8HI): Likewise.
17511         (VPERMXOR_V16QI): Likewise.
17512         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17513         BU_CRYPTO_OVERLOAD_2A.
17514         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17515         BU_CRYPTO_OVERLOAD_3A.
17516         * config/rs6000/rs6000.opt (mcrypto): Change description of
17517         option.
17519 2015-04-23  Richard Biener  <rguenther@suse.de>
17521         * passes.def: Remove copy propagation passes run directly after CCP.
17522         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17523         SSA names.
17524         (ccp_visit_phi_node): Rework to handle first executable edge
17525         specially.
17527 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
17529         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17530         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17531         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17532         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17533         (thumb_legimitimize_reload_address): Remove.
17534         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17535         Remove.
17536         (thumb_legimitimize_reload_address): Remove.
17538 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17540         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17542 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17544         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17545         MAX_LDM_STM_OPS.
17546         (store_multiple): Likewise.
17548 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17550         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17551         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17552         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17553         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17554         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17555         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17556         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17557         Specify issue_rate value.
17558         (arm_issue_rate): Look up issue rate from tuning structs. Remove
17559         large switch statement.
17560         (arm_marvell_pj4_tune): New struct.
17561         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17562         struct.
17564 2015-04-23  Richard Biener  <rguenther@suse.de>
17566         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17567         (vect_find_last_store_in_slp_instance): Rename to ...
17568         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17569         (vect_analyze_slp_cost_1): Use vector_load for constant defs
17570         and vec_construct for external defs when estimating prologue cost.
17571         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17572         Compute costs here only when vectorizing loops.
17573         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17574         have been determined.
17575         (vect_schedule_slp_instance): Simplify vectorized code placement
17576         and prepare for in-BB external defs.
17577         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17578         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17579         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17580         guard.
17581         (vect_model_load_cost): Likewise.
17582         (vectorizable_store): Instead add it here.
17583         (vectorizable_load): Likewise.
17584         (vect_is_simple_use): Dump def type textually.
17586 2015-04-23  Richard Biener  <rguenther@suse.de>
17588         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17589         * cfgloop.c (verify_loop_structure): Verify the root loop node.
17590         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17591         instead of get_eh_region_from_lp_number.
17592         * loop-init.c (fix_loop_structure): If we removed a loop, reset
17593         the SCEV cache.
17595 2015-04-23  Anton Blanchard  <anton@samba.org>
17597         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17598         need for -mprofile-kernel to save LR to stack.
17600 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17602         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17603         adjustments.
17604         (insn_is_swappable_p): Return 1 for a convert from double to
17605         single precision when all of its uses are splats of BE element
17606         zero.
17608 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17610         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17612 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17614         PR target/65456
17615         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
17616         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
17617         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
17618         option.
17619         (rs6000_builtin_mask_for_load): Return 0 for targets with
17620         efficient unaligned VSX accesses so that the vectorizer will use
17621         direct unaligned loads.
17622         (rs6000_builtin_support_vector_misalignment): Always return true
17623         for targets with efficient unaligned VSX accesses.
17624         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
17625         stores on targets with efficient unaligned VSX accesses is almost
17626         always the same as the cost of an aligned load or store, so model
17627         it that way.
17628         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
17629         unaligned vectors if we have efficient unaligned VSX accesses.
17630         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
17631         undocumented option.
17633 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17635         Revert:
17636         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17638         * config.gcc (LIBC_MUSL): New tm_defines macro.
17639         * config/linux.h (OPTION_MUSL): Define.
17640         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17641         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17642         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17644         * config/linux.opt (mmusl): New option.
17645         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17646         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17648         * configure: Regenerate.
17650 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17652         * config.gcc (LIBC_MUSL): New tm_defines macro.
17653         * config/linux.h (OPTION_MUSL): Define.
17654         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17655         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17656         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17658         * config/linux.opt (mmusl): New option.
17659         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17660         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17662         * configure: Regenerate.
17664 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
17666         * doc/invoke.texi (-fsanitize-sections): Update description.
17667         * asan.c (set_sanitized_sections): Parse incoming arg.
17668         (section_sanitized_p): Support wildcards.
17670 2015-04-22  Tom de Vries  <tom@codesourcery.com>
17672         PR tree-optimization/65823
17673         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
17674         equality between ap_copy and ap.
17676 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17678         PR target/47098
17679         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
17681 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17683         PR target/47122
17684         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
17686 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17688         PR target/55144
17689         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
17690         remove already contained t-files.
17692 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17694         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
17695         Remove unneeded forward declarations.
17696         (suitable_for_tail_call_opt_p): Commentary typo fix.
17698 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17700         * varasm.c (emit_bss): Remove redundant guard.
17702 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17704         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
17706 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17708         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
17710 2015-04-22  Hale Wang  <hale.wang@arm.com>
17711             Terry Guo  <terry.guo@arm.com>
17713         PR rtl-optimization/64818
17714         * combine.c (can_combine_p): Don't combine user-specified
17715         register if it is in an asm input.
17717 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
17719         PR ipa/65076
17720         * passes.def (early_optimizations): Add pass_dse.
17722 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17724         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
17725         * reorg.c (redundant_insn): Remove ifdef
17726         INSN_REFERENCES_ARE_DELAYED.
17727         * resource.c (mark_referenced_resources): Likewise.
17729 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17731         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
17732         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
17733         * resource.c (mark_set_resources): Likewise.
17735 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17737         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
17738         * cfgcleanup.c (flow_find_cross_jump): Likewise.
17739         (flow_find_head_matching_sequence): Likewise.
17740         (try_head_merge_bb): Likewise.
17741         * combine.c (can_combine_p): Likewise.
17742         (try_combine): Likewise.
17743         (distribute_notes): Likewise.
17744         * df-problems.c (can_move_insns_across): Likewise.
17745         * final.c (final): Likewise.
17746         * gcse.c (insert_insn_end_basic_block): Likewise.
17747         * ira.c (find_moveable_pseudos): Likewise.
17748         * reorg.c (try_merge_delay_insns): Likewise.
17749         (fill_simple_delay_slots): Likewise.
17750         (fill_slots_from_thread): Likewise.
17751         * sched-deps.c (sched_analyze_2): Likewise.
17753 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17755         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
17756         PIC_OFFSET_TABLE_REGNUM.
17758 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17760         * alias.c (init_alias_target): Remove ifdef
17761         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
17762         * df-scan.c (df_insn_refs_collect): Likewise.
17763         (df_get_regular_block_artificial_uses): Likewise.
17764         (df_get_eh_block_artificial_uses): Likewise.
17765         (df_get_entry_block_def_set): Likewise.
17766         (df_get_exit_block_use_set): Likewise.
17767         * emit-rtl.c (gen_rtx_REG): Likewise.
17768         * ira.c (ira_setup_eliminable_regset): Likewise.
17769         * reginfo.c (init_reg_sets_1): Likewise.
17770         * regrename.c (rename_chains): Likewise.
17771         * reload1.c (reload): Likewise.
17772         (eliminate_regs_in_insn): Likewise.
17773         * resource.c (mark_referenced_resources): Likewise.
17774         (init_resource_info): Likewise.
17776 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17778         * defaults.h (MASK_RETURN_ADDR): New definition.
17779         * except.c (expand_builtin_extract_return_addr): Remove ifdef
17780         MASK_RETURN_ADDR.
17782 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17784         * defaults.h (RETURN_ADDR_OFFSET): New definition.
17785         * except.c (expand_builtin_extract_return_addr): Remove ifdef
17786         RETURN_ADDR_OFFSET.
17787         (expand_builtin_frob_return_addr): Likewise.
17789 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17791         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
17792         (try_redirect_by_replacing_jump): Likewise.
17793         (rtl_tidy_fallthru_edge): Likewise.
17794         * combine.c (insn_a_feeds_b): Likewise.
17795         (find_split_point): Likewise.
17796         (simplify_set): Likewise.
17797         * cprop.c (cprop_jump): Likewise.
17798         * cse.c (cse_extended_basic_block): Likewise.
17799         * df-problems.c (can_move_insns_across): Likewise.
17800         * function.c (emit_use_return_register_into_block): Likewise.
17801         * haifa-sched.c (sched_init): Likewise.
17802         * ira.c (find_moveable_pseudos): Likewise.
17803         * loop-invariant.c (find_invariant_insn): Likewise.
17804         * lra-constraints.c (curr_insn_transform): Likewise.
17805         * postreload.c (reload_combine_recognize_const_pattern):
17806         * Likewise.
17807         * reload.c (find_reloads): Likewise.
17808         * reorg.c (delete_scheduled_jump): Likewise.
17809         (steal_delay_list_from_target): Likewise.
17810         (steal_delay_list_from_fallthrough): Likewise.
17811         (redundant_insn): Likewise.
17812         (fill_simple_delay_slots): Likewise.
17813         (fill_slots_from_thread): Likewise.
17814         (delete_computation): Likewise.
17815         * sched-rgn.c (add_branch_dependences): Likewise.
17817 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17819         * genconfig.c (main): Always define HAVE_cc0.
17820         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
17821         HAVE_cc0.
17822         * cfgcleanup.c (flow_find_cross_jump): Likewise.
17823         (flow_find_head_matching_sequence): Likewise.
17824         (try_head_merge_bb): Likewise.
17825         * cfgrtl.c (rtl_merge_blocks): Likewise.
17826         (try_redirect_by_replacing_jump): Likewise.
17827         (rtl_tidy_fallthru_edge): Likewise.
17828         * combine.c (do_SUBST_MODE): Likewise.
17829         (insn_a_feeds_b): Likewise.
17830         (combine_instructions): Likewise.
17831         (can_combine_p): Likewise.
17832         (try_combine): Likewise.
17833         (find_split_point): Likewise.
17834         (subst): Likewise.
17835         (simplify_set): Likewise.
17836         (distribute_notes): Likewise.
17837         * cprop.c (cprop_jump): Likewise.
17838         * cse.c (cse_extended_basic_block): Likewise.
17839         * df-problems.c (can_move_insns_across): Likewise.
17840         * final.c (final): Likewise.
17841         (final_scan_insn): Likewise.
17842         * function.c (emit_use_return_register_into_block): Likewise.
17843         * gcse.c (insert_insn_end_basic_block): Likewise.
17844         * haifa-sched.c (sched_init): Likewise.
17845         * ira.c (find_moveable_pseudos): Likewise.
17846         * loop-invariant.c (find_invariant_insn): Likewise.
17847         * lra-constraints.c (curr_insn_transform): Likewise.
17848         * optabs.c (prepare_cmp_insn): Likewise.
17849         * postreload.c (reload_combine_recognize_const_pattern):
17850         * Likewise.
17851         * reload.c (find_reloads): Likewise.
17852         (find_reloads_address_1): Likewise.
17853         * reorg.c (delete_scheduled_jump): Likewise.
17854         (steal_delay_list_from_target): Likewise.
17855         (steal_delay_list_from_fallthrough): Likewise.
17856         (try_merge_delay_insns): Likewise.
17857         (redundant_insn): Likewise.
17858         (fill_simple_delay_slots): Likewise.
17859         (fill_slots_from_thread): Likewise.
17860         (delete_computation): Likewise.
17861         (relax_delay_slots): Likewise.
17862         * sched-deps.c (sched_analyze_2): Likewise.
17863         * sched-rgn.c (add_branch_dependences): Likewise.
17865 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17867         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
17868         that is trivially ded on non cc0 targets.
17869         (simplify_set): Likewise.
17870         (mark_used_regs_combine): Likewise.
17871         * cse.c (new_basic_block): Likewise.
17872         (fold_rtx): Likewise.
17873         (cse_insn): Likewise.
17874         (cse_extended_basic_block): Likewise.
17875         (set_live_p): Likewise.
17876         * rtlanal.c (canonicalize_condition): Likewise.
17877         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17879 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17881         * conditions.h: Define macros even if HAVE_cc0 is undefined.
17882         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
17883         * final.c: Likewise.
17884         * jump.c: Likewise.
17885         * recog.c: Likewise.
17886         * recog.h: Declare functions even when HAVE_cc0 is undefined.
17887         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
17889 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17891         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
17892         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
17893         * builtins.c (expand_builtin): Remove check if
17894         EH_RETURN_DATA_REGNO is defined.
17895         * df-scan.c (df_bb_refs_collect): Likewise.
17896         (df_get_exit_block_use_set): Likewise.
17897         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
17898         * ira-lives.c (process_bb_node_lives): Likewise.
17899         * lra-lives.c (process_bb_lives): Likewise.
17901 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
17903         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
17904         FIRST_PSEUDO_REG): New.
17905         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
17906         (ARG_POINTER_REGNUM): Define to ARGP_REG.
17907         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
17908         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
17909         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
17910         (FIRST_INT_REG): New.
17911         (LAST_INT_REG): New.
17912         (FIRST_*_REG): Define using *_REG.
17913         (LAST_*_REG): Ditto.
17914         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
17915         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
17916         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
17918 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17920         * expmed.c: (synth_mult): Only assume overlapping
17921         shift with previous steps in alg_sub_t_m2 case.
17923 2015-04-21  Richard Biener  <rguenther@suse.de>
17925         PR tree-optimization/65650
17926         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
17927         transitions involving copies.
17928         (set_lattice_value): Adjust for copy lattice state.
17929         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
17930         if that doesn't dominate the merge point.
17931         (bit_value_unop): Adjust what we treat as varying mask.
17932         (bit_value_binop): Likewise.
17933         (bit_value_assume_aligned): Likewise.
17934         (evaluate_stmt): When we simplified to a SSA name record a copy
17935         instead of dropping to varying.
17936         (visit_assignment): Simplify.
17938         * gimple-match.h (gimple_simplify): Add another callback.
17939         * gimple-fold.c (fold_stmt_1): Adjust caller.
17940         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
17941         for the 2nd callback.
17942         * gimple-match-head.c (gimple_simplify): Add a callback that is
17943         used to valueize the stmt operands and use it that way.
17945 2015-04-21  Richard Biener  <rguenther@suse.de>
17947         PR tree-optimization/65788
17948         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
17950 2015-04-21  Richard Biener  <rguenther@suse.de>
17952         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
17953         vec_construct cost by vec_stmt_cost.
17955 2015-04-21  Richard Biener  <rguenther@suse.de>
17957         * cfghooks.h (create_basic_block): Replace with two overloads
17958         for RTL and GIMPLE.
17959         (split_block): Likewise.
17960         * cfghooks.c (split_block): Rename to ...
17961         (split_block_1): ... this.
17962         (split_block): Add two type-safe overloads for RTL and GIMPLE.
17963         (split_block_after_labels): Call split_block_1.
17964         (create_basic_block): Rename to ...
17965         (create_basic_block_1): ... this.
17966         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
17967         (create_empty_bb): Call create_basic_block_1.
17968         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
17969         split_block_after_labels.
17970         * omp-low.c (expand_parallel_call): Likewise.
17971         (expand_omp_target): Likewise.
17972         (simd_clone_adjust): Likewise.
17973         * tree-chkp.c (chkp_get_entry_block): Likewise.
17974         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
17975         create_basic_block overload.
17976         (cgraph_node::expand_thunk): Likewise.
17977         * tree-cfg.c (make_blocks): Likewise.
17978         (handle_abnormal_edges): Likewise.
17979         * tree-inline.c (copy_bb): Likewise.
17981 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17983         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
17984         New pattern.
17985         (*xor_one_cmplsidi3_ze): Likewise.
17987 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17989         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
17990         use df_remove_problem rather than manually removing problems, leaving
17991         holes in df->problems_in_order[].
17993 2015-04-21  Tom de Vries  <tom@codesourcery.com>
17995         PR tree-optimization/65802
17996         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
17998 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18000         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18001         Increase to 128.
18002         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18003         at '.'.  Assert that there's enough space for everything.
18005 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18007         PR tree-optimization/64950
18008         Revert:
18009         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
18011         PR target/41089
18012         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18013         as volatile.
18015 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
18017         PR rtl-optimization/64916
18018         * cfgcleanup.c (values_equal_p): New function.
18019         (can_replace_by): Use it.
18021 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
18023         PR c++/65801
18024         * doc/invoke.texi ([-Wnarrowing]): Update.
18026 2015-04-20  Jeff Law  <law@redhat.com>
18028         PR tree-optimization/65658
18029         * tree-ssa-threadupdate.c (redirection_block_p): Remove
18030         redundant test for GIMPLE_ASSIGN in last change.
18032 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
18034         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18035         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18036         (legitimize_tls_address): Ditto.
18037         (ix86_expand_move): Ditto.
18038         (ix86_expand_binary_operator): Remove reload_in_progress checks.
18039         (ix86_expand_unary_operator): Ditto.
18040         * config/i386/predicates.md (index_register_operand): Ditto.
18042 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
18044         * reorg.c (try_merge_delay_insns): Improve correctness checking
18045         for targets with multiple delay slots.
18047 2015-04-20  Jeff Law  <law@redhat.com>
18049         PR tree-optimization/65658
18050         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18051         statements too.
18053 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18055         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18056         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18057         Delete.
18059 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
18061         PR debug/65807
18062         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18064 2015-04-20  Richard Biener  <rguenther@suse.de>
18066         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18067         * gimple-fold.c (gimple_build_valueize): New function.
18068         (gimple_build): Always use gimple_build_valueize as valueize hook.
18070 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18072         PR target/64134
18073         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18074         and overwrite variable parts if <= 1/2 the elements are variable.
18076 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
18078         PR rtl-optimization/65805
18079         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18080         Don't use difference of offset and previous offset if
18081         update_sp_offset is non-zero.
18082         (eliminate_regs_in_insn): Ditto.
18083         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18084         lra_eliminate_regs_1 call.
18085         * lra-constraints.c (get_equiv_with_elimination): Ditto.
18087 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
18089         * hash-table.h: Remove version of hash_table that stored value_type *.
18090         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18091         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18092         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18093         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18094         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18095         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18096         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18097         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18098         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18099         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18100         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18101         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18102         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18103         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18104         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18105         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18107 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18108             Jakub Jelinek  <jakub@redhat.com>
18110         PR target/65787
18111         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18112         subsequent SH_NONE operand does not overwrite an existing *special
18113         value.
18114         (adjust_extract): Handle case where a vec_extract operation is
18115         wrapped in a PARALLEL.
18117 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18119         PR target/65780
18120         * config/i386/i386.c (ix86_binds_local_p): Define only if
18121         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18123 2015-04-17  Jeff Law  <law@redhat.com>
18125         PR tree-optimization/47679
18126         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18127         * tree-ssa-scopedtables.c: New file.
18128         * tree-ssa-scopedtables.h: New file.
18129         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18130         (const_and_copies): Change name/type.
18131         (record_const_or_copy): Move into tree-ssa-scopedtables.c
18132         (record_const_or_copy_1): Similarly.
18133         (restore_vars_to_original_value): Similarly.
18134         (pass_dominator::execute): Create and destroy const_and_copies table.
18135         (thread_across_edge): Update passing of const_and_copies.
18136         (record_temporary_equivalence): Use method calls rather than
18137         manipulating const_and_copies directly.
18138         (record_equality, cprop_into_successor_phis): Similarly.
18139         (dom_opt_dom_walker::before_dom_children): Similarly.
18140         (dom_opt_dom_walker::after_dom_children): Similarly.
18141         (eliminate_redundant_computations): Similarly.
18142         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18143         (record_temporary_equivalence): Likewise.
18144         (invalidate_equivalences): Likewise.
18145         (record_temporary_equivalences_from_phis): Update due to type
18146         change of const_and_copies.  Use method calls rather than
18147         manipulating the stack directly.
18148         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18149         (thread_through_normal_block, thread_across_edge): Likewise.
18150         (thread_across_edge): Likewise.
18151         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18152         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
18153         of equiv_stack.
18154         (identify_jump_threads): Update due to type change of equiv_stack.
18155         (finalize_jump_threads): Delete the equiv_stack when complete.
18157 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
18159         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18160         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18161         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18163 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
18165         PR target/65535
18166         * config.gcc: Exit with a comment when we do not have a major version
18167         number for the FreeBSD target.
18169 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18171         PR target/65689
18172         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18173         maybe_allows_mem bitfields.
18174         (maybe_allows_none_start, maybe_allows_none_end,
18175         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18176         maybe_allows_mem_end): New variables.
18177         (compute_maybe_allows): New function.
18178         (add_constraint): Use it to initialize maybe_allows_reg and
18179         maybe_allows_mem fields.
18180         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18181         is_address constraints such that those that allow neither mem nor
18182         reg come first, then those that only allow reg but not mem, then
18183         those that only allow mem but not reg, then the rest.
18184         (write_allows_reg_mem_function): New function.
18185         (write_tm_preds_h): Call it.
18186         * stmt.c (parse_output_constraint, parse_input_constraint): Use
18187         the generated insn_extra_constraint_allows_reg_mem function
18188         instead of always setting *allows_reg = true; *allows_mem = true;
18189         for unknown extra constraints.
18191 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18193         PR target/65780
18194         * output.h (default_binds_local_p_3): New.
18195         * varasm.c (default_binds_local_p_3): Make it public.  Take an
18196         argument to indicate if common symbol may be local.  If common
18197         symbol may be local, treat non-external variable as defined
18198         locally.
18199         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18200         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18201         * config/i386/i386.c (ix86_binds_local_p): New.
18202         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18203         ix86_binds_local_p.
18205 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18207         PR debug/65771
18208         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18209         trying mem_loc_descriptor on XEXP (rtl, 0).
18211 2015-04-17  Martin Liska  <mliska@suse.cz>
18213         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18214         Release symbol_compare_collection.
18215         * ipa-reference.c: Add TODO that a vector should be released.
18217 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18219         PR target/65296
18220         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18221         to new AVR-LibC file layout (bug #44574).
18222         (*avrlibc_devicelib): Same.
18223         * config/avr/avr-mcus.def: Adjust comments.
18224         * config/avr/avr.opt (nodevicelib): Adjust help.
18226 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
18228         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18230 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
18232         PR c++/64527
18233         * gimplify.c (gimplify_init_constructor): Always emit a
18234         side-effecting constructor.
18236 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18238         PR tree-optimization/64950
18239         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18240         in cfun->curr_properties.
18241         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18242         if we generate an IFN_VA_ARG.
18243         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18244         function if PROP_gimple_lva is not set in src function.
18246 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18247             Michael Matz  <matz@suse.de>
18249         PR tree-optimization/64950
18250         * gimple-iterator.c (update_modified_stmts): Remove static.
18251         * gimple-iterator.h (update_modified_stmts): Declare.
18252         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18253         (gimplify_va_arg_internal): New function.
18254         (gimplify_va_arg_expr): Use IFN_VA_ARG.
18255         * gimplify.h (gimplify_va_arg_internal): Declare.
18256         * internal-fn.c (expand_VA_ARG): New unreachable function.
18257         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18258         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18259         (expand_ifn_va_arg): New function.
18260         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18261         (pass_stdarg::execute): Call expand_ifn_va_arg.
18262         (pass_data_lower_vaarg): New pass_data.
18263         (pass_lower_vaarg): New gimple_opt_pass.
18264         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18265         (make_pass_lower_vaarg): New function.
18266         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18267         properties_required field.
18268         * passes.def (all_passes): Add pass_lower_vaarg.
18269         * tree-pass.h (PROP_gimple_lva): Add define.
18270         (make_pass_lower_vaarg): Declare.
18272 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18274         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18275         * calls.c (call_expr_flags): Same.
18277 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18279         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18280         (pass_stdarg::execute): ... here.
18282 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18283             Michael Matz  <matz@suse.de>
18285         * tree-cfg.c (make_blocks_1): Factor out of ...
18286         (make_blocks): ... here.
18287         (make_edges_bb): Factor out of ...
18288         (make_edges): ... here.
18289         (gimple_find_sub_bbs): New function.
18290         * tree-cfg.h (gimple_find_sub_bbs): Declare.
18292 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18294         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18296 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
18298         * asan.c (set_sanitized_sections): New function.
18299         (section_sanitized_p): Ditto.
18300         (asan_protect_global): Optionally sanitize user-defined
18301         sections.
18302         * asan.h (set_sanitized_sections): Declare new function.
18303         * common.opt (fsanitize-sections): New option.
18304         * doc/invoke.texi (-fsanitize-sections): Document new option.
18305         * opts-global.c (handle_common_deferred_options): Handle new
18306         option.
18308 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18310         PR debug/65771
18311         * dwarf2out.c (loc_list_from_tree): Return NULL
18312         for DEBUG_EXPR_DECL.
18314 2015-04-17  Christian Bruel  <christian.bruel@st.com>
18316         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18317         same attributes.
18319 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18321         * ira-color.c (setup_left_conflict_sizes_p): Do not process
18322         node itself when computing left conflict subnode size.
18324 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18326         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18327         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18328         *fop_<mode>_1_sse using enabled attribute.  Use
18329         register_mixssei387nonimm_operand operand 1 predicate. Change
18330         alternative 3 constraints from "x" to "v".
18332 2015-04-16  Richard Biener  <rguenther@suse.de>
18334         PR tree-optimization/65774
18335         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18336         bit-value tracking on.
18338 2015-04-16  Richard Biener  <rguenther@suse.de>
18340         PR tree-optimization/64277
18341         * tree-vrp.c (check_array_ref): Fix anti-range handling,
18342         simplify upper bound handling.
18343         (search_for_addr_array): Simplify.
18344         (check_array_bounds): Handle ADDR_EXPRs here.
18345         (check_all_array_refs): Simplify.
18347 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18349         * config/i386/i386.c (print_reg): Rewrite function.
18351 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18353         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18354         Invert the condition.
18356 2015-04-16  Renlin Li  <renlin.li@arm.com>
18358         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18359         simplifications for UNSIGNED_FLOAT.
18361 2015-04-16  Nick Clifton  <nickc@redhat.com>
18363         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18364         MUL_UNINIT.
18365         (enum rl78_cpu_type): New.
18366         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18367         (umulhi3_shift_virt): Remove m constraint from operand 1.
18368         (umulqihi3_virt): Likewise.
18369         * config/rl78/rl78.c (rl78_option_override): Add code to process
18370         -mcpu and -mmul options.
18371         (rl78_alloc_physical_registers): Add code to handle divhi and
18372         divsi valloc attributes.
18373         (set_origin): Likewise.
18374         * config/rl78/rl78.h (RL78_MUL_G14): Define.
18375         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18376         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18377         __RL78_Gxx__.
18378         (ASM_SPEC): Pass -mcpu on to assembler.
18379         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18380         (mulqi3_rl78): Likewise.
18381         (mulhi3_g13): Likewise.
18382         (mulhi3): Generate the G13 or G14 versions of the insn directly.
18383         (mulsi3): Likewise.
18384         (mulhi3_g14): Add clobbers of AX and BC.
18385         (mulsi3_g14): Likewise.
18386         (mulsi3_g13): Likewise.
18387         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18388         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18389         * config/rl78/rl78.opt (mmul): Initialise value to
18390         RL78_MUL_UNINIT.
18391         (mcpu): New option.
18392         (m13, m14, mrl78): New option aliases.
18393         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18394         (MULTILIB_DIRNAMES): Add g13 and g14.
18395         * doc/invoke.texi: Document -mcpu and -mmul options.
18397 2015-04-16  Richard Biener  <rguenther@suse.de>
18399         * tree-ssa-ccp.c (likely_value): See if we have operands that
18400         are marked as never simulate again and return CONSTANT in this
18401         case.
18402         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18403         not have any operands that will be simulated again as
18404         not being simulated again.
18406 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
18408         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18409         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18410         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18411         attribute.
18412         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18413         enabled attribute.
18414         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18415         *float<SWI48:mode><MODEF:mode>2_sse.
18416         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18417         enabled attribute.
18418         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18419         enabled attribute.
18421 2015-04-15  Tom de Vries  <tom@codesourcery.com>
18423         PR other/65487
18424         * function.c (push_dummy_function): New function.
18425         (init_dummy_function_start): Use push_dummy_function.
18426         (pop_dummy_function): New function.  Factored out of ...
18427         (expand_dummy_function_end): ... here.
18428         * function.h (push_dummy_function, pop_dummy_function): Declare.
18429         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18430         pop_dummy_function.
18431         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18433 2015-04-15  Jeff Law  <law@redhat.com>
18435         PR tree-optimization/47679
18436         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18437         need for forward declaration in upcoming changes.
18438         (record_conditions, record_edge_info): Likewise.
18440         PR rtl-optimization/42522
18441         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18442         SIGN_EXTRACT as a whole object rather than simplifying
18443         its operand.
18445 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
18447         PR ipa/65765
18448         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18449         and GIMPLE_PREDICT use break instead of return true. For
18450         GIMPLE_EH_DISPATCH, compare dispatch region.
18452 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
18454         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
18455         details about the implementation.  Make clear preference for
18456         __atomic builtins.  Reduce possibility of future change.
18458 2015-04-15  Nick Clifton  <nickc@redhat.com>
18460         * config/rx/rx.opt (mallow-string-insns): New option.
18461         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18462         builtin if string instructions are denied.
18463         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18464         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18465         appropriate.
18466         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18467         * config/rx/rx.md (movstr): Enable pattern only if string
18468         instructions are allowed.
18469         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18470         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18471         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18472         (MULTILIB_DIRNAMES): Add no-strings.
18473         * doc/invoke.texi: Document -mno-allow-string-insns.
18475 2015-04-15  Alan Modra  <amodra@gmail.com>
18477         PR target/65408
18478         PR target/58744
18479         PR middle-end/36043
18480         * calls.c (load_register_parameters): Don't load past end of
18481         mem unless suitably aligned.
18483 2015-04-15  Nick Clifton  <nickc@redhat.com>
18485         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18486         decrement instruction as being frame related.
18487         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18488         based addresses.
18489         If zero extending a function address enclose the operation in
18490         %code(...).
18491         (rl78_preferred_reload_class): New function.
18492         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18493         * config/rl78/rl78.md: Remove useless constraints in expanders.
18494         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18495         (mulhi3_rl78): Likewise.
18496         (mulhi3_g13): Likewise.
18497         (mulsi3_rl78): Likewise.
18498         (es_addr): Move to before the multiply patterns.
18500 2015-04-15  Alan Modra  <amodra@gmail.com>
18502         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18503         and sequence_stack.  Add seq.
18504         (seq_stack): Delete.
18505         * function.c (prepare_function_start): Don't access x_last_insn.
18506         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18507         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18508         * emit_rtl.c (start_sequence, push_topmost_sequence,
18509         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18510         sequence accessors.
18511         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18512         remove_insn): Likewise.  Simplify.
18513         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18514         and pop_topmost_sequence.
18515         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
18516         debug insns.
18517         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18519 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
18521         PR target/65729
18522         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18523         the assertiion.
18525 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18527         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18528         (LEGACY_INT_REGNO_P): Ditto.
18529         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18530         (ANY_MASK_REG_P): Remove.
18531         (BND_REG_P): Rename from ANY_BND_REG_P.
18532         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18533         legacy integer registers.  Do not handle MMX_REG_P in a special way.
18534         Merge 64byte and 32byte SSE handling.
18536 2015-04-14  Nick Clifton  <nickc@redhat.com>
18538         * expr.c (expand_assignment): Force an address offset computation
18539         into a register before changing its mode.
18540         (expand_expr_real_1): Likewise.
18542 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
18544         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18545         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18546         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18547         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18548         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18549         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18550         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18551         and __aarch64_vget_lane_any.
18553 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
18555         PR rtl-optimization/65761
18556         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18557         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18559 2015-04-14  Richard Biener  <rguenther@suse.de>
18561         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18562         (graphite_can_represent_scev): Use POINTER_TYPE_P.
18564 2015-04-14  Richard Biener  <rguenther@suse.de>
18566         PR tree-optimization/65758
18567         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18568         against -1.
18569         (ccp_lattice_meet): Likewise.
18570         (bit_value_unop): Likewise.
18571         (bit_value_binop): Likewise.
18572         (bit_value_assume_aligned): Likewise.
18574 2015-04-14  Christian Bruel  <christian.bruel@st.com>
18576         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18577         function.
18579 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
18581         PR tree-optimization/63387
18582         * match.pd ((x unord x) | (y unord y) -> (x unord y),
18583         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18585 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18587         * config/i386/predicates.md (any_QIreg_operand): Rename from
18588         q_regs_operand.  Do not process subregs.
18589         (QIreg_operand): Use QI_REGNO_P predicate.
18590         (ext_QIreg_operand): Ditto.
18591         (ext_register_operand): Ditto.
18592         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18593         (AND splitters): Ditto.
18594         (AND with -65536 splitter): Add SWI48 mode for operand 0.
18595         (AND with -256 splitter): Use any_QIreg_operand predicate and
18596         SWI248 mode for operand 0.
18597         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18598         mode for operand 0.
18599         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18601 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
18603         * doc/plugins.texi: Rewrite first introductory paragraph.
18605 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18607         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18608         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18610 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18612         * ipa-profie.c (ipa_profile): Check number of parameters
18613         and possible polymorphic call targets before
18614         devirtualizing.
18616 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
18618         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
18619         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
18621 2015-04-13  Richard Biener  <rguenther@suse.de>
18623         PR tree-optimization/65204
18624         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
18625         takens for bit-CCP.
18627 2015-04-13  Richard Biener  <rguenther@suse.de>
18629         PR target/65660
18630         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
18631         and cond_not_taken_branch_cost to 4 and 2.
18632         (bdver2_cost): Likewise.
18633         (bdver3_cost): Likewise.
18634         (bdver4_cost): Likewise.
18636 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18638         * hash-table.h (hash_table constructor): Add mem stats.
18639         (alloc_entries): Likewise.
18641 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18643         * ipa-cp.c (ipcp_driver): Relase prev_edge.
18644         * passes.c (execute_one_pass): Only add transform if pass has one.
18646 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
18648         * config/i386/i386.c (ix86_option_override_internal): Don't set
18649         -fprefetch-loop-arrays if optimizing for size.
18651 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18652             Gerald Pfeifer  <gerald@pfeifer.com>
18654         * doc/contrib.texi (Contributors): Add Martin Jambor and
18655         Michael Matz.
18657 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
18659         * BASE-VER: Set to 6.0.0.
18661         PR tree-optimization/65747
18662         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
18663         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
18665 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
18667         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
18668         sentence.  Improve grammar.
18670 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
18672         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
18674 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
18676         PR ipa/65743
18677         * ipa-inline-transform.c (speculation_removed): Remove static var.
18678         (check_speculations): New function.
18679         (clone_inlined_nodes): Do not check spculations.
18680         (inline_call): Call check_speculations.
18681         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
18682         consider non-invariants.
18684 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
18685             Martin Liska  <mliska@suse.cz>
18687         PR ipa/65722
18688         * ipa-icf.c (sem_item::compare_cgraph_references): function and
18689         variable can not match.
18690         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
18691         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
18693 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
18695         PR tree-optimization/65735
18696         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
18697         Remove visited_phis argument, add visited_bbs, avoid recursing into the
18698         same bb rather than just into the same phi node.
18699         (thread_through_normal_block): Adjust caller.
18701 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
18703         * doc/contrib.texi (Contributors): Add Ira Rosen.
18705 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
18707         * gcov.c (find_source): Fix miswording in error message.
18708         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
18709         (ix86_expand_sse_comi_round): Fix typo in error message.
18711 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
18713         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
18715 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
18717         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
18719 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
18721         PR target/65710
18722         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
18723         Print bad_spills_num and insn_pseudos_num.
18725 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18727         PR target/65694
18728         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
18729         when creating +1 values for SImode.
18731 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
18733         PR target/65729
18734         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
18735         assert.
18737 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
18738             Iain Sandoe  <iain@codesourcery.com>
18740         PR target/65351
18741         * configure: Regenerate.
18743 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
18745         PR target/65671
18746         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
18748 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
18750         * doc/contrib.texi (Contributors): Add John Marino.
18752 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
18754         PR tree-optimization/65709
18755         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
18756         TREE_TYPE (TREE_TYPE (t)).
18758 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
18760         PR target/65710
18761         * lra-int.h (lra_bad_spill_regno_start): New.
18762         * lra.c (lra_bad_spill_regno_start): New.
18763         (lra): Set up lra_bad_spill_regno_start.  Set up
18764         lra_constraint_new_regno_start unconditionally.
18765         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
18766         spill preferences.
18768 2015-04-09  Marek Polacek  <polacek@redhat.com>
18769             Jakub Jelinek  <jakub@redhat.com>
18771         PR middle-end/65554
18772         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
18773         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
18774         of STRIP_NOPS.
18776 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
18778         PR rtl-optimization/65693
18779         * combine.c (is_parallel_of_n_reg_sets): Move outside of
18780         #ifndef HAVE_cc0.
18782 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
18784         PR target/65296
18785         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
18786         device specs file if "device-specs%s" didn't resolve to a path.
18788 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
18790         PR target/65676
18791         * config/i386/i386.c (fixup_modeless_constant): New.
18792         (ix86_expand_args_builtin): Fixup modeless constant operand.
18793         (ix86_expand_round_builtin): Ditto.
18794         (ix86_expand_special_args_builtin): Ditto.
18795         (ix86_expand_builtin): Ditto.
18797 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
18799         PR target/65693
18800         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
18801         any pow2 integer in between 2 and 0x80000000U inclusive.
18803 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
18805         PR rtl-optimization/65693
18806         * combine.c (is_parallel_of_n_reg_sets): Change first argument
18807         from an rtx_insn * to an rtx.
18808         (try_combine): Adjust both callers.  Use it once more.
18810 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
18812         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
18813         (chkp_make_static_const_bounds): Search existing
18814         symbol by assembler name.  Use make_decl_one_only.
18815         (chkp_get_zero_bounds_var): Remove node search which
18816         is now performed in chkp_make_static_const_bounds.
18817         (chkp_get_none_bounds_var): Likewise.
18819 2015-04-08  Michael Witten  <mfwitten@gmail.com>
18821         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
18822         to an example.
18824 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18826         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
18828 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
18830         * doc/extend.texi (__sync Builtins): Fix grammar.
18832 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18834         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
18836 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18838         * varasm.c (emit_local): Move definition of align.
18840 2015-04-08  Julian Brown  <julian@codesourcery.com>
18842         * config/nvptx/mkoffload.c (process): Support variable mapping.
18844 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
18846         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
18847         alpha_links **.
18848         (alpha_write_one_linkage): Correct typo.
18850 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
18852         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
18854 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
18856         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
18858 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
18860         * tree-chkp.h (chkp_insert_retbnd_call): New.
18861         * tree-chkp.c (chkp_insert_retbnd_call): New.
18862         * ipa-split.c (insert_bndret_call_after): Remove.
18863         (split_function): Use chkp_insert_retbnd_call.
18864         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
18865         bounds for instrumented functions.
18867 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
18869         PR ipa/65540
18870         * calls.c (initialize_argument_information): When producing tail
18871         call also turn SSA_NAMES passed by references to original PARM_DECLs
18873 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
18875         PR target/65648
18876         * lra-remat.c (do_remat): Process input and non-input insn
18877         registers separately.
18879 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
18881         PR debug/65678
18882         * valtrack.c (debug_lowpart_subreg): New function.
18883         (dead_debug_insert_temp): Use it.
18885         PR middle-end/65680
18886         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
18887         into signed HOST_WIDE_INT the same as negative bit_offset.
18889 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
18891         * ipa-comdats.c (ipa_comdats): Visit all thunks
18892         to set proper comdat group.
18894 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18896         PR target/65489
18897         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
18898         on constants for NEON VSTRUCT modes.
18900 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
18901             Iain Sandoe  <iain@codesourcery.com>
18903         PR target/65351
18904         * configure: Regenerate.
18906 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18908         PR target/65614
18909         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
18910         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
18911         that LFD is used to load double constants instead of LFS.  Add
18912         defaults for all costs structures.  Add comments for missing
18913         initialization fields.
18914         (size32_cost): Likewise.
18915         (size64_cost): Likewise.
18916         (rs64a_cost): Likewise.
18917         (mpccore_cost): Likewise.
18918         (ppc403_cost): Likewise.
18919         (ppc405_cost): Likewise.
18920         (ppc440_cost): Likewise.
18921         (ppc476_cost): Likewise.
18922         (ppc601_cost): Likewise.
18923         (ppc603_cost): Likewise.
18924         (ppc604_cost): Likewise.
18925         (ppc604e_cost): Likewise.
18926         (ppc620_cost): Likewise.
18927         (ppc630_cost): Likewise.
18928         (ppccell_cost): Likewise.
18929         (ppc750_cost): Likewise.
18930         (ppc7450_cost): Likewise.
18931         (ppc8540_cost): Likewise.
18932         (ppce300c2c3_cost): Likewise.
18933         (ppce500mc_cost): Likewise.
18934         (ppce500mc64_cost): Likewise.
18935         (ppce5500_cost): Likewise.
18936         (ppce6500_cost): Likewise.
18937         (titan_cost): Likewise.
18938         (power4_cost): Likewise.
18939         (power6_cost): Likewise.
18940         (power7_cost): Likewise.
18941         (power8_cost): Likewise.
18942         (ppca2_cost): Likewise.
18943         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
18945         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
18946         instead of XXLOR to copy SFmode to clear out dirty bits created
18947         when SFmode denormals are generated.
18948         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
18949         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
18951 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
18953         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
18954         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
18955         * config/aarch64/aarch64-tune.md: Regenerate.
18957 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
18959         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
18960         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
18961         * config/arm/arm-cores.def (exynos-m1): New core.
18962         * config/arm/arm-tune.md: Regenerate.
18963         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
18964         * config/arm/bpabi.h: Likewise.
18966 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
18968         * ipa-cp (set_single_call_flag): Remove too
18969         restrictive assert.
18971 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
18973         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
18974         GOMP_offload_unregister from the destructor.
18976 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
18978         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
18979         flags for instrumentation thunk.
18980         (chkp_produce_thunks): Likewise.
18982 2015-04-05  Martin Liska  <mliska@suse.cz>
18984         PR ipa/65665
18985         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
18986         has computed data structure.
18987         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
18989 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
18991         * invoke.texi (inline-unit-growth): Increase growth to 20%
18992         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
18994 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
18996         PR target/65647
18997         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
18998         value checking.
18999         (lra_rematerialization_iter): New.
19000         * lra.c (lra): Initialize lra_rematerialization_iter.
19001         Stop updating lra_constraint_new_regno_start after switching of
19002         inheritance and rematerialization.
19003         * lra-remat.c (lra_rematerialization_iter): New.
19004         (lra_remat): Add printing pass iteration.  Do rematerialization
19005         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19007 2015-04-04  Richard Biener  <rguenther@suse.de>
19009         PR tree-optimization/64909
19010         PR tree-optimization/65660
19011         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19012         to take a cost vector for scalar iteration cost.
19013         (vect_get_single_scalar_iteration_cost): Likewise.
19014         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19015         Compute the scalar iteration cost into a cost vector.
19016         (vect_get_known_peeling_cost): Use the scalar cost vector to
19017         account for the cost of the peeled iterations.
19018         (vect_estimate_min_profitable_iters): Likewise.
19019         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19020         Likewise.
19022 2015-04-04  Alan Modra  <amodra@gmail.com>
19024         PR target/65576
19025         PR target/65240
19026         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19027         0.0 constant unless TARGET_VSX.
19028         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19029         alternative.
19031 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19033         PR ipa/65654
19034         * ipa-inline-transform.c (inline_call): Skip sanity check to work
19035         around the ICE
19037 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19039         PR ipa/65655
19040         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19041         speculative indirect edges to avoid ordering issue.
19043 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19045         PR ipa/65076
19046         * ipa-inline.c (edge_badness): Add combined size to the denominator.
19048 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
19050         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19051         TYPE_ARTIFICIAL on the .omp_data* types.
19053 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19055         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19056         instrumentation thunks.
19058 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19060         * config/i386/i386.c (ix86_expand_call): Avoid nested
19061         PARALLEL in returned call value.
19063 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19065         * lto-cgraph.c (input_cgraph_1): Always link instrumented
19066         assembler name with original one.
19068 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19070         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19072 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19074         Revert parts of r216820.
19075         * config/i386/i386.md (movqi_internal): Correct type calculation
19076         for alternatives 3 and 5.
19078 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
19080         PR preprocessor/61977
19081         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19082         predefine __vector/__bool/__pixel macros nor context sensitive
19083         macros for CLK_ASM.
19084         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19086 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
19088         * config/pa/pa.c (pa_output_move_double): Directly handle register
19089         indexed memory operand.  Simplify handling of scaled register indexed
19090         memory operands.
19092 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19094         PR driver/65444
19095         * config/i386/linux-common.h (MPX_SPEC): New.
19096         (CHKP_SPEC): Add MPX_SPEC.
19097         * doc/invoke.texi (-fcheck-pointer-boudns): Document
19098         possible issues with '-z bndplt' support in linker.
19100 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19102         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19103         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19104         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19105         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19106         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19108 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
19110         * config/i386/sync.md (UNSPEC_MOVA): Remove.
19111         (atomic_load<mode>): Change operand 0 predicate to
19112         nonimmediate_operand and fix up the destination when needed.
19113         Use UNSPEC_LDA.
19114         (atomic_loaddi_fpu): Use UNSPEC_LDA.
19115         (atomic_store<mode>): Change operand 1 predicate to
19116         nonimmendate_operand and move the source to register when needed.
19117         Use UNSPEC_STA.
19118         (atomic_store<mode>_1): Use UNSPEC_STA.
19119         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19120         Fix moves from memory operand.  Use UNSPEC_STA.
19122 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19124         * expmed.c (strict_volatile_bitfield_p): Check that the access will
19125         not cross a MODESIZE boundary.
19126         (store_bit_field, extract_bit_field): Added assertions in the
19127         strict volatile bitfields code path.
19129 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19131         PR target/65624
19132         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19133         Increase args array size by one to avoid buffer overflow.
19135 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19137         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19138         split_part.
19139         * ipa-inline.c (edge_badness): Add wrapper penalty.
19140         (sum_callers): Move up.
19141         (inline_small_functions): Set single_caller.
19142         * ipa-inline.h (inline_summary): Add single_caller.
19143         * ipa-split.c (split_function): Set split_part.
19144         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19145         * cgraph.h (cgraph_node): Add split_part.
19147 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
19149         PR target/58945
19150         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19151         Do not split operands 0 and operands 2 to halfmode.
19152         (atomic_compare_and_swap<mode>): Update for
19153         atomic_compare_and_swap<dwi>_doubleword changes.
19155 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19157         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19158         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19159         no caching is done.
19161 2015-03-31  Martin Liska  <mliska@suse.cz>
19163         PR ipa/65557
19164         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19165         has already filled up function summary.
19166         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19168 2015-03-31  Richard Biener  <rguenther@suse.de>
19170         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19171         of types.
19173 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19175         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19176         nested functions.
19177         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19178         (s390_asm_output_function_label): Adapt to new signature of
19179         s390_function_num_hotpatch_hw
19180         Optimise the code generating assembler output.
19181         Add comments to assembler file.
19183 2015-03-31  Richard Biener  <rguenther@suse.de>
19185         PR middle-end/65626
19186         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19187         of the noreturn call so it is last and cleanup_control_flow_bb
19188         can do the CFG part.
19190 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
19192         PR target/65531
19193         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19194         same_comdat_group for external symbols.
19195         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19196         infinite same_comdat_group traversal loop.
19198 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
19200         PR plugins/61176
19201         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19202         automatically to $headers.
19204 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
19206         PR ipa/65610
19207         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19208         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19209         function.
19210         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19211         Use it.
19212         * ipa-prop.c (param_type_may_change_p): Likewise.
19213         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19214         (remove_unused_scope_block_p): Add in_ctor_dtor_block
19215         argument.  Before inlining, preserve
19216         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19217         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
19218         recursive calls.
19219         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19221 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19223         PR ipa/65076
19224         * ipa-inline.c (edge_badness): Base denominator on callee's
19225         grwoth squared.
19227 2015-03-27  Martin Jambor  <mjambor@suse.cz>
19229         PR ipa/65478
19230         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19231         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19232         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19233         node_calling_single_call.
19234         * ipa-cp.c (count_callers): New function.
19235         (set_single_call_flag): Likewise.
19236         (initialize_node_lattices): Count callers and set single_flag_call if
19237         necessary.
19238         (incorporate_penalties): New function.
19239         (good_cloning_opportunity_p): Use it, dump new flags.
19240         (propagate_constants_topo): Set node_within_scc flag if appropriate.
19241         * doc/invoke.texi (ipa-cp-recursion-penalty,
19242         ipa-cp-single-call-pentalty): Document.
19244 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19246         PR ipa/65588
19247         * symtab.c (symtab_node::get_partitioning_class): Register vars
19248         are duplicated.
19249         * varpool.c (symbol_table::output_variables) Do not assemble unefined
19250         decls for non-symbols.
19252 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19254         PR target/65248
19255         * output.h (default_binds_local_p_2): New.
19256         * varasm.c (default_binds_local_p_2): Renamed to ...
19257         (default_binds_local_p_3): This.  Don't return true on protected
19258         data symbol if protected data may be external.
19259         (default_binds_local_p): Use default_binds_local_p_3.
19260         (default_binds_local_p_1): Likewise.
19261         (default_binds_local_p_2): New.
19262         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19263         default_binds_local_p_2 if TARGET_MACHO is undefined.
19265 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
19267         PR target/65593
19268         * config/i386/i386.c (legitimize_pic_address): If base
19269         is SYMBOL_REF or LABEL_REF using %rip addressing, force
19270         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19272 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19274         PR target/65531
19275         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19276         comdat groups.
19278 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19280         PR ipa/65600
19281         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19282         of optimized out indirect call.
19283         (redirect_to_unreachable): Always build symbol table node for
19284         BUILT_IN_UNREACHABLE
19286 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
19288         PR target/65407
19289         * ira-costs.c (record_reg_classes): Process all constraint string
19290         containing 0-9.
19292 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
19294         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19295         memory_operand.
19297         PR target/65052
19298         * config/c6x/constraints.md (S3): New constraint.
19299         * config/c6x/c6x.md (real_jump): Use it.
19301 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19303         PR middle-end/65595
19304         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19305         do redirection if the call is not optimized out.
19307 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19309         PR target/65495
19310         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19311         (fchkp-check-incomplete-type): Add LTO.
19312         (fchkp-zero-input-bounds-for-main): Likewise.
19313         (fchkp-first-field-has-own-bounds): Likewise.
19314         (fchkp-narrow-bounds): Likewise.
19315         (fchkp-narrow-to-innermost-array): Likewise.
19316         (fchkp-use-static-bounds): Likewise.
19317         (fchkp-use-static-const-bounds): Likewise.
19318         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19320 2015-03-27  Marek Polacek  <polacek@redhat.com>
19322         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19324 2015-03-27  Marek Polacek  <polacek@redhat.com>
19326         PR sanitizer/65583
19327         * ubsan.c (ubsan_create_edge): New function.
19328         (instrument_bool_enum_load): Call it.
19329         (instrument_nonnull_arg): Likewise.
19330         (instrument_nonnull_return): Likewise.
19331         (instrument_object_size): Likewise.
19333 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19335         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19336         auto_vec.
19338 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19340         PR lto/65536
19341         * lto-streamer.h (class lto_location_cache): New.
19342         (struct data_in): Add location_cache.
19343         (lto_input_location): Update prototype.
19344         (stream_input_location_now): New.
19345         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19346         pointer to location.
19347         (stream_input_location): Update.
19348         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19349         (warn_odr): Apply location cache before warning.
19350         (lto_input_location): Update prototype.
19351         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19352         Use stream_input_location_now.
19353         * lto-streamer-in.c (lto_location_cache::current_cache): New static
19354         variable.
19355         (lto_location_cache::cmp_loc): New function.
19356         (lto_location_cache::apply_location_cache): New function.
19357         (lto_location_cache::accept_location_cache): New function.
19358         (lto_location_cache::revert_location_cache): New function.
19359         (lto_location_cache::input_location): New function.
19360         (lto_input_location): Do location caching.
19361         (stream_input_location_now): New function.
19362         (input_eh_region, input_struct_function_base): Use
19363         stream_input_location_now.
19364         (lto_data_in_create): use new.
19365         (lto_data_in_delete): Use delete.
19366         * tree-streamer-in.c (unpack_ts_block_value_fields,
19367         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19368         lto_input_ts_exp_tree_pointers): Update for cached location api.
19370 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19372         PR ipa/65076
19373         * passes.def: Add pass_nothrow.
19374         * ipa-pure-const.c: (pass_data_nothrow): New.
19375         (pass_nothrow): New.
19376         (pass_nothrow::execute): New.
19377         (make_pass_nothrow): New.
19378         * tree-pass.h (make_pass_nothrow): Declare.
19380 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19382         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19383         edge to change by speculation resolution or redirection.
19384         (edge_set_predicate): Likewise.
19385         (inline_summary_t::duplicate): Likewise.
19386         (remap_edge_summaries): Likewise.
19388 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19390         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19391         New macros.
19392         (can_inline_edge_p): Relax option matching for always inline functions.
19394 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
19396         PR target/65561
19397         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19398         Check operand 4 and operand 0 for equality.
19399         (avx512f_vextract<shuffletype>32x4_1_maskm):
19400         Check operand 6 and operand 0 for equality.
19401         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19402         for equality.
19403         (vec_extract_hi_<mode>_maskm): Ditto.
19405 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19407         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19408         dead calls back to live.
19409         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19410         cross check to ...
19411         (cgraph_node::verify_node): ... here; verify only callee edges,
19412         not caller.
19413         * cif-code.def (CILK_SPAWN): New code.
19415 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19417         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19418         (edge_set_predicate): Use it to mark unreachable edges.
19419         (inline_summary_t::duplicate): Remove unnecesary code.
19420         (remap_edge_summaries): Likewise.
19421         (dump_inline_summary): Report contains_cilk_spawn.
19422         (compute_inline_parameters): Compute contains_cilk_spawn.
19423         (inline_read_section, inline_write_summary): Stream
19424         contains_cilk_spawn.
19425         * ipa-inline.c (can_inline_edge_p): Do not touch
19426         DECL_STRUCT_FUNCTION that may not be available;
19427         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19428         remove check for callee_fun->can_throw_non_call_exceptions and
19429         replace it by optimization attribute check; check for flag_exceptions.
19430         * ipa-inline-transform.c (inline_call): Maintain
19431         DECL_FUNCTION_PERSONALITY
19432         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19434 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19436         PR tree-optimization/65551
19437         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19438         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19440 2015-03-26  Richard Biener  <rguenther@suse.de>
19442         PR middle-end/65555
19443         * tree-cfg.c (verify_gimple_call): Do not require a call to
19444         have no LHS if it wasn't recognized as control altering yet.
19446 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19448         PR tree-optimization/64715
19449         * passes.def: Add another instance of pass_object_sizes before ccp1.
19450         * tree-object-size.c (pass_object_sizes::execute): In
19451         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19452         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19453         __bos result and the computed constant.  Remove redundant
19454         checks, obsoleted by gimple_call_builtin_p test.
19456         * var-tracking.c (variable_tracking_main_1): Don't track
19457         variables for targetm.no_register_allocation targets.
19459 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
19461         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19462         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19464 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19466         PR target/65569
19467         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19468         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
19469         0.0 is correctly setup.
19470         (extenddftf2_internal): Likewise.
19472 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
19474         PR tree-optimization/65177
19475         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19476         (bb_in_bbs): New.
19477         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
19478         edges not adjacent on the path to the original code.
19480 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
19482         PR bootstrap/65537
19483         * doc/install.texi (Building a native compiler): Document new
19484         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
19485         configuration assumes that the host supports the linker plugin.
19487 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19489         PR target/65508
19490         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19491         chain for generated call.
19493 2015-03-25  Richard Biener  <rguenther@suse.de>
19495         * passes.c (pass_manager::execute_early_local_passes): Guard
19496         execution of pass_chkp_instrumentation_passes with
19497         flag_check_pointer_bounds.
19498         (pass_chkp_instrumentation_passes::gate): Likewise.
19500 2015-03-25  Martin Liska  <mliska@suse.cz>
19502         PR tree-optimization/65538
19503         * symbol-summary.h (function_summary::~function_summary):
19504         Relese memory for allocated summaries.
19505         (function_summary::release): New function.
19507 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
19509         PR lto/65515
19510         * lto-streamer-out.c (DFS::worklist): New struct.
19511         (DFS::worklist_vec): New data member.
19512         (DFS::next_dfs_num): Remove.
19513         (DFS::DFS): Rewritten using worklist instead of recursion,
19514         using most of code from DFS::DFS_write_tree.
19515         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19516         pass it to DFS_write_tree calls.
19517         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19518         quick initial checks push it into worklist_vec and return.
19520 2015-03-25  Richard Biener  <rguenther@suse.de>
19522         PR middle-end/65519
19523         * genmatch.c (expr::gen_transform): Re-write to avoid
19524         using gimple_build.
19526 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19528         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19530 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19532         * config/arm/arm.opt (print_tune_info): New option.
19533         * config/arm/arm.c (arm_print_tune_info): New function.
19534         (arm_file_start): Call arm_print_tune_info.
19535         * config/arm/arm-protos.h (struct tune_params): Add comment.
19536         * doc/invoke.texi (@item -mprint-tune-info): New item.
19537         (-mtune): mention it in ARM Option Summary.
19539 2015-03-25  DJ Delorie  <dj@redhat.com>
19541         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19542         correct clause.
19544 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
19545             Martin Liska  <mliska@suse.cz>
19547         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19548         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19549         (sem_item::add_type): New function.
19550         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19551         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19552         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19553         (sem_function::equals_wpa): Fix typo.
19554         * ipa-icf.h (sem_item::add_type): New function.
19555         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19556         order.
19558 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
19560         PR tree-optimization/65533
19561         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19562         with swapped operands, call vect_free_slp_tree on
19563         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19564         vector.
19566 2015-03-24  Richard Biener  <rguenther@suse.de>
19568         PR middle-end/65517
19569         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19570         for fixup if necessary.
19572 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
19574         * doc/extend.texi (Function Attributes): Add @cindex entries
19575         for all attributes and regularize their format.  Delete text
19576         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
19577         information about "eightbit_data", "tiny_data", and "model"
19578         variable attributes to the Variable Attributes section.  Fix
19579         some obvious typos and copy-editing issues.
19580         (Variable Attributes, Type Attributes): Likewise add/fix
19581         @cindex entries for all attributes.
19583 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19585         PR target/65523
19586         * tree-chkp.c (chkp_build_returned_bound): Ignore
19587         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19589 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
19591         PR target/65505
19592         * config/sh/predicates.md (simple_mem_operand,
19593         displacement_mem_operand): Add test for reg.
19594         (short_displacement_mem_operand): Test for displacement_mem_operand
19595         before invoking sh_disp_addr_displacement.
19596         * config/sh/constraints.md (Sdd, Sra): Simplify.
19597         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19598         Remove redundant displacement_mem_operand tests.
19600 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
19602         PR target/65296
19603         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19604         the same -mmcu=MCU more than once.
19606 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19608         PR bootstrap/65522
19609         * ipa-devirt.c: Remove duplicate demangle.h include.
19611         PR target/65504
19612         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
19613         on the pseudo.
19614         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
19615         REG_POINTER on *destptr after adjusting it for prologue size.
19617         PR ipa/65521
19618         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
19619         ultimate_alias_target ()->order ints instead of
19620         ultimate_alias_target () pointers.
19622 2015-03-23  Richard Biener  <rguenther@suse.de>
19624         PR tree-optimization/65518
19625         * tree-vect-stmts.c (vectorizable_load): Reject single-element
19626         interleaving cases we generate absymal code for.
19628 2015-03-23  Richard Biener  <rguenther@suse.de>
19630         PR tree-optimization/65494
19631         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
19632         matches here.
19633         (vect_analyze_slp_instance): But do that here, always and once.
19635 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19637         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
19638         adding T or multiplying by T+1 and subracting T.
19640 2015-03-22  Jeff Law  <law@redhat.com>
19642         PR rtl-optimization/64317
19643         * Makefile.in (OBJS): Add gcse-common.c
19644         * gcse.c: Include gcse-common.h
19645         (struct modify_pair_s): Move structure definition to gcse-common.h
19646         (compute_transp): Move function to gcse-common.c.
19647         (canon_list_insert): Similarly.
19648         (record_last_mem_set_info): Break out some code and put it into
19649         gcse-common.c.  Call into the new common code.
19650         (compute_local_properties): Pass additional arguments to compute_transp.
19651         * postreload-gcse.c: Include gcse-common.h and df.h
19652         (modify_mem_list_set, blocks_with_calls): New variables.
19653         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
19654         (get_bb_avail_insn): Pass in the expression index too.
19655         (alloc_mem): Allocate memory for the new bitmaps and lists.
19656         (free_mem): Free memory for the new bitmaps and lists.
19657         (insert_expr_in_table): Record a bitmap index for each entry we
19658         add to the table.
19659         (record_last_mem_set_info): Call into common code in gcse-common.c.
19660         (get_bb_avail_insn): If no available insn was found in the requested
19661         BB.  If BB has a single predecessor, see if the expression is
19662         transparent in BB and available in that single predecessor.
19663         (compute_expr_transp): New wrapper for compute_transp.
19664         (eliminate_partially_redundant_load): Pass expression's bitmap_index
19665         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
19666         (gcse_after_reload_main): If there are elements in the hash table,
19667         then compute transparency for all the elements in the hash table.
19668         * gcse-common.h: New file.
19669         * gcse-common.c: New file.
19671 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
19673         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
19674         as an adjective.
19675         (System Headers): Likewise.
19676         (Ifdef): Likewise.
19677         (Traditional macros): Likewise.
19678         (Invocation): Likewise.
19679         (Option Index): Likewise.
19680         * doc/cppopts.texi (-M): Likewise.
19681         (-finput-charset): Likewise.
19682         (--help): Likewise.
19683         * doc.invoke.texi (AVR Options): Likewise.
19684         (V850 Options): Likewise.
19686 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
19688         PR ipa/65475
19689         * ipa-devirt.c: Include demangle.h
19690         (odr_type_d): Add field rtti_broken.
19691         (odr_subtypes_equivalent_p): Do not require name to match.
19692         (compare_virtual_tables): Fix typo; if type already has ODR violation,
19693         bypass the tests; be ready for function referneces in vtables that are
19694         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
19695         (warn_odr): Give up for nameless types.
19696         (warn_types_mismatch): Report mismatch in mangled names;
19697         report mismatch in anonymous namespaces; look into component types to
19698         give useful error; report when mismatch is dragged in from other ODR
19699         type.
19700         (odr_types_equivalent_p): Match types for being polymorphic; avoid
19701         duplicated diagnostics.
19702         (add_type_duplicate): Reorder checks so more informative ones come
19703         first; fix typo; do not output "the extra base is defined here" when
19704         we did not warn.
19705         (BINFO_N_BASE_BINFOS): Relax sanity check.
19707 2015-03-22  Martin Liska  <mliska@suse.cz>
19708             Jakub Jelinek  <jakub@redhat.com>
19710         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
19711         masks that can potentially include a builtin.
19712         (ix86_add_new_builtins): Introduce fast filter for isa values
19713         that cannot trigger builtin inclusion.
19715 2015-03-22  Martin Liska  <mliska@suse.cz>
19717         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
19718         (sem_item::update_hash_by_local_refs): Likewise.
19719         (sem_variable::get_hash): Empty line is fixed.
19720         (sem_item_optimizer::execute): Include adding of hash references.
19721         (sem_item_optimizer::update_hash_by_addr_refs): New function.
19722         (sem_item_optimizer::build_hash_based_classes): Use local hash.
19723         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
19724         (sem_item::update_hash_by_local_refs): Likewise.
19726 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
19728         PR ipa/65502
19729         * ipa-comdats.c (enqueue_references): Walk through thunks.
19730         (ipa_comdats): Likewise.
19731         (set_comdat_group_1): New function.
19733 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
19735         PR ipa/65475
19736         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
19737         non-polymorphic
19739 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
19740             Gerald Pfeifer  <gerald@pfeifer.com>
19742         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
19744 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
19745             Sandra Loosemore  <sandra@codesourcery.com>
19747         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
19748         function parameter declaration.
19749         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
19750         Update arguments to nios2_adjust_call_address().
19751         (sibcall_internal): Rename from *sibcall.
19752         (sibcall_value_internal): Rename from *sibcall_value.
19753         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
19754         (nios2_large_got_address): Add target temp reg parameter.
19755         (nios2_got_address): Adjust call to nios2_large_got_address, add
19756         force_reg around it.
19757         (nios2_load_pic_address): Add target temp reg parameter, replace call
19758         to nios2_got_address with corresponding code.
19759         (nios2_legitimize_constant_address): Update call to
19760         nios2_load_pic_address.
19761         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
19762         to use temp reg for PIC loading purposes.
19763         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
19764         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19765         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
19767 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
19769         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
19770         usage of "the @option{...}".
19771         (-Wopenmp-simd): Likewise.
19772         (-fsanitize-recover): Likewise.
19773         (-fsanitize-undefined-trap-on-error): Likewise.
19774         (-flto): Likewise.
19775         (tracer-dynamic-coverage-feedback): Likewise.
19776         (reorder-block-duplicate-feedback): Likewise.
19777         (loop-unroll-jam-size): Likewise.
19778         (-B): Likewise.
19779         (-I-): Likewise.
19780         (-mabs=legacy): Likewise.
19781         (-mupper-regs-df): Likewise.
19782         (-mupper-regs-sf): Likewise.
19783         (-mpointers-to-nested-functions): Likewise.
19785 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
19787         * doc/extend.texi (Cilk Plus Builtins): Add markup.
19789 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
19791         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
19792         additional index entries and cross-references.
19793         (-fchkp-check-incomplete-type): Likewise.
19794         (-fchkp-first-field-has-own-bounds): Likewise.
19795         (-fchkp-narrow-to-innermost-array): Likewise.
19796         (-fchkp-use-fast-string-functions): Likewise.
19797         (-fchkp-use-nochk-string-functions): Likewise.
19798         (-fchkp-use-static-const-bounds): Likewise.
19799         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19800         (-fchkp-instrument-marked-only): Likewise.
19801         (-fchkp-use-wrappers): Likewise.
19802         (-static-libmpx): Likewise.
19803         (-static-libmpxwrappers): Likewise.
19804         * doc/extend.texi (bnd_legacy): Likewise.
19805         (bnd_instrument): Likewise.
19806         (bnd_variable_size): Likewise.
19807         (Pointer Bounds Checker builtins): Likewise.
19809 2015-03-21  Tom de Vries  <tom@codesourcery.com>
19811         PR tree-optimization/65458
19812         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
19813         * cgraph.h (cgraph_node): Add parallelized_function field.
19814         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
19815         (input_overwrite_node): Read parallelized_function field.
19816         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
19817         parallelized_function on cgraph_node for child_fn.
19818         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
19819         Remove include of gt-tree-parloops.h.
19820         (parallelized_functions): Remove static variable.
19821         (parallelized_function_p): Rewrite using parallelized_function field of
19822         cgraph_node.
19823         (create_loop_fn): Remove adding to parallelized_functions.
19824         * Makefile.in (GTFILES): Remove tree-parloops.c
19826 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
19828         PR rtl-optimization/64366
19829         * lra.c (lra_update_insn_regno_info): Consider regs in
19830         CALL_INSN_FUNCTION_USAGE memory.
19832 2015-03-20  Richard Biener  <rguenther@suse.de>
19834         PR middle-end/64715
19835         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
19836         for type comparison and gcc_checking_assert.
19837         (chrec_fold_plus_poly_poly): Likewise.
19838         (chrec_fold_multiply_poly_poly): Likewise.
19839         (chrec_convert_1): Likewise.
19840         * gimplify.c (gimplify_expr): Remove premature folding of
19841         &X + CST to &MEM[&X, CST].
19843 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
19845         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
19846         already is final.
19847         (ipa_inline): Recompute inline_failed codes.
19848         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
19849         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
19850         CIF_FINAL_ERROR.
19852 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
19854         PR rtl-optimization/60851
19855         * recog.c (constrain_operands): Accept a pseudo register before reload
19856         for LRA enabled targets.
19858 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19860         PR target/65240
19861         * config/rs6000/predicates.md (easy_fp_constant): Remove special
19862         -ffast-math handling that kept non-0 constants live in the RTL
19863         until reload.  Remove logic testing the number of instructions it
19864         took to create a constant in a GPR that was never used, due to a
19865         test for soft-float earlier.
19866         (memory_fp_constant): Delete, no longer used.
19868         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
19869         alternatives for loading non-0 constants into GPRs for hard
19870         floating point that is no longer needed due to changes in
19871         easy_fp_constant.  Add support for loading 0.0 into GPRs.
19872         (mov<mode>_hardfloat32): Likewise.
19873         (mov<mode>_hardfloat64): Likewise.
19874         (mov<mode>_64bit_dm): Likewise.
19875         (movtd_64bit_nodm): Likewise.
19876         (pre-reload move FP constant define_split): Delete define_split,
19877         since it is no longer used.
19878         (extenddftf2_internal): Remove GHF constraints that are not valid
19879         for extenddftf2.
19881 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
19883         PR rtl-optimization/63491
19884         * lra-constraints.c (check_and_process_move): Use src instead of
19885         sreg.  Remove some dead code.
19887 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
19889         PR ipa/65380
19890         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
19891         (sem_variable::merge): Likewise.
19893 2015-03-19  Martin Liska  <mliska@suse.cz>
19895         PR ipa/65465
19896         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
19897         all fields of cgraph_thunk_info.
19899 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
19901         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
19902         clone instrumented thunks.
19904 2015-03-19  Richard Biener  <rguenther@suse.de>
19906         Revert
19907         2015-03-10  Richard Biener  <rguenther@suse.de>
19909         PR middle-end/63155
19910         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
19911         * tree-ssa-coalesce.c: Include timevar.h.
19912         (attempt_coalesce): Handle graph being NULL.
19913         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
19914         Split out abnormal coalescing to ...
19915         (perform_abnormal_coalescing): ... this function.
19916         (coalesce_ssa_name): Perform abnormal coalescing without computing
19917         live/conflict.
19918         (verify_ssa_coalescing_worker): New function.
19919         (verify_ssa_coalescing): Likewise.
19921 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19922             Jakub Jelinek  <jakub@redhat.com>
19924         PR sanitizer/65400
19925         * tsan.c (instrument_gimple): Clear tail call flag on
19926         calls.
19928 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
19930         PR sanitizer/65400
19931         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
19932         call in the return bb.
19933         (find_split_points): Add RETURN_BB argument, don't call
19934         find_return_bb.
19935         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
19936         if true append TSAN_FUNC_EXIT internal call after the call to
19937         the split off function.
19938         (execute_split_functions): Call find_return_bb here.
19939         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
19940         Adjust find_split_points and split_function calls.
19942 2015-03-18  DJ Delorie  <dj@redhat.com>
19944         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
19945         (iorqi3_virt): Likewise.
19947 2015-03-18  Tom de Vries  <tom@codesourcery.com>
19949         * tree-parloops.c (parallelize_loops): Make static.
19950         * tree-parloops.h (parallelize_loops): Remove extern declaration.
19952 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
19954         PR middle-end/64491
19955         Revert:
19956         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
19958         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
19959         condition would be removed due to undefined behaviour.
19961 2015-03-18  Martin Liska  <mliska@suse.cz>
19963         PR ipa/65432
19964         * cgraph.c (cgraph_node::get_create): Remove unnecessary
19965         xstrdup_for_dump wrapper.
19966         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
19967         sem_item::name.
19968         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
19969         with xstrdup_for_dump.
19970         (sem_variable::equals): Likewise.
19971         (sem_item_optimizer::read_section): Use symtab_node::name instead of
19972         sem_item::name.
19973         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
19974         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
19975         symtab_node::asm_name with xstrdup_for_dump.
19976         (congruence_class::dump): Use symtab_node::name instead of
19977         sem_item::name.
19978         * ipa-icf.h (symtab_node::name): Remove.
19979         (symtab_node::asm_name): Likewise.
19981 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
19983         PR tree-optimization/65450
19984         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
19985         function.
19986         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
19987         it instead of duplicate_ssa_name_ptr_info.
19989         PR target/65222
19990         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
19992 2015-03-18  Richard Biener  <rguenther@suse.de>
19994         * tree-data-ref.h (struct access_matrix): Remove.
19995         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
19996         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
19997         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
19998         (am_vector_index_for_loop): Likewise.
19999         (struct data_reference): Remove access_matrix member.
20000         (DR_ACCESS_MATRIX): Remove.
20001         (lambda_vector_new): Add comment.
20002         (lambda_matrix_new): Use XOBNEWVEC.
20004 2015-03-18  Richard Biener  <rguenther@suse.de>
20006         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20007         (pass_ch::execute): Cleanup the CFG only if we did sth.
20008         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20010 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20012         * expmed.c (synth_mult): Use std::swap instead of manually
20013         swapping algorithms.
20015 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20017         PR target/65078
20018         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20020 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
20022         PR target/65296
20023         * config/avr/avr.opt (-nodevicelib): New option.
20024         * doc/invoke.texi (AVR Options): Document it.
20025         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20026         libgcc.a, libc.a, libm.a.
20027         * config/avr/specs.h: Same.
20028         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20029         which don't (directly) depend on the device.  Print more help.
20030         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20031         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20032         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20033         case of an error.
20034         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20035         for specs file name.
20036         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20037         * config/avr/avr-mcus.def: Adjust initializers and comments.
20039 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
20041         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20042         DECL_ONE_ONLY to check if decl is one only.
20043         * ipa-split.c (consider_split): Limit splitt of one only functions.
20045 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20047         PR tree-optimization/65427
20048         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20049         functions.
20050         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20052 2015-03-16  Marek Polacek  <polacek@redhat.com>
20054         * cgraph.h (add_new_static_var): Remove declaration.
20055         * varpool.c (add_new_static_var): Remove function.
20057 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20059         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20060         instead of vec<tree> * with vec_alloc and release for args.
20061         Adjust all users.
20063         PR middle-end/65431
20064         * omp-low.c (delete_omp_context): Only splay_tree_delete
20065         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20066         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
20068 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20070         PR sanitizer/64820
20071         * cfgexpand.c (align_base): New function.
20072         (alloc_stack_frame_space): Call it.
20073         (expand_stack_vars): Align prev_frame to be sure
20074         data->asan_vec elements aligned properly.
20076 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
20078         PR middle-end/65409
20079         * expr.c (store_field): Do not do a direct block copy if the source is
20080         a PARALLEL with BLKmode.
20082 2015-03-16  Tom de Vries  <tom@codesourcery.com>
20084         PR middle-end/65414
20085         Revert:
20086         2015-03-12  Tom de Vries  <tom@codesourcery.com>
20088         PR rtl-optimization/64895
20089         * lra-lives.c (check_pseudos_live_through_calls): Use
20090         actual_call_used_reg_set instead of call_used_reg_set, if available.
20092 2015-03-16  Alan Modra  <amodra@gmail.com>
20094         PR target/63150
20095         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20096         Modify Z->r bswapdi splitter to use dest in place of scratch.
20097         In r->Z and Z->r bswapdi splitter rename word_high, word_low
20098         to word1, word2 and rearrange logic to suit.
20099         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20100         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
20101         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20102         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
20103         early clobber.
20105 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
20107         PR tree-optimization/65369
20108         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20109         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20110         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20112         PR tree-optimization/65418
20113         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20114         are casts in the first PLUS_EXPR operand, ensure tbias and
20115         *totallowp are in the inner type.
20117         PR rtl-optimization/65401
20118         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20119         argument.  If true, adjust_address_nv of x with big-endian
20120         correction for the mode widening to GET_MODE (y).
20121         (make_field_assignment): Don't do MEM mode widening here.
20122         Use MEM_P instead of GET_CODE == MEM.
20124 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
20126         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20127         the external decls.
20129 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20131         PR target/64600
20132         * config/arm/arm.c (arm_gen_constant, AND case): Use
20133         ARM_SIGN_EXTEND when constructing AND mask.
20135 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20137         * graph.c (print_graph_cfg): Make function names visible and append
20138         parenthesis to it.  Also make groups of basic blocks belonging to the
20139         same function visible.
20141 2015-03-12  Richard Biener  <rguenther@suse.de>
20143         PR middle-end/44563
20144         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20145         to avoid quadratic behavior with inline expansion splitting blocks.
20146         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20147         with the successor if the predecessor will be merged with it.
20148         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20149         entry block with its successor.
20151 2015-03-13  Richard Biener  <rguenther@suse.de>
20153         PR middle-end/44563
20154         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20155         (cleanup_tree_cfg_1): Do not call it.
20156         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20157         (fixup_noreturn_call): Mark the stmt as control altering.
20158         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20159         here.
20160         (pass_data_fixup_cfg): Produce a dump file.
20161         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20162         (need_noreturn_fixup): New global.
20163         (pass_dominator::execute): Fixup queued noreturn calls.
20164         (optimize_stmt): Queue calls that became noreturn for fixup.
20165         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20166         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20167         (el_to_fixup): New global.
20168         (eliminate_dom_walker::before_dom_childre): Queue calls that
20169         became noreturn for fixup.
20170         (eliminate): Fixup queued noreturn calls.
20171         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20172         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20173         (substitute_and_fold_dom_walker::before_dom_children): Queue
20174         alls that became noreturn for fixup.
20175         (substitute_and_fold): Fixup queued noreturn calls.
20177 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
20179         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20180         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20181         are building; for methods check ODR type of class they belong to if
20182         they may lead to a polymorphic call.
20183         (sem_function::compare_polymorphic_p): Be bit smarter about testing
20184         when function may lead to a polymorphic call.
20185         (sem_function::compare_type_list): Remove.
20186         (sem_variable::equals): Update use of compatible_types_p.
20187         (sem_variable::parse_tree_refs): Remove.
20188         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20189         cdtor.
20190         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20191         matching here.
20192         (func_checker::compatible_polymorphic_types_p): Break out from ...
20193         (unc_checker::compatible_types_p): ... here.
20194         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20195         Declare.
20196         (unc_checker::compatible_types_p): Update.
20197         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20198         Remove.
20200 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20202         PR rtl-optimization/65235
20203         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20204         When first element of vec_concat is const_int, calculate its size
20205         using second element.
20207 2015-03-12  Richard Biener  <rguenther@suse.de>
20209         PR middle-end/65270
20210         * fold-const.c (operand_equal_p): Fix ordering of resetting
20211         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20213 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20215         * config/s390/s390.c (s390_reorg): Move code to output nops after label
20216         to s390_reorg ().
20217         (s390_asm_output_function_label): Likewise.
20218         * config/s390/s390.c (s390_asm_output_function_label):
20219         Fix function label alignment with -mhtopatch.
20220         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20221         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20222         ("nop_2_byte"): New define_insn.
20223         ("nop_4_byte"): Likewise.
20224         ("nop_6_byte"): Likewise.
20225         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20226         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20228 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20230         PR target/65103
20231         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20232         register.
20234 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20236         PR target/65044
20237         * toplev.c (process_options): Restrict Pointer Bounds Checker
20238         usage with Address Sanitizer.
20240 2015-03-12  Richard Biener  <rguenther@suse.de>
20242         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20243         to split on.
20244         * omp-low.c (expand_omp_taskreg): Split block before removing
20245         the stmt.
20246         (expand_omp_target): Likewise.
20247         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20248         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20249         stmt to split_block.
20251 2015-03-12  Tom de Vries  <tom@codesourcery.com>
20253         PR rtl-optimization/64895
20254         * lra-lives.c (check_pseudos_live_through_calls): Use
20255         actual_call_used_reg_set instead of call_used_reg_set, if available.
20257 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20259         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20260         (cgraph_node::remove): Likewise.
20261         (cgraph_node::get_untransformed_body): Likewise.
20262         * varpool.c (varpool_node::remove): Likewise.
20263         (varpool_node::get_constructor): Add sanity check.
20265 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
20267         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20268         old GCC versions.
20269         (-fabi-compat-version): Likewise.
20270         (-ffriend-injection): Likewise.
20271         (-Wdeclaration-after-statement): Likewise.
20272         (-fomit-frame-pointer): Likewise.
20273         (-ftree-coalesce-inlined-vars): Likewise.
20274         (-fvisibility=): Likewise.
20275         * doc/extend.texi (Typeof): Likewise.
20276         (Zero Length): Likewise.
20277         (Escaped Newlines): Likewise.
20278         (Compound Literals): Likewise.
20279         (Function Attributes): Likewise.
20280         (Label Attributes): Likewise.
20281         (Type Attributes): Likewise.
20282         (Function Names): Likewise.
20283         (Other Builtins): Likewise.
20284         (Function Specific Option Pragmas): Likewise.
20285         (C++ Interface): Likewise.
20287 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
20289         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20291 2015-03-11  Marek Polacek  <polacek@redhat.com>
20293         PR tree-optimization/65388
20294         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20296 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20298         PR target/65296
20299         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20300         * configure: Regenerate.
20301         * config.in: Regenerate.
20302         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20303         [-mn-flash]: Document it.
20304         [__AVR_ARCH__]: Document avrtiny.
20306         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20307         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20308         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20310 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20312         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20314 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20316         PR target/65242
20317         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20318         allow reloads of PLUS in floating point/VSX registers.
20320 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
20322         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20323         crypto_sha256_fast.
20324         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20326 2015-03-11  Richard Biener  <rguenther@suse.de>
20328         PR tree-optimization/65310
20329         * tree-sra.c (build_ref_for_offset): Also preserve larger
20330         alignment.
20332 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
20334         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20336 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20338         PR target/65368
20339         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20340         new define_expand.
20341         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20343 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20345         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20346         (sem_function::equals_wpa): ... here.
20348 2015-03-10  Marek Polacek  <polacek@redhat.com>
20349             Jakub Jelinek  <jakub@redhat.com>
20351         PR sanitizer/65367
20352         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20353         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
20354         separately.
20356 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20358         PR target/65286
20359         * config/rs6000/t-linux: For powerpc64* target set
20360         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20362 2015-03-10  Richard Biener  <rguenther@suse.de>
20364         PR middle-end/44563
20365         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20366         for redirect_all_calls.
20368 2015-03-10  Marek Polacek  <polacek@redhat.com>
20370         * gdbinit.in (pcfun): Define and document.
20372 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
20374         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20375         of libgomp-plugin.h.
20376         (find_target_compiler): Support a case when the path to gcc is
20377         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20378         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20379         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20380         libgomp-plugin.h.
20381         (main): Use GCC_INSTALL_NAME as target_driver_name.
20382         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20383         define.
20384         (mkoffload.o): Remove obsolete include path and defines.
20385         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20387 2015-03-10  Richard Biener  <rguenther@suse.de>
20389         PR middle-end/63155
20390         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20391         * tree-ssa-coalesce.c: Include timevar.h.
20392         (attempt_coalesce): Handle graph being NULL.
20393         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20394         Split out abnormal coalescing to ...
20395         (perform_abnormal_coalescing): ... this function.
20396         (coalesce_ssa_name): Perform abnormal coalescing without computing
20397         live/conflict.
20398         (verify_ssa_coalescing_worker): New function.
20399         (verify_ssa_coalescing): Likewise.
20401 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20403         PR target/65296
20404         * config.gcc (extra_options) [avr]: Remove.
20405         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20406         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20407         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20409         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20410         (-mmcu=): Add Var and MissingArgError properties.
20411         (-march=): Remove.
20412         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20413         * config/avr/t-multilib: Regenerate.
20414         * config/avr/specs.h: New file.
20415         * config/avr/driver-avr.c: New file.
20416         * config/avr/genopt.sh: Remove file.
20417         * config/avr/avr-tables.opt: Remove file.
20418         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20419         * config/avr/avr-c.c: Same.
20420         * avr-arch.h: Same.
20421         (avr_current_device): Remove proto.
20422         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20423         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20424         (EXTRA_SPEC_FUNCTIONS): Define.
20425         (avr_devicespecs_file): New specs function proto.
20426         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20427         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20428         (avr_current_device): Remove definition and usage.
20429         (avr_set_core_architecture): New static function.
20430         (avr_option_override): Use it.
20431         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20432         (mcu_name): New static array.
20433         (comparator, avr_archs_str, avr_mcus_str): New static functions.
20434         (avr_inform_devices, avr_inform_core_architectures): New functions.
20435         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20436         (avrlibc.h) [WITH_AVRLIBC]: Include.
20437         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20438         (print_mcu): Rewrite from scratch.
20439         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20440         Forward to avr-specific specs defined in device-specs file.
20441         * config/avr/t-avr (driver-avr.o): New rule.
20442         (avr-devices.o): Depend on avr-arch.h.
20443         (avr-mcus): No more depend on avr-tables.opt.
20444         (avr-tables.opt): Remove rule.
20445         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20447 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20449         * c-family/c.opt (fchkp-use-wrappers): New.
20450         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20451         (chkp_wrap_function): New.
20452         (chkp_build_instrumented_fndecl): Support wrapped
20453         functions.
20454         * doc/invoke.texi (-fcheck-pointer-bounds): New.
20455         (-fchkp-check-incomplete-type): New.
20456         (-fchkp-first-field-has-own-bounds): New.
20457         (-fchkp-narrow-bounds): New.
20458         (-fchkp-narrow-to-innermost-array): New.
20459         (-fchkp-optimize): New.
20460         (-fchkp-use-fast-string-functions): New.
20461         (-fchkp-use-nochk-string-functions): New.
20462         (-fchkp-use-static-bounds): New.
20463         (-fchkp-use-static-const-bounds): New.
20464         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20465         (-fchkp-check-read): New.
20466         (-fchkp-check-write): New.
20467         (-fchkp-store-bounds): New.
20468         (-fchkp-instrument-calls): New.
20469         (-fchkp-instrument-marked-only): New.
20470         (-fchkp-use-wrappers): New.
20471         (-static-libmpx): New.
20472         (-static-libmpxwrappers): New.
20474 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20476         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20477         (CHKP_SPEC): Add wrappers library.
20478         * c-family/c.opt (static-libmpxwrappers): New.
20480 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20482         * config/i386/linux-common.h (LIBMPX_LIBS): New.
20483         (LIBMPX_SPEC): New.
20484         (CHKP_SPEC): New.
20485         * gcc.c (CHKP_SPEC): New.
20486         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20487         * c-family/c.opt (static-libmpx): New.
20489 2015-03-10  Richard Biener  <rguenther@suse.de>
20491         PR middle-end/44563
20492         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20493         for compare_type.
20494         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20495         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20496         (cgraph_add_edge_to_call_site_hash): Likewise.
20497         (cgraph_node::get_edge): Likewise.
20498         (cgraph_edge::set_call_stmt): Likewise.
20499         (cgraph_edge::remove_caller): Likewise.
20501 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
20503         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20504         (callee_saved_gpr_regs_size): ... this.
20505         (callee_saved_regs_first_regno): Rename to ...
20506         (callee_saved_first_gpr_regno): ... this.
20507         (callee_saved_regs_last_regno) Rename to ...
20508         (callee_saved_last_gpr_regno): ... this.
20509         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20510         variables.
20511         (nds32_initial_elimination_offset): Likewise.
20512         (nds32_expand_prologue): Likewise.
20513         (nds32_expand_epilogue): Likewise.
20514         (nds32_expand_prologue_v3push): Likewise.
20515         (nds32_expand_epilogue_v3pop): Likewise.
20516         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20517         Adjust renamed variables.
20518         (nds32_output_stack_pop): Likewise.
20520 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20522         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20523         code in comment.
20525 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20527         PR rtl-optimization/65321
20528         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20529         than shift mode.
20530         * var-tracking.c (use_narrower_mode): Likewise.
20532 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20534         PR tree-optimization/65355
20535         * varasm.c (notice_global_symbol): Do not produce RTL.
20536         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20537         anchor.
20538         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20539         check for section anchors.
20541 2015-03-10  Alan Modra  <amodra@gmail.com>
20543         PR target/65286
20544         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20545         to be single-arch by default.  Set cpu_is_64bit for powerpc64
20546         given --with-cpu=native.
20547         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20548         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20549         and powerpc64le.
20550         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20551         rs6000_isa_flags rather than TARGET_64BIT.
20553 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
20554             Kaz Kojima  <kkojima@gcc.gnu.org>
20556         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20558 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
20560         PR lto/65361
20561         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20562         on a TREE_BINFO, instead use BINFO_TYPE.
20564 2015-03-09  Richard Biener  <rguenther@suse.de>
20566         PR middle-end/65270
20567         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20568         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20569         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
20570         of that.  When comparing dereferences compare alignment.
20571         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20573 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20575         * ipa-inline-analysis.c (check_callers): Check
20576         node->can_remove_if_no_direct_calls_and_refs_p.
20577         (growth_likely_positive): Reorganize to call
20578         can_remove_if_no_direct_calls_p later.
20579         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20580         will_be_removed_from_program_if_no_direct_calls_p): Add
20581         will_inline parameter.
20582         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20583         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20584         Handle inliner case correctly.
20586 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20588         PR tree-optimization/63743
20589         * cfgexpand.c (reorder_operands): Also reorder if only second operand
20590         had its definition forwarded by TER.
20592 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20594         PR lto/65316
20595         * ipa-utils.h (types_odr_comparable): Add strict argument.
20596         * ipa-devirt.c: Fix whitespace;
20597         (odr_hasher): Remove.
20598         (odr_name_hasher, odr_vtable_hasher): New hashers.
20599         (can_be_name_hashed_p): New predicate.
20600         (hash_type_name): remove.
20601         (hash_odr_name): New.
20602         (odr_name_hasher::hash): new.
20603         (can_be_vtable_hashed_p): New.
20604         (hash_odr_vtable): New.
20605         (odr_vtable_hasher::hash): New.
20606         (types_same_for_odr): Add strict parameter.
20607         (types_odr_comparable): Likewise.
20608         (odr_name_hasher::equal): New.
20609         (odr_vtable_hasher::equal): New.
20610         (odr_name_hasher::remove): New.
20611         (odr_hash_type): Change to hash_table<odr_name_hasher>.
20612         (odr_vtable_hash_type): New.
20613         (odr_vtable_hash): New.
20614         (odr_subtypes_equivalent_p): Do strict comparsion.
20615         (add_type_duplicate): Merge type names; cleanup; avoid type
20616         duplicates.
20617         (register_odr_type): Initialize vtable hash.
20618         (build_type_inheritance_graph): Likewise
20619         (get_odr_type): Reorg to use two hashes.
20620         (dump_possible_polymorphic_call_targets): Move sanity check after debug
20621         output.
20622         (ipa_devirt): Dump type_inheritance_graph.
20623         (types_same_for_odr): Add strict mode.
20625 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20627         PR ipa/65334
20628         * cgraph.h (symtab_node): Add definition_alignment,
20629         can_increase_alignment_p and increase_alignment.
20630         * symtab.c (symtab_node::can_increase_alignment_p,
20631         increase_alignment_1, symtab_node::increase_alignment,
20632         symtab_node::definition_alignment): New.
20633         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
20634         can_increase_alignment_p.
20635         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
20636         * tree-vect-stmts.c (ensure_base_align): Likewise.
20637         * varasm.c (function_section_1): Use definition_alignment.
20638         (assemble_start_function): Likewise.
20639         (emit_local): likewise.
20640         (build_constant_desc): Likewsie.
20641         (output_constant_def_contents): Likewise.
20642         (place_block_symbol): Likewise.
20643         (output_object_block): Likewise.
20645 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20647         PR ipa/65316
20648         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
20649         when outputting debug.
20651 2015-03-07  Marek Polacek  <polacek@redhat.com>
20652             Martin Uecker  <uecker@eecs.berkeley.edu>
20654         PR sanitizer/65280
20655         * doc/invoke.texi: Update description of -fsanitize=bounds.
20657 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
20659         * tree-ssa-phiopt.c (neg_replacement): Remove.
20660         (tree_ssa_phiopt_worker): Remove negate optimization.
20662 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20664         PR ipa/65302
20665         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
20667 2015-03-06  Richard Biener  <rguenther@suse.de>
20669         PR middle-end/64928
20670         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
20671         and liveout_obstack members.
20672         (calculate_live_on_exit): Remove.
20673         (calculate_live_ranges): Change declaration.
20674         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
20675         (new_tree_live_info): Adjust.
20676         (calculate_live_ranges): Delete livein when not wanted.
20677         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
20678         Deal with partly deleted live info.
20679         (loe_visit_block): Remove temporary bitmap by using
20680         bitmap_ior_and_compl_into.
20681         (live_worklist): Adjust accordingly.
20682         (calculate_live_on_exit): Make static.
20683         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
20684         we do not need livein.
20686 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
20688         * real.c (real_from_string): Fix typo in assertion.
20690 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
20692         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
20693         the patch.
20695 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20697         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
20699 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
20701         PR target/64342
20702         * lra-assigns.c (find_hard_regno_for): Rename to
20703         find_hard_regno_for_1.  Add a new parameter.
20704         (find_hard_regno_for): New function using find_hard_regno_for_1.
20706 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20708         PR rtl-optimization/65067
20709         * expmed.c (store_bit_field, extract_bit_field): Reworked the
20710         strict volatile bitfield handling.
20712 2015-03-05  Martin Liska  <mliska@suse.cz>
20714         PR ipa/65318
20715         * ipa-icf.c (sem_variable::equals): Compare variables types.
20717 2015-03-05  Richard Henderson  <rth@redhat.com>
20719         PR target/65121
20720         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
20721         correctly check weak symbol binding.
20723 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
20725         PR middle-end/65315
20726         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
20727         needed alignment.
20729 2015-03-05  Martin Liska  <mliska@suse.cz>
20731         * ipa-inline.c (inline_small_functions): Set default value to
20732         prevent warning during bootstrap.
20733         * tree.h: Add pragma guard that ignores false positives during
20734         bootstrap.
20736 2015-03-05  Richard Biener  <rguenther@suse.de>
20738         PR tree-optimization/65310
20739         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20740         Properly preserve alignment of the base of the access.
20742 2015-03-05  Richard Biener  <rguenther@suse.de>
20744         PR ipa/65270
20745         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
20746         Compare dependence info.
20748 2015-03-05  Richard Biener  <rguenther@suse.de>
20750         PR middle-end/65233
20751         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
20752         tree-into-ssa.h.
20753         (walk_ssa_copies): Revert last chage.  Instead do not walk
20754         SSA names registered for SSA update.
20756 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
20758         PR ipa/65270
20759         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
20760         vtable references for their containing type.
20761         (sem_function::equals_wpa): Compare TYPE_RESTRICT
20762         and type attributes.
20764 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
20766         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
20767         before negating it.
20768         * stor-layout.c (finalize_record_size): Revert latest change.
20770 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
20772         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
20774 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
20776         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
20777         for correct comdat handling.
20778         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20779         Likewise.
20780         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
20781         (used_from_object_file_p_worker): Remove.
20782         (cgraph_node::only_called_directly_or_alised): Add
20783         used_from_object_file_p.
20784         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
20785         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
20786         can_remove_if_no_direct_calls_and_refs_p.
20788 2015-03-04  Nick Clifton  <nickc@redhat.com>
20790         * config/rl78/rl78.h (enum reg_class): Remove real registers from
20791         General register class.
20792         * config/rl78/rl78-real.md: Replace general register constraints
20793         with real+virtual register constraints.
20795 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20797         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
20798         from checking for -mhtm option.
20800 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
20802         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
20803         (struct ipa_sra_check_caller_data): Add has_thunk field.
20804         (ipa_sra_check_caller): Check for thunk.
20805         (ipa_sra_preliminary_function_checks): Give up on function with
20806         thunks.
20807         (ipa_early_sra): Use call_for_symbol_and_aliases.
20809 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
20811         PR target/65249
20812         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
20813         called for __stack_chk_guard symbol.
20815 2015-03-03  DJ Delorie  <dj@redhat.com>
20817         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
20818         inc/dec.
20819         (*addhi3_real): Likewise.
20820         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
20821         pattern to match incrementing memory.
20822         * config/rl78/predicates.md (rl78_1_2_operand): New.
20823         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
20824         it's the same and only mem.
20825         (rl78_alloc_physical_registers_op2): If there's effectively only
20826         one MEM, transcode it into HL.
20827         (rl78_far_p): Reject addresses that aren't legitimate.
20829 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20831         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
20832         negating it.
20834         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
20836 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
20838         Implement call0 ABI for xtensa
20839         * config/xtensa/constraints.md ("a" constraint): Include stack
20840         pointer in case of call0 ABI.
20841         ("q" constraint): Make empty in case of call0 ABI.
20842         ("D" constraint): Include stack pointer in case of call0 ABI.
20843         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
20844         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
20845         prototypes.
20846         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
20847         variable.
20848         (xtensa_regno_to_class): Make it a local variable in the
20849         function xtensa_regno_to_class.
20850         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
20851         macro, function prototype and implementation.
20852         (reg_nonleaf_alloc_order): Make it a local variable in the
20853         function order_regs_for_local_alloc.
20854         (xtensa_conditional_register_usage): New function.
20855         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
20856         (xtensa_valid_move): Allow direct moves to stack pointer
20857         register in call0 ABI.
20858         (xtensa_setup_frame_addresses): Only spill register windows in
20859         windowed ABI.
20860         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
20861         call0 ABI respectively.
20862         (xtensa_function_arg_1): Only mark a7 register for copying in
20863         windowed ABI.
20864         (xtensa_call_save_reg): New function.
20865         (compute_frame_size): Add space for callee saved register
20866         storage to the frame size in call0 ABI.
20867         (xtensa_expand_prologue): Generate code to set up stack frame
20868         and save callee-saved registers in call0 ABI.
20869         (xtensa_expand_epilogue): New function.
20870         (xtensa_set_return_address): New function.
20871         (xtensa_return_addr): Calculate return address in call0 ABI.
20872         (xtensa_builtin_saveregs): Only mark a7 register for copying and
20873         emit copying code in windowed ABI.
20874         (order_regs_for_local_alloc): Add preferred register allocation
20875         order for non-leaf function in call0 ABI.
20876         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
20877         (xtensa_asm_trampoline_template): Add trampoline generation for
20878         call0 ABI.
20879         (xtensa_trampoline_init): Add trampoline initialization for
20880         call0 ABI.
20881         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
20882         functions.
20883         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
20884         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
20885         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
20886         ABI call-used registers.
20887         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
20888         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
20889         call0 ABI.
20890         (REG_CLASS_CONTENTS): Include all registers into the preferred
20891         reload registers set, adjust the set in the
20892         xtensa_conditional_register_usage.
20893         (xtensa_regno_to_class): Drop variable declaration.
20894         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
20895         function.
20896         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
20897         respectively.
20898         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
20899         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
20900         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
20901         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
20902         location in call0 ABI.
20903         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
20904         stack adjustment size when handling exception.
20905         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
20906         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
20907         definitions.
20908         ("return" pattern): Generate ret.n/ret in call0 ABI.
20909         ("epilogue" pattern): Expand epilogue.
20910         ("nonlocal_goto" pattern): Use default in call0 ABI.
20911         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
20912         emit eh_set_a0_* depending on ABI.
20913         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
20914         ("eh_set_a0_call0", "blockage"): New patterns.
20916 2015-03-03  Martin Liska  <mliska@suse.cz>
20918         PR ipa/65287
20919         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
20921 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
20923         PR 65138/target
20924         * config/rs6000/rs6000-tables.opt: Regenerate table.
20926 2015-03-03  Renlin Li  <renlin.li@arm.com>
20928         * doc/md.texi (@item ^): Change ? into ^.
20930 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
20932         * doc/tm.texi: Regenerated.
20934 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
20936         * builtins.c (expand_builtin_return_addr): Add
20937         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
20938         surrounding #ifdef.
20939         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
20940         definition to 1.
20941         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
20942         Likewise.
20943         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
20944         undefined.
20945         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
20946         paragraph.
20948 2015-03-03  Martin Jambor  <mjambor@suse.cz>
20949             Eric Botcazou  <ebotcazou@adacore.com>
20951         * tree-sra.c (ipa_sra_check_caller_data): New type.
20952         (has_caller_p): Removed.
20953         (ipa_sra_check_caller): New function.
20954         (ipa_sra_preliminary_function_checks): Use it.
20956 2015-03-03  Martin Liska  <mliska@suse.cz>
20958         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
20959         instead of if branch.
20961 2015-03-03  Martin Liska  <mliska@suse.cz>
20963         PR ipa/65282
20964         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
20966 2015-03-23  Jeff Law  <law@redhat.com>
20968         PR tree-optimization/65241
20969         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
20970         hash table if INSERT is true.
20972 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
20974         PR target/65296
20975         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
20977 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
20979         PR target/64331
20980         * config/avr/avr.c (context.h, tree-pass.h): Include them.
20981         (avr_pass_data_recompute_notes): New static variable.
20982         (avr_pass_recompute_notes): New class.
20983         (avr_register_passes): New static function.
20984         (avr_option_override): Call it.
20986 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
20988         Fix various problems with specs file generation.
20990         PR target/65296
20991         * config.gcc (extra_gcc_objs) [avr]: Remove.
20992         * config/avr/driver-avr.c: Remove file.
20993         * config/avr/t-avr (driver-avr.o): Remove rule.
20994         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
20995         INCLUDES to build.  Depend on TM_H.
20996         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
20997         build warnings.  Fix non-matching types and non-existing %-codes.
20998         (tm.h): Include.
20999         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21000         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21001         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21002         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21003         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21004         (LIBGCC_SPEC): Remove definitions.
21006 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21008         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21009         to create a register in testing mode.
21011 2015-03-03  Martin Liska  <mliska@suse.cz>
21012             Jan Hubicka  <hubicka@ucw.cz>
21014         PR ipa/65263
21015         * cgraph.c (cgraph_node::has_thunk_p): New function.
21016         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21017         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21018         (sem_function::merge): Assert is changed.
21020 2015-03-03  Martin Liska  <mliska@suse.cz>
21021             Martin Jambor  <mjambor@suse.cz>
21023         PR ipa/65087
21024         * ipa-icf.c (sem_item_optimizer::execute): Change function
21025         return value to boolean.
21026         (sem_item_optimizer::merge_classes): Likewise.
21027         (ipa_icf_driver): Return TODO_remove_functions in case there's
21028         a merge operation processed.
21029         * ipa-icf.h: Change function return value to boolean.
21031 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21033         PR 65138/target
21034         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21035         processor type for 64-bit little endian PowerPC.
21037         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21038         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
21039         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
21040         printing built-in mask so it does not pass NULL pointers.
21042         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21043         -mcpu=powerpc64le.
21045 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
21047         PR target/58158
21048         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21049         !ISA_HAS_FP_CONDMOVE.
21051 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
21053         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21054         reload_completed.
21056 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
21058         * doc/invoke.texi (Options for Code Generation Conventions):
21059         Fix URL of DSO paper.
21061 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21063         PR ipa/65130
21064         * ipa-inline.c (check_callers): Looks for recursion.
21065         (inline_to_all_callers): Give up on uninlinable or recursive edges.
21066         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21067         summary of inline clones.
21068         (do_estimate_growth_1): Fix recursion check.
21070 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21072         PR ipa/64988
21073         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21074         comdat groups.
21076 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21077             Aldy Hernandez  <aldyh@redhat.com>
21079         PR lto/65276
21080         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21081         when checking TYPE_BINFO.
21083 2015-03-02  Richard Biener  <rguenther@suse.de>
21085         PR ipa/65270
21086         * ipa-icf-gimple.c: Include builtins.h.
21087         (func_checker::compare_memory_operand): Compare base alignment.
21089 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21091         PR target/65184
21092         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21093         are never passed by reference.
21095 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21097         PR target/65183
21098         * tree-chkp.c (chkp_check_lower): Don't check against
21099         zero bounds for already instrumented functions.
21100         (chkp_check_upper): Likewise.
21101         (chkp_fini): Clean pass local data to avoid wrong reusage.
21103 2015-02-28  Martin Liska  <mliska@suse.cz>
21104             Jan Hubicka  <hubicka@ucw.cz>
21106         * ipa-icf.c (sem_variable::equals): Improve debug output;
21107         get variable constructor.
21108         (sem_variable::parse): Do not filter out too early; give up on
21109         volatile and register vars.
21110         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21111         variables.
21112         * ipa-icf.h (sem_variable::init): Do not set ctor.
21113         (sem_variable::ctor): Remove.
21115 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
21117         PR middle-end/65233
21118         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21120 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21122         * ipa-icf.c: Include stor-layout.h
21123         (sem_function::compare_cgraph_references): Rename to ...
21124         (sem_item::compare_cgraph_references): ... this one.
21125         (sem_variable::equals_wpa): New function
21126         (sem_variable::equals): Do not check stuff already verified by
21127         equals_wpa.
21128         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21129         * ipa-icf.h (sem_item): Add compare_cgraph_references.
21130         (sem_function): Remove compare_cgraph_references.
21131         (sem_variable): Turns equals_wpa into non-inline.
21133 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21135         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21136         (sem_item::add_expr): New function.
21137         (sem_function::hash_stmt): Handle operands of most statements.
21138         (sem_variable::get_hash): Hash the actual constructor.
21139         * ipa-icf.h (sem_item): Add add_expr.
21140         (sem_function): Update prototype of hash_stmt
21142 2015-02-28  Martin Liska  <mliska@suse.cz>
21143             Jan Hubicka  <hubicka@ucw.cz>
21145         PR ipa/65245
21146         * ipa-icf-gimple.c (func_checker::compare_function_decl):
21147         Remove.
21148         (func_checker::compare_variable_decl): Skip symtab vars.
21149         (func_checker::compare_cst_or_decl): Update.
21150         * ipa-icf.c (sem_function::parse): Do not consider aliases.
21151         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21152         use correct symtab predicates.
21153         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21154         (sem_variable::parse):  Update comment.
21155         (sem_item_optimizer::build_graph): Consider ultimate aliases
21156         for references.
21158 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21160         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21161         of OBJ_TYPE_REF.
21163 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21165         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21166         (sem_variable::merge) Likewise.
21168 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21170         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21171         target; also match flag_ipa_devirt.
21173 2015-03-01  Martin Liska  <mliska@suse.cz>
21174             Jan Hubicka  <hubicka@ucw.cz>
21176         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21177         Validate variable alignment.
21178         * ipa-icf.c (sem_function::equals_private): Be more precise
21179         about non-common function attributes.
21180         (sem_variable::equals): Likewise.
21182 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21184         PR ipa/65237
21185         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21186         across COMDAT group boundary.
21188 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21190         PR ipa/65232
21191         * ipa-icf.c (clear_decl_rtl): New function.
21192         (sem_function::merge): Clear RTL before forming alias.
21193         (sem_variable::merge): Clear RTL before forming alias.
21195 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21197         PR ipa/65236
21198         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21200 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
21202         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21203         to neon_to_gp<q>.
21205 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21207         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21208         a typo in the description.
21210 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21212         PR target/64317
21213         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21214         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21215         * lra-constraints.c: Include "params.h".
21216         (EBB_PROBABILITY_CUTOFF): Use
21217         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21218         (lra_inheritance): Use '<' instead of '<=' for
21219         EBB_PROBABILITY_CUTOFF.
21220         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21221         Document change.
21223 2015-02-27  Martin Liska  <mliska@suse.cz>
21225         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21226         vector length condition.
21228 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
21230         * doc/extend.texi (x86 transactional memory intrinsics):
21231         Reorganize discussion of _xbegin.  Clarify that the return
21232         value is a bit mask.  Expand example and move to end of section.
21234 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21235             Aldy Hernandez  <aldyh@redhat.com>
21237         PR rtl-optimization/65220
21238         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21240 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21242         PR target/65032
21243         * lra-remat.c (update_scratch_ops): New.
21244         (do_remat): Call it.
21245         * lra.c (lra_register_new_scratch_op): New. Take code from ...
21246         (remove_scratches): ... here.
21247         * lra-int.h (lra_register_new_scratch_op): New prototype.
21249 2015-02-27  Marek Polacek  <polacek@redhat.com>
21251         PR c/65040
21252         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21253         -Wformat-signedness anymore.
21255 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21257         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21258         function.
21259         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21261 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21263         * config/s390/s390.c (enum s390_builtin):
21264         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21265         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21266         (s390_init_builtins): Generate new builtin functions.
21267         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21268         (s390_sfpc, s390_efpc): New pattern definitions.
21270 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21272         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21273         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21274         (s390_builtin_decls): New array.
21275         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21276         (s390_builtin_decl): New function.
21277         (TARGET_BUILTIN_DECL): Define macro.
21279 2015-02-27  Richard Biener  <rguenther@suse.de>
21281         PR middle-end/63175
21282         * builtins.c (get_object_alignment_2): Make sure to re-apply
21283         the ANDed mask after recursing to its operand gets us a new
21284         misalignment bit position.
21286 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
21287             Martin Liska  <mliska@suse.cz>
21289         PR bootstrap/65150
21290         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21291         Use address_matters_p.
21292         (redirect_all_callers, set_addressable): New functions.
21293         (sem_function::merge): Reorganize and fix merging issues.
21294         (sem_variable::merge): Likewise.
21295         (sem_variable::compare_sections): Remove.
21296         * common.opt (fmerge-all-constants, fmerge-constants): Remove
21297         Optimization flag.
21298         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21299         redirect them.
21300         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21301         decl is used.
21302         (address_matters_1): New function.
21303         (symtab_node::address_matters_p): New function.
21304         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21305         check for merged flag.
21306         * cgraph.h (address_matters_p): Declare.
21307         (symtab_node::address_taken_from_non_vtable_p): Remove.
21308         (symtab_node::address_can_be_compared_p): New method.
21309         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21310         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21311         Remove.
21312         (comdat_can_be_unshared_p_1) Use address_matters_p.
21313         (update_vtable_references): Fix formating.
21314         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21315         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21316         * cgraphclones.c: Preserve merged and icf_merged flags.
21318 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
21320         * doc/extend.texi (Function Attributes): Fix spelling and typos.
21321         (Label Attributes): Likewise.
21322         (Cilk Plus Builtins): Likewise.
21323         (ARC SIMD Built-in Functions): Likewise.
21324         (ARM C Language Extensions (ACLE)): Likewise.
21325         (PowerPC Built-in Functions): Likewise.
21326         (PowerPC Hardware Transactional Memory Built-in Functions):
21327         Likewise.
21329 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21331         PR tree-optimization/65216
21332         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21333         new stmt and new SSA_NAME for lhs whenever the arguments have
21334         changed and weren't just swapped.  Fix comment typo.
21336         PR tree-optimization/65215
21337         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21338         for PDP endian targets.
21339         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21340         Fix up formatting issues.
21341         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
21342         size is smaller than the original, adjust MEM_REF offset by the
21343         difference of sizes.  Use is_gimple_mem_ref_addr instead of
21344         is_gimple_min_invariant test to avoid adding address temporaries.
21346 2015-02-26  Martin Liska  <mliska@suse.cz>
21347             Jan Hubicka  <hubicka@ucw.cz>
21349         PR ipa/64693
21350         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21351         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21352         (sem_item_optimizer::process_cong_reduction): Include division by
21353         sensitive references.
21354         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21355         * ipa-ref.c (ipa_ref::address_matters_p): New function.
21356         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21358 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
21360         PR target/65192
21361         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21362         Remove.
21363         * config/avr/avr.c: Same.
21364         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21365         Refuse any constant address not in 0..0xbf.
21366         * config/avr/avr.md (*mov<mode>, *movsf): Remove
21367         tiny_valid_direct_memory_access_range from insn conditions.
21368         (mov<mode>): Don't special-case expansion of avrtiny addresses.
21370 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
21372         PR target/61142
21373         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21374         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21375         * config/sh/predicates.md (const_logical_operand): New predicate.
21376         * config/sh/sh.md: Add new peephole2 patterns.
21378 2015-02-26  Marek Polacek  <polacek@redhat.com>
21380         PR ipa/65008
21381         * ipa-inline.c (early_inliner): Recompute inline parameters.
21383 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21385         PR target/65171
21386         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21387         instructions with TImode operands are included in the analysis.
21389 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21391         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21392         of an EDGE_FSM_THREAD.
21394 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21396         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21398 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
21400         PR debug/46102
21401         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21403 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21405         PR tree-optimization/65048
21406         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21407         (thread_through_all_blocks): Call valid_jump_thread_path.
21408         Remove invalid FSM jump-thread paths.
21410 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21412         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21413         (ipa_write_optimization_summaries): Likewise.
21414         * tree-streamer.h: Include data-streamer.h.
21415         (streamer_mode_table): Declare extern variable.
21416         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21417         * lto-streamer-out.c (lto_output_init_mode_table,
21418         lto_write_mode_table): New functions.
21419         (produce_asm_for_decls): Call lto_write_mode_table when streaming
21420         offloading LTO.
21421         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21422         (lto_create_simple_input_block): Add mode_table argument to the
21423         lto_input_block constructors.
21424         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21425         Likewise.
21426         * data-streamer-in.c (string_for_index): Likewise.
21427         * ipa-inline-analysis.c (inline_read_section): Likewise.
21428         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21429         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21430         * lto-streamer-in.c (lto_read_body_or_constructor,
21431         lto_input_toplevel_asms): Likewise.
21432         (lto_input_mode_table): New function.
21433         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21434         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21435         Use bp_pack_machine_mode.
21436         * real.h (struct real_format): Add name field.
21437         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21438         (class lto_input_block): Add mode_table member.
21439         (lto_input_block::lto_input_block): Add mode_table_ argument,
21440         initialize mode_table.
21441         (struct lto_file_decl_data): Add mode_table field.
21442         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21443         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21444         unpack_ts_decl_common_value_fields,
21445         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21446         * tree-streamer.c (streamer_mode_table): New variable.
21447         * real.c (ieee_single_format, mips_single_format,
21448         motorola_single_format, spu_single_format, ieee_double_format,
21449         mips_double_format, motorola_double_format,
21450         ieee_extended_motorola_format, ieee_extended_intel_96_format,
21451         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21452         ibm_extended_format, mips_extended_format, ieee_quad_format,
21453         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21454         decimal_single_format, decimal_double_format, decimal_quad_format,
21455         ieee_half_format, arm_half_format, real_internal_format): Add name
21456         field.
21457         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21459 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
21461         PR target/65161
21462         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21463         reordering for selective scheduling.
21465 2015-02-26  Terry Guo  <terry.guo@arm.com>
21467         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21468         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21469         (arm_arch_no_volatile_ce): Declare new global variable.
21470         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21471         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21472         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21473         (TARGET_NO_VOLATILE_CE): New macro.
21474         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21475         volatile memory access in IT block
21477 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21479         PR tree-optimization/61917
21480         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21481         that reduc_def_stmt is null.
21483 2015-02-25  Martin Liska  <mliska@suse.cz>
21485         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21486         hard register variables.
21488 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21490         PR target/64212
21491         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21492         (symtab::noninterposable_alias): Likewise.
21494 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
21496         PR target/65167
21497         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21498         bounds registers.
21499         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21501 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
21503         PR target/64997
21504         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21505         as split condition; force split via '#' in output pattern.
21507 2015-02-25  Richard Biener  <rguenther@suse.de>
21508             Kai Tietz  <ktietz@redhat.com>
21510         PR tree-optimization/61917
21511         * tree-vect-loop.c (vectorizable_reduction): Allow
21512         vect_internal_def without reduction to exit graceful.
21514 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21516         PR target/65196
21517         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21518         only with NONDEBUG_INSN_P.
21520 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21522         Use variadic macros with avr-log.c.
21524         * config/avr/avr-protos.h (avr_vdump): New prototype.
21525         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21526         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21527         * config/avr/avr-log.c: Adjust comments.
21528         (avr_vdump): New function.
21529         (avr_vadump): Pass caller as 2nd argument instead of format string.
21530         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21531         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21533 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
21535         PR lto/64374
21536         * target.def (target_option_stream_in): New target hook.
21537         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21538         targetm.target_option.post_stream_in if non-NULL.
21539         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21540         * doc/tm.texi: Updated.
21541         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21542         function.
21543         (TARGET_OPTION_POST_STREAM_IN): Redefine.
21545 2015-02-24  Jeff Law  <law@redhat.com>
21547         PR target/65117
21548         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21549         of operand 0 and operand 2.
21550         (zero_cost_loop_end, loop_end): Similarly.
21552 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
21554         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21555         CXX_MEM_STAT_INFO.
21557 2015-02-24  DJ Delorie  <dj@redhat.com>
21559         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21560         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21561         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21562         instead of hardcoding SImode.
21564 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
21566         * omp-low.c (create_omp_child_function): Tag entrypoint
21567         functions with a special attribute.
21569 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21571         PR target/65058
21572         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21574 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
21576         PR rtl-optimization/65123
21577         * lra-remat.c (operand_to_remat): Check hard regs in insn
21578         definition too.
21580 2015-02-24  Nick Clifton  <nickc@redhat.com>
21582         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21583         to the assembler.
21585 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
21587         PR libgomp/64625
21588         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21589         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21590         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21591         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21592         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21593         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21594         (BUILT_IN_GOACC_PARALLEL): Specify as
21595         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21596         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21597         * builtin-types.def
21598         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21599         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21600         Remove function types.
21601         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21602         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21603         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21604         New function types.
21606 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
21608         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21610 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
21612         PR tree-optimization/65170
21613         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
21614         if val[1] < 0, clear also val[2] and return 3.
21616 2015-02-24  Alan Modra  <amodra@gmail.com>
21618         PR target/65172
21619         * config/rs6000/rs6000.c (get_memref_parts): Only return true
21620         when *base is a reg.  Handle nested plus addresses.  Simplify
21621         pre_modify test.
21623 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
21625         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
21626         use natural alignment when optimizing for size.
21628 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
21630         PR target/65153
21631         * config/sh/sh.md (movsicc_true+3): Remove peephole.
21632         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
21633         * config/sh/sh.c (replace_n_hard_rtx): Remove.
21635 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
21637         PR fortran/63427
21638         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
21639         too big for a wide_int.  Implement missing wrapping operation.
21641 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
21643         PR target/65163
21644         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
21645         instead of const_int 4294901760.
21647 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
21649         * config/avr/t-avr: Fix typo in comment.
21651 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
21653         * doc/rtl.texi (fma): Clarify documentation.
21655 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
21657         PR debug/58123
21658         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
21659         over input_location.
21661 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21663         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
21664         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
21665         restrict alignments to absolute_biggest_alignment.
21666         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
21667         Define.
21668         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
21669         * doc/tm.texi: Regenerate.
21670         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
21672 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
21674         PR target/64172
21675         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
21677 2015-02-20  Richard Biener  <rguenther@suse.de>
21679         PR tree-optimization/65136
21680         * tree-ssa-propagate.c: Include cfgloop.h.
21681         (replace_phi_args_in): Avoid replacing loop latch edge PHI
21682         arguments with constants.
21684 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
21685             Martin Liska  <mliska@suse.cz>
21687         PR target/63892
21688         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
21689         don't try to create_thunk if stdarg_p.  If
21690         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
21691         redirect_callers if possible.
21692         (sem_item_optimizer::execute): Call unregister_hooks here...
21693         (ipa_icf_driver): ... instead of here.
21695 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21697         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
21698         Mark operand 0 as earlyclobber in 2nd alternative.
21699         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
21700         Write negated shift amount into QI lowpart operand 0 and use it
21701         in the shift step.
21702         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
21704 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21706         * cgraph.h (clone_function_name_1): Declare.
21707         * cgraphclones.c (clone_function_name_1): New function.
21708         (clone_function_name): Use it.
21709         * lto-partition.c: Include "stringpool.h".
21710         (must_not_rename, maybe_rewrite_identifier)
21711         (validize_symbol_for_target): New static functions.
21712         (privatize_symbol_name): Use must_not_rename.
21713         (promote_symbol): Call validize_symbol_for_target.
21714         (lto_promote_cross_file_statics): Likewise.
21715         (lto_promote_statics_nonwpa): Likewise.
21717 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
21719         PR target/64452
21720         * config/avr/avr.md (pushhi_insn): New insn.
21721         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
21723 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21724             Jakub Jelinek  <jakub@redhat.com>
21726         * tree-streamer.c (preload_common_nodes): Don't preload
21727         TI_VA_LIST* for offloading.
21728         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
21729         in_lto_p.
21731 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
21733         * config/pa/pa.c (pa_emit_move_sequence): Always force
21734         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
21735         note on insn.
21737         * config/pa/pa.c (pa_reloc_rw_mask): New function.
21738         (TARGET_ASM_RELOC_RW_MASK): Define.
21739         (pa_cannot_force_const_mem): Revert previous change.
21741 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
21742             Jan Hubicka  <hubicka@ucw.cz>
21744         PR ipa/65028
21745         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
21746         across jump functions.
21748 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
21750         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
21752 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
21754         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
21756 2015-02-19  Richard Henderson  <rth@redhat.com>
21758         PR middle-end/65074
21759         * varasm.c (default_binds_local_p_2): Don't test node->definition;
21760         test DECL_EXTERNAL independent of symtab_node.
21762 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
21764         PR lto/65012
21765         * varpool.c (varpool_node::get_constructor): Return early
21766         if this->lto_file_data is NULL.
21768 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21770         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
21771         (rank_for_schedule_debug): Update.
21772         (ready_sort): Make static.  Move sorting logic to ...
21773         (ready_sort_debug, ready_sort_real): New static functions.
21774         (schedule_block): Sort both debug insns and real insns in preparation
21775         for ready list trimming.  Improve debug output.
21776         * sched-int.h (ready_sort): Remove global declaration.
21778 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
21780         * ipa-icf.c (sem_function::equals_private): Adjust.
21781         (sem_function::bb_dict_test): Take a vec<int> * instead of
21782         auto_vec<int>.
21783         * ipa-icf.h (bb_dict_test): Likewise.
21785 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
21787         PR gcov-profile/64634
21788         * tree-eh.c (frob_into_branch_around): Fix up typos
21789         in function comment.
21790         (lower_catch): Put eh_seq resulting from EH lowering of
21791         the cleanup sequence after the cleanup rather than before it.
21793 2015-02-18  Tom de Vries  <tom@codesourcery.com>
21795         * common.opt (fstdarg-opt): New option.
21796         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
21797         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
21798         (@item -fstdarg-opt): New item.
21800 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21802         PR target/65064
21803         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
21804         for common symbols.
21806 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
21808         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
21809         insn-modes.h.
21810         (ALL_HOST_OBJS): Add mkoffload.o.
21811         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
21813 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
21815         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
21816         (compare_virtual_tables): Be smarter about skipping typeinfos;
21817         do sane output on virtual table table mismatch.
21818         (warn_odr): Be ready for forward declarations of enums;
21819         output sane info on base mismatch and virtual table mismatch.
21820         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
21821         when only one type is polymorphic.
21822         (get_odr_type): Fix hashtable corruption.
21823         (dump_odr_type): Dump mangled names.
21825 2015-02-18  Richard Biener  <rguenther@suse.de>
21827         PR tree-optimization/65063
21828         * tree-predcom.c (determine_unroll_factor): Return 1 if we
21829         have replaced looparound PHIs.
21831 2015-02-18  Martin Liska  <mliska@suse.cz>
21833         * lto-streamer.c (lto_streamer_init): Encapsulate
21834         streamer_check_handled_ts_structures with checking macro.
21836 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
21838         PR ipa/65087
21839         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
21840         section if !implicit_section.
21841         (cgraph_node::create_version_clone_with_body): Likewise.
21842         * trans-mem.c (ipa_tm_create_version): Likewise.
21844 2015-02-18  Richard Biener  <rguenther@suse.de>
21846         PR tree-optimization/62217
21847         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
21848         into BIVs.
21850 2015-02-18  Marek Polacek  <polacek@redhat.com>
21852         PR sanitizer/65081
21853         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
21854         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
21855         is in range [-16K, -1].  Don't issue run-time error if
21856         (ptr > ptr + offset).
21858 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
21860         * doc/install.texi (nvptx-*-none): New section.
21861         * doc/invoke.texi (Nvidia PTX Options): Likewise.
21862         * config/nvptx/nvptx.opt: Update.
21864         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
21865         (access_check): New functions, copied from
21866         config/i386/intelmic-mkoffload.c.
21867         (main): For non-installed testing, look in all COMPILER_PATHs for
21868         GCC_INSTALL_NAME.
21870         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
21872 2015-02-18  Andrew Pinski  <apinski@cavium.com>
21873             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21875         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
21876         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
21878 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
21880         * ipa-visibility.c (function_and_variable_visibility): Only
21881         check locality if node is not already local.
21882         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
21883         call_for_symbol_and_aliases instead of
21884         call_for_symbol_thunks_and_aliases.
21885         (ipa_inline): Likewise.
21886         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21887         first walk aliases.
21888         * ipa.c (symbol_table::remove_unreachable_nodes): Use
21889         call_for_symbol_and_aliases.
21890         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
21891         (ipa_propagate_frequency_1): Use it; use opt_for_fn
21892         (ipa_propagate_frequency): Update.
21893         (ipa_profile): Add opt_for_fn gueards.
21895 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
21897         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
21898         * doc/invoke.texi (SH options): Document it.
21899         * config/sh/sh.c (sh_insn_length_adjustment): Check
21900         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
21902 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
21904         * common.opt (fipa-cp-alignment): New.
21905         * ipa-cp.c (ipcp_store_alignment_results): Check
21906         flag_ipa_cp_alignment.
21907         * opts.c (default_options_table): Enable -fipa-cp-alignment for
21908         -O2.
21909         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
21910         * doc/invoke.texi: Document -fipa-cp-alignment.
21912 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
21914         PR target/64793
21915         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
21916         to nil.  Adjust comments.
21918 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
21920         * ipa-visibility.c (function_and_variable_visibility): Only
21921         check locality if node is not already local.
21922         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
21923         call_for_symbol_and_aliases instead of
21924         call_for_symbol_thunks_and_aliases.
21925         (ipa_inline): Likewise.
21926         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21927         first walk aliases.
21928         * ipa.c (symbol_table::remove_unreachable_nodes): Use
21929         call_for_symbol_and_aliases.
21930         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
21931         (ipa_propagate_frequency_1): Use it; use opt_for_fn
21932         (ipa_propagate_frequency): Update.
21933         (ipa_profile): Add opt_for_fn guards.
21935 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
21937         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
21938         skipping of "strange" tokens.
21940 2015-02-17  Jeff Law  <law@redhat.com>
21942         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
21943         obsolete comment.
21945 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
21947         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
21948         as forcing a HARD_DEP between instructions, thereby
21949         disallowing rewriting to break dependencies.
21951 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
21953         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
21954         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
21955         variables in boundary that have no inlitalizer encoded and are
21956         not aliases.
21957         * varasm.c (default_binds_local_p_2): External definitions do not
21958         count as definitions here.
21960 2015-02-16  Jeff Law  <law@redhat.com>
21962         PR tree-optimization/64823
21963         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
21964         statements.
21965         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
21966         threading through blocks with PHIs, but no statements.
21967         (thread_through_normal_block): Distinguish between blocks where
21968         we did not process all the statements and blocks with no statements.
21970 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
21971             James Greenhalgh  <james.greenhalgh@arm.com>
21973         PR ipa/64963
21974         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
21975         section if not linkonce.  Fix up formatting.
21976         (cgraph_node::create_version_clone_with_body): Copy section.
21977         * trans-mem.c (ipa_tm_create_version): Likewise.
21979 2015-02-16  Richard Biener  <rguenther@suse.de>
21981         PR tree-optimization/65077
21982         * tree-ssa-structalias.c (get_constraint_for_1): Handle
21983         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
21984         (find_func_aliases): Allow float values to carry pointers again.
21986 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21988         * doc/install.texi (Specific): Reorder targets list to put
21989         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
21990         from the top menu.
21992 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
21993             David Edelsohn  <dje.gcc@gmail.com>
21995         PR target/65058
21996         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
21997         mapping class to external variable or function reference.
21998         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
21999         mapping class.
22001 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
22003         PR target/53348
22004         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22005         ASM_WEAKEN_DECL if defined.
22007 2015-02-16  Richard Biener  <rguenther@suse.de>
22009         PR lto/65015
22010         * varasm.c (default_file_start): For LTO produced units
22011         emit <artificial> as file directive.
22013 2015-02-16  Richard Biener  <rguenther@suse.de>
22015         PR tree-optimization/63593
22016         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22017         stmts and releasing SSA names until...
22018         (execute_pred_commoning): ... after processing all chains.
22020 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22022         PR ipa/65059
22023         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22024         external functions.
22026 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22028         * doc/bugreport.texi: Adjust section titles throughout the file
22029         to use "Title Case".
22030         * doc/extend.texi: Likewise.
22031         * doc/gcov.texi: Likewise.
22032         * doc/implement-c.texi: Likewise.
22033         * doc/implement-cxx.texi: Likewise.
22034         * doc/invoke.texi: Likewise.
22035         * doc/objc.texi: Likewise.
22036         * doc/standards.texi: Likewise.
22037         * doc/trouble.texi: Likewise.
22039 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
22041         * cgraph.h (symtab_node::has_aliases_p): Simplify.
22042         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22043         * tree.c (lookup_binfo_at_offset): Make static.
22044         (get_binfo_at_offset): Do not shadow offset; add explanatory
22045         comment.
22047 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
22049         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22050         for all floading point loads and stores except those using a register
22051         index address.
22052         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22053         to a register.
22055 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22057         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22058         (do_estimate_growth_1): Record if any uninlinable edge was seen.
22059         (estimate_growth): Handle uninlinable edges correctly.
22060         (check_callers): New.
22061         (growth_likely_positive): Handle aliases correctly.
22063 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22065         * ipa-chkp.c: Use iterate_direct_aliases.
22066         * symtab.c (resolution_used_from_other_file_p): Move inline.
22067         (symtab_node::create_reference): Fix formating.
22068         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22069         (symtab_node::iterate_reference): Move inline.
22070         (symtab_node::iterate_referring): Move inline.
22071         (symtab_node::iterate_direct_aliases): Move inline.
22072         (symtab_node::used_from_object_file_p_worker): Inline into ...
22073         (symtab_node::used_from_object_file_p): ... this one; move inline.
22074         (symtab_node::call_for_symbol_and_aliases): Move inline;
22075         use iterate_direct_aliases.
22076         (symtab_node::call_for_symbol_and_aliases_1): New method.
22077         (cgraph_node::call_for_symbol_and_aliases): Move inline;
22078         use iterate_direct_aliases.
22079         (cgraph_node::call_for_symbol_and_aliases_1): New method.
22080         (varpool_node::call_for_node_and_aliases): Rename to ...
22081         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22082         use iterate_direct_aliases.
22083         (varpool_node::call_for_symbol_and_aliases_1): New method.
22084         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22085         (ipa_discover_readonly_nonaddressable_var): Update.
22086         * ipa-devirt.c: Fix formating.
22087         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22088         Move inline.
22089         (cgraph_node::call_for_symbol_and_aliases): Move inline.
22090         (cgraph_node::call_for_symbol_and_aliases_1): New function..
22091         * cgraph.h (used_from_object_file_p_worker): Remove.
22092         (resolution_used_from_other_file_p): Move inline.
22093         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22094         (symtab_node::iterate_reference): Move inline.
22095         (symtab_node::iterate_referring): Move inline.
22096         (symtab_node::iterate_direct_aliases): Move inline.
22097         (symtab_node::used_from_object_file_p_worker): Inline into ...
22098         (symtab_node::used_from_object_file_p): Move inline.
22099         * tree-emutls.c (ipa_lower_emutls): Update.
22100         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22101         (varpool_node::call_for_node_and_aliases): Remove.
22103 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
22105         PR tree-optimization/62209
22106         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22107         op == range->exp, insert seq and gimplified code after labels
22108         instead of after the phi.
22110 2015-02-13  Jeff Law  <law@redhat.com>
22112         PR bootstrap/65060
22113         Revert my change for tree-optimization/64823.
22115 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22117         PR tree-optimization/65053
22118         * tree-ssa-phiopt.c (value_replacement): When moving assign before
22119         cond, either reset VR on lhs or set it to phi result VR.
22121 2015-02-13  Jeff Law  <law@redhat.com>
22123         PR tree-optimization/64823
22124         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22125         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22126         threading through blocks with PHIs, but no statements.
22127         (thread_through_normal_block): Distinguish between blocks where
22128         we did not process all the statements and blocks with no statements.
22130         PR rtl-optimization/47477
22131         * match.pd (convert (plus/minus (convert @0) (convert @1): New
22132         simplifier to narrow arithmetic.
22134 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
22136         PR ipa/65028
22137         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22138         polymorphic call info when type is not known to be preserved.
22140 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
22142         PR ipa/65028
22143         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22144         (inline_call): Use it.
22146 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
22148         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22149         GOMP_DEVICE_NVIDIA_PTX.
22151 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22153         PR ipa/65034
22154         * stmt.c (emit_case_nodes): Use void_type_node instead of
22155         NULL_TREE as LABEL_DECL type.
22157 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
22159         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22160         constraints.
22161         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22162         symbolic references to data to be forced to constant memory on the
22163         SOM target.
22165 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22167         PR tree-optimization/65002
22168         * tree-cfg.c (pass_data_fixup_cfg): Don't update
22169         SSA on start.
22170         * tree-sra.c (some_callers_have_no_vuse_p): New.
22171         (ipa_early_sra): Reject functions whose callers
22172         assume function is read only.
22174 2015-02-13  Richard Biener  <rguenther@suse.de>
22176         PR lto/65015
22177         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22178         for LTO produced CUs.
22180 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
22182         PR tree-optimization/64705
22183         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22184         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22185         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22186         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22187         expand_simple_operations.
22189 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22190             Richard Henderson  <rth@redhat.com>
22192         PR rtl/32219
22193         * cgraphunit.c (cgraph_node::finalize_function): Set definition
22194         before notice_global_symbol.
22195         (varpool_node::finalize_decl): Likewise.
22196         * varasm.c (default_binds_local_p_2): Rename from
22197         default_binds_local_p_1, add weak_dominate argument.  Use direct
22198         returns instead of assigning to local variable.  Unify varpool and
22199         cgraph paths via symtab_node.  Reject undef weak variables before
22200         testing visibility.  Reorder tests for simplicity.
22201         (default_binds_local_p): Use default_binds_local_p_2.
22202         (default_binds_local_p_1): Likewise.
22203         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22204         via symtab_node.
22205         (default_elf_asm_output_external): Emit visibility when specified.
22207 2015-02-13  Alan Modra  <amodra@gmail.com>
22209         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22210         code setting up r11 for out-of-line fp restore.
22212 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22214         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22215         (muser-mode): Likewise.
22217 2015-02-13  Alan Modra  <amodra@gmail.com>
22219         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22220         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22222 2015-02-12  David Howells  <dhowells@redhat.com>
22224         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22225         warning.
22226         * tree-ssa-uninit.c (dump_predicates): Likewise.
22227         * opts.c (print_filtered_help): Likewise.
22229 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22231         * dwarf2out.c (output_die): Use "%s", name instead of name to
22232         avoid -Wformat-security warning.
22234         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22235         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22236         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22237         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22239 2015-02-12  Jason Merrill  <jason@redhat.com>
22241         * common.opt (-flifetime-dse): New.
22243 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22245         PR sanitizer/65019
22246         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22248         PR tree-optimization/65014
22249         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22250         use original second operand of arg0 or arg1 instead of
22251         that adjusted by STRIP_NOPS.
22253 2015-02-11  Jeff Law  <law@redhat.com>
22255         PR target/63347
22256         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22257         that needs to be queued, just queue it for a single cycle.
22259 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
22261         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22262         bodies of thunks; comment on why.
22263         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22264         symbols are extern.
22266 2015-02-11  Richard Henderson  <rth@redhat.com>
22268         PR sanitize/65000
22269         * tree-eh.c (mark_reachable_handlers): Mark source and destination
22270         regions of __builtin_eh_copy_values.
22272 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22274         PR middle-end/65003
22275         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22276         ultimate alias is MEM with SYMBOL_REF satisfying
22277         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
22278         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22280 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
22282         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22283         "diagnostic-core.h".
22284         (main): Initialize progname, and call diagnostic_initialize.
22286         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22287         instead of __OPENMP_TARGET__.
22289         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22290         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22291         hard-coding PTX_ID.
22293 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
22295         * doc/sourcebuild.texi (pie_enabled): Document.
22297 2015-02-11  Martin Liska  <mliska@suse.cz>
22299         PR ipa/64813
22300         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22301         a return value for call to a function that is noreturn.
22303 2015-02-11  Richard Biener  <rguenther@suse.de>
22305         PR lto/65015
22306         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22307         and -fresolution.
22309 2015-02-11  Andrew Pinski  <apinski@cavium.com>
22311         PR target/64893
22312         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22313         Change the first argument type to size_type_node and add another
22314         size_type_node.
22315         (aarch64_simd_expand_builtin): Handle the new argument to
22316         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22317         print an out when the first two arguments are not
22318         nonzero integer constants.
22319         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22320         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22322 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22324         PR target/61925
22325         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22326         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22327         (ix86_set_current_function): Rewritten.
22328         (ix86_add_new_builtins): Temporarily clear current_target_pragma
22329         when creating builtin fndecls.
22331 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22333         PR ipa/65005
22334         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22335         function.
22336         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22337         have no comdat group.
22338         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22339         (lto_output_varpool_node): Always output alias info.
22340         (output_refs): Output refs of boundary aliases, too.
22341         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22342         (output_symtab): Output call eges in thunks in boundary.
22343         (get_alias_symbol): Remove.
22344         (input_node, input_varpool_node): Do not special case weakrefs.
22345         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22346         alias and thunks targets in the boundary; do not take removed symbols
22347         from their comdat groups.
22348         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22349         (cgraph_node::global_info): Remove.
22350         (cgraph_node::rtl_info): Look through aliases and thunks.
22351         * cgrpah.h (global_info): Remove.
22352         (non_local_p): Remove.
22354 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22355             Sandra Loosemore  <sandra@codesourcery.com>
22357         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22358         to inline asm.  List dialects in proper order.
22360 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22361             Sandra Loosemore  <sandra@codesourcery.com>
22363         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22365 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22367         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22368         modified) reference to Solaris.
22370 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
22372         * doc/extend.texi (Extended Asm): Fix typos.
22374 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
22376         PR sanitizer/65004
22377         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22379 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
22381         PR target/64661
22382         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22383         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22384         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22385         * config/sh/constraints.md (Ara, Add): New constraints.
22386         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22387         predicates.
22388         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22389         atomic_mem_operand_0.  Don't use force_reg on the memory address.
22390         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22391         Sra constraint.  Convert to insn_and_split.  Add workaround for
22392         PR 64974.
22393         (atomic_compare_and_swap<mode>_hard): Copy to
22394         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
22395         Use atomic_mem_operand_0 predicate.
22396         (atomic_compare_and_swap<mode>_soft_gusa,
22397         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22398         AraAdd constraints.
22399         (atomic_compare_and_swap<mode>_soft_tcb,
22400         atomic_compare_and_swap<mode>_soft_imask,
22401         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22402         atomic_mem_operand_0 predicate and SraSdd constraints.
22403         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22404         constraint.
22405         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22406         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
22407         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22408         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
22409         force_reg on the memory address.
22410         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22411         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22412         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22413         atomic_mem_operand_1 predicate and Sra constraint.
22414         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22415         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22416         Use atomic_mem_operand_1 predicate.
22417         (atomic_<fetchop_name><mode>_hard): Copy to
22418         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22419         Use atomic_mem_operand_1 predicate.
22420         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22421         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22422         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
22423         insn_and_split.  Use atomic_mem_operand_1 predicate.
22424         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22425         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
22426         Use atomic_mem_operand_1 predicate.
22427         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22428         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22429         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22430         in generated insn with original mem operand before emitting the insn.
22431         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22432         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22433         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22434         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22435         Use atomic_mem_operand_1 predicate and AraAdd constraints.
22436         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22437         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22438         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22439         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22440         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22441         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22442         atomic_not_fetch<mode>_soft_tcb,
22443         atomic_<fetchop_name>_fetch<mode>_soft_imask,
22444         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22445         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22446         Use atomic_mem_operand_1 predicate and SraSdd constraints.
22448 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
22450         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22451         and 3 earlyclobber operands.
22453 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22455         * common.opt (fstack-reuse): Mark as optimization.
22457 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22459         PR ipa/64982
22460         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22462 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
22464         PR tree-optimization/64326
22465         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22467 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
22469         PR gcov-profile/61889
22470         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22472 2015-02-10  Richard Biener  <rguenther@suse.de>
22474         PR tree-optimization/64995
22475         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22476         value we use is final.
22477         (visit_reference_op_store): Always valueize op.
22478         (visit_use): Properly valueize vuses.
22480 2015-02-10  Richard Biener  <rguenther@suse.de>
22482         PR tree-optimization/64909
22483         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22484         pass a scalar-stmt count estimate to the cost model.
22485         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22487 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
22489         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22490         enabled by default together with var-tracking.
22492 2015-02-10  Nick Clifton  <nickc@redhat.com>
22494         * config/rl78/rl78.c: Remove DIV attribute code accidentally
22495         included in previous rl78 commit.
22497 2015-02-10  Richard Biener  <rguenther@suse.de>
22499         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22500         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22501         return the bitpack.
22503 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22505         PR gcov-profile/61889
22506         * config.in: regenerate.
22507         * configure.in: Likewise.
22508         * configure.ac: Check for ftw.h.
22509         * gcov-tool.c: Check for ftw.h before using nftw.
22511 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22513         PR lto/64076
22514         * ipa-visibility.c (update_visibility_by_resolution_info): Only
22515         assert when not in lto mode.
22517 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22519         * ira-color.c (setup_left_conflict_sizes_p): Simplify
22520         initialization/assignment of conflict_size.
22522 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
22524         PR ipa/64978
22525         * ipa-cp.c (gather_caller_stats): Skip thunks.
22526         (propagate_constants_topo): Skip aliases.
22528 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
22530         PR target/64761
22531         * config/sh/sh.c (sh_option_override): Don't change
22532         -freorder-blocks-and-partition to -freorder-blocks even when
22533         unwinding is enabled.
22534         (sh_can_follow_jump): Return false if the followee jump is
22535         a crossing jump when -freorder-blocks-and-partition is specified.
22536         * config/sh/sh.md (*jump_compact_crossing): New insn.
22538 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22539             Kaz Kojima  <kkojima@gcc.gnu.org>
22541         PR target/64761
22542         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22543         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22544         (sh_can_redirect_branch): Rename to ...
22545         (sh_can_follow_jump): ... this.  Constify argument types.
22546         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22547         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22548         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22549         * doc/tm.texi: Regenerate.
22551 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22553         PR sanitizer/64981
22554         * builtins.c (expand_builtin): Call targetm.expand_builtin
22555         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22557 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22559         PR ipa/61548
22560         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22562 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22564         PR ipa/63566
22565         * ipa-icf.c (set_local): New function.
22566         (sem_function::merge): Use it.
22568 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22570         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22571         (add_type_duplicate): Fix comparison of BINFOs.
22573 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22575         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22576         on getting VOID pointer.
22578 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22580         PR target/64979
22581         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22582         va_list escapes.
22584 2015-02-09  Richard Biener  <rguenther@suse.de>
22586         * genmatch.c (replace_id): Copy expr_type.
22588 2015-02-09  Richard Biener  <rguenther@suse.de>
22590         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22591         (streamer_write_tree_bitfields): Declare.
22592         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22593         properly unpack padding.
22594         (unpack_value_fields): Inline ...
22595         (streamer_read_tree_bitfields): ... here.
22596         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22597         and properly add padding bits.
22598         (streamer_pack_tree_bitfields): Fold into ...
22599         (streamer_write_tree_bitfields): ... this new function,
22600         exposing the bitpack object.
22601         * lto-streamer-out.c (lto_write_tree_1): Call
22602         streamer_write_tree_bitfields.
22604 2015-02-09  Richard Biener  <rguenther@suse.de>
22606         PR tree-optimization/54000
22607         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22608         (struct ivopts_data): Add loop_loc member.
22609         (tree_ssa_iv_optimize_loop): Dump loop location.
22610         (create_new_ivs): Likewise, also dump number of IVs generated.
22612 2015-02-09  Martin Liska  <mliska@suse.cz>
22614         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
22615         just if not yet registered.
22616         (ipa_icf_generate_summary): Register callgraph hooks.
22618 2015-02-08  Andrew Pinski  <apinski@cavium.com>
22620         * config/aarch64/aarch64.c (gty_dummy): Delete.
22622 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22624         PR ipa/63566
22625         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
22626         (cgraph_node::local_p): Remove thunk related FIXME.
22628 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22630         PR ipa/63566
22631         * i386.c (ix86_function_regparm): Look through aliases to see if callee
22632         is local and optimized.
22633         (ix86_function_sseregparm): Likewise; also use target's SSE math
22634         settings; error out instead of silently generating wrong code
22635         on mismatches.
22636         (init_cumulative_args): Look through aliases.
22638 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22640         PR ipa/63566
22641         * ipa-split.c (execute_split_functions): Split if function has aliases.
22643 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22645         PR ipa/63566
22646         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
22647         aliases before trying to expand it.
22648         (cgraph_node::expand_thunk): Fix formating.
22650 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
22652         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
22653         (Using Assembly Language with C): Expand introduction.
22654         (Basic Asm): Copy-edit.  Add more information about uses of
22655         basic asm.
22656         (Extended Asm): Copy-edit.  Document new escape syntax and
22657         %l[label] syntax.
22658         (Global Reg Vars): Copy-edit.
22659         (Local Reg Vars): Likewise.
22661 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
22663         PR debug/2714
22664         PR bootstrap/64256
22665         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
22666         (DBX_CONTIN_CHAR): Define.
22668 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
22669             Brian Rzycki  <b.rzycki@samsung.com>
22671         PR tree-optimization/64878
22672         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
22673         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
22674         Stop recursion at loop phi nodes after having visited a loop phi node.
22676 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22678         * toplev.c (process_options): Change flag_ipa_ra before creating
22679         optimization_{default,current}_node.
22681         PR ipa/64896
22682         * cgraphunit.c (cgraph_node::expand_thunk): If
22683         restype is not is_gimple_reg_type nor the thunk_fndecl
22684         returns aggregate_value_p, set restmp to a temporary variable
22685         instead of resdecl.
22687 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
22689         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
22691 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22693         PR target/64205
22694         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
22695         add a general secondary reload handler for SDmode, unless we have
22696         both read/write support for SDmode.
22698 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22700         PR middle-end/64937
22701         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
22702         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
22703         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
22704         1 before, push it to abstract_vec.
22705         (dwarf2out_abstract_function): Adjust caller.  Don't call
22706         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
22707         DECL_ABSTRACT_P flags for all abstract_vec elts.
22709 2015-02-06  Renlin Li  <renlin.li@arm.com>
22711         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
22712         complex gimple.
22713         * tree-ssa.c (execute_update_addresses_taken): Likewise.
22715 2015-02-06  Jeff Law  <law@redhat.com>
22717         PR target/64889
22718         * config/h8300/h8300.c (push): New argument "in_prologue".
22719         Pass "in_prologue" along to "F".
22720         (h8300_push_pop): Corresponding changes.
22721         (h8300_expand_prologue): Likewise.
22722         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
22724 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22726         PR rtl-optimization/64957
22727         PR debug/64817
22728         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
22729         IOR rather than for AND.
22731 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
22733         PR target/62631
22734         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
22735         of shift-add and (add + shift) operations.  Rename local variable.
22737 2015-02-05  Jeff Law  <law@redhat.com>
22739         PR target/17306
22740         * config/h8300/constraints.md (U): Correctly dectect
22741         "eightbit_data" memory addresses.
22742         * config/h8300/h8300.c (eightbit_constant_address_p): Also
22743         handle (const (plus (symbol_ref (x)))) where x is declared
22744         as an 8-bit data memory address.
22745         * config/h8300/h8300.md (call, call_value): Correctly detect
22746         "funcvec" functions.
22748         PR target/43264
22749         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
22750         24 to 28 bits for the H8/300.
22752 2015-02-06  Alan Modra  <amodra@gmail.com>
22754         PR target/64876
22755         * config/rs6000/rs6000.c (chain_already_loaded): New function.
22756         (rs6000_call_aix): Use it.
22758 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
22760         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
22761         check.
22763 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
22765         * config/h8300/constraints.md ("U" constraint): Use strict
22766         variant of REG_OK_FOR_BASE_P after reload has started.
22768 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
22770         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
22771         define to zero if !TARGET_NEON.
22772         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
22774 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22775             Trevor Saunders  <tsaunders@mozilla.com>
22777         PR ipa/61548
22778         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
22780 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22782         PR ipa/61548
22783         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
22784         when removing varpool nodes.
22786 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22788         PR ipa/61548
22789         * varpool.c (varpool_node::remove): Fix order of variables.
22791 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22793         PR ipa/64686
22794         * ipa-inline.c (inline_small_functions): Fix ordering issue between
22795         speculation resolution and key updates.
22797 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22799         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
22800         about not letting any speculative edges unupdated.
22802 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22804         PR gcov/64123
22805         * gcov-io.c (gcov_var): Export.
22807 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22809         PR middle-end/64922
22810         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
22811         edges that become speculative.
22813 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
22815         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
22816         or DW_LANG_Fortran08.
22817         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
22818         DW_LANG_Fortran08.
22819         (gen_compile_unit_die): Handle "GNU Fortran2003" and
22820         "GNU Fortran2008" language strings.
22821         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
22822         * langhooks.h (lang_GNU_Fortran): New prototype.
22823         * langhooks.c (lang_GNU_Fortran): New function.
22824         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
22825         lang_GNU_Fortran.
22827 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
22829         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
22830         (RTX_OK_FOR_OLO10_P): Likewise.
22832 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
22834         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
22836 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
22838         PR middle-end/64922
22839         * gimple.c: Include gimple-ssa.h.
22840         (maybe_remove_unused_call_args): New function.
22841         * gimple.h (maybe_remove_unused_call_args): Declare.
22842         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22843         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
22844         * gimple-fold.c (gimple_fold_call): Likewise.
22846 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
22848         PR rtl-optimization/64905
22849         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
22850         pointer alignment if it isn't needed.
22852 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
22854         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
22855         cortex-a72.cortex-a53.
22856         * config/aarch64/aarch64-tune.md: Regenerate.
22857         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
22859 2015-02-04  Nick Clifton  <nickc@redhat.com>
22861         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
22862         inside a MEM.
22864 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
22866         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
22867         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
22868         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
22869         of DEF_BUILTIN.
22870         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
22871         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
22872         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
22873         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
22874         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
22875         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
22876         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
22877         * tree-core.h (enum built_in_function): In between
22878         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
22879         for builtins that use DEF_BUILTIN_CHKP macro.
22881 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
22883         PR debug/64817
22884         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
22885         operands for tcc_comparison exprs.  Fix typos.
22887         PR debug/64817
22888         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
22889         of two XORs that have an intervening AND or IOR.
22891         PR debug/64817
22892         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
22893         simplification of XOR of AND to not allocate new rtx before
22894         committing to a simplification.
22896 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22898         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
22899         manual swaps in all peepholes.
22901 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22903         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
22904         of manual swapping implementation.
22905         (aarch64_expand_vec_perm_const_1): Likewise.
22907 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
22909         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
22910         (generic_addrcost_table): Remove NAMED_PARAM.
22911         (cortexa57_addrcost_table): Likewise.
22912         (xgene1_addrcost_table): Likewise.
22913         (generic_regmove_table): Likewise.
22914         (cortexa53_regmove_table): Likewise.
22915         (xgene1_regmove_table): Likewise.
22916         (generic_vector_table): Likewise.
22917         (cortexa57_vector_table): Likewise.
22918         (xgene1_vector_table): Likewise.
22919         (generic_tunings): Likewise.
22920         (cortexa53_tunings): Likewise.
22921         (cortexa57_tunings): Likewise.
22922         (xgene1_tunings): Likewise.
22924 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
22926         * config/arm/arm-cores.def: Add cortex-a72 and
22927         cortex-a72.cortex-a53.
22928         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
22929         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
22930         * config/arm/arm-tune.md: Regenerate.
22931         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
22932         "cortex-a72.cortex-a53".
22933         * doc/invoke.texi (ARM Options/-mtune): Likewise.
22935 2015-02-04  Nick Clifton  <nickc@redhat.com>
22937         PR target/64408
22938         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
22939         of accepted codes.
22940         (nonimmediate_di_operand): Likewise.
22942         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
22943         prefixes of known F5 using MSP430 MCUs.
22945 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22947         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
22948         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
22949         instead of __builtin_sqrt.
22951 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
22953         * varasm.c (do_assemble_alias): Follow transparent alias
22954         chain for target.
22955         (default_assemble_visibility): Follow transparent alias
22956         chain for decl name.
22958 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22960         PR middle-end/62103
22961         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
22962         to compute size of referenced value in the constant case.
22964 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
22966         PR rtl-optimization/64756
22967         * cse.c (invalidate_dest): New function.
22968         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
22969         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
22970         invalidate and do not record it.
22972 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
22974         PR target/64660
22975         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
22976         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
22977         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
22978         atomic_nand<mode>_soft_tcb): New insns.
22979         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
22980         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
22981         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
22982         Split into atomic_not_fetchsi_hard if operands[0] is unused.
22983         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
22984         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
22985         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
22986         atomic_not<mode>_hard if operands[0] is unused.
22987         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
22988         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
22989         if operands[0] is unused.
22990         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
22991         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
22992         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
22993         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
22994         unused.
22995         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
22996         into atomic_not<mode>_soft_tcb if operands[0] is unused.
22997         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
22998         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
22999         if operands[0] is unused.
23000         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
23001         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23002         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
23003         atomic_nand_fetchsi_hard if operands[0] is unused.
23004         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
23005         atomic_nand<mode>_hard if operands[0] is unused.
23006         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
23007         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23008         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
23009         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23010         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
23011         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23012         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23013         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23014         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
23015         atomic_not<mode>_hard if operands[0] is unused.
23016         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23017         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23018         unused.
23019         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23020         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23021         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
23022         atomic_nand<mode>_hard if operands[0] is unused.
23023         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23024         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23026 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
23028         PR jit/64810
23029         * Makefile.in (GCC_OBJS): Add gcc-main.o.
23030         * gcc-main.c: New file, containing "main" taken from gcc.c.
23031         * gcc.c (do_self_spec): Free decoded_options.
23032         (class driver): Move declaration to gcc.h.
23033         (main): Move declaration and implementation to new file
23034         gcc-main.c.
23035         (driver_get_configure_time_options): New function.
23036         * gcc.h (class driver): Move this declaration here, from
23037         gcc.c.
23038         (driver_get_configure_time_options): New declaration.
23040 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
23042         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23043         cross-module inlining.
23044         * cgraph.h (cgraph_node): Add flag merged.
23045         * ipa-icf.c (sem_function::merge): Maintain it.
23047 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
23049         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23050         instead of OBJECT_P.
23052 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
23054         PR target/62631
23055         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23056         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23057         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23058         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23060 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23062         PR other/63504
23063         * combine.c (reg_n_sets_max): New variable.
23064         (can_change_dest_mode, reg_nonzero_bits_for_combine,
23065         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23066         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23067         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23068         (rest_of_handle_combine): Initialize reg_n_sets_max.
23070 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
23072         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23073         if some always_inline was inlined, apply changes before inlining
23074         heuristically.
23076 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
23078         PR jit/64810
23079         * config/arm/arm.c (arm_option_override): Set
23080         arm_selected_arch/cpu/tune to NULL on entry.
23082 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
23083             Andrew Pinski  <pinskia@gcc.gnu.org>
23084             Jakub Jelinek  <jakub@gcc.gnu.org>
23086         PR target/64231
23087         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23088         integer typing for small model. Use IN_RANGE.
23090 2015-02-02  Richard Biener  <rguenther@suse.de>
23092         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23093         * tree-vrp.c (vrp_valueize_1): Likewise.
23095 2015-02-02  Alan Modra  <amodra@gmail.com>
23097         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23098         than mem for toc_restore.
23099         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23100         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23101         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23103 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
23105         PR target/64047
23106         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23107         explicit default options.
23109 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
23111         PR ipa/64872
23112         * ipa-utils.c (ipa_merge_profiles): Add release argument.
23113         * ipa-icf.c (sem_function::merge): Do not release body when merging.
23114         * ipa-utils.h (ipa_merge_profiles): Update prototype.
23116 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
23118         PR debug/64817
23119         * cfgexpand.c (deep_ter_debug_map): New variable.
23120         (avoid_deep_ter_for_debug): New function.
23121         (expand_debug_expr): If TERed SSA_NAME is in
23122         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23123         instead of trying to expand SSA_NAME's def stmt.
23124         (expand_debug_locations): When expanding debug bind
23125         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23126         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23127         value.
23128         (pass_expand::execute): Call avoid_deep_ter_for_debug on
23129         all debug bind stmts.  Delete deep_ter_debug_map after
23130         expand_debug_location if non-NULL and clear it.
23132 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
23134         PR target/64851
23135         * config/sh/sync.md (atomic_fetch_notsi_hard,
23136         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23137         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23138         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23139         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23140         atomic_not_fetch<mode>_soft_imask): New insns.
23142 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23144         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23145         (rank_for_schedule_debug): Split from ...
23146         (rank_for_schedule): ... this.
23147         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23148         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23150 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23152         * doc/md.texi (Machine Constraints): Alphabetize table by target.
23153         * doc/extend.texi (x86 Variable Attributes): Move section to
23154         correct alphabetization after renaming.
23155         (x86 Type Attributes): Likewise.
23156         (Target Builtins): Re-alphabetize menu.
23157         (x86 Built-in Functions): Move section to correct alphabetization
23158         after renaming.
23159         (x86 transactional memory intrinsics): Likewise.
23160         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23161         and x86 Windows Options in table and menu.
23162         (x86 Options): Move section to correct alphabetization after
23163         renaming.
23164         (x86 Windows Options): Likewise.
23166 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23168         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23169         preferred names of the architecture and its 32- and 64-bit
23170         variants.
23171         * doc/invoke.texi: Likewise.
23172         * doc/md.texi: Likewise.
23174 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23176         PR target/64882
23177         * config/i386/predicates.md (address_no_seg_operand): Reject
23178         non-CONST_INT_P operands in invalid mode.
23180 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23182         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23183         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
23184         * config/i386/predicates.md (address_no_seg_operand): Call
23185         address_operand with VOIDmode.
23186         (vsib_address_operand): Ditto.
23187         (address_mpx_no_base_operand): Ditto.
23188         (address_mpx_no_index_operand): Ditto.
23190 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23192         PR target/64688
23193         * lra-constraints.c (original_subreg_reg_mode): New.
23194         (simplify_operand_subreg): Try to simplify subreg of const.  Use
23195         original_subreg_reg_mode for it.
23196         (swap_operands): Update original_subreg_reg_mode.
23197         (curr_insn_transform): Set up original_subreg_reg_mode.
23199 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23201         PR target/64617
23202         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23203         function.
23204         (process_alt_operands): Use it.
23205         (curr_insn_transform): Check the optional reload pseudo class is
23206         ok for the mode.
23208 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
23210         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23211         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23212         prototype.
23213         * toplev.h (init_asm_output): Update comment on use of
23214         UNKNOWN_LOCATION with fatal_error.
23215         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23216         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23217         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23218         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23219         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23220         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23221         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23222         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23223         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23224         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23225         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23226         fatal_error changed to pass input_location as first argument.
23228 2015-01-30  Martin Liska  <mliska@suse.cz>
23230         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23231         in #pragma GCC diagnostic guards.
23233 2015-01-30  Richard Biener  <rguenther@suse.de>
23235         PR tree-optimization/64829
23236         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23237         not add a widening conversion pattern but hand off extra
23238         widenings to callers.
23239         (vect_recog_widen_mult_pattern): Handle extra widening produced
23240         by vect_handle_widen_op_by_const.
23241         (vect_recog_widen_shift_pattern): Likewise.
23242         (vect_pattern_recog_1): Remove excess vertical space in dumping.
23243         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23244         (vect_init_vector_1): Likewise.
23245         (vect_get_vec_def_for_operand): Likewise.
23246         (vect_finish_stmt_generation): Likewise.
23247         (vectorizable_load): Likewise.
23248         (vect_analyze_stmt): Likewise.
23249         (vect_is_simple_use): Likewise.
23251 2015-01-29  Jeff Law  <law@redhat.com>
23253         * combine.c (try_combine): Fix typo in comment.
23255 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
23257         PR target/64580
23258         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23259         (rs6000_stack_info): Add assert.
23260         (rs6000_output_savres_externs): New function, split off from...
23261         (rs6000_output_function_prologue): ... here.  Do not call it for
23262         thunks.
23264 2015-01-29  Jeff Law  <law@redhat.com>
23266         PR target/15184
23267         * combine.c (try_combine): If I0 is a memory load and I3 a store
23268         to a related address, increase the "goodness" of doing a 4-insn
23269         combination with I0-I3.
23270         (make_field_assignment): Handle SUBREGs in the ior+and case.
23272 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
23274         PR tree-optimization/64746
23275         * tree-if-conv.c (mask_exists): New function.
23276         (predicate_mem_writes): Save created mask with given size for further
23277         use.
23278         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23279         (ifcvt_repair_bool_pattern): Collect all statements that are root
23280         of bool pattern and use iterative algorithm to remove multiple uses
23281         of predicates, display number of required iterations.
23283 2015-01-29  Richard Biener  <rguenther@suse.de>
23285         PR tree-optimization/64853
23286         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23287         stmt will get simulated again.
23288         * tree-ssa-ccp.c (valueize_op_1): Likewise.
23290 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23292         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23293         return_in_pc.  Remove redundant assignments.
23294         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23295         (arm_expand_epilogue): Don't compare boolean with true in if condition.
23297 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
23299         * config/i386/i386.c (ix86_mode_after): Make static.
23301 2015-01-29  Richard Biener  <rguenther@suse.de>
23303         PR tree-optimization/64844
23304         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23305         dump cost model analysis.
23306         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23307         Do not register adjusted load/store costs here.
23309 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23310             Uros Bizjak  <ubizjak@gmail.com>
23312         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23313         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23314         using x86_use_pseudo_pic_reg.
23315         * config/i386/i386.c (ix86_conditional_register_usage): Remove
23316         support for fixed PIC register.
23317         (ix86_use_pseudo_pic_reg): Not static any more.
23319 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23321         PR middle-end/64805
23322         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23323         to avoid error in cgraph node verification.
23325 2015-01-29  Marek Polacek  <polacek@redhat.com>
23327         * doc/standards.texi: Reflect that the default for C is gnu11.
23329 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23331         PR target/64761
23332         * reorg.c (switch_text_sections_between_p): New function.
23333         (relax_delay_slots): Call it when testing if the jump insn
23334         is removable.  Use targetm.can_follow_jump when testing if
23335         the conditional branch can follow an unconditional jump.
23337 2015-01-27  Caroline Tice  <cmtice@google.com>
23339         Committing VTV Cywin/Ming patch for Patrick Wollgast
23340         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23341         if -fvtable-verify=preinit/std is used.
23342         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23343         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23344         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23345         if -fvtable-verify=preinit/std is used.
23346         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23347         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23348         if -fvtable-verify=preinit/std is used.
23349         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23350         * config/i386/mingw32.h (LIB_SPEC): Likewise.
23351         * varasm.c (assemble_variable): Add code to properly set the comdat
23352         section and name for the .vtable_map_vars section in case the
23353         target is PE or COFF.
23355 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23357         PR ipa/64801
23358         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23359         make sane BB profile.
23360         (cgraph_node::expand_thunk): Make sane BB profile.
23361         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23362         * cgraph.h (init_lowered_empty_function): Update prototype.
23363         * config/i386/i386.c (make_resolver_func): Update call.
23364         * predict.c (gate): Disable branch prediction pass if
23365         profile is already there.
23367 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23369         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23370         * opth-gen.awk: Likewise.
23371         * common.opt: Mark flag_fp_contract_mode as Optimization.
23373 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23375         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23376         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23378 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
23380         PR target/64659
23381         * config/sh/predicates.md (atomic_arith_operand,
23382         atomic_logical_operand): Remove.
23383         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23384         (atomic_arith_operand_0): New predicate.
23385         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23386         Use atomic_arith_operand_0 for input values.
23387         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23388         atomic_compare_and_swap<mode>_soft_gusa,
23389         atomic_compare_and_swap<mode>_soft_tcb,
23390         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23391         arith_reg_operand instead of register_operand.
23392         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
23393         atomic_arith_operand_0 for newval input.
23394         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23395         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23396         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23397         arith_reg_operand instead of register_operand.
23398         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23399         fetchop_predicate_1, fetchop_constraint_1_llcs,
23400         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23401         fetchop_constraint_1_imask): New code iterator attributes.
23402         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23403         register_operand.  Use fetchop_predicate_1.
23404         (atomic_fetch_<fetchop_name>si_hard,
23405         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23406         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23407         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23408         and arith_reg_operand instead of register_operand.  Use
23409         fetchop_predicate_1, fetchop_constraint_1_gusa.
23410         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23411         and arith_reg_operand instead of register_operand.  Use
23412         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
23413         to allow R0 usage.
23414         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23415         and arith_reg_operand instead of register_operand.  Use
23416         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
23417         to allow R0 usage.
23418         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23419         register_operand.  Use atomic_logical_operand_1.
23420         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23421         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23422         arith_reg_operand instead of register_operand.
23423         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23424         Use arith_reg_dest and arith_reg_operand instead of register_operand.
23425         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
23426         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23427         register_operand.  Use fetchop_predicate_1.
23428         (atomic_<fetchop_name>_fetchsi_hard,
23429         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23430         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23431         fetchop_constraint_1_llcs.
23432         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23433         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23434         fetchop_constraint_1_gusa.
23435         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23436         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23437         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
23438         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23439         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23440         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
23441         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23442         register_operand.  Use atomic_logical_operand_1.
23443         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23444         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23445         arith_reg_operand instead of register_operand.
23446         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23447         arith_reg_operand instead of register_operand.  Use logical_operand
23448         and K08.  Adjust asm sequence to allow R0 usage.
23449         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23450         arith_reg_operand instead of register_operand.  Use logical_operand
23451         and K08.
23453 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23455         PR other/63504
23456         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23457         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23458         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23459         only get_full_len HOST_WIDE_INTs from get_val () array rather than
23460         all bits in *val_wide.
23462 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
23464         * varpool.c (tls_model_names): Fix names.
23465         (varpool_node::dump): Dump tls- prefix for tls models.
23467 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
23468             Bernd Schmidt  <bernds@codesourcery.com>
23469             Nathan Sidwell  <nathan@codesourcery.com>
23471         * config/nvptx/mkoffload.c: New file.
23472         * config/nvptx/t-nvptx: Add build rules for it.
23473         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23474         (extra_programs): Add mkoffload.
23475         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23476         function.
23477         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23479 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
23481         PR middle-end/64809
23482         * cfgexpand.c (reorder_operands): Skip debug gimples.
23484 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
23486         PR tree-optimization/64277
23487         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23488         range info when possible to refine estimation.
23490 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23492         PR tree-optimization/64718
23493         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23494         be a 16bit unsigned integer when n->range is 16.
23495         (bswap_replace): Convert src to that type if necessary for all bswap
23496         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
23497         set in pass_optimize_bswap::execute ().
23499 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
23501         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23502         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23503         integer and floating point variants.
23504         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23506 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
23508         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23509         for all vector modes.
23511 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23513         PR bootstrap/64612
23514         * doc/sourcebuild.texi (comdat_group): Document.
23516 2015-01-28  Terry Guo  <terry.guo@arm.com>
23518         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23520 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
23522         * toplev.c (print_version): Add param "show_global_state", and
23523         only print GGC and plugin information if it is true.
23524         (init_asm_output): Pass in "true" for the new param when calling
23525         print_version.
23526         (process_options): Likewise.
23527         (toplev::main): Likewise.
23528         * toplev.h (print_version): Add new param to decl.
23530 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23532         PR ipa/60871
23533         PR ipa/64139
23534         * tree.c (lookup_binfo_at_offset): New function.
23535         (get_binfo_at_offset): Use it.
23537 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23539         PR ipa/64282
23540         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23541         on vtable being vtable.
23543 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23545         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23546         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23547         -mhotpatch= option.
23548         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23549         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
23550         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23551         Renamed.
23552         (s390_hotpatch_trampoline_halfwords_max): Renamed.
23553         (s390_hotpatch_hw_max): New name.
23554         (s390_hotpatch_trampoline_halfwords): Renamed.
23555         (s390_hotpatch_hw_before_label): New name.
23556         (get_hotpatch_attribute): Removed.
23557         (s390_hotpatch_hw_after_label): New name.
23558         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23559         attribute.
23560         (s390_attribute_table): Ditto.
23561         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23562         (s390_function_num_hotpatch_hw): New name.
23563         Remove special handling of inline functions and hotpatching.
23564         Return number of nops before and after the function label.
23565         (s390_can_inline_p): Removed.
23566         (s390_asm_output_function_label): Emit a configurable number of nops
23567         after the function label.
23568         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23569         (TARGET_CAN_INLINE_P) Removed.
23570         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23572 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23573             Jiong Wang  <jiong.wang@arm.com>
23575         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23576         of scratch reg.
23577         (cb<optab><mode>1): Likewise.
23578         * config/aarch64/iterators.md (bcond): New define_code_attr.
23580 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23582         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23583         memory accesses.
23585 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23587         * config/s390/s390.c (s390_register_move_cost): Increase costs for
23588         FPR->GPR moves.
23590 2015-01-27  Richard Biener  <rguenther@suse.de>
23592         * tree-vrp.c (update_value_range): Intersect the range with
23593         old recorded SSA name range information.
23595 2015-01-27  Nick Clifton  <nickc@redhat.com>
23597         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23598         BC, DE and HL registers directly, not via AX.
23599         When decrementing the stack pointer by a large amount, transfer SP
23600         into AX and perform the subtraction there.
23601         (rl78_expand_epilogue): Perform the inverse of the above
23602         enhancements.
23604 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23606         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23608 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23609             Yury Gribov  <y.gribov@samsung.com>
23611         PR ubsan/64741
23612         * ubsan.c (ubsan_source_location): Refactor code.
23613         (ubsan_type_descriptor): Update type size. Refactor code.
23615 2015-01-27  Richard Biener  <rguenther@suse.de>
23617         PR tree-optimization/56273
23618         PR tree-optimization/59124
23619         PR tree-optimization/64277
23620         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
23621         from the first VRP pass.
23623 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23625         PR ipa/64776
23626         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
23627         handle the first argument in the same loop as all the other arguments.
23629         PR rtl-optimization/61058
23630         * jump.c (cleanup_barriers): Update basic block boundaries
23631         if BLOCK_FOR_INSN is non-NULL on PREV.
23633 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
23635         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
23636         bounds narrowing, already instrumented calls and calls to
23637         not instrumentable functions.
23639 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23641         PR tree-optimization/64807
23642         * wide-int.cc (wi::divmod_internal): Clear
23643         b_dividend[dividend_blocks_needed].
23645 2015-01-26  DJ Delorie  <dj@redhat.com>
23647         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
23648         volatile memory references.
23650 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
23652         PR target/49263
23653         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
23654         remove_insn.
23655         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
23656         shifts if it already fits into K08.
23658 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
23660         PR ipa/64730
23661         * ipa-inline.c (inline_small_functions): Print "unknown" even
23662         if edge->call_stmt is non-NULL, but has builtins or unknown
23663         location.
23665         PR middle-end/64421
23666         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
23667         with asterisk, skip the first character.
23669 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23671         PR target/64806
23672         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
23673         order change.
23675 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
23677         PR target/64795
23678         * config/i386/i386.md (*movdi_internal): Also check operand 0
23679         to determine TYPE_LEA operand.
23680         (*movsi_internal): Ditto.
23682 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
23684         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
23685         OPTION_MASK_QUAD_MEMORY_ATOMIC.
23687 2015-01-26  Renlin Li  <renlin.li@arm.com>
23689         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
23690         the comment.
23691         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
23692         for higher part.
23694 2015-01-26  Richard Biener  <rguenther@suse.de>
23696         PR middle-end/64764
23697         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
23698         combining two BIT_AND_EXPR predicates.
23700 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23702         PR bootstrap/64754
23703         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
23705 2015-01-26  Terry Guo  <terry.guo@arm.com>
23707         * config/arm/arm.c (arm_file_start): Update the assignment of
23708         Tag_ABI_HardFP_use.
23710 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
23712         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
23713         pipeline model.
23714         config/arm/arm.md: Include the new Cortex-A57 model.
23715         (generic_sched): Don't use generic_sched when tuning for
23716         Cortex-A57.
23718 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
23719             Uros Bizjak  <ubizjak@gmail.com>
23721         * config/i386/i386.c (get_builtin_code_for_version): Add
23722         support for BMI and BMI2 multiversion functions.
23724 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23726         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
23727         (extract_bit_field): Likewise.
23728         (extract_low_bits): Likewise.
23729         (expand_mult): Likewise.
23730         (expand_mult_highpart_adjust): Likewise.
23732 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23734         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
23735         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
23736         * config/i386/i386.c (processor_model): Add
23737         M_INTEL_COREI7_BROADWELL.
23738         (arch_names_table): Add "broadwell".
23740 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
23742         PR target/49263
23743         PR target/53987
23744         PR target/64345
23745         PR target/59533
23746         PR target/52933
23747         PR target/54236
23748         PR target/51244
23749         * config/sh/sh-protos.h
23750         (sh_extending_set_of_reg::can_use_as_unextended_reg,
23751         sh_extending_set_of_reg::use_as_unextended_reg,
23752         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
23753         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
23754         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
23755         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
23756         (sh_treg_insns): New class.
23757         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
23758         (scope_counter): New class.
23759         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
23760         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
23761         sh_extending_set_of_reg::can_use_as_unextended_reg,
23762         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
23763         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
23764         sh_split_treg_set_expr): New functions.
23765         (addsubcosts): Handle treg_set_expr.
23766         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
23767         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
23768         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
23769         (sh_insn_operands_modified_between_p): Make non-static.
23770         * config/sh/predicates.md (zero_extend_movu_operand): Allow
23771         simple_mem_operand in addition to displacement_mem_operand.
23772         (zero_extend_operand): Don't allow zero_extend_movu_operand.
23773         (treg_set_expr, treg_set_expr_not_const01,
23774         arith_reg_or_treg_set_expr): New predicates.
23775         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
23776         arith_or_int_operand instead of logical_operand.  Convert to
23777         insn_and_split.  Try to optimize constant operand in splitter.
23778         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
23779         (*tstqi_t_zero): Delete.
23780         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
23781         (tstsi_t_and_not): Delete.
23782         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
23783         Convert to insn_and_split.
23784         (unnamed split, tstsi_t_zero_extract_xor,
23785         tstsi_t_zero_extract_subreg_xor_little,
23786         tstsi_t_zero_extract_subreg_xor_big): Delete.
23787         (*tstsi_t_shift_mask): New insn_and_split.
23788         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
23789         to recombine with surrounding insns when splitting.
23790         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
23791         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
23792         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
23793         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
23794         (*cbranch_div0s: Delete.
23795         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
23796         Try to recombine with surrounding insns when splitting.  Add operand
23797         order variants.
23798         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
23799         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
23800         *addc_r_r_msb, *addc_2r_msb): Delete.
23801         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
23802         order variant.
23803         (*addc_negreg_t): New insn_and_split.
23804         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
23805         Try to recombine with surrounding insns when splitting.
23806         Add operand order variants.
23807         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
23808         insn_and_split patterns.
23809         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
23810         surrounding insns when splitting.
23811         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
23812         (*rotcl): Likewise.  Add zero_extract variant.
23813         (*ashrsi2_31): New insn_and_split.
23814         (*negc): Convert to insn_and_split.  Use treg_set_expr.
23815         (*zero_extend<mode>si2_disp_mem): Update comment.
23816         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
23817         condition.
23818         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
23819         with surrounding insns when splitting.
23820         (any_treg_expr_to_reg): New insn_and_split.
23821         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
23822         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
23823         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
23824         *zero_extract_2): New single bit zero extract patterns.
23825         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
23826         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
23827         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
23828         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
23829         set destination.
23830         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
23831         register_operand for set source.
23833 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
23835         * i386.opt (prefetch_sse): New targetsave.
23836         * i386.c (ix86_function_specific_save): Save prefetch_sse.
23837         (ix86_function_specific_restore): Restore prefetch_sse and initialize
23838         ix86_cost/ix86_tune_cost.
23840 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
23842         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
23843         Support the JIT by using 0 as the language type.
23845 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
23847         PR target/64317
23848         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
23849         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
23850         (mark_regno_live, process_bb_lives): Pass new parameter value to
23851         make_hard_regno_born.
23853 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
23855         PR rtl-optimization/63637
23856         PR rtl-optimization/60663
23857         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
23858         if elt->cost is MAX_COST for ASM_OPERANDS.
23859         (find_sets_in_insn): Fix up comment typo.
23860         (cse_insn): Don't set src_volatile for all non-volatile
23861         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
23862         or with "memory" clobber.  Set elt->cost to MAX_COST
23863         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
23864         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
23866 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
23868         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
23869         alternative 1.
23871 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
23873         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
23874         libgcc/config/i386/elf-lib.h.
23876 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
23878         PR driver/64737
23879         * gcc.c (print_configuration): Don't print a blank line at the end
23880         here...
23881         (run_attempt): ... but here unstead.
23883         PR middle-end/64734
23884         * omp-low.c (scan_sharing_clauses): Don't ignore
23885         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
23886         on target data/update constructs.
23888 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23890         PR target/50928
23891         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
23892         (DEBUG_RELOAD): Removed define.
23893         (m32c_limit_reload_class): Enable traces with if DEBUG0.
23894         (m32c_function_arg): Added a type cast.
23895         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
23896         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
23897         * config/m32c/bitops.md (andqi3_16): Likewise.
23898         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
23899         (push_a01_l): Likewise.
23901 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
23903         PR jit/64721
23904         * main.c (main): Construct toplev instances with init_signals=true.
23905         * toplev.c (general_init): Add param "init_signals", and use it to
23906         conditionalize the calls to signal and host_hooks.extra_signals.
23907         (toplev::toplev): Add param "init_signals".
23908         (toplev::main): When invoking general_init, pass m_init_signals
23909         to control whether signal-handlers are installed.
23910         * toplev.h (toplev::toplev): Add param "init_signals".
23911         (toplev::m_init_signals): New field.
23913 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
23915         PR jit/64722
23916         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
23917         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
23918         latter may be affected by the former (e.g. on i686).
23920 2015-01-23  Martin Liska  <mliska@suse.cz>
23922         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
23923         false positive during profiledbootstrap.
23925 2015-01-23  Tom de Vries  <tom@codesourcery.com>
23927         PR libgomp/64672
23928         * lto-opts.c (lto_write_options): Output non-explicit conservative
23929         -fno-openacc.
23930         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
23931         (append_compiler_options): Pass -fopenacc through.
23933 2015-01-23  Tom de Vries  <tom@codesourcery.com>
23935         PR libgomp/64707
23936         * lto-opts.c (lto_write_options): Output non-explicit conservative
23937         -fno-openmp.
23938         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
23939         (append_compiler_options): Pass -fopenmp through.
23941 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
23943         PR debug/64511
23944         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
23945         GTY markup.
23947         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
23948         * diagnostic.def (DK_ICE_NOBT): New kind.
23949         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
23950         like DK_ICE, but never print backtrace.
23951         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
23952         (internal_error_no_backtrace): New function.
23953         * gcc.c (execute): Use internal_error_no_backtrace instead of
23954         internal_error.
23956 2015-01-22  Jeff Law  <law@redhat.com>
23958         PR target/52076
23959         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
23960         improve code density for small immediate to memory case.
23961         (insv): Better handle bitfield assignments when the field is
23962         being set to all ones.
23963         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
23964         operand predicate.
23966 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23967             Jakub Jelinek  <jakub@redhat.com>
23969         PR middle-end/64729
23970         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
23971         for !TARGET_LIBC_PROVIDES_SSP version and
23972         -fstack-protector-{all,strong,explicit} otherwise.
23973         * config/freebsd.h (LINK_SSP_SPEC): Handle
23974         -fstack-protector-{strong,explicit}.
23976 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
23977             H.J. Lu  <hongjiu.lu@intel.com>
23979         PR ipa/64694
23980         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
23981         heap.
23983 2015-01-22  Wei Mi  <wmi@google.com>
23985         PR rtl-optimization/64557
23986         * dse.c (record_store): Call get_addr for mem_addr.
23987         (check_mem_read_rtx): Likewise.
23989 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23991         * fold-const.c (const_binop): Add early return for non-tcc_binary.
23993 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
23995         * toplev.c (init_local_tick): Process the failure when read
23996         fails for random_seed.
23998         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
23999         'pretty_name' to avoid memory overflow.
24001 2015-01-22  Richard Biener  <rguenther@suse.de>
24003         PR middle-end/64728
24004         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24005         abnormal coalescing on undefined SSA names.
24007 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
24009         PR target/64688
24010         PR target/64477
24011         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24012         for alternative 3.
24013         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24015 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
24017         PR middle-end/63325
24018         * fold-const.c (fold_checksum_tree): Don't include value of
24019         expr->decl_with_vis.symtab_node in the checksum.
24021 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24023         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24025 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24027         PR driver/64690
24028         * gcc.c (insert_comments): New function.
24029         (try_generate_repro): Call it.
24030         (append_text): Removed.
24032 2015-01-22  Richard Biener  <rguenther@suse.de>
24034         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24035         with IL incompatible options.  Properly honor user optimize
24036         attributes.
24038 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
24040         PR rtl-optimization/64682
24041         * combine.c (distribute_notes): When moving a death note for
24042         a register that is set in the new I2, make sure to put it
24043         before that new I2.
24045 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
24047         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24048         not TARGET_DEFAULT.
24050 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
24052         PR debug/64511
24053         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24054         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24055         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24057         PR sanitizer/64706
24058         * doc/invoke.texi (-fsanitize=vptr): Document.
24060         PR rtl-optimization/62078
24061         * dse.c: Include cfgcleanup.h.
24062         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24063         anything call purge_all_dead_edges and cleanup_cfg at the end
24064         of the pass.
24066 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
24068         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24069         edges.
24071 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24073         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24074         decl attribute.
24076 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24077             Tejas Belagod <Tejas.Belagod@arm.com>
24079         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24080         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24081         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24082         Removed.
24084 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24085             Tejas Belagod <Tejas.Belagod@arm.com>
24087         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24088         (aarch64_reverse_mask): New decls.
24089         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24090         (insn_count): New mode_attr.
24091         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24092         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24093         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24094         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24095         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24096         (aarch64_simd_st4): New patterns.
24097         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24098         (aarch64_reverse_mask): New functions.
24100 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
24102         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24103         Declare.
24104         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24105         addressing modes for BE.
24106         (aarch64_print_operand): Add 'R' specifier.
24107         (aarch64_simd_disambiguate_copy): Delete.
24108         (aarch64_simd_emit_reg_reg_move): New function.
24109         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24110         in define_splits for structural moves.
24111         (mov<mode>): Use less restrictive predicates.
24112         (*aarch64_mov<mode>): Simplify and only allow for LE.
24113         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24115 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
24117         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24119 2015-01-21  Richard Henderson  <rth@redhat.com>
24121         PR target/64669
24122         * ccmp.c (used_in_cond_stmt_p): Remove.
24123         (expand_ccmp_expr): Don't use it.
24125 2015-01-21  Nick Clifton  <nickc@redhat.com>
24127         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24128         PARALLELs.
24130 2015-01-21  Richard Biener  <rguenther@suse.de>
24132         PR middle-end/64313
24133         * tree-core.h (builtin_info, builtin_info_type): Turn from
24134         an object with two arrays into an array of an object with
24135         decl and two flags, implicit_p and declared_p.
24136         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24137         set_builtin_decl, set_builtin_decl_implicit_p,
24138         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24139         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24140         * builtins.c (builtin_info): Adjust.
24141         * gimplify.c (gimplify_addr_expr): References to builtins
24142         that have been declared by the user makes them eligible for
24143         use by the compiler.  Call set_builtin_decl_implicit_p on them.
24145 2015-01-20  Jeff Law  <law@redhat.com>
24147         PR target/59946
24148         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24149         allow pc-relative addresses in operand predicates or constraints.
24151 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
24153         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24154         neon on aarch32 processors for stringops.
24156 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24158         PR ipa/63576
24159         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24161 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24163         PR lto/45375
24164         * ipa-inline.c: Include lto-streamer.h
24165         (report_inline_failed_reason): Output source file differences and
24166         flags on optimization/target node mismatch.
24167         (can_inline_edge_p): Consider caller to be the outer inline function;
24168         be less restrictive about matching opimize and optimize_size attributes.
24169         (inline_account_function_p): Break out from ...
24170         (inline_small_functions): ... here.
24171         * ipa-inline-transform.c (clone_inlined_nodes): Use
24172         inline_account_function_p.
24173         (inline_call): Use optimize attribution; use inline_account_function_p.
24174         (inline_transform): Use opt_for_fn.
24175         * ipa-inline.h (inline_account_function_p): Declare.
24177 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
24179         PR debug/64663
24180         * dwarf2out.c (decl_piece_node): Don't put bitsize into
24181         mode if bitsize <= 0.
24182         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24183         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24184         sizes and positions.
24186 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
24188         * config/nios2/nios2.c (nios2_asm_file_end): Implement
24189         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24190         needed.
24191         (TARGET_ASM_FILE_END): Define.
24193 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24195         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24196         (struct tune_params): Use the enum.
24197         * arm.c (arm_*_tune): Update.
24198         (arm_option_override): Update.
24200 2015-01-20  Richard Biener  <rguenther@suse.de>
24202         PR ipa/64684
24203         * ipa-reference.c (add_static_var): Inline ...
24204         (analyze_function): ... here after splitting out from ...
24205         (is_proper_for_analysis): ... this.
24207 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
24209         PR target/64149
24210         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24211         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24212         replace the conditional with it's true branch.
24213         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24214         (arm_lra_p): Remove.
24216 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
24218         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24220 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24222         * config/tilegx/mul-tables.c: Move symtab.h include after
24223         coretypes.h include.
24224         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24225         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24226         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24227         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24228         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24230 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
24232         PR bootstrap/64676
24233         Revert:
24234         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24236         PR rtl-optimization/64081
24237         * loop-iv.c (def_pred_latch_p): New function.
24238         (latch_dominating_def): Allow specific cases with non-single
24239         definitions.
24240         (iv_get_reaching_def): Likewise.
24241         (check_complex_exit_p): New function.
24242         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24243         with exits not executing on any iteration.
24245 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24247         PR lto/45375
24248         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24249         to set branch cost.
24251 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24253         PR lto/45375
24254         * i386.c (gate): Check flag_expensive_optimizations and
24255         optimize_size.
24256         (ix86_option_override_internal): Drop optimize_size condition
24257         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24258         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24259         MASK_PREFER_AVX128.
24260         (ix86_avx256_split_vector_move_misalign,
24261         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24262         * sse.md (all uses of TARGET_PREFER_AVX128): Add
24263         optimize_insn_for_speed_p check.
24265 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
24267         * config/mips/mips.h (FP_ASM_SPEC): New define.
24268         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24269         instead.
24271 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
24273         PR target/53988
24274         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24275         nullptr for insn when reaching the first insn.
24276         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24277         (sh_insn_operands_modified_between_p): Add nullptr check.
24278         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
24279         sign extending mem load if the insn contains any UNSPEC or
24280         UNSPEC_VOLATILE.
24282 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24284         * params.def (inline-unit-growth): Drop to 15%.
24285         * invoke.texi (inline-unit-growth): Document change.
24287 2015-01-19  Martin Liska  <mliska@suse.cz>
24289         PR ipa/64668
24290         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24291         function for second argument of OBJ_TYPE_REF.
24293 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24295         PR ipa/64218
24296         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24297         whether function is an alias.
24299 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24301         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24302         cases.
24304 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
24306         PR rtl-optimization/64671
24307         * lra-remat.c (operand_to_remat): Don't consider jump and call
24308         insns.
24310 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
24312         PR target/59828
24313         * config/rs6000/default64.h: Include rs6000-cpus.def.
24314         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24315         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24316         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24317         and POWER8.
24318         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24319         POWER8.
24320         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24321         pseudo-op to specify assembler dialect.
24323 2015-01-19  Martin Liska  <mliska@suse.cz>
24325         PR ipa/64664
24326         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24327         Handle safe potentially removed nodes during filtering.
24329 2015-01-19  Martin Liska  <mliska@suse.cz>
24331         * doc/extend.texi (no_icf): Add new attribute description.
24332         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24333         where the pass attempts to merge a function with no_icf attribute.
24335 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24337         PR target/64532
24338         * doc/md.texi (ARM Options): Document register constraints.
24340 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
24341             Andrew Pinski  <apinski@cavium.com>
24343         PR target/64304
24344         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24345         (ashl<mode>3): Don't expand if operands[2] is not constant.
24347 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24349         PR target/64448
24350         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24351         Match xor-and-xor RTL pattern.
24353 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24355         PR rtl-optimization/64081
24356         * loop-iv.c (def_pred_latch_p): New function.
24357         (latch_dominating_def): Allow specific cases with non-single
24358         definitions.
24359         (iv_get_reaching_def): Likewise.
24360         (check_complex_exit_p): New function.
24361         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24362         with exits not executing on any iteration.
24364 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
24366         * common.opt (fgraphite): Fix a typo.
24368 2015-01-19  Felix Yang  <felix.yang@huawei.com>
24370         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24371         pattern.
24372         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24373         uminp, smax_nanp, smin_nanp): New builtins.
24374         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24375         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24376         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24377         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24378         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24379         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24380         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24381         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24382         vpminnms_f32): Rewrite using builtin functions.
24384 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
24386         PR libgomp/64625
24387         * omp-low.c (offload_symbol_decl): Remove variable.
24388         (get_offload_symbol_decl): Remove function.
24389         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24390         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24391         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24392         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24393         BUILT_IN_GOACC_UPDATE don't pass it at all.
24395 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24397         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24398         callers.
24400 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24402         * ipa-chkp.c (chkp_produce_thunks): Add early param
24403         to split thunks production into two passes.  Keep
24404         'always_inline' function bodies after the first pass.
24405         (pass_data_ipa_chkp_early_produce_thunks): New.
24406         (pass_ipa_chkp_early_produce_thunks): New.
24407         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24408         chkp_produce_thunks signature.
24409         (make_pass_ipa_chkp_early_produce_thunks): New.
24410         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24411         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24412         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24414 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24416         * cgraph.c (cgraph_node::dump): Dump profile flags.
24418 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
24420         PR target/64652
24421         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24422         reg appear first in the parallel.
24424 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24426         * ipa-reference.c (set_reference_optimization_summary,
24427         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24428         disabled.
24429         (ignore_module_statics): New static var.
24430         (propagate_bits): If ipa-reference is disabled, do not look into local
24431         properties.
24432         (analyze_function): Disable analysis when ipa_reference is disabled.
24433         (generate_summary): Do not dump when reference is disabled;
24434         collect vars accessed from functions with ipa-reference disabled.
24435         (get_read_write_all_from_node): When ipa-reference is disabled, use the
24436         node flags.
24437         (gate): Enable for LTO.
24438         (ignore_edge_p): New function.
24439         (propagate): Skip functions w/o ipa-reference analysis.
24440         * optc-save-gen.awk: Handle optimize_debug correctly.
24441         * opth-gen.awk: Likewise.
24442         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24443         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24444         fira-share-save-slots, fira-share-spill-slots,
24445         fmodulo-sched-allow-regmoves, fpartial-inlining,
24446         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24447         ftracer, ftree-parallelize-loops, fassociative-math,
24448         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24449         Optimization
24450         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24451         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24452         Optimization.
24453         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24454         Fix for IPA.
24456 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24458         PR ipa/64378
24459         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24460         flag correctly.
24461         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24463 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24465         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24466         Remove duplicate option listings.
24468 2015-01-18  Felix Yang  <felix.yang@huawei.com>
24470         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24471         (autofdo_source_profile::get_callsite_total_count,
24472         function_instance::get_function_instance_by_decl,
24473         string_table::get_index, string_table::get_index_by_decl,
24474         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24475         Fix comment typos. Reformatting and minor code rearrangement.
24477 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24479         * config/rs6000/rs6000.md (probe_stack): Delete.
24480         (probe_stack_address): New.
24482 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24484         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24485         to test for 32-bit ABIs, not !TARGET_POWERPC64.
24487 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24489         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24490         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
24491         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
24492         snafu.
24493         (rs6000_libcall_value): Use the new function.
24495 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
24497         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24499 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24501         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24502         implement a more precise life analysis for it during backward scan.
24504 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
24506         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24508 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
24510         PR rtl-optimization/52773
24511         * calls.c (emit_library_call_value): When pushing arguments use
24512         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24513         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
24514         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24516 2015-01-17  Jeff Law  <law@redhat.com>
24518         PR rtl-optimization/32790
24519         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24520         not ZERO_EXTEND in SET_DESTs.
24522 2015-01-17  Alan Modra  <amodra@gmail.com>
24524         * cprop.c (do_local_cprop): Revert last change.
24526 2015-01-16  DJ Delorie  <dj@redhat.com>
24527             Nick Clifton  <nickc@redhat.com>
24529         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24530         (addhi3_real): Likewise.  Fix [HL+0] syntax.
24531         (subqi3_real): Likewise.
24532         (subhi3_real): Likewise.
24533         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
24534         (cbranchhi4_real): Likewise.
24535         (cbranchhi4_real_inverted): Likewise.
24536         (cbranchsi4_real_lt): Likewise.
24537         (cbranchsi4_real_ge): Likewise.
24538         (cbranchsi4_real_ge): Likewise.
24539         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24540         (sub<mode>3_virt): Likewise.
24541         (cbranchqi4_virt): Likewise.
24542         (cbranchhi4_virt): Likewise.
24543         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24544         always use '[reg+imm]' even when imm is zero.
24545         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24546         (rl78_general_operand): New.
24547         (rl78_nonimmediate_operand): New.
24548         (rl78_nonfar_operand): Use them.
24549         (rl78_nonfar_nonimm_operand): Likewise.
24550         (rl78_stack_based_mem): Fix.
24551         * config/rl78/constraints.md (Ibqi): New.
24552         (IBqi): New.
24553         (Wsa): New.
24554         (Wsf): New.
24555         (Cs1): Fix.
24556         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24557         (iorqi3): Likewise.
24558         (xorqi3): Likewise.
24559         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24561         * config/rl78/constrains (Qs8): New constraint.
24562         * config/rl78/rl78.c (rl78_flags_already_set): New function.
24563         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24564         * config/rl78/rl78-real.md (update_Z): New attribute.
24565         Update patterns to set it.
24566         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24567         shorter compare and branch sequence can be used.
24568         (cbranchhi4_real): Likewise.
24569         (cbranchhi4_real_inverted): Likewise.
24571         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24572         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24573         address space.
24574         * config/rl78/rl78.c (rl78_get_name_encoding): New.
24575         (rl78_option_override): Allow -mes0 only if C.
24576         (characterize_address): Support subregs of symbol_refs.
24577         (rl78_addr_space_address_mode): Move.  Add __near.
24578         (rl78_far_p): Likewise.
24579         (rl78_addr_space_pointer_mode): Likewise.
24580         (rl78_as_legitimate_address): Likewise.
24581         (rl78_addr_space_subset_p): Likewise.
24582         (rl78_addr_space_convert): Likewise.
24583         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24584         symbols with -mes0.
24585         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
24586         addressing.
24587         (rl78_alloc_physical_registers_op1): Change logic to prefer
24588         symbol[BC] addressing.
24589         (frodata_section): New.
24590         (rl78_asm_init_sections): Initialize it.
24591         (rl78_select_section): Put __far readonly symbols in .frodata.
24592         (rl78_make_type_far): New.
24593         (rl78_insert_attributes): Force all readonly symbols to be
24594         __far when -mes0.
24595         (rl78_asm_out_integer): New.
24596         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24597         * config/rl78/rl78.opt (-mes0): New.
24599         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24600         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24601         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24602         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24603         (rl78_saddr_p): New.
24604         (rl78_output_aligned_common): New.
24605         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24606         (rl78_handle_saddr_attribute): New.
24607         (rl78_handle_naked_attribute): New.
24608         (rl78_attribute_table): Add saddr.
24609         (rl78_print_operand_1): Don't print '!' on saddr operands.
24610         (rl78_print_operand_1): Strip encodings.
24611         (rl78_sfr_p): New.
24612         (rl78_strip_name_encoding): New.
24613         (rl78_attrlist_to_encoding): New.
24614         (rl78_encode_section_info): New.
24615         (rl78_asm_init_sections): New.
24616         (rl78_select_section): New.
24617         (rl78_output_labelref): New.
24618         (rl78_output_aligned_common): New.
24619         (rl78_asm_out_integer): New.
24620         (rl78_asm_ctor_dtor): New.
24621         (rl78_asm_constructor): New.
24622         (rl78_asm_destructor): New.
24624         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
24625         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
24626         (transcode_memory_rtx): Update.
24627         (rl78_expand_epilogue): Use A_REG instead of 0.
24629 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24631         * config/arm/arm-protos.h (struct tune_params): New field
24632         sched_autopref_queue_depth.
24633         * config/arm/arm.c (sched-int.h): Include header.
24634         (arm_first_cycle_multipass_dfa_lookahead_guard,)
24635         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
24636         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
24637         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
24638         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
24639         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
24640         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
24641         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
24642         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
24643         * config/arm/t-arm (arm.o): Update.
24644         * haifa-sched.c (update_insn_after_change): Update.
24645         (rank_for_schedule): Use auto-prefetcher model, if requested.
24646         (autopref_multipass_init): New static function.
24647         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
24648         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
24649         variable for debug dumps.
24650         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
24651         (autopref_multipass_dfa_lookahead_guard): New global function that
24652         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
24653         (init_h_i_d): Update.
24654         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
24655         * sched-int.h (enum autopref_multipass_data_status): New const enum.
24656         (autopref_multipass_data_): Structure for auto-prefetcher data.
24657         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
24658         (struct _haifa_insn_data:autopref_multipass_data): New field.
24659         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
24660         (autopref_multipass_dfa_lookahead_guard): Declare.
24662 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24664         * rtlanal.c (get_base_term): Handle SCRATCH.
24666 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24668         * config/aarch64/aarch64.c
24669         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
24670         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24671         * config/arm/arm.c
24672         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
24673         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24675 2015-01-17  Alan Modra  <amodra@gmail.com>
24677         * cprop.c (do_local_cprop): Disallow replacement of fixed
24678         hard registers.
24680 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24682         PR target/62066
24683         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
24684         early return 0.
24686 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24688         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
24689         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
24691 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24693         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
24694         * config/arm/thumb1.md: ... Here.
24696 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24698         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
24699         TImode for TARGET_32BIT.
24701 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24703         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
24704         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
24705         as ...
24706         (rs6000_abi_word_mode): New function.
24708 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24710         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
24711         instead of UNITS_PER_WORD to describe the size of stack slots.
24713 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24715         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
24716         as rs6000_promote_function_mode.  Move comment to there.
24717         (rs6000_promote_function_mode): New function.
24719 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24721         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
24722         -mpowerpc64 is active.
24724 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
24726         PR middle-end/64353
24727         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
24728         virtuals on start.
24730 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
24732         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
24733         introduced in revision 219724.
24735 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24736             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24738         PR target/64263
24739         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
24740         destination is not a GP reg.
24741         (*movdi_aarch64): Likewise.
24743 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
24745         PR target/64623
24746         * config/rs6000/default64.h: Revert ISA change.
24748 2015-01-16  Richard Biener  <rguenther@suse.de>
24750         PR middle-end/64614
24751         * tree-ssa-uninit.c: Include tree-cfg.h.
24752         (MAX_SWITCH_CASES): New define.
24753         (convert_control_dep_chain_into_preds): Handle switch statements.
24754         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
24755         (normalize_one_pred_1): Do not split bit-manipulations.
24756         Record (x & CST).
24758 2015-01-16  Richard Biener  <rguenther@suse.de>
24760         PR tree-optimization/64568
24761         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
24762         complex load rewriting for TARGET_MEM_REFs.
24764 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
24766         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
24768 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
24770         PR target/64149
24771         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
24772         variable.
24773         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
24774         (aarch64_lra_p): Remove.
24776 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
24778         PR target/64363
24779         * ipa-chkp.h (chkp_instrumentable_p): New.
24780         * ipa-chkp.c: Include tree-inline.h.
24781         (chkp_instrumentable_p): New.
24782         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
24783         Fix processing of not instrumentable functions.
24784         (chkp_versioning): Use chkp_instrumentable_p. Warn about
24785         not instrumentable functions.
24786         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
24787         chkp_instrumentable_p.
24788         * tree-inline.h (copy_forbidden): New.
24789         * tree-inline.c (copy_forbidden): Not static anymore.
24791 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24793         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
24794         ptr1, ptr2 unused.
24796 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
24798         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
24799         type OP_OUT to OP_INOUT.
24801 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
24803         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
24804         (high x) y) to y if x and y have the same base.
24806 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
24808         * config/arm/cortex-a57.md: New.
24809         * config/aarch64/aarch64.md: Include it.
24810         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
24811         * config/aarch64/aarch64-tune.md: Regenerate.
24813 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
24815         PR target/64015
24816         * ccmp.c (expand_ccmp_next): New function.
24817         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
24818         and compare insn sequence.
24819         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
24820         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
24821         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
24822         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
24823         (*ccmp_ior): Changed to ccmp_ior<mode>.
24824         (cmp<mode>): New pattern.
24825         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
24826         parameters.
24827         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
24829 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
24831         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
24832         _mm256_bsrli_epi128): New.
24833         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
24835 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
24837         * expmed.c (store_bit_field_using_insv): Improve warning message.
24838         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
24840 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
24842         PR rtl-optimization/64011
24843         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
24844         there is partial overflow.
24846 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
24848         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
24849         prototype.
24850         (nds32_expand_epilogue_v3pop): Likewise.
24851         * config/nds32/nds32.md (sibcall): Define this for sibling call
24852         optimization.
24853         (sibcall_register): Likewise.
24854         (sibcall_immediate): Likewise.
24855         (sibcall_value): Likewise.
24856         (sibcall_value_register): Likewise.
24857         (sibcall_value_immediate): Likewise.
24858         (sibcall_epilogue): Likewise.
24859         (epilogue): Pass false to indicate this is not a sibcall epilogue.
24860         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
24861         (nds32_expand_epilogue_v3pop): Likewise.
24863 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
24865         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
24866         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
24867         (return_internal): New.
24868         (return): Define this named pattern.
24869         (simple_return): Define this named pattern.
24870         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
24871         pattern instead of unspec_volatile_func_return.
24872         (nds32_expand_epilogue_v3pop): Likewise.
24873         (nds32_can_use_return_insn): New function.
24875 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
24877         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
24878         * config/nds32/nds32.md (pop25return): New.
24879         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
24880         pop25return pattern.
24882 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
24884         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
24885         -mforbid-fp-as-gp, and -mex9 options.
24887 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
24889         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
24890         remove -mgp-direct option.
24892 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
24894         * doc/invoke.texi (--param early-inlining-insns): Update default value.
24895         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
24897 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
24899         * ipa-inline.c (inline_small_functions): Work around hints
24900         cache issue.
24902 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
24904         PR target/59710
24905         * doc/invoke.texi (Option Summary): Document new Nios II
24906         -mgpopt= syntax.
24907         (Nios II Options): Likewise.
24908         * config/nios2/nios2.opt: Add -mgpopt= option support.
24909         Modify existing -mgpopt and -mno-gpopt options to be aliases.
24910         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
24911         * config/nios2/nios2.c (nios2_option_override): Adjust
24912         -mgpopt defaulting.
24913         (nios2_in_small_data_p): Return true for explicit small data
24914         sections even with -G0.
24915         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
24916         option choices.
24918 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
24920         PR ipa/64612
24921         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
24922         of comdat locals.
24923         (inline_call): Fix removal of aliases.
24925 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
24927         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
24928         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
24929         * opts.c (common_handle_option): Add -fsanitize=vptr.
24930         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
24931         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
24932         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
24933         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
24934         (ubsan_expand_vptr_ifn): New prototype.
24935         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
24936         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
24937         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
24938         expand_LOOP_VECTORIZED): Make argument nameless, remove
24939         ATTRIBUTE_UNUSED.
24940         (expand_UBSAN_VPTR): New function.
24941         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
24942         in fn spec.
24943         (UBSAN_VPTR): New internal function.
24944         * sanopt.c (tree_map_traits): Renamed to ...
24945         (sanopt_tree_map_traits): ... this.
24946         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
24947         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
24948         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
24949         (maybe_optimize_ubsan_vptr_ifn): New function.
24950         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
24951         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
24952         -fsanitize=vptr.
24953         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
24954         internal calls like pure functions for aliasing, even when they
24955         have other side-effects that prevent making them ECF_PURE.
24956         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
24957         (ubsan_expand_vptr_ifn): New function.
24959 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
24961         PR rtl-optimization/64110
24962         * stmt.c (parse_output_constraint): Process '^' and '$'.
24963         (parse_input_constraint): Ditto.
24964         * lra-constraints.c (process_alt_operands): Process the new
24965         constraints.
24966         * ira-costs.c (record_reg_classes): Process the new constraint
24967         '^'.
24968         * genoutput.c (indep_constraints): Add '^' and '$'.
24969         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
24970         * doc/md.texi: Add description of the new constraints.
24972 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
24973             Bernd Schmidt  <bernds@codesourcery.com>
24974             Cesar Philippidis  <cesar@codesourcery.com>
24975             James Norris  <jnorris@codesourcery.com>
24976             Tom de Vries  <tom@codesourcery.com>
24977             Ilmir Usmanov  <i.usmanov@samsung.com>
24978             Dmitry Bocharnikov  <dmitry.b@samsung.com>
24979             Evgeny Gavrin  <e.gavrin@samsung.com>
24980             Jakub Jelinek  <jakub@redhat.com>
24982         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
24983         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24984         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24985         New function types.
24986         * builtins.c: Include "gomp-constants.h".
24987         (expand_builtin_acc_on_device): New function.
24988         (expand_builtin, is_inexpensive_builtin): Handle
24989         BUILT_IN_ACC_ON_DEVICE.
24990         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
24991         New macros.
24992         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
24993         flag_openmp.
24994         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
24995         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
24996         i386/intelmic-offload.h.
24997         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
24998         to libgomp and its dependencies.
24999         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25000         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25001         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25002         * config/ia64/hpux.h (LIB_SPEC): Likewise.
25003         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25004         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25005         * doc/generic.texi: Update for OpenACC changes.
25006         * doc/gimple.texi: Likewise.
25007         * doc/invoke.texi: Likewise.
25008         * doc/sourcebuild.texi: Likewise.
25009         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25010         GF_OMP_FOR_KIND_OACC_LOOP.
25011         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25012         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25013         GF_OMP_TARGET_KIND_OACC_UPDATE,
25014         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25015         Dump more data.
25016         * gimple.c: Update comments for OpenACC changes.
25017         * gimple.def: Likewise.
25018         * gimple.h: Likewise.
25019         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25020         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25021         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25022         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25023         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25024         appropriate place.
25025         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25026         * gimplify.c: Include "gomp-constants.h".
25027         Update comments for OpenACC changes.
25028         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25029         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25030         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25031         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25032         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25033         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25034         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25035         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25036         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25037         OMP_CLAUSE_SEQ.
25038         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25039         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25040         OMP_CLAUSE_SET_MAP_KIND.
25041         (gimplify_oacc_cache): New function.
25042         (gimplify_omp_for): Handle OACC_LOOP.
25043         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25044         OACC_DATA.
25045         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25046         OACC_EXIT_DATA, OACC_UPDATE.
25047         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25048         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25049         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25050         (gimplify_body): Consider flag_openacc next to flag_openmp.
25051         * lto-streamer-out.c: Include "gomp-constants.h".
25052         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25053         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25054         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25055         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25056         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25057         (BUILT_IN_ACC_ON_DEVICE): New builtins.
25058         * omp-low.c: Include "gomp-constants.h".
25059         Update comments for OpenACC changes.
25060         (struct omp_context): Add reduction_map, gwv_below, gwv_this
25061         members.
25062         (extract_omp_for_data, use_pointer_for_field, install_var_field)
25063         (new_omp_context, delete_omp_context, scan_sharing_clauses)
25064         (create_omp_child_function, scan_omp_for, scan_omp_target)
25065         (check_omp_nesting_restrictions, lower_reduction_clauses)
25066         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25067         Update for OpenACC changes.
25068         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25069         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25070         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25071         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25072         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25073         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
25074         OMP_CLAUSE_MAP_*.
25075         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25076         Handle GF_OMP_FOR_KIND_OACC_LOOP.
25077         (expand_omp_target, lower_omp_target): Handle
25078         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25079         GF_OMP_TARGET_KIND_OACC_UPDATE,
25080         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25081         GF_OMP_TARGET_KIND_OACC_DATA.
25082         (pass_expand_omp::execute, execute_lower_omp)
25083         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25084         flag_openmp.
25085         (offload_symbol_decl): New variable.
25086         (oacc_get_reduction_array_id, oacc_max_threads)
25087         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25088         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25089         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25090         (oacc_gimple_assign, oacc_initialize_reduction_data)
25091         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25092         functions.
25093         (is_targetreg_ctx): Remove function.
25094         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25095         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25096         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25097         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25098         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25099         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25100         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25101         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25102         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25103         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25104         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25105         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25106         * tree-core.h: Update comments for OpenACC changes.
25107         (enum omp_clause_map_kind): Remove.
25108         (struct tree_omp_clause): Change type of map_kind member from enum
25109         omp_clause_map_kind to unsigned char.
25110         * tree-inline.c: Update comments for OpenACC changes.
25111         * tree-nested.c: Likewise.  Include "gomp-constants.h".
25112         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25113         (convert_tramp_reference_stmt, convert_gimple_call): Update for
25114         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25115         OMP_CLAUSE_SET_MAP_KIND.
25116         * tree-pretty-print.c: Include "gomp-constants.h".
25117         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25118         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25119         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25120         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25121         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25122         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
25123         instead of OMP_CLAUSE_MAP_*.
25124         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25125         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25126         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25127         * tree-streamer-in.c: Include "gomp-constants.h".
25128         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25129         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
25130         * tree-streamer-out.c: Include "gomp-constants.h".
25131         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25132         OMP_CLAUSE_MAP_*.
25133         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25134         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25135         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25136         * tree.c (omp_clause_num_ops): Update accordingly.
25137         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25138         Likewise.
25139         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25140         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25141         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25142         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25143         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25144         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25145         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25146         (OMP_CLAUSE_SET_MAP_KIND): New macro.
25147         * varpool.c (varpool_node::get_create): Consider flag_openacc next
25148         to flag_openmp.
25149         * config/i386/intelmic-offload.h: New file.
25150         * config/nvptx/offload.h: Likewise.
25152 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25154         * explow.h: Remove duplicate contents.
25155         * dojump.h: Likewise.
25157 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
25159         * arm.c (arm_xgene_tune): Add default initializer for instruction
25160         fusion.
25162 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25164         PR ipa/64068
25165         PR ipa/64559
25166         * ipa.c (symbol_table::remove_unreachable_nodes):
25167         Do not put abstract origins into boundary.
25169 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
25171         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25172         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25174 2015-01-15  Steve Ellcey  <sellcey@mips.com>
25176         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25177         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25178         builtins.def, and chkp-builtins.def.
25180 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
25182         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25183         ISA 2.7 (POWER8).
25185 2015-01-15  Richard Biener  <rguenther@suse.de>
25187         PR tree-optimization/61743
25188         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25189         information on PHIs for some simple cases.
25191 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25193         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25194         Include xgene1.md.
25195         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25196         * config/arm/arm-cores.def (xgene1): New entry.
25197         * config/arm/arm-tables.opt: Regenerate.
25198         * config/arm/arm-tune.md: Regenerate.
25199         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25201 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25203         * tree-if-conv.c: Include hash-map.h.
25204         (aggressive_if_conv): New variable.
25205         (fold_build_cond_expr): Add simplification of non-zero condition.
25206         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25207         destination block is not always executed.
25208         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25209         than two predecessors if AGGRESSIVE_IF_CONV is true.
25210         (if_convertible_stmt_p): Fix commentary.
25211         (all_preds_critical_p): New function.
25212         (has_pred_critical_p): New function.
25213         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25214         BB can have more than two predecessors and all incoming edges can be
25215         critical.
25216         (predicate_bbs): Skip predication for loop exit block, use build2_loc
25217         to compute predicate for true edge.
25218         (find_phi_replacement_condition): Delete this function.
25219         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25220         Allow interchange PHI arguments if EXTENDED is false.
25221         Change check that block containing reduction statement candidate
25222         is predecessor of phi-block since phi may have more than two arguments.
25223         (phi_args_hash_traits): New helper structure.
25224         (struct phi_args_hash_traits): New type.
25225         (phi_args_hash_traits::hash): New function.
25226         (phi_args_hash_traits::equal_keys): New function.
25227         (gen_phi_arg_condition): New function.
25228         (predicate_scalar_phi): Add handling of phi nodes with more than two
25229         arguments, delete COND and TRUE_BB arguments, insert body of
25230         find_phi_replacement_condition to predicate ordinary phi nodes.
25231         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25232         delete call of find_phi_replacement_condition and invoke
25233         predicate_scalar_phi with two arguments.
25234         (insert_gimplified_predicates): Add assert that non-predicated block
25235         don't have statements to insert.
25236         (ifcvt_split_critical_edges): New function.
25237         (ifcvt_split_def_stmt): Likewise.
25238         (ifcvt_walk_pattern_tree): Likewise.
25239         (stmt_is_root_of_bool_pattern): Likewise.
25240         (ifcvt_repair_bool_pattern): Likewise.
25241         (ifcvt_local_dce): Likewise.
25242         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25243         is copy of inner or outer loop force_vectorize field, invoke
25244         ifcvt_split_critical_edges, ifcvt_local_dce and
25245         ifcvt_repair_bool_pattern for aggressive if-conversion.
25247 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
25249         * config/aarch64/aarch64.md: Include xgene1.md.
25250         * config/aarch64/xgene1.md: New file.
25252 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25254         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25255         xgene1 (APM XGene-1) core definition.
25256         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25257         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25258         * doc/invoke.texi: Document -mcpu=xgene1.
25260 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25262         * dojump.h: New header file.
25263         * explow.h: Likewise.
25264         * expr.h: Remove includes.
25265         Move expmed.c prototypes to expmed.h.
25266         Move dojump.c prototypes to dojump.h.
25267         Move alias.c prototypes to alias.h.
25268         Move explow.c prototypes to explow.h.
25269         Move calls.c prototypes to calls.h.
25270         Move emit-rtl.c prototypes to emit-rtl.h.
25271         Move varasm.c prototypes to varasm.h.
25272         Move stmt.c prototypes to stmt.h.
25273         (saved_pending_stack_adjust): Move to dojump.h.
25274         (adjust_address): Move to explow.h.
25275         (adjust_address_nv): Move to emit-rtl.h.
25276         (adjust_bitfield_address): Likewise.
25277         (adjust_bitfield_address_size): Likewise.
25278         (adjust_bitfield_address_nv): Likewise.
25279         (adjust_automodify_address_nv): Likewise.
25280         * explow.c (expr_size): Move to expr.c.
25281         (int_expr_size): Likewise.
25282         (tree_expr_size): Likewise.
25283         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25284         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25285         * genemit.c (main): Generate includes statistics.h, real.h,
25286         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25287         stmt.h.
25288         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25289         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25290         explow.h, emit-rtl.h, stmt.h.
25291         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25292         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25293         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25294         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25295         emit-rtl.h, varasm.h, stmt.h.
25296         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25297         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25298         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25299         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25300         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25301         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25302         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25303         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25304         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25305         tm.h tree.h varasm.h vec.h wide-int.h.
25306         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25307         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25308         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25309         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25310         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25311         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25312         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25313         * loop-iv.c: Likewise.
25314         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25315         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25316         statistics.h stmt.h tree.h varasm.h wide-int.h.
25317         * lra-constraints.c: Likewise.
25318         * lra-eliminations.c: Likewise.
25319         * lra-lives.c: Likewise.
25320         * lra-remat.c: Likewise.
25321         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25322         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25323         statistics.h stmt.h tree.h varasm.h wide-int.h.
25324         * hw-doloop.c: Likewise.
25325         * ira-color.c: Likewise.
25326         * ira-emit.c: Likewise.
25327         * loop-doloop.c: Likewise.
25328         * loop-invariant.c: Likewise.
25329         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25330         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25331         statistics.h stmt.h tree.h varasm.h wide-int.h.
25332         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25333         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25334         statistics.h stmt.h tree.h varasm.h wide-int.h.
25335         * combine-stack-adj.c: Likewise.
25336         * cse.c: Likewise.
25337         * ddg.c: Likewise.
25338         * ifcvt.c: Likewise.
25339         * ira-costs.c: Likewise.
25340         * jump.c: Likewise.
25341         * lra-coalesce.c: Likewise.
25342         * lra-spills.c: Likewise.
25343         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25344         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25345         stmt.h varasm.h wide-int.h.
25346         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25347         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25348         varasm.h.
25349         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25350         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25351         statistics.h stmt.h varasm.h wide-int.h.
25352         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25353         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25354         varasm.h wide-int.h.
25355         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25356         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25357         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25358         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25359         statistics.h stmt.h.
25360         * config/tilepro/tilepro.c: Likewise.
25361         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25362         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25363         * config/pdp11/pdp11.c: Likewise.
25364         * config/xtensa/xtensa.c: Likewise.
25365         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25366         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25367         varasm.h.
25368         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25369         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25370         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25371         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25372         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25373         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25374         * rtl-chkp.c: Likewise.
25375         * tree-chkp-opt.c: Likewise.
25376         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25377         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25378         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25379         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25380         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25381         statistics.h stmt.h.
25382         * tree-vect-data-refs.c: Likewise.
25383         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25384         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25385         rtl.h statistics.h stmt.h varasm.h.
25386         * internal-fn.c: Likewise.
25387         * ipa-icf-gimple.c: Likewise.
25388         * lto-section-out.c: Likewise.
25389         * tree-data-ref.c: Likewise.
25390         * tree-nested.c: Likewise.
25391         * tree-outof-ssa.c: Likewise.
25392         * tree-predcom.c: Likewise.
25393         * tree-pretty-print.c: Likewise.
25394         * tree-scalar-evolution.c: Likewise.
25395         * tree-ssa-strlen.c: Likewise.
25396         * tree-vect-loop.c: Likewise.
25397         * tree-vect-patterns.c: Likewise.
25398         * tree-vect-slp.c: Likewise.
25399         * tree-vect-stmts.c: Likewise.
25400         * tsan.c: Likewise.
25401         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25402         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25403         stmt.h.
25404         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25405         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25406         statistics.h stmt.h varasm.h.
25407         * loop-unroll.c: Likewise.
25408         * ubsan.c: Likewise.
25409         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25410         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25411         stmt.h varasm.h.
25412         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25413         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25414         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25415         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25416         statistics.h stmt.h.
25417         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25418         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25419         statistics.h stmt.h varasm.h.
25420         * gimple-match-head.c: Likewise.
25421         * lto-cgraph.c: Likewise.
25422         * lto-section-in.c: Likewise.
25423         * lto-streamer-in.c: Likewise.
25424         * lto-streamer-out.c: Likewise.
25425         * tree-affine.c: Likewise.
25426         * tree-cfg.c: Likewise.
25427         * tree-cfgcleanup.c: Likewise.
25428         * tree-if-conv.c: Likewise.
25429         * tree-into-ssa.c: Likewise.
25430         * tree-ssa-alias.c: Likewise.
25431         * tree-ssa-copyrename.c: Likewise.
25432         * tree-ssa-dse.c: Likewise.
25433         * tree-ssa-forwprop.c: Likewise.
25434         * tree-ssa-live.c: Likewise.
25435         * tree-ssa-math-opts.c: Likewise.
25436         * tree-ssa-pre.c: Likewise.
25437         * tree-ssa-sccvn.c: Likewise.
25438         * tree-tailcall.c: Likewise.
25439         * tree-vect-generic.c: Likewise.
25440         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25441         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25442         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25443         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25444         * varasm.c: Likewise.
25445         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25446         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25447         varasm.h.
25448         * init-regs.c: Likewise.
25449         * ira.c: Likewise.
25450         * omp-low.c: Likewise.
25451         * stack-ptr-mod.c: Likewise.
25452         * tree-ssa-reassoc.c: Likewise.
25453         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25454         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25455         varasm.h.
25456         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25457         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25458         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25459         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25460         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25461         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25462         * tree-ssa-phiopt.c: Likewise.
25463         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25464         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25465         * config/fr30/fr30.c: Likewise.
25466         * config/frv/frv.c: Likewise.
25467         * expr.c: Likewise.
25468         * final.c: Likewise.
25469         * optabs.c: Likewise.
25470         * passes.c: Likewise.
25471         * simplify-rtx.c: Likewise.
25472         * stmt.c: Likewise.
25473         * toplev.c: Likewise.
25474         * var-tracking.c: Likewise.
25475         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25476         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25477         * lower-subreg.c: Likewise.
25478         * postreload-gcse.c: Likewise.
25479         * ree.c: Likewise.
25480         * reginfo.c: Likewise.
25481         * store-motion.c: Likewise.
25482         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25483         fixed-value.h hashtab.h real.h stmt.h varasm.h.
25484         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25485         fixed-value.h hashtab.h statistics.h stmt.h.
25486         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25487         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25488         * except.c: Likewise.
25489         * explow.c: Likewise.
25490         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25491         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25492         varasm.h.
25493         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25494         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25495         * tree-ssa-structalias.c: Likewise.
25496         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25497         fixed-value.h insn-config.h real.h statistics.h.
25498         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25499         fixed-value.h insn-config.h real.h statistics.h stmt.h.
25500         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25501         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25502         * cfgbuild.c: Likewise.
25503         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25504         fixed-value.h real.h rtl.h statistics.h stmt.h.
25505         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25506         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25507         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25508         fixed-value.h real.h statistics.h stmt.h.
25509         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25510         fixed-value.h real.h statistics.h stmt.h varasm.h.
25511         * cprop.c: Likewise.
25512         * modulo-sched.c: Likewise.
25513         * postreload.c: Likewise.
25514         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25515         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25516         statistics.h stmt.h varasm.h.
25517         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25518         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25519         rtl.h statistics.h stmt.h varasm.h.
25520         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25521         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25522         varasm.h.
25523         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25524         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25525         varasm.h.
25526         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25527         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25528         varasm.h.
25529         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25530         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25531         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25532         function.h real.h statistics.h stmt.h varasm.h.
25533         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25534         insn-config.h real.h statistics.h stmt.h.
25535         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25536         statistics.h stmt.h.
25537         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25538         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25539         statistics.h stmt.h varasm.h.
25540         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25541         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25542         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25543         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25544         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25545         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25546         statistics.h stmt.h varasm.h.
25547         * ipa-polymorphic-call.c: Likewise.
25548         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25549         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25550         statistics.h stmt.h.
25551         * config/c6x/c6x.c: Likewise.
25552         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25553         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25554         statistics.h stmt.h varasm.h.
25555         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25556         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25557         stmt.h varasm.h.
25558         * ipa-split.c: Likewise.
25559         * tree-eh.c: Likewise.
25560         * tree-ssa-dce.c: Likewise.
25561         * tree-ssa-loop-niter.c: Likewise.
25562         * tree-vrp.c: Likewise.
25563         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25564         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25565         stmt.h.
25566         * config/nds32/nds32-fp-as-gp.c: Likewise.
25567         * config/nds32/nds32-intrinsic.c: Likewise.
25568         * config/nds32/nds32-isr.c: Likewise.
25569         * config/nds32/nds32-md-auxiliary.c: Likewise.
25570         * config/nds32/nds32-memory-manipulation.c: Likewise.
25571         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25572         * config/nds32/nds32-predicates.c: Likewise.
25573         * config/nds32/nds32.c: Likewise.
25574         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25575         fixed-value.h hashtab.h real.h statistics.h.
25576         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25577         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25578         * config/arm/arm.c: Likewise.
25579         * config/avr/avr.c: Likewise.
25580         * config/bfin/bfin.c: Likewise.
25581         * config/h8300/h8300.c: Likewise.
25582         * config/i386/i386.c: Likewise.
25583         * config/ia64/ia64.c: Likewise.
25584         * config/iq2000/iq2000.c: Likewise.
25585         * config/m32c/m32c.c: Likewise.
25586         * config/m32r/m32r.c: Likewise.
25587         * config/m68k/m68k.c: Likewise.
25588         * config/mcore/mcore.c: Likewise.
25589         * config/mep/mep.c: Likewise.
25590         * config/mips/mips.c: Likewise.
25591         * config/mn10300/mn10300.c: Likewise.
25592         * config/moxie/moxie.c: Likewise.
25593         * config/pa/pa.c: Likewise.
25594         * config/rl78/rl78.c: Likewise.
25595         * config/rx/rx.c: Likewise.
25596         * config/s390/s390.c: Likewise.
25597         * config/sh/sh.c: Likewise.
25598         * config/sparc/sparc.c: Likewise.
25599         * config/spu/spu.c: Likewise.
25600         * config/stormy16/stormy16.c: Likewise.
25601         * config/v850/v850.c: Likewise.
25602         * config/vax/vax.c: Likewise.
25603         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25604         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25605         * config/msp430/msp430.c: Likewise.
25606         * predict.c: Likewise.
25607         * value-prof.c: Likewise.
25608         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25609         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25610         * config/microblaze/microblaze.c: Likewise.
25611         * config/nios2/nios2.c: Likewise.
25612         * config/rs6000/rs6000.c: Likewise.
25613         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25614         insn-config.h real.h rtl.h statistics.h stmt.h.
25615         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25616         insn-config.h real.h statistics.h stmt.h.
25617         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
25618         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25619         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
25620         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25621         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
25622         fixed-value.h real.h statistics.h stmt.h.
25623         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
25624         fixed-value.h statistics.h stmt.h.
25625         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
25626         stmt.h.
25628 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25630         * gengtype.c (create_user_defined_type): Workaround
25631         -Wmaybe-uninitialized false positives.
25632         * cse.c (fold_rtx): Likewise.
25633         * loop-invariant.c (gain_for_invariant): Likewise.
25635 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25637         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
25638         set the memory attributes in all cases but clear MEM_EXPR if need be.
25640 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25642         PR tree-optimization/64434
25643         * cfgexpand.c (reorder_operands): New function.
25644         (expand_gimple_basic_block): Insert call of reorder_operands if
25645         optimized is true.
25647 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
25649         * config/mips/micromips.md (*swp): Remove explicit parallel.
25650         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
25651         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
25652         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
25653         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
25654         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
25655         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
25656         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
25657         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
25658         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
25659         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
25660         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
25661         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
25662         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
25663         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
25664         (mips_wrdsp): Likewise.
25665         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
25666         parallel.
25667         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
25668         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
25669         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
25670         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
25671         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
25672         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
25673         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
25674         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
25675         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
25677 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
25679         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
25680         (mips_print_operand): Support 'y' to print exact log2 in decimal
25681         of a const_int.
25682         * config/mips/mips.h (ISA_HAS_LSA): New define.
25683         (ISA_HAS_DLSA): Likewise.
25684         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
25685         * config/mips/predicates.md (const_immlsa_operand): New predicate.
25687 2015-01-15  Martin Liska  <mliska@suse.cz>
25689         PR target/64377
25690         * optc-save-gen.awk: Add support for array types.
25692 2015-01-15  Richard Biener  <rguenther@suse.de>
25694         PR middle-end/64365
25695         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
25696         for MEM_REF access functions with the same base can never partially
25697         overlap.
25699 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
25701         * common.opt: New option -fstack-protector-explicit.
25702         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
25703         (stack_protect_decl_phase): Handle stack_protect attribute for
25704         explicit stack protection requests.
25705         (expand_used_vars): Similarly.
25706         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
25707         * doc/extend.texi: Add documentation for "stack_protect" attribute.
25708         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
25710 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
25712         PR target/53988
25713         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
25714         reg-reg copies.
25715         (sh_extending_set_of_reg): New struct.
25716         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
25717         sh_remove_reg_dead_or_unused_notes): New Declarations.
25718         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
25719         sh_find_extending_set_of_reg, sh_split_tst_subregs,
25720         sh_extending_set_of_reg::use_as_extended_reg): New functions.
25721         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
25722         convert to insn_and_split and use new function sh_split_tst_subregs.
25724 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
25726         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
25727         option.
25728         (Optimization Options): Move -fuse-ld documentation to...
25729         (Link Options): ...here.
25731 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
25733         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
25734         offsets.
25735         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
25736         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
25737         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
25738         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
25739         instead of ZR for the memory operand of LL/SC.
25740         (compare_and_swap_12, sync_add<mode>): Likewise.
25741         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
25742         (sync_new_<optab>_12, sync_nand_12): Likewise.
25743         (sync_old_nand_12, sync_new_nand_12): Likewise.
25744         (sync_sub<mode>, sync_old_add<mode>): Likewise.
25745         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
25746         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
25747         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
25748         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
25749         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
25750         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
25751         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
25752         * doc/md.texi (ZC): Update description.
25754 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
25756         * builtins.c (expand_builtin_atomic_exchange): Remove error when
25757         memory model is CONSUME.
25758         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
25759         expand_builtin_atomic_store): Change invalid memory model errors to
25760         warnings.
25761         (expand_builtin_atomic_clear): Change invalid model errors to warnings
25762         and issue warning for CONSUME.
25764 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
25766         * lto-cgraph: Update function comments for
25767         lto_symtab_encoder_encode_*.
25769 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
25771         * Makefile.in (site.exp): Do not set ENABLE_LTO.
25773 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
25775         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
25776         * lto-cgraph.c (select_what_to_stream): Remove argument, use
25777         lto_stream_offload_p instead.
25778         * lto-streamer.h (select_what_to_stream): Remove argument.
25779         * passes.c (ipa_write_summaries): Likewise.
25780         * tree-pass.h (ipa_write_summaries): Likewise.
25782 2015-01-14  Richard Biener  <rguenther@suse.de>
25784         PR tree-optimization/59354
25785         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
25786         groups larger than the slp group size as having gaps.
25788 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
25790         PR middle-end/59448
25791         * builtins.c (get_memmodel): Promote consume to acquire always.
25793 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
25795         PR target/64386
25796         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
25797         V32HImode.
25799 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
25801         PR target/64393
25802         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
25803         Enable AVX512BW.
25804         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
25805         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
25806         AVX512VBMI, as it implies AVX512BW.
25808 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
25810         PR target/64387
25811         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
25812         (vec_unpacks_hi_v16sf): Ditto.
25814 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25816         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
25817         is not available.
25819 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25821         * doc/invoke.texi (mapcs): Mention deprecation.
25822         (mapcs-frame): Likewise.
25824 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25826         PR target/64453
25827         * config/arm/arm.c (callee_saved_reg_p): Define.
25828         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
25829         register is callee saved instead of !call_used_regs[reg].
25830         (thumb1_compute_save_reg_mask): Likewise.
25832 2015-01-14  Hale Wang  <hale.wang@arm.com>
25834         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
25835         Cortex-M7.
25837 2015-01-14  Richard Biener  <rguenther@suse.de>
25839         PR lto/64415
25840         * tree-inline.c (insert_debug_decl_map): Check destination
25841         function MAY_HAVE_DEBUG_STMTS.
25842         (insert_init_debug_bind): Likewise.
25843         (insert_init_stmt): Remove redundant check.
25844         (remap_gimple_stmt): Drop debug stmts if the destination
25845         function has var-tracking assignments disabled.
25847 2015-01-14  Martin Liska  <mliska@suse.cz>
25849         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
25850         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
25852 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25854         PR target/64460
25855         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
25856         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
25858 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
25860         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
25861         level from an ARCH; do not inject the default.
25862         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
25863         MIPS_ISA_LEVEL_SPEC.
25864         (MIPS_ISA_NAN2008_SPEC): Update comment.
25865         (BASE_DRIVER_SELF_SPECS): Likewise.
25866         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
25867         MIPS_DEFAULT_ISA_LEVEL_SPEC.
25868         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
25869         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
25870         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
25872 2015-01-14  Richard Biener  <rguenther@suse.de>
25874         PR tree-optimization/64493
25875         PR tree-optimization/64495
25876         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
25877         assign the proper vectorized PHI to the inner loop exit PHIs.
25879 2015-01-14  Joey Ye  <joey.ye@arm.com>
25881         * config/arm/arm.c (arm_compute_save_reg_mask):
25882         Do not save lr in case of tail call.
25883         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
25885 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
25887         * tree-vrp.c (check_array_ref): Emit more warnings
25888         for warn_array_bounds >= 2.
25889         * common.opt: New option -Warray-bounds=.
25890         * doc/invoke.texi: Document -Warray-bounds=.
25892 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25894         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
25895         (mforbid-fp-as-gp): Remove.
25896         (mex9): Remove.
25897         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
25898         (nds32_symbol_load_store_p): Remove.
25899         (nds32_fp_as_gp_check_available): Clean up implementation.
25900         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
25901         cases.
25902         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
25903         fp-as-gp and ex9 cases.
25905 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
25907         * tree-profile.c (init_ic_make_global_vars): Drop workaround
25908         for bintuils bug 14342.
25909         (init_ic_make_global_vars): Likewise.
25910         (gimple_init_edge_profiler): Likewise.
25911         (gimple_gen_ic_func_profiler): Likewise.
25913 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25915         * ipa-inline.c (inline_small_functions): Swap the operands in
25916         enum.
25918 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
25920         PR ipa/64481
25921         * ipa-inline-analysis.c (node_growth_cache): Remove.
25922         (initialize_growth_caches): Do not initialize it.
25923         (free_growth_caches): Do not free it.
25924         (do_estimate_growth): Rename to ...
25925         (estimate_growth): ... this one; drop growth cache code.
25926         (growth_likely_positive): Always go the heuristics way.
25927         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
25928         (reset_edge_caches): Do not reset node growth.
25929         (heap_edge_removal_hook): Do not maintain cache.
25930         (inline_small_functions): Likewise; strenghten sanity check.
25931         (ipa_inline): Do not maintain caches.
25932         * ipa-inline.h (node_growth_cache): Remove.
25933         (do_estimate_growth): Remove to ...
25934         (estimate_growth): this one; remove inline version.
25935         (reset_node_growth_cache): Remove.
25937 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
25939         PR ipa/64565
25940         * ipa-inline.c (inline_small_functions): Update callee keys after
25941         resolving speculation
25942         (inline_small_functions): Always check monotonicity of the queue.
25944 2015-01-13  Marek Polacek  <polacek@redhat.com>
25946         PR middle-end/64391
25947         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
25949 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
25951         PR rtl-optimization/64286
25952         * ree.c (combine_reaching_defs): Move part of comment earlier,
25953         remove !SCALAR_INT_MODE_P check.
25954         (add_removable_extension): Don't add vector mode
25955         extensions if all uses of the source register aren't the same
25956         vector extensions.
25958 2015-01-13  Renlin Li  <renlin.li@arm.com>
25960         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
25961         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
25963 2015-01-13  Martin Liska  <mliska@suse.cz>
25965         * ipa-icf.c (sem_function::equals_private): Call new functions
25966         cl_target_option_print_diff and cl_optimization_print_diff.
25967         * optc-save-gen.awk (cl_target_option_print_diff): New function.
25968         (cl_optimization_print_diff): Likewise.
25969         * opth-gen.awk: Likewise.
25971 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
25973         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
25974         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
25975         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
25976         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
25977         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
25978         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
25980 2015-01-13  Andrew Pinski  <apinski@cavium.com>
25982         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
25983         instead of src mode.
25985 2015-01-13  Richard Biener  <rguenther@suse.de>
25987         PR lto/64373
25988         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
25989         DECL_CONTEXT.
25991 2015-01-13  Andrew Pinski  <apinski@cavium.com>
25993         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
25994         volatile mems.
25995         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
25997 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
25999         PR middle-end/63974
26000         * cfgexpand.c (expand_computed_goto): Don't call
26001         convert_memory_address here.
26003 2015-01-13  Richard Biener  <rguenther@suse.de>
26005         PR tree-optimization/64406
26006         * tree-loop-distibution.c (pass_loop_distribution::execute):
26007         Reset the SCEV hashtable if we distributed anything.
26009 2015-01-13  Richard Biener  <rguenther@suse.de>
26011         PR tree-optimization/64404
26012         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26013         SLP types for CSEd loads.
26015 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26017         PR tree-optimization/64436
26018         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26019         merge of two symbolic numbers for a bitwise OR to ...
26020         (perform_symbolic_merge): This. Also fix computation of the range and
26021         end of the symbolic number corresponding to the result of a bitwise OR.
26023 2015-01-13  Richard Biener  <rguenther@suse.de>
26025         PR tree-optimization/64568
26026         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26027         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26029 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26031         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26032         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26034 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26036         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26037         target-specific symbol_ref flag.
26038         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26039         resides in rodata section.
26040         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26041         (nds32_encode_section_info): New function.
26043 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26045         * config/nds32/nds32.md (call): Use pseudo instruction bal which
26046         clobbers TA_REGNUM if large code model is specified.
26047         (call_register): Likewise.
26048         (call_immediate): Likewise.
26049         (call_value): Likewise.
26050         (call_value_register): Likewise.
26051         (call_value_immediate): Likewise.
26053 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26055         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26056         (TARGET_CMODEL_MEDIUM): New macro.
26057         (TARGET_CMODEL_LARGE): New macro.
26058         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26059         code model setting in assembly code.
26061 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26063         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26064         Remove MASK_GP_DIRECT flag.
26065         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26066         one of the multilib default options.
26067         * config/nds32/nds32.opt (mgp-direct): Remove.
26068         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26069         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
26071 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26073         * config/nds32/nds32.opt (mcmodel): Add new option.
26074         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26075         to describe code model.
26077 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
26079         PR target/64479
26080         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26082 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
26084         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26085         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26086         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26087         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26088         __builtin_sh_set_fpscr.
26090 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26092         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26093         after a funtion name just to indicate it is a function.
26094         ([-fsanitize-undefined-trap-on-error]): Likewise.
26095         ([-fdbg-cnt=]): Likewise.
26096         ([-mmemcpy]): Likewise.
26097         ([-mflush-func]): Likewise.
26098         ([-msynci]): Likewise.
26100 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26102         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26103         example.
26105 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
26107         PR tree-optimization/64563
26108         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26109         instead of != VR_VARYING.
26111         PR target/64513
26112         * config/i386/i386.c (ix86_expand_prologue): Add
26113         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26115         PR tree-optimization/64454
26116         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26117         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26118         for signed or [0, op1 - 1] for unsigned modulo.
26119         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26120         even if op1 does not satisfy integer_pow2p.
26122         PR other/64370
26123         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26125 2015-01-12  Jeff Law  <law@redhat.com>
26127         PR target/64461
26128         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26129         (trunchiqi2, truncsihi2): Similarly.
26131         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26132         rather than calling F.
26134 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26136         * tsan.c (instrument_expr): Use force_gimple_operand.
26137         Use may_be_nonaddressable_p instead of is_gimple_addressable.
26139 2015-01-12  Richard Biener  <rguenther@suse.de>
26141         PR tree-optimization/64530
26142         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26143         back dr1.
26145 2015-01-12  Richard Biener  <rguenther@suse.de>
26147         PR middle-end/64357
26148         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26149         latches properly.
26151 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26153         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26154         Cortex-A17 tuning parameters.
26155         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26157 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26159         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26160         * config/arm/arm.c (arm_macro_fusion_p): New function.
26161         (arm_macro_fusion_pair_p): Likewise.
26162         (TARGET_SCHED_MACRO_FUSION_P): Define.
26163         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26164         (ARM_FUSE_NOTHING): Likewise.
26165         (ARM_FUSE_MOVW_MOVT): Likewise.
26166         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26167         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26168         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26169         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26170         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26171         arm_cortex_a5_tune): Specify fuseable_ops value.
26173 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
26175         PR bootstrap/64561
26176         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26177         test for PIE with copy reloc.
26178         * configure: Regenerated.
26180 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26182         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26183         in gen_rtx_REG.
26184         (arm_tls_descseq_addr): Likewise.
26185         (arm_gen_movmemqi): Likewise.
26186         (arm_expand_epilogue_apcs_frame): Likewise.
26187         (arm_expand_epilogue): Likewise.
26188         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
26189         in gen_rtx_REG.
26191 2015-01-12  Martin Liska  <mliska@suse.cz>
26193         PR ipa/64550
26194         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26195         volatility for correct operands.
26197 2015-01-12  Martin Liska  <mliska@suse.cz>
26199         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26200         indication that a function is not leaf.
26201         (sem_function::compare_polymorphic_p): Likewise.
26203 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26205         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26206         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26207         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26208         fold-const.h, tree-check.h.
26210 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26212         PR ipa/63967
26213         PR ipa/64425
26214         * ipa-inline.c (compute_uninlined_call_time,
26215         compute_inlined_call_time): Use counts for extra precision when
26216         needed possible.
26217         (big_speedup_p): Fix formating.
26218         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26219         (relative_time_benefit): Remove.
26220         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26221         merge guessed and read profile paths.
26222         (inline_small_functions): Count only !optimize_size functions into
26223         initial size; be more lax about sanity check when profile is used;
26224         be sure to update inlined function profile when profile is read.
26226 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26228         PR ipa/63470
26229         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26230         cost when edge becomes direct.
26231         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26232         is resolved or when introducing new speculation.
26234 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
26236         PR ipa/64551
26237         PR ipa/64552
26238         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26239         '||' to fix typo issue.
26241         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26242         accept and return NULL.
26244 2015-01-12  Martin Liska  <mliska@suse.cz>
26246         * cgraph.c (cgraph_edge::remove_callee): Move function to header
26247         file for being inlined.
26248         (cgraph_set_edge_callee): Delete.
26249         (cgraph_edge::redirect_callee): Move function to header file
26250         for being inlined.
26251         (cgraph_edge::make_direct): Use new function.
26252         (cgraph_edge::dump_edge_flags): New function created from
26253         static dump_edge_flags function.
26254         (cgraph_node::dump): Use new function.
26255         (cgraph_edge::verify_count_and_frequency): New function created
26256         from verify_edge_count_and_frequency.
26257         (cgraph_edge::verify_corresponds_to_fndecl): New function created
26258         from verify_edge_corresponds_to_fndecl.
26259         (verify_edge_corresponds_to_fndecl): Delete.
26260         (cgraph_node::verify_node): Use new function.
26261         * cgraph.h (cgraph_edge::set_callee): New function.
26262         (cgraph_edge::dump_edge_flags): Likewise.
26263         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26265 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
26267         * ipa-utils.c (estimate_function_body_sizes): Do not
26268         free node params when called late with early=true.
26270 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
26272         * doc/md.texi (Instruction Patterns): Rewrite text for
26273         clarity.
26274         (Example): Likewise.
26276 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
26278         * doc/invoke.texi (Option Summary): Break long lines.
26279         [(-fdiagnostics-color)]: Put long literal in @smallexample
26280         instead of inline.
26281         [(-fsanitize-recover)]: Likewise.
26282         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26283         [(-ffast-math)]: Likewise.
26284         [(--param max-inline-insns-recursive)]: Likewise.
26285         [(--param max-inline-recursive-depth)]: Likewise.
26286         [(-mno-text-section-literals)]: Likewise.
26288 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
26290         * doc/install.texi: Update for libgomp being renamed from "GNU
26291         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26292         Runtime Library".
26293         * doc/sourcebuild.texi: Likewise.
26295 2015-01-10  Anthony Green  <green@moxielogic.com>
26297         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26298         mul.x availability for moxiebox configuration.
26300 2015-01-09  Anthony Green  <green@moxielogic.com>
26302         * config/moxie/moxie.md: Tabify assembly output.
26304 2015-01-09  Anthony Green  <green@moxielogic.com>
26306         * config/moxie/moxie.md (CC_REG): Correct register definition.
26308 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
26310         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26311         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
26312         of log files.
26314 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26316         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26318 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
26319             Jakub Jelinek  <jakub@redhat.com>
26321         PR middle-end/64412
26322         * lto-streamer.h (lto_stream_offload_p): New declaration.
26323         * lto-streamer.c (lto_stream_offload_p): New variable.
26324         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26325         at the same time as section_name_prefix.
26326         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26327         if lto_stream_offload_p.
26328         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26329         stream TREE_TARGET_OPTION if lto_stream_offload_p.
26330         (write_ts_function_decl_tree_pointers): Don't
26331         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26332         * tree-streamer-in.c (unpack_value_fields): Don't stream
26333         TREE_TARGET_OPTION in if ACCEL_COMPILER.
26334         (lto_input_ts_function_decl_tree_pointers): Don't stream
26335         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26336         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26337         instead of section_name_prefix string comparisons.
26339 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
26341         PR rtl-optimization/64536
26342         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26343         tablejumps.
26345 2015-01-09  Michael Collison  <michael.collison@linaro.org>
26347         PR tree-optimization/64322
26348         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26349         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26351 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26353         PR rtl-optimization/64539
26354         * regcprop.c (kill_clobbered_values): Factor out of ...
26355         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
26356         instead of note_stores with kill_clobbered_value.
26358 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26360          * ginclude/unwind-arm-common.h: Revert previous commit.
26362 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26364         * config.gcc (arm*-*-freebsd*): New configuration.
26365         * config/arm/freebsd.h: New file.
26366         * config.host: Add extra components for arm*-*-freebsd*.
26367         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26368         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26370 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26372         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26373         for -mcpu=e6500.
26374         * config/rs6000/t-rtems: Add e6500 multilibs.
26376 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26378         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26379         MPC8540.
26381 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26383         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26384         MULTILIB_EXCEPTIONS.
26386 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26388         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26389         MULTILIB_EXCEPTIONS.
26391 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26393         * config/arm/t-rtems-eabi: Rename to...
26394         * config/arm/t-rtems: ...this.
26395         * config/arm/rtems-eabi.h: Rename to...
26396         * config/arm/rtems.h: ...this.
26397         * config.gcc (arm*-*-rtems*): Reflect changes above.
26399 2015-01-09  Richard Biener  <rguenther@suse.de>
26401         PR tree-optimization/64410
26402         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26403         on the LHS.
26404         (execute_update_addresses_taken): Deal with that.
26405         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26406         loads/stores for complex variables.
26408 2015-01-09  Martin Liska  <mliska@suse.cz>
26410         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26411         name comparison.
26412         (func_checker::compare_memory_operand): New function.
26413         (func_checker::compare_operand): Split case to newly
26414         added functions.
26415         (func_checker::compare_cst_or_decl): New function.
26416         (func_checker::compare_gimple_call): Identify
26417         memory operands.
26418         (func_checker::compare_gimple_assign): Likewise.
26419         * ipa-icf-gimple.h: New function.
26421 2015-01-09  Martin Liska  <mliska@suse.cz>
26423         PR ipa/64503
26424         * sreal.c (sreal::dump): Change unsigned format to signed for
26425         m_exp value.
26426         (sreal::to_double): Replace exp2 with scalbln.
26428 2015-01-09  Martin Liska  <mliska@suse.cz>
26430         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26431         * ipa-icf.c (sem_function::equals_private): Add support for target and
26432         (sem_item_optimizer::merge_classes): Remove redundant function
26433         optimization flags comparison.
26434         * tree.h (target_opts_for_fn): New function.
26436 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26438         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26440 2015-01-09  Kito Cheng  <kito@0xlab.org>
26442         PR rtl-optimization/64348
26443         * lra-constraints.c (split_reg): Fix caller-save store/restore
26444         instruction generation.
26446 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
26448         PR gcov-profile/61790
26449         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26450         long long.  Fallback to int64_t if host doesn't have long long and
26451         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
26453 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26455         PR tree-optimization/63989
26456         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26457         from 1000 to 10000.
26458         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26459         (get_stridx): If we don't have a record for certain SSA_NAME,
26460         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26461         constant offset, call get_stridx_plus_constant.
26462         (get_stridx_plus_constant): New function.
26463         (zero_length_string): Don't use get_stridx here.
26465         PR target/55023
26466         PR middle-end/64388
26467         * dse.c (struct insn_info): Mention frame_read set also
26468         before reload for tail calls on some targets.
26469         (scan_insn): Revert 2014-12-22 change.  Set frame_read
26470         also before reload for tail calls if
26471         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
26472         instead of add_non_frame_wild_read for non-const/memset
26473         tail calls after reload.
26475 2015-01-08  Jason Merrill  <jason@redhat.com>
26477         * ubsan.c (do_ubsan_in_current_function): New.
26478         (pass_ubsan::gate): Use it.
26479         * ubsan.h: Declare it.
26480         * convert.c (convert_to_integer): Use it.
26482 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26484         PR target/64338
26485         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26486         compare_code when it is unconditionally overwritten afterwards.
26487         Use ix86_reverse_condition instead of reverse_condition.  Don't
26488         change code if *reverse_condition* returned UNKNOWN and don't
26489         swap ct/cf and negate diff in that case.
26491 2015-01-08  Mike Stump  <mikestump@comcast.net>
26493         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26494         (pass_tsan_O0::gate): Likewise.
26495         * extend.texi (Function Attributes): Add no_sanitize_thread
26496         documentation.
26498 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
26500         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26501         for registering builtins.
26502         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26503         add -fopenmp to the argv_obstack used when invoking
26504         compile_for_target.
26506         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26507         add "-m32" or "-m64" to argv_obstack.
26508         (generate_host_descr_file): Likewise, when invoking host_compiler.
26509         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26510         ld.
26512 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26514         * config/sh/sh-mem.cc: Use constant as second operand when emitting
26515         tstsi_t insns.
26517 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26519         PR target/55212
26520         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26521         constant load if constant operand fits into I08.
26523 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26525         PR sanitizer/64336
26526         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26527         and TREE_THIS_VOLATILE for MEM_REFs.
26528         (build5_stat): Fix up initialization of TREE_READONLY and
26529         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26531 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
26533         PR target/64533
26534         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26535         of r for the second alternative of the destination operand.
26537 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
26539         PR target/36557
26540         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26542 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26544         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26545         keywords.
26546         ([-fivar-visibility], [-fvisibility]): Likewise.
26548 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26550         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26551         the file where @code, @command, etc is more appropriate.
26553 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
26555         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26556         of -mrecip= documentation.
26558 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26560         PR target/64505
26561         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26562         correct reload handler if -m32 -mpowerpc64 is used.
26564 2015-01-06  Tom de Vries  <tom@codesourcery.com>
26566         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26568 2015-01-08  Christian Bruel  <christian.bruel@st.com>
26570         PR target/64507
26571         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26573 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26575         PR tree-optimization/63259
26576         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26577         if optab exists for 16bit byteswap.
26579 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
26581         * opts.c (common_handle_option): Add support for
26582         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26583         * doc/invoke.texi: Document -fno-sanitize=all,
26584         -f{,no-}sanitize-recover=all.  Document that
26585         -fsanitize=float-cast-overflow is not enabled
26586         by -fsanitize=undefined.  Fix up documentation
26587         of -f{,no-}sanitize-recover.
26589 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26591         * config.gcc: Add Visium support.
26592         * configure.ac: Likewise.
26593         * configure: Regenerate.
26594         * doc/extend.texi (interrupt attribute): Add Visium.
26595         * doc/invoke.texi: Document Visium options.
26596         * doc/install.texi: Document Visium target.
26597         * doc/md.texi: Document Visium constraints.
26598         * common/config/visium: New directory.
26599         * config/visium: Likewise.
26601 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26603         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26604         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26606 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26608         * combine.c (combine_validate_cost): Do not count the cost of a
26609         split I2 twice.  Do not display it twice in the dump, either.
26611 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26613         Revert parts of r219199.
26614         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
26615         <inttypes.h>.
26616         ([-Wtraditional]): Restore markup on <limits.h>.
26618 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
26620         PR c++/31397
26621         * doc/invoke.texi: Document -Wsuggest-override.
26623 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
26625         PR rtl-optimization/64287
26626         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
26627         (process_options): Disable flag_ipa_ra if profiling.
26629 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26631         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
26633 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
26635         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
26636         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
26637         put under #if TARGET_LOOPS guard.
26639 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
26641         * config/i386/i386.c (output_387_binary_op): Use std::swap.
26643 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
26645         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
26646         * rtl.h (refers_to_regno_p): Add overload.
26647         * cse.c: Use it.
26648         * bt-load.c: Likewise.
26649         * combine.c: Likewise.
26650         * df-scan.c: Likewise.
26651         * sched-deps.c: Likewise.
26652         * config/s390/s390.c: Likewise.
26653         * config/m32r/m32r.c: Likewise.
26654         * config/rs6000/spe.md: Likewise.
26655         * config/rs6000/rs6000.c: Likewise.
26656         * config/pa/pa.c: Likewise.
26657         * config/stormy16/stormy16.c: Likewise.
26658         * config/cris/cris.c: Likewise.
26659         * config/arc/arc.md: Likewise.
26660         * config/arc/arc.c: Likewise.
26661         * config/sh/sh.md: Likewise.
26662         * config/sh/sh.c: Likewise.
26663         * config/frv/frv.c: Likewise.
26665 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26667         PR sanitizer/64265
26668         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
26669         call as cleanup of the whole body.
26670         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
26671         * tsan.c (replace_func_exit): New function.
26672         (instrument_func_exit): Moved earlier.
26673         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
26674         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
26675         been found.
26676         (tsan_pass): Don't call instrument_func_exit.
26677         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
26678         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
26679         inlining.
26681         PR sanitizer/64344
26682         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
26683         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
26684         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
26685         if the result is integer_zerop, return NULL_TREE.
26686         * convert.c (convert_to_integer): Pass expr as ARG.
26688         PR tree-optimization/64465
26689         * tree-inline.c (redirect_all_calls): During inlining
26690         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
26691         changed the stmt to a non-throwing call.
26693 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26695         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
26696         etc markup throughout the file.
26698 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26700         Enable experimental TSAN support for Ada.
26701         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
26703 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26705         PR tree-optimization/64494
26706         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
26707         clear SSA_NAME_ANTI_RANGE_P flag.
26709 2015-01-05  Marek Polacek  <polacek@redhat.com>
26711         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
26713 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26715         Update copyright years.
26717         * gcc.c (process_command): Update copyright notice dates.
26718         * gcov-dump.c: Ditto.
26719         * gcov.c: Ditto.
26720         * doc/cpp.texi: Bump @copying's copyright year.
26721         * doc/cppinternals.texi: Ditto.
26722         * doc/gcc.texi: Ditto.
26723         * doc/gccint.texi: Ditto.
26724         * doc/gcov.texi: Ditto.
26725         * doc/install.texi: Ditto.
26726         * doc/invoke.texi: Ditto.
26728         * auto-profile.c, auto-profile.h: Fix up Copyright line.
26730 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
26732         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
26733         verb tense, etc.
26734         ([-fvtable-verify], [-fvtv-debug]): Likewise.
26735         ([-Wabi]): Likewise.
26736         ([-fmessage-length]): Likewise.
26737         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
26738         ([-Wno-discarded-qualifiers]): Likewise.
26739         ([-Wnodiscarded-array-qualifiers]): Likewise.
26740         ([-Wno-virtual-move-assign]): Likewise.
26741         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
26742         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
26743         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
26744         ([-fsanitize-undefined-trap-on-error]): Likewise.
26745         ([-floop-interchange]): Likewise.
26746         ([-ftree-coalesce-inlined-vars]): Likewise.
26747         ([-fvect-cost-model]): Likewise.
26748         ([-flto]): Likewise.
26749         ([--param]): Likewise.
26750         (Spec Files): Likewise.
26751         ([-mstrict-align]): Likewise.
26752         ([-mfix-cortex-a53-835769]): Likewise.
26753         ([-march], [-mtune]): Likewise.
26754         ([-mpic-register]): Likewise.
26755         ([-munaligned-access]): Likewise.
26756         ([-msp8]): Likewise.
26757         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
26758         (AVR Built-in Macros): Likewise.
26759         ([-mpreferred-stack-boundary]): Likewise.
26760         ([-mtune-crtl]): Likewise.
26761         ([-mashf]): Likewise.
26762         ([-mmcu=]): Likewise.
26763         ([-minrt]): Likewise.
26764         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
26765         ([-mupper-regs]): Likewise.
26766         ([-matomic-model]): Likewise.
26767         ([-mdiv]): Likewise.
26768         ([-mzdcbranch]): Likewise.
26769         ([-mdisable-callt]): Likewise.
26770         ([-msoft-float]): Likewise.
26771         ([-m8byte-align]): Likewise.
26772         ([-fstack-reuse]): Likewise.
26774 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
26776         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
26777         Fix markup, light copy-editing.
26778         ([-fauto-profile]): Rewrite to fix formatting and content
26779         problems.
26781 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
26783         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
26784         Copy-edit description.
26785         ([-fisolate-erroneous-paths-attribute]): Likewise.
26786         * common.opt (fisolate-erroneous-paths-dereference):
26787         Copy-edit description.
26788         (fisolate-erroneous-paths-attribute): Likewise.
26790 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
26792         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
26793         tidy grammar.
26795 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
26797         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
26798         ([-fvtv-debug]): Likewise.
26799         ([-Wc++-compat]): Likewise.
26800         ([-Wc++11-compat]): Likewise.
26801         ([-Wc++14-compat]): Likewise.
26802         ([-Wno-sized-deallocation]): Likewise.
26803         ([-femit-class-debug-always]): Likewise.
26804         ([-femit-struct-debug-detailed]): Likewise.
26805         ([-fno-keep-inline-dllexport]): Likewise.
26806         ([-fira-algorithm]): Likewise.
26807         ([-fira-region]): Likewise.
26808         ([-flra-remat]): Likewise.
26809         ([-fipa-ra]): Likewise.
26810         ([-fhoist-adjacent-loads]): Likewise.
26811         ([-fisolate-erroneous-paths-dereference]): Likewise.
26812         ([-fisolate-erroneous-paths-attribute]): Likewise.
26813         ([-ftree-switch-conversion]): Likewise.
26814         ([-ftree-tail-merge]): Likewise.
26815         ([-ftree-loop-if-convert]): Likewise.
26816         ([-ftree-loop-if-convert-stores]): Likewise.
26817         ([-ftree-loop-distribution]): Likewise.
26818         ([-ftree-loop-distribute-patterns]): Likewise.
26819         ([-flto-compression-level]): Likewise.
26820         ([-flto-report]): Likewise.
26821         ([-flto-report-wpa]): Likewise.
26822         ([-fuse-linker-plugin]): Likewise.
26823         ([-mfix-cortex-a53-835769]): Likewise.
26824         ([-mno-fix-cortex-a53-835769]): Likewise.
26825         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
26826         explicit listing; add a note to the discussion indicating they
26827         exist.  Reorder table to group similar options.  Add missing
26828         @opindex entries.  Add @need commands throughout the table to
26829         allow it to be split across multiple pages.
26830         ([-m8bit-idiv]): Fix @opindex.
26831         ([-mavx256-split-unaligned-load]): Likewise.
26832         ([-mavx256-split-unaligned-store]): Likewise.
26833         ([-mstack-protector-guard]): Likewise.
26834         ([-mcpu=]): Likewise.
26835         ([-mcpu]): Likewise.
26836         ([-mpointer-size=]): Likewise.
26838 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
26840         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
26841         instead of `m' constraint.  Likewise for unnamed movb comparison
26842         patterns using reg_before_reload_operand predicate.
26843         * config/pa/predicates.md (reg_before_reload_operand): Tighten
26844         predicate to reject register index and LO_SUM DLT memory forms
26845         after reload.
26847 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
26849         * doc/invoke.texi (Option Summary): Fix spelling of
26850         -fdevirtualize-at-ltrans.
26851         ([-fdevirtualize]): Fix markup.
26852         ([-fdevirtualize-speculatively]): Fix typo.
26853         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
26854         implementor-speaky.
26855         * common.opt (fdevirtualize-at-ltrans): Likewise.
26856         * ipa-devirt.c: Fix typos in comments throughout the file.
26857         (ipa_devirt): Fix typos in format strings for dump output.
26859 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
26861         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
26862         discussion of defaults, light copy-editing.
26864 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26866         * tsan.c (instrument_expr): corrected previous checkin.
26868 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26870         Instrument bit field and unaligned accesses for TSAN.
26871         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
26872         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
26873         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
26874         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
26875         unaligned memory regions.
26877 2015-01-01  Anthony Green  <green@moxielogic.com>
26879         * config/moxie/predicates.md (moxie_general_movsrc_operand):
26880         Restrict move source register offsets to 16 bits.
26882 Copyright (C) 2015 Free Software Foundation, Inc.
26884 Copying and distribution of this file, with or without modification,
26885 are permitted in any medium without royalty provided the copyright
26886 notice and this notice are preserved.