1 2015-08-27 Sebastian Pop <s.pop@samsung.com>
3 * Makefile.in (OBJS): Remove graphite-blocking.o and
4 graphite-interchange.o.
5 * common.opt (floop-strip-mine, floop-interchange, floop-block):
6 Alias of floop-nest-optimize.
7 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
8 Document as alias of -floop-nest-optimize.
9 * graphite-blocking.c: Remove.
10 * graphite-interchange.c: Remove.
11 * graphite-optimize-isl.c: Include dumpfile.h.
12 (getScheduleForBand): Add dump for tiled loops. Use
13 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14 * graphite-poly.c (scop_max_loop_depth): Remove.
15 (print_scattering_function_1): Remove.
16 (print_scattering_function): Remove.
17 (print_scattering_functions): Remove.
18 (debug_scattering_function): Remove.
19 (debug_scattering_functions): Remove.
20 (apply_poly_transforms): Remove use of flag_loop_block,
21 flag_loop_strip_mine, and flag_loop_interchange.
22 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
24 (print_pdr_access_layout): Remove.
25 (print_pdr): Print ISL representation.
26 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
27 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
29 (openscop_print_pbb_domain): Remove.
30 (print_pbb): Remove call to print_scattering_function.
31 (openscop_print_scop_context): Remove.
32 (print_scop_context): Do not print matrices anymore.
33 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
34 SCOP_TRANSFORMED_SCHEDULE.
35 (print_isl_set): Add printing of a new line.
36 (print_isl_map): Same.
37 (print_isl_aff): Same.
38 (print_isl_constraint): Same.
39 (loop_to_lst): Remove.
40 (scop_to_lst): Remove.
41 (lst_indent_to): Remove.
46 (reverse_loop_at_level): Remove.
47 (reverse_loop_for_pbbs): Remove.
48 * graphite-poly.h (pdr_dim_iter_domain): Remove.
49 (pdr_nb_params): Remove.
50 (pdr_alias_set_dim): Remove.
51 (pdr_subscript_dim): Remove.
52 (pdr_iterator_dim): Remove.
53 (pdr_parameter_dim): Remove.
55 (struct poly_scattering): Remove.
56 (struct poly_bb): Remove _original, _transformed, _saved.
57 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
58 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
59 (PBB_NB_LOCAL_VARIABLES): Remove.
60 (PBB_NB_SCATTERING_TRANSFORM): Remove.
61 (schedule_to_scattering): Remove.
62 (number_of_write_pdrs): Remove.
63 (pbb_dim_iter_domain): Remove.
64 (pbb_nb_params): Remove.
65 (pbb_nb_scattering_orig): Remove.
66 (pbb_nb_scattering_transform): Remove.
67 (pbb_nb_dynamic_scattering_transform): Remove.
68 (pbb_nb_local_vars): Remove.
69 (pbb_iterator_dim): Remove.
70 (pbb_parameter_dim): Remove.
71 (psco_scattering_dim): Remove.
72 (psct_scattering_dim): Remove.
73 (psct_local_var_dim): Remove.
74 (psco_iterator_dim): Remove.
75 (psct_iterator_dim): Remove.
76 (psco_parameter_dim): Remove.
77 (psct_parameter_dim): Remove.
78 (psct_dynamic_dim): Remove.
79 (psct_static_dim): Remove.
80 (psct_add_local_variable): Remove.
81 (new_lst_loop): Remove.
82 (new_lst_stmt): Remove.
85 (lst_add_loop_under_loop): Remove.
87 (lst_dewey_number): Remove.
88 (lst_dewey_number_at_depth): Remove.
91 (lst_find_pbb): Remove.
92 (find_lst_loop): Remove.
93 (lst_find_first_pbb): Remove.
94 (lst_empty_p): Remove.
95 (lst_find_last_pbb): Remove.
96 (lst_contains_p): Remove.
97 (lst_contains_pbb): Remove.
98 (lst_create_nest): Remove.
99 (lst_remove_from_sequence): Remove.
100 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
101 (lst_niter_for_loop): Remove.
102 (pbb_update_scattering): Remove.
103 (lst_update_scattering_under): Remove.
104 (lst_update_scattering): Remove.
105 (lst_insert_in_sequence): Remove.
106 (lst_replace): Remove.
107 (lst_substitute_3): Remove.
108 (lst_distribute_lst): Remove.
109 (lst_remove_all_before_including_pbb): Remove.
110 (lst_remove_all_before_excluding_pbb): Remove.
111 (struct scop): Remove original_schedule, transformed_schedule, and
113 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
114 (SCOP_SAVED_SCHEDULE): Remove.
115 (poly_scattering_new): Remove.
116 (poly_scattering_free): Remove.
117 (poly_scattering_copy): Remove.
118 (store_scattering_pbb): Remove.
119 (store_lst_schedule): Remove.
120 (restore_lst_schedule): Remove.
121 (store_scattering): Remove.
122 (restore_scattering_pbb): Remove.
123 (restore_scattering): Remove.
124 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
125 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
126 compute the scattering polyhedron dimension from the dimension of
128 (build_scop_scattering): Update call to
129 build_pbb_scattering_polyhedrons.
130 (build_poly_scop): Remove call to scop_to_lst.
131 * graphite.c (graphite_transform_loops): Add call to print_scop.
132 (gate_graphite_transforms): Remove use of flag_loop_block,
133 flag_loop_interchange, and flag_loop_strip_mine.
135 2015-08-27 Sebastian Pop <s.pop@samsung.com>
137 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
138 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
139 -floop-nest-optimize.
140 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
141 (generate_luj_sepclass): Remove.
142 (generate_luj_options): Remove.
143 (set_options): Remove opt_luj.
144 (scop_to_isl_ast): Remove opt_luj.
145 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
146 flag_loop_unroll_jam.
147 (getPrevectorMap_full): Remove.
148 (getScheduleForBandList): Remove map_sepcl.
149 (getScheduleMap): Same.
150 (apply_schedule_map_to_scop): Remove sepcl.
151 (optimize_isl): Same.
152 * graphite-poly.c (apply_poly_transforms): Remove check for
153 flag_loop_unroll_jam.
154 (new_poly_bb): Remove map_sepclass.
155 * graphite-poly.h (struct poly_bb): Same.
156 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
157 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
158 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
159 * toplev.c (process_options): Remove flag_loop_unroll_jam.
161 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
164 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
166 (UNSPEC_ADD_CARRY): Remove.
167 (addqi3_cconly_overflow): New expander.
168 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
169 Adjust for changed add<mode>3_carry.
170 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
171 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
172 (<plusminus_insn><mode>3_carry): Remove expander.
173 (*<plusminus_insn><mode>3_carry): Split insn pattern to
174 add<mode>3_carry and sub<mode>3_carry.
175 (plusminus_carry_mnemonic): Remove code attribute.
176 (add<mode>3_carry): Canonicalize insn pattern.
177 (*addsi3_carry_zext): Ditto.
178 (sub<mode>3_carry): Ditto.
179 (*subsi3_carry_zext): Ditto.
180 (adcx<mode>3): Remove insn pattern.
181 (addcarry<mode>): New insn pattern.
182 (subborrow<mode>): Ditto.
183 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
184 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
185 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
186 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
187 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
188 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
189 Rewrite expander to not clobber carry flag chains.
191 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
193 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
196 2015-08-27 Marek Polacek <polacek@redhat.com>
199 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
200 an entry into an irreducible region.
202 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
204 * configure: Regenerate.
206 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
208 PR tree-optimization/67283
209 * tree-sra.c (type_consists_of_records_p): Rename to...
210 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
212 (completely_scalarize_record): Rename to...
213 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
214 (scalarize_elem): New.
216 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
218 * tree-sra.c (completely_scalarize_var): Rename to...
219 (create_total_scalarization_access): ... Here. Drop call to
220 completely_scalarize_record.
222 (analyze_all_variable_accesses): Replace completely_scalarize_var
223 with create_total_scalarization_access and completely_scalarize_record.
225 2015-08-27 Alan Modra <amodra@gmail.com>
228 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
231 2015-08-27 Richard Biener <rguenther@suse.de>
233 * passes.c (rest_of_decl_compilation): Guard early_global_decl
234 call with !seen_error ().
235 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
236 early debug generation and finish...
237 (symbol_table::compile): ... here to put it after a !seen_error ()
240 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
242 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
245 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
246 Andre Vieira <andre.simoesdiasvieira@arm.com>
248 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
249 (*cb<optab><mode>1): Likewise.
250 (*tb<optab><mode>1): Likewise.
251 (*cb<optab><mode>1): Likewise.
252 * config/aarch64/iterators.md (inv_cb): New code attribute.
254 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
255 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
257 2015-08-27 Richard Biener <rguenther@suse.de>
259 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
261 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
263 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
266 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
268 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
271 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
273 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
274 floating point in VSX registers.
275 (rs6000_output_move_128bit): Always print out the set insn if we
276 can't generate an appropriate 128-bit move.
277 (rs6000_generate_compare): Add support for IEEE 128-bit floating
278 point in VSX registers comparisons.
279 (rs6000_expand_float128_convert): Likewise.
281 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
282 predicate for only GPR hard registers.
284 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
285 modes to iterators. Add new iterators for moving 128-bit values in
286 scalar FPR registers and VSX registers.
287 (FMOVE128): Likewise.
288 (FMOVE128_FPR): Likewise.
289 (FMOVE128_GPR): Likewise.
290 (FMOVE128_VSX): Likewise.
291 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
296 (RELOAD): Add IEEE 128-bit floating point modes.
297 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
298 floating point in VSX registers modes.
299 (signbit<mode>2, IBM128 iterator): Likewise.
300 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
301 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
303 (neg<mode>2, TFIFKF iterator): Likewise.
304 (negtf2_internal): Likewise.
306 (abs<mode>2, TFIFKF iterator): Likewise.
307 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
308 VSX insn support for negate, absolute value, and negative absolute
310 (ieee_128bit_vsx_neg<mode>2): Likewise.
311 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
312 (ieee_128bit_vsx_abs<mode>2): Likewise.
313 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
314 (ieee_128bit_vsx_nabs<mode>2): Likewise.
315 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
316 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
317 floating point in VSX registers.
318 (unpack<mode>_dm): Likewise.
319 (unpack<mode>_nodm): Likewise.
320 (pack<mode>): Likewise.
321 (unpackv1ti): Likewise.
322 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
323 (packv1ti): Likewise.
324 (pack<mode>, FMOVE128_VSX iterator): Likewise.
325 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
327 (extenddftf2_internal): Likewise.
328 (trunctfdf2): Likewise.
329 (trunctfdf2_internal2): Likewise.
330 (fix_trunc_helper): Likewise.
331 (fix_trunctfdi2"): Likewise.
332 (floatditf2): Likewise.
333 (floatuns<mode>tf2): Likewise.
334 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
335 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
336 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
337 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
338 (float<SDI:mode><IFKF:mode>2): Likewise.
339 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
341 2015-08-26 Renlin Li <renlin.li@arm.com>
343 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
345 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
346 Jiong Wang <jiong.wang@arm.com>
348 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
349 (tlsie_tiny_<mode>): New define_insn.
350 (tlsie_tiny_sidi): Likewise.
351 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
353 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
354 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
356 (aarch64_expand_mov_immediate): Likewise.
357 (aarch64_print_operand): Likewise.
358 (arch64_classify_tls_symbol): Likewise.
360 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
362 * config/arm/arm-arches.def: Replace single value flags with
363 an initializer built from ARM_FSET_MAKE_CPU1.
364 * config/arm/arm-cores.def: Likewise.
365 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
366 derivation from the ARM_CORE macro definition, use the given value
368 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
369 ARM_ARCH macro definition, use the given value instead.
371 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
373 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
375 (struct builtin_description): Replace field mask with field
377 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
378 (IWMMXT2_BUILTIN): Likewise.
379 (IWMMXT2_BUILTIN2): Likewise.
380 (FP_BUILTIN): Likewise.
381 (CRC32_BUILTIN): Likewise.
382 (CRYPTO_BUILTIN): Likewise.
383 (iwmmx_mbuiltin): Likewise.
384 (iwmmx2_mbuiltin): Likewise.
385 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
386 struct builtin_description.
388 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
390 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
391 (struct builtin_description): Change type of mask to unsigned
393 * config/arm/arm-protos.h (insn_flags): Declare as type
395 (tune_flags): Likewise.
396 * config/arm/arm.c (feature_count): New.
397 (insn_flags): Define as type arm_feature_set.
398 (tune_flags): Likewise.
399 (struct processors): Define field flags as type arm_feature_set.
400 (all_cores): Update for change to struct processors.
401 (all_architectures): Likewise.
402 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
404 (arm_option_override_internal): Likewise.
405 (arm_option_override): Likewise.
407 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
408 Jiong Wang <jiong.wang@arm.com>
410 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
411 tls size for tiny, small, large memory model.
412 (aarch64_load_symref_appropriately): Support new symbol types.
413 (aarch64_expand_mov_immediate): Likewise.
414 (aarch64_print_operand): Likewise.
415 (aarch64_classify_tls_symbol): Likewise.
416 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
417 (aarch64_symbol_type): Likewise.
418 * config/aarch64/aarch64.md (tlsle): Deleted.
419 (tlsle12_<mode>): New define_insn.
420 (tlsle24_<mode>): Likewise.
421 (tlsle32_<mode>): Likewise.
422 (tlsle48_<mode>): Likewise.
423 * doc/sourcebuild.texi (AArch64-specific attributes): Document
426 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
428 * config/arm/arm-protos.h (FL_NONE): New.
430 (arm_feature_set): New.
431 (ARM_FSET_MAKE): New.
432 (ARM_FSET_MAKE_CPU1): New.
433 (ARM_FSET_MAKE_CPU2): New.
434 (ARM_FSET_CPU1): New.
435 (ARM_FSET_CPU2): New.
436 (ARM_FSET_EMPTY): New.
438 (ARM_FSET_HAS_CPU1): New.
439 (ARM_FSET_HAS_CPU2): New.
440 (ARM_FSET_HAS_CPU): New.
441 (ARM_FSET_ADD_CPU1): New.
442 (ARM_FSET_ADD_CPU2): New.
443 (ARM_FSET_DEL_CPU1): New.
444 (ARM_FSET_DEL_CPU2): New.
445 (ARM_FSET_UNION): New.
446 (ARM_FSET_INTER): New.
448 (ARM_FSET_EXCLUDE): New.
449 (AFM_FSET_IS_EMPTY): New.
450 (ARM_FSET_CPU_SUBSET): New.
452 2015-08-26 Jiong Wang <jiong.wang@arm.com>
454 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
455 SYMBOL_TLSLE to SYMBOL_TLSLE24.
456 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
458 (aarch64_expand_mov_immediate): Likewise.
459 (aarch64_print_operand): Likewise.
460 (aarch64_classify_symbol): Likewise.
462 2015-08-26 Jiong Wang <jiong.wang@arm.com>
464 * config/aarch64/aarch64.opt (mtls-size): New entry.
465 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
466 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
467 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
469 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
471 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
472 ARM_CORE entry. Fix some white-space.
473 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
476 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
478 * fold-const.c (fold_binary_loc) : Move Optimize
479 root(x)*root(y) as root(x*y) to match.pd.
480 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
481 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
482 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
483 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
484 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
485 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
486 (mult (exps:s @0) (exps:s @1)) : New simplifier.
487 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
488 (rdiv @0 (exps:s @1)) : New simplifier.
490 2015-08-25 Joseph Myers <joseph@codesourcery.com>
492 * gcc.c (driver::finalize): Only assign to extra_specs if
495 2015-08-25 Marek Polacek <polacek@redhat.com>
498 * varasm.c (declare_weak): Return after giving an error.
500 2015-08-25 David Malcolm <dmalcolm@redhat.com>
502 * gcc-main.c (main): Add params to driver ctor.
503 * gcc.c (class env_manager): New.
505 (env_manager::init): New.
506 (env_manager::get): New.
507 (env_manager::xput): New.
508 (env_manager::restore): New.
509 Poison getenv and putenv.
510 (DEFAULT_TARGET_SYSTEM_ROOT): New.
511 (target_system_root): Update initialization to use
512 DEFAULT_TARGET_SYSTEM_ROOT.
513 (struct spec_list): Add field "default_ptr".
514 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
515 (init_spec): Likewise.
516 (set_spec): Clear field "default_ptr".
517 (read_specs): Free "spec" and "buffer".
518 (xputenv): Reimplement in terms of env_manager.
519 (process_command): Replace ::getenv calls with calls to the
520 env_manager singleton.
521 (process_brace_body): Free string in three places.
522 (driver::driver): New.
523 (driver::~driver): New.
524 (used_arg): Convert from a function to...
525 (class used_arg_t): ...this class, and...
526 (used_arg): ...this new global instance.
527 (used_arg_t::finalize): New function.
528 (getenv_spec_function): Add "const" to local "value". Replace
529 ::getenv call with call to the env_manager singleton.
530 (path_prefix_reset): New function.
531 (driver::finalize): New function.
532 * gcc.h (driver::driver): New.
533 (driver::~driver): New.
534 (driver::finalize): New.
536 2015-08-25 Nathan Sidwell <nathan@acm.org>
538 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
539 target doesn't have one.
541 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
544 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
546 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
549 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
550 a define_insn, remove second alternative.
552 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
553 Joseph Myers <joseph@codesourcery.com>
555 * gcc.c (struct switchstr): Expand comment.
557 2015-08-25 Nathan Sidwell <nathan@acm.org>
559 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
560 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
562 2015-08-25 Richard Biener <rguenther@suse.de>
565 * genmatch.c (expr::gen_transform): Verify the result of
566 builtin_decl_implicit.
567 (dt_simplify::gen_1): Likewise.
569 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
571 * config/arm/constraints.md: Also list Cs and US ARM-specific
574 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
577 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
579 (nonpic_symbol_mentioned_p): Likewise.
580 (sh_delegitimize_address): Likewise.
581 (sh_function_ok_for_sibcall): Take into account weak symbols.
582 (sh_expand_sym_label2reg): New.
583 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
584 * config/sh/sh.md (UNSPEC_PCREL): New enum.
585 (call_pcrel): Use sh_expand_sym_label2reg.
586 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
587 (symPCREL_label2reg) New expand.
589 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
591 * graphite-poly.c: Change type of region from void* to sese.
592 * graphite-poly.h (struct scop): Changing the type of scop::region
593 from void* to sese. Change accessor macro accordingly.
594 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
596 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
598 * graphite-scop-detection.c (stmt_simple_for_scop_p):
599 Constrain only on INTEGER_TYPE.
601 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
604 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
605 -mefficient-unaligned-vsx on ISA 2.7.
607 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
608 option to a masked option.
610 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
611 logic for -mefficient-unaligned-vsx so that it is set via an arch
612 ISA option, instead of being set if -mtune=power8 is set. Move
613 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
614 near other default option handling.
616 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
618 * genflags.c (gen_macro): Delete.
619 (gen_proto): Don't create GEN.*CALL.* macros.
620 * gensupport.h (get_file_location): Declare.
621 * gensupport.c (rtx_locs): New variable.
622 (read_md_rtx): Record rtx locations.
623 (get_file_location): New function.
624 * target-insns.def (call, call_pop, call_value, call_value_pop)
625 (sibcall, sibcall_value): New patterns.
626 * gentarget-def.c (parse_argument): New function.
627 (def_target_insn): Use it. Handle optional operands. Raise an
628 error if an .md pattern has the wrong number of operands for the
629 pattern name. Remove the names of unused operands from the prototype.
630 * builtins.c (expand_builtin_apply): Use targetm functions
631 instead of HAVE_call_value and GEN_CALL_VALUE.
632 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
633 and sibcall_value_pop.
634 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
636 * config/alpha/alpha.md (untyped_call): Likewise.
637 * config/iq2000/iq2000.md (untyped_call): Likewise.
638 * config/m68k/m68k.md (untyped_call): Likewise.
639 * config/mips/mips.md (untyped_call): Likewise.
640 * config/pa/pa.md (untyped_call): Likewise.
641 * config/rs6000/rs6000.md (untyped_call): Likewise.
642 * config/sparc/sparc.md (untyped_call): Likewise.
643 * config/tilegx/tilegx.md (untyped_call): Likewise.
644 * config/tilepro/tilepro.md (untyped_call): Likewise.
645 * config/visium/visium.md (untyped_call): Likewise.
646 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
647 gen_call_value instead of GEN_CALL_VALUE.
648 * config/arm/arm.md (untyped_call): Likewise.
649 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
652 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
654 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
655 (have_cbranchcc4): New variable.
656 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
657 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
658 (if_convert): Initialize have_cbranchcc4.
660 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
662 * builtins.c (expand_cmpstrn): Rename to...
663 (expand_cmpstrn_or_cmpmem): ...this.
664 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
665 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
666 Remove mode argument.
667 (expand_builtin): Update accordingly.
669 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
671 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
672 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
673 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
674 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
675 Add predicates for operands 0 and 3.
676 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
678 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
679 immediate_operand to nonmemory_operand.
681 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
683 * df-scan.c (df_insn_info_init_fields): New function, split out
685 (df_insn_create_insn_record): ...here.
686 (df_insn_info_free_fields): New function, split out from...
687 (df_insn_info_delete): ...here.
688 (df_insn_rescan): Use the new functions instead of freeing and
689 reallocating the df_insn_info.
691 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
693 * doc/install.texi (Binaries): Remove links no longer valid.
695 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
697 * config/nvptx/mkoffload.c (process): Replace
698 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
700 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
703 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
705 2015-08-24 Renlin Li <renlin.li@arm.com>
707 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
708 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
709 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
710 * config/arm/constraints.md ("j"): Add check for high code.
712 2015-08-24 Tom de Vries <tom@codesourcery.com>
714 PR tree-optimization/65468
715 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
718 2015-08-24 Nathan Sidwell <nathan@acm.org>
720 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
721 change to nvptx_type_from_mode call. Use arg_promotion for both
722 split and non-split args.
724 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
726 * target-insns.def (movstr): New pattern.
727 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
728 (expand_movstr): Use targetm rather than HAVE_movstr/
731 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
733 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
736 2015-08-24 Andrew Pinski <apinski@cavium.com>
738 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
739 AARCH64_EXTRA_TUNING_OPTION.
740 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
741 (aarch64_extra_tuning_flags): Base the shifted value on the index instead
742 of the argument to AARCH64_EXTRA_TUNING_OPTION.
743 * config/aarch64/aarch64.c: Remove the last argument to
744 AARCH64_EXTRA_TUNING_OPTION.
746 2015-08-23 Nathan Sidwell <nathan@acm.org>
748 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
750 (nvptx_declare_function_name): Insert formatting tabs for
753 2015-08-23 Tom de Vries <tom@codesourcery.com>
755 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
756 parm_decl, rather than generating a dummy default def in cfun.
757 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
758 ssa_name from cfun and child_fn do not share a stmt as def stmt.
759 (move_stmt_op): Handle PARM_DECl.
760 (gather_ssa_name_hash_map_from): New function.
761 (move_sese_region_to_fn): Add default defs for function params, and add
762 them to vars_map. Release copied ssa names.
763 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
765 2015-08-23 Tom de Vries <tom@codesourcery.com>
767 * doc/sourcebuild.texi: Rename vect_no_int_max with
768 vect_no_int_min_max. Update description.
770 2015-08-22 Andrew Pinski <apinski@cavium.com>
772 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
773 * config/aarch64/aarch64-protos.h
774 (aarch64_fusion_pairs_index): New enum.
775 (aarch64_fusion_pairs): Base the shifted value on the index instead
776 Rewrite AARCH64_FUSE_ALL to be based on the end index.
777 of the argument to AARCH64_FUSION_PAIR.
778 * config/aarch64/aarch64.c: Remove the last argument to
781 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
783 * dominance.c (new_zero_array): Define.
784 (dom_info): Redefine as class with proper encapsulation.
785 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
787 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
788 allocations/deallocations. Pass function as parameter (instead of
790 (dom_info::get_idom): Define accessor method.
791 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
792 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
793 (calculate_dominance_info): Adjust to use dom_info class.
794 (verify_dominators): Likewise.
796 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
798 * print-rtl.c (print_rtx): Check the correct range for
799 flag_dump_unnumbered_links to behave as documented.
801 PR rtl-optimization/67227
802 PR rtl-optimization/64164
803 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
804 (nonoverlapping_memrefs_p): Test offsets and sizes when given
805 identical gimple_reg exprs.
807 2015-08-21 Nathan Sidwell <nathan@acm.org>
809 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
811 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
812 crtl->stack_alignment_needed to determine alignment.
813 (nvptx_get_drap_rtx): New.
814 (TARGET_GET_DRAP_RTX): Override.
815 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
817 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
819 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
821 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
823 * configure.ac: Remove uwin* cases.
824 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
825 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
826 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
827 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
828 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
829 i[34567]86-*-uwin*, powerpc-*-beos*.
831 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
833 * gencodes.c (gencodes): Print the comma for the preceding
834 enum value rather than the current one. Use aliased enum values
835 rather than #defines for compiled-out patterns.
836 (main): Update accordingly. Replace LAST_INSN_CODE with
838 * lra.c (insn_code_data): Update accordingly.
839 (finish_insn_code_data_once, get_static_insn_data): Likewise.
840 * recog.h (target_recog): Likewise.
841 (preprocess_insn_constraints): Change parameter to unsigned int.
842 * recog.c (preprocess_insn_constraints): Likewise.
843 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
844 * tree-vect-stmts.c (vectorizable_operation): Simplify.
846 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
848 PR rtl-optimization/61657
849 * loop-iv.c (iv_number_of_iterations): Declare up and down as
850 unsigned. Remove superflous uint64_t cast.
852 2014-08-21 Felix Yang <felix.yang@huawei.com>
853 Jiji Jiang <jiangjiji@huawei.com>
855 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
856 and get builtin function code directly from CALL.
857 (gimple_stringop_fixed_value): Modified accordingly.
858 (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
859 accordingly and only accept BUILT_IN_NORMAL string operations.
861 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
863 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
865 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
867 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
869 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
870 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
871 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
872 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
873 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
874 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
875 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
876 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
877 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
878 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
880 * match.pd (SIN ) : New Operator.
881 (TAN) : New Operator.
882 (mult (SQRT@1 @0) @1) : New simplifier.
883 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
884 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
885 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
886 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
887 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
888 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
889 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
890 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
891 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
892 (rdiv @0 (POW:s @1 @2)) : New simplifier.
894 2015-08-21 Bin Cheng <bin.cheng@arm.com>
896 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
897 loop if EXPR is simplified to const value.
899 2015-08-21 Yury Gribov <y.gribov@samsung.com>
901 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
902 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
904 2015-08-21 Richard Biener <rguenther@suse.de>
907 * gimple-fold.c (replace_stmt_with_simplification): Assert
908 seq is empty when replacing a call with itself but different
910 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
911 a call require that it is const.
913 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
915 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
916 * builtins.c (get_object_alignment_2): Adjust.
917 * varasm.c (align_variable): Likewise.
918 (get_variable_align): Likewise.
919 (build_constant_desc): Likewise.
920 (force_const_mem): Likewise.
921 * doc/tm.texi.in: Likewise.
922 * doc/tm.texi: Regenerate.
924 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
926 * genconfig.c (main): Always define HAVE_cc0.
927 * recog.c (rest_of_handle_peephole2): Adjust.
929 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
931 * reorg.c (relax_delay_slots): Don't use #if to check value of
934 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
936 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
937 * targhooks.c (default_have_conditional_execution): Adjust.
939 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
941 * rtl.h (rtvec_all_equal_p): Declare.
942 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
943 * rtl.c (rtvec_all_equal_p): New function.
944 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
945 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
946 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
947 * config/arm/arm.c (neon_vdup_constant): Likewise.
948 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
949 * config/tilegx/constraints.md (W, Y): Likewise.
950 * config/tilepro/constraints.md (W, Y): Likewise.
951 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
952 (classify_immediate): Use unwrap_const_vec_duplicate.
953 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
954 (reg_or_v2s8bit_operand): Likewise.
955 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
956 (reg_or_v4s8bit_operand): Likewise.
958 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
960 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
961 (vec_shasigma_be): New #define.
962 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
966 (VPMSUM): New BU_P8V_OVERLOAD_2.
967 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
968 entries for VEC_MADD and VEC_VPMSUM.
970 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
972 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
973 Multiply argument avr_n_flash by 64 to match unit of "KiB".
974 (avr_pgm_check_var_decl): Same.
976 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
978 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
979 initialization of HFmode scalar type (float16_t) to...
980 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
983 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
985 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
986 having an -mfp16-format.
988 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
990 * config/i386/predicates.md (vector_all_ones_operand): Use
991 CONSTM1_RTX to simplify definition.
993 2015-08-20 Richard Biener <rguenther@suse.de>
995 * toplev.c (compile_file): Remove loop calling late_global_decl
997 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
998 on decls we assembled.
1000 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
1002 * common/config/aarch64/aarch64-common.c
1003 (AARCH64_CPU_NAME_LENGTH): Delete.
1004 (aarch64_option_extension): New.
1005 (all_extensions): Likewise.
1006 (processor_name_to_arch): Likewise.
1007 (arch_to_arch_name): Likewise.
1009 (all_architectures): Likewise.
1010 (aarch64_get_extension_string_for_isa_flags): Likewise.
1011 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1013 * config/aarch64/aarch64-protos.h
1014 (aarch64_get_extension_string_for_isa_flags): New.
1015 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1016 (aarch64_option_print): Get the string to print from
1017 aarch64_get_extension_string_for_isa_flags.
1018 (aarch64_declare_function_name): Likewise.
1019 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1020 (MCPU_TO_MARCH_SPEC): This.
1021 (ASM_CPU_SPEC): Use it.
1022 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1023 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1024 (EXTRA_SPEC_FUNCTIONS): Use it.
1026 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
1028 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1029 expansion when !ISA_HAS_LWL_LWR.
1030 (mips_block_move_straight): Update the size of elements copied to
1031 account for alignment when !ISA_HAS_LWL_LWR.
1032 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1034 2015-08-19 Jiong Wang <jiong.wang@arm.com>
1036 * expr.c (expand_expr_real_2): Check gimple statement during
1039 2015-08-19 Magnus Granberg <zorry@gentoo.org>
1041 * common.opt (fstack-protector): Initialize to -1.
1042 (fstack-protector-all): Likewise.
1043 (fstack-protector-strong): Likewise.
1044 (fstack-protector-explicit): Likewise.
1045 * configure.ac: Add --enable-default-ssp.
1046 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
1047 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1049 * doc/install.texi: Document --enable-default-ssp.
1050 * config.in: Regenerated.
1051 * configure: Likewise.
1053 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
1055 PR rtl-optimization/64164
1056 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1057 (parm_in_stack_slot_p): ... this. Disregard mode, what
1058 matters is whether the parm will live in a pseudo or a stack
1060 (expand_one_ssa_partition): Deal with params without a default
1061 def. Disregard mode.
1062 * cfgexpand.h: Renamed function declaration.
1063 * tree-ssa-coalesce.c: Adjust.
1064 * function.c (split_complex_args): Allocate stack slot for
1065 unassigned parms before splitting.
1066 (parm_in_unassigned_mem_p): New. Use it instead of
1067 parm_maybe_byref_p throughout this file.
1068 (assign_parm_setup_block): Use it. Accept pseudos in the
1069 expand-assigned rtl.
1070 (assign_parm_setup_reg): Drop BLKmode requirement.
1071 (assign_parm_setup_stack): Allocate and fill in the address of
1072 unassigned MEM parms.
1074 2015-08-19 David Sherwood <david.sherwood@arm.com>
1076 * genmodes.c (emit_mode_unit_size_inline): New function.
1077 (emit_mode_unit_precision_inline): New function.
1078 (emit_insn_modes_h): Emit new #define. Emit new functions.
1079 (emit_mode_unit_size): New function.
1080 (emit_mode_unit_precision): New function.
1081 (emit_mode_adjustments): Add mode_unit_size adjustments.
1082 (emit_insn_modes_c): Emit new arrays.
1083 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1084 use new inline methods.
1086 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1088 * config/aarch64/aarch64.c (bit_count): Delete prototype
1090 (aarch64_print_operand): Use popcount_hwi instead of the above.
1092 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1094 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1097 2015-08-19 Marek Polacek <polacek@redhat.com>
1100 * gimple-ssa-isolate-paths.c
1101 (insert_trap_and_remove_trailing_statements): Rename to ...
1102 (insert_trap): ... this. Don't remove trailing statements; split
1104 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1106 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
1109 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1110 conditionalize the whole on __GNUC__. Add fallback code
1111 depending neither on undefined nor implementation-defined behaviour.
1113 2015-08-19 Jiong Wang <jiong.wang@arm.com>
1115 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1116 whitespaces with tab.
1118 2015-08-19 Florian Weimer <fweimer@redhat.com>
1120 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1121 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1122 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1123 Move Name_Ids instantiation to the Prj.Proc package, to avoid
1126 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1128 * config/arm/arm.c (bounds_check): Use %wd print format
1129 for HOST_WIDE_INT arguments.
1131 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1133 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1134 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1135 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1136 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1137 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1138 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1139 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1140 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1141 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1144 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
1146 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1147 function.c, graphite-scop-detection.c, haifa-sched.c,
1148 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1149 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1150 varasm.c: Remove typedefs of structs.
1152 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
1154 * config/rs6000/altivec.h (vec_adde): New define.
1155 (vec_addec): Likewise.
1156 (vec_double): Likewise.
1157 (vec_bperm): Likewise.
1159 * config/rs6000/rs6000-builtin.def (ADDE): New
1160 BU_ALTIVEC_OVERLOAD_3.
1162 (DOUBLE): New BU_VSX_OVERLOAD_1.
1163 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1164 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1165 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1166 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1167 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1168 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1169 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1170 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1171 and P8V_BUILTIN_VEC_VBPERMQ.
1173 2015-08-18 Jason Merrill <jason@redhat.com>
1175 * print-tree.c (print_node): Handle TREE_BINFO.
1177 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1180 * builtins.c (expand_builtin_signbit): Add asserts to make sure
1181 we can expand BUILT_IN_SIGNBIT inline.
1182 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1183 * doc/extend.texi: Document the type-generic __builtin_signbit.
1185 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
1187 PR rtl-optimization/67218
1188 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1189 (simplify_unary_operation_1): Use it.
1191 2015-08-18 Marek Polacek <polacek@redhat.com>
1194 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1195 if the call isn't valid.
1196 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1197 gimple_call_builtin_p.
1198 (call_may_clobber_ref_p_1): Likewise.
1199 (stmt_kills_ref_p): Likewise.
1201 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
1203 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1204 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1205 (mips_hard_regno_scratch_ok): Likewise.
1206 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1207 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1209 2015-08-18 Bin Cheng <bin.cheng@arm.com>
1211 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1212 (determine_value_range): Call refine_value_range_using_guard for
1213 each loop initial condition to improve value range.
1215 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
1217 * config/i386/i386.c: Remove include of fibheap.h.
1219 2015-08-17 Richard Biener <rguenther@suse.de>
1221 PR tree-optimization/67221
1222 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1223 (sccvn_dom_walker::before_dom_children): Mark backedges of
1224 non-executable blocks as not executable.
1226 2015-08-17 David Sherwood <david.sherwood@arm.com>
1228 * config/arm/arm.c (neon_element_bits): Replace call to
1229 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1230 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1231 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1232 (neon_vdup_lane<mode>): Likewise.
1233 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1234 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1235 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1236 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1237 * config/spu/spu.c (arith_immediate_p): Likewise.
1238 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1239 * expr.c (expand_expr_real_2): Likewise.
1240 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1241 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1242 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1243 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1245 * fold-const.c (fold_binary_loc): Replace call to
1246 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1247 GET_MODE_UNIT_PRECISION (m).
1249 2015-08-17 Mike Stump <mikestump@comcast.net>
1251 * config/arm/arm.c (arm_block_move_unaligned_straight):
1252 Emit normal move instead of unaligned load when source or destination
1253 are appropriately aligned.
1255 2015-08-17 Richard Biener <rguenther@suse.de>
1256 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1259 * match.pd (div (coss (op @0) : New simplifier.
1261 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
1263 PR rtl-optimization/64164
1266 PR rtl-optimization/67000
1269 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1270 * tree-ssa-copyrename.c: Removed.
1271 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1272 -ftree-coalesce-vars.
1273 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1274 * common.opt (ftree-copyrename): Ignore.
1275 (ftree-coalesce-inlined-vars): Likewise.
1276 * doc/invoke.texi: Remove the ignored options above.
1277 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1278 * tree-ssa-coalesce.h: ... here.
1279 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1280 headers required by it.
1281 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1282 across variables when flag_tree_coalesce_vars. Check register
1283 use and promoted modes to allow coalescing. Do not coalesce
1284 maybe-byref parms with SSA_NAMEs of other variables, or
1285 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
1286 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1287 with its member functions to tree-ssa-coalesce.c.
1288 (var_map_base_init): Likewise. Renamed to
1289 compute_samebase_partition_bases.
1290 (partition_view_normal): Drop want_bases parameter.
1291 (partition_view_bitmap): Likewise.
1292 * tree-ssa-live.h: Adjust declarations.
1293 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1294 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1295 default defs at the entry point.
1296 (dump_part_var_map): New.
1297 (compute_optimized_partition_bases): New, called by...
1298 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1299 of compute_samebase_partition_bases. Adjust.
1300 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1301 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1302 (ssa_default_def_partition): New.
1303 (get_rtl_for_parm_ssa_default_def): New.
1304 (align_local_variable, add_stack_var): Support anonymous SSA
1306 (defer_stack_allocation): Likewise. Declare earlier.
1307 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1308 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1309 Do no record deferred-allocation marker in
1310 SA.partition_to_pseudo.
1311 (expand_stack_vars): Adjust check for the marker in it.
1312 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1313 redundant MEM attr setting.
1314 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1316 (expand_one_stack_var): ... this. New wrapper to check and
1317 skip already expanded SSA partitions.
1318 (record_alignment_for_reg_var): New, factored out of...
1319 (expand_one_var): ... this.
1320 (expand_one_ssa_partition): New.
1321 (adjust_one_expanded_partition_var): New.
1322 (expand_one_register_var): Check and skip already expanded SSA
1324 (expand_used_vars): Don't create DECLs for anonymous SSA
1325 names. Expand all SSA partitions, then adjust all SSA names.
1326 (pass::execute): Replace the loops that set
1327 SA.partition_to_pseudo from partition leaders and cleared
1328 DECL_RTL for multi-location variables, and that which used to
1329 rename vars and set attrs, with one that clears DECL_RTL and
1330 checks that PARMs and RESULTs default_defs match DECL_RTL.
1331 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1332 * emit-rtl.c: Include stor-layout.h.
1333 (set_reg_attrs_for_parm): Handle NULL decl.
1334 (set_reg_attrs_for_decl_rtl): Take mode from expression if
1336 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1337 rather than its possibly-NULL DECL.
1338 * explow.c (promote_ssa_mode): New.
1339 * explow.h (promote_ssa_mode): Declare.
1340 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1341 (read_complex_part): Export.
1342 * expr.h (read_complex_part): Declare.
1343 * cfgexpand.h (parm_maybe_byref_p): Declare.
1344 * function.c: Include cfgexpand.h.
1345 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1346 (use_register_for_parm_decl): Wrapper for the above to
1347 special-case the result_ptr.
1348 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1349 (split_complex_args): Take assign_parm_data_all argument.
1350 Pass it to rtl_for_parm. Set up rtl and context for split
1351 args. Reset complex parm before fetching its default decl
1353 (assign_parms_unsplit_complex): Use the default-def complex
1354 parm rtl if it matches the components.
1355 (assign_parms_augmented_arg_list): Adjust.
1356 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1357 multiple locations. Recognize split complex args.
1358 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1359 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1360 (assign_parm_setup_block): Prefer SSA-assigned location, and
1361 fill in its address if the memory location of a maybe-byref
1362 parm was not assigned by cfgexpand.
1363 (assign_parm_setup_reg): Likewise. Adjust its mode as
1364 needed. Use entry_parm for equiv if stack_parm is NULL. Make
1365 sure passed_pointer parms don't need conversion. Copy address
1367 (assign_parm_setup_stack): Prefer SSA-assigned location.
1368 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1369 rtl before testing for pointer bounds. Special-case result_ptr.
1370 (expand_function_start): Maybe reset DECL_RTL of result.
1371 Prefer SSA-assigned location for result and static chain.
1372 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
1373 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
1374 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1375 anonymous SSA names. Use promote_ssa_mode.
1376 (get_temp_reg): Likewise.
1377 (remove_ssa_form): Adjust.
1378 * stor-layout.c (layout_decl): Don't set mem attributes of
1380 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1381 and get its reg_usage for reg invalidation.
1382 (compute_bb_dataflow): Pass it insn.
1383 (emit_notes_in_bb): Likewise.
1385 2015-08-14 Marek Polacek <polacek@redhat.com>
1387 * tree-core.h (tree_base): Fix typo.
1389 2015-08-14 Marek Polacek <polacek@redhat.com>
1392 * gimple.c (infer_nonnull_range_by_attribute): Check that the
1393 nonnull argument position is not outside function arguments.
1395 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
1398 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1399 'lconst_atomic' with 'const_atomic'.
1400 (atomic_fetch_<optab><mode>): Likewise.
1401 (atomic_<optab>_fetch<mode>): Likewise.
1402 * config/aarch64/iterators.md (lconst-atomic): Move below
1404 (const_atomic): New.
1406 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
1407 Bernd Schmidt <bernds@codesourcery.com>
1409 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1411 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1412 (DWARF2_DEBUGGING_INFO): Don't define.
1413 * debug.h (dwarf2_lineno_debug_hooks): Declare.
1414 * toplev.c (process_options): Add a case for it.
1415 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1416 (dwarf2out_init): Skip most initializations if
1417 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1419 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1420 DWARF2_LINENO_DEBUGGING_INFO.
1421 * opts.c (set_debug_level): Likewise.
1423 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
1425 * config/arm/types.md (is_neon_type): Add missing types.
1427 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
1429 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1431 * config/i386/i386.c (PTA_SKYLAKE): New macros.
1432 (processor_alias_table): Add skylake description.
1433 (enum processor_model): Add skylake processor.
1434 (arch_names_table): Add skylake record.
1435 * doc/invoke.texi: Add skylake item.
1437 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
1439 * ira-int.h: Include recog.h.
1440 * ira-build.c: Don't include recog.h.
1441 * ira-color.c: Likewise.
1442 * ira-conflicts.c: Likewise.
1443 * ira-costs.c: Likewise.
1444 * ira-emit.c: Likewise.
1445 * ira-lives.c: Likewise.
1447 * sched-deps.c: Likewise.
1448 * sel-sched.c: Likewise.
1449 * target-globals.c: Likewise.
1451 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
1454 * reload1.c (elimination_costs_in_insn): Make it obvious to the
1455 compiler that the n_dups and n_operands loop bounds are invariant.
1457 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1459 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1460 expressions in A and B.
1462 2015-08-13 Richard Biener <rguenther@suse.de>
1464 * tree.c (nonnull_arg_p): Move from ...
1465 * tree-vrp.c (nonnull_arg_p): ... here.
1466 * tree.h (nonnull_arg_p): Declare.
1467 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1468 here, register ptr != 0 for nonnull_arg_p pointer arguments.
1469 Properly initialize static chain and by-reference result pointer.
1470 (run_scc_vn): Adjust.
1472 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
1474 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1477 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
1479 * config/aarch64/aarch64-protos.h
1480 (aarch64_gen_atomic_cas): Declare.
1481 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1482 Choose appropriate instruction pattern for the target.
1483 (aarch64_gen_atomic_cas): New.
1484 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1485 (atomic_compare_and_swap<mode>_1): Rename to
1486 aarch64_compare_and_swap<mode>. Fix some indentation.
1487 (aarch64_compare_and_swap<mode>_lse): New.
1488 (aarch64_atomic_cas<mode>): New.
1490 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
1492 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1495 2015-08-13 Richard Biener <rguenther@suse.de>
1497 PR tree-optimization/67191
1498 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1499 assert we value-numbered last stmts operand because it can validly
1500 trigger for unreachable code.
1502 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1504 PR rtl-optimization/67103
1505 * ifcvt.c (noce_try_store_flag_constants): Move
1506 x = (-(test != 0) & (b - a)) + a transformation to...
1507 (noce_try_cmove): ... Here. Try it if normal conditional
1510 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
1512 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1514 * config/mips/mips.md (processor): Remove w32 and w64.
1516 2015-08-13 Richard Biener <rguenther@suse.de>
1518 PR tree-optimization/66502
1519 PR tree-optimization/67167
1520 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
1522 (vn_phi_lookup): Adjust.
1523 (vn_phi_insert): Likewise.
1524 (visit_phi): Prefer to value-number to another PHI node
1525 over value-numbering to a PHI argument.
1526 (init_scc_vn): Mark DFS back edges.
1528 2015-08-13 Richard Biener <rguenther@suse.de>
1530 * gimple.h (gcall::code_): New constant static member.
1531 (gcond::code_): Likewise.
1532 * gimple.c (gcall::code_): Define.
1533 (gcond::code_): Likewise.
1534 (is_a_helper <const gcond *>): Add.
1535 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
1536 and forward to a new gcall overload with less checking and a
1537 cheaper way to access the operand.
1538 (gimple_call_lhs_ptr): Likewise.
1539 (gimple_call_set_lhs): Likewise.
1540 (gimple_call_internal_p): Likewise.
1541 (gimple_call_with_bounds_p): Likewise.
1542 (gimple_call_set_with_bounds): Likewise.
1543 (gimple_call_internal_fn): Likewise.
1544 (gimple_call_set_ctrl_altering): Likewise.
1545 (gimple_call_ctrl_altering_p): Likewise.
1546 (gimple_call_fntype): Likewise.
1547 (gimple_call_fn): Likewise.
1548 (gimple_call_fn_ptr): Likewise.
1549 (gimple_call_set_fndecl): Likewise.
1550 (gimple_call_fndecl): Likewise.
1551 (gimple_call_chain): Likewise.
1552 (gimple_call_num_args): Likewise.
1553 (gimple_call_arg): Likewise.
1554 (gimple_call_arg_ptr): Likewise.
1555 (gimple_call_set_arg): Likewise.
1556 (gimple_call_noreturn_p): Likewise.
1557 (gimple_cond_code): Likewise.
1558 (gimple_cond_lhs): Likewise.
1559 (gimple_cond_rhs): Likewise.
1560 (gimple_has_lhs): Reduce checking.
1562 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1565 * match.pd (div (mult @0 @1) @1) : New simplifier.
1567 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1570 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
1571 predicate to allow construction of vector constants using the
1572 VSLDOI vector shift instruction.
1574 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
1577 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
1578 the number of bytes to be shifted left and filled in with either
1579 all zero or all one bits.
1580 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
1582 (output_vec_const_move): On power8, generate XXLORC to generate
1583 a vector constant with all 1's. Do a split if we need to use a
1586 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
1587 properly test for the MSB.
1589 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
1590 vector constants that can be created with VSLDOI.
1592 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
1595 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
1596 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
1597 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
1598 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
1599 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
1600 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1601 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
1602 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
1603 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
1605 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
1607 * config/xtensa/constraints.md (define_constraint "Y"): New
1609 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
1610 * config/xtensa/linux.h (ASM_SPEC): Likewise.
1611 * config/xtensa/predicates.md (move_operand): Match constants
1612 and symbols in the presence of TARGET_AUTO_LITPOOLS.
1613 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
1614 immediate references to TLS data.
1615 (xtensa_emit_move_sequence): Don't force constants to memory in
1616 the presence of TARGET_AUTO_LITPOOLS.
1617 (print_operand): Add 'y' format, same as default, but capable of
1618 printing SF mode constants as well.
1619 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
1620 (movsf_internal): Add movi pattern that loads literal.
1621 (movsf, movdf): Don't force constants to memory in the presence
1622 of TARGET_AUTO_LITPOOLS.
1623 (movdf_internal): Add 'Y' constraint.
1624 * config/xtensa/xtensa.opt (mauto-litpools): New option.
1625 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
1627 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
1629 * config/arm/arm-fpus.def: Replace booleans with feature flags.
1631 * config/arm/arm.c (ARM_FPU): Update macro.
1632 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
1633 (TARGET_FP16): Likewise.
1634 (TARGET_CRYPTO): Likewise.
1635 (TARGET_NEON): Likewise.
1636 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
1639 2015-08-12 Tom de Vries <tom@codesourcery.com>
1643 * doc/install.texi: Remove --with_host_libstdcxx item. Update
1644 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
1645 accordingly. Mention default for --with-stage1-ldflags.
1647 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
1649 * config/arm/arm.h (arm_fpu_feature_set): New.
1650 (ARM_FPU_FSET_HAS): New.
1654 (FPU_FL_CRYPTO): New.
1656 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1658 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
1659 after -mcmodel=large -fPIC sorry.
1661 2015-08-12 Richard Biener <rguenther@suse.de>
1663 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
1664 comparison operand order and commutative ternary op operand order.
1665 (sccvn_dom_walker::cond_stack): New state to track temporary
1667 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
1669 (sccvn_dom_walker::record_cond): Add a single temporary conditional
1671 (sccvn_dom_walker::record_conds): Add a temporary conditional
1672 expressions and all related expressions also true/false.
1673 (sccvn_dom_walker::before_dom_children): Record temporary
1674 expressions based on the controlling condition of a single
1675 predecessor. When trying to simplify a conditional statement
1676 lookup expressions we might have inserted earlier.
1678 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
1681 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
1682 to ARM core registers.
1684 2015-08-12 Nathan Sidwell <nathan@acm.org>
1686 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
1687 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
1689 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
1691 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
1693 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
1695 2015-08-12 Richard Biener <rguenther@suse.de>
1697 * gimple.h (remove_pointer): New trait.
1698 (GIMPLE_CHECK2): New inline template function.
1699 (gassign::code_): New constant static member.
1700 (is_a_helper<const gassign *>): Add.
1701 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
1702 and forward to a new gassign overload with less checking and a
1703 cheaper way to access the operand.
1704 (gimple_assign_lhs_ptr): Likewise.
1705 (gimple_assign_set_lhs): Likewise.
1706 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
1708 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
1710 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
1712 (gimple_assign_rhs_code): Likewise.
1713 * gimple.c (gassign::code_): Define.
1715 2015-08-12 Richard Biener <rguenther@suse.de>
1717 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1718 Eliminate edges marked as not executable by SCCVN.
1719 * tree-ssa-sccvn.c: Include gimple-iterator.h.
1720 (cond_dom_walker): Rename to sccvn_dom_walker.
1721 (sccvn_dom_walker::before_dom_children): Value-number defs
1723 (run_scc_vn): Remove loop value-numbering all SSA names.
1724 Drop not visited SSA names to varying.
1726 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
1728 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
1729 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
1730 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
1731 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
1732 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
1733 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1734 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
1735 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
1736 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
1738 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
1741 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
1742 to enum feature_priority and feature_list.
1743 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
1744 and isa_names_table.
1746 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
1748 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
1751 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1755 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
1756 account when deciding what was the command-line status.
1758 2015-08-11 Nathan Sidwell <nathan@acm.org>
1760 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
1762 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
1763 we're not the only contributor to target phi.
1765 2015-08-11 Jiong Wang <jiong.wang@arm.com>
1767 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
1770 2015-08-11 Tom de Vries <tom@codesourcery.com>
1772 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
1774 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
1776 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
1778 * config/i386/i386.md (cpu): Remove knl.
1780 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1784 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
1785 open-coded sequence.
1786 * omp-low.c (oacc_process_reduction_data): Remove handline of
1787 GOMP_DEVICE_HOST_NONSHM.
1789 * lto-streamer-in.c (lto_input_mode_table): Adjust to
1790 GET_MODE_INNER changes.
1792 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1793 Ilya Verbin <ilya.verbin@intel.com>
1795 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
1798 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1800 * doc/options.texi (EnabledBy): Document that the argument must be
1802 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
1803 Not enabled by -Wall.
1804 * optc-gen.awk: Give nicer error messages. Detect if the argument
1805 of EnabledBy is not a Common option.
1806 * common.opt (Wnull-dereference): Not enabled by -Wall.
1807 * opt-functions.awk (lang_enabled_by): Nicer error messages.
1809 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
1811 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
1812 model == 0x4f as Broadwell.
1814 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
1816 PR rtl-optimization/67028
1817 * combine.c (simplify_comparison): Fix comment. Rearrange code.
1818 Add test to see if a const_int fits in the new mode.
1820 2015-08-07 DJ Delorie <dj@redhat.com>
1822 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
1824 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
1826 PR rtl-optimization/67029
1827 * ira-color.c: Include "recog.h" before including "ira-int.h".
1828 * target-globals.c: Likewise.
1829 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
1830 adds an alternative_mask argument and use it instead of
1831 preferred_alternatives.
1832 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
1833 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
1834 * sched-deps.c: Include "ira-int.h" after including "ira.h".
1835 (sched_analyze_insn): Update call to
1836 ira_implicitly_set_insn_hard_regs.
1837 * sel-sched.c: Include "ira-int.h" after including "ira.h".
1838 (implicit_clobber_conflict_p): Update call to
1839 ira_implicitly_set_insn_hard_regs.
1841 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
1843 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
1845 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
1848 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
1849 currently_expanding_to_rtl is set.
1851 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
1853 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
1854 * configure: Regenerate.
1856 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1857 Jiong Wang <jiong.wang@arm.com>
1859 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
1860 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
1861 (REG_CLASS_NAMES): Likewise.
1862 (REG_CLASS_CONTENTS): Likewise.
1863 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
1864 (aarch64_register_move_cost): Likewise.
1865 (aarch64_load_symref_appropriately): Invoke the new added pattern if
1867 * config/aarch64/constraints.md (Uc0): New constraint.
1869 2015-08-06 Jiong Wang <jiong.wang@arm.com>
1871 * config/aarch64/constraints.md (Usf): Add the test of
1872 aarch64_is_noplt_call_p.
1874 2015-08-06 Jiong Wang <jiong.wang@arm.com>
1876 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
1878 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
1879 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
1880 (call_symbol): Likewise.
1882 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1884 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
1885 for vectorizing multiplication patterns.
1886 * tree-vectorizer.h: Adjust the number of patterns.
1888 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
1890 * config/i386/sse.md (*vec_concatv2df): Declare added
1891 alternatives as sselog type.
1893 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1895 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
1898 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1900 * config/s390/s390.c (s390_expand_tbegin): Expand either
1901 tbegin_1_z13 or tbegin_1 depending on VX flag.
1902 * config/s390/s390.md ("tbegin_1_z13"): New expander.
1904 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1906 * config/s390/s390.opt: Clarify description for -mzvector
1907 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
1910 2015-08-06 Richard Biener <rguenther@suse.de>
1912 * gimple.h (gimple_call_set_fn): Access op member directly.
1913 (gimple_call_chain_ptr): Likewise.
1914 (gimple_call_set_chain): Likewise.
1915 (gimple_cond_lhs_ptr): Likewise.
1916 (gimple_cond_set_lhs): Likewise.
1917 (gimple_cond_rhs_ptr): Likewise.
1918 (gimple_cond_set_rhs): Likewise.
1919 (gimple_cond_true_label): Likewise.
1920 (gimple_cond_set_true_label): Likewise.
1921 (gimple_cond_set_false_label): Likewise.
1922 (gimple_cond_false_label): Likewise.
1923 (gimple_label_label): Likewise.
1924 (gimple_label_set_label): Likewise.
1925 (gimple_goto_set_dest): Likewise.
1926 (gimple_asm_input_op): Likewise.
1927 (gimple_asm_input_op_ptr): Likewise.
1928 (gimple_asm_set_input_op): Likewise.
1929 (gimple_asm_output_op): Likewise.
1930 (gimple_asm_output_op_ptr): Likewise.
1931 (gimple_asm_set_output_op): Likewise.
1932 (gimple_asm_clobber_op): Likewise.
1933 (gimple_asm_set_clobber_op): Likewise.
1934 (gimple_asm_label_op): Likewise.
1935 (gimple_asm_set_label_op): Likewise.
1936 (gimple_switch_index): Likewise.
1937 (gimple_switch_index_ptr): Likewise.
1938 (gimple_return_retval_ptr): Likewise.
1939 (gimple_return_retval): Likewise.
1940 (gimple_return_set_retval): Likewise.
1941 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
1942 (gimple_switch_label): Likewise.
1943 (gimple_switch_set_label): Likewise.
1945 2015-08-06 Richard Biener <rguenther@suse.de>
1947 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
1948 bool comparison canonicalization and restrict to integers.
1950 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
1952 * coretypes.h (enum symbol_visibility): Relocate here.
1953 * flag-types.h (enum symbol_visibility): Remove.
1954 * tree-core.h (enum symbol_visibility): Remove.
1956 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
1959 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
1960 for no_split_stack function attribute along with
1962 (rs6000_expand_split_stack_prologue): Likewise.
1964 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1965 Jeff Law <law@redhat.com>
1968 * doc/invoke.texi (Wnull-dereference): New.
1969 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
1970 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
1971 Warn for potential NULL dereferences.
1972 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
1973 * ubsan.c (instrument_nonnull_arg): Call
1974 infer_nonnull_range_by_attribute.
1975 (instrument_nonnull_return): Likewise.
1976 * common.opt (Wnull-dereference); New.
1977 * gimple.c (infer_nonnull_range): Remove bool arguments.
1978 (infer_nonnull_range_by_dereference): New.
1979 (infer_nonnull_range_by_attribute): New.
1980 * gimple.h: Update declarations.
1982 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1984 * gensupport.c (sequence_num): Replace with...
1985 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
1986 ...these new variables.
1987 (init_rtx_reader_args_cb): Update accordingly.
1988 (get_num_code_insns): Likewise.
1989 (read_md_rtx): Rework to use a while loop and get_c_test.
1990 Use the new counters. Remove redundant DEFINE_SUBST case.
1991 * genoutput.c (gen_split): Delete.
1992 (main): Don't call it.
1994 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
1996 * gensupport.h (get_c_test): Declare.
1997 * gensupport.c (get_c_test): New function.
1998 * genconditions.c (main): Use it.
1999 * genrecog.c (validate_pattern): Likewise.
2000 (match_pattern_1): Likewise. Remove c_test argument.
2001 (match_pattern): Update accordingly and remove c_test argument.
2002 (main): Update accordingly.
2004 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2006 * gensupport.h (get_num_insn_codes): Declare.
2007 * gensupport.c (get_num_insn_codes): New function.
2008 * genattrtab.c (optimize_attrs): Rename max_insn_code to
2010 (main): Likewise. Use get_num_insn_codes.
2011 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2013 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2016 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2017 is zero- rather than sign-extended.
2019 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
2021 * target-insns.def (can_extend): Delete.
2023 2015-08-05 Richard Biener <rguenther@suse.de>
2025 PR tree-optimization/67121
2026 * tree-if-conv.c (combine_blocks): Clear range-info produced
2027 by stmts no longer executed conditionally.
2029 2015-08-05 Nick Clifton <nickc@redhat.com>
2031 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2032 to allow identical far pointers to remain.
2034 2015-08-05 Richard Biener <rguenther@suse.de>
2037 * match.pd: Compare address bases with == if they are decls
2038 or SSA names, not operand_equal_p. Otherwise fail.
2040 2015-08-05 Richard Biener <rguenther@suse.de>
2042 PR tree-optimization/67055
2043 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2046 * g++.dg/torture/pr67055.C: New testcase.
2048 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
2050 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2052 (define_attr "enabled"): Handle avx521vl and noavx512vl.
2053 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2054 AVX-512 alternative out of SSE.
2055 (define_insn "*vec_concatv2df"): Ditto.
2057 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
2059 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2060 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2061 CODE_FOR_avx_ptestv4di.
2062 * config/i386/sse.md (define_mode_iterator V_AVX): New.
2063 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2064 (define_insn "avx_ptest256"): Merge this ...
2065 (define_insn "sse4_1_ptest"): And this ...
2066 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2068 2015-08-05 Richard Biener <rguenther@suse.de>
2070 PR tree-optimization/67109
2071 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2072 against too big groups. Print whether this is a load or store
2073 group. Rename from ...
2074 (vect_analyze_group_access): ... this which is now a wrapper
2075 dissolving an invalid group.
2076 (vect_analyze_data_ref_accesses): Print whether this is a load
2079 2015-08-05 Richard Biener <rguenther@suse.de>
2082 * match.pd: Guard const_binop result checking against NULL_TREE
2085 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
2087 * cse.c (cse_insn): Restoring old behaviour for src_eqv
2088 when dest and value in the REG_EQUAL are same and dest
2091 2015-08-04 Anatoly Sokolov <aesok@post.ru>
2093 * config/moxie/moxie.h (PRINT_OPERAND,
2094 PRINT_OPERAND_ADDRESS): Remove macros.
2095 * config/moxie/moxie-protos.h (moxie_print_operand,
2096 moxie_print_operand_address): Remove declaration.
2097 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2098 TARGET_PRINT_OPERAND_ADDRESS): Define.
2099 (moxie_print_operand, moxie_print_operand_address): Make static.
2101 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2104 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2105 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2107 2015-08-04 Richard Biener <rguenther@suse.de>
2109 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2111 (dt_operand::gen_gimple_expr): Adjust.
2113 2015-08-04 Richard Biener <rguenther@suse.de>
2115 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2116 bool compares on RHS.
2117 * match.pd: Add X ==/!= !X is false/true pattern.
2119 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
2121 * config/aarch64/aarch64.c: Change inner loop statement cost
2122 to be consistent with other targets.
2124 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
2126 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2129 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
2131 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2132 (machine_function): Remove pseudos field.
2134 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2136 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2137 Exit early and use target_option_current_node if processing current
2140 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2142 * doc/extend.texi (AArch64 Function Attributes): New node.
2143 (AArch64 Pragmas): Likewise.
2145 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2147 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2148 Initialize simd builtins if TARGET_SIMD.
2149 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2150 Make sure that the builtins are initialized only once no matter how
2151 many times the function is called.
2152 (aarch64_init_builtins): Unconditionally initialize crc builtins.
2153 (aarch64_relayout_simd_param): New function.
2154 (aarch64_simd_expand_args): Use above during argument expansion.
2155 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2156 simd builtins if TARGET_SIMD.
2157 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2159 (aarch64_relayout_simd_types): Likewise.
2161 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2163 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2164 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2165 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2166 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2168 (aarch64_reset_previous_fndecl): New function.
2169 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2171 * config/aarch64/aarch64-c.c: New file.
2172 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2173 Push and pop options at beginning and end. Remove ifdef
2174 __ARM_FEATURE_CRC32.
2175 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2176 Add pragma +nothing+simd and +nothing+crypto where appropriate.
2177 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2178 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2180 (aarch64_register_pragmas): Likewise.
2181 (aarch64_reset_previous_fndecl): Likewise.
2182 (aarch64_process_target_attr): Likewise.
2183 (aarch64_override_options_internal): Likewise.
2185 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2187 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2189 (aarch64_can_inline_p): Likewise.
2190 (TARGET_CAN_INLINE_P): Define.
2192 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2194 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2195 Remove static. Handle OPT_mgeneral_regs_only,
2196 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2197 OPT_momit_leaf_frame_pointer.
2198 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2199 (aarch64_attr_opt_type): New enum.
2200 (aarch64_attribute_info): New struct.
2201 (aarch64_handle_attr_arch): New function.
2202 (aarch64_handle_attr_cpu): Likewise.
2203 (aarch64_handle_attr_tune): Likewise.
2204 (aarch64_handle_attr_isa_flags): Likewise.
2205 (aarch64_attributes): New table.
2206 (aarch64_process_one_target_attr): New function.
2207 (num_occurences_in_str): Likewise.
2208 (aarch64_process_target_attr): Likewise.
2209 (aarch64_option_valid_attribute_p): Likewise.
2210 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2211 * config/aarch64/aarch64-protos.h: Include input.h
2212 (aarch64_handle_option): Declare prototype.
2214 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2216 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2217 * config/aarch64/aarch64.c: Include target-globals.h
2218 (aarch64_previous_fndecl): New variable.
2219 (aarch64_set_current_function): New function.
2220 (TARGET_SET_CURRENT_FUNCTION): Define.
2222 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2224 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2225 (explicit_arch): Likewise.
2226 (x_aarch64_isa_flags): Likewise.
2227 (mgeneral-regs-only): Mark as Save.
2228 (mfix-cortex-a53-835769): Likewise.
2229 (mcmodel=): Likewise.
2230 (mstrict-align): Likewise.
2231 (momit-leaf-frame-pointer): Likewise.
2232 (mtls-dialect): Likewise.
2233 (master=): Likewise.
2234 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2235 (aarch64_isa_flags): Remove extern declaration.
2236 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2237 to indicate success or failure.
2238 (aarch64_validate_march): Likewise.
2239 (aarch64_validate_mtune): Likewise.
2240 (aarch64_isa_flags): Delete.
2241 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2242 instead of aarch64_isa_flags.
2243 (aarch64_get_tune_cpu): New function.
2244 (aarch64_get_arch): Likewise.
2245 (aarch64_override_options): Use above and set up explicit_tune_core
2247 (aarch64_print_extension): Move earlier in file. Add isa_flags
2248 argument and use that instead of the global aarch64_isa_flags.
2249 (aarch64_option_save): New function.
2250 (aarch64_option_restore): Likewise.
2251 (aarch64_option_print): Likewise.
2252 (aarch64_declare_function_name): Likewise.
2253 (aarch64_start_file): Delete.
2254 (TARGET_ASM_FILE_START): Do not define.
2255 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2256 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2259 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2261 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2262 flag_omit_leaf_frame_pointer to 2.
2264 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2266 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2268 (TARGET_FIX_ERR_A53_835769): New macro.
2269 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2270 handling of opts->x_aarch64_fix_a53_err835769.
2271 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2272 than aarch64_fix_a53_err835769.
2273 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2274 * config/aarch64/aarch64-linux.h: Likewise.
2276 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
2278 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2279 ix86_expand_int_movcc as boolean.
2281 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2283 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2284 (aarch64_cpu_string): Likewise.
2285 (aarch64_tune_string): Likewise.
2286 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2287 (aarch64_parse_extension): Return aarch64_parse_opt_result.
2288 Add extra argument to put result into.
2289 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
2290 (aarch64_parse_cpu): Add arguments to put results into. Return
2291 aarch64_parse_opt_result.
2292 (aarch64_parse_tune): Likewise.
2293 (aarch64_override_options_after_change_1): New function.
2294 (aarch64_override_options_internal): New function.
2295 (aarch64_validate_mcpu): Likewise.
2296 (aarch64_validate_march): Likewise.
2297 (aarch64_validate_mtune): Likewise.
2298 (aarch64_override_options): Update to reflect above changes.
2299 Move some logic into aarch64_override_options_internal.
2300 Initialize target_option_default_node and target_option_current_node.
2301 (aarch64_override_options_after_change): Move logic into
2302 aarch64_override_options_after_change_1 and call it with global_options.
2303 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2304 flag values from that.
2306 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2308 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2309 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2310 * config/aarch64/aarch64.c (struct processor): Add arch field.
2311 (all_architectures): Handle above, move above all_cores.
2312 (all_cores): Handle above.
2313 (aarch64_parse_arch): Handle above changes.
2314 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2315 above. Update comments.
2316 (armv8.1-a): Likewise.
2317 * config/aarch64/aarch64-cores.def: Update according to above.
2318 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2319 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2320 aarch64_arch_driver_info.
2322 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2324 * config/aarch64/aarch64.c (struct processor): Add ident field.
2325 Rename core sched_core.
2326 (all_cores): Handle above changes.
2327 (all_architectures): Likewise.
2328 (aarch64_parse_arch): Likewise.
2329 (aarch64_override_options): Likewise.
2331 2015-08-04 Richard Biener <rguenther@suse.de>
2333 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2334 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2335 comparisons embedded in [VEC_]COND_EXPRs.
2337 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
2339 * tree-if-conv.c: Fix various typos in comments.
2340 * tree-vect-stmts.c: Likewise.
2342 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2344 PR tree-optimization/67043
2345 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2346 preheader after hoisting invariant in it.
2347 (find_defs): Force recomputation of all luids.
2349 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
2351 * config/rs6000/htm.md (tabort.): Restrict the source operand to
2352 using a base register.
2354 2015-08-03 David Malcolm <dmalcolm@redhat.com>
2356 * main.c (main): Pass in NULL for toplev's external_timer.
2357 * timevar.c: Include coretypes.h.
2358 (class timer::named_items): New.
2359 (timer::named_items::named_items): New.
2360 (timer::named_items::~named_items): New.
2361 (timer::named_items::push): New.
2362 (timer::named_items::pop): New.
2363 (timer::named_items::print): New.
2364 (timer::timer): Initialize field "m_jit_client_items".
2365 (timer::~timer): New.
2366 (timer::push): Move bulk of implementation to...
2367 (timer::push_internal): ...here. New function.
2368 (timer::pop): Move bulk of implementation to...
2369 (timer::pop_internal): ...here. New function.
2370 (timer::push_client_item): New.
2371 (timer::pop_client_item): New.
2372 (timer::print_row): New function, taken from timer::print.
2373 (timer::print): Print "GCC items" header if we also have client
2374 items. Move row-printing to timer::print_row. Print any client
2376 (timer::get_topmost_item_name): New method.
2377 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2378 (TV_JIT_CLIENT_CODE): New.
2379 * timevar.h (timer::push_client_item): New declaration.
2380 (timer::pop_client_item): New declaration.
2381 (timer::get_topmost_item_name): New method.
2382 (timer::push_internal): New declaration.
2383 (timer::pop_internal): New declaration.
2384 (timer::print_row): New declaration.
2385 (timer::named_items): New declaration.
2386 (timer::m_jit_client_items): New field.
2387 (timer): Add friend class named_items.
2388 (auto_timevar::auto_timevar): Add timer param.
2389 (auto_timevar::~auto_timevar): Use field "m_timer".
2390 (auto_timevar::m_timer): New field.
2391 * toplev.c (initialize_rtl): Add g_timer as param when
2392 constructing auto_timevar instance.
2393 (toplev::toplev): Add "external_timer" param, and use it to
2394 initialize the "g_timer" global if non-NULL.
2395 (toplev::~toplev): If this created "g_timer", delete it.
2396 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2397 with "external_timer" timer *.
2399 2015-08-03 Alexander Basov <coohpt@gmail.com>
2404 * cfgexpand.c (expand_one_var): Add check if stack is going to
2405 be used in naked function.
2406 * expr.c (expand_expr_addr_expr_1): Remove excess checking
2407 whether expression should not reside in MEM.
2408 * function.c (use_register_for_decl): Do not use registers for
2409 non-register things (volatile, float, BLKMode) in naked functions.
2411 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
2414 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2415 Adjust splits to match new pattern.
2417 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2419 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2422 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2423 point in VSX registers.
2425 * config/rs6000/constraints.md (wb constraint): Document unused
2427 (we constraint): Likewise.
2428 (wo constraint): Likewise.
2429 (wp constraint): New constraint for IEEE 128-bit floating point in
2431 (wq constraint): Likewise.
2433 * config/rs6000/predicates.md (easy_fp_constant): Add support for
2434 IEEE 128-bit floating point in VSX registers.
2435 (easy_scalar_constant): Likewise.
2437 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2438 constraints (wp, wq) for IEEE 128-bit floating point in VSX
2440 (rs6000_init_hard_regno_mode_ok): Likewise.
2442 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2443 floating point in VSX registers.
2452 (vsx_le_permute_<mode>): Add support to properly swap bytes for
2453 IEEE 128-bit floating point in VSX registers on little endian.
2454 (vsx_le_undo_permute_<mode>): Likewise.
2455 (vsx_le_perm_load_<mode>): Likewise.
2456 (vsx_le_perm_store_<mode>): Likewise.
2457 (splitters for IEEE 128-bit fp moves): Likewise.
2459 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2462 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2463 floating point in VSX registers.
2466 * doc/md.text (Machine Constraints): Document wp and wq
2467 constraints on PowerPC.
2469 2015-08-03 Jeff Law <law@redhat.com>
2472 PR gcov-profile/66899
2473 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2474 iterate over the jump threading paths when an element in the
2475 jump threading paths array is eliminated.
2477 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2479 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2481 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
2483 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2484 is_use_properly_guarded the variable def_preds. Free its
2485 contents before returning.
2486 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2487 (is_use_properly_guarded): Replace local variable def_preds with
2488 a parameter. Adjust accordingly. Only update *def_preds if it's
2491 2015-08-03 Richard Biener <rguenther@suse.de>
2493 * genmatch.c (simplify::for_subst_vec): New member.
2494 (binary_ok): New helper for for lowering.
2495 (lower_for): Delay substituting operators into result expressions
2496 if we can merge the results eventually again.
2497 (capture_info::walk_result): Adjust for user_id appearing as
2498 result expression operator.
2499 (expr::gen_transform): Likewise.
2500 (dt_simplify::gen_1): Likewise.
2501 (dt_simplify::gen): Pass not substituted operators to tail
2502 functions or initialize local variable with it.
2503 (decision_tree::gen): Adjust function signature.
2504 * match.pd: Fix tests against global code and add default
2505 cases to switch stmts.
2507 2015-08-03 Richard Biener <rguenther@suse.de>
2509 * genmatch.c (dt_simplify::gen): Create captures array
2510 with an initializer.
2512 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2514 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2515 the host compiler is affected by placement new aliasing bug.
2516 * configure: Regenerate.
2517 * Makefile.in (ALIASING_FLAGS): New variable.
2518 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
2520 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2523 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
2524 (negmulsf3_vfp): Likewise.
2525 (muldf3negdf_vfp): Disable for -frounding-math.
2526 (mulsf3negsf_vfp): Likewise.
2527 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
2528 fix MULT cost with -frounding-math.
2530 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2532 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
2533 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
2534 explicit. Prefer to add the flag whenever possible.
2535 (noce_process_if_block): Try noce_try_store_flag_constants before
2538 2015-08-03 Richard Biener <rguenther@suse.de>
2540 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
2541 New hash-map to record equivalent transforms.
2542 (dt_node::analyze): Populate the equivalent transforms hash-map.
2543 (dt_simplify::info): Add reference to hash-map entry.
2544 (dt_simplify::gen): If we have split out a function for the
2545 transform, generate a call to it.
2546 (sinfo_hashmap_traits::hash): New function.
2547 (compare_op): New helper function for ...
2548 (sinfo_hashmap_traits::equal_keys): ... this new function.
2549 (decision_tree::gen): Split out common equivalent transforms
2552 2015-08-03 Richard Biener <rguenther@suse.de>
2554 * gimple-fold.c (fold_gimple_assign): Remove folding of
2555 the comparison in COND_EXPRs.
2557 2015-08-03 Richard Biener <rguenther@suse.de>
2559 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
2560 on the rhs of assignments first simplify the embedded
2563 2015-08-03 Richard Biener <rguenther@suse.de>
2565 PR tree-optimization/66917
2566 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
2568 (DR_VECT_AUX): New macro.
2569 (set_dr_misalignment): Adjust.
2570 (dr_misalignment): Likewise.
2571 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2572 Compute whether the base is at least element aligned.
2573 * tree-vect-stmts.c (ensure_base_align): Adjust.
2574 (vectorizable_store): If the base is not element aligned
2575 preserve alignment of the original access if misalignment is unknown.
2576 (vectorizable_load): Likewise.
2578 2015-08-02 Martin Sebor <msebor@redhat.com>
2580 * c-family/c.opt (-Wframe-address): New warning option.
2581 * doc/invoke.texi (Wframe-address): Document it.
2582 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
2583 Clarify possible effects of calling the functions with non-zero
2584 arguments and mention -Wframe-address.
2585 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
2587 2015-08-01 Michael Collison <michael.collison@linaro.org
2588 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2590 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
2591 (*arm_umin_cmp): Likewise.
2593 2015-08-01 Caroline Tice <cmtice@google.com>
2596 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
2598 (vtbl_find_mangled_name): New function.
2599 (vtbl_register_mangled_name): New function.
2600 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
2601 mangled name in mangled name vectors.
2602 (find_or_create_vtbl_map_node): Ditto.
2603 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
2604 update recursion_depth on function entry; pass it to every recursive
2605 call; automatically exit if depth > 25 (give up looking at that point).
2606 (verify_bb_vtables): Initialize recursion_depth and pass it to
2607 var_is_used_for_virtual_call_p.
2608 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
2609 global variable decls.
2610 (vtbl_register_mangled_name): New extern function decl.
2612 2015-08-01 Tom de Vries <tom@codesourcery.com>
2614 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
2616 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
2618 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
2619 operation_no_trapping_overflow. Allow non-overflow operations.
2620 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
2623 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2626 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
2628 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2630 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
2631 Enable for TARGET_32BIT.
2632 (*if_move_neg): Likewise.
2634 2015-07-31 Nick Clifton <nickc@redhat.com>
2636 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
2637 Returns true for __model__.
2638 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2640 2015-07-31 Alan Modra <amodra@gmail.com>
2643 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
2644 (rs6000_emit_prologue): Set it.
2645 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
2647 2015-07-31 Richard Biener <rguenther@suse.de>
2649 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
2650 -> X == (C1 ^ C2) which is already implemented in match.pd.
2651 Remove redundant dispatching to fold_relational_const.
2652 Move unordered self and NaN compares ...
2653 * match.pd: ... as patterns here. Remove some stray captures
2656 2015-07-31 Petr Murzin <petr.murzin@intel.com>
2658 * config/i386/i386.c
2659 (bdesc_special_args): Convert mask type from signed to unsigned for
2661 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
2662 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
2663 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
2664 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
2665 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
2666 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
2667 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
2668 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
2669 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
2670 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
2671 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
2672 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
2673 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
2674 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
2675 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
2676 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
2677 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
2678 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
2679 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
2680 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
2681 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
2682 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
2683 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
2684 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
2685 * config/i386/i386-builtin-types.def
2686 (V16QI_FTYPE_V16SI): Remove.
2687 (V8DF_FTYPE_V8SI): Ditto.
2688 (V8HI_FTYPE_V8DI): Ditto.
2689 (V8SI_FTYPE_V8DI): Ditto.
2690 (V8SF_FTYPE_V8DF): Ditto.
2691 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
2692 (V16HI_FTYPE_V16SI): Ditto.
2693 (V16SF_FTYPE_V16HI): Ditto.
2694 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
2695 (V16SF_FTYPE_V16SI): Ditto.
2696 (V4DI_FTYPE_V4DI): Ditto.
2697 (V16SI_FTYPE_V16SF): Ditto.
2698 (V16SF_FTYPE_FLOAT): Ditto.
2699 (V8DF_FTYPE_DOUBLE): Ditto.
2700 (V8DI_FTYPE_INT64): Ditto.
2701 (V8DI_FTYPE_V4DI): Ditto.
2702 (V16QI_FTYPE_V8DI): Ditto.
2703 (UINT_FTYPE_V4SF): Ditto.
2704 (UINT64_FTYPE_V4SF): Ditto.
2705 (UINT_FTYPE_V2DF): Ditto.
2706 (UINT64_FTYPE_V2DF): Ditto.
2707 (V16SI_FTYPE_V16SI): Ditto.
2708 (V8DI_FTYPE_V8DI): Ditto.
2709 (V16SI_FTYPE_PV4SI): Ditto.
2710 (V16SF_FTYPE_PV4SF): Ditto.
2711 (V8DI_FTYPE_PV2DI): Ditto.
2712 (V8DF_FTYPE_PV2DF): Ditto.
2713 (V4DI_FTYPE_PV2DI): Ditto.
2714 (V4DF_FTYPE_PV2DF): Ditto.
2715 (V16SI_FTYPE_PV2SI): Ditto.
2716 (V16SF_FTYPE_PV2SF): Ditto.
2717 (V8DI_FTYPE_PV4DI): Ditto.
2718 (V8DF_FTYPE_PV4DF): Ditto.
2719 (V8SF_FTYPE_FLOAT): Ditto.
2720 (V4SF_FTYPE_FLOAT): Ditto.
2721 (V4DF_FTYPE_DOUBLE): Ditto.
2722 (V8SF_FTYPE_PV4SF): Ditto.
2723 (V8SI_FTYPE_PV4SI): Ditto.
2724 (V4SI_FTYPE_PV2SI): Ditto.
2725 (V8SF_FTYPE_PV2SF): Ditto.
2726 (V8SI_FTYPE_PV2SI): Ditto.
2727 (V16SF_FTYPE_PV8SF): Ditto.
2728 (V16SI_FTYPE_PV8SI): Ditto.
2729 (V8DI_FTYPE_V8SF): Ditto.
2730 (V4DI_FTYPE_V4SF): Ditto.
2731 (V2DI_FTYPE_V4SF): Ditto.
2732 (V64QI_FTYPE_QI): Ditto.
2733 (V32HI_FTYPE_HI): Ditto.
2734 (V8UHI_FTYPE_V8UHI): Ditto.
2735 (V16UHI_FTYPE_V16UHI): Ditto.
2736 (V32UHI_FTYPE_V32UHI): Ditto.
2737 (V2UDI_FTYPE_V2UDI): Ditto.
2738 (V4UDI_FTYPE_V4UDI): Ditto.
2739 (V8UDI_FTYPE_V8UDI): Ditto.
2740 (V4USI_FTYPE_V4USI): Ditto.
2741 (V8USI_FTYPE_V8USI): Ditto.
2742 (V16USI_FTYPE_V16USI): Ditto.
2743 (V2DF_FTYPE_V2DF_UINT64): Ditto.
2744 (V2DI_FTYPE_V2DF_V2DF): Ditto.
2745 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
2746 (V8DF_FTYPE_V8DF_V8DI): Ditto.
2747 (V4SF_FTYPE_V4SF_UINT64): Ditto.
2748 (V4SI_FTYPE_V4SF_V4SF): Ditto.
2749 (V16SF_FTYPE_V16SF_V16SI): Ditto.
2750 (V64QI_FTYPE_V32HI_V32HI): Ditto.
2751 (V32HI_FTYPE_V16SI_V16SI): Ditto.
2752 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
2753 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
2754 (V32HI_FTYPE_V64QI_V64QI): Ditto.
2755 (V32HI_FTYPE_V32HI_V32HI): Ditto.
2756 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
2757 (V16SI_FTYPE_V16SI_V4SI): Ditto.
2758 (V16SI_FTYPE_V16SI_V16SI): Ditto.
2759 (V16SI_FTYPE_V32HI_V32HI): Ditto.
2760 (V16SI_FTYPE_V16SI_SI): Ditto.
2761 (V8DI_FTYPE_V8DI_V8DI): Ditto.
2762 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
2763 (V8DI_FTYPE_V16SI_V16SI): Ditto.
2764 (V8DI_FTYPE_V8DI_V2DI): Ditto.
2765 (QI_FTYPE_QI): Ditto.
2766 (SI_FTYPE_SI): Ditto.
2767 (DI_FTYPE_DI): Ditto.
2768 (QI_FTYPE_QI_QI): Ditto.
2769 (QI_FTYPE_QI_INT): Ditto.
2770 (HI_FTYPE_HI_INT): Ditto.
2771 (SI_FTYPE_SI_INT): Ditto.
2772 (DI_FTYPE_DI_INT): Ditto.
2773 (HI_FTYPE_V16QI_V16QI): Ditto.
2774 (SI_FTYPE_V32QI_V32QI): Ditto.
2775 (DI_FTYPE_V64QI_V64QI): Ditto.
2776 (QI_FTYPE_V8HI_V8HI): Ditto.
2777 (HI_FTYPE_V16HI_V16HI): Ditto.
2778 (SI_FTYPE_V32HI_V32HI): Ditto.
2779 (QI_FTYPE_V4SI_V4SI): Ditto.
2780 (QI_FTYPE_V8SI_V8SI): Ditto.
2781 (QI_FTYPE_V2DI_V2DI): Ditto.
2782 (QI_FTYPE_V4DI_V4DI): Ditto.
2783 (QI_FTYPE_V8DI_V8DI): Ditto.
2784 (HI_FTYPE_V16SI_V16SI): Ditto.
2785 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
2786 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
2787 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
2788 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
2789 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
2790 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
2791 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
2792 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
2793 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
2794 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
2795 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
2796 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
2797 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
2798 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
2799 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
2800 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
2801 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
2802 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
2803 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
2804 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
2805 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
2806 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
2807 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
2808 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
2809 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
2810 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
2811 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
2812 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
2813 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
2814 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
2815 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
2816 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
2817 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
2818 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
2819 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
2820 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
2821 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
2822 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
2823 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
2824 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
2825 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
2826 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
2827 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
2828 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
2829 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
2830 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
2831 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
2832 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
2833 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
2834 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
2835 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
2836 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
2837 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
2838 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
2839 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
2840 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
2841 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
2842 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
2843 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
2844 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
2845 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
2846 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
2847 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
2848 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
2849 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
2850 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
2851 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
2852 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
2853 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
2854 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
2855 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
2856 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
2857 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
2858 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
2859 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
2860 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
2861 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
2862 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
2863 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
2864 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
2865 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
2866 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
2867 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
2868 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
2869 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
2870 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
2871 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
2872 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
2873 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
2874 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
2875 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
2876 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
2877 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
2878 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
2879 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
2880 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
2881 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
2882 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
2883 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
2884 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
2885 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
2886 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
2887 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
2888 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
2889 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
2890 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
2891 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
2892 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
2893 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
2894 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
2895 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
2896 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
2897 (HI_FTYPE_HI): Ditto.
2898 (HI_FTYPE_V16QI): Ditto.
2899 (SI_FTYPE_V32QI): Ditto.
2900 (DI_FTYPE_V64QI): Ditto.
2901 (QI_FTYPE_V8HI): Ditto.
2902 (HI_FTYPE_V16HI): Ditto.
2903 (SI_FTYPE_V32HI): Ditto.
2904 (QI_FTYPE_V4SI): Ditto.
2905 (QI_FTYPE_V8SI): Ditto.
2906 (HI_FTYPE_V16SI): Ditto.
2907 (QI_FTYPE_V2DI): Ditto.
2908 (QI_FTYPE_V4DI): Ditto.
2909 (QI_FTYPE_V8DI): Ditto.
2910 (V16QI_FTYPE_HI): Ditto.
2911 (V32QI_FTYPE_SI): Ditto.
2912 (V64QI_FTYPE_DI): Ditto.
2913 (V8HI_FTYPE_QI): Ditto.
2914 (V16HI_FTYPE_HI): Ditto.
2915 (V32HI_FTYPE_SI): Ditto.
2916 (V4SI_FTYPE_QI): Ditto.
2917 (V4SI_FTYPE_HI): Ditto.
2918 (V8SI_FTYPE_QI): Ditto.
2919 (V8SI_FTYPE_HI): Ditto.
2920 (V2DI_FTYPE_QI): Ditto.
2921 (V4DI_FTYPE_QI): Ditto.
2922 (HI_FTYPE_HI_HI): Ditto.
2923 (SI_FTYPE_SI_SI): Ditto.
2924 (DI_FTYPE_DI_DI): Ditto.
2925 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
2926 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
2927 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
2928 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
2929 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
2930 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
2931 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
2932 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
2933 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
2934 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
2935 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
2936 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
2937 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
2938 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
2939 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
2940 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
2941 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
2942 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
2943 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
2944 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
2945 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
2946 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
2947 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
2948 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
2949 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
2950 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
2951 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
2952 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
2953 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
2954 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
2955 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
2956 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
2957 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
2958 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
2959 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
2960 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
2961 (V16SI_FTYPE_HI): Ditto.
2962 (V8DI_FTYPE_QI): Ditto.
2963 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
2964 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
2965 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
2966 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
2967 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
2968 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
2969 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
2970 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
2971 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
2972 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
2973 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
2974 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
2975 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
2976 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
2977 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
2978 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
2979 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
2980 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
2981 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
2982 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
2983 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
2984 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
2985 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
2986 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
2987 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
2988 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
2989 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
2990 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
2991 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
2992 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
2993 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
2994 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
2995 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
2996 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
2997 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
2998 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
2999 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3000 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3001 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3002 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3003 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3004 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3005 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3006 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3007 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3008 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3009 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3010 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3011 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3012 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3013 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3014 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3015 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3016 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3017 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3018 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3019 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3020 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3021 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3022 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3023 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3024 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3025 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3026 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3027 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3028 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3029 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3030 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3031 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3032 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3033 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3034 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3035 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3036 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3037 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3038 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3039 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3040 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3041 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3042 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3043 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3044 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3045 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3046 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3047 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3048 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3049 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3050 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3051 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3052 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3053 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3054 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3055 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3056 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3057 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3058 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3059 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3060 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3061 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3062 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3063 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3064 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3065 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3066 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3067 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3068 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3069 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3070 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3071 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3072 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3073 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3074 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3075 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3076 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3077 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3078 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3079 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3080 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3081 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3082 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3083 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3084 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3085 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3086 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3087 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3088 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3089 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3090 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3091 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3092 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3093 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3094 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3095 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3096 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3097 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3098 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3099 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3100 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3101 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3102 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3103 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3104 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3105 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3106 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3107 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3108 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3109 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3110 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3111 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3112 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3113 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3114 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3115 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3116 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3117 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3118 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3119 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3120 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3121 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3122 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3123 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3124 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3125 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3126 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3127 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3128 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3129 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3130 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3131 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3132 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3133 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3134 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3135 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3136 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3137 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3138 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3139 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3140 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3141 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3142 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3143 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3144 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3145 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3146 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3147 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3148 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3149 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3150 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3151 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3152 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3153 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3154 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3155 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3156 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3157 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3158 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3159 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3160 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3161 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3162 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3163 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3164 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3165 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3166 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3167 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3168 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3169 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3170 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3171 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3172 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3173 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3174 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3175 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3176 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3177 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3178 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3179 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3180 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3181 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3182 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3183 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3184 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3185 (QI_FTYPE_V8DF_INT_QI): Ditto.
3186 (QI_FTYPE_V4DF_INT_QI): Ditto.
3187 (QI_FTYPE_V2DF_INT_QI): Ditto.
3188 (HI_FTYPE_V16SF_INT_HI): Ditto.
3189 (QI_FTYPE_V8SF_INT_QI): Ditto.
3190 (QI_FTYPE_V4SF_INT_QI): Ditto.
3191 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3193 2015-07-31 Richard Biener <rguenther@suse.de>
3195 * gimple-fold.c (fold_gimple_assign): Remove folding of
3198 2015-07-31 Tom de Vries <tom@codesourcery.com>
3200 PR tree-optimization/66846
3201 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3202 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3203 (expand_omp_target) [ENABLE_CHECKING]: Same.
3204 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3205 cfun if !LOOPS_NEED_FIXUP.
3206 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
3207 that omp_for already has its own loop struct.
3208 * tree-parloops.c (create_phi_for_local_result)
3209 (create_call_for_reduction): Handle simple latch bb.
3210 (create_parallel_loop): Add simple latch bb to preserve
3211 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
3212 (gen_parallel_loop): Remove call to cancel_loop_tree.
3213 (parallelize_loops): Skip loops that are inner loops of parallelized
3215 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3216 verify_loop_structure.
3218 2015-07-30 Anatoly Sokolov <aesok@post.ru>
3220 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3221 * config/v850/v850.md (RV_REGNUM): New constants.
3222 * config/v850/v850.c (v850_libcall_value): New functions.
3223 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3224 (TARGET_LIBCALL_VALUE): Define.
3226 2015-07-30 Anatoly Sokolov <aesok@post.ru>
3228 * rtl.h (lowpart_subreg): Move in file.
3229 * loop-iv.c (lowpart_subreg): Move to...
3230 * simplify-rtx.c (lowpart_subreg): ...here.
3231 (simplify_binary_operation_1): Use lowpart_subreg instead of
3232 simplify_gen_subreg.
3233 * expr.c (expand_expr_real_2): Ditto.
3234 * emit-rtl.c (gen_lowpart_common): Ditto.
3235 * combine.c (gen_lowpart_for_combine): Ditto.
3236 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3237 expand_debug_source_expr): Ditto.
3239 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
3241 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3242 (expand_builtin_atomic_clear): Remove support for atomic_clear
3245 2015-07-30 Richard Biener <rguenther@suse.de>
3247 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3248 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3249 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
3250 redundant operand canonicalization.
3252 2015-07-30 David Sherwood <david.sherwood@arm.com>
3254 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3255 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3256 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3257 * config/arm/arm.c (neon_valid_immediate): Likewise.
3258 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3259 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3260 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3261 (expand_vec_perm_vpshufb2_vpermq): Likewise.
3262 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3263 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3264 * config/i386/sse.md
3265 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3266 (*ssse3_palignr<mode>_perm): Likewise.
3267 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3268 * config/spu/spu.c (arith_immediate_p): Likewise.
3269 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3270 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3272 2015-07-30 Richard Biener <rguenther@suse.de>
3274 * genmatch.c (decision_tree::gen_gimple): Merge with ...
3275 (decision_tree::gen_generic): ... this into ...
3276 (decision_tree::gen): ... this.
3277 (main): Adjust callers.
3279 2015-07-30 Richard Biener <rguenther@suse.de>
3281 * genmatch.c (verbose): New global.
3282 (warning_at): Add overload with source_location.
3283 (capture_info::capture_info): Add bool whether generating gimple
3284 or generic. Add gimple member.
3285 (capture_info::cinfo): Add capture member.
3286 (capture_info::walk_match): Record capture. Warn on
3288 (capture_info::walk_c_expr): Add more fragments captures cannot
3289 escape through. Warn on escaped captures.
3290 (dt_simplify::gen_1): Warn on operands we force to have no
3292 (main): Initialize verbose.
3293 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3295 2015-07-30 Richard Biener <rguenther@suse.de>
3298 * match.pd: Allow both operands to independently have conversion
3299 when simplifying compares of addresses.
3301 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
3305 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3306 around those cases that need one.
3308 2015-07-29 Aditya Kumar <hiraditya@msn.com>
3310 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3312 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
3314 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3315 New. Copied from config/i386/gnu-user.h.
3316 (ASM_COMMENT_START): Likewise.
3317 (DBX_REGISTER_NUMBER): Likewise.
3319 2015-07-29 Richard Biener <rguenther@suse.de>
3321 * gimple-fold.c (fold_gimple_cond): Remove.
3322 (fold_stmt_1): Do not call it.
3324 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
3326 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3327 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3329 * config/aarch64/aarch64-modes.def: Add HFmode.
3331 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3332 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3334 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3335 aarch64_promoted_type): New.
3337 (aarch64_float_const_representable_p): Disable HFmode.
3338 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3339 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3340 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3342 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3343 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3345 * config/aarch64/iterators.md (GPF_F16): New.
3347 2015-07-29 Richard Biener <rguenther@suse.de>
3349 * match.pd: Merge address comparison patterns and make them
3350 handle some more cases.
3352 2015-07-29 Richard Biener <rguenther@suse.de>
3354 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3355 (parser::parse_capture): Add bool argument on whether to reject
3357 (parser::parse_expr): Adjust.
3358 (parser::parse_op): Likewise.
3359 (parser::parse_pattern): Likewise.
3361 2015-07-29 Richard Biener <rguenther@suse.de>
3363 * gimple-fold.c (has_use_on_stmt): New function.
3364 (replace_stmt_with_simplification): Use it to allow
3365 abnormals originally referenced in the stmt.
3366 (fold_stmt_1): Canonicalize operand order.
3368 2015-07-28 David Sherwood <david.sherwood@arm.com>
3370 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3371 GET_MODE_INNER unconditionally.
3372 * config/spu/spu.c (arith_immediate_p): Likewise.
3373 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3374 * expmed.c (synth_mult): Remove check for VOIDmode result from
3376 (expand_mult_const): Likewise.
3377 * fold-const.c (fold_binary_loc): Replace call to element_precision
3378 with call to GET_MODE_PRECISION.
3379 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3381 (emit_mode_inner): Likewise.
3382 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3384 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3385 (GET_MODE_UNIT_PRECISION): Likewise.
3386 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3387 * simplify-rtx.c (simplify_immed_subreg): Likewise.
3388 * stor-layout.c (bitwise_type_for_mode): Update assert.
3389 (element_precision): Remove.
3391 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3393 * target-insns.def (reload_load_address): New targetm instruction
3395 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3397 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3399 * target-insns.def (atomic_test_and_set): New targetm instruction
3401 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3402 HAVE_*/gen_* interface.
3404 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3406 * target-insns.def (can_extend, ptr_extend): New targetm instruction
3408 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3409 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3410 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3411 * rtlanal.c (nonzero_bits1): Likewise.
3412 (num_sign_bit_copies1): Likewise.
3414 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3416 * target-insns.def (eh_return): New targetm instruction pattern.
3417 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3419 * function.c (thread_prologue_and_epilogue_insns): Remove
3420 preprocessor condition.
3422 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3424 * target-insns.def (indirect_jump): New targetm instruction pattern.
3425 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3428 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
3430 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3431 instead of nonimmediate_operand. Remove C condiition.
3433 2015-07-28 Richard Biener <rguenther@suse.de>
3435 * match.pd: Add more simplification of address comparisons.
3437 2015-07-28 Richard Biener <rguenther@suse.de>
3439 * match.pd: Re-order two cases in comparison with max/min
3440 value simplification to make it apply for bools.
3442 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3444 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3445 Handle simple SIGN_EXTEND or ZERO_EXTEND.
3446 (aarch64_rtx_costs): Properly strip extend or extract before
3447 passing down to rtx costs again.
3449 2015-07-28 Nick Clifton <nickc@redhat.com>
3451 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3452 Optimizes the case where -mes0 is active and a constant symbolic
3454 * config/rl78/rl78-protos.h: Prototype the new function.
3455 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3457 2015-07-28 Tom de Vries <tom@codesourcery.com>
3459 * tree-parloops.c (reduc_stmt_res): New function.
3460 (initialize_reductions, add_field_for_reduction)
3461 (create_phi_for_local_result, create_loads_for_reductions)
3462 (create_stores_for_reduction, build_new_reduction): Handle case that
3463 reduc_stmt is a phi.
3464 (gather_scalar_reductions): Allow double_reduc reductions.
3466 2015-07-28 Richard Biener <rguenther@suse.de>
3468 * fold-const.c (fold_comparison): Remove equality folding
3469 of decl addresses ...
3470 * match.pd: ... here and merge with existing pattern.
3472 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
3474 PR tree-optimization/66828
3475 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3476 from int64_t to uint64_t.
3478 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
3480 * opts-common.c (read_cmdline_option): List DriverOnly enum values
3481 as valid only in the error message of the driver, not in the
3482 messages of the language compilers.
3484 2015-07-27 Tom de Vries <tom@codesourcery.com>
3486 * tree-parloops.c (gather_scalar_reductions): Simplify function
3489 2015-07-27 Marek Polacek <polacek@redhat.com>
3491 * ipa-devirt.c (types_same_for_odr): Fix typo.
3493 2015-07-27 Jason Merrill <jason@redhat.com>
3496 * dwarf2out.c (gen_inlined_subroutine_die): Check
3497 cgraph_function_possibly_inlined_p.
3499 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
3501 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3502 Place integer variant first.
3503 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3505 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
3508 * config/arm/arm-builtins.c (enum arm_builtins):
3509 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3510 (ARM_BUILTIN_NEON_BASE): Rename macro to....
3511 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3512 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3513 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3515 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
3518 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
3519 Add qualifier_lane_index.
3520 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
3521 (arm_getlane_qualifiers): Use qualifier_lane_index.
3522 (arm_lanemac_qualifiers): Rename to...
3523 (arm_mac_n_qualifiers): ...this.
3524 (LANEMAC_QUALIFIERS): Rename to...
3525 (MAC_N_QUALIFIERS): ...this.
3526 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
3527 (arm_setlane_qualifiers): Use qualifier_lane_index.
3528 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
3529 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
3530 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
3531 (arm_expand_neon_builtin): Handle qualifier_lane_index.
3533 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
3534 * config/arm/arm.c (bounds_check): Likewise, improve error message.
3535 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
3536 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
3537 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
3538 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
3539 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
3540 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
3541 qualifiers to TERNOP_IMM.
3542 (vdup_lane): Change qualifiers to GETLANE.
3543 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
3544 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
3545 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
3546 vqdmlsl_n): Change qualifiers to MAC_N.
3548 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
3549 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
3550 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
3551 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
3552 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
3553 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
3554 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
3555 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
3556 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
3557 Remove call to neon_lane_bounds.
3559 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
3561 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3562 Place integer variant first.
3564 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
3566 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
3567 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
3568 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
3569 for armv6kz targets.
3570 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
3571 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
3572 (FL_FOR_ARCH6ZK): Remove.
3573 (FL_FOR_ARCH6KZ): New.
3574 (arm_arch6zk): New declaration.
3575 * config/arm/arm-tables.opt: Regenerate.
3576 * config/arm/arm.c (arm_arch6kz): New.
3577 (arm_option_override): Set arm_arch6kz.
3578 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
3579 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
3580 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
3582 2015-07-27 Marek Polacek <polacek@redhat.com>
3586 * doc/invoke.texi: Document -Wtautological-compare.
3588 2015-07-27 Richard Biener <rguenther@suse.de>
3590 * genmatch.c (decision_tree::gen_gimple): Split out large
3591 subtrees into separate functions.
3592 (decision_tree::gen_generic): Likewise.
3594 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
3596 * config/alpha/alpha.c: Use SUBREG_P predicate.
3597 * config/alpha/predicates.md: Ditto.
3599 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
3601 * config.host (s390*-*-*): Include driver-native.c only when
3602 building with s390* as host *and* target.
3604 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
3607 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
3608 T bit register modified_between_p check.
3610 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
3612 * config/i386/i386.c: Use SUBREG_P predicate.
3613 * config/i386/i386.md: Ditto.
3614 * config/i386/sse.md: Ditto.
3615 * config/i386/predicates.md: Ditto.
3617 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
3620 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
3621 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
3623 2015-07-25 Sebastian Pop <s.pop@samsung.com>
3625 * Makefile.in: Remove use of TREEBROWSER.
3626 * config.in: Regenerated.
3627 * configure: Regenerated.
3628 * configure.ac: Remove definition of TREEBROWSER.
3629 * tree-browser.c: Removed.
3630 * tree-browser.def: Removed.
3632 2015-07-25 Sebastian Pop <s.pop@samsung.com>
3634 * graphite-scop-detection.c: Include gimple-pretty-print.h.
3635 (stmt_simple_for_scop_p): Print when a stmt is not handled in
3637 (scopdet_basic_block_info): Print when a loop or bb cannot be
3638 represented in Graphite.
3640 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
3643 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
3644 execution guard when min_size is less than size_needed.
3646 2015-07-25 Sebastian Pop <s.pop@samsung.com>
3648 * doc/install.texi: Document supported versions of ISL.
3650 2015-07-25 Jeff Law <law@redhat.com>
3654 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3655 unable to find X NE 0 in the tables, return X as the simplified
3657 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3658 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3660 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3661 after removing the control flow statement and unnecessary edges.
3663 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
3666 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
3668 PR rtl-optimization/64164
3669 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3670 * tree-ssa-copyrename.c: Removed.
3671 * opts.c (default_options_table): Drop -ftree-copyrename. Add
3672 -ftree-coalesce-vars.
3673 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3674 * common.opt (ftree-copyrename): Ignore.
3675 (ftree-coalesce-inlined-vars): Likewise.
3676 * doc/invoke.texi: Remove the ignored options above.
3677 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3678 * tree-ssa-coalesce.h: ... here.
3679 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3680 headers required by it.
3681 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3682 across variables when flag_tree_coalesce_vars. Check register
3683 use and promoted modes to allow coalescing. Moved to
3684 tree-ssa-coalesce.c.
3685 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3686 with its member functions to tree-ssa-coalesce.c.
3687 (var_map_base_init): Likewise. Renamed to
3688 compute_samebase_partition_bases.
3689 (partition_view_normal): Drop want_bases parameter.
3690 (partition_view_bitmap): Likewise.
3691 * tree-ssa-live.h: Adjust declarations.
3692 * tree-ssa-coalesce.c: Include explow.h.
3693 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3694 default defs at the entry point.
3695 (dump_part_var_map): New.
3696 (compute_optimized_partition_bases): New, called by...
3697 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3698 of compute_samebase_partition_bases. Adjust.
3699 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3700 * cfgexpand.c (leader_merge): New.
3701 (get_rtl_for_parm_ssa_default_def): New.
3702 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3703 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3704 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
3705 redundant MEM attr setting.
3706 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
3708 (expand_one_stack_var): ... this. New wrapper to check and
3709 skip already expanded SSA partitions.
3710 (record_alignment_for_reg_var): New, factored out of...
3711 (expand_one_var): ... this.
3712 (expand_one_ssa_partition): New.
3713 (adjust_one_expanded_partition_var): New.
3714 (expand_one_register_var): Check and skip already expanded SSA
3716 (expand_used_vars): Don't create DECLs for anonymous SSA
3717 names. Expand all SSA partitions, then adjust all SSA names.
3718 (pass::execute): Replace the loops that set
3719 SA.partition_to_pseudo from partition leaders and cleared
3720 DECL_RTL for multi-location variables, and that which used to
3721 rename vars and set attrs, with one that clears DECL_RTL and
3722 checks that PARMs and RESULTs default_defs match DECL_RTL.
3723 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3724 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
3725 * explow.c (promote_ssa_mode): New.
3726 * explow.h (promote_ssa_mode): Declare.
3727 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3728 * function.c: Include cfgexpand.h.
3729 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3730 (use_register_for_parm_decl): Wrapper for the above to
3731 special-case the result_ptr.
3732 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3733 (split_complex_args): Take assign_parm_data_all argument.
3734 Pass it to rtl_for_parm. Set up rtl and context for split
3736 (assign_parms_augmented_arg_list): Adjust.
3737 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3738 multiple locations. Recognize split complex args.
3739 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3740 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
3741 (assign_parm_setup_block): Prefer SSA-assigned location.
3742 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
3743 if stack_parm is NULL.
3744 (assign_parm_setup_stack): Prefer SSA-assigned location.
3745 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
3746 rtl before testing for pointer bounds. Special-case result_ptr.
3747 (expand_function_start): Maybe reset DECL_RTL of result.
3748 Prefer SSA-assigned location for result and static chain.
3749 Factor out DECL_RESULT and SET_DECL_RTL.
3750 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3751 anonymous SSA names. Use promote_ssa_mode.
3752 (get_temp_reg): Likewise.
3753 (remove_ssa_form): Adjust.
3754 * stor-layout.c (layout_decl): Don't set mem attributes of
3756 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3757 and get its reg_usage for reg invalidation.
3758 (compute_bb_dataflow): Pass it insn.
3759 (emit_notes_in_bb): Likewise.
3761 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
3763 * config/i386/i386.c (ix86_va_start): Remove
3764 unneeded !TARGET_64BIT check.
3765 (ix86_gimplify_va_arg): Ditto.
3767 2015-07-24 Tom de Vries <tom@codesourcery.com>
3769 * graphite-sese-to-poly.c (build_poly_scop): Always call
3770 rewrite_commutative_reductions_out_of_ssa.
3772 2015-07-24 Tom de Vries <tom@codesourcery.com>
3774 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
3775 flag_associative_math to FLOAT_TYPE_P. Honour
3776 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
3778 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3781 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
3782 and "%qD" in warning_at instead of "%q+D" in warning.
3784 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
3786 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
3787 (ix86_function_abi): Cleanup.
3789 2015-07-24 Michael Darling <darlingm@gmail.com>
3792 * acinclude.m4: Reflects renaming of configure.in to configure.ac
3793 * configure: Likewise
3794 * configure.ac: Likewise
3795 * doc/install.texi: Likewise
3796 * doc/tm.texi: Likewise
3797 * doc/tm.texi.in: Likewise
3799 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3801 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
3802 manually swapping values.
3803 * cse.c (fold_rtx): Likewise.
3804 * lra-eliminations.c (form_sum): Likewise.
3806 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
3809 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
3810 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
3811 (*jcc_1, *jcc_2, jump, simple_return_internal)
3812 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
3813 Set length_nobnd attribute instead of length attribute.
3814 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
3815 (length_nobnd): Remove attribute.
3816 (length): Remove length_nobnd processing.
3818 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
3820 * gimplify.c (omp_default_clause): New function. Reorganize flow
3821 for clarity. Broken out of ...
3822 (omp_notice_variable): ... here.
3824 2015-07-24 Gary Funck <gary@intrepid.com>
3827 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
3828 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
3830 2015-07-24 Tom de Vries <tom@codesourcery.com>
3832 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
3833 exit-first loop transform.
3835 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
3838 * tree-cfg.c (struct replace_decls_d): New struct.
3839 (replace_block_vars_by_duplicates_1): New function.
3840 (replace_block_vars_by_duplicates): Use it to replace the decls
3841 in the value exprs by duplicates.
3843 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3845 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
3846 -shared, -symbolic, -rdynamic.
3848 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3851 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
3852 -dynamic-linker within %{!static %{!shared, and -rdynamic within
3855 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
3858 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
3859 edge summary is available.
3861 2015-07-24 Richard Biener <rguenther@suse.de>
3863 * genmatch.c (struct dt_node): Add statistic fields.
3864 (dt_node::analyze): New method.
3865 (decision_tree::gen_gimple): Call analyze on the root node
3866 and print statistics to stderr.
3867 (decision_tree::gen_generic): Likewise.
3869 2015-07-24 Richard Biener <rguenther@suse.de>
3871 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
3872 against the highest or lowest possible integer ...
3873 * match.pd: ... as patterns here.
3875 2015-07-24 Richard Biener <rguenther@suse.de>
3877 * genmatch.c (struct capture_info): Add same_as field.
3878 (capture_info::capture_info): Initialize same_as.
3879 (capture_info::walk_match): Compute same_as.
3880 (capture_info::walk_result): Compute stuff for the leader.
3881 (capture_info::walk_c_expr): Likewise.
3882 (dt_simplify::gen_1): Only look at leaders when deciding
3883 to force no side-effects or emit side-effects of omitted operands.
3885 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3887 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
3888 reg note to the GPR -> FPR save instructions.
3890 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3892 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
3894 (s390_expand_insv): Don't generate risbg pattern for constant zero
3896 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
3897 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
3900 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3902 * config/s390/s390.c (s390_reorg): Clean up handling of processors
3905 (s390_issue_rate): Likewise.
3906 (s390_sched_reorder): Likewise.
3907 (s390_sched_variable_issue): Likewise.
3908 (s390_loop_unroll_adjust): Likewise.
3909 (s390_option_override): Likewise.
3911 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3913 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
3914 processor capabilities with -march=native.
3915 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
3916 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
3917 (S390_TARGET_BITS_STRING): Macro to simplify specs.
3919 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3921 * config/s390/s390.c (s390_issue_rate): Handle
3922 PROCESSOR_2094_Z9_EC.
3923 (s390_option_override): Likewise.
3924 (s390_adjust_priority): Likewise.
3926 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
3928 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
3929 when cross compiling.
3931 2015-07-24 Richard Biener <rguenther@suse.de>
3933 * fold-const.c (maybe_canonicalize_comparison_1): Move
3934 A code CST canonicalization ...
3935 * match.pd: ... to a pattern here.
3937 2015-07-24 Jiong Wang <jiong.wang@arm.com>
3940 2015-07-22 Jiong Wang <jiong.wang@arm.com>
3942 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
3943 (HONOR_REG_ALLOC_ORDER): Define.
3945 2015-07-24 Richard Biener <rguenther@suse.de>
3947 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
3948 * fold-const.c (fold_comparison): Move parameter does not
3949 alias &local simplification ...
3950 * match.pd: ... as a pattern here.
3952 2015-07-24 Richard Biener <rguenther@suse.de>
3954 * gimple-fold.c (replace_stmt_with_simplification): Special-case
3955 valueizing call operands.
3956 * gimple-match-head.c (maybe_push_res_to_seq): Take
3957 number of call arguments from ops array.
3958 (do_valueize): New function.
3959 (gimple_simplify): Return true if valueization changed
3960 any operand even if the result didn't simplify further.
3962 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3965 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
3967 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3970 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
3972 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3974 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
3977 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3979 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
3982 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
3984 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
3985 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
3987 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
3988 ms_va_list_type_node initialization.
3990 2015-07-23 Jeff Law <law@redhat.com>
3993 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3994 unable to find X NE 0 in the tables, return X as the simplified
3996 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3997 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
3999 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4000 after removing the control flow statement and unnecessary edges.
4002 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
4004 * tree-pass.h (get_current_pass_name): Removed.
4006 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
4008 PR rtl-optimization/64164
4009 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4010 * tree-ssa-copyrename.c: Removed.
4011 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4012 -ftree-coalesce-vars.
4013 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4014 * common.opt (ftree-copyrename): Ignore.
4015 (ftree-coalesce-inlined-vars): Likewise.
4016 * doc/invoke.texi: Remove the ignored options above.
4017 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4018 * tree-ssa-coalesce.h: ... here.
4019 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4020 headers required by it.
4021 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4022 across variables when flag_tree_coalesce_vars. Check register
4023 use and promoted modes to allow coalescing. Moved to
4024 tree-ssa-coalesce.c.
4025 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4026 with its member functions to tree-ssa-coalesce.c.
4027 (var_map_base_init): Likewise. Renamed to
4028 compute_samebase_partition_bases.
4029 (partition_view_normal): Drop want_bases parameter.
4030 (partition_view_bitmap): Likewise.
4031 * tree-ssa-live.h: Adjust declarations.
4032 * tree-ssa-coalesce.c: Include explow.h.
4033 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4034 default defs at the entry point.
4035 (dump_part_var_map): New.
4036 (compute_optimized_partition_bases): New, called by...
4037 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4038 of compute_samebase_partition_bases. Adjust.
4039 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4040 * cfgexpand.c (leader_merge): New.
4041 (get_rtl_for_parm_ssa_default_def): New.
4042 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4043 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4044 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4045 redundant MEM attr setting.
4046 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4048 (expand_one_stack_var): ... this. New wrapper to check and
4049 skip already expanded SSA partitions.
4050 (record_alignment_for_reg_var): New, factored out of...
4051 (expand_one_var): ... this.
4052 (expand_one_ssa_partition): New.
4053 (adjust_one_expanded_partition_var): New.
4054 (expand_one_register_var): Check and skip already expanded SSA
4056 (expand_used_vars): Don't create DECLs for anonymous SSA
4057 names. Expand all SSA partitions, then adjust all SSA names.
4058 (pass::execute): Replace the loops that set
4059 SA.partition_to_pseudo from partition leaders and cleared
4060 DECL_RTL for multi-location variables, and that which used to
4061 rename vars and set attrs, with one that clears DECL_RTL and
4062 checks that PARMs and RESULTs default_defs match DECL_RTL.
4063 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4064 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4065 * explow.c (promote_ssa_mode): New.
4066 * explow.h (promote_ssa_mode): Declare.
4067 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4068 * function.c: Include cfgexpand.h.
4069 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4070 (use_register_for_parm_decl): Wrapper for the above to
4071 special-case the result_ptr.
4072 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4073 (split_complex_args): Take assign_parm_data_all argument.
4074 Pass it to rtl_for_parm. Set up rtl and context for split
4076 (assign_parms_augmented_arg_list): Adjust.
4077 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4078 multiple locations. Recognize split complex args.
4079 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4080 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4081 (assign_parm_setup_block): Prefer SSA-assigned location.
4082 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4083 if stack_parm is NULL.
4084 (assign_parm_setup_stack): Prefer SSA-assigned location.
4085 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4086 rtl before testing for pointer bounds. Special-case result_ptr.
4087 (expand_function_start): Maybe reset DECL_RTL of result.
4088 Prefer SSA-assigned location for result and static chain.
4089 Factor out DECL_RESULT and SET_DECL_RTL.
4090 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4091 anonymous SSA names. Use promote_ssa_mode.
4092 (get_temp_reg): Likewise.
4093 (remove_ssa_form): Adjust.
4094 * stor-layout.c (layout_decl): Don't set mem attributes of
4096 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4097 and get its reg_usage for reg invalidation.
4098 (compute_bb_dataflow): Pass it insn.
4099 (emit_notes_in_bb): Likewise.
4101 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4104 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4106 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4107 (rs6000_emit_2insn_and): Handle dot forms.
4108 * config/rs6000/rs6000.md (and<mode>3): Adjust.
4109 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
4110 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4112 2015-07-23 Richard Biener <rguenther@suse.de>
4114 * generic-match-head.c: Include cgraph.h.
4115 * gimple-match-head.c: Likewise.
4116 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4118 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4119 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
4122 2015-07-23 Richard Biener <rguenther@suse.de>
4124 * gimple-fold.c (fold_gimple_cond): Do not require folding
4125 results to pass valid_gimple_rhs_p.
4126 * tree-cfg.h (fold_cond_expr_cond): Remove.
4127 * tree-cfg.c (fold_cond_expr_cond): Likewise.
4128 (make_edges): Do not call it.
4129 * tree-inline.c (tree_function_versioning): Likewise.
4131 2015-07-23 Tom de Vries <tom@codesourcery.com>
4133 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4134 vect_force_simple_reduction.
4135 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4136 (vect_is_simple_reduction_1): Add and handle
4137 need_wrapping_integral_overflow parameter.
4138 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4139 need_wrapping_integral_overflow parameter.
4140 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4141 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4144 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
4146 PR tree-optimization/66926,66951
4147 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4148 INNER_LOOP and fix up condition for renaming virtual operands.
4150 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4152 * combine.c (try_combine): Use std::swap instead of manually
4155 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
4157 * config/mips/i6400.md: New file.
4158 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4159 (mips64r6): Likewise.
4161 * config/mips/mips-tables.opt: Regenerate.
4162 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4163 (mips_issue_rate): Add support for i6400.
4164 (mips_multipass_dfa_lookahead): Likewise.
4165 * config/mips/mips.h (TUNE_I6400): Define.
4166 * config/mips/mips.md: Include i6400.md.
4167 (processor): Add i6400.
4168 * doc/invoke.texi (-march=@var{arch}): Add i6400.
4170 2015-07-23 Richard Biener <rguenther@suse.de>
4173 * match.pd: Guard widen and sign-change comparison simplification
4176 2015-07-23 Richard Biener <rguenther@suse.de>
4178 PR tree-optimization/66945
4179 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4180 ::before_dom_children): Force the propagators idea of
4181 non-executable edges to materialize, not what the folder
4184 2015-07-23 Richard Biener <rguenther@suse.de>
4186 * gimple.h (gimple_cond_make_false): Use 0 != 0.
4187 (gimple_cond_make_true): Use 1 != 0.
4189 2015-07-22 DJ Delorie <dj@redhat.com>
4191 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4194 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4195 (ashrhi3): Likewise.
4196 (lshrhi3): Likewise.
4197 (movhi): Take advantage of zero-extend to load small constants.
4199 (and<mode>3): Likewise.
4200 (zero_extendqihi2): Likewise.
4201 (zero_extendqisi2): New.
4202 * config/msp430/constraints.md (N,O): New.
4203 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4205 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
4208 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4209 to enum feature_priority and feature_list.
4210 (fold_builtin_cpu): Add F_AES to enum processor_features
4211 and isa_names_table.
4213 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
4216 * config/i386/linux-common.h (MPX_SPEC): Use linker option
4217 for 64bit target only.
4219 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
4221 * config/nvptx/nvptx.c: Expand some comments.
4223 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
4225 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4226 (cortex_a53_advsimd): ...This.
4228 2015-07-22 Richard Biener <rguenther@suse.de>
4230 * genmatch.c (expr::gen_transform): Clarify error message
4231 and display location.
4233 2015-07-22 Richard Biener <rguenther@suse.de>
4235 * genmatch.c (struct operand): Add location member.
4236 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4238 (struct simplify): Remove match_location and result_location
4240 (elsehwere): Adjust.
4242 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
4244 * config/mips/m5100.md: New file.
4245 * config/mips/mips-cpus.def (m5100, m5101): Define.
4246 * config/mips/mips-tables.opt: Regenerate.
4247 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4248 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4249 -march=m5101 to -mips32r5.
4250 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4251 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4253 * config/mips/mips.md: Include m5100.md.
4254 (processor): Add m5100.
4255 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4257 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
4259 * config/mips/mips-cpus.def (interaptiv): Define.
4260 * config/mips/mips-tables.opt: Regenerate.
4261 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4263 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4264 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4266 2015-07-22 Jiong Wang <jiong.wang@arm.com>
4269 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4270 (HONOR_REG_ALLOC_ORDER): Define.
4272 2015-07-22 Richard Biener <rguenther@suse.de>
4274 PR tree-optimization/66952
4275 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4276 blocks we end up executing unconditionally reset all SSA
4277 info such as range and alignment.
4278 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4279 * tree-ssanames.c (reset_flow_sensitive_info): New function.
4281 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
4283 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4286 2015-07-22 Richard Biener <rguenther@suse.de>
4288 * genmatch.c (parser::parse_result): Properly handle
4289 match with result operands and conditions.
4291 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
4294 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4295 Add qualifier_struct_load_store_lane_index.
4296 (aarch64_types_loadstruct_lane_qualifiers): Use
4297 qualifier_struct_load_store_lane_index for lane index argument for
4299 (aarch64_types_storestruct_lane_qualifiers): Ditto.
4300 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4301 (aarch64_simd_expand_args): Add new argument describing mode of
4302 builtin. Check lane bounds for arguments with
4303 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4304 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4305 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4306 (aarch64_simd_expand_builtin): Handle arguments with
4307 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4308 aarch64_simd_expand_args.
4309 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4310 vst[234]_lane with BUILTIN_VALLDIF.
4311 * config/aarch64/aarch64-simd.md:
4312 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4313 endianness reversal on lane index.
4314 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4315 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4316 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4317 (vec_store_lanesci_lane<mode>): Ditto.
4318 (vec_store_lanesxi_lane<mode>): Ditto.
4319 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4320 reversal of lane index.
4321 (aarch64_ld3_lane<mode>): Ditto.
4322 (aarch64_ld4_lane<mode>): Ditto.
4323 (aarch64_st2_lane<mode>): Ditto.
4324 (aarch64_st3_lane<mode>): Ditto.
4325 (aarch64_st4_lane<mode>): Ditto.
4326 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4327 to qmode. Add new mode parameter. Update uses.
4328 (__LD3_LANE_FUNC): Ditto.
4329 (__LD4_LANE_FUNC): Ditto.
4330 (__ST2_LANE_FUNC): Ditto.
4331 (__ST3_LANE_FUNC): Ditto.
4332 (__ST4_LANE_FUNC): Ditto.
4334 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
4336 * doc/invoke.texi (Language Independent Options): Rename node to
4337 Diagnostic Message Formatting Options.
4339 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
4342 * lra-remat.c (operand_to_remat): Prevent using insns with input
4343 subregs processed separately by IRA.
4345 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
4347 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4349 (single_imm_use): Check for iterator node.
4350 (num_imm_uses): Likewise.
4351 * tree-ssa-operands.c (has_zero_uses_1): Delete.
4352 (single_imm_use_1): Check for iterator node.
4354 2015-07-21 Mike Frysinger <vapier@gentoo.org>
4355 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4357 * configure.ac: Add check for new options in isl-0.15.
4358 * config.in, configure: Rebuilt.
4359 * graphite-blocking.c: Include <isl/constraint.h>
4360 * graphite-interchange.c, graphite-poly.c: Likewise.
4361 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4362 * graphite.c: Likewise.
4363 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4365 * graphite-dependences.c: Include <isl/constraint.h>.
4366 (max_number_of_out_dimensions): Returns isl_stat.
4367 (extend_schedule_1): Likewise
4368 (extend_schedule): Corresponding changes.
4369 * graphite-optimize-isl.c: Include <isl/constraint.h> and
4371 (getSingleMap): Change return type of isl_stat.
4372 (optimize_isl): Conditionally use
4373 isl_options_set_schedule_serialize_sccs.
4374 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4375 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4377 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
4380 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4381 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4383 2015-07-21 Richard Biener <rguenther@suse.de>
4385 PR tree-optimization/66948
4386 * genmatch.c (capture_info::walk_match): Also recurse to
4387 captures. Properly compute expr state from captures of
4389 * match.pd: Add single-use guards to
4390 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4392 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
4394 * config/nvptx/mkoffload.c (process): Add static destructor call.
4396 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4399 * match.pd (A - B -> A + (-B)): Don't allow folding
4400 when type if a fixed-point type.
4402 2015-07-20 DJ Delorie <dj@redhat.com>
4404 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4405 (iorqi3_real): Likewise for set1.
4407 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
4409 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4412 2015-07-20 Aditya Kumar <hiraditya@msn.com>
4414 * graphite-isl-ast-to-gimple.c:
4415 Refactor so that each function can access 'region'. This will help
4416 maintain a parameter rename_map within a region.
4418 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4420 * config/rs6000/rs6000.md (*lt0_disi): New.
4422 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4425 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
4426 "available letters" comment.
4427 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4428 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4429 and_2rld_operand): Delete.
4430 (and_operand): Adjust.
4431 (rotate_mask_operator): New.
4432 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4433 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4434 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4435 extract_ME): Delete.
4436 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4437 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4438 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4439 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4440 rs6000_emit_2insn_and): New.
4441 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4442 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4443 includes_rldic_lshift_p, includes_rldicr_lshift_p,
4444 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4445 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4446 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4447 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4448 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4449 rs6000_emit_2insn_and): New.
4450 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4451 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4453 <NOT>: Don't fall through to next case.
4454 <AND>: Handle the various rotate-and-mask cases directly.
4455 <IOR>: Always cost as one insn.
4456 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4457 (and<mode>3): Adjust expander for the new patterns.
4458 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4459 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4460 (*and<mode>3_imm_dot_shifted): New.
4461 (*and<mode>3_mask): Delete, rewrite as ...
4462 (and<mode>3_mask): ... New.
4463 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4464 (andsi3_internal0_nomc): Delete.
4465 (*andsi3_internal6): Delete.
4466 (*and<mode>3_2insn): New.
4467 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4468 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4469 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4470 *insvdi_internal3): Delete.
4471 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4472 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4473 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4474 *ior<mode>_mask): New.
4475 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4476 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4477 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4478 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4480 (ashr<mode>3): Delete expander.
4481 (*ashr<mode>3): Rename to ...
4482 (ashr<mode>3): ... This.
4483 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4484 (*rotldi3_internal4, *rotldi3_internal5 and split,
4485 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4486 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4487 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4488 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4489 (splitter for loading a mask): Adjust.
4490 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4492 2015-07-20 Marek Polacek <polacek@redhat.com>
4494 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4495 output_add_clobbers, output_added_clobbers_hard_reg_p,
4496 gen_rtx_scratch): Remove declarations.
4498 2015-07-20 Marek Polacek <polacek@redhat.com>
4501 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4503 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4505 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4506 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4508 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4510 * combine.c (combine_simplify_rtx): Move simplification step
4511 before various transformations/substitutions.
4513 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
4515 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4516 (struct int_traits): Likewise.
4518 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4520 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
4521 function to vmsdbgout_function_decl.
4523 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
4526 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
4527 from misaligned positions.
4528 (ix86_expand_pinsr): Reject insertions to misaligned positions.
4530 2015-07-18 Sebastian Pop <s.pop@samsung.com>
4534 * Makefile.in: Removed omega.o.
4535 * common.opt: Document flag fcheck-data-deps as deprecated.
4536 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
4537 its associated params: omega-max-vars, omega-max-geqs,
4538 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
4539 omega-max-keys, omega-eliminate-redundant-constraints.
4540 * doc/loop.texi: Remove all the section on Omega.
4541 * graphite-blocking.c: Include missing params.h: it used to be
4542 included through tree-data-ref.h and omega.h.
4543 * graphite-isl-ast-to-gimple.c: Same.
4544 * graphite-optimize-isl.c: Same.
4545 * graphite-sese-to-poly.c: Same.
4549 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
4550 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
4551 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
4552 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
4553 * passes.def: Remove pass_check_data_deps.
4554 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
4555 (dump_conflict_function): Same.
4556 (dump_subscript): Same.
4557 (print_direction_vector): Same.
4558 (print_dir_vectors): Same.
4559 (print_lambda_vector): Same.
4560 (print_dist_vectors): Same.
4561 (dump_data_dependence_relation): Same.
4562 (dump_data_dependence_relations): Same.
4563 (dump_dist_dir_vectors): Same.
4565 (init_omega_eq_with_af): Removed.
4566 (omega_extract_distance_vectors): Removed.
4567 (omega_setup_subscript): Removed.
4568 (init_omega_for_ddr_1): Removed.
4569 (init_omega_for_ddr): Removed.
4570 (ddr_consistent_p): Removed.
4571 (compute_affine_dependence): Do not use omega to check data
4573 (compute_data_dependences_for_bb): Removed.
4574 (analyze_all_data_dependences): Removed.
4575 (tree_check_data_deps): Removed.
4576 * tree-data-ref.h: Do not include omega.h.
4577 (compute_data_dependences_for_bb): Removed.
4578 (tree_check_data_deps): Removed.
4579 * tree-ssa-loop.c (pass_check_data_deps): Removed.
4580 (make_pass_check_data_deps): Removed.
4581 * tree-ssa-phiopt.c: Include params.h.
4582 * tree-vect-data-refs.c: Same.
4583 * tree-vect-slp.c: Same.
4585 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
4587 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
4588 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
4589 (mem->fpreg splitters): Ditto.
4590 (general_operand->nonimmediate_operand splitter): Use explicit modes.
4591 Disable DFmode for TARGET_64BIT.
4593 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
4596 * config/i386/i386.c (ix86_expand_prologue): Replicate static
4599 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
4601 * config/nvptx/mkoffload.c (process): Constify host data.
4602 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
4604 (generate_host_descr_file): Likewise.
4606 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
4607 Sebastian Pop <s.pop@samsung.com>
4610 * graphite-dependences.c (add_pdr_constraints): Renamed
4611 pdr->extent to pdr->subscript_sizes.
4612 * graphite-interchange.c (build_linearized_memory_access): Add
4613 back all gcc_assert's that the "isl_int to isl_val conversion"
4614 patch has removed. Refactored.
4615 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
4616 * graphite-poly.c (new_poly_dr): Same.
4617 (free_poly_dr): Same.
4618 * graphite-poly.h (struct poly_dr): Same.
4619 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
4620 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
4621 * graphite-scop-detection.h: Fix space.
4622 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
4623 back all gcc_assert's removed by a previous patch.
4624 (wrap): Remove the_isl_ctx global variable that the same patch has
4626 (build_loop_iteration_domains): Same.
4627 (add_param_constraints): Same.
4628 (pdr_add_data_dimensions): Same. Refactored.
4629 (build_poly_dr): Renamed extent to subscript_sizes.
4631 2015-07-17 Marek Polacek <polacek@redhat.com>
4633 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
4634 * match.pd: ... here.
4636 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
4638 * config/nvptx/mkoffload.c (process): Constify target data.
4639 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
4640 Constify target data.
4641 (generate_target_offloadend_file): Likewise.
4643 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
4645 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
4646 to allow renaming of PHI arguments on edges incoming from outer
4647 loop header, add corresponding check before start PHI iterator.
4648 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
4649 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
4650 with true force_vectorize. Set-up dominator for outer loop too.
4651 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
4652 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
4653 was marked with force_vectorize and has restricted cfg.
4654 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
4656 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4657 do peeling for outer loops.
4659 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
4660 Matthias Klose <doko@ubuntu.com>
4662 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
4663 build-sysroot, sysroot from the `Miscenalleous configure options' to
4664 the `Directories' section and strip trailing `/' from with_sysroot.
4665 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
4666 * configure: Regenerated.
4668 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
4671 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
4672 (TARGET_HARD_DF_REGS): Ditto.
4673 (TARGET_HARD_XF_REGS): Ditto.
4674 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
4675 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
4676 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
4677 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
4678 (*movsf_internal): Add alternatives 16 and 17. Enable
4679 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
4681 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
4683 PR rtl-optimization/66891
4684 * calls.c (expand_call): Wrap precompute_register_parameters with
4685 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
4687 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
4689 * config/nvptx/mkoffload.c (process): Constify mapping variables.
4690 Define target data struct and initialize it.
4692 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
4694 PR rtl-optimization/66626
4695 * ira.h (emit-rtl.h): Include.
4696 (non_spilled_static_chain_regno_p): New.
4697 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
4698 unless it is non spilled static chain pseudo.
4699 (assign_hard_rego): Spill memory profitable allocno unless it is
4700 non spilled static chain pseudo.
4701 (allocno_spill_priority_compare): Put non spilled static chain
4702 pseudo at the end of sorted array.
4703 (improve_allocation): Do nothing if we have static chain and
4705 (allocno__priority_compare_func): Put non spilled static chain
4706 pseudo at the beginning of sorted array.
4707 (move_spill_restore): Ignore non spilled static chain pseudo.
4708 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
4709 to non spilled static chain pseudo.
4710 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
4711 pseudo at the beginning of sorted array.
4712 (spill_for): Spill non spilled static chain pseudo last.
4713 * lra-constraints.c (lra_constraints): Remove static chain pseudo
4714 check for equivalence.
4716 2015-07-16 Martin Liska <mliska@suse.cz>
4719 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
4720 dst_ctx if it does not exist.
4722 2015-07-16 Martin Liska <mliska@suse.cz>
4724 * hash-set.h (remove): New function.
4725 (iterator): New iteration class for hash_set.
4727 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4729 * genattrtab.c (make_canonical): Add a file_location parameter.
4730 Use fatal_at rather than fatal.
4731 (get_attr_value): Likewise. Update call to make_canonical.
4732 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
4733 (make_internal_attr): Update calls accordingly.
4735 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4737 * read-md.h (message_with_line, error_with_line): Delete.
4738 * read-md.c (message_with_line, error_with_line): Delete.
4739 * gensupport.h: Include read-md.h.
4740 (md_rtx_info): New structure.
4741 (read_md_rtx): Use it. Return a bool success value.
4742 * gensupport.c (read_md_rtx): Likewise.
4743 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
4744 (main): Update after interface changes.
4745 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
4746 (main): Update after interface changes.
4747 * genattrtab.c (insn_code_number): Delete.
4748 (optimize_attrs): Add a max_insn_code parameter and use it instead
4749 of insn_code_number.
4750 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
4751 Use *_at rather than *_with_line functions.
4752 (gen_insn): Likewise.
4753 (gen_delay): Likewise.
4754 (gen_insn_reserv): Likewise.
4755 (gen_bypass): Take an md_rtx_info rather than an rtx.
4756 (main): Update after interface changes. Use a local max_insn_code
4757 variable instead of insn_code_number.
4758 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
4759 an rtx. Use fatal_at rather than fatal.
4760 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
4761 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
4762 (gen_absence_set, gen_final_absence_set, gen_automaton)
4763 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
4764 (main): Update after interface changes.
4765 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
4767 (main): Update after interface changes.
4768 * genconditions.c (main): Use new read_md_rtx interface.
4769 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
4770 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
4771 (main): Update after interface changes.
4772 * genemit.c (insn_code_number, insn_index_number): Delete.
4773 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
4774 Use fatal_at rather than fatal.
4775 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
4777 (gen_split): Likewise.
4778 (main): Update after interface changes.
4779 * genextract.c (line_no): Delete.
4780 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
4781 Update call to walk_rtx.
4782 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
4783 rather than message_with_line.
4784 (walk_rtx): Add an md_rtx_info argument. Update call to
4785 VEC_safe_set_locstr.
4786 (main): Update after interface changes.
4787 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
4788 and lineno. Use error_at rather than separate message_with_line
4789 calls and have_error assignments.
4790 (main): Update after interface changes.
4791 * genmddump.c (main): Use new read_md_rtx interface.
4792 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
4793 (main): Update after interface changes.
4794 * genoutput.c (next_code_number): Delete.
4795 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
4796 (gen_peephole, gen_expand, gen_split): Likewise.
4797 (note_constraint): Likewise. Use *_at rather than *_with_line
4799 (main): Update after interface changes.
4800 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
4802 (main): Update after interface changes.
4803 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
4804 than an rtx and lineno.
4805 (process_define_constraint): Likewise.
4806 (process_define_register_constraint): Likewise.
4807 (main): Update after interface changes.
4808 * genrecog.c (next_insn_code, pattern_lineno): Delete.
4809 (validate_pattern): Replace top-level rtx with an md_rtx_info.
4810 Use *_at rather than *_with_line functions.
4811 (match_pattern_2): Likewise.
4812 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
4813 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
4814 Use *_at rather than *_with_line functions.
4815 * gentarget-def.c (add_insn): New function.
4816 (main): Use it. Use new read_md_rtx interface.
4818 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4820 * gensupport.h (compute_test_codes): Take a file_location rather
4822 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
4823 rather than *_with_line functions.
4824 (process_define_predicate): Update call to compute_test_codes.
4825 * genpreds.c (validate_exp): Take a file_location rather than a
4826 line number. Use *_at functions rather than *_with_line functions.
4827 (process_define_predicate): Update call to validate_exp.
4828 (constraint_data): Replace lineno field with a file_location.
4829 (add_constraint): Take a file_location rather than a line number.
4830 Use *_at functions rather than *_with_line functions. Fix error
4831 message for address constraints. Update after changes to
4832 validate_exp, constraint_data and compute_test_codes.
4833 (process_define_constraint): Update accordingly.
4834 (process_define_register_constraint): Likewise.
4836 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4838 * genoutput.c (data): Use a file_location to record the source
4841 (idata, idata_end): Remove initialization.
4842 (constraint_data): Replace lineno with a file_location.
4843 (output_insn_data): Update after changes to data.
4844 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
4845 (scan_operands): Likewise, using *_at rather than *_with_line
4847 (process_template): Likewise.
4848 (validate_insn_alternatives): Likewise.
4849 (validate_insn_operands): Likewise.
4850 (validate_optab_operands): Likewise.
4851 (init_insn_for_nothing): Initialize idata and idata_end.
4852 (note_constraint): Update after changes to constraint_data,
4853 using at rather than with_line functions.
4854 (mdep_constraint_len): Take a file_location rather than a
4855 line number. Use at rather than with_line functions.
4857 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4859 * read-md.h (fatal_at): Declare.
4860 * read-md.c (fatal_at): New function.
4861 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
4862 to record the source position.
4863 (check_attr_test): Take a file_location instead of a line number.
4864 Use fatal_at instead of fatal.
4865 (check_attr_value): Update after above changes, using "at"
4866 rather than "with_line" reporting functions.
4867 (convert_set_attr_alternative): Likewise.
4868 (gen_attr): Likewise.
4869 (check_defs): Likewise. Don't assign to read_md_filename.
4870 (gen_insn): Update initialization after above changes.
4871 (gen_delay): Likewise.
4872 (write_insn_cases): Print the filename for a define_peephole.
4873 (gen_insn_reserv): Take a line number as argument and update
4874 the call to check_attr_test.
4875 (main): Pass a line number to gen_insn_reserv.
4877 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4879 * read-md.h (file_location): New structure.
4880 (directive_handler_t): Take a file_location rather than a line number.
4881 (message_at, error_at): Declare.
4882 (read_skip_construct): Delete.
4883 * read-md.c (message_with_line_1): Replace with...
4884 (message_at_1): ...this new function.
4885 (message_at, error_at): New functions.
4886 (message_with_line, error_with_line): Update to use message_at_1.
4887 (handle_enum): Take a file_location rather than a line number
4888 and use error_at for error reporting.
4889 (handle_include): Likewise.
4890 (read_skip_construct): Likewise. Make static.
4891 (handle_file): Update after above changes. Pass a file_location
4892 rather than a line number to handle_directive.
4893 * gensupport.c (queue_elem): Replace separate filename and lineno
4894 with a file_location.
4895 (queue_pattern): Replace filename and lineno arguments with a
4896 file_location. Update after change to queue_elem.
4897 (process_define_predicate): Replace lineno argument with a
4898 file_location and use error_at for error reporting. Update
4899 after above changes.
4900 (process_rtx): Likewise.
4901 (subst_pattern_match): Likewise.
4902 (get_alternatives_number): Likewise.
4903 (alter_predicate_for_insn): Likewise.
4904 (rtx_handle_directive): Likewise.
4905 (is_predicable): Update after above changes, using error_at rather
4906 than error_with_line.
4907 (has_subst_attribute): Likewise.
4908 (identify_predicable_attribute): Likewise.
4909 (alter_attrs_for_subst_insn): Likewise.
4910 (process_one_cond_exec): Likewise.
4911 (process_substs_on_one_elem): Likewise.
4912 (process_define_subst): Likewise.
4913 (check_define_attr_duplicates): Likewise.
4914 (read_md_rtx): Update after change to queue_elem.
4916 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4918 * genoutput.c (next_index_number): Delete.
4919 (data): Remove index_number.
4920 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
4921 (main): Remove manipulation of next_index_number.
4923 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
4925 * genattrtab.c (check_attr_value): Remove handling of null attrs.
4926 (make_canonical): Likewise.
4928 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
4930 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
4931 instead of adjust_address_nv.
4932 (restore_stack_nonlocal): Likewise.
4933 (nonlocal_goto): Likewise.
4935 2015-07-16 Tom de Vries <tom@codesourcery.com>
4937 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
4938 not have a corresponding loop header phi.
4940 2015-07-16 Tom de Vries <tom@codesourcery.com>
4942 * tree-parloops.c (create_loads_for_reductions): Handle case that
4943 reduction is unused.
4945 2015-07-16 Richard Biener <rguenther@suse.de>
4947 PR tree-optimization/66894
4948 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
4949 about deriving NE_EXPR from truncated values.
4951 2015-07-16 Martin Liska <mliska@suse.cz>
4954 (object_allocator): Add new class.
4955 (pool_allocator::initialize): Use the underlying class.
4956 (pool_allocator::allocate): Likewise.
4957 (pool_allocator::remove): Likewise.
4958 (operator new): A new generic allocator.
4959 * asan.c (struct asan_mem_ref): Remove unused members.
4960 (asan_mem_ref_new): Replace new operator with
4961 object_allocator::allocate.
4962 (free_mem_ref_resources): Change deallocation.
4963 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
4964 with object_allocator.
4965 * config/sh/sh.c (add_constant): Replace new operator with
4966 object_allocator::allocate.
4967 (sh_reorg): Change call to a release method.
4968 * cselib.c (struct elt_list): Remove unused members.
4969 (new_elt_list): Replace new operator with
4970 object_allocator::allocate.
4971 (new_elt_loc_list): Likewise.
4972 (new_cselib_val): Likewise.
4973 (unchain_one_elt_list): Change delete operator with remove method.
4974 (unchain_one_elt_loc_list): Likewise.
4975 (unchain_one_value): Likewise.
4976 (cselib_finish): Release newly added static allocators.
4977 * cselib.h (struct cselib_val): Remove unused members.
4978 (struct elt_loc_list): Likewise.
4979 * df-problems.c (df_chain_alloc): Replace pool_allocator with
4981 * df-scan.c (struct df_scan_problem_data): Likewise.
4982 (df_scan_alloc): Likewise.
4983 * df.h (struct dataflow): Likewise.
4984 * dse.c (struct read_info_type): Likewise.
4985 (struct insn_info_type): Likewise.
4986 (struct dse_bb_info_type): Likewise.
4987 (struct group_info): Likewise.
4988 (struct deferred_change): Likewise.
4989 (get_group_info): Likewise.
4990 (delete_dead_store_insn): Likewise.
4991 (free_read_records): Likewise.
4992 (replace_read): Likewise.
4993 (check_mem_read_rtx): Likewise.
4994 (scan_insn): Likewise.
4995 (dse_step1): Likewise.
4996 (dse_step7): Likewise.
4997 * et-forest.c (struct et_occ): Remove unused members.
4998 (et_new_occ): Use allocate instead of new operator.
4999 (et_new_tree): Likewise.
5000 (et_free_tree): Call release method explicitly.
5001 (et_free_tree_force): Likewise.
5002 (et_free_pools): Likewise.
5003 (et_split): Use remove instead of delete operator.
5004 * et-forest.h (struct et_node): Remove unused members.
5005 * ipa-cp.c: Change pool_allocator to object_allocator.
5006 * ipa-inline-analysis.c: Likewise.
5007 * ipa-profile.c: Likewise.
5008 * ipa-prop.c: Likewise.
5009 * ipa-prop.h: Likewise.
5010 * ira-build.c (initiate_cost_vectors): Cast return value.
5011 (ira_allocate_cost_vector): Likewise.
5012 * ira-color.c (struct update_cost_record): Remove unused members.
5013 * lra-int.h (struct lra_live_range): Likewise.
5014 (struct lra_copy): Likewise.
5015 (struct lra_insn_reg): Likewise.
5016 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5017 * lra.c (new_insn_reg): Replace new operator with allocate method.
5018 (free_insn_regs): Same for operator delete.
5019 (finish_insn_regs): Release new static allocator.
5020 (finish_insn_recog_data): Likewise.
5021 (lra_free_copies): Replace delete operator with remove method.
5022 (lra_create_copy): Replace operator new with allocate method.
5023 (invalidate_insn_data_regno_info): Same for remove method.
5024 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5025 (free_debug_insn_changes): Replace delete operator with remove method.
5026 (replace_oldest_value_reg): Replace operator new with allocate method.
5027 (pass_cprop_hardreg::execute): Release new static variable.
5028 * sched-deps.c (sched_deps_init): Change pool_allocator to
5030 * sel-sched-ir.c: Likewise.
5031 * sel-sched-ir.h: Likewise.
5032 * stmt.c (expand_case): Likewise.
5033 (expand_sjlj_dispatch_table): Likewise.
5034 * tree-sra.c (struct access): Remove unused members.
5035 (struct assign_link): Likewise.
5036 (sra_deinitialize): Release newly added static pools.
5037 (create_access_1):Replace operator new with allocate method.
5038 (build_accesses_from_assign): Likewise.
5039 (create_artificial_child_access): Likewise.
5040 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5041 pool_allocator to object_allocator.
5042 * tree-ssa-pre.c: Likewise.
5043 * tree-ssa-reassoc.c: Likewise.
5044 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5045 * tree-ssa-strlen.c: Likewise.
5046 * tree-ssa-structalias.c: Likewise.
5047 * var-tracking.c (onepart_pool_allocate): New function.
5048 (unshare_variable): Use the newly added function.
5049 (variable_merge_over_cur): Likewise.
5050 (variable_from_dropped): Likewise.
5051 (variable_was_changed): Likewise.
5052 (set_slot_part): Likewise.
5053 (emit_notes_for_differences_1): Likewise.
5054 (vt_finalize): Release newly added static pools.
5056 2015-07-16 Martin Jambor <mjambor@suse.cz>
5058 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
5059 all uses. Fix two typos in its general comment.
5060 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
5062 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
5064 * config/i386/linux-common.h (LINK_MPX): New.
5065 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5066 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5067 indicating '-z bndplt' support by linker.
5068 * configure: Regenerate.
5069 * config.in: Regenerate.
5071 2015-07-16 Richard Biener <rguenther@suse.de>
5073 * fold-const.c (fold_widened_comparison): Remove.
5074 (fold_sign_changed_comparison): Likewise.
5075 (fold_comparison): Move widened and sign-changed comparison
5077 * match.pd: ... to patterns here.
5078 * generic-match-head.c: Include target.h.
5079 * gimple-match-head.c: Likewise.
5081 2015-07-16 Richard Biener <rguenther@suse.de>
5083 * tree-ssa-dom.c (dom_valueize): New function.
5084 (record_temporary_equivalences): Also record equivalences
5085 for dominating stmts that have uses of equivalences we are
5088 2015-07-16 Bin Cheng <bin.cheng@arm.com>
5090 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5091 add_autoinc_candidates.
5092 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5093 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5094 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5095 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5097 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5098 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5099 Remove parameter struct iv*. Call add_autoinc_candidates here.
5100 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5101 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5103 (find_iv_candidates): Call new functions.
5105 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
5107 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5108 uninitialized-variable warning.
5110 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
5113 * config/sh/sh.md (movdi): Split simple reg move to two movsi
5114 when the destination is R0.
5116 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
5119 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5120 * config/i386/i386.c (ix86_expand_pextr): New function.
5121 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
5122 for non-lowpart subregs.
5123 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5124 (insv<mode>): Use SWI248 mode iterator.
5125 (insv<mode>_1): Ditto.
5127 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5128 Sebastian Pop <s.pop@samsung.com>
5130 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5131 iterator to use_stmt.
5133 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5134 Sebastian Pop <s.pop@samsung.com>
5136 * graphite-scop-detection.c (build_scops_1): Discard scops for
5139 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5140 Sebastian Pop <s.pop@samsung.com>
5142 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5143 case of a return statement in scop.
5145 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
5146 Sebastian Pop <s.pop@samsung.com>
5148 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5149 INTEGER_TYPE parameters.
5150 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5151 VECTOR_CST in scan_tree_for_params.
5152 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5154 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
5156 * gimple-pretty-print.h: Don't include pretty-print.h.
5157 * tree-streamer.h: Don't include lto-streamer.h.
5158 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5159 * gimple-streamer-in.c: Remove redundant includes.
5160 * gimple-streamer-out.c: Likewise.
5161 * ipa-devirt.c: Likewise.
5162 * ipa-icf.c: Likewise.
5163 * ipa-inline-analysis.c: Likewise.
5164 * ipa-polymorphic-call.c: Likewise.
5165 * ipa-profile.c: Likewise.
5166 * ipa-prop.c: Likewise.
5167 * ipa-pure-const.c: Likewise.
5168 * lto-cgraph.c: Likewise.
5169 * lto-streamer-in.c: Likewise.
5170 * lto-streamer-out.c: Likewise.
5171 * lto-streamer.c: Likewise.
5172 * tree-streamer-in.c: Likewise.
5173 * tree-streamer-out.c: Likewise.
5174 * tree-streamer.c: Likewise.
5176 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
5178 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5180 * opts.c: Remove multiline #include comment.
5182 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
5184 * config/nvptx/mkoffload.c (process): Add C++ protection to
5187 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5190 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5191 null before IEEE 128-bit floating point support patch.
5193 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5195 * simplify-rtx.c (simplify_ternary_operation): Add simplification
5196 for (!c) != {0,...,0} ? a : b for vector modes.
5198 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
5199 Martin Jambor <mjambor@suse.cz>
5201 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5202 struct func_body_info* instead of struct ipa_node_params*, expecting
5203 fbi->info to be filled in. Replace throughout. Adjust call to
5204 ipa_load_from_parm_agg.
5205 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5206 instead of struct ipa_node_params*. Adjust calls to other functions
5207 so that they pass either fbi or fbi->info.
5208 (set_switch_stmt_execution_predicate): Likewise.
5209 (will_be_nonconstant_predicate): Likewise.
5210 (compute_bb_predicates): Likewise.
5211 (estimate_function_body_sizes): Move asserts earlier. Fill in
5212 struct func_body_info, replace parms_info with fbi.info. Adjust
5213 calls to functions that now accept struct func_body_info.
5214 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5215 (struct func_body_info): Likewise.
5216 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5217 remove static. Adjust callers.
5218 (ipa_load_from_parm_agg): Remove.
5219 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5220 (func_body_info): Likewise.
5221 (ipa_load_from_parm_agg): Adjust prototype.
5223 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5225 * gensupport.c (rtx_handle_directive): Adjust.
5226 * read-rtl.c (apply_iterators): Take vector to add rtxs to
5227 instead of expr list rtx.
5228 (add_define_attr_for_define_subst): Likewise.
5229 (add_define_subst_attr): Likewise.
5230 (read_subst_mapping): Likewise.
5231 (read_rtx): Likewise.
5232 * rtl.h (read_rtx): Adjust.
5234 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5236 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5238 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5241 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5242 (*tls_local_dynamic_base_64_<mode>): Ditto.
5243 (*tls_local_dynamic_base_64_largepic): Ditto.
5244 (tls_global_dynamic_64_<mode>): Update expander pattern.
5245 (tls_local_dynamic_base_64_<mode>): Ditto.
5247 2015-07-15 Richard Biener <rguenther@suse.de>
5249 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5250 and bool_var == 1 -> bool_var simplifications ...
5251 * match.pd: ... to patterns here. Factor out negate_expr_p
5252 cases from the A - B -> A + (-B) patterns as negate_expr_p
5253 predicate and add a -(A + B) -> (-B) - A pattern.
5255 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
5257 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5259 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
5260 Robert Suchanek <robert.suchanek@imgtec.com>
5262 * config/mips/mips.c (mips_int_mask): New enum.
5263 (mips_shadow_set): Likewise.
5264 (int_mask): New variable.
5265 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5266 (machine_function): Add int_mask and use_shadow_register_set.
5267 (mips_attribute_table): Add attribute handlers for interrupt and
5268 use_shadow_register_set.
5269 (mips_interrupt_mask): New static function.
5270 (mips_handle_interrupt_attr): Likewise.
5271 (mips_handle_use_shadow_register_set_attr): Likewise.
5272 (mips_use_shadow_register_set): Change return type to enum
5273 mips_shadow_set. Add argument handling for use_shadow_register_set
5275 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5276 compare with mips_shadow_set enum.
5277 (mips_compute_frame_info): Add interrupt mask and
5278 use_shadow_register_set to per-function information structure.
5279 Add a stack slot for EPC unconditionally.
5280 (mips_expand_prologue): Compare use_shadow_register_set value
5281 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
5282 masked interrupt register but in EIC mode use K0 and save Cause in K0.
5283 EPC saved and restored unconditionally. Use PMODE_INSN macro when
5284 copying the stack pointer from the shadow register set.
5285 * config/mips/mips.h (SR_IM0): New define.
5286 * config/mips/mips.md (mips_rdpgpr): Rename to...
5287 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
5288 * doc/extend.texi (Declaring Attributes of Functions): Document
5289 optional arguments for interrupt and use_shadow_register_set
5292 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
5294 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5295 interrupt attribute.
5296 (mips_expand_prologue): Disable the floating point unit in an ISR.
5297 * config/mips/mips.h (SR_COP1): New define.
5299 2015-07-15 Richard Biener <rguenther@suse.de>
5301 * genmatch.c (parser::peek, parser::peek_ident): Add argument
5302 to tell how many tokens to peek ahead (default 1).
5303 (parser::eat_token, parser::eat_ident): Return token consumed.
5304 (parser::parse_result): Parse new switch statement.
5305 * match.pd: Use case statements where appropriate.
5307 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5309 PR rtl-optimization/58066
5310 * calls.c (expand_call): Precompute register parameters before stack
5311 alignment is performed.
5313 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
5315 PR rtl-optimization/66838
5316 * postreload.c (reload_cse_move2add): Also process
5317 CALL_INSN_FUNCTION_USAGE when resetting information of
5318 call-clobbered registers.
5320 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5321 Cesar Philippidis <cesar@codesourcery.com>
5322 Chung-Lin Tang <cltang@codesourcery.com>
5324 * config/nios2/constraints.md (U, v): New constraints.
5325 * config/nios2/predicates.md (rdprs_dcache_operand): New.
5326 (ldstex_memory_operand): New.
5327 * config/nios2/sync.md: New file.
5328 * config/nios2/nios2.md (unspecv): Add new builtin function
5330 (rdprs, flushd, flushda, wrpie, eni): New patterns.
5331 (top-level): Include sync.md.
5332 * config/nios2/nios2.c (N2_FTYPES): Add function types for
5334 (N2_BUILTINS): Add arch field setting, add new builtins.
5335 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5337 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5338 Also handle ldex/stex/ldsex/stsex builtins.
5339 (nios2_expand_rdprs_builtin): New function.
5340 (nios2_expand_cache_builtin): New function.
5341 (nios2_expand_wrpie_builtin): New function.
5342 (nios2_expand_eni_builtin): New function.
5343 (nios2_expand_builtin): Add arch field handling and new builtin
5345 * doc/extend.texi (Altera Nios II Built-in Functions): Document
5347 * doc/md.texi (Machine Constraints): Document U and v constraints.
5349 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5350 Cesar Philippidis <cesar@codesourcery.com>
5351 Chung-Lin Tang <cltang@codesourcery.com>
5353 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5354 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5355 callee_save_reg_size and uses_anonymous_args fields.
5356 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5357 (nios2_create_cfa_notes): New function.
5358 (nios2_adjust_stack): New function for adjusting stack.
5359 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5360 Use nios2_adjust_stack.
5361 (nios2_expand_epilogue): Likewise.
5362 (nios2_expand_return): New function.
5363 (nios2_can_use_return_insn): Update for CDX pop.n usage.
5364 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5365 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5366 * config/nios2/nios2.md (return): Use nios2_expand_return.
5368 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5369 Cesar Philippidis <cesar@codesourcery.com>
5370 Chung-Lin Tang <cltang@codesourcery.com>
5372 * config/nios2/predicates.md (pop_operation): New.
5373 (ldwm_operation, stwm_operation): New.
5374 (nios2_hard_register_operand): New.
5375 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5376 (ldstwm_operation_p): Declare.
5377 (gen_ldstwm_peep): Declare.
5378 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5379 (base_reg_adjustment_p): New.
5380 (pop_operation_p): New.
5381 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5382 (nios2_ldstwm_regset_p): New.
5383 (ldstwm_operation_p): New.
5385 (nios2_ldst_parallel): New.
5386 (struct ldswm_operand): Declare.
5387 (compare_ldstwm_operands): New.
5388 (can_use_cdx_ldstw): New.
5389 (gen_ldstwm_peep): New.
5390 * config/nios2/nios2-ldstwm.sml: New.
5391 * config/nios2/nios2.md: Include ldstwm.md.
5392 * config/nios2/ldstwm.md: Generated.
5394 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5395 Cesar Philippidis <cesar@codesourcery.com>
5396 Chung-Lin Tang <cltang@codesourcery.com>
5398 * config/nios2/nios2.h (LABEL_ALIGN): Define.
5399 (REG_ALLOC_ORDER): Define.
5400 (ADJUST_REG_ALLOC_ORDER): Define.
5401 (HONOR_REG_ALLOC_ORDER): Define.
5402 (CDX_REG_P): Define.
5403 (ANDCLEAR_INT): Define.
5404 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5405 (nios2_label_align): Declare.
5406 (nios2_cdx_narrow_form_p): Declare.
5407 (nios2_adjust_reg_alloc_order): Declare.
5408 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5410 (nios2_large_unspec_reloc_p): New function, split from...
5411 (nios2_legitimate_pic_operand_p): ...here.
5412 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5413 (nios2_print_operand_punct_valid_p): New.
5414 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
5415 (split_mem_address): New.
5416 (split_alu_insn): New.
5418 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5419 (enum nios2_add_insn_kind): New.
5420 (nios2_add_insn_names, nios2_add_insn_narrow): New.
5421 (nios2_add_insn_classify): New.
5422 (nios2_add_insn_asm): New.
5423 (nios2_cdx_narrow_form_p): New.
5424 (label_align, min_labelno, max_labelno): New.
5426 (nios2_label_align): New.
5427 (nios2_adjust_reg_alloc_order): New.
5428 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5429 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5430 * config/nios2/constraints.md (P): New constraint.
5431 * config/nios2/predicates.md (const_and_operand): New.
5433 (stack_memory_operand): New.
5434 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5435 (length): Update to use nios2_cdx_narrow_form_p().
5436 (type): Add new insn type values.
5437 (control, alu, st, ld, shift): Update insn reservations with
5438 new insn type values.
5439 (*high, *lo_sum): Define new insn patterns for constant generation.
5440 (movqi_internal, movhi_internal, movsi_internal): Reduce
5441 alternatives, update asm template to handle CDX variants, update
5443 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5444 template, update type attributes.
5445 (extendhisi2, extendqi<mode>2): Likewise.
5446 (addsi3): Change to use function for asm string.
5447 (subsi3): Add CDX notation to asm template, update type attributes.
5448 (negsi3, one_cmplsi3): Likewise.
5449 (andsi3): New pattern, specialized from logical patterns.
5450 (<code>si3): Remove and case, combine alternatives, update asm
5452 (<shift_op>si3): Add CDX notation, update type attributes.
5453 (rotrsi3): Update type attribute.
5454 (*merge, extzv, insv): New insn patterns.
5455 (return): Change to define_expand.
5456 (simple_return): Add CDX notation, update type attributes.
5457 (indirect_jump): Add CDX notation.
5458 (jump): Update asm cases, update length attribute expression.
5459 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5460 (nios2_cbranch): Update asm cases and length attribute expression
5461 to handle CDX variants.
5462 (nios2_cmp<code>): Update asm template.
5463 (nop): Add CDX notation, update type attributes.
5464 (trap): Add CDX notation.
5465 (ctrapsi4): Update asm cases and length attribute expression to
5467 * doc/md.texi (Machine Constraints): Document P constraint.
5469 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5470 Cesar Philippidis <cesar@codesourcery.com>
5471 Chung-Lin Tang <cltang@codesourcery.com>
5473 * config/nios2/nios2.h (SMALL_INT12): New macro.
5474 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5475 (nios2_valid_addr_expr_p): Use it.
5476 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5477 with implicit "io" instructions on R2.
5478 * config/nios2/constraints.md (w): New constraint.
5479 * config/nios2/predicates.md (ldstio_memory_operand): New.
5480 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5481 operand predicate and constraint.
5482 (ld<bh>io_signed, st<bhw>io>): Likewise.
5483 * doc/md.texi (Machine Constraints): Document w constraint.
5485 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5486 Cesar Philippidis <cesar@codesourcery.com>
5487 Chung-Lin Tang <cltang@codesourcery.com>
5489 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
5490 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5491 Nios II architecture level.
5492 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5493 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5494 (OPTION_DEFAULT_SPECS): Define.
5495 (ASM_SPEC): Add -march= spec strings.
5496 * config/nios2/nios2.c (nios2_option_override): Check for
5497 conflicts involving new options.
5498 * config.gcc (nios2*-*-*): Support --with-arch=.
5499 * doc/invoke.texi (Option Summary, Nios II Options): Document
5500 -march=, -mbmx, and -mcdx.
5502 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
5504 PR rtl-optimization/66626
5505 * lra-constraints.c (lra_constraints): Prevent equivalence
5506 substitution for static chain pseudo in functions with nonlocal
5509 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
5511 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5512 (nios2_emit_stack_limit_check): Add size parameter. Handle
5513 -fstack-limit-symbol as well as -fstack-limit-register.
5514 (nios2_expand_prologue): Emit only a single stack limit check,
5515 even if multiple stack adjustments are required.
5516 (nios2_option_override): Diagnose unsupported combination of -fpic
5517 and -stack-limit-symbol.
5519 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
5521 * Makefile.in (top_srcdir): New.
5522 * configure.ac: Use AM_ZLIB.
5523 * configure: Regeneated.
5525 2015-07-14 Matthias Klose <doko@ubuntu.com>
5528 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
5530 2015-07-14 Richard Biener <rguenther@suse.de>
5532 PR tree-optimization/66863
5533 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
5534 what we record for conversion use stmt lhs inequalities.
5536 2015-07-14 Richard Biener <rguenther@suse.de>
5538 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
5539 (decision_tree::gen_gimple): Likewise.
5541 2015-07-14 Tom de Vries <tom@codesourcery.com>
5543 * gcc.c (greater_than_spec_func): Declare forward.
5544 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
5545 -ftree-parallelize-loops={0,1}.
5546 (static_spec_functions): Add greater_than_spec_func function with name
5548 (greater_than_spec_func): New function.
5550 2015-07-14 Richard Biener <rguenther@suse.de>
5552 * tree-ssa-dom.c (record_temporary_equivalences): Merge
5553 wideing type conversion case from record_equivalences_from_incoming_edge
5554 and use record_equality to record equivalences.
5555 (record_equivalences_from_incoming_edge): Call
5556 record_temporary_equivalences.
5558 2015-07-14 Richard Biener <rguenther@suse.de>
5560 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
5561 (struct if_expr): New.
5562 (struct with_expr): Likewise.
5563 (is_a_helper): Add helpers for if_expr and with_expr.
5564 (struct simplify): Add simplify_kind enum and member. Remove
5566 (simplify::simplify): Adjust.
5567 (lower_commutative): Adjust.
5568 (lower_opt_convert): Likewise.
5569 (lower_cond): Likewise.
5570 (replace_id): Handle with_expr and if_expr.
5571 (lower_for): Adjust.
5572 (dt_simplify::gen_1): New recursive worker, split out from ...
5573 (dt_simplify::gen): ... here. Deal with if and with expansion
5575 (capture_info::capture_info): Take context argument
5576 (capture_info::walk_result): Only analyze specific result.
5577 (parser::parse_result): New function.
5578 (parser::parse_simplify): Adjust to parse ifs with then end
5580 (parser::parse_if): Simplify.
5581 (parser::parse_pattern): Pass down simplify kind.
5582 * match.pd: Convert if structure to new syntax.
5584 2015-07-13 Marek Polacek <polacek@redhat.com>
5586 * rtl.c (rtx_equal_p_cb): Fix typo.
5588 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
5590 * omega.h: Don't include config.h, don't include params.h again if
5591 omega.h has already been included.
5592 * graphite-poly.h: Include sese.h.
5593 * graphite.c: Don't include sese.h, remove needless includes and
5594 minimize includes outside #ifdef HAVE_isl block.
5595 * graphite-blocking.c: Don't include sese.h, remove needless includes,
5596 and wrap entire file in #ifdef HAVE_isl
5597 * graphite-dependences.c: Likewise.
5598 * graphite-interchange.c: Likewise.
5599 * graphite-isl-ast-to-gimple.c: Likewise.
5600 * graphite-optimize-isl.c: Likewise.
5601 * graphite-poly.c: Likewise.
5602 * graphite-scop-detection.c: Likewise.
5603 * graphite-sese-to-poly.c: Likewise.
5605 2015-07-13 Tom de Vries <tom@codesourcery.com>
5607 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
5609 2015-07-13 Renlin Li <renlin.li@arm.com>
5612 * simplify-rtx.c (simplify_const_relational_operation): Add
5613 side_effects_p checks.
5615 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
5617 * bitmap.h: Fix double word typos.
5620 * cfgloopmanip.c: Same.
5623 * cgraphclones.c: Same.
5625 * config/aarch64/aarch64-protos.h: Same.
5626 * config/aarch64/aarch64.c: Same.
5627 * config/aarch64/aarch64.md: Same.
5628 * config/arm/arm.md: Same.
5629 * config/arm/arm1020e.md: Same.
5630 * config/arm/arm1026ejs.md: Same.
5631 * config/arm/arm926ejs.md: Same.
5632 * config/arm/fa526.md: Same.
5633 * config/arm/fa606te.md: Same.
5634 * config/arm/fa626te.md: Same.
5635 * config/arm/fa726te.md: Same.
5636 * config/arm/fmp626.md: Same.
5637 * config/darwin.c: Same.
5638 * config/epiphany/epiphany.c: Same.
5639 * config/frv/frv.c: Same.
5640 * config/ft32/ft32.c: Same.
5641 * config/gnu-user.h: Same.
5642 * config/h8300/constraints.md: Same.
5643 * config/i386/i386.c: Same.
5644 * config/i386/i386.md: Same.
5645 * config/iq2000/iq2000.md: Same.
5646 * config/mips/mips.c: Same.
5647 * config/mmix/mmix.md: Same.
5648 * config/moxie/moxie.c: Same.
5649 * config/nds32/nds32.md: Same.
5650 * config/pa/pa.h: Same.
5651 * config/rs6000/aix.h: Same.
5652 * config/rs6000/rs6000.h: Same.
5653 * config/sh/sh.c: Same.
5654 * config/tilegx/tilegx.md: Same.
5655 * config/tilepro/gen-mul-tables.cc: Same.
5658 * doc/invoke.texi: Same.
5660 * dwarf2out.c: Same.
5665 * hash-table.h: Same.
5666 * internal-fn.c: Same.
5668 * ipa-devirt.c: Same.
5671 * ipa-profile.c: Same.
5676 * reg-stack.c: Same.
5682 * tree-inline.c: Same.
5684 * tree-ssa-dom.c: Same.
5685 * tree-ssa-loop-ivopts.c: Same.
5686 * tree-ssa-structalias.c: Same.
5687 * tree-ssa-tail-merge.c: Same.
5688 * tree-ssa-ter.c: Same.
5689 * tree-ssa-threadupdate.c: Same.
5690 * tree-ssa-uninit.c: Same.
5691 * tree-ssanames.c: Same.
5692 * tree-vect-loop-manip.c: Same.
5698 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5701 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
5702 tree_ssa_phiopt_worker): Call it.
5704 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5706 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
5707 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
5710 2015-07-11 Marek Polacek <polacek@redhat.com>
5713 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
5714 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
5715 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
5716 rather than bb_has_abnormal_call_pred.
5717 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
5718 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
5719 rather than bb_has_abnormal_call_pred.
5721 2015-07-10 Anatoly Sokolov <aesok@post.ru>
5723 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5724 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
5725 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5726 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
5727 v850_legitimate_address_p): New functions.
5728 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5730 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
5733 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
5734 indirect sibcall with register arguments if register available
5735 for argument passing.
5736 (init_cumulative_args): Set cfun->machine->arg_reg_available
5737 to (cum->nregs > 0) or to true if function has a variable
5739 (function_arg_advance_32): Set cfun->machine->arg_reg_available
5740 to false if cum->nregs <= 0.
5741 * config/i386/i386.h (machine_function): Add arg_reg_available.
5743 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
5745 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
5746 and gen_higpart instead of gen_rtx_SUBREG.
5747 * config/i386/i386.md
5748 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
5749 (read-modify peephole2): Use gen_lowpart instead of
5750 gen_rtx_SUBREG for operand 5.
5752 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
5754 * config/tilepro/gen-mul-tables.cc (main): Change include list for
5756 * config/tilepro/mul-tables.c: Regenerate.
5757 * config/tilegx/mul-tables.c: Regenerate.
5759 2015-07-10 Richard Biener <rguenther@suse.de>
5761 * fold-const.c (distribute_bit_expr): Remove.
5762 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
5763 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
5764 to A & (B | C) and simplifying A << C1 << C2 to ...
5765 * match.pd: ... patterns here.
5767 2015-07-10 Jiong Wang <jiong.wang@arm.com>
5769 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5770 Mark mem as READONLY and NOTRAP for PIC symbol.
5772 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
5774 * gimple-predict.h: New file.
5775 (gimple_predict_predictor, gimple_predict_set_predictor,
5776 gimple_predict_outcome, gimple_predict_set_outcome,
5777 gimple_build_predict): Relocate here.
5778 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
5779 gimple_predict_outcome, gimple_predict_set_outcome): Move to
5781 * gimple.c (gimple_build_predict): Move to gimple-predict.h
5782 * basic-block.h: Don't include cfghooks.h.
5783 * backend.h: Don't include predict.h.
5784 * cfghooks.h: Include predict.h.
5785 * gimple-pretty-print.c: Include gimple-predict.h.
5786 * gimplify.c: Likwise.
5787 * predict.c: Adjust includes.
5788 * tree-inline.c: Likewise.
5790 * auto-inc-dec.c: Likewise.
5791 * auto-profile.c: Likewise.
5792 * bb-reorder.c: Likewise.
5793 * builtins.c: Likewise.
5794 * caller-save.c: Likewise.
5795 * calls.c: Likewise.
5796 * cfganal.c: Likewise.
5797 * cfgbuild.c: Likewise.
5799 * cfgcleanup.c: Likewise.
5800 * cfgexpand.c: Likewise.
5801 * cfghooks.c: Likewise.
5802 * cfgloopanal.c: Likewise.
5803 * cfgloop.c: Likewise.
5804 * cfgloopmanip.c: Likewise.
5805 * cfgrtl.c: Likewise.
5806 * cgraph.c: Likewise.
5807 * cgraphunit.c: Likewise.
5808 * combine.c: Likewise.
5809 * cprop.c: Likewise.
5812 * dojump.c: Likewise.
5814 * except.c: Likewise.
5815 * expmed.c: Likewise.
5817 * final.c: Likewise.
5818 * fold-const.c: Likewise.
5819 * function.c: Likewise.
5820 * fwprop.c: Likewise.
5821 * gcc-plugin.h: Likewise.
5823 * genattrtab.c: Likewise.
5824 * genemit.c: Likewise.
5825 * gengtype.c: Likewise.
5826 * genopinit.c: Likewise.
5827 * genoutput.c: Likewise.
5828 * genpreds.c: Likewise.
5829 * genrecog.c: Likewise.
5830 * gimple-fold.c: Likewise.
5831 * gimple-iterator.c: Likewise.
5832 * gimple-ssa-isolate-paths.c: Likewise.
5833 * gimple-ssa-strength-reduction.c: Likewise.
5834 * graph.c: Likewise.
5835 * graphite-blocking.c: Likewise.
5836 * graphite.c: Likewise.
5837 * graphite-dependences.c: Likewise.
5838 * graphite-interchange.c: Likewise.
5839 * graphite-isl-ast-to-gimple.c: Likewise.
5840 * graphite-optimize-isl.c: Likewise.
5841 * graphite-poly.c: Likewise.
5842 * graphite-scop-detection.c: Likewise.
5843 * graphite-sese-to-poly.c: Likewise.
5844 * haifa-sched.c: Likewise.
5845 * ifcvt.c: Likewise.
5846 * internal-fn.c: Likewise.
5847 * ipa-cp.c: Likewise.
5848 * ipa-profile.c: Likewise.
5849 * ipa-split.c: Likewise.
5850 * ipa-utils.c: Likewise.
5851 * ira-build.c: Likewise.
5852 * ira-color.c: Likewise.
5853 * ira-conflicts.c: Likewise.
5854 * ira-costs.c: Likewise.
5855 * ira-emit.c: Likewise.
5856 * ira-lives.c: Likewise.
5858 * loop-doloop.c: Likewise.
5859 * loop-init.c: Likewise.
5860 * loop-invariant.c: Likewise.
5861 * loop-unroll.c: Likewise.
5862 * lower-subreg.c: Likewise.
5863 * lra-assigns.c: Likewise.
5865 * lra-coalesce.c: Likewise.
5866 * lra-constraints.c: Likewise.
5867 * lra-lives.c: Likewise.
5868 * lto-cgraph.c: Likewise.
5869 * lto-streamer-in.c: Likewise.
5870 * mode-switching.c: Likewise.
5871 * modulo-sched.c: Likewise.
5872 * omp-low.c: Likewise.
5873 * optabs.c: Likewise.
5874 * passes.c: Likewise.
5875 * postreload.c: Likewise.
5876 * postreload-gcse.c: Likewise.
5877 * profile.c: Likewise.
5878 * recog.c: Likewise.
5879 * regstat.c: Likewise.
5880 * reload1.c: Likewise.
5881 * reorg.c: Likewise.
5882 * rtlanal.c: Likewise.
5883 * sched-ebb.c: Likewise.
5884 * sel-sched-ir.c: Likewise.
5886 * shrink-wrap.c: Likewise.
5887 * simplify-rtx.c: Likewise.
5889 * store-motion.c: Likewise.
5890 * tracer.c: Likewise.
5891 * trans-mem.c: Likewise.
5892 * tree-call-cdce.c: Likewise.
5893 * tree-cfg.c: Likewise.
5894 * tree-cfgcleanup.c: Likewise.
5895 * tree-chkp.c: Likewise.
5896 * tree-complex.c: Likewise.
5897 * tree-eh.c: Likewise.
5898 * tree-if-conv.c: Likewise.
5899 * tree-loop-distribution.c: Likewise.
5900 * tree-outof-ssa.c: Likewise.
5901 * tree-parloops.c: Likewise.
5902 * tree-predcom.c: Likewise.
5903 * tree-pretty-print.c: Likewise.
5904 * tree-profile.c: Likewise.
5905 * tree-sra.c: Likewise.
5906 * tree-ssa.c: Likewise.
5907 * tree-ssa-coalesce.c: Likewise.
5908 * tree-ssa-dce.c: Likewise.
5909 * tree-ssa-dom.c: Likewise.
5910 * tree-ssa-forwprop.c: Likewise.
5911 * tree-ssa-ifcombine.c: Likewise.
5912 * tree-ssa-loop-ch.c: Likewise.
5913 * tree-ssa-loop-im.c: Likewise.
5914 * tree-ssa-loop-ivcanon.c: Likewise.
5915 * tree-ssa-loop-ivopts.c: Likewise.
5916 * tree-ssa-loop-manip.c: Likewise.
5917 * tree-ssa-loop-prefetch.c: Likewise.
5918 * tree-ssa-loop-unswitch.c: Likewise.
5919 * tree-ssa-math-opts.c: Likewise.
5920 * tree-ssa-phiopt.c: Likewise.
5921 * tree-ssa-pre.c: Likewise.
5922 * tree-ssa-reassoc.c: Likewise.
5923 * tree-ssa-sink.c: Likewise.
5924 * tree-ssa-tail-merge.c: Likewise.
5925 * tree-ssa-threadedge.c: Likewise.
5926 * tree-ssa-threadupdate.c: Likewise.
5927 * tree-switch-conversion.c: Likewise.
5928 * tree-tailcall.c: Likewise.
5929 * tree-vect-data-refs.c: Likewise.
5930 * tree-vect-loop.c: Likewise.
5931 * tree-vect-loop-manip.c: Likewise.
5932 * tree-vectorizer.c: Likewise.
5933 * tree-vrp.c: Likewise.
5934 * ubsan.c: Likewise.
5935 * value-prof.c: Likewise.
5936 * varasm.c: Likewise.
5937 * var-tracking.c: Likewise.
5938 * config/aarch64/aarch64-builtins.c: Likewise.
5939 * config/aarch64/aarch64.c: Likewise.
5940 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5941 * config/alpha/alpha.c: Likewise.
5942 * config/arc/arc.c: Likewise.
5943 * config/arm/arm.c: Likewise.
5944 * config/avr/avr.c: Likewise.
5945 * config/bfin/bfin.c: Likewise.
5946 * config/c6x/c6x.c: Likewise.
5947 * config/cr16/cr16.c: Likewise.
5948 * config/cris/cris.c: Likewise.
5949 * config/darwin.c: Likewise.
5950 * config/darwin-c.c: Likewise.
5951 * config/epiphany/epiphany.c: Likewise.
5952 * config/epiphany/mode-switch-use.c: Likewise.
5953 * config/epiphany/resolve-sw-modes.c: Likewise.
5954 * config/fr30/fr30.c: Likewise.
5955 * config/frv/frv.c: Likewise.
5956 * config/ft32/ft32.c: Likewise.
5957 * config/h8300/h8300.c: Likewise.
5958 * config/i386/i386.c: Likewise.
5959 * config/i386/winnt.c: Likewise.
5960 * config/ia64/ia64.c: Likewise.
5961 * config/iq2000/iq2000.c: Likewise.
5962 * config/lm32/lm32.c: Likewise.
5963 * config/m32c/m32c.c: Likewise.
5964 * config/m32r/m32r.c: Likewise.
5965 * config/m68k/m68k.c: Likewise.
5966 * config/mcore/mcore.c: Likewise.
5967 * config/mep/mep.c: Likewise.
5968 * config/microblaze/microblaze.c: Likewise.
5969 * config/mips/mips.c: Likewise.
5970 * config/mmix/mmix.c: Likewise.
5971 * config/mn10300/mn10300.c: Likewise.
5972 * config/moxie/moxie.c: Likewise.
5973 * config/msp430/msp430.c: Likewise.
5974 * config/nds32/nds32.c: Likewise.
5975 * config/nds32/nds32-cost.c: Likewise.
5976 * config/nds32/nds32-fp-as-gp.c: Likewise.
5977 * config/nds32/nds32-intrinsic.c: Likewise.
5978 * config/nds32/nds32-isr.c: Likewise.
5979 * config/nds32/nds32-md-auxiliary.c: Likewise.
5980 * config/nds32/nds32-memory-manipulation.c: Likewise.
5981 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5982 * config/nds32/nds32-predicates.c: Likewise.
5983 * config/nios2/nios2.c: Likewise.
5984 * config/nvptx/nvptx.c: Likewise.
5985 * config/pa/pa.c: Likewise.
5986 * config/pdp11/pdp11.c: Likewise.
5987 * config/rl78/rl78.c: Likewise.
5988 * config/rs6000/rs6000.c: Likewise.
5989 * config/rx/rx.c: Likewise.
5990 * config/s390/s390.c: Likewise.
5991 * config/sh/sh.c: Likewise.
5992 * config/sh/sh-mem.cc: Likewise.
5993 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5994 * config/sh/sh_treg_combine.cc: Likewise.
5995 * config/sparc/sparc.c: Likewise.
5996 * config/spu/spu.c: Likewise.
5997 * config/stormy16/stormy16.c: Likewise.
5998 * config/tilegx/tilegx.c: Likewise.
5999 * config/tilepro/tilepro.c: Likewise.
6000 * config/v850/v850.c: Likewise.
6001 * config/vax/vax.c: Likewise.
6002 * config/visium/visium.c: Likewise.
6003 * config/xtensa/xtensa.c: Likewise.
6005 2015-07-10 Richard Biener <rguenther@suse.de>
6007 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6008 (decision_tree::gen_gimple): Likewise.
6009 (decision_tree::gen_generic): Likewise.
6011 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
6014 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6015 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6017 2015-07-10 Jakub Jelinek <jakub@redhat.com>
6020 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6021 or ORT_TASK contexts.
6022 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6025 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6027 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6030 2015-07-10 Tom de Vries <tom@codesourcery.com>
6032 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6033 insert nit + 1 bound.
6035 2015-07-10 Richard Biener <rguenther@suse.de>
6037 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6038 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6039 (if_convertible_loop_p_1): For this always compute bb predicates.
6040 (if_convertible_loop_p): And free them.
6042 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6044 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6047 2015-07-10 Richard Biener <rguenther@suse.de>
6049 PR tree-optimization/66823
6050 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6053 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
6055 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6056 to handle mips[32|64]r3 and mips[32|64]r5.
6058 2015-07-09 Jakub Jelinek <jakub@redhat.com>
6061 * tree-nested.c (get_static_chain): Or in a flag into
6062 info->static_chain_added.
6063 (get_frame_field, get_nonlocal_debug_decl): Likewise.
6064 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6066 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6067 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6070 PR tree-optimization/66718
6071 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6073 (vect_simd_lane_linear): New function.
6074 (vectorizable_simd_clone_call): Support using linear arguments for
6075 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6077 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6080 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6082 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6084 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6085 Use machine mode, not enum machine_mode in the prototype.
6087 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6088 classify 128-bit floating point support.
6089 (FLOAT128_IBM_P): Likewise.
6090 (FLOAT128_VECTOR_P): Likewise.
6091 (FLOAT128_2REG_P): Likewise.
6092 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6093 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6094 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6095 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6097 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6098 tests against TFmode/TDmode, since those modes do not use VSX
6100 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6102 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6103 tests against TFmode, etc.
6104 (invalid_e500_subreg): Add tests against IFmode/KFmode.
6105 (reg_offset_addressing_ok_p): Likewise.
6106 (rs6000_legitimate_offset_address_p): Likewise.
6107 (rs6000_legitimize_address): Likewise.
6108 (rs6000_legitimize_reload_address): Likewise.
6109 (rs6000_legitimate_address_p): Clean up tests against TFmode and
6110 TDmode to use the new helper macros, which will include IFmode and
6112 (rs6000_emit_move): Likewise.
6113 (rs6000_darwin64_record_arg_recurse): Likewise.
6114 (print_operand): Likewise.
6115 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6116 that uses a single vector register as a vector and not as a
6117 floating point register in terms of the calling sequence.
6118 (rs6000_discover_homogeneous_aggregate): Likewise.
6119 (rs6000_return_in_memory): Likewise.
6120 (init_cumulative_args): Likewise.
6121 (rs6000_function_arg_boundary): Likewise.
6122 (rs6000_function_arg_advance_1): Likewise.
6123 (rs6000_function_arg): Likewise.
6124 (rs6000_pass_by_reference): Likewise.
6125 (rs6000_gimplify_va_arg): Likewise.
6126 (rs6000_secondary_reload_memory): Use machine_mode not enum
6128 (rs6000_split_multireg_move): Use new helper macros.
6129 (spe_func_has_64bit_regs_p): Likewise.
6130 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6131 (output_toc): Use new helper macros.
6132 (rs6000_register_move_cost): Likewise.
6133 (rs6000_function_value): Add IEEE 128-bit floating point calling
6135 (rs6000_libcall_value): Likewise.
6136 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6137 floating point support.
6138 (rs6000_vector_mode_supported_p): Likewise.
6140 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
6142 PR rtl-optimization/66782
6143 * lra-int.h (struct lra_insn_recog_data): Add comment about
6144 clobbered hard regs for arg_hard_regs.
6145 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6146 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6147 Add condition for processing used hard regs.
6148 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6149 Process clobbered hard regs.
6151 2015-07-09 Michael Matz <matz@suse.de>
6153 * genmatch.c (fprintf_indent): New function.
6154 (operand::gen_transform): Add indent parameter.
6155 (expr::gen_transform, c_expr::gen_transform,
6156 capture::gen_transform): Ditto and use fprintf_indent.
6157 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6158 (dt_operand::gen, dt_operand::gen_predicate,
6159 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6160 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6161 (decision_tree::gen_gimple): Adjust calls and indent generated
6163 (decision_tree::gen_generic): Ditto.
6164 (write_predicate): Ditto.
6166 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6169 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6170 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6171 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6172 {GENERAL,SSE,MMX}_REG_P where appropriate.
6174 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
6176 * lto-streamer.h: Don't include target.h and alloc-pool.h.
6177 * builtins.c: Adjust includes.
6178 * gimple.c: Likewise.
6179 * ipa-icf.c: Likewise.
6180 * lto-opts.c: Likewise.
6181 * ipa-reference.c: Likewise.
6182 * lto-section-out.c: Likewise.
6183 * lto-streamer-in.c: Likewise.
6184 * lto-streamer-out.c: Likewise.
6185 * opts-global.c: Likewise.
6186 * symtab.c: Likewise.
6187 * tree-chkp.c: Likewise.
6188 * tree-ssa-live.c: Likewise.
6189 * tree-streamer-in.c: Likewise.
6190 * tree-streamer-out.c: Likewise.
6191 * config/darwin.c: Likewise.
6192 * config/i386/winnt.c: Likewise.
6194 2015-07-09 Richard Biener <rguenther@suse.de>
6196 * genmatch.c (struct expr): Add force_single_use flag.
6197 (expr::expr): Add copy constructor.
6198 (capture_info::walk_match): Gather force_single_use captures.
6199 (expr::gen_transform): Use possibly NULLified sequence.
6200 (dt_simplify::gen): Apply single-use restrictions by NULLifying
6201 seq if any constrained expr is not single-use.
6202 (parser::parse_expr): Refactor to allow multiple flags. Handle
6203 's' flag to force an expression have a single-use if the pattern
6204 simplifies to more than one statement.
6205 * match.pd: Convert most single_use conditionals to :s flags.
6207 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6209 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6210 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6211 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6213 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
6215 * flags.h: Don't include flag-types.h or options.h.
6216 * opts-common.c: Adjust includes.
6217 * opts-global.c: Likewise.
6218 * common/config/epiphany/epiphany-common.c: Likewise.
6220 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6223 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6226 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
6229 * config/i386/i386.c (ix86_return_in_memory): Return true
6230 if int_size_in_bytes returns negative for IA MCU.
6232 2015-07-09 Marek Polacek <polacek@redhat.com>
6234 PR tree-optimization/66718
6235 * Makefile.in (OBJS): Add gimple-laddress.o.
6236 * passes.def: Schedule pass_laddress.
6237 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6238 * tree-pass.h (make_pass_laddress): Declare.
6239 * gimple-laddress.c: New file.
6241 2015-07-09 Richard Biener <rguenther@suse.de>
6243 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6245 2015-07-09 Richard Biener <rguenther@suse.de>
6247 PR tree-optimization/66807
6248 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6250 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
6252 * function.c (stack_protect_epilogue): Use if rather than switch for
6253 check targetm.have_stack_protect_test.
6255 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6257 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6258 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6259 * config/arc/arc.h: Likewise.
6260 * config/arm/arm.h: Likewise.
6261 * config/bfin/bfin.h: Likewise.
6262 * config/epiphany/epiphany.h: Likewise.
6263 * config/frv/frv.h: Likewise.
6264 * config/ia64/ia64.h: Likewise.
6265 * config/iq2000/iq2000.h: Likewise.
6266 * config/lm32/lm32.h: Likewise.
6267 * config/m32r/m32r.h: Likewise.
6268 * config/mcore/mcore.h: Likewise.
6269 * config/mep/mep.h: Likewise.
6270 * config/microblaze/microblaze.h: Likewise.
6271 * config/mips/mips.h: Likewise.
6272 * config/mmix/mmix.h: Likewise.
6273 * config/mn10300/mn10300.h: Likewise.
6274 * config/nds32/nds32.h: Likewise.
6275 * config/nios2/nios2.h: Likewise.
6276 * config/pa/pa.h: Likewise.
6277 * config/rl78/rl78.h: Likewise.
6278 * config/sh/sh.h: Likewise.
6279 * config/sparc/sparc.h: Likewise.
6280 * config/stormy16/stormy16.h: Likewise.
6281 * config/tilegx/tilegx.h: Likewise.
6282 * config/tilepro/tilepro.h: Likewise.
6283 * config/v850/v850.h: Likewise.
6284 * config/xtensa/xtensa.h: Likewise.
6285 * doc/tm.texi: Regenerate.
6286 * doc/tm.texi.in: Adjust.
6287 * combine.c (simplify_set): Likewise.
6288 (simplify_comparison): Likewise.
6289 * expr.c (store_constructor): Likewise.
6290 * internal-fn.c (expand_arith_overflow): Likewise.
6291 * reload.c (push_reload): Likewise.
6292 (find_reloads): Likewise.
6293 (find_reloads_subreg_address): Likewise.
6294 * reload1.c (eliminate_regs_1): Likewise.
6295 * rtlanal.c (nonzero_bits1): Likewise.
6296 (num_sign_bit_copies1): Likewise.
6297 * simplify-rtx.c (simplify_truncation): Likewise.
6299 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6301 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6302 of AUTO_INC_DEC with the preprocessor.
6303 * combine.c (combine_instructions): Likewise.
6304 (can_combine_p): Likewise.
6305 (try_combine): Likewise.
6306 * emit-rtl.c (try_split): Likewise.
6307 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6308 * lower-subreg.c (resolve_simple_move): Likewise.
6309 * lra.c (update_inc_notes): Likewise.
6310 * recog.c (asm_operand_ok): Likewise.
6311 (constrain_operands): Likewise.
6312 * regrename.c (scan_rtx_address): Likewise.
6313 * reload.c (update_auto_inc_notes): Likewise.
6314 (reg_inc_found_and_valid_p): Likewise.
6315 * reload1.c (reload): Likewise.
6316 (emit_input_reload_insns): Likewise.
6317 (delete_output_reload): Likewise.
6318 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6319 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6321 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6323 * rtl.h: Always define AUTO_INC_DEC.
6324 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6325 * combine.c (combine_instructions): Likewise.
6326 (can_combine_p): Likewise.
6327 (try_combine): Likewise.
6328 * emit-rtl.c (try_split): Likewise.
6329 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6330 * lower-subreg.c (resolve_simple_move): Likewise.
6331 * lra.c (update_inc_notes): Likewise.
6332 * recog.c (asm_operand_ok): Likewise.
6333 (constrain_operands): Likewise.
6334 * regrename.c (scan_rtx_address): Likewise.
6335 * reload.c (update_auto_inc_notes): Likewise.
6336 (find_equiv_reg): Likewise.
6337 * reload1.c (reload): Likewise.
6338 (reload_as_needed): Likewise.
6339 (choose_reload_regs): Likewise.
6340 (emit_input_reload_insns): Likewise.
6341 (delete_output_reload): Likewise.
6342 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6343 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6345 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6347 * combine.c (can_combine_def_p): Don't check the value of
6348 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6349 (combinable_i3pat): Likewise.
6350 (mark_used_regs_combine): Likewise.
6351 * regrename.c (rename_chains): Likewise.
6352 * reload.c (find_reloads_address): Likewise.
6353 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6355 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6357 * combine.c (update_rsp_from_reg_equal): Don't check if
6358 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6359 (reg_nonzero_bits_for_combine): Likewise.
6360 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6362 * config/frv/frv.h: Likewise.
6363 * config/lm32/lm32.h: Likewise.
6364 * config/mep/mep.h: Likewise.
6365 * config/mips/mips.h: Likewise.
6366 * config/rs6000/rs6000.h: Likewise.
6367 * config/sh/sh.h: Likewise.
6368 * config/tilegx/tilegx.h (enum reg_class): Likewise.
6369 * config/tilepro/tilepro.h: Likewise.
6370 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6371 * doc/tm.texi: Regenerate.
6372 * doc/tm.texi.in: Adjust.
6373 * rtlanal.c (nonzero_bits1): Likewise.
6375 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6377 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6378 with the preprocessor.
6379 (combine_instructions): Likewise.
6380 (try_combine): Likewise.
6382 (distribute_notes): Likewise.
6384 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6386 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6388 (simplify_set): Likewise.
6389 * cse.c (cse_insn): Likewise.
6390 * fold-const.c (fold_single_bit_test): Likewise.
6391 (fold_unary_loc): Likewise.
6392 * postreload.c (reload_cse_simplify_set): Likewise.
6393 (reload_cse_simplify_operands): Likewise.
6395 2015-07-08 Jiong Wang <jiong.wang@arm.com>
6397 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6398 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6400 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
6403 * config/i386/x86intrin.h: Include <adxintrin.h> even if
6404 __iamcu__ is defined.
6406 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6408 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6410 2015-07-08 Iain Sandoe <iain@codesourcery.com>
6413 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6414 names from preservation.
6416 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
6419 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6421 (function_arg_advance_32): Don't pass vectors in registers for
6423 (function_arg_32): Likewise.
6424 (ix86_return_in_memory): Don't return vectors in registers for
6427 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
6430 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6431 hard regno live at the start of BB with incoming abnormal edges.
6432 * lra-lives.c (process_bb_lives): Ditto.
6434 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6437 * config/nvptx/mkoffload.c (main): Create an offload image only in
6438 64-bit configurations.
6440 2015-07-08 Martin Liska <mliska@suse.cz>
6443 * tree-sra.c (create_access_1): Call ctor without brackets.
6444 (create_artificial_child_access): Likewise.
6446 2015-07-08 Richard Biener <rguenther@suse.de>
6448 PR tree-optimization/66793
6449 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6450 Properly split the block after stmts ending it.
6452 2015-07-08 Richard Biener <rguenther@suse.de>
6454 PR tree-optimization/66794
6455 * passes.c (execute_function_todo): Assert that post-dominators
6457 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6458 Free post-dominators.
6460 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6462 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6465 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
6467 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6468 more than or equal 8 and less than 32 when optimizing for size.
6470 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6472 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6473 COSTS_N_INSNS (1) and increment it appropriately throughout the
6476 2015-07-08 Richard Biener <rguenther@suse.de>
6478 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6480 2015-07-08 Alan Modra <amodra@gmail.com>
6482 * target.def (rtx_costs): Remove "code" param, add "mode".
6483 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6484 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
6485 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6486 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
6487 call. Track mode when given in rtx.
6488 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
6489 (default_address_cost): Pass Pmode to rtx_cost.
6490 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6491 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6493 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
6494 (notreg_cost): Add mode param. Use it.
6495 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
6496 mode param and pass to set_src_cost. Update all calls.
6497 (hash_scan_set): Formatting.
6498 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6499 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6501 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6502 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6503 emit_store_flag): Update set_src_cost and rtx_cost calls.
6504 * auto-inc-dec.c (attempt_change): Likewise.
6505 * calls.c (precompute_register_parameters): Likewise.
6506 * combine.c (expand_compound_operation, make_extraction,
6507 force_to_mode, distribute_and_simplify_rtx): Likewise.
6508 * dojump.c (prefer_and_bit_test): Likewise.
6509 * dse.c (find_shift_sequence): Likewise.
6510 * expr.c (compress_float_constant): Likewise.
6511 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6512 * ifcvt.c (noce_try_sign_mask): Likewise.
6513 * loop-doloop.c (doloop_optimize): Likewise.
6514 * loop-invariant.c (create_new_invariant): Likewise.
6515 * lower-subreg.c (shift_cost, compute_costs): Likewise.
6516 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6517 lshift_cheap_p): Likewise.
6518 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6519 try_replace_in_use, reload_cse_move2add): Likewise.
6520 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
6522 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6523 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6524 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
6525 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6526 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
6527 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
6529 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
6530 * config/arc/arc.c (arc_rtx_costs): Likewise.
6531 * config/arm/arm.c (arm_rtx_costs): Likewise.
6532 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
6533 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6534 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6535 * config/cris/cris.c (cris_rtx_costs): Likewise.
6536 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
6537 * config/frv/frv.c (frv_rtx_costs): Likewise.
6538 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6539 * config/i386/i386.c (ix86_rtx_costs): Likewise.
6540 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6541 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6542 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6543 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6544 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6545 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6546 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6547 * config/mep/mep.c (mep_rtx_cost): Likewise.
6548 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6549 * config/mips/mips.c (mips_rtx_costs): Likewise.
6550 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6551 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
6552 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
6553 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
6554 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
6555 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
6556 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
6557 * config/pa/pa.c (hppa_rtx_costs): Likewise.
6558 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6559 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
6560 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6561 * config/s390/s390.c (s390_rtx_costs): Likewise.
6562 * config/sh/sh.c (sh_rtx_costs): Likewise.
6563 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6564 * config/spu/spu.c (spu_rtx_costs): Likewise.
6565 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6566 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
6567 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
6568 * config/v850/v850.c (v850_rtx_costs): Likewise.
6569 * config/vax/vax.c (vax_rtx_costs): Likewise.
6570 * config/visium/visium.c (visium_rtx_costs): Likewise.
6571 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6572 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
6573 "code" param, and pass as outer_code to first rtx_cost call. Pass
6574 mode to rtx_cost calls.
6575 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
6577 (aarch64_rtx_costs_wrapper): Update.
6578 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
6579 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
6581 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
6583 (avr_operand_rtx_cost): Similarly.
6584 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
6585 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
6586 * config/mips/mips.c (mips_stack_address_p): Comment typo.
6587 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
6588 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
6589 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
6591 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
6592 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
6593 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
6594 * doc/tm.texi: Regenerate.
6596 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
6598 * tree-core.h: Include symtab.h.
6599 * rtl.h: Include hard-reg-set.h but not flags.h.
6600 (HARD_CONST): Remove condition compilation involving HARD_CONST since
6601 hard-reg-set.h is always included.
6602 * regs.h: Don't include hard-reg-set.h or rtl.h.
6603 * cfg.h: Include dominance.h.
6604 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
6605 * backend.h: New. Aggregate commonly used backend header files.
6606 * gimple-ssa.h: Don't include tree-hasher.h.
6607 * ssa.h: New. Aggregate commonly used SSA header files.
6608 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
6609 * sel-sched-ir.h: Flatten includes.
6610 * lra-int.h: Flatten completely.
6611 * sel-sched-dump.h: Flatten includes.
6612 * ira-int.h: Flatten includes.
6613 * gimple-streamer.h: Remove all includes.
6614 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
6615 * resource.h: Flatten hard-reg-set.h and df.h.
6616 * sched-int.h: Flatten insn-arrt.h and df.h.
6617 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
6618 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
6619 * genattrtab.c (write_header): Adjust generated includes.
6620 * genautomata.c (main): Likewise.
6621 * genconditions.c (write-header): Likewise.
6622 * genemit.c (main): Likewise.
6623 * gengtype.c (open_base_files): Likewise.
6624 * genopinit.c (main): Likewise.
6625 * genoutput.c (output_prologue): Likewise.
6626 * genpeep.c (main): Likewise.
6627 * genpreds.c (write_insn_preds_c): Likewise.
6628 * genrecog.c (write_header): Likewise.
6629 * alias.c: Adjust includes.
6631 * attribs.c: Likewise.
6632 * auto-inc-dec.c: Likewise.
6633 * auto-profile.c: Likewise.
6634 * bb-reorder.c: Likewise.
6635 * bt-load.c: Likewise.
6636 * builtins.c: Likewise.
6637 * caller-save.c: Likewise.
6638 * calls.c: Likewise.
6641 * cfganal.c: Likewise.
6642 * cfgbuild.c: Likewise.
6643 * cfgcleanup.c: Likewise.
6644 * cfgexpand.c: Likewise.
6645 * cfghooks.c: Likewise.
6646 * cfgloop.c: Likewise.
6647 * cfgloopanal.c: Likewise.
6648 * cfgloopmanip.c: Likewise.
6649 * cfgrtl.c: Likewise.
6650 * cgraph.c: Likewise.
6651 * cgraphbuild.c: Likewise.
6652 * cgraphclones.c: Likewise.
6653 * cgraphunit.c: Likewise.
6654 * cilk-common.c: Likewise.
6655 * combine-stack-adj.c: Likewise.
6656 * combine.c: Likewise.
6657 * compare-elim.c: Likewise.
6658 * convert.c: Likewise.
6659 * coverage.c: Likewise.
6660 * cppbuiltin.c: Likewise.
6661 * cprop.c: Likewise.
6663 * cselib.c: Likewise.
6664 * data-streamer-in.c: Likewise.
6665 * data-streamer-out.c: Likewise.
6666 * data-streamer.c: Likewise.
6667 * dbxout.c: Likewise.
6670 * debug.c: Likewise.
6671 * df-core.c: Likewise.
6672 * df-problems.c: Likewise.
6673 * df-scan.c: Likewise.
6675 * dojump.c: Likewise.
6676 * dominance.c: Likewise.
6677 * domwalk.c: Likewise.
6678 * double-int.c: Likewise.
6680 * dumpfile.c: Likewise.
6681 * dwarf2asm.c: Likewise.
6682 * dwarf2cfi.c: Likewise.
6683 * dwarf2out.c: Likewise.
6684 * emit-rtl.c: Likewise.
6685 * et-forest.c: Likewise.
6686 * except.c: Likewise.
6687 * explow.c: Likewise.
6688 * expmed.c: Likewise.
6690 * final.c: Likewise.
6691 * fixed-value.c: Likewise.
6692 * fold-const.c: Likewise.
6693 * function.c: Likewise.
6694 * fwprop.c: Likewise.
6695 * gcc-plugin.h: Likewise.
6696 * gcse-common.c: Likewise.
6698 * generic-match-head.c: Likewise.
6699 * ggc-page.c: Likewise.
6700 * gimple-builder.c: Likewise.
6701 * gimple-expr.c: Likewise.
6702 * gimple-fold.c: Likewise.
6703 * gimple-iterator.c: Likewise.
6704 * gimple-low.c: Likewise.
6705 * gimple-match-head.c: Likewise.
6706 * gimple-pretty-print.c: Likewise.
6707 * gimple-ssa-isolate-paths.c: Likewise.
6708 * gimple-ssa-strength-reduction.c: Likewise.
6709 * gimple-streamer-in.c: Likewise.
6710 * gimple-streamer-out.c: Likewise.
6711 * gimple-walk.c: Likewise.
6712 * gimple.c: Likewise.
6713 * gimplify-me.c: Likewise.
6714 * gimplify.c: Likewise.
6715 * godump.c: Likewise.
6716 * graph.c: Likewise.
6717 * graphite-blocking.c: Likewise.
6718 * graphite-dependences.c: Likewise.
6719 * graphite-interchange.c: Likewise.
6720 * graphite-isl-ast-to-gimple.c: Likewise.
6721 * graphite-optimize-isl.c: Likewise.
6722 * graphite-poly.c: Likewise.
6723 * graphite-scop-detection.c: Likewise.
6724 * graphite-sese-to-poly.c: Likewise.
6725 * graphite.c: Likewise.
6726 * haifa-sched.c: Likewise.
6727 * hw-doloop.c: Likewise.
6728 * ifcvt.c: Likewise.
6729 * init-regs.c: Likewise.
6730 * internal-fn.c: Likewise.
6731 * ipa-chkp.c: Likewise.
6732 * ipa-comdats.c: Likewise.
6733 * ipa-cp.c: Likewise.
6734 * ipa-devirt.c: Likewise.
6735 * ipa-icf-gimple.c: Likewise.
6736 * ipa-icf.c: Likewise.
6737 * ipa-inline-analysis.c: Likewise.
6738 * ipa-inline-transform.c: Likewise.
6739 * ipa-inline.c: Likewise.
6740 * ipa-polymorphic-call.c: Likewise.
6741 * ipa-profile.c: Likewise.
6742 * ipa-prop.c: Likewise.
6743 * ipa-pure-const.c: Likewise.
6744 * ipa-ref.c: Likewise.
6745 * ipa-reference.c: Likewise.
6746 * ipa-split.c: Likewise.
6747 * ipa-utils.c: Likewise.
6748 * ipa-visibility.c: Likewise.
6750 * ira-build.c: Likewise.
6751 * ira-color.c: Likewise.
6752 * ira-conflicts.c: Likewise.
6753 * ira-costs.c: Likewise.
6754 * ira-emit.c: Likewise.
6755 * ira-lives.c: Likewise.
6758 * langhooks.c: Likewise.
6760 * loop-doloop.c: Likewise.
6761 * loop-init.c: Likewise.
6762 * loop-invariant.c: Likewise.
6763 * loop-iv.c: Likewise.
6764 * loop-unroll.c: Likewise.
6765 * lower-subreg.c: Likewise.
6766 * lra-assigns.c: Likewise.
6767 * lra-coalesce.c: Likewise.
6768 * lra-constraints.c: Likewise.
6769 * lra-eliminations.c: Likewise.
6770 * lra-lives.c: Likewise.
6771 * lra-remat.c: Likewise.
6772 * lra-spills.c: Likewise.
6774 * lto-cgraph.c: Likewise.
6775 * lto-compress.c: Likewise.
6776 * lto-opts.c: Likewise.
6777 * lto-section-in.c: Likewise.
6778 * lto-section-out.c: Likewise.
6779 * lto-streamer-in.c: Likewise.
6780 * lto-streamer-out.c: Likewise.
6781 * lto-streamer.c: Likewise.
6783 * mode-switching.c: Likewise.
6784 * modulo-sched.c: Likewise.
6785 * omega.c: Likewise.
6786 * omp-low.c: Likewise.
6787 * optabs.c: Likewise.
6788 * opts-global.c: Likewise.
6789 * passes.c: Likewise.
6790 * plugin.c: Likewise.
6791 * postreload-gcse.c: Likewise.
6792 * postreload.c: Likewise.
6793 * predict.c: Likewise.
6794 * print-rtl.c: Likewise.
6795 * print-tree.c: Likewise.
6796 * profile.c: Likewise.
6798 * realmpfr.c: Likewise.
6799 * recog.c: Likewise.
6801 * reg-stack.c: Likewise.
6802 * regcprop.c: Likewise.
6803 * reginfo.c: Likewise.
6804 * regrename.c: Likewise.
6805 * regstat.c: Likewise.
6806 * reload.c: Likewise.
6807 * reload1.c: Likewise.
6808 * reorg.c: Likewise.
6809 * resource.c: Likewise.
6810 * rtl-chkp.c: Likewise.
6811 * rtlanal.c: Likewise.
6812 * rtlhooks.c: Likewise.
6813 * sanopt.c: Likewise.
6814 * sched-deps.c: Likewise.
6815 * sched-ebb.c: Likewise.
6816 * sched-rgn.c: Likewise.
6817 * sched-vis.c: Likewise.
6818 * sdbout.c: Likewise.
6819 * sel-sched-dump.c: Likewise.
6820 * sel-sched-ir.c: Likewise.
6821 * sel-sched.c: Likewise.
6823 * shrink-wrap.c: Likewise.
6824 * simplify-rtx.c: Likewise.
6825 * stack-ptr-mod.c: Likewise.
6827 * stor-layout.c: Likewise.
6828 * store-motion.c: Likewise.
6829 * stringpool.c: Likewise.
6830 * symtab.c: Likewise.
6831 * target-globals.c: Likewise.
6832 * targhooks.c: Likewise.
6833 * toplev.c: Likewise.
6834 * tracer.c: Likewise.
6835 * trans-mem.c: Likewise.
6836 * tree-affine.c: Likewise.
6837 * tree-browser.c: Likewise.
6838 * tree-call-cdce.c: Likewise.
6839 * tree-cfg.c: Likewise.
6840 * tree-cfgcleanup.c: Likewise.
6841 * tree-chkp-opt.c: Likewise.
6842 * tree-chkp.c: Likewise.
6843 * tree-chrec.c: Likewise.
6844 * tree-complex.c: Likewise.
6845 * tree-data-ref.c: Likewise.
6846 * tree-dfa.c: Likewise.
6847 * tree-diagnostic.c: Likewise.
6848 * tree-dump.c: Likewise.
6849 * tree-eh.c: Likewise.
6850 * tree-emutls.c: Likewise.
6851 * tree-if-conv.c: Likewise.
6852 * tree-inline.c: Likewise.
6853 * tree-into-ssa.c: Likewise.
6854 * tree-iterator.c: Likewise.
6855 * tree-loop-distribution.c: Likewise.
6856 * tree-nested.c: Likewise.
6857 * tree-nrv.c: Likewise.
6858 * tree-object-size.c: Likewise.
6859 * tree-outof-ssa.c: Likewise.
6860 * tree-parloops.c: Likewise.
6861 * tree-phinodes.c: Likewise.
6862 * tree-predcom.c: Likewise.
6863 * tree-pretty-print.c: Likewise.
6864 * tree-profile.c: Likewise.
6865 * tree-scalar-evolution.c: Likewise.
6866 * tree-sra.c: Likewise.
6867 * tree-ssa-address.c: Likewise.
6868 * tree-ssa-alias.c: Likewise.
6869 * tree-ssa-ccp.c: Likewise.
6870 * tree-ssa-coalesce.c: Likewise.
6871 * tree-ssa-copy.c: Likewise.
6872 * tree-ssa-copyrename.c: Likewise.
6873 * tree-ssa-dce.c: Likewise.
6874 * tree-ssa-dom.c: Likewise.
6875 * tree-ssa-dse.c: Likewise.
6876 * tree-ssa-forwprop.c: Likewise.
6877 * tree-ssa-ifcombine.c: Likewise.
6878 * tree-ssa-live.c: Likewise.
6879 * tree-ssa-loop-ch.c: Likewise.
6880 * tree-ssa-loop-im.c: Likewise.
6881 * tree-ssa-loop-ivcanon.c: Likewise.
6882 * tree-ssa-loop-ivopts.c: Likewise.
6883 * tree-ssa-loop-manip.c: Likewise.
6884 * tree-ssa-loop-niter.c: Likewise.
6885 * tree-ssa-loop-prefetch.c: Likewise.
6886 * tree-ssa-loop-unswitch.c: Likewise.
6887 * tree-ssa-loop.c: Likewise.
6888 * tree-ssa-math-opts.c: Likewise.
6889 * tree-ssa-operands.c: Likewise.
6890 * tree-ssa-phiopt.c: Likewise.
6891 * tree-ssa-phiprop.c: Likewise.
6892 * tree-ssa-pre.c: Likewise.
6893 * tree-ssa-propagate.c: Likewise.
6894 * tree-ssa-reassoc.c: Likewise.
6895 * tree-ssa-sccvn.c: Likewise.
6896 * tree-ssa-scopedtables.c: Likewise.
6897 * tree-ssa-sink.c: Likewise.
6898 * tree-ssa-strlen.c: Likewise.
6899 * tree-ssa-structalias.c: Likewise.
6900 * tree-ssa-tail-merge.c: Likewise.
6901 * tree-ssa-ter.c: Likewise.
6902 * tree-ssa-threadedge.c: Likewise.
6903 * tree-ssa-threadupdate.c: Likewise.
6904 * tree-ssa-uncprop.c: Likewise.
6905 * tree-ssa-uninit.c: Likewise.
6906 * tree-ssa.c: Likewise.
6907 * tree-ssanames.c: Likewise.
6908 * tree-stdarg.c: Likewise.
6909 * tree-streamer-in.c: Likewise.
6910 * tree-streamer-out.c: Likewise.
6911 * tree-streamer.c: Likewise.
6912 * tree-switch-conversion.c: Likewise.
6913 * tree-tailcall.c: Likewise.
6914 * tree-vect-data-refs.c: Likewise.
6915 * tree-vect-generic.c: Likewise.
6916 * tree-vect-loop-manip.c: Likewise.
6917 * tree-vect-loop.c: Likewise.
6918 * tree-vect-patterns.c: Likewise.
6919 * tree-vect-slp.c: Likewise.
6920 * tree-vect-stmts.c: Likewise.
6921 * tree-vectorizer.c: Likewise.
6922 * tree-vrp.c: Likewise.
6925 * ubsan.c: Likewise.
6926 * valtrack.c: Likewise.
6927 * value-prof.c: Likewise.
6928 * var-tracking.c: Likewise.
6929 * varasm.c: Likewise.
6930 * varpool.c: Likewise.
6931 * vmsdbgout.c: Likewise.
6932 * vtable-verify.c: Likewise.
6934 * wide-int.cc: Likewise.
6935 * xcoffout.c: Likewise.
6936 * config/aarch64/aarch64-builtins.c: Likewise.
6937 * config/aarch64/aarch64.c: Likewise.
6938 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6939 * config/alpha/alpha.c: Likewise.
6940 * config/arc/arc.c: Likewise.
6941 * config/arm/aarch-common.c: Likewise.
6942 * config/arm/arm-builtins.c: Likewise.
6943 * config/arm/arm-c.c: Likewise.
6944 * config/arm/arm.c: Likewise.
6945 * config/avr/avr-c.c: Likewise.
6946 * config/avr/avr-log.c: Likewise.
6947 * config/avr/avr.c: Likewise.
6948 * config/bfin/bfin.c: Likewise.
6949 * config/c6x/c6x.c: Likewise.
6950 * config/cr16/cr16.c: Likewise.
6951 * config/cris/cris.c: Likewise.
6952 * config/darwin-c.c: Likewise.
6953 * config/darwin.c: Likewise.
6954 * config/epiphany/epiphany.c: Likewise.
6955 * config/epiphany/mode-switch-use.c: Likewise.
6956 * config/epiphany/resolve-sw-modes.c: Likewise.
6957 * config/fr30/fr30.c: Likewise.
6958 * config/frv/frv.c: Likewise.
6959 * config/ft32/ft32.c: Likewise.
6960 * config/h8300/h8300.c: Likewise.
6961 * config/i386/i386-c.c: Likewise.
6962 * config/i386/i386.c: Likewise.
6963 * config/i386/msformat-c.c: Likewise.
6964 * config/i386/winnt-cxx.c: Likewise.
6965 * config/i386/winnt-stubs.c: Likewise.
6966 * config/i386/winnt.c: Likewise.
6967 * config/ia64/ia64-c.c: Likewise.
6968 * config/ia64/ia64.c: Likewise.
6969 * config/iq2000/iq2000.c: Likewise.
6970 * config/lm32/lm32.c: Likewise.
6971 * config/m32c/m32c-pragma.c: Likewise.
6972 * config/m32c/m32c.c: Likewise.
6973 * config/m32r/m32r.c: Likewise.
6974 * config/m68k/m68k.c: Likewise.
6975 * config/mcore/mcore.c: Likewise.
6976 * config/mep/mep-pragma.c: Likewise.
6977 * config/mep/mep.c: Likewise.
6978 * config/microblaze/microblaze-c.c: Likewise.
6979 * config/microblaze/microblaze.c: Likewise.
6980 * config/mips/mips.c: Likewise.
6981 * config/mmix/mmix.c: Likewise.
6982 * config/mn10300/mn10300.c: Likewise.
6983 * config/moxie/moxie.c: Likewise.
6984 * config/msp430/msp430-c.c: Likewise.
6985 * config/msp430/msp430.c: Likewise.
6986 * config/nds32/nds32-cost.c: Likewise.
6987 * config/nds32/nds32-fp-as-gp.c: Likewise.
6988 * config/nds32/nds32-intrinsic.c: Likewise.
6989 * config/nds32/nds32-isr.c: Likewise.
6990 * config/nds32/nds32-md-auxiliary.c: Likewise.
6991 * config/nds32/nds32-memory-manipulation.c: Likewise.
6992 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6993 * config/nds32/nds32-predicates.c: Likewise.
6994 * config/nds32/nds32.c: Likewise.
6995 * config/nios2/nios2.c: Likewise.
6996 * config/nvptx/nvptx.c: Likewise.
6997 * config/pa/pa.c: Likewise.
6998 * config/pdp11/pdp11.c: Likewise.
6999 * config/rl78/rl78-c.c: Likewise.
7000 * config/rl78/rl78.c: Likewise.
7001 * config/rs6000/rs6000-c.c: Likewise.
7002 * config/rs6000/rs6000.c: Likewise.
7003 * config/rx/rx.c: Likewise.
7004 * config/s390/s390-c.c: Likewise.
7005 * config/s390/s390.c: Likewise.
7006 * config/sh/sh-c.c: Likewise.
7007 * config/sh/sh-mem.cc: Likewise.
7008 * config/sh/sh.c: Likewise.
7009 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7010 * config/sh/sh_treg_combine.cc: Likewise.
7011 * config/sol2-c.c: Likewise.
7012 * config/sol2-cxx.c: Likewise.
7013 * config/sol2-stubs.c: Likewise.
7014 * config/sol2.c: Likewise.
7015 * config/sparc/sparc-c.c: Likewise.
7016 * config/sparc/sparc.c: Likewise.
7017 * config/spu/spu-c.c: Likewise.
7018 * config/spu/spu.c: Likewise.
7019 * config/stormy16/stormy16.c: Likewise.
7020 * config/tilegx/mul-tables.c: Likewise.
7021 * config/tilegx/tilegx-c.c: Likewise.
7022 * config/tilegx/tilegx.c: Likewise.
7023 * config/tilepro/mul-tables.c: Likewise.
7024 * config/tilepro/tilepro-c.c: Likewise.
7025 * config/tilepro/tilepro.c: Likewise.
7026 * config/v850/v850-c.c: Likewise.
7027 * config/v850/v850.c: Likewise.
7028 * config/vax/vax.c: Likewise.
7029 * config/visium/visium.c: Likewise.
7030 * config/vms/vms-c.c: Likewise.
7031 * config/vms/vms.c: Likewise.
7032 * config/vxworks.c: Likewise.
7033 * config/xtensa/xtensa.c: Likewise.
7035 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
7037 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7038 Remove operand constraints. Change operand 2 predicate to
7039 nonmemory operand. Limit const_int values to mode bitsize. Only
7040 allow const_int values less than 32 when optimizing for size.
7041 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7042 Remove operand constraints.
7043 (*bt<mode>): Use SImode for const_int values less than 32.
7044 (regmode): Remove mode attribute.
7046 2015-07-07 Anatoly Sokolov <aesok@post.ru>
7048 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7049 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7050 moxie_legitimate_address_p): New functions.
7051 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7053 2015-07-07 Tom de Vries <tom@codesourcery.com>
7055 PR tree-optimization/66642
7056 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7057 header comment. Rename split_edge variable to edge_at_split. Split
7058 exit edge to create new loop exit bb. Insert loop exit phis in new
7061 2015-07-07 Tom de Vries <tom@codesourcery.com>
7063 * tree-cfg.c (get_virtual_phi): New function.
7064 * tree-cfg.h (get_virtual_phi): Declare.
7065 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7066 (rewrite_virtuals_into_loop_closed_ssa): New function.
7067 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7069 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7070 (transform_to_exit_first_loop_alt): Use
7071 rewrite_virtuals_into_loop_closed_ssa.
7073 2015-07-07 Richard Biener <rguenther@suse.de>
7075 * fold-const.c (fold_binary_loc): Move
7076 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7077 * match.pd: ... here.
7078 Add (X * C1) % C2 -> 0 simplification pattern derived from
7081 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
7084 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7085 change for target/65249.
7087 2015-07-07 Paulo Matos <pmatos@broadcom.com>
7089 * symtab.c (address_matters_1): Fix typo in comment above.
7090 (can_increase_alignment_p): Likewise.
7092 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7094 * function.c (free_after_compilation): Clear PROP_cfg in
7097 2015-07-07 Richard Biener <rguenther@suse.de>
7099 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7101 (add_control_edge): Remove excessive vertical space in dumping.
7102 (process_ssa_edge_worklist): Simulate at most one statement and
7103 return whether we did. Do not simulate PHIs if they are in a
7104 BB not yet simulated.
7105 (ssa_propagate): Adjust to always drain the BB worklist whenever
7106 a BB is available there, likewise the VARYING edges list before
7107 the interesting edge list.
7109 2015-07-07 Christian Bruel <christian.bruel@st.com>
7112 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7114 2015-07-07 Richard Biener <rguenther@suse.de>
7117 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7120 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
7122 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
7123 modes for operands 0 and 3. Use SImode for operands 2 and 3.
7124 Copy operand 0 to a temporary if !ext_register_operand. Remove
7125 ancient extract_bit_field workaround.
7126 (insv<mode>_1): Rename from mov<mode>_insv_1.
7127 (*insvqi): Rename from *movqi_insv_2.
7128 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7129 for renamed insvsi_1.
7130 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7132 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
7134 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
7135 call to nvptx_reorg_subreg.
7137 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
7139 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7140 * graphite-dependencies.c, graphite-interchange.c,
7141 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7142 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7145 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
7147 * match.pd: Remove element_mode inside HONOR_*.
7148 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7149 (~X | X -> -1, ~X ^ X -> -1): Merge.
7150 * tree.c (build_each_one_cst): New function.
7151 * tree.h (build_each_one_cst): Likewise.
7153 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7155 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7158 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
7160 * config.gcc <mips*-*-*>: Add fused-madd.opt.
7161 * config/mips/mips.opt (mfused-madd): Remove.
7162 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7163 * config/mips/mips.h (TARGET_MIPS8000): New.
7164 (ISA_HAS_FP_MADD4_MSUB4): Remove.
7165 (ISA_HAS_FP_MADDF_MSUBF): Remove.
7166 (ISA_HAS_FP_MADD3_MSUB3): Remove.
7167 (ISA_HAS_NMADD4_NMSUB4): Remove.
7168 (ISA_HAS_NMADD3_NMSUB3): Remove.
7169 (ISA_HAS_FUSED_MADD4): New.
7170 (ISA_HAS_UNFUSED_MADD4): New.
7171 (ISA_HAS_FUSED_MADDF): New.
7172 (ISA_HAS_FUSED_MADD3): New.
7173 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7174 (*fma<mode>4_madd3) New.
7175 (*fma<mode>4_madd4) New.
7176 (*fma<mode>4_maddf) New.
7178 (*fms<mode>4_msub3) New.
7179 (*fms<mode>4_msub4) New.
7181 (*fnma<mode>4_nmadd3) New.
7182 (*fnma<mode>4_nmadd4) New.
7184 (*fnms<mode>4_nmsub3) New.
7185 (*fnms<mode>4_nmsub4) New.
7186 (*madd4<mode>) Modify to be unfused only.
7187 (*msub4<mode>) Modify to be unfused only.
7188 (*nmadd4<mode>) Modify to be unfused only.
7189 (*nmsub4<mode>) Modify to be unfused only.
7190 (*madd3<mode>) Remove.
7191 (*msub3<mode>) Remove.
7192 (*nmadd3<mode>) Remove.
7193 (*nmsub3<mode>) Remove.
7194 (*nmadd3<mode>_fastmath) Remove.
7195 (*nmsub3<mode>_fastmath) Remove.
7196 (*nmadd4<mode>_fastmath) Update condition.
7197 (*nmsub4<mode>_fastmath) Update condition.
7199 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
7202 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7203 alignment attribute, exploring one level down for records and arrays.
7205 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
7207 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
7208 modes for operands 0 and 1. Use SImode for operands 2 and 3.
7209 Copy operand 1 to a temporary if !ext_register_operand. Remove
7210 ancient extract_bit_field workaround.
7211 (*extv<mode>): Rename from *mov<mode>_extv_1.
7212 (*extvqi): Rename from *movqi_extv_1.
7213 (extzv<mode>): Rename from extzv. Use SWI248 modes for
7214 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
7215 to a temporary if !ext_register_operand. Remove ancient
7216 extract_bit_field workaround.
7217 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7218 (*extzvqi): Rename from *movqi_extzv_2.
7219 (*testqi_ext_3): Remove modes from const_int_operand predicated
7220 operands. Add "n" constraint.
7221 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7222 operand. Add "J" constraint.
7223 (*btsq, *btrq, *btcq peephole2s): Remove mode from
7224 const_0_to_63 predicated operand.
7225 (regmode): New insn attribute.
7226 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
7227 to nonmemory_operand. Use regmode insn attribute.
7228 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7229 (*jcc_bt<mode>_mask): Remove mode from operand 3.
7230 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7231 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7232 operands. Use "N" constraint instead of "n".
7234 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
7236 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7238 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7241 * config/i386/i386.c (iamcu_cost): New.
7242 (m_IAMCU): Likewise.
7243 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7244 (processor_target_table): Add an entry for "iamcu".
7245 (processor_alias_table): Likewise.
7246 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7247 (ix86_adjust_cost): Likewise.
7248 (ia32_multipass_dfa_lookahead): Likewise.
7249 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7250 * config/i386/x86-tune.def: Updated for m_IAMCU.
7252 2015-07-06 Richard Biener <rguenther@suse.de>
7254 PR tree-optimization/66772
7255 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7256 values are available in the PHI node BB when there are
7257 still unexecutable edges.
7259 2015-07-06 Richard Biener <rguenther@suse.de>
7261 PR tree-optimization/66767
7262 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7263 Make sure to build the alignment test on a SSA name without
7264 final alignment info valid only if the alignment test
7267 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
7270 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7271 loop start when inserting LSETUP.
7273 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
7276 * config/i386/i386.c (ix86_option_override_internal): Allow
7277 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7279 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7281 * read-md.c (decimal_string): Rename to ...
7282 (md_decimal_string): ... this.
7283 (handle_enum): Reflect this.
7285 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
7288 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7290 2015-07-06 Richard Biener <rguenther@suse.de>
7293 * match.pd: Add missing constraint of y to REAL_CST in
7294 REAL_CST - x CMP y to y - CST CMP x simplification.
7296 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
7298 PR tree-optimization/66757
7299 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7301 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
7302 Sandra Loosemore <sandra@codesourcery.com>
7304 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7305 Delete extern declaration.
7306 (gprel_constant_p): Add extern declaration.
7307 * config/nios2/constraints.md ("S"): Use gprel_constant_p
7308 instead of nios2_symbol_ref_in_small_data_p.
7309 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7310 (nios2_symbol_ref_in_small_data_p): Make static.
7311 (gprel_constant_p): Make non-static.
7313 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
7315 * doc/fragments.texi (Target Fragment): Convert debian.org
7317 * doc/install.texi (Configuration): Ditto.
7319 2015-07-05 Jakub Jelinek <jakub@redhat.com>
7321 PR tree-optimization/66718
7322 * tree-vect-stmts.c (vectorizable_call): Replace uses of
7323 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7325 PR tree-optimization/66718
7326 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7327 vectorizable_load, vectorizable_condition): Move vectype,
7328 nunits, ncopies computation after checking what kind of statement
7331 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7333 * target-insns.def (extv, extzv, insv): New targetm instruction
7335 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7337 * recog.c (simplify_while_replacing): Likewise.
7339 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7341 * target-insns.def (doloop_begin, doloop_end): New targetm
7342 instruction patterns.
7343 * loop-init.c: Include target.h.
7344 (pass_loop2::gate): Use the new targetm patterns instead of
7345 HAVE_*/gen_* interface.
7346 (pass_rtl_doloop::gate): Likewise.
7347 (pass_rtl_doloop::execute): Remove preprocessor condition.
7348 * hw-doloop.c: Build unconditionally.
7349 * loop-doloop.c: Likewise.
7350 (doloop_optimize): Use the new targetm patterns instead of
7351 HAVE_*/gen_* interface.
7352 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7353 * modulo-sched.c (doloop_register_get): Likewise.
7355 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7357 * target-insns.def (clear_cache): New targetm instruction pattern.
7358 * builtins.c (expand_builtin___clear_cache): Use it instead of
7359 HAVE_*/gen_* interface.
7361 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7363 * target-insns.def (allocate_stack, check_stack, probe_stack)
7364 (probe_stack_address, split_stack_prologue, split_stack_space_check):
7365 New targetm instruction patterns.
7366 * explow.c (allocate_dynamic_stack_space): Use them instead of
7367 HAVE_*/gen_* interface.
7368 (emit_stack_probe): Likewise.
7369 (probe_stack_range): Likewise.
7370 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7372 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7374 * target-insns.def (stack_protect_set, stack_protect_test): New
7375 targetm instruction patterns.
7376 * cfgexpand.c (stack_protect_prologue): Use them instead of
7377 HAVE_*/gen_* interface.
7378 * function.c (stack_protect_epilogue): Likewise.
7380 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7382 * expr.h (gen_move_insn_uncast): Delete.
7383 * expr.c (gen_move_insn_uncast): Delete.
7385 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7387 * target-insns.def (restore_stack_block, restore_stack_function)
7388 (restore_stack_nonlocal, save_stack_block, save_stack_function)
7389 (save_stack_nonlocal): New targetm instruction patterns.
7390 * builtins.c (expand_builtin_apply): Use them instead of
7391 HAVE_*/gen_* interface.
7392 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7394 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7396 * target-insns.def (trap): New targetm instruction pattern.
7397 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7399 * explow.c (allocate_dynamic_stack_space): Likewise.
7400 * ifcvt.c (find_if_header): Likewise.
7402 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7404 * target-insns.def (prefetch): New targetm instruction pattern.
7405 * tree-ssa-loop-prefetch.c: Include targeth.
7406 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7407 of HAVE_*/gen_* interface.
7408 * builtins.c (expand_builtin_prefetch): Likewise.
7409 * toplev.c (process_options): Likewise.
7411 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7413 * target-insns.def (untyped_call, untyped_return): New targetm
7414 instruction patterns.
7415 * builtins.c (expand_builtin_apply): Use them instead of
7416 HAVE_*/gen_* interface.
7417 (result_vector): Define unconditionally.
7419 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7421 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7422 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7423 (nonlocal_goto_receiver): New targetm instruction patterns.
7424 * builtins.c (expand_builtin_setjmp_setup): Use them instead
7425 of HAVE_*/gen_* interface.
7426 (expand_builtin_setjmp_receiver): Likewise.
7427 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7428 * except.c (expand_dw2_landing_pad_for_region): Likewise.
7430 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
7432 * target.def: Add code_for_* hooks.
7433 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7434 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7435 * target-insns.def (casesi, tablejump): New targetm instruction
7437 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7438 (do_tablejump): Likewise.
7439 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7440 (expand_sjlj_dispatch_table): Likewise.
7441 * targhooks.c (default_case_values_threshold): Likewise.
7443 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
7445 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7446 Use rtx_insn * instead of rtx.
7447 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7448 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7449 (nios2_call_tls_get_addr): Likewise.
7450 (nios2_emit_expensive_div): Likewise.
7451 (nios2_emit_move_sequence): Change return type to bool.
7452 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7453 Change return type to bool.
7455 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7458 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7460 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
7463 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7464 of register_operand. Remove constraint.
7466 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
7468 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7471 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
7473 * attribs.c (decl_attributes): Guard inform with the return value
7474 of the preceding warning.
7476 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
7478 * doc/invoke.texi (moverride): Move to correct section.
7480 2015-07-03 Richard Biener <rguenther@suse.de>
7482 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7484 (dt_operand::gen_gimple_expr): After valueizing operands
7485 re-canonicalize operand order for commutative tree codes.
7487 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
7490 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7492 (__crc32w): Likewise.
7493 (__crc32d): Likewise.
7494 (__rdpmc): Likewise.
7495 (__rdtscp): Likewise.
7497 (_rdtscp): Likewise.
7498 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7501 2015-07-03 Richard Biener <rguenther@suse.de>
7503 * fold-const.c (fold_mathfn_compare): Remove.
7504 (fold_inf_compare): Likewise.
7505 (fold_comparison): Move floating point comparison simplifications...
7506 * match.pd: ... to patterns here. Introduce simple_comparisons
7507 operator list and use it for patterns formerly in fold_comparison.
7509 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
7511 PR tree-optimization/66119
7512 * toplev.c (process_options): Don't set up default values for
7513 the sra_max_scalarization_size_{speed,size} parameters.
7514 * tree-sra (analyze_all_variable_accesses): If no values
7515 have been set for the sra_max_scalarization_size_{speed,size}
7516 parameters, call get_move_ratio to get target defaults.
7518 2015-07-03 Richard Biener <rguenther@suse.de>
7520 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
7521 * match.pd: ... here.
7523 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
7526 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
7527 is not actually the default on FreeBSD.
7529 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7531 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
7533 (CMPGE_8HI): Likewise.
7534 (CMPGE_4SI): Likewise.
7535 (CMPGE_2DI): Likewise.
7536 (CMPGE_U16QI): Likewise.
7537 (CMPGE_U8HI): Likewise.
7538 (CMPGE_U4SI): Likewise.
7539 (CMPGE_U2DI): Likewise.
7540 (CMPLE_16QI): Likewise.
7541 (CMPLE_8HI): Likewise.
7542 (CMPLE_4SI): Likewise.
7543 (CMPLE_2DI): Likewise.
7544 (CMPLE_U16QI): Likewise.
7545 (CMPLE_U8HI): Likewise.
7546 (CMPLE_U4SI): Likewise.
7547 (CMPLE_U2DI): Likewise.
7548 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7549 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
7550 ALTIVEC_BUILTIN_VEC_CMPLE.
7551 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
7552 floating-point vector modes.
7553 (vector_nlt<mode>): New define_expand.
7554 (vector_nltu<mode>): Likewise.
7555 (vector_ngt<mode>): Likewise.
7556 (vector_ngtu<mode>): Likewise.
7558 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
7560 PR rtl-optimization/66706
7561 * combine.c (make_compound_operation): If an AND of SUBREG of
7562 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
7564 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
7566 * tree-pass.h (make_pass_ch_vect): New.
7567 * passes.def: Add pass_ch_vect just before pass_if_conversion.
7569 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
7570 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
7571 make_pass_ch_vect): New.
7572 (pass_ch): Extend ch_base.
7574 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
7575 (ch_base::copy_headers): ...here.
7577 2015-07-02 Richard Biener <rguenther@suse.de>
7579 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
7580 * fold-const.c (get_pointer_modulus_and_residue): Remove.
7581 (fold_binary_loc): Implement (T)ptr & CST in terms of
7582 get_pointer_alignment_1.
7583 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
7584 Make sure to build the alignment test on a SSA name without
7585 final alignment info valid only after the prologue.
7587 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
7589 * config/cris/cris.md ("epilogue"): Remove condition.
7590 ("prologue"): Ditto.
7592 2015-07-02 Richard Biener <rguenther@suse.de>
7594 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
7595 parameter to record a condition that is false.
7596 (record_conditions): When recording an extra NE_EXPR that is
7597 true also record a EQ_EXPR that is false.
7599 2015-07-02 Bin Cheng <bin.cheng@arm.com>
7601 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
7602 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
7603 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
7604 (set_iv, find_interesting_uses_address, add_candidate_1): New
7605 argument to alloc_iv.
7606 (find_interesting_uses_op, find_interesting_uses_cond): Don't
7607 duplicate struct iv.
7608 (free_loop_data): Don't free struct iv explicitly.
7609 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
7611 2015-07-01 DJ Delorie <dj@redhat.com>
7613 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
7615 (SUPPORTS_DISCRIMINATOR): Define.
7617 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
7620 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
7621 there are no CALLs in the same pattern.
7623 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7625 PR rtl-optimization/61047
7626 * rtlanal.c (get_initial_register_offset): New function.
7627 (rtx_addr_can_trap_p_1): Check offsets of stack references.
7629 2015-07-01 Richard Biener <rguenther@suse.de>
7631 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
7632 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
7633 ~X CMP C -> X CMP' ~C to ...
7634 * match.pd: ... patterns here.
7636 2015-07-01 Nick Clifton <nickc@redhat.com>
7638 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
7639 a 16-bit value into a 20-bit memory slot.
7641 2015-07-01 Jiong Wang <jiong.wang@arm.com>
7643 * doc/sourcebuild.texi (AArch64-specific attributes): Document
7644 "aarch64_tiny", "aarch64_small", "aarch64_large",
7645 "aarch64_little_endian", "aarch64_big_endian".
7647 2015-07-01 Jiong Wang <jiong.wang@arm.com>
7649 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
7650 Document "aarch64_small_fpic".
7652 2015-07-01 Jiong Wang <jiong.wang@arm.com>
7654 * configure.ac: Add check for aarch64 assembler -fpic relocation
7656 * configure: Regenerate.
7657 * config.in: Regenerate.
7658 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
7659 to -fPIC if not support of -fpic relocation modifier in assembler.
7661 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
7664 * rtl.c (classify_insn): Handle returns in PARALLELs.
7666 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
7669 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
7670 to true if the function is nested and if not optimizing.
7671 (convert_local_omp_clauses): Initialize need_frame to true if the
7672 function contains nested functions and if not optimizing.
7674 2015-07-01 Richard Biener <rguenther@suse.de>
7676 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
7677 (X & Y) ^ Y -> ~X & Y transforms to ...
7678 * match.pd: ... here.
7680 2015-07-01 Richard Biener <rguenther@suse.de>
7682 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
7683 of converts to avoid uninteresting noise from the conversion
7684 simplifying patterns.
7686 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
7688 * config/c6x/c6x.c (try_rename_operands): Do not depend on
7689 gcc_assert evaluating its argument for side-effect.
7691 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
7694 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
7697 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
7699 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
7700 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
7701 (hash_scc): Add this_ref_p and ref_p parameters and pass them
7702 to the inner DFS walk.
7704 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
7706 * target-insns.def (jump): New targetm instruction pattern.
7707 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
7708 instead of gen_jump.
7709 (fix_up_crossing_landing_pad): Likewise.
7710 (add_labels_and_missing_jumps): Likewise.
7711 (fix_crossing_conditional_branches): Likewise.
7712 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7713 (force_nonfallthru_and_redirect): Likewise.
7714 * cse.c (cse_insn): Likewise.
7715 * expmed.c (expand_divmod): Likewise.
7716 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
7717 * haifa-sched.c (init_before_recovery): Likewise.
7718 (sched_create_recovery_edges): Likewise.
7719 * ifcvt.c (find_cond_trap): Likewise.
7720 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
7721 (expand_float, expand_fix): Likewise.
7722 * stmt.c (emit_jump): Likewise.
7724 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
7726 * defaults.h (HAVE_load_multiple, gen_load_multiple)
7727 (HAVE_store_multiple, gen_store_multiple): Delete.
7728 * target-insns.def (load_multiple, store_multiple): New targetm
7729 instruction patterns.
7730 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
7731 of HAVE_*/gen_* interface.
7733 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
7735 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
7736 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
7737 (gen_mem_signal_fence): Delete.
7738 * target-insns.def (mem_signal_fence, mem_thread_fence)
7739 (memory_barrier): New targetm instruction patterns.
7740 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
7742 (expand_mem_signal_fence): Likewise.
7744 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
7746 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
7747 * target-insns.def (epilogue, prologue, sibcall_prologue): New
7748 targetm instruction patterns.
7749 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
7751 * calls.c (expand_call): Likewise.
7752 * cfgrtl.c (cfg_layout_finalize): Likewise.
7753 * df-scan.c (df_get_entry_block_def_set): Likewise.
7754 (df_get_exit_block_use_set): Likewise.
7755 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
7756 * final.c (final_start_function): Likewise.
7757 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7758 (reposition_prologue_and_epilogue_notes): Likewise.
7759 * reorg.c (find_end_label): Likewise.
7760 * toplev.c (process_options): Likewise.
7762 2015-06-30 David Malcolm <dmalcolm@redhat.com>
7764 * typed-splay-tree.h: New file.
7766 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
7769 * lra-int.h (lra_substitute_pseudo): Add a parameter.
7770 (lra_substitute_pseudo_within_insn): Ditto.
7771 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
7773 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
7774 to lra_substitute_pseudo.
7775 * lra-lives.c (process_bb_lives): Add an argument to
7776 lra_substitute_pseudo_within_insn call.
7777 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
7778 argument to lra_substitute_pseudo and
7779 lra_substitute_pseudo_within_insn calls.
7780 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
7782 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
7784 * configure: Regenerated.
7786 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
7788 * config.gcc: Support i[34567]86-*-elfiamcu target.
7789 * config/i386/iamcu.h: New.
7790 * config/i386/i386.opt: Add -miamcu.
7791 * doc/invoke.texi: Document -miamcu.
7792 * common/config/i386/i386-common.c (ix86_handle_option): Turn
7793 off x87/MMX/SSE/AVX codegen for -miamcu.
7794 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7795 __iamcu/__iamcu__ for -miamcu.
7796 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
7797 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
7798 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
7799 * config/i386/i386.c (ix86_option_override_internal): Ignore and
7800 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
7801 MCU by default. Default long double to 64-bit for Intel MCU.
7802 Turn on -freg-struct-return for Intel MCU. Issue an error when
7803 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
7805 (function_arg_advance_32): Pass value whose size is no larger
7806 than 8 bytes in registers for Intel MCU.
7807 (function_arg_32): Likewise.
7808 (ix86_return_in_memory): Return value whose size is no larger
7809 than 8 bytes in registers for Intel MCU.
7810 (iamcu_alignment): New function.
7811 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
7813 (ix86_local_alignment): Don't increase alignment for Intel MCU.
7814 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
7817 2015-06-30 Marek Polacek <polacek@redhat.com>
7819 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
7820 both operands of the resulting expression.
7822 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
7823 the final expression with the operand's type and then convert
7824 it to the type of the expression.
7826 2015-06-30 Richard Biener <rguenther@suse.de>
7828 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
7829 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
7830 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
7831 * match.pd: ... to patterns here.
7833 2015-06-30 Richard Biener <rguenther@suse.de>
7835 PR tree-optimization/66704
7836 * tree-vect-data-refs.c (vect_setup_realignment): Use
7837 make_ssa_name for non-SSA name source.
7839 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7842 * omp-low.c (simd_clone_adjust): Handle addressable linear
7843 or uniform parameters or non-gimple type uniform parameters.
7845 2015-06-30 Richard Biener <rguenther@suse.de>
7847 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
7848 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
7849 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
7850 * match.pd: ... here.
7851 Add a few cases of A - B -> A + (-B) when B "easily" negates.
7852 Move (x & y) | x -> x and friends before
7853 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
7855 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
7857 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
7858 -mfix-ut699 is not specified.
7859 (leon3_load): Rename into...
7860 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
7863 2015-06-30 Marek Polacek <polacek@redhat.com>
7865 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
7866 * match.pd: ... here.
7868 2015-06-30 Richard Biener <rguenther@suse.de>
7870 * target-insns.def (canonicalize_funcptr_for_compare): Add.
7871 * fold-const.c (build_range_check): Replace uses of
7872 HAVE_canonicalize_funcptr_for_compare.
7873 (fold_widened_comparison): Likewise.
7874 (fold_sign_changed_comparison): Likewise.
7875 * dojump.c: Include "target.h".
7876 (do_compare_and_jump): Replace uses of
7877 HAVE_canonicalize_funcptr_for_compare and
7878 gen_canonicalize_funcptr_for_compare.
7879 * expr.c (do_store_flag): Likewise.
7881 2015-06-30 Tom de Vries <tom@codesourcery.com>
7883 PR tree-optimization/66652
7884 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
7885 max_loop_iterations to determine if nit + 1 overflows.
7887 2015-06-30 Richard Biener <rguenther@suse.de>
7889 * tree-vrp.c (register_edge_assert_for_2): Also register
7890 asserts for dominating conversion results.
7892 2015-06-30 Bin Cheng <bin.cheng@arm.com>
7894 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
7897 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
7900 * configure.ac: Fix filds and fildq test for 64-bit.
7901 * configure: Regenerated.
7903 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
7905 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
7906 (nvptx_reorg): Here. Keep the non-subreg pieces.
7908 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
7910 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
7911 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
7913 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
7915 * config/i386/i386.md (*jcc_1): Use %! in asm template.
7916 Set attribute "length_nobnd" instead of "length".
7919 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
7921 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
7923 * config/nios2/nios2.c (nios2_delegitimize_address): Make
7924 assert less restrictive.
7926 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7929 * cgraphunit.c (cgraph_node::finalize_function): Do not call
7930 do_warn_unused_parameter.
7931 * function.c (do_warn_unused_parameter): Move from here.
7932 * function.h (do_warn_unused_parameter): Do not declare.
7934 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7937 * gcc.target/arm/armv-sync-comp-swap.c: New.
7938 * gcc.target/arm/armv-sync-op-acquire.c: New.
7939 * gcc.target/arm/armv-sync-op-full.c: New.
7940 * gcc.target/arm/armv-sync-op-release.c: New.
7942 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7945 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
7946 initial acquire barrier with final barrier.
7948 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7951 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
7952 initial acquire barrier with final barrier.
7954 2015-06-29 Richard Henderson <rth@redhat.com>
7956 * config/i386/constraints.md (Bf): New constraint.
7957 * config/i386/i386-c.c (ix86_target_macros): Define
7958 __GCC_ASM_FLAG_OUTPUTS__.
7959 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
7961 * doc/extend.texi (FlagOutputOperands): Document them.
7963 2015-06-29 Jiong Wang <jiong.wang@arm.com>
7965 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
7966 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
7968 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
7969 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
7970 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
7971 (aarch64_symbol_context): Ditto.
7972 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
7973 and use new pattern name.
7974 (aarch64_expand_mov_immediate): Ditto.
7975 (aarch64_print_operand): Ditto.
7976 (aarch64_classify_tls_symbol): Ditto.
7978 2015-06-29 Marek Polacek <polacek@redhat.com>
7979 Marc Glisse <marc.glisse@inria.fr>
7981 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
7982 * match.pd: ... pattern here.
7984 2015-06-29 Tom de Vries <tom@codesourcery.com>
7986 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
7989 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
7991 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
7992 feature description, split out the native option, add a link to
7993 the feature documentation, rearrange and slightly rewrite text.
7994 (Aarch64 options, -mcpu): Likewise.
7995 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
7996 +rdma implies Adv. SIMD.
7998 2015-06-29 Marek Polacek <polacek@redhat.com>
8001 * function.c (stack_protect_epilogue): Remove a cast to int.
8002 * doc/invoke.texi: Update -Wswitch-bool description.
8004 2015-06-29 Richard Biener <rguenther@suse.de>
8006 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8007 * fold-const.c (fold_binary_loc): Move &A - &B simplification
8008 via ptr_difference_const ...
8009 * match.pd: ... here.
8010 When matching (X ^ Y) == Y also match with swapped operands.
8012 2015-06-29 Richard Biener <rguenther@suse.de>
8014 * lto-streamer.h (LTO_major_version): Bump to 5.
8016 2015-06-29 Richard Biener <rguenther@suse.de>
8018 PR tree-optimization/66677
8019 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8020 STMT_VINFO_VEC_STMT clobbering less strict.
8022 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
8025 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8026 division, compute max and min when value ranges for dividend and
8027 divisor are available.
8029 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
8030 Sandra Loosemore <sandra@codesourcery.com>
8032 * regrename.h (regrename_do_replace): Change to return bool.
8033 * regrename.c (rename_chains): Check return value of
8035 (regrename_do_replace): Re-validate the modified insns and
8037 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8038 Update to match rename_chains changes.
8039 * config/c6x/c6x.c (try_rename_operands): Assert that
8040 regrename_do_replace returns true.
8042 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
8044 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8045 operand 2 here. Use copy_addr_to_reg to copy non-index
8046 register operand 2 to a temporary.
8047 (<mode>_stx): Ditto for operand 1.
8048 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8049 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8050 (ix86_store_bounds): Ditto.
8052 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
8054 * print-tree.c (print_node) [TREE_VEC]: Print its length.
8056 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
8058 * gimple.c (gimple_call_set_fndecl): Remove.
8059 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8060 build1_loc directly instead of build_fold_addr_expr_loc.
8062 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
8064 * hash-map.h (hash_map::traverse): Use the definition of the
8065 Key typedef rather than the typedef itself.
8067 2015-06-26 Martin Jambor <mjambor@suse.cz>
8070 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8071 NULL instead of calling dump_enabled_p.
8073 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8075 * config/aarch64/aarch64.opt: (override): New.
8076 * doc/invoke.texi (override): Document.
8077 * config/aarch64/aarch64.c (aarch64_flag_desc): New
8078 (aarch64_fusible_pairs): Likewise.
8079 (aarch64_tuning_flags): Likewise.
8080 (aarch64_tuning_override_function): Likewise.
8081 (aarch64_tuning_override_functions): Likewise.
8082 (aarch64_parse_one_option_token): Likewise.
8083 (aarch64_parse_boolean_options): Likewise.
8084 (aarch64_parse_fuse_string): Likewise.
8085 (aarch64_parse_tune_string): Likewise.
8086 (aarch64_parse_one_override_token): Likewise.
8087 (aarch64_parse_override_string): Likewise.
8088 (aarch64_override_options): Parse the -override string if it
8091 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8093 * config/aarch64/aarch64-protos.h (tune_params): Remove
8095 (aarch64_tune_params): Remove const, change to no longer be
8097 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8098 change to no longer be a pointer, initialize to generic_tunings.
8099 (aarch64_min_divisions_for_recip_mul): Change dereference of
8100 aarch64_tune_params to member access.
8101 (aarch64_reassociation_width): Likewise.
8102 (aarch64_rtx_mult_cost): Likewise.
8103 (aarch64_address_cost): Likewise.
8104 (aarch64_branch_cost): Likewise.
8105 (aarch64_rtx_costs): Likewise.
8106 (aarch64_register_move_cost): Likewise.
8107 (aarch64_memory_move_cost): Likewise.
8108 (aarch64_sched_issue_rate): Likewise.
8109 (aarch64_builtin_vectorization_cost): Likewise.
8110 (aarch64_override_options): Take a copy of the selected tuning
8111 struct in to aarch64_tune_params, rather than just setting
8112 a pointer, change dereferences of aarch64_tune_params to member
8114 (aarch64_override_options_after_change): Change dereferences of
8115 aarch64_tune_params to member access.
8116 (aarch64_macro_fusion_p): Likewise.
8117 (aarch_macro_fusion_pair_p): Likewise.
8118 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8120 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8122 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8123 (aarch64_tune_flags): Likewise.
8124 (AARCH64_TUNE_FMA_STEERING): Likewise.
8125 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8126 to AARCH64_FL_USE_FMA_STEERING_PASS.
8127 (cortex-a57.cortex-a53): Likewise.
8128 (cortex-a72): Use cortexa72_tunings.
8129 (cortex-a72.cortex-a53): Likewise.
8130 (exynos-m1): Likewise.
8131 * config/aarch64/aarch64-protos.h (tune_params): Add
8132 a field: extra_tuning_flags.
8133 * config/aarch64/aarch64-tuning-flags.def: New.
8134 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8135 (aarch64_extra_tuning_flags): Likewise.
8136 (aarch64_tune_params): Declare here.
8137 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8138 (cortexa53_tunings): Likewise.
8139 (cortexa57_tunings): Likewise.
8140 (thunderx_tunings): Likewise.
8141 (xgene1_tunings): Likewise.
8142 (cortexa72_tunings): New.
8143 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8144 (gate): Check against aarch64_tune_params.
8145 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8148 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8150 * config/aarch64/aarch64-fusion-pairs.def: New.
8151 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8152 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8153 aarch64_fusion_pairs.
8154 (AARCH64_FUSE_MOV_MOVK): Likewise.
8155 (AARCH64_FUSE_ADRP_ADD): Likewise.
8156 (AARCH64_FUSE_MOVK_MOVK): Likewise.
8157 (AARCH64_FUSE_ADRP_LDR): Likewise.
8158 (AARCH64_FUSE_CMP_BRANCH): Likewise.
8160 2015-06-26 Jiong Wang <jiong.wang@arm.com>
8162 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8163 SYMBOL_SMALL_GOT_28K.
8164 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8165 relocation modifiers.
8166 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8167 (ldr_got_small_28k_<mode>): New.
8168 (ldr_got_small_28k_sidi): New.
8169 * config/aarch64/iterators.md (got_modifier): New mode iterator.
8170 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8171 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8172 SYMBOL_SMALL_GOT_28K.
8173 (aarch64_rtx_costs): Add costs for new instruction sequences.
8174 (initialize_aarch64_code_model): Initialize new model.
8175 (aarch64_classify_symbol): Recognize new model and new symbol classification.
8176 (aarch64_asm_preferred_eh_data_format): Support new model.
8177 (aarch64_load_symref_appropriately): Generate new instruction
8178 sequences for -fpic.
8179 (TARGET_USE_PSEUDO_PIC_REG): New definition.
8180 (aarch64_use_pseudo_pic_reg): New function.
8182 2015-06-26 Jiong Wang <jiong.wang@arm.com>
8184 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8185 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8186 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8187 (aarch64_expand_mov_immediate): Ditto.
8188 (aarch64_print_operand): Ditto.
8189 (aarch64_classify_symbol): Ditto.
8191 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
8193 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8195 2015-06-26 Bin Cheng <bin.cheng@arm.com>
8198 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8199 assertion failed. Remove assertion itself.
8201 2015-06-26 Richard Biener <rguenther@suse.de>
8203 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8204 and -A CMP CST -> A CMP -CST which is redundant with a pattern
8206 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8207 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8208 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8209 * match.pd: ... patterns here.
8211 2015-06-26 Marek Polacek <polacek@redhat.com>
8213 * match.pd ((x | y) & ~(x & y) -> x ^ y,
8214 (x | y) & (~x ^ y) -> x & y): New patterns.
8216 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
8218 * rtl.h (emit): Add an optional boolean parameter to control
8219 whether barriers are emitted.
8220 * emit-rtl.c (emit): Likewise.
8221 * gensupport.c (get_emit_function): Return null rather than "emit".
8222 * genemit.c (gen_emit_seq): Handle the null return value.
8223 Don't emit barriers after the final instruction in the sequence.
8224 * gentarget-def.c (main): Don't emit barriers after the instruction.
8226 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8228 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8231 2015-06-26 Richard Biener <rguenther@suse.de>
8233 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8235 2015-06-26 Richard Biener <rguenther@suse.de>
8237 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8238 irrespective on whether the inner operation has a single use
8239 of both off are constant.
8241 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
8242 Segher Boessenkool <segher@kernel.crashing.org>
8245 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8246 before doing PUT_MODE or PUT_CODE on operands to avoid
8247 in-place RTX modification.
8249 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
8251 * gentarget-def.c (def_target_insn): Cast return of strtol to
8254 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8256 * gimple.h (gimple_call_set_fn): Move inline function.
8257 * gimple.c (gimple_call_set_fn): Relocate here.
8259 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
8263 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8264 the replacement insn will work.
8266 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
8268 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8271 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8273 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8274 * cgraph.h: Include ipa-ref.h and plugin-api.h.
8275 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8276 (symtab_node::address_can_be_compared_p): Move function.
8277 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8279 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8280 * auto-profile.c: Likewise.
8281 * bb-reorder.c: Likewise.
8282 * builtins.c: Likewise.
8283 * calls.c: Likewise.
8284 * cfgexpand.c: Likewise.
8285 * cgraphbuild.c: Likewise.
8286 * cgraphclones.c: Likewise.
8287 * cgraphunit.c: Likewise.
8288 * combine.c: Likewise.
8289 * coverage.c: Likewise.
8290 * data-streamer-in.c: Likewise.
8291 * data-streamer-out.c: Likewise.
8292 * data-streamer.c: Likewise.
8293 * dbxout.c: Likewise.
8294 * dwarf2out.c: Likewise.
8295 * except.c: Likewise.
8297 * final.c: Likewise.
8298 * fold-const.c: Likewise.
8299 * ggc-page.c: Likewise.
8300 * gimple-fold.c: Likewise.
8301 * gimple-iterator.c: Likewise.
8302 * gimple-pretty-print.c: Likewise.
8303 * gimple-streamer-in.c: Likewise.
8304 * gimple-streamer-out.c: Likewise.
8305 * gimple.c: Likewise.
8306 * gimplify.c: Likewise.
8307 * ipa-chkp.c: Likewise.
8308 * ipa-comdats.c: Likewise.
8309 * ipa-cp.c: Likewise.
8310 * ipa-devirt.c: Likewise.
8311 * ipa-icf-gimple.c: Likewise.
8312 * ipa-icf.c: Likewise.
8313 * ipa-inline-analysis.c: Likewise.
8314 * ipa-inline-transform.c: Likewise.
8315 * ipa-inline.c: Likewise.
8316 * ipa-polymorphic-call.c: Likewise.
8317 * ipa-profile.c: Likewise.
8318 * ipa-prop.c: Likewise.
8319 * ipa-pure-const.c: Likewise.
8320 * ipa-ref.c: Likewise.
8321 * ipa-reference.c: Likewise.
8322 * ipa-split.c: Likewise.
8323 * ipa-utils.c: Likewise.
8324 * ipa-visibility.c: Likewise.
8326 * langhooks.c: Likewise.
8327 * lto-cgraph.c: Likewise.
8328 * lto-compress.c: Likewise.
8329 * lto-opts.c: Likewise.
8330 * lto-section-in.c: Likewise.
8331 * lto-section-out.c: Likewise.
8332 * lto-streamer-in.c: Likewise.
8333 * lto-streamer-out.c: Likewise.
8334 * lto-streamer.c: Likewise.
8335 * omp-low.c: Likewise.
8336 * opts-global.c: Likewise.
8337 * passes.c: Likewise.
8338 * predict.c: Likewise.
8339 * print-tree.c: Likewise.
8340 * profile.c: Likewise.
8342 * sanopt.c: Likewise.
8343 * stor-layout.c: Likewise.
8344 * symtab.c: Likewise.
8345 * toplev.c: Likewise.
8346 * trans-mem.c: Likewise.
8347 * tree-cfg.c: Likewise.
8348 * tree-chkp.c: Likewise.
8349 * tree-eh.c: Likewise.
8350 * tree-emutls.c: Likewise.
8351 * tree-inline.c: Likewise.
8352 * tree-nested.c: Likewise.
8353 * tree-parloops.c: Likewise.
8354 * tree-pretty-print.c: Likewise.
8355 * tree-profile.c: Likewise.
8356 * tree-sra.c: Likewise.
8357 * tree-ssa-alias.c: Likewise.
8358 * tree-ssa-live.c: Likewise.
8359 * tree-ssa-loop-ivcanon.c: Likewise.
8360 * tree-ssa-loop-ivopts.c: Likewise.
8361 * tree-ssa-pre.c: Likewise.
8362 * tree-ssa-sccvn.c: Likewise.
8363 * tree-ssa-strlen.c: Likewise.
8364 * tree-ssa-structalias.c: Likewise.
8365 * tree-streamer-in.c: Likewise.
8366 * tree-streamer-out.c: Likewise.
8367 * tree-streamer.c: Likewise.
8368 * tree-switch-conversion.c: Likewise.
8369 * tree-tailcall.c: Likewise.
8370 * tree-vect-data-refs.c: Likewise.
8371 * tree-vect-stmts.c: Likewise.
8372 * tree-vectorizer.c: Likewise.
8375 * ubsan.c: Likewise.
8376 * value-prof.c: Likewise.
8377 * varasm.c: Likewise.
8378 * varpool.c: Likewise.
8379 * config/arm/arm.c: Likewise.
8380 * config/bfin/bfin.c: Likewise.
8381 * config/c6x/c6x.c: Likewise.
8382 * config/cris/cris.c: Likewise.
8383 * config/darwin-c.c: Likewise.
8384 * config/darwin.c: Likewise.
8385 * config/i386/i386.c: Likewise.
8386 * config/i386/winnt.c: Likewise.
8387 * config/microblaze/microblaze.c: Likewise.
8388 * config/mips/mips.c: Likewise.
8389 * config/rs6000/rs6000.c: Likewise.
8390 * config/rx/rx.c: Likewise.
8391 * config/s390/s390.c: Likewise.
8392 * config/tilegx/mul-tables.c: Likewise.
8394 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8396 * config/aarch64/aarch64.c, config/alpha/alpha.c,
8397 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8398 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8399 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8400 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8401 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8402 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8403 config/microblaze/microblaze.c, config/mips/mips.c,
8404 config/mmix/mmix.c, config/mn10300/mn10300.c,
8405 config/moxie/moxie.c, config/msp430/msp430.c,
8406 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8407 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8408 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8409 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8410 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8411 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8412 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8413 target-def.h include.
8414 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
8416 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8418 * Makefile.in (TARGET_DEF): Add target-insns.def.
8419 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8420 (build/gentarget-def.o): New rule.
8421 (genprogrtl): Add target-def.
8422 * target-insns.def, gentarget-def.c: New files.
8423 * target.def: Add targetm.have_* and targetm.gen_* hooks,
8424 based on the contents of target-insns.def.
8425 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8426 (HAVE_return, gen_return): Delete.
8427 * target-def.h: Include insn-target-def.h.
8428 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8429 instead of direct calls. Rely on them to do the appropriate assertions.
8430 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
8431 (convert_jumps_to_returns): Use targetm interface instead of
8433 (thread_prologue_and_epilogue_insns): Likewise.
8434 * reorg.c (find_end_label, dbr_schedule): Likewise.
8435 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8436 * shrink-wrap.c (convert_to_simple_return): Likewise.
8437 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8439 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8441 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8442 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8443 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8444 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8445 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8446 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8447 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8448 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8449 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8450 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8451 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8452 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8453 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8454 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8455 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8456 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8459 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8461 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8462 (unbounded_int_hashmap_traits::key_type): Likewise.
8463 * hash-map.h (hash_map): Get the key type from the traits.
8464 * hash-traits.h (default_hash_traits): By default, inherit from the
8466 * alias.c (alias_set_traits): Delete.
8467 (alias_set_entry_d::children): Use alias_set_hash as the first
8469 (record_alias_subset): Update accordingly.
8470 * except.c (tree_hash_traits): Delete.
8471 (type_to_runtime_map): Use tree_hash as the first template parameter.
8472 (init_eh): Update accordingly.
8473 * genmatch.c (capture_id_map_hasher): Delete.
8474 (cid_map_t): Use nofree_string_hash as first template parameter.
8475 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8476 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8477 Use symbol_compare_hash as the first template parameter in
8479 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8480 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8482 * passes.c (pass_registry_hasher): Delete.
8483 (name_to_pass_map): Use nofree_string_hash as the first template
8485 (register_pass_name): Update accordingly.
8486 * sanopt.c (sanopt_tree_map_traits): Delete.
8487 (sanopt_tree_triplet_map_traits): Delete.
8488 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8490 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8491 the first template parameter.
8492 * sese.c (rename_map_hasher): Delete.
8493 (rename_map_type): Use tree_ssa_name_hash as the first template
8495 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8496 (function_summary::m_map): Use map_hash as the first template
8498 (function_summary::release): Update accordingly.
8499 * tree-if-conv.c (phi_args_hash_traits): Delete.
8500 (predicate_scalar_phi): Use tree_operand_hash as the first template
8501 parameter to phi_arg_map.
8502 * tree-inline.h (dependence_hasher): Delete.
8503 (copy_body_data::dependence_map): Use dependence_hash as the first
8505 * tree-inline.c (remap_dependence_clique): Update accordingly.
8506 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8507 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8509 (addr_stridxptr): Update accordingly.
8510 * value-prof.c (profile_id_traits): Delete.
8511 (cgraph_node_map): Use profile_id_hash as the first template
8513 (init_node_map): Update accordingly.
8514 * config/alpha/alpha.c (string_traits): Delete.
8515 (machine_function::links): Use nofree_string_hash as the first
8517 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
8518 * config/m32c/m32c.c (pragma_traits): Delete.
8519 (pragma_htab): Use nofree_string_hash as the first template parameter.
8520 (m32c_note_pragma_address): Update accordingly.
8521 * config/mep/mep.c (pragma_traits): Delete.
8522 (pragma_htab): Use nofree_string_hash as the first template parameter.
8523 (mep_note_pragma_flag): Update accordingly.
8524 * config/mips/mips.c (mips16_flip_traits): Delete.
8525 (mflip_mips16_htab): Use nofree_string_hash as the first template
8527 (mflip_mips16_use_mips16_p): Update accordingly.
8528 (local_alias_traits): Delete.
8529 (mips16_local_aliases): Use nofree_string_hash as the first template
8531 (mips16_local_alias): Update accordingly.
8533 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8535 * hash-map-traits.h (default_hashmap_traits): Delete.
8537 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8539 * hash-map-traits.h (unbounded_hashmap_traits): New class.
8540 (unbounded_int_hashmap_traits): Likewise.
8541 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
8543 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8545 * ipa-icf.h (symbol_compare_hash): New class.
8546 (symbol_compare_hashmap_traits): Use it.
8547 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
8548 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
8549 (mem_alloc_description::reverse_mem_map_t): Remove redundant
8550 default_hashmap_traits.
8551 * sanopt.c (sanopt_tree_triplet_hash): New class.
8552 (sanopt_tree_triplet_map_traits): Use it.
8554 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8556 * gengtype-parse.c (require_template_declaration): Allow '+' in
8557 template parameters. Consolidate cases.
8558 * hash-traits.h (int_hash): New class.
8559 * alias.c (alias_set_hash): New structure.
8560 (alias_set_traits): Use it.
8561 * symbol-summary.h (function_summary::map_hash): New class.
8562 (function_summary::summary_hashmap_traits): Use it.
8563 * tree-inline.h (dependence_hash): New class.
8564 (dependence_hasher): Use it.
8565 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
8566 * value-prof.c (profile_id_hash): New class.
8567 (profile_id_traits): Use it.
8569 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8571 * config/mips/mips.c (mips16_flip_traits): Use it.
8572 (local_alias_traits, mips16_local_aliases): Convert from a map of
8573 rtxes to a map of symbol names.
8574 (mips16_local_alias): Update accordingly.
8576 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8578 * hash-traits.h (string_hash, nofree_string_hash): New classes.
8579 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
8580 * passes.c (pass_registry_hasher): Likewise.
8581 * config/alpha/alpha.c (string_traits): Likewise.
8582 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
8583 * config/m32c/m32c.c (pragma_traits): Likewise.
8584 * config/mep/mep.c (pragma_traits): Likewise.
8586 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8588 * tree-hash-traits.h (tree_hash): New class.
8589 * except.c: Include tree-hash-traits.h.
8590 (tree_hash_traits): Use tree_hash.
8592 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8594 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
8595 * sese.c: Include tree-hash-traits.h.
8596 (rename_map_hasher): Use tree_ssa_name_hasher.
8598 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8600 * tree-hash-traits.h (tree_decl_hash): New class.
8601 * tree-ssa-strlen.c: Include tree-hash-traits.h.
8602 (stridxlist_hash_traits): Use tree_decl_hash.
8604 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8606 * tree-hash-traits.h: New file.
8607 (tree_operand_hash): New class.
8608 * sanopt.c: Include tree-hash-traits.h.
8609 (sanopt_tree_map_traits): Use tree_operand_hash.
8610 * tree-if-conv.c: Include tree-hash-traits.h.
8611 (phi_args_hash_traits): Use tree_operand_hash.
8612 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
8613 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
8615 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8617 * hash-map-traits.h: Include hash-traits.h.
8618 (simple_hashmap_traits): New class.
8619 * mem-stats.h (hash_map): Change the default traits to
8620 simple_hashmap_traits<default_hash_traits<Key> >.
8622 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8624 * hash-table.h: Update comments.
8626 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8628 * hash-traits.h (default_hash_traits): New structure.
8629 * hash-set.h (default_hashset_traits): Delete.
8630 (hash_set): Use default_hash_traits<Key> instead of
8631 default_hashset_traits. Delete hash_entry type and use Key directly.
8632 * ipa-devirt.c (pair_traits): Delete.
8633 (default_hash_traits <type_pair>): Override.
8634 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
8635 (odr_types_equivalent_p, add_type_duplicate): Likewise.
8637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8639 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
8641 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8643 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
8644 (has_is_empty, is_empty_helper): Delete.
8645 (has_mark_deleted, mark_deleted_helper): Delete.
8646 (has_mark_empty, mark_empty_helper): Delete.
8647 (hash_table::is_deleted): Call the Descriptor unconditionally.
8648 (hash_table::is_empty): Likewise.
8649 (hash_table::mark_deleted): Likewise.
8650 (hash_table::mark_empty): Likewise.
8652 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8654 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
8655 redundant typedefs and members.
8656 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
8658 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
8659 * ipa-devirt.c (odr_name_hasher): Likewise.
8660 (polymorphic_call_target_hasher): Likewise.
8661 * ira-costs.c (cost_classes_hasher): Likewise.
8662 * statistics.c (stats_counter_hasher): Likewise.
8663 * trans-mem.c (log_entry_hasher): Likewise.
8664 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
8665 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
8666 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
8667 * var-tracking.c (variable_hasher): Likewise.
8668 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
8669 Remove redundant typedefs and members.
8671 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8673 * hash-traits.h (ggc_cache_hasher): Rename to...
8674 (ggc_cache_remove): ...this and remove typedefs.
8675 (ggc_cache_ptr_hash): New class.
8676 * hash-table.h: Update commentary.
8677 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
8678 rather than ggc_cache_hasher.
8679 (const_wide_int_hasher, reg_attr_hasher): Likewise.
8680 (const_double_hasher, const_fixed_hasher): Likewise.
8681 * function.c (insn_cache_hasher): Likewise.
8682 * trans-mem.c (tm_wrapper_hasher): Likewise.
8683 * tree.h (tree_decl_map_cache_hasher): Likewise.
8684 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
8685 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
8686 * ubsan.c (tree_type_map_cache_hasher): Likewise.
8687 * varasm.c (tm_clone_hasher): Likewise.
8688 * config/i386/i386.c (dllimport_hasher): Likewise.
8689 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
8690 (tree_hasher): Likewise.
8692 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8694 * hash-traits.h (ggc_hasher): Rename to...
8695 (ggc_remover): ...this and remove typedefs.
8696 (ggc_cache_hasher): Update accordingly. Add typedefs.
8697 (ggc_ptr_hash): New class.
8698 * hash-table.h: Update comment.
8699 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
8701 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
8702 (tree_descriptor_hasher): Likewise.
8703 * cgraph.c (function_version_hasher): Likewise.
8704 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
8705 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
8706 (dw_loc_list_hasher, addr_hasher): Likewise.
8707 * function.h (used_type_hasher): Likewise.
8708 * function.c (temp_address_hasher): Likewise.
8709 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
8710 * libfuncs.h (libfunc_hasher): Likewise.
8711 * lto-streamer.h (decl_state_hasher): Likewise.
8712 * optabs.c (libfunc_decl_hasher): Likewise.
8713 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
8714 * varasm.c (section_hasher, object_block_hasher): Likewise.
8715 (const_rtx_desc_hasher): Likewise.
8716 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
8717 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
8719 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8721 * hash-traits.h (free_ptr_hash): New class.
8722 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
8723 rather than typed_free_remove. Remove redudant typedefs.
8724 (external_ref_hasher): Likewise.
8725 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
8726 (ehspec_hasher): Likewise.
8727 * ggc-common.c (saving_hasher): Likewise.
8728 * gimplify.c (gimplify_hasher): Likewise.
8729 * haifa-sched.c (delay_i2_hasher): Likewise.
8730 * loop-invariant.c (invariant_expr_hasher): Likewise.
8731 * loop-iv.c (biv_entry_hasher): Likewise.
8732 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
8733 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
8734 * tree-cfg.c (locus_discrim_hasher): Likewise.
8735 * tree-eh.c (finally_tree_hasher): Likewise.
8736 * tree-into-ssa.c (var_info_hasher): Likewise.
8737 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
8738 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
8739 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
8740 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
8741 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
8742 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
8743 (shared_bitmap_hasher): Likewise.
8744 * tree-ssa-threadupdate.c (redirection_data): Likewise.
8745 * tree-vectorizer.h (peel_info_hasher): Likewise.
8746 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
8747 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
8749 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8751 * hash-table.h: Update comments.
8752 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
8753 (nofree_ptr_hash): New class.
8754 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
8755 than typed_noop_remove. Remove redudant typedefs.
8756 * attribs.c (attribute_hasher): Likewise.
8757 * cfg.c (bb_copy_hasher): Likewise.
8758 * cselib.c (cselib_hasher): Likewise.
8759 * dse.c (invariant_group_base_hasher): Likewise.
8760 * dwarf2cfi.c (trace_info_hasher): Likewise.
8761 * dwarf2out.c (macinfo_entry_hasher): Likewise.
8762 (comdat_type_hasher, loc_list_hasher): Likewise.
8763 * gcse.c (pre_ldst_expr_hasher): Likewise.
8764 * genmatch.c (id_base): Likewise.
8765 * genrecog.c (test_pattern_hasher): Likewise.
8766 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
8767 * haifa-sched.c (delay_i1_hasher): Likewise.
8768 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
8769 * ipa-icf.h (congruence_class_group_hash): Likewise.
8770 * ipa-profile.c (histogram_hash): Likewise.
8771 * ira-color.c (allocno_hard_regs_hasher): Likewise.
8772 * lto-streamer.h (string_slot_hasher): Likewise.
8773 * lto-streamer.c (tree_entry_hasher): Likewise.
8774 * plugin.c (event_hasher): Likewise.
8775 * postreload-gcse.c (expr_hasher): Likewise.
8776 * store-motion.c (st_expr_hasher): Likewise.
8777 * tree-sra.c (uid_decl_hasher): Likewise.
8778 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
8779 (ssa_name_var_hash): Likewise.
8780 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
8781 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
8782 * tree-ssa-pre.c (pre_expr_d): Likewise.
8783 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
8784 * vtable-verify.h (registration_hasher): Likewise.
8785 * vtable-verify.c (vtbl_map_hasher): Likewise.
8786 * config/arm/arm.c (libcall_hasher): Likewise.
8787 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
8788 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
8789 * config/sol2.c (comdat_entry_hasher): Likewise.
8790 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
8791 (print_fold_checksum, fold_checksum_tree): Likewise.
8792 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
8793 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
8794 (fold_build_call_array_loc): Likewise.
8795 * tree-ssa-ccp.c (gimple_htab): Likewise.
8796 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
8797 rather than pointer_type.
8799 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8801 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
8802 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
8804 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8806 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
8807 (ggc_hasher::ggc_mx): Likewise.
8808 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
8809 that duplicate ggc_hasher ones.
8811 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8813 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
8814 (gt_cleare_cache): Check here for deleted and empty entries.
8815 Replace handle_cache_entry with a call to keep_cache_entry.
8816 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
8817 (ggc_cache_hasher::keep_cache_entry): New function.
8818 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
8819 (tm_wrapper_hasher::keep_cache_entry): New function.
8820 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
8821 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
8822 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
8823 (type_cache_hasher::keep_cache_entry): New function.
8824 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
8825 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
8826 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
8827 (tree_type_map_cache_hasher::keep_cache_entry): New function.
8828 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
8829 (tm_clone_hasher::keep_cache_entry): New function.
8830 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
8831 (dllimport_hasher::keep_cache_entry): New function.
8833 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8835 * hash-table.h: Include hash-traits.h.
8836 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
8837 (ggc_cache_hasher): Move to...
8838 * hash-traits.h: ...this new file.
8840 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8842 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
8843 struct cl_optimization.
8844 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
8845 * tree.c (make_node_stat): Allocate cl_optimization struct.
8846 (copy_node_stat): Allocate and copy cl_optimization struct.
8848 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8850 * function.h (struct incoming_args): Move struct.
8851 (pass_by_reference, reference_callee_copied): Remove prototypes.
8852 * emit-rtl.h (struct incoming_args): Relocate struct here.
8853 * calls.h (pass_by_reference, reference_callee_copied): Relocate
8855 * function.c (pass_by_reference, reference_callee_copied): Move.
8856 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
8857 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
8858 * ipa-chkp.c: Include calls.h.
8860 2015-06-25 Andrew Macleod <amacleod@redhat.com>
8862 * alias.h (alias_set_type): Move typedef.
8863 * coretypes.h (alias_set_type): Relocate typedef here.
8864 * rtl.h: Don't include alias.h.
8866 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
8868 * cgraph.h (cgraph_rtl_info): Move to rtl.h
8869 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
8871 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
8872 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
8874 * calls.c: Include hard-reg-set.h before rtl.h.
8877 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8878 Vladimir Makarov <vmakarov@redhat.com>
8880 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
8883 2015-06-25 Richard Biener <rguenther@suse.de>
8885 * fold-const.c (fold_binary_loc): Move simplification of
8886 (X <<>> C1) & C2 ...
8887 * match.pd: ... here.
8889 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
8891 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
8893 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
8895 * match.pd: Add patterns for vec_conds between 1 and 0.
8897 2015-06-25 Richard Biener <rguenther@suse.de>
8899 * tree-vect-stmts.c (vectorizable_conversion): Do not set
8900 STMT_VINFO_VEC_STMT for SLP.
8901 (vectorizable_store): Likewise.
8902 (vectorizable_load): Likewise.
8903 (vect_transform_stmt): Catch SLP vectorization clobbering
8904 STMT_VINFO_VEC_STMT.
8906 2015-06-25 Richard Biener <rguenther@suse.de>
8908 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
8910 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
8911 cleanup resulting dead code and parameters.
8912 (vect_transform_slp_perm_load): Adjust.
8914 2015-06-25 Nick Clifton <nickc@redhat.com>
8916 * config/bfin/bfin.c (bfin_expand_prologue): Set
8917 current_function_static_stack_size if flag_stack_usage_info is set.
8918 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
8919 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
8920 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8921 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
8923 2015-06-25 Tom de Vries <tom@codesourcery.com>
8925 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
8926 comment that the generated IV is unsigned.
8928 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8931 * config/arm/arm.c (arm_dbx_register_number): Return
8932 DWARF_FRAME_REGISTERS by default.
8934 2015-06-25 Tom de Vries <tom@codesourcery.com>
8936 * dominance.c (calculate_dominance_info): Fix verify_dominators call
8937 argument. Call verify_dominator when reusing dominator info.
8939 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
8942 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
8943 an additional element of the unspec vector. Modify indices
8945 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
8946 * config/sh/sh.c (prepare_move_operands): Pass incremented
8947 const_int to gen_GOTaddr2picreg.
8948 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
8950 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
8952 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
8953 Condition on TARGET_FLOAT.
8955 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
8957 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
8960 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
8962 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
8964 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
8965 aarch64_err_no_fpadvsimd.
8967 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
8968 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
8969 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
8970 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
8971 Turn error into assert, test TARGET_FLOAT.
8972 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
8975 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
8978 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
8980 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
8982 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
8984 2015-06-24 Renlin Li <renlin.li@arm.com>
8986 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
8987 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
8989 2015-06-24 Richard Biener <rguenther@suse.de>
8991 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
8993 (lower_opt_convert): Support lowering of conditional view_convert.
8994 (parser::parse_operation): Likewise.
8995 (parser::parse_for): Likewise.
8997 2015-06-24 Renlin Li <renlin.li@arm.com>
8999 * varasm.c (emit_local): Use unsigned int for align variable.
9001 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9004 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9005 for negative numbers.
9007 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9009 PR rtl-optimization/66306
9010 * reload.c (find_reloads): Swap the match_dup info for
9011 commutative operands.
9013 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9015 * config/s390/vx-builtins.md
9016 ("vec_scatter_element<mode>_<non_vec_int>")
9017 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9018 attribute with bhfgq.
9020 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9022 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9024 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9026 * config/s390/s390-builtin-types.def: Add flag to indicate the
9027 options under which the function type is needed.
9028 * config/s390/s390-builtins.def: Add flag to indicate the options
9029 under which the builtin is enabled.
9030 * config/s390/s390-builtins.h: Add flags parameter to macro
9032 (bflags_for_builtin): New function.
9033 (flags_for_builtin): Renamed to ...
9034 (opflags_for_builtin): ... this.
9035 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9036 flags_for_builtin to bflags_for_builtin and
9037 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9038 * config/s390/s390.c: Add initialization of bflags_builtin and
9039 opflags_builtin arrays.
9040 Remove code for flags_builtin.
9041 (s390_init_builtins): Only create builtin function types if one of
9042 their flags is active.
9043 Only create builtins if all of their flags are active.
9044 (s390_expand_builtin): Rename flags_for_builtin to
9045 opflags_for_builtin.
9047 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9049 * config/s390/vecintrin.h: Remove internal builtins.
9051 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9053 * config/s390/s390.c (s390_secondary_reload): Fix check for
9054 GENERAL_REGS register class.
9056 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9058 * config/s390/s390.c (s390_support_vector_misalignment): Call
9059 default implementation for !TARGET_VX.
9061 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9063 * config/s390/s390.c (s390_legitimate_constant_p): Add
9066 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9068 * config/s390/s390.c (s390_vector_abi): New variable definition.
9069 (s390_check_type_for_vector_abi): New function.
9070 (TARGET_ASM_FILE_END): New macro definition.
9071 (s390_asm_file_end): New function.
9072 (s390_function_arg): Call s390_check_type_for_vector_abi.
9073 (s390_gimplify_va_arg): Likewise.
9074 * configure: Regenerate.
9075 * configure.ac: Check for .gnu_attribute Binutils feature.
9077 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
9080 * config/bfin/bfin.c (hwloop_optimize): Initialize
9081 JUMP_LABEL for newly created jump.
9083 2015-06-23 Tristan Gingold <gingold@adacore.com>
9085 * collect-utils.c (collect_wait): Unlink the response file here
9088 (utils_cleanup): ...and here.
9090 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
9092 * df-scan.c: Don't include target-def.h.
9093 * targhooks.c: Likewise.
9094 * config/arm/arm-c.c: Likewise.
9095 * config/i386/i386-c.c: Likewise.
9096 * config/nds32/nds32-cost.c: Likewise.
9097 * config/nds32/nds32-fp-as-gp.c: Likewise.
9098 * config/nds32/nds32-intrinsic.c: Likewise.
9099 * config/nds32/nds32-isr.c: Likewise.
9100 * config/nds32/nds32-md-auxiliary.c: Likewise.
9101 * config/nds32/nds32-memory-manipulation.c: Likewise.
9102 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9103 * config/nds32/nds32-predicates.c: Likewise.
9105 2015-06-23 Richard Biener <rguenther@suse.de>
9107 PR tree-optimization/66636
9108 * tree-vect-stmts.c (vectorizable_store): Properly compute the
9109 def type for further defs for strided stores.
9111 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
9113 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9114 conditional selects.
9115 (setcc_int<mode>, setcc_float<mode>): Reformat.
9117 2015-06-23 Marek Polacek <polacek@redhat.com>
9119 * match.pd ((x + y) - (x | y) -> x & y,
9120 (x + y) - (x & y) -> x | y): New patterns.
9122 2015-06-23 Ludovic Courtès <ludo@gnu.org>
9125 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9126 '-dynamic-linker' within %{!shared: ...}.
9128 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
9131 * config/i386/predicates.md (addsub_vm_operator): New predicate.
9132 (addsub_vs_operator): Ditto.
9133 (addsub_vs_parallel): Ditto.
9134 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9135 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9136 Put minus RTX before plus and adjust vec_merge selector.
9137 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9138 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9139 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9140 (addsub vec_merge splitters): New combiner splitters.
9141 (addsub vec_select/vec_concat splitters): Ditto.
9143 2015-06-23 Bin Cheng <bin.cheng@arm.com>
9145 PR tree-optimization/66449
9146 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9147 POINTER_PLUS_EXPR for pointers.
9149 2015-06-23 Alan Modra <amodra@gmail.com>
9151 * rtlanal.c (commutative_operand_precedence): Correct comments.
9152 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9153 declaration. Return an int. Distinguish REG,REG return from
9155 (struct simplify_plus_minus_op_data): Make local to function.
9156 (simplify_plus_minus): Don't set canonicalized if merely sorting
9157 registers. Avoid packing ops if nothing changes. White space fixes.
9159 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
9161 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9162 -fdump-ada-spec is passed but not if -fsyntax-only is.
9164 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
9167 * lra-lives.c (process_bb_lives): Check insn copying the same
9168 reload pseudo and don't create a copy for it.
9170 2015-06-22 Tom de Vries <tom@codesourcery.com>
9172 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9175 2015-06-22 Tom de Vries <tom@codesourcery.com>
9177 * builtins.def (DEF_GOMP_BUILTIN): Test
9178 'flag_tree_parallelize_loops > 1' instead of
9179 'flag_tree_parallelize_loops'. Test flag_cilkplus.
9181 2015-06-22 Tom de Vries <tom@codesourcery.com>
9183 * dominance.c (calculate_dominance_info): Verify dominators if
9186 2015-06-22 Marek Polacek <polacek@redhat.com>
9188 * match.pd ((x ^ y) ^ (x | y) -> x & y,
9189 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9190 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9191 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9193 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
9196 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9197 cost of embedded comparison.
9199 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9202 * config/rs6000/predicates.md (altivec_register_operand): Permit
9203 virtual stack registers.
9204 (vsx_register_operand): Likewise.
9205 (vfloat_operand): Likewise.
9206 (vint_operand): Likewise.
9207 (vlogical_operand): Likewise.
9209 2015-06-22 Richard Biener <rguenther@suse.de>
9211 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9212 and single_scalar_iteration_cost members.
9213 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9214 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9215 (vect_get_single_scalar_iteration_cost): Remove.
9216 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9217 Use LOOP_VINFO_SCALAR_ITERATION_COST.
9218 * tree-vect-loop.c (destroy_loop_vec_info): Free
9220 (vect_get_single_scalar_iteration_cost): Compute result into
9221 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9222 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
9223 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9224 (vect_estimate_min_profitable_iters): Use them.
9226 2015-06-22 Christian Bruel <christian.bruel@st.com>
9229 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9230 (TARGET_INSERT_ATTRIBUTES): Define.
9231 (thumb_flipper): New var.
9232 * config/arm/arm.opt (-mflip-thumb): New switch.
9234 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
9235 Martin Liska <mliska@suse.cz>
9238 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9239 construction of arg_types.
9240 (sem_function::sem_function): Likewise.
9241 (sem_function::~sem_function): Remove destruction of arg_types.
9242 (sem_function::compatible_parm_types_p): New function.
9243 (sem_function::equals_wpa): Reorg matching of return values
9244 and parameter types.
9245 (sem_function::equals_private): Reorg mathcing of argument types.
9246 (sem_function::parse_tree_args): Remove.
9247 * ipa-icf.h (init_wpa): Do not call it.
9248 (parse_tree_args): Remove.
9249 (compatible_parm_types_p): Declare.
9250 (result_type): Remove.
9251 (arg_types): Remove.
9253 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
9256 * ipa-polymorphic-call.c
9257 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9258 initializing alias oracle; fix formating; set base_alias_set if it
9261 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
9263 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9264 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9265 (find_inc): Likewise.
9266 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9268 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9269 * df-scan.c (df_swap_refs): Remove.
9270 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9271 * dominance.c (link_roots): Use std::swap instead of manually swapping.
9272 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9273 * fold-const.c (fold_relational_const): Likewise.
9274 * genattrtab.c (simplify_test_exp): Likewise.
9275 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9276 gimple_simplify): Likewise.
9277 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9278 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9279 * ipa-devirt.c (add_type_duplicate): Likewise.
9280 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9281 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9282 * lra.c (lra_create_copy): Likewise.
9283 * lto-streamer-out.c (DFS::DFS): Likewise.
9284 * modulo-sched.c (get_sched_window): Likewise.
9285 * omega.c (omega_pretty_print_problem): Likewise.
9286 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9287 * reload1.c (reloads_unique_chain_p): Likewise.
9288 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9289 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9291 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9293 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9294 predicate_mem_writes): Likewise.
9295 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9296 * tree-predcom.c (combine_chains): Likewise.
9297 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9298 refs_may_alias_p_1): Likewise.
9299 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9300 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9301 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9302 number_of_iterations_cond): Likewise.
9303 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9304 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9305 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9306 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9307 * tree-vrp.c (extract_range_from_binary_expr_1,
9308 extract_range_from_unary_expr_1): Likewise.
9310 2015-06-20 Marek Polacek <polacek@redhat.com>
9312 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9314 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
9317 * config/sh/sh.c (prepare_move_operands): Replace subreg
9318 index term with R0 for base and index addressing.
9320 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
9322 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9324 (movsf_aarch64): Change condition from register_operand to
9325 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
9326 load1. Change type for alternative 7 to store1.
9327 (movdf_aarch64): Likewise.
9329 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
9331 * config/vax/vax.md: Adjust sign/zero extend patterns to
9332 handle SUBREGs in operands[1].
9334 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9336 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9337 of manually swapping.
9338 (expand_vec_perm_interleave2): Likewise.
9340 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
9342 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9343 reuse bounds created for abnormal ssa names.
9345 2015-06-19 Jakub Jelinek <jakub@redhat.com>
9347 * config/nvptx/nvptx.md (allocate_stack): Rename to...
9348 (allocate_stack_<mode>): ... this, and add :P on both
9349 match_operand and unspec.
9350 (allocate_stack): New expander.
9352 2015-06-19 Christian Bruel <christian.bruel@st.com>
9356 * config/arm/arm.c (arm_set_current_function): Handle
9357 explicit default options.
9359 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
9361 * config/i386/i386.md (*movsicc_noc_zext): New insn.
9362 (zero-extended cmove with mem peephole2): New pattern.
9363 (cmove with mem peephole2): Merge patterns.
9365 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
9367 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9369 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
9371 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9372 * config/mips/mips.md (*madd4<mode>): Ditto.
9373 (*nmadd3<mode>) Ditto.
9374 (*nmadd4<mode>_fastmath): Ditto.
9375 (*nmadd3<mode>_fastmath): Ditto.
9376 (*nmsub4<mode>): Ditto.
9377 (*nmsub3<mode>): Ditto.
9378 (*nmsub4<mode>_fastmath): Ditto.
9379 (*nmsub3<mode>_fastmath): Ditto.
9381 2015-06-18 Michael Matz <matz@suse.de>
9384 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9385 grouped strided stores.
9386 (vectorizable_load): Don't use the DR from first_stmt in
9387 the non-SLP grouped strided case.
9389 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9392 * function.c (assign_bounds): Add arguments assign_regs,
9393 assign_special, assign_bt.
9394 (assign_parms): For vararg functions handle bounds in BT
9395 and special slots after incoming vararg bounds.
9397 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9400 * cfgexpand.c (expand_return): Handle missing bounds.
9401 (expand_gimple_stmt_1): Likewise.
9402 * tree-chkp.c (chkp_expand_zero_bounds): New.
9403 * tree-chkp.h (chkp_expand_zero_bounds): New.
9405 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9408 * ipa-chkp.c (chkp_maybe_create_clone): Require
9409 functions to be instrumentable.
9410 * tree-chkp.c (chkp_replace_function_pointer): Use
9411 chkp_instrumentable_p instead of attribute check.
9413 2015-06-18 Richard Biener <rguenther@suse.de>
9415 PR tree-optimization/66510
9416 * tree-vect-stmts.c (vectorizable_load): Properly compute the
9417 number of vector loads for SLP permuted loads.
9418 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9419 check the stride for loop vectorization.
9420 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9421 vectorization factor.
9422 (vect_analyze_group_access): If the group size is not a power
9423 of two require a epilogue loop.
9424 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9425 compute and optimizing and alias test pruning after final
9426 vectorization factor computation.
9427 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9429 (vect_transform_slp_perm_load): Properly compute the original
9430 number of vector load stmts.
9432 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
9434 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9435 "unlikely character , in @var" warning.
9437 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
9439 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9440 (ix86_function_arg_advance): Ditto.
9441 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
9443 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9445 * function.h (struct rtl_data): Remove struct and accessor macros.
9446 * emit-rtl.h (struct rtl_data): Relocate to here.
9447 * Makefile.in (GTFILES): Add emit-rtl.h.
9448 * df-core.c: Include emit-rtl.h.
9449 * genattrtab.c: Likewise.
9450 * genconditions.c: Likewise.
9451 * genpreds.c: Likewise.
9452 * genrecog.c: Likewise.
9453 * regcprop.c: Likewise.
9454 * resource.c: Likewise.
9455 * sched-rgn.c: Likewise.
9456 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9457 * config/i386/winnt.c: Likewise.
9459 2015-06-17 Jakub Jelinek <jakub@redhat.com>
9462 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9463 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
9464 and has_force_vectorize_loops flags from cfun into
9466 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9467 if simduid is non-NULL.
9468 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9469 * passes.def (pass_simduid_cleanup): Add new pass after loop
9471 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9472 indirection from htab argument's type.
9473 (shrink_simd_arrays): New function.
9474 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
9475 Don't call adjust_simduid_builtins if there are no loops.
9476 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9477 (pass_simduid_cleanup::execute): New method.
9478 (make_pass_simduid_cleanup): New function.
9480 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
9482 * tree-core.h (tree_target_option): Make opts field a pointer to a
9483 cl_target_option instead of an instance of the struct.
9484 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9486 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9488 (copy_node_stat): Allocate and copy struct cl_target_option.
9490 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9492 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9493 Remove conditional exposure of prototypes.
9494 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9495 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
9496 definitions in tree.h with functions.
9497 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9499 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9501 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
9503 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9504 (*cmp<mode>_signed): ... this.
9505 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9506 (*cmp<mode>_unsigned): ... this. Remove %b.
9508 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
9510 * coretypes.h: Include input.h and as-a.h.
9511 * rtl.h: Include input.h and as-a.h for generator files.
9512 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9513 * vec.c: Don't include diagnostic-core.h.
9514 * alias.c: Do not include input.h, line-map.h or is-a.h.
9516 * attribs.c: Likewise.
9517 * auto-inc-dec.c: Likewise.
9518 * auto-profile.c: Likewise.
9519 * bb-reorder.c: Likewise.
9520 * bt-load.c: Likewise.
9521 * builtins.c: Likewise.
9522 * caller-save.c: Likewise.
9523 * calls.c: Likewise.
9526 * cfganal.c: Likewise.
9527 * cfgbuild.c: Likewise.
9528 * cfgcleanup.c: Likewise.
9529 * cfgexpand.c: Likewise.
9530 * cfghooks.c: Likewise.
9531 * cfgloop.c: Likewise.
9532 * cfgloop.h: Likewise.
9533 * cfgloopanal.c: Likewise.
9534 * cfgloopmanip.c: Likewise.
9535 * cfgrtl.c: Likewise.
9536 * cgraph.c: Likewise.
9537 * cgraphbuild.c: Likewise.
9538 * cgraphclones.c: Likewise.
9539 * cgraphunit.c: Likewise.
9540 * cilk-common.c: Likewise.
9541 * combine-stack-adj.c: Likewise.
9542 * combine.c: Likewise.
9543 * compare-elim.c: Likewise.
9544 * convert.c: Likewise.
9545 * coverage.c: Likewise.
9546 * cppbuiltin.c: Likewise.
9547 * cprop.c: Likewise.
9549 * cselib.c: Likewise.
9550 * data-streamer-in.c: Likewise.
9551 * data-streamer-out.c: Likewise.
9552 * data-streamer.c: Likewise.
9553 * dbxout.c: Likewise.
9556 * debug.c: Likewise.
9557 * df-core.c: Likewise.
9558 * df-problems.c: Likewise.
9559 * df-scan.c: Likewise.
9562 * diagnostic-core.h: Likewise.
9563 * diagnostic.c: Likewise.
9564 * dojump.c: Likewise.
9565 * dominance.c: Likewise.
9566 * domwalk.c: Likewise.
9567 * double-int.c: Likewise.
9569 * dumpfile.c: Likewise.
9570 * dumpfile.h: Likewise.
9571 * dwarf2asm.c: Likewise.
9572 * dwarf2cfi.c: Likewise.
9573 * dwarf2out.c: Likewise.
9574 * emit-rtl.c: Likewise.
9575 * et-forest.c: Likewise.
9576 * except.c: Likewise.
9577 * explow.c: Likewise.
9578 * expmed.c: Likewise.
9580 * final.c: Likewise.
9581 * fixed-value.c: Likewise.
9582 * fold-const.c: Likewise.
9583 * function.c: Likewise.
9584 * fwprop.c: Likewise.
9585 * gcc-plugin.h: Likewise.
9587 * generic-match-head.c: Likewise.
9588 * ggc-page.c: Likewise.
9589 * gimple-builder.c: Likewise.
9590 * gimple-expr.c: Likewise.
9591 * gimple-fold.c: Likewise.
9592 * gimple-iterator.c: Likewise.
9593 * gimple-low.c: Likewise.
9594 * gimple-match-head.c: Likewise.
9595 * gimple-pretty-print.c: Likewise.
9596 * gimple-ssa-isolate-paths.c: Likewise.
9597 * gimple-ssa-strength-reduction.c: Likewise.
9598 * gimple-streamer-in.c: Likewise.
9599 * gimple-streamer-out.c: Likewise.
9600 * gimple-streamer.h: Likewise.
9601 * gimple-walk.c: Likewise.
9602 * gimple.c: Likewise.
9603 * gimplify-me.c: Likewise.
9604 * gimplify.c: Likewise.
9605 * godump.c: Likewise.
9606 * graph.c: Likewise.
9607 * graphite-blocking.c: Likewise.
9608 * graphite-dependences.c: Likewise.
9609 * graphite-interchange.c: Likewise.
9610 * graphite-isl-ast-to-gimple.c: Likewise.
9611 * graphite-optimize-isl.c: Likewise.
9612 * graphite-poly.c: Likewise.
9613 * graphite-scop-detection.c: Likewise.
9614 * graphite-sese-to-poly.c: Likewise.
9615 * graphite.c: Likewise.
9616 * haifa-sched.c: Likewise.
9617 * hw-doloop.c: Likewise.
9618 * ifcvt.c: Likewise.
9619 * init-regs.c: Likewise.
9620 * input.c: Likewise.
9621 * internal-fn.c: Likewise.
9622 * ipa-chkp.c: Likewise.
9623 * ipa-comdats.c: Likewise.
9624 * ipa-cp.c: Likewise.
9625 * ipa-devirt.c: Likewise.
9626 * ipa-icf-gimple.c: Likewise.
9627 * ipa-icf.c: Likewise.
9628 * ipa-inline-analysis.c: Likewise.
9629 * ipa-inline-transform.c: Likewise.
9630 * ipa-inline.c: Likewise.
9631 * ipa-polymorphic-call.c: Likewise.
9632 * ipa-profile.c: Likewise.
9633 * ipa-prop.c: Likewise.
9634 * ipa-pure-const.c: Likewise.
9635 * ipa-ref.c: Likewise.
9636 * ipa-reference.c: Likewise.
9637 * ipa-split.c: Likewise.
9638 * ipa-utils.c: Likewise.
9639 * ipa-visibility.c: Likewise.
9641 * ira-build.c: Likewise.
9642 * ira-color.c: Likewise.
9643 * ira-conflicts.c: Likewise.
9644 * ira-costs.c: Likewise.
9645 * ira-emit.c: Likewise.
9646 * ira-lives.c: Likewise.
9649 * langhooks.c: Likewise.
9651 * loop-doloop.c: Likewise.
9652 * loop-init.c: Likewise.
9653 * loop-invariant.c: Likewise.
9654 * loop-iv.c: Likewise.
9655 * loop-unroll.c: Likewise.
9656 * lower-subreg.c: Likewise.
9657 * lra-assigns.c: Likewise.
9658 * lra-coalesce.c: Likewise.
9659 * lra-constraints.c: Likewise.
9660 * lra-eliminations.c: Likewise.
9661 * lra-lives.c: Likewise.
9662 * lra-remat.c: Likewise.
9663 * lra-spills.c: Likewise.
9665 * lto-cgraph.c: Likewise.
9666 * lto-compress.c: Likewise.
9667 * lto-opts.c: Likewise.
9668 * lto-section-in.c: Likewise.
9669 * lto-section-out.c: Likewise.
9670 * lto-streamer-in.c: Likewise.
9671 * lto-streamer-out.c: Likewise.
9672 * lto-streamer.c: Likewise.
9674 * mode-switching.c: Likewise.
9675 * modulo-sched.c: Likewise.
9676 * omega.c: Likewise.
9677 * omp-low.c: Likewise.
9678 * optabs.c: Likewise.
9679 * opts-global.c: Likewise.
9681 * passes.c: Likewise.
9682 * plugin.c: Likewise.
9683 * postreload-gcse.c: Likewise.
9684 * postreload.c: Likewise.
9685 * predict.c: Likewise.
9686 * pretty-print.h: Likewise.
9687 * print-rtl.c: Likewise.
9688 * print-tree.c: Likewise.
9689 * profile.c: Likewise.
9691 * realmpfr.c: Likewise.
9692 * recog.c: Likewise.
9694 * reg-stack.c: Likewise.
9695 * regcprop.c: Likewise.
9696 * reginfo.c: Likewise.
9697 * regrename.c: Likewise.
9698 * regstat.c: Likewise.
9699 * reload.c: Likewise.
9700 * reload1.c: Likewise.
9701 * reorg.c: Likewise.
9702 * resource.c: Likewise.
9703 * rtl-chkp.c: Likewise.
9704 * rtl-error.c: Likewise.
9705 * rtlanal.c: Likewise.
9706 * rtlhooks.c: Likewise.
9707 * sanopt.c: Likewise.
9708 * sched-deps.c: Likewise.
9709 * sched-ebb.c: Likewise.
9710 * sched-rgn.c: Likewise.
9711 * sched-vis.c: Likewise.
9712 * sdbout.c: Likewise.
9713 * sel-sched-dump.c: Likewise.
9714 * sel-sched-ir.c: Likewise.
9715 * sel-sched.c: Likewise.
9717 * shrink-wrap.c: Likewise.
9718 * simplify-rtx.c: Likewise.
9719 * stack-ptr-mod.c: Likewise.
9720 * statistics.c: Likewise.
9722 * stor-layout.c: Likewise.
9723 * store-motion.c: Likewise.
9724 * streamer-hooks.c: Likewise.
9725 * stringpool.c: Likewise.
9726 * symtab.c: Likewise.
9727 * target-globals.c: Likewise.
9728 * targhooks.c: Likewise.
9729 * toplev.c: Likewise.
9730 * tracer.c: Likewise.
9731 * trans-mem.c: Likewise.
9732 * tree-affine.c: Likewise.
9733 * tree-browser.c: Likewise.
9734 * tree-call-cdce.c: Likewise.
9735 * tree-cfg.c: Likewise.
9736 * tree-cfgcleanup.c: Likewise.
9737 * tree-chkp-opt.c: Likewise.
9738 * tree-chkp.c: Likewise.
9739 * tree-chrec.c: Likewise.
9740 * tree-complex.c: Likewise.
9741 * tree-data-ref.c: Likewise.
9742 * tree-dfa.c: Likewise.
9743 * tree-diagnostic.c: Likewise.
9744 * tree-dump.c: Likewise.
9745 * tree-eh.c: Likewise.
9746 * tree-emutls.c: Likewise.
9747 * tree-if-conv.c: Likewise.
9748 * tree-inline.c: Likewise.
9749 * tree-into-ssa.c: Likewise.
9750 * tree-iterator.c: Likewise.
9751 * tree-loop-distribution.c: Likewise.
9752 * tree-nested.c: Likewise.
9753 * tree-nrv.c: Likewise.
9754 * tree-object-size.c: Likewise.
9755 * tree-outof-ssa.c: Likewise.
9756 * tree-parloops.c: Likewise.
9757 * tree-phinodes.c: Likewise.
9758 * tree-predcom.c: Likewise.
9759 * tree-pretty-print.c: Likewise.
9760 * tree-profile.c: Likewise.
9761 * tree-scalar-evolution.c: Likewise.
9762 * tree-sra.c: Likewise.
9763 * tree-ssa-address.c: Likewise.
9764 * tree-ssa-alias.c: Likewise.
9765 * tree-ssa-ccp.c: Likewise.
9766 * tree-ssa-coalesce.c: Likewise.
9767 * tree-ssa-copy.c: Likewise.
9768 * tree-ssa-copyrename.c: Likewise.
9769 * tree-ssa-dce.c: Likewise.
9770 * tree-ssa-dom.c: Likewise.
9771 * tree-ssa-dse.c: Likewise.
9772 * tree-ssa-forwprop.c: Likewise.
9773 * tree-ssa-ifcombine.c: Likewise.
9774 * tree-ssa-live.c: Likewise.
9775 * tree-ssa-loop-ch.c: Likewise.
9776 * tree-ssa-loop-im.c: Likewise.
9777 * tree-ssa-loop-ivcanon.c: Likewise.
9778 * tree-ssa-loop-ivopts.c: Likewise.
9779 * tree-ssa-loop-manip.c: Likewise.
9780 * tree-ssa-loop-niter.c: Likewise.
9781 * tree-ssa-loop-prefetch.c: Likewise.
9782 * tree-ssa-loop-unswitch.c: Likewise.
9783 * tree-ssa-loop.c: Likewise.
9784 * tree-ssa-math-opts.c: Likewise.
9785 * tree-ssa-operands.c: Likewise.
9786 * tree-ssa-phiopt.c: Likewise.
9787 * tree-ssa-phiprop.c: Likewise.
9788 * tree-ssa-pre.c: Likewise.
9789 * tree-ssa-propagate.c: Likewise.
9790 * tree-ssa-reassoc.c: Likewise.
9791 * tree-ssa-sccvn.c: Likewise.
9792 * tree-ssa-scopedtables.c: Likewise.
9793 * tree-ssa-sink.c: Likewise.
9794 * tree-ssa-strlen.c: Likewise.
9795 * tree-ssa-structalias.c: Likewise.
9796 * tree-ssa-tail-merge.c: Likewise.
9797 * tree-ssa-ter.c: Likewise.
9798 * tree-ssa-threadedge.c: Likewise.
9799 * tree-ssa-threadupdate.c: Likewise.
9800 * tree-ssa-uncprop.c: Likewise.
9801 * tree-ssa-uninit.c: Likewise.
9802 * tree-ssa.c: Likewise.
9803 * tree-ssanames.c: Likewise.
9804 * tree-stdarg.c: Likewise.
9805 * tree-streamer-in.c: Likewise.
9806 * tree-streamer-out.c: Likewise.
9807 * tree-streamer.c: Likewise.
9808 * tree-switch-conversion.c: Likewise.
9809 * tree-tailcall.c: Likewise.
9810 * tree-vect-data-refs.c: Likewise.
9811 * tree-vect-generic.c: Likewise.
9812 * tree-vect-loop-manip.c: Likewise.
9813 * tree-vect-loop.c: Likewise.
9814 * tree-vect-patterns.c: Likewise.
9815 * tree-vect-slp.c: Likewise.
9816 * tree-vect-stmts.c: Likewise.
9817 * tree-vectorizer.c: Likewise.
9818 * tree-vrp.c: Likewise.
9821 * ubsan.c: Likewise.
9822 * valtrack.c: Likewise.
9823 * value-prof.c: Likewise.
9824 * var-tracking.c: Likewise.
9825 * varasm.c: Likewise.
9826 * varpool.c: Likewise.
9827 * vmsdbgout.c: Likewise.
9828 * vtable-verify.c: Likewise.
9830 * wide-int.cc: Likewise.
9831 * xcoffout.c: Likewise.
9832 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
9833 * common/common-targhooks.c: Likewise.
9834 * config/aarch64/aarch64-builtins.c: Likewise.
9835 * config/aarch64/aarch64.c: Likewise.
9836 * config/alpha/alpha.c: Likewise.
9837 * config/arc/arc.c: Likewise.
9838 * config/arm/aarch-common.c: Likewise.
9839 * config/arm/arm-builtins.c: Likewise.
9840 * config/arm/arm-c.c: Likewise.
9841 * config/arm/arm.c: Likewise.
9842 * config/avr/avr-c.c: Likewise.
9843 * config/avr/avr-log.c: Likewise.
9844 * config/avr/avr.c: Likewise.
9845 * config/bfin/bfin.c: Likewise.
9846 * config/c6x/c6x.c: Likewise.
9847 * config/cr16/cr16.c: Likewise.
9848 * config/cris/cris.c: Likewise.
9849 * config/darwin-c.c: Likewise.
9850 * config/darwin.c: Likewise.
9851 * config/default-c.c: Likewise.
9852 * config/epiphany/epiphany.c: Likewise.
9853 * config/epiphany/mode-switch-use.c: Likewise.
9854 * config/epiphany/resolve-sw-modes.c: Likewise.
9855 * config/fr30/fr30.c: Likewise.
9856 * config/frv/frv.c: Likewise.
9857 * config/ft32/ft32.c: Likewise.
9858 * config/glibc-c.c: Likewise.
9859 * config/h8300/h8300.c: Likewise.
9860 * config/i386/i386-c.c: Likewise.
9861 * config/i386/i386.c: Likewise.
9862 * config/i386/msformat-c.c: Likewise.
9863 * config/i386/winnt-cxx.c: Likewise.
9864 * config/i386/winnt-stubs.c: Likewise.
9865 * config/i386/winnt.c: Likewise.
9866 * config/ia64/ia64-c.c: Likewise.
9867 * config/ia64/ia64.c: Likewise.
9868 * config/iq2000/iq2000.c: Likewise.
9869 * config/lm32/lm32.c: Likewise.
9870 * config/m32c/m32c-pragma.c: Likewise.
9871 * config/m32c/m32c.c: Likewise.
9872 * config/m32r/m32r.c: Likewise.
9873 * config/m68k/m68k.c: Likewise.
9874 * config/mcore/mcore.c: Likewise.
9875 * config/mep/mep-pragma.c: Likewise.
9876 * config/mep/mep.c: Likewise.
9877 * config/microblaze/microblaze-c.c: Likewise.
9878 * config/microblaze/microblaze.c: Likewise.
9879 * config/mips/mips.c: Likewise.
9880 * config/mmix/mmix.c: Likewise.
9881 * config/mn10300/mn10300.c: Likewise.
9882 * config/moxie/moxie.c: Likewise.
9883 * config/msp430/msp430-c.c: Likewise.
9884 * config/msp430/msp430.c: Likewise.
9885 * config/nds32/nds32-cost.c: Likewise.
9886 * config/nds32/nds32-fp-as-gp.c: Likewise.
9887 * config/nds32/nds32-intrinsic.c: Likewise.
9888 * config/nds32/nds32-isr.c: Likewise.
9889 * config/nds32/nds32-md-auxiliary.c: Likewise.
9890 * config/nds32/nds32-memory-manipulation.c: Likewise.
9891 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9892 * config/nds32/nds32-predicates.c: Likewise.
9893 * config/nds32/nds32.c: Likewise.
9894 * config/nios2/nios2.c: Likewise.
9895 * config/nvptx/nvptx.c: Likewise.
9896 * config/pa/pa.c: Likewise.
9897 * config/pdp11/pdp11.c: Likewise.
9898 * config/rl78/rl78-c.c: Likewise.
9899 * config/rl78/rl78.c: Likewise.
9900 * config/rs6000/rs6000-c.c: Likewise.
9901 * config/rs6000/rs6000.c: Likewise.
9902 * config/rx/rx.c: Likewise.
9903 * config/s390/s390-c.c: Likewise.
9904 * config/s390/s390.c: Likewise.
9905 * config/sh/sh-c.c: Likewise.
9906 * config/sh/sh-mem.cc: Likewise.
9907 * config/sh/sh.c: Likewise.
9908 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9909 * config/sh/sh_treg_combine.cc: Likewise.
9910 * config/sol2-c.c: Likewise.
9911 * config/sol2-cxx.c: Likewise.
9912 * config/sol2-stubs.c: Likewise.
9913 * config/sol2.c: Likewise.
9914 * config/sparc/sparc-c.c: Likewise.
9915 * config/sparc/sparc.c: Likewise.
9916 * config/spu/spu-c.c: Likewise.
9917 * config/spu/spu.c: Likewise.
9918 * config/stormy16/stormy16.c: Likewise.
9919 * config/tilegx/mul-tables.c: Likewise.
9920 * config/tilegx/tilegx-c.c: Likewise.
9921 * config/tilegx/tilegx.c: Likewise.
9922 * config/tilepro/mul-tables.c: Likewise.
9923 * config/tilepro/tilepro-c.c: Likewise.
9924 * config/tilepro/tilepro.c: Likewise.
9925 * config/v850/v850-c.c: Likewise.
9926 * config/v850/v850.c: Likewise.
9927 * config/vax/vax.c: Likewise.
9928 * config/visium/visium.c: Likewise.
9929 * config/vms/vms-c.c: Likewise.
9930 * config/vms/vms.c: Likewise.
9931 * config/vxworks.c: Likewise.
9932 * config/winnt-c.c: Likewise.
9933 * config/xtensa/xtensa.c: Likewise.
9935 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
9937 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
9939 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
9941 2015-06-17 Richard Biener <rguenther@suse.de>
9943 PR tree-optimization/66251
9944 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
9945 stmts for SLP strided stores.
9948 2015-05-22 Richard Biener <rguenther@suse.de>
9950 PR tree-optimization/66251
9951 * tree-vect-stmts.c (vectorizable_conversion): Properly
9952 set STMT_VINFO_VEC_STMT even for the SLP case.
9954 2015-05-26 Michael Matz <matz@suse.de>
9957 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
9958 STMT_VINFO_VEC_STMT, also with SLP.
9960 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
9963 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
9964 (*avx_addsubv4df3_1s): Ditto.
9965 (*sse3_addsubv2df3_1): Ditto.
9966 (*sse3_addsubv2df3_1s): Ditto.
9967 (*avx_addsubv8sf3_1): Ditto.
9968 (*avx_addsubv8sf3_1s): Ditto.
9969 (*sse3_addsubv4sf3_1): Ditto.
9970 (*sse3_addsubv4sf3_1s): Ditto.
9972 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
9974 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
9975 (SYSROOT_SUFFIX_SPEC): Update.
9976 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
9977 (STARTFILE_PREFIX_SPEC): Update.
9978 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
9979 (MULTILIB_REQUIRED): New.
9980 (MULTILIB_OSDIRNAMES): New.
9981 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
9982 (MULTILIB_REQUIRED): New.
9983 (MULTILIB_OSDIRNAMES): New.
9985 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
9987 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
9988 * config/aarch64/aarch64-options-extensions.def: Update "fP",
9989 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
9990 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
9991 (AARCH64_FL_PAN): New.
9992 (AARCH64_FL_LOR): New.
9993 (AARCH64_FL_RDMA): New.
9994 (AARCH64_FL_FOR_ARCH8_1): New.
9995 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
9996 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
9998 2015-06-16 Martin Liska <mliska@suse.cz>
10000 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10001 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10004 2015-06-16 Richard Biener <rguenther@suse.de>
10006 * tree-vect-stmts.c (vectorizable_store): Adjust.
10007 (vectorizable_load): Likewise.
10008 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10010 (vect_create_data_ref_ptr): Likewise.
10011 (bump_vector_ptr): Adjust.
10013 2015-06-16 Richard Biener <rguenther@suse.de>
10015 * tree-vect-stmts.c (vectorizable_load): Properly start loads
10016 with the first element if this is grouped loads.
10018 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
10020 * config/arm/arm-protos.h (struct tune_params): Rename
10021 log_op_non_sc to log_op_non_short_circuit, and rename enum
10022 values to expand SC to SHORT_CIRCUIT.
10023 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10024 to LOG_OP_NON_SHORT_CIRCUIT.
10025 (arm_fastmul_tune):Likewise
10026 (arm_strongarm_tune): Likewise.
10027 (arm_xscale_tune): Likewise.
10028 (arm_9e_tune): Likewise.
10029 (arm_marvell_pj4_tune): Likewise.
10030 (arm_v6t2_tune): Likewise.
10031 (arm_cortex_tune): Likewise.
10032 (arm_cortex_a8_tune): Likewise.
10033 (arm_cortex_a7_tune): Likewise.
10034 (arm_cortex_a15_tune): Likewise.
10035 (arm_cortex_a53_tune): Likewise.
10036 (arm_cortex_a57_tune): Likewise.
10037 (arm_xgene1_tune): Likewise.
10038 (arm_cortex_a5_tune): Likewise.
10039 (arm_cortex_a9_tune): Likewise.
10040 (arm_cortex_a12_tune): Likewise.
10041 (arm_v7m_tune): Likewise.
10042 (arm_cortex_m7_tune): Likewise.
10043 (arm_v6m_tune): Likewise.
10044 (arm_fa726te_tune): Likewise.
10046 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
10048 * altivec.md: Delete UNSPEC_VMLADDUHM.
10049 (mulv4si3_p8): New pattern.
10050 (mulv4si3): Use it for POWER8.
10051 (mulv8hi3): Use vmladduhm with zero addend.
10052 (altivec_vmladduhm): Descriptive RTL.
10054 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
10056 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10057 to use neon_move instead of mov_imm.
10058 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10059 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10061 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10062 aarch64_float_const_zero_rtx_p check before TFmode check.
10063 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10065 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
10066 code and attributes to match. Change condition from register_operand
10067 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
10068 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
10071 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
10074 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10075 there is no parent.
10077 2015-06-14 Shiva Chen <shiva0217@gmail.com>
10079 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10080 HOST_WIDE_INT parameter.
10082 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
10085 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10086 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10088 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10090 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
10092 * rtl.h (classify_insn): Declare.
10093 * emit-rtl.c (classify_insn): Move to...
10094 * rtl.c: ...here and add generator support.
10095 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10096 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10097 * genemit.c (gen_emit_seq): New function.
10098 (gen_expand, gen_split): Use it.
10100 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
10102 * tree.c (make_vector_stat): Fix comment to state that the
10103 function returns a VECTOR_CST.
10105 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
10107 * gensupport.h (add_implicit_parallel): Declare.
10108 * genrecog.c (add_implicit_parallel): Move to...
10109 * gensupport.c (add_implicit_parallel): ...here.
10110 (process_one_cond_exec): Use it.
10111 * genemit.c (gen_insn): Likewise.
10113 2015-06-13 Iain Sandoe <iain@codesourcery.com>
10116 * passes.c (rest_of_decl_compilation): Do not register globals for
10117 early debug if they are declared in built-ins.
10119 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
10121 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10123 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10125 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10127 (noce_try_cmove_arith): Likewise.
10128 (noce_get_alt_condition): Likewise.
10130 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10132 * common/config/i386/i386-common.c
10133 (OPTION_MASK_ISA_MWAITX_SET): New.
10134 (ix86_handle_option): Handle mwaitx.
10135 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10136 (x86_64-*-*): Likewise.
10137 * config/i386/mwaitxintrin.h: New header.
10138 * config/i386/cpuid.h (bit_MWAITX): Define.
10139 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10141 * config/i386/i386.opt (mwaitx): New.
10142 * config/i386/i386-builtin-types.def
10143 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10144 * config/i386/i386-c.c: Define __MWAITX__ if needed.
10145 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10147 (ix86_option_override_internal): Handle new option.
10148 (processor_alias_table): Added PTA_MWAITX.
10149 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10150 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10151 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10152 IX86_BUILTIN_MONITORX built-ins.
10153 * config/i386/i386.h (TARGET_MWAITX): New.
10154 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10156 (mwaitx): New pattern.
10157 (monitorx_<mode>): New pattern.
10158 * config/i386/x86intrin.h: Include mwaitxintrin.h.
10159 * doc/extend.texi: Document monitorx and mwaitx builtins.
10160 * doc/invoke.texi: Document -mmwaitx option.
10162 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
10164 * emit-rtl.c (need_atomic_barrier_p): Mask model with
10165 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
10167 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
10169 * dbxout.c (xcoff_debug_hooks): Provide a function for
10170 register_main_translation_unit hook.
10172 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
10174 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10175 variants cases from switch.
10176 (rs6000_post_atomic_barrier): Same.
10177 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10178 (rs6000_expand_atomic_exchange): Same.
10179 (rs6000_expand_atomic_op): Same.
10180 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10181 SYNC variants cases from switch.
10182 (atomic_load): Same.
10183 (atomic_store): Same.
10185 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
10187 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10188 CONST_INT for goto.
10190 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
10193 * dwarf2out.c (check_die): Check for common duplicate attributes.
10194 (add_location_or_const_value_attribute): Do not add duplicate
10196 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10198 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10199 (gen_type_die_with_usage): Call check_die.
10200 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10202 2015-06-11 Jason Merrill <jason@redhat.com>
10204 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10207 2015-06-11 Marek Polacek <polacek@redhat.com>
10209 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10211 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
10214 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10215 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10216 (*addx_extend_sp32): Fix pasto.
10217 (*subx_extend): Rename into...
10218 (*subx_extend_sp32): ...this.
10219 (*adddi3_extend_sp32): Add earlyclobber.
10220 (*subdi3_insn_sp32): Likewise.
10221 (*subdi3_extend_sp32): Likewise.
10222 (*and_not_di_sp32): Likewise.
10223 (*or_not_di_sp32): Likewise.
10224 (*xor_not_di_sp32): Likewise.
10225 (*negdi2_sp32): Likewise.
10226 (*one_cmpldi2_sp32): Likewise.
10228 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
10230 * debug.h (struct gcc_debug_hooks): Add a
10231 register_main_translation_unit hook.
10232 * debug.c (do_nothing_debug_hooks): Provide a function for this
10234 * dbxout.c (dbx_debug_hooks): Likewise.
10235 * sdbout.c (sdb_debug_hooks): Likewise.
10236 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10237 * dwarf2out.c (main_translation_unit): New global variable.
10238 (dwarf2out_register_main_translation_unit): New function
10239 implementing the new hook.
10240 (dwarf2_debug_hooks): Assign
10241 dwarf2out_register_main_translation_unit to this new hook.
10242 (dwarf2out_init): Associate any main translation unit to
10245 2015-06-11 Marek Polacek <polacek@redhat.com>
10247 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10249 2015-06-11 Marek Polacek <polacek@redhat.com>
10251 * match.pd: Use single_use throughout.
10253 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10255 * config/arm/arm.c (arm_option_params_internal): When optimising
10256 for speed set max_insns_skipped when arm_restrict_it.
10258 2015-06-11 Christian Bruel <christian.bruel@st.com>
10261 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10263 (arm_cpu_builtins): New function.
10264 (arm_pragma_target_parse): Call arm_cpu_builtins.
10265 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10266 (arm_register_target_pragmas): Likewise.
10267 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10268 Call arm_register_target_pragmas.
10269 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10270 (arm_pragma_target_parse): Likewise.
10272 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
10274 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10275 of the second operand.
10277 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
10280 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10281 to prepare mask operand for AVX512 modes.
10283 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
10286 * doc/md.texi (Machine Constraints): Document that on the PowerPC
10287 if you use a constraint that targets a VSX register, you must use
10288 %x<n> in the template.
10290 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
10292 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10293 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10294 (define_insn "trap"): New definition.
10296 2015-06-10 Richard Biener <rguenther@suse.de>
10298 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10300 (vect_supported_load_permutation_p): ... here. Handle
10301 supportable permutations in reductions.
10302 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10303 for vectorizing strided group loads.
10305 2015-06-10 Jakub Jelinek <jakub@redhat.com>
10308 * config/i386/i386.c (ix86_split_long_move): For collisions
10309 involving direct tls segment refs, move the UNSPEC_TP possibly
10310 wrapped in ZERO_EXTEND out of the address for lea, to each of
10313 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10315 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10316 dmb sy. Adjust tabs.
10318 2015-06-10 Tom de Vries <tom@codesourcery.com>
10320 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10322 2015-06-10 Martin Liska <mliska@suse.cz>
10325 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10326 all enum values in mem_alloc_origin.
10327 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10329 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10330 * bitmap.c (bitmap_register): Likewise.
10331 (dump_bitmap_statistics): Likewise.
10332 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10333 (ggc_record_overhead): Likewise.
10334 * hash-map.h: Likewise.
10335 * hash-set.h: Likewise.
10336 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10337 * hash-table.h: Likewise.
10338 * vec.c (vec_prefix::register_overhead): Likewise.
10339 (vec_prefix::release_overhead): Likewise.
10340 (dump_vec_loc_statistics): Likewise.
10342 2015-06-09 Christian Bruel <christian.bruel@st.com>
10345 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10346 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10347 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10348 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10349 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10350 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10351 (arm_valid_target_attribute_p): Likewise.
10352 (arm_set_current_function, arm_can_inline_p): Likewise.
10353 (arm_valid_target_attribute_rec): Likewise.
10354 (arm_previous_fndecl): New variable.
10355 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10356 (TARGET_CAN_INLINE_P): Define.
10357 (arm_asm_trampoline_template): Emit mode.
10358 (arm_file_start): Don't set unified syntax.
10359 (arm_declare_function_name): Set unified syntax and mode.
10360 (arm_option_override): Init target_option_default_node.
10361 and target_option_current_node.
10362 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10363 (*call_symbol): Likewise.
10364 * doc/extend.texi: Document ARM/Thumb target attribute.
10365 * doc/invoke.texi: Likewise.
10367 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10370 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10371 PR rtl-optimization/64164
10372 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10373 * tree-ssa-copyrename.c: Removed.
10374 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10375 -ftree-coalesce-vars.
10376 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10377 * common.opt (ftree-copyrename): Ignore.
10378 (ftree-coalesce-inlined-vars): Likewise.
10379 * doc/invoke.texi: Remove the ignored options above.
10380 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10381 * tree-ssa-coalesce.h: ... here.
10382 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10383 headers required by it.
10384 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10385 across variables when flag_tree_coalesce_vars. Check register
10386 use and promoted modes to allow coalescing. Moved to
10387 tree-ssa-coalesce.c.
10388 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10389 with its member functions to tree-ssa-coalesce.c.
10390 (var_map_base_init): Likewise. Renamed to
10391 compute_samebase_partition_bases.
10392 (partition_view_normal): Drop want_bases parameter.
10393 (partition_view_bitmap): Likewise.
10394 * tree-ssa-live.h: Adjust declarations.
10395 * tree-ssa-coalesce.c: Include explow.h.
10396 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10397 default defs at the entry point.
10398 (dump_part_var_map): New.
10399 (compute_optimized_partition_bases): New, called by...
10400 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10401 of compute_samebase_partition_bases. Adjust.
10402 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10403 * cfgexpand.c (leader_merge): New.
10404 (get_rtl_for_parm_ssa_default_def): New.
10405 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10406 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10407 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10408 redundant MEM attr setting.
10409 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10411 (expand_one_stack_var): ... this. New wrapper to check and
10412 skip already expanded SSA partitions.
10413 (record_alignment_for_reg_var): New, factored out of...
10414 (expand_one_var): ... this.
10415 (expand_one_ssa_partition): New.
10416 (adjust_one_expanded_partition_var): New.
10417 (expand_one_register_var): Check and skip already expanded SSA
10419 (expand_used_vars): Don't create DECLs for anonymous SSA
10420 names. Expand all SSA partitions, then adjust all SSA names.
10421 (pass::execute): Replace the loops that set
10422 SA.partition_to_pseudo from partition leaders and cleared
10423 DECL_RTL for multi-location variables, and that which used to
10424 rename vars and set attrs, with one that clears DECL_RTL and
10425 checks that PARMs and RESULTs default_defs match DECL_RTL.
10426 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10427 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10428 * explow.c (promote_ssa_mode): New.
10429 * explow.h (promote_ssa_mode): Declare.
10430 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10431 * function.c: Include cfgexpand.h.
10432 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10433 (use_register_for_parm_decl): Wrapper for the above to
10434 special-case the result_ptr.
10435 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10436 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10437 multiple locations.
10438 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10439 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10440 (assign_parm_setup_block): Prefer SSA-assigned location.
10441 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10442 if stack_parm is NULL.
10443 (assign_parm_setup_stack): Prefer SSA-assigned location.
10444 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10445 rtl before testing for pointer bounds. Special-case result_ptr.
10446 (expand_function_start): Maybe reset DECL_RTL of result.
10447 Prefer SSA-assigned location for result and static chain.
10448 Factor out DECL_RESULT and SET_DECL_RTL.
10449 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10450 anonymous SSA names. Use promote_ssa_mode.
10451 (get_temp_reg): Likewise.
10452 (remove_ssa_form): Adjust.
10453 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10454 and get its reg_usage for reg invalidation.
10455 (compute_bb_dataflow): Pass it insn.
10456 (emit_notes_in_bb): Likewise.
10457 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10458 fail assert on conversion between unsigned types.
10460 2015-06-09 Tom de Vries <tom@codesourcery.com>
10462 PR tree-optimization/65460
10463 * omp-low.c (expand_omp_target): Set parallelized_function on
10464 cgraph_node for child_fn.
10466 2015-06-09 Tom de Vries <tom@codesourcery.com>
10468 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10469 parallelized_function before add_new_function.
10471 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
10473 * gcc-plugin.h: Move decls to plugin.h and include it.
10474 * plugin.h: Relocate decls from gcc-plugin.h
10475 * ggc-page.c: Include required header files.
10476 * passes.c: Likewise.
10477 * cgraphunit.c: Likewise.
10479 2015-06-09 Tom de Vries <tom@codesourcery.com>
10481 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10483 2015-06-09 Jason Merrill <jason@redhat.com>
10486 * toplev.c (check_global_declaration): Don't warn about a clone.
10488 2015-06-09 Marek Polacek <polacek@redhat.com>
10490 PR tree-optimization/66299
10491 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10492 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10495 2015-06-09 Richard Biener <rguenther@suse.de>
10497 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10498 (vect_analyze_slp_instance): Instead do not falsely drop
10501 2015-06-09 Richard Biener <rguenther@suse.de>
10503 PR middle-end/66423
10504 * match.pd: Handle A % (unsigned)(1 << B).
10506 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
10508 * varasm.c (output_object_block_htab): Remove.
10509 (output_object_block_compare): New.
10510 (output_object_blocks): Sort named object_blocks before outputting
10513 2015-06-09 Richard Biener <rguenther@suse.de>
10515 PR tree-optimization/66419
10516 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10517 consider GROUP_GAP when detecting a perfect subchain.
10519 2015-06-09 Nick Clifton <nickc@redhat.com>
10521 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
10522 place read only data in the .frodata section.
10524 2015-06-09 Shiva Chen <shiva0217@gmail.com>
10526 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
10527 (atomic_store<mode>): Likewise.
10529 2015-06-09 Richard Biener <rguenther@suse.de>
10531 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
10533 2015-06-09 Richard Biener <rguenther@suse.de>
10535 PR middle-end/66413
10536 * tree-inline.c (insert_init_debug_bind): Unshare value.
10538 2015-06-09 Richard Biener <rguenther@suse.de>
10540 PR tree-optimization/66396
10541 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
10542 Rename virtual operands.
10544 2015-06-09 Tom de Vries <tom@codesourcery.com>
10546 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
10547 always return false.
10549 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10551 PR rtl-optimization/64164
10552 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10553 * tree-ssa-copyrename.c: Removed.
10554 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10555 -ftree-coalesce-vars.
10556 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10557 * common.opt (ftree-copyrename): Ignore.
10558 (ftree-coalesce-inlined-vars): Likewise.
10559 * doc/invoke.texi: Remove the ignored options above.
10560 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10561 * tree-ssa-coalesce.h: ... here.
10562 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10563 headers required by it.
10564 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10565 across variables when flag_tree_coalesce_vars. Check register
10566 use and promoted modes to allow coalescing. Moved to
10567 tree-ssa-coalesce.c.
10568 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10569 with its member functions to tree-ssa-coalesce.c.
10570 (var_map_base_init): Likewise. Renamed to
10571 compute_samebase_partition_bases.
10572 (partition_view_normal): Drop want_bases parameter.
10573 (partition_view_bitmap): Likewise.
10574 * tree-ssa-live.h: Adjust declarations.
10575 * tree-ssa-coalesce.c: Include explow.h.
10576 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10577 default defs at the entry point.
10578 (dump_part_var_map): New.
10579 (compute_optimized_partition_bases): New, called by...
10580 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10581 of compute_samebase_partition_bases. Adjust.
10582 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10583 * cfgexpand.c (leader_merge): New.
10584 (get_rtl_for_parm_ssa_default_def): New.
10585 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10586 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10587 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10588 redundant MEM attr setting.
10589 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10591 (expand_one_stack_var): ... this. New wrapper to check and
10592 skip already expanded SSA partitions.
10593 (record_alignment_for_reg_var): New, factored out of...
10594 (expand_one_var): ... this.
10595 (expand_one_ssa_partition): New.
10596 (adjust_one_expanded_partition_var): New.
10597 (expand_one_register_var): Check and skip already expanded SSA
10599 (expand_used_vars): Don't create DECLs for anonymous SSA
10600 names. Expand all SSA partitions, then adjust all SSA names.
10601 (pass::execute): Replace the loops that set
10602 SA.partition_to_pseudo from partition leaders and cleared
10603 DECL_RTL for multi-location variables, and that which used to
10604 rename vars and set attrs, with one that clears DECL_RTL and
10605 checks that PARMs and RESULTs default_defs match DECL_RTL.
10606 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10607 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10608 * explow.c (promote_ssa_mode): New.
10609 * explow.h (promote_ssa_mode): Declare.
10610 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10611 * function.c: Include cfgexpand.h.
10612 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10613 (use_register_for_parm_decl): Wrapper for the above to
10614 special-case the result_ptr.
10615 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10616 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10617 multiple locations.
10618 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10619 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10620 (assign_parm_setup_block): Prefer SSA-assigned location.
10621 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10622 if stack_parm is NULL.
10623 (assign_parm_setup_stack): Prefer SSA-assigned location.
10624 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10625 rtl before testing for pointer bounds. Special-case result_ptr.
10626 (expand_function_start): Maybe reset DECL_RTL of result.
10627 Prefer SSA-assigned location for result and static chain.
10628 Factor out DECL_RESULT and SET_DECL_RTL.
10629 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10630 anonymous SSA names. Use promote_ssa_mode.
10631 (get_temp_reg): Likewise.
10632 (remove_ssa_form): Adjust.
10633 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10634 and get its reg_usage for reg invalidation.
10635 (compute_bb_dataflow): Pass it insn.
10636 (emit_notes_in_bb): Likewise.
10637 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10638 fail assert on conversion between unsigned types.
10640 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
10643 * tree-inline.c (reset_debug_binding): New.
10644 (reset_debug_bindings): Likewise.
10645 (expand_call_inline): Call it.
10647 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
10649 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
10652 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
10654 * lto-streamer-out.c (lto_output_location): Stream
10655 reserved locations correctly.
10656 * lto-streamer-in.c (lto_output_location): Likewise.
10658 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
10660 * coretypes.h: Include hash-table.h and hash-set.h for host files.
10661 * ggc.h: Don't include statistics.h>
10662 * hash-map.h: Remove all includes.
10663 * hash-set.h: Likewise.
10664 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
10665 the include list. Remove <new>.
10666 * inchash.h: Remove all includes.
10667 * mem-stats.h: Likewise.
10668 * vec.h: No special processing for generators or ggc.
10669 * alias.c : Adjust include files.
10670 * alloc-pool.c : Likewise.
10671 * alloc-pool.h : Likewise.
10672 * asan.c : Likewise.
10673 * attribs.c : Likewise.
10674 * auto-inc-dec.c : Likewise.
10675 * auto-profile.c : Likewise.
10676 * bb-reorder.c : Likewise.
10677 * bitmap.c : Likewise.
10678 * bitmap.h : Likewise.
10679 * bt-load.c : Likewise.
10680 * builtins.c : Likewise.
10681 * caller-save.c : Likewise.
10682 * calls.c : Likewise.
10683 * ccmp.c : Likewise.
10684 * cfg.c : Likewise.
10685 * cfganal.c : Likewise.
10686 * cfgbuild.c : Likewise.
10687 * cfgcleanup.c : Likewise.
10688 * cfgexpand.c : Likewise.
10689 * cfghooks.c : Likewise.
10690 * cfgloop.c : Likewise.
10691 * cfgloop.h : Likewise.
10692 * cfgloopanal.c : Likewise.
10693 * cfgloopmanip.c : Likewise.
10694 * cfgrtl.c : Likewise.
10695 * cgraph.c : Likewise.
10696 * cgraphbuild.c : Likewise.
10697 * cgraphclones.c : Likewise.
10698 * cgraphunit.c : Likewise.
10699 * cilk-common.c : Likewise.
10700 * combine-stack-adj.c : Likewise.
10701 * combine.c : Likewise.
10702 * compare-elim.c : Likewise.
10703 * context.c : Likewise.
10704 * convert.c : Likewise.
10705 * coverage.c : Likewise.
10706 * cppbuiltin.c : Likewise.
10707 * cprop.c : Likewise.
10708 * cse.c : Likewise.
10709 * cselib.c : Likewise.
10710 * data-streamer-in.c : Likewise.
10711 * data-streamer-out.c : Likewise.
10712 * data-streamer.c : Likewise.
10713 * data-streamer.h : Likewise.
10714 * dbxout.c : Likewise.
10715 * dce.c : Likewise.
10716 * ddg.c : Likewise.
10717 * debug.c : Likewise.
10718 * df-core.c : Likewise.
10719 * df-problems.c : Likewise.
10720 * df-scan.c : Likewise.
10722 * dfp.c : Likewise.
10723 * dojump.c : Likewise.
10724 * dominance.c : Likewise.
10725 * domwalk.c : Likewise.
10726 * double-int.c : Likewise.
10727 * dse.c : Likewise.
10728 * dumpfile.c : Likewise.
10729 * dwarf2asm.c : Likewise.
10730 * dwarf2cfi.c : Likewise.
10731 * dwarf2out.c : Likewise.
10732 * emit-rtl.c : Likewise.
10733 * et-forest.c : Likewise.
10734 * except.c : Likewise.
10735 * except.h : Likewise.
10736 * explow.c : Likewise.
10737 * expmed.c : Likewise.
10738 * expr.c : Likewise.
10739 * final.c : Likewise.
10740 * fixed-value.c : Likewise.
10741 * fold-const.c : Likewise.
10742 * function.c : Likewise.
10743 * fwprop.c : Likewise.
10744 * gcc-plugin.h : Likewise.
10745 * gcc.c : Likewise.
10746 * gcse-common.c : Likewise.
10747 * gcse.c : Likewise.
10748 * genattrtab.c : Likewise.
10749 * genautomata.c : Likewise.
10750 * genconditions.c : Likewise.
10751 * genemit.c : Likewise.
10752 * generic-match-head.c : Likewise.
10753 * genextract.c : Likewise.
10754 * gengtype-state.c : Likewise.
10755 * gengtype.c : Likewise.
10756 * genhooks.c : Likewise.
10757 * genmatch.c : Likewise.
10758 * genmodes.c : Likewise.
10759 * genrecog.c : Likewise.
10760 * gensupport.c : Likewise.
10761 * ggc-common.c : Likewise.
10762 * ggc-internal.h : Likewise.
10763 * ggc-none.c : Likewise.
10764 * ggc-page.c : Likewise.
10765 * gimple-builder.c : Likewise.
10766 * gimple-expr.c : Likewise.
10767 * gimple-fold.c : Likewise.
10768 * gimple-iterator.c : Likewise.
10769 * gimple-low.c : Likewise.
10770 * gimple-match-head.c : Likewise.
10771 * gimple-pretty-print.c : Likewise.
10772 * gimple-ssa-isolate-paths.c : Likewise.
10773 * gimple-ssa-strength-reduction.c : Likewise.
10774 * gimple-ssa.h : Likewise.
10775 * gimple-streamer-in.c : Likewise.
10776 * gimple-streamer-out.c : Likewise.
10777 * gimple-streamer.h : Likewise.
10778 * gimple-walk.c : Likewise.
10779 * gimple.c : Likewise.
10780 * gimplify-me.c : Likewise.
10781 * gimplify.c : Likewise.
10782 * godump.c : Likewise.
10783 * graph.c : Likewise.
10784 * graphds.c : Likewise.
10785 * graphite-blocking.c : Likewise.
10786 * graphite-dependences.c : Likewise.
10787 * graphite-interchange.c : Likewise.
10788 * graphite-isl-ast-to-gimple.c : Likewise.
10789 * graphite-optimize-isl.c : Likewise.
10790 * graphite-poly.c : Likewise.
10791 * graphite-scop-detection.c : Likewise.
10792 * graphite-sese-to-poly.c : Likewise.
10793 * graphite.c : Likewise.
10794 * haifa-sched.c : Likewise.
10795 * hard-reg-set.h : Likewise.
10796 * hw-doloop.c : Likewise.
10797 * ifcvt.c : Likewise.
10798 * inchash.c : Likewise.
10799 * incpath.c : Likewise.
10800 * init-regs.c : Likewise.
10801 * input.c : Likewise.
10802 * internal-fn.c : Likewise.
10803 * ipa-chkp.c : Likewise.
10804 * ipa-comdats.c : Likewise.
10805 * ipa-cp.c : Likewise.
10806 * ipa-devirt.c : Likewise.
10807 * ipa-icf-gimple.c : Likewise.
10808 * ipa-icf.c : Likewise.
10809 * ipa-inline-analysis.c : Likewise.
10810 * ipa-inline-transform.c : Likewise.
10811 * ipa-inline.c : Likewise.
10812 * ipa-polymorphic-call.c : Likewise.
10813 * ipa-profile.c : Likewise.
10814 * ipa-prop.c : Likewise.
10815 * ipa-pure-const.c : Likewise.
10816 * ipa-ref.c : Likewise.
10817 * ipa-reference.c : Likewise.
10818 * ipa-split.c : Likewise.
10819 * ipa-utils.c : Likewise.
10820 * ipa-visibility.c : Likewise.
10821 * ipa.c : Likewise.
10822 * ira-build.c : Likewise.
10823 * ira-color.c : Likewise.
10824 * ira-conflicts.c : Likewise.
10825 * ira-costs.c : Likewise.
10826 * ira-emit.c : Likewise.
10827 * ira-lives.c : Likewise.
10828 * ira.c : Likewise.
10829 * jump.c : Likewise.
10830 * langhooks.c : Likewise.
10831 * lcm.c : Likewise.
10832 * libfuncs.h : Likewise.
10833 * lists.c : Likewise.
10834 * loop-doloop.c : Likewise.
10835 * loop-init.c : Likewise.
10836 * loop-invariant.c : Likewise.
10837 * loop-iv.c : Likewise.
10838 * loop-unroll.c : Likewise.
10839 * lower-subreg.c : Likewise.
10840 * lra-assigns.c : Likewise.
10841 * lra-coalesce.c : Likewise.
10842 * lra-constraints.c : Likewise.
10843 * lra-eliminations.c : Likewise.
10844 * lra-lives.c : Likewise.
10845 * lra-remat.c : Likewise.
10846 * lra-spills.c : Likewise.
10847 * lra.c : Likewise.
10848 * lto-cgraph.c : Likewise.
10849 * lto-compress.c : Likewise.
10850 * lto-opts.c : Likewise.
10851 * lto-section-in.c : Likewise.
10852 * lto-section-out.c : Likewise.
10853 * lto-streamer-in.c : Likewise.
10854 * lto-streamer-out.c : Likewise.
10855 * lto-streamer.c : Likewise.
10856 * lto-streamer.h : Likewise.
10857 * mcf.c : Likewise.
10858 * mode-switching.c : Likewise.
10859 * modulo-sched.c : Likewise.
10860 * omega.c : Likewise.
10861 * omp-low.c : Likewise.
10862 * optabs.c : Likewise.
10863 * opts-global.c : Likewise.
10864 * opts.h : Likewise.
10865 * passes.c : Likewise.
10866 * plugin.c : Likewise.
10867 * postreload-gcse.c : Likewise.
10868 * postreload.c : Likewise.
10869 * predict.c : Likewise.
10870 * print-rtl.c : Likewise.
10871 * print-tree.c : Likewise.
10872 * profile.c : Likewise.
10873 * read-md.c : Likewise.
10874 * read-md.h : Likewise.
10875 * read-rtl.c : Likewise.
10876 * real.c : Likewise.
10877 * realmpfr.c : Likewise.
10878 * recog.c : Likewise.
10879 * ree.c : Likewise.
10880 * reg-stack.c : Likewise.
10881 * regcprop.c : Likewise.
10882 * reginfo.c : Likewise.
10883 * regrename.c : Likewise.
10884 * regstat.c : Likewise.
10885 * reload.c : Likewise.
10886 * reload1.c : Likewise.
10887 * reorg.c : Likewise.
10888 * resource.c : Likewise.
10889 * rtl-chkp.c : Likewise.
10890 * rtl.c : Likewise.
10891 * rtl.h : Likewise.
10892 * rtlanal.c : Likewise.
10893 * rtlhash.c : Likewise.
10894 * rtlhash.h : Likewise.
10895 * rtlhooks.c : Likewise.
10896 * sanopt.c : Likewise.
10897 * sched-deps.c : Likewise.
10898 * sched-ebb.c : Likewise.
10899 * sched-rgn.c : Likewise.
10900 * sched-vis.c : Likewise.
10901 * sdbout.c : Likewise.
10902 * sel-sched-dump.c : Likewise.
10903 * sel-sched-ir.c : Likewise.
10904 * sel-sched-ir.h : Likewise.
10905 * sel-sched.c : Likewise.
10906 * sese.c : Likewise.
10907 * shrink-wrap.c : Likewise.
10908 * shrink-wrap.h : Likewise.
10909 * simplify-rtx.c : Likewise.
10910 * stack-ptr-mod.c : Likewise.
10911 * statistics.c : Likewise.
10912 * stmt.c : Likewise.
10913 * stor-layout.c : Likewise.
10914 * store-motion.c : Likewise.
10915 * stringpool.c : Likewise.
10916 * symtab.c : Likewise.
10917 * target-globals.c : Likewise.
10918 * targhooks.c : Likewise.
10919 * tlink.c : Likewise.
10920 * toplev.c : Likewise.
10921 * tracer.c : Likewise.
10922 * trans-mem.c : Likewise.
10923 * tree-affine.c : Likewise.
10924 * tree-affine.h : Likewise.
10925 * tree-browser.c : Likewise.
10926 * tree-call-cdce.c : Likewise.
10927 * tree-cfg.c : Likewise.
10928 * tree-cfgcleanup.c : Likewise.
10929 * tree-chkp-opt.c : Likewise.
10930 * tree-chkp.c : Likewise.
10931 * tree-chrec.c : Likewise.
10932 * tree-complex.c : Likewise.
10933 * tree-data-ref.c : Likewise.
10934 * tree-dfa.c : Likewise.
10935 * tree-diagnostic.c : Likewise.
10936 * tree-dump.c : Likewise.
10937 * tree-eh.c : Likewise.
10938 * tree-eh.h : Likewise.
10939 * tree-emutls.c : Likewise.
10940 * tree-hasher.h : Likewise.
10941 * tree-if-conv.c : Likewise.
10942 * tree-inline.c : Likewise.
10943 * tree-inline.h : Likewise.
10944 * tree-into-ssa.c : Likewise.
10945 * tree-iterator.c : Likewise.
10946 * tree-loop-distribution.c : Likewise.
10947 * tree-nested.c : Likewise.
10948 * tree-nrv.c : Likewise.
10949 * tree-object-size.c : Likewise.
10950 * tree-outof-ssa.c : Likewise.
10951 * tree-parloops.c : Likewise.
10952 * tree-phinodes.c : Likewise.
10953 * tree-predcom.c : Likewise.
10954 * tree-pretty-print.c : Likewise.
10955 * tree-profile.c : Likewise.
10956 * tree-scalar-evolution.c : Likewise.
10957 * tree-sra.c : Likewise.
10958 * tree-ssa-address.c : Likewise.
10959 * tree-ssa-alias.c : Likewise.
10960 * tree-ssa-ccp.c : Likewise.
10961 * tree-ssa-coalesce.c : Likewise.
10962 * tree-ssa-copy.c : Likewise.
10963 * tree-ssa-copyrename.c : Likewise.
10964 * tree-ssa-dce.c : Likewise.
10965 * tree-ssa-dom.c : Likewise.
10966 * tree-ssa-dse.c : Likewise.
10967 * tree-ssa-forwprop.c : Likewise.
10968 * tree-ssa-ifcombine.c : Likewise.
10969 * tree-ssa-live.c : Likewise.
10970 * tree-ssa-loop-ch.c : Likewise.
10971 * tree-ssa-loop-im.c : Likewise.
10972 * tree-ssa-loop-ivcanon.c : Likewise.
10973 * tree-ssa-loop-ivopts.c : Likewise.
10974 * tree-ssa-loop-manip.c : Likewise.
10975 * tree-ssa-loop-niter.c : Likewise.
10976 * tree-ssa-loop-prefetch.c : Likewise.
10977 * tree-ssa-loop-unswitch.c : Likewise.
10978 * tree-ssa-loop.c : Likewise.
10979 * tree-ssa-math-opts.c : Likewise.
10980 * tree-ssa-operands.c : Likewise.
10981 * tree-ssa-phiopt.c : Likewise.
10982 * tree-ssa-phiprop.c : Likewise.
10983 * tree-ssa-pre.c : Likewise.
10984 * tree-ssa-propagate.c : Likewise.
10985 * tree-ssa-reassoc.c : Likewise.
10986 * tree-ssa-sccvn.c : Likewise.
10987 * tree-ssa-scopedtables.c : Likewise.
10988 * tree-ssa-sink.c : Likewise.
10989 * tree-ssa-strlen.c : Likewise.
10990 * tree-ssa-structalias.c : Likewise.
10991 * tree-ssa-tail-merge.c : Likewise.
10992 * tree-ssa-ter.c : Likewise.
10993 * tree-ssa-threadedge.c : Likewise.
10994 * tree-ssa-threadupdate.c : Likewise.
10995 * tree-ssa-uncprop.c : Likewise.
10996 * tree-ssa-uninit.c : Likewise.
10997 * tree-ssa.c : Likewise.
10998 * tree-ssanames.c : Likewise.
10999 * tree-stdarg.c : Likewise.
11000 * tree-streamer-in.c : Likewise.
11001 * tree-streamer-out.c : Likewise.
11002 * tree-streamer.c : Likewise.
11003 * tree-streamer.h : Likewise.
11004 * tree-switch-conversion.c : Likewise.
11005 * tree-tailcall.c : Likewise.
11006 * tree-vect-data-refs.c : Likewise.
11007 * tree-vect-generic.c : Likewise.
11008 * tree-vect-loop-manip.c : Likewise.
11009 * tree-vect-loop.c : Likewise.
11010 * tree-vect-patterns.c : Likewise.
11011 * tree-vect-slp.c : Likewise.
11012 * tree-vect-stmts.c : Likewise.
11013 * tree-vectorizer.c : Likewise.
11014 * tree-vectorizer.h : Likewise.
11015 * tree-vrp.c : Likewise.
11016 * tree.c : Likewise.
11017 * tsan.c : Likewise.
11018 * ubsan.c : Likewise.
11019 * valtrack.c : Likewise.
11020 * valtrack.h : Likewise.
11021 * value-prof.c : Likewise.
11022 * var-tracking.c : Likewise.
11023 * varasm.c : Likewise.
11024 * varpool.c : Likewise.
11026 * vmsdbgout.c : Likewise.
11027 * vtable-verify.c : Likewise.
11028 * vtable-verify.h : Likewise.
11029 * web.c : Likewise.
11030 * wide-int.cc : Likewise.
11031 * xcoffout.c : Likewise.
11032 * config/aarch64/aarch64-builtins.c : Likewise.
11033 * config/aarch64/aarch64.c : Likewise.
11034 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11035 * config/alpha/alpha.c : Likewise.
11036 * config/arc/arc.c : Likewise.
11037 * config/arm/aarch-common.c : Likewise.
11038 * config/arm/arm-builtins.c : Likewise.
11039 * config/arm/arm-c.c : Likewise.
11040 * config/arm/arm.c : Likewise.
11041 * config/avr/avr-c.c : Likewise.
11042 * config/avr/avr-log.c : Likewise.
11043 * config/avr/avr.c : Likewise.
11044 * config/bfin/bfin.c : Likewise.
11045 * config/c6x/c6x.c : Likewise.
11046 * config/cr16/cr16.c : Likewise.
11047 * config/cris/cris.c : Likewise.
11048 * config/darwin-c.c : Likewise.
11049 * config/darwin.c : Likewise.
11050 * config/default-c.c : Likewise.
11051 * config/epiphany/epiphany.c : Likewise.
11052 * config/epiphany/mode-switch-use.c : Likewise.
11053 * config/epiphany/resolve-sw-modes.c : Likewise.
11054 * config/fr30/fr30.c : Likewise.
11055 * config/frv/frv.c : Likewise.
11056 * config/ft32/ft32.c : Likewise.
11057 * config/glibc-c.c : Likewise.
11058 * config/h8300/h8300.c : Likewise.
11059 * config/i386/i386-c.c : Likewise.
11060 * config/i386/i386.c : Likewise.
11061 * config/i386/msformat-c.c : Likewise.
11062 * config/i386/winnt-cxx.c : Likewise.
11063 * config/i386/winnt-stubs.c : Likewise.
11064 * config/i386/winnt.c : Likewise.
11065 * config/ia64/ia64-c.c : Likewise.
11066 * config/ia64/ia64.c : Likewise.
11067 * config/iq2000/iq2000.c : Likewise.
11068 * config/lm32/lm32.c : Likewise.
11069 * config/m32c/m32c-pragma.c : Likewise.
11070 * config/m32c/m32c.c : Likewise.
11071 * config/m32r/m32r.c : Likewise.
11072 * config/m68k/m68k.c : Likewise.
11073 * config/mcore/mcore.c : Likewise.
11074 * config/mep/mep-pragma.c : Likewise.
11075 * config/mep/mep.c : Likewise.
11076 * config/microblaze/microblaze-c.c : Likewise.
11077 * config/microblaze/microblaze.c : Likewise.
11078 * config/mips/mips.c : Likewise.
11079 * config/mmix/mmix.c : Likewise.
11080 * config/mn10300/mn10300.c : Likewise.
11081 * config/moxie/moxie.c : Likewise.
11082 * config/msp430/msp430-c.c : Likewise.
11083 * config/msp430/msp430.c : Likewise.
11084 * config/nds32/nds32-cost.c : Likewise.
11085 * config/nds32/nds32-fp-as-gp.c : Likewise.
11086 * config/nds32/nds32-intrinsic.c : Likewise.
11087 * config/nds32/nds32-isr.c : Likewise.
11088 * config/nds32/nds32-md-auxiliary.c : Likewise.
11089 * config/nds32/nds32-memory-manipulation.c : Likewise.
11090 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11091 * config/nds32/nds32-predicates.c : Likewise.
11092 * config/nds32/nds32.c : Likewise.
11093 * config/nios2/nios2.c : Likewise.
11094 * config/nvptx/nvptx.c : Likewise.
11095 * config/pa/pa.c : Likewise.
11096 * config/pdp11/pdp11.c : Likewise.
11097 * config/rl78/rl78-c.c : Likewise.
11098 * config/rl78/rl78.c : Likewise.
11099 * config/rs6000/rs6000-c.c : Likewise.
11100 * config/rs6000/rs6000.c : Likewise.
11101 * config/rx/rx.c : Likewise.
11102 * config/s390/s390-c.c : Likewise.
11103 * config/s390/s390.c : Likewise.
11104 * config/sh/sh-c.c : Likewise.
11105 * config/sh/sh-mem.cc : Likewise.
11106 * config/sh/sh.c : Likewise.
11107 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11108 * config/sh/sh_treg_combine.cc : Likewise.
11109 * config/sol2-c.c : Likewise.
11110 * config/sol2-cxx.c : Likewise.
11111 * config/sol2-stubs.c : Likewise.
11112 * config/sol2.c : Likewise.
11113 * config/sparc/sparc-c.c : Likewise.
11114 * config/sparc/sparc.c : Likewise.
11115 * config/spu/spu-c.c : Likewise.
11116 * config/spu/spu.c : Likewise.
11117 * config/stormy16/stormy16.c : Likewise.
11118 * config/tilegx/mul-tables.c : Likewise.
11119 * config/tilegx/tilegx-c.c : Likewise.
11120 * config/tilegx/tilegx.c : Likewise.
11121 * config/tilepro/mul-tables.c : Likewise.
11122 * config/tilepro/tilepro-c.c : Likewise.
11123 * config/tilepro/tilepro.c : Likewise.
11124 * config/v850/v850-c.c : Likewise.
11125 * config/v850/v850.c : Likewise.
11126 * config/vax/vax.c : Likewise.
11127 * config/visium/visium.c : Likewise.
11128 * config/vms/vms-c.c : Likewise.
11129 * config/vms/vms.c : Likewise.
11130 * config/vxworks.c : Likewise.
11131 * config/winnt-c.c : Likewise.
11132 * config/xtensa/xtensa.c : Likewise.
11134 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
11137 * ipa-utils.h (warn_types_mismatch): Update prototype.
11138 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11140 (type_mismatch_p): New function.
11141 (warn_types_mismatch): Reorg to work better on non-C++ types.
11142 (odr_types_equivalent_p): Add loc1/loc2 parameters.
11143 (add_type_duplicate): Update.
11145 2015-06-08 Tom de Vries <tom@codesourcery.com>
11147 PR rtl-optimization/66444
11148 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11151 2015-06-08 Richard Biener <rguenther@suse.de>
11153 PR tree-optimization/66422
11154 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11155 block after inserted gcc_unreachable.
11157 2015-06-08 Nick Clifton <nickc@redhat.com>
11159 * config/rx/rx.c (rx_function_value): Do not promote vector types.
11160 (rx_promote_function_mode): Likewise.
11161 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11163 2015-06-08 Jakub Jelinek <jakub@redhat.com>
11165 * genattrtab.c (insn_alternatives): Change type from int *
11167 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11168 (get_attr_value): Change type of num_alt to uint64_t.
11169 (compute_alternative_mask): Change return type from
11170 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11171 (make_alternative_compare, mk_attr_alt): Change argument type
11172 from int to uint64_t.
11173 (simplify_test_exp): Change type of i from int to uint64_t.
11174 Shift ((uint64_t) 1) instead of 1 up.
11175 (main): Adjust oballocvec first argument from int to uint64_t.
11176 Shift ((uint64_t) 1) instead of 1 up.
11178 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11181 * gdbhooks.py: Import sys.
11182 (intptr): New function. Replace int(...) by intptr(...).
11184 2015-06-08 Richard Biener <rguenther@suse.de>
11186 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11187 adjustment for gaps at the end of a SLP load group properly.
11188 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11189 all permutations we can generate.
11190 (vect_transform_slp_perm_load): Use the correct group-size.
11192 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
11194 * genmatch.c (expr::gen_transform): For conditions, guess the type
11195 from the second operand.
11197 2015-06-08 Tom de Vries <tom@codesourcery.com>
11199 PR tree-optimization/66442
11200 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11201 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11202 if the loop latch is not a singleton. Use
11203 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11205 2015-06-08 Marek Polacek <polacek@redhat.com>
11208 * toplev.c (check_global_declaration): Don't warn about artificial
11211 2015-06-08 Tom de Vries <tom@codesourcery.com>
11213 PR tree-optimization/66436
11214 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11216 * gimplify.c: Add tree-dump.h include.
11217 (gimplify_function_tree): Dump function to gimple dump file.
11218 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11221 2015-06-08 Tom de Vries <tom@codesourcery.com>
11223 PR tree-optimization/66435
11224 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11227 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
11229 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11230 of ptr_type_node to not be ptr_to_node.
11231 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11232 TREE_TYPE of pointers.
11233 * gimple-expr.c (useless_type_conversion): Reorder the check for
11234 function pointers and TYPE_CANONICAL.
11236 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
11239 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11240 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11241 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11243 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11244 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11245 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11246 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11247 and non iso if unix2003.
11249 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
11251 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11253 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
11255 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11256 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11257 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11258 except.c, final.c, function.c, gcse-common.c, genemit.c,
11259 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11260 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11261 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11262 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11265 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
11267 * combine.c (combine_split_insns): Remove cast.
11268 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11269 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11270 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11271 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11272 * genemit.c (gen_split): Change return type of generated functions to
11274 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11275 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11276 gen_peephole2_* functions.
11277 (print_subroutine, main): Likewise.
11278 * recog.c (peephole2_optimize): Remove cast.
11279 (peep2_next_insn): Promote return type to rtx_insn.
11280 * recog.h (peep2_next_insn): Fix prototype.
11281 * rtl.h (try_split, split_insns): Likewise.
11283 2015-06-06 DJ Delorie <dj@redhat.com>
11285 * config/msp430/msp430.c (msp430_asm_integer): Support addition
11286 and subtraction too.
11288 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
11291 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11292 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11293 instead of Snd. Disparage Sid/z alternative with '^'.
11295 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
11297 * dwarf2out.c: Remove deferred_locations*.
11298 (dwarf2_debug_hooks): Add early_finish hook.
11299 Remove global_decl hook.
11300 Add early_global_decl and late_global_decl hook.
11301 New global early_dwarf.
11302 New structure set_early_dwarf.
11303 (output_die): Indicate whether a DIE was generated early
11304 when generating assembly with -dA.
11305 (struct limbo_die_struct): Document created_for field.
11306 Remove file_table_last_lookup.
11307 (remove_AT): Return TRUE if successful.
11308 (remove_child_TAG): Clear die_parent.
11309 (reparent_child): New function abstracted from...
11310 (splice_child_die): ...here.
11311 (new_die): ICE if a DIE ends up in limbo too late.
11313 (defer_location): Remove.
11314 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11315 (fill_variable_array_bounds): New.
11316 (decl_start_label): Call fill_variable_array_bounds.
11317 (gen_formal_parameter_die): Rewrite to reuse previously generated
11319 (gen_subprogram_die): Same.
11320 (gen_variable_die): Same.
11321 (gen_const_die): Same.
11322 (gen_label_die): Same.
11323 (gen_lexical_block_die): Same.
11324 (decl_will_get_specification_p): New.
11325 (local_function_static): New.
11326 (gen_struct_or_union_type_die): Fill in variable-length fields.
11327 (gen_typedef_die): Fill in variable-length typedefs.
11328 (gen_tagged_type_die): Gracefully return on error_mark_node.
11329 Handle re-entrancy.
11330 (gen_type_die_with_usage): Handle variable-length types.
11331 Remove duplicate code for ARRAY_TYPE case.
11332 (process_scope_var): Only process imported modules during early
11334 (dwarf2out_early_global_decl): New.
11335 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11336 (dwarf2out_type_decl): Set early_dwarf while calling
11338 (dwarf2out_decl): Verify that we did not recreate a previously
11340 Do not return on DECL_EXTERNALs in VAR_DECLs.
11341 Abstract some code to local_function_static.
11342 (lookup_filename): Remove use of file_table_last_lookup.
11343 Gracefully exit on missing file_name.
11344 (dwarf2out_finish): Verify limbo list.
11345 Remove deferred_locations_list use.
11346 Move deferred_asm_name and limbo flushing to...
11347 (dwarf2out_early_finish): ...here. New.
11348 (dwarf2out_c_finalize): Remove set of deferred_location_list,
11349 deferred_asm_name, and file_table_last_lookup.
11350 * cgraph.h (referred_to_p): Add default argument.
11351 * cgraphunit.c (referred_to_p): Add and handle include_self
11353 (analyze_functions): Add first_time argument.
11354 Call check_global_declaration for all symbols.
11355 Call late_global_decl for nodes for moribund nodes.
11356 (finalize_compilation_unit): Add new argument to
11358 Call early_global_decl for functions.
11359 Call early_finish debug hook.
11360 * dbxout.c (dbxout_early_global_decl): New.
11361 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
11362 (dbx_debug_hooks): Add new hooks.
11363 (xcoff_debug_hooks): Same.
11364 * debug.c (do_nothing_debug_hooks): Add early_finish field.
11365 Add early and late debug hooks.
11366 Remove global_decl hook.
11367 * debug.h (struct gcc_debug_hooks): Add early_finish,
11368 early_global_decl, and late_global_decl fields.
11369 Remove global_decl field.
11370 Document gcc_debug_hooks.
11371 * gengtype.c (output_typename): Remove.
11372 * godump.c (go_early_global_decl): New.
11373 (go_late_global_decl): New.
11374 (go_global_decl): Remove.
11375 (dump_go_spec_init): Remove global_decl. Add
11376 {early,late}_global_decl.
11377 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11378 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11379 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11380 (write_global_declarations): Remove.
11381 (global_decl_processing): New.
11382 * langhooks.h (struct lang_hooks_for_decls): Remove
11383 final_write_globals field.
11384 Add post_compilation_parsing_cleanups field.
11385 * passes.c (rest_of_decl_compilation): Call early_global_decl.
11386 * sdbout.c: Add early and late_global_decl hooks. Remove
11387 sdbout_global_decl hook.
11388 Add early_finish field for sdb_debug_hooks.
11389 (sdbout_global_decl): Remove.
11390 (sdbout_early_global_decl): New.
11391 (sdbout_late_global_decl): New.
11392 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11393 * toplev.c (check_global_declaration): Rename from
11394 check_global_declaration_1.
11395 Adapt to use symtab infrastructure.
11396 (check_global_declarations): Remove.
11397 (emit_debug_global_declarations): Remove.
11398 (compile_file): Remove call to final_write_globals langhook.
11399 Run the actual compilation process.
11400 Perform any post compilation parser cleanups.
11401 Generate late debug info.
11402 * toplev.h (check_global_declaration): New.
11403 (check_global_declaration_1): Remove.
11404 (check_global_declarations): Remove.
11405 (write_global_declarations): Remove.
11406 (emit_debug_global_declarations): Remove.
11407 (global_decl_processing): New.
11408 * tree-core.h (struct tree_block): Add DIE field.
11409 * tree.h (BLOCK_DIE): New.
11410 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11412 (vmsdbgout_early_global_decl): New.
11413 (vmsdbgout_late_global_decl): New.
11414 Add early_finish debug hook field to vmsdbg_debug_hooks.
11415 Remove vmsdbgout_decl to vmsdbgout_function_decl.
11416 Add early and late_global_decl debug hooks.
11418 2015-06-05 Julian Brown <julian@codesourcery.com>
11419 Sandra Loosemore <sandra@codesourcery.com>
11421 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11422 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11423 to print-sysroot-suffix.sh script.
11425 2015-06-05 Tom de Vries <tom@codesourcery.com>
11427 merge from gomp4 branch:
11428 2015-05-28 Tom de Vries <tom@codesourcery.com>
11430 PR tree-optimization/65443
11431 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11432 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11433 (try_transform_to_exit_first_loop_alt): New function.
11434 (transform_to_exit_first_loop): Use
11435 try_transform_to_exit_first_loop_alt.
11437 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
11439 * builtins.c (expand_builtin_atomic_compare_exchange): Call
11440 emit_cmp_and_jump_insns with the mode of target.
11442 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11444 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11446 2015-06-04 DJ Delorie <dj@redhat.com>
11448 * config/msp430/msp430.md (movsi_s): New. Special case for
11449 storing a 20-bit symbol into a 32-bit register.
11450 * config/msp430/msp430.c (msp430_subreg): Add support for it.
11451 * config/msp430/predicates.md (msp430_symbol_operand): New.
11453 2015-06-04 Sriraman Tallam <tmsriram@google.com>
11455 * c-family/c-common.c (noplt): New attribute.
11456 (handle_noplt_attribute): New handler.
11457 * calls.c (prepare_call_address): Check for noplt
11459 * config/i386/i386.c (ix86_expand_call): Check
11460 for noplt attribute.
11461 (ix86_nopic_noplt_attribute_p): New function.
11462 (ix86_output_call_insn): Output indirect call for non-pic
11464 * doc/extend.texi (noplt): Document new attribute.
11465 * doc/invoke.texi: Document new attribute.
11467 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
11469 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11470 real.h, and fixed-value.h when included in host source files.
11471 * double-int.h: Remove redundant #includes listed above.
11472 * fixed-value.h: Likewise.
11473 * real.h: Likewise.
11474 * wide-int.h: Likewise.
11475 * inchash.h: Likewise.
11476 * rtl.h: Add some include files When included from a generator file.
11477 * target.h: Remove wide-int.h and insn-modes.h from the include list.
11478 * internal-fn.h: Don't include coretypes.h.
11479 * alias.c: Adjust includes for restructured coretypes.h.
11480 * asan.c: Likewise.
11481 * attribs.c: Likewise.
11482 * auto-inc-dec.c: Likewise.
11483 * auto-profile.c: Likewise.
11484 * bb-reorder.c: Likewise.
11485 * bt-load.c: Likewise.
11486 * builtins.c: Likewise.
11487 * caller-save.c: Likewise.
11488 * calls.c: Likewise.
11489 * ccmp.c: Likewise.
11491 * cfganal.c: Likewise.
11492 * cfgbuild.c: Likewise.
11493 * cfgcleanup.c: Likewise.
11494 * cfgexpand.c: Likewise.
11495 * cfghooks.c: Likewise.
11496 * cfgloop.c: Likewise.
11497 * cfgloop.h: Likewise.
11498 * cfgloopanal.c: Likewise.
11499 * cfgloopmanip.c: Likewise.
11500 * cfgrtl.c: Likewise.
11501 * cgraph.c: Likewise.
11502 * cgraphbuild.c: Likewise.
11503 * cgraphclones.c: Likewise.
11504 * cgraphunit.c: Likewise.
11505 * cilk-common.c: Likewise.
11506 * combine-stack-adj.c: Likewise.
11507 * combine.c: Likewise.
11508 * compare-elim.c: Likewise.
11509 * convert.c: Likewise.
11510 * coverage.c: Likewise.
11511 * cppbuiltin.c: Likewise.
11512 * cprop.c: Likewise.
11514 * cselib.c: Likewise.
11515 * data-streamer-in.c: Likewise.
11516 * data-streamer-out.c: Likewise.
11517 * data-streamer.c: Likewise.
11518 * dbxout.c: Likewise.
11521 * debug.c: Likewise.
11522 * df-core.c: Likewise.
11523 * df-problems.c: Likewise.
11524 * df-scan.c: Likewise.
11527 * dojump.c: Likewise.
11528 * dominance.c: Likewise.
11529 * domwalk.c: Likewise.
11530 * double-int.c: Likewise.
11532 * dumpfile.c: Likewise.
11533 * dwarf2asm.c: Likewise.
11534 * dwarf2cfi.c: Likewise.
11535 * dwarf2out.c: Likewise.
11536 * dwarf2out.h: Likewise.
11537 * emit-rtl.c: Likewise.
11538 * et-forest.c: Likewise.
11539 * except.c: Likewise.
11540 * explow.c: Likewise.
11541 * expmed.c: Likewise.
11542 * expr.c: Likewise.
11543 * final.c: Likewise.
11544 * fixed-value.c: Likewise.
11545 * fold-const.c: Likewise.
11546 * function.c: Likewise.
11547 * fwprop.c: Likewise.
11548 * gcc-plugin.h: Likewise.
11549 * gcse.c: Likewise.
11550 * generic-match-head.c: Likewise.
11551 * ggc-page.c: Likewise.
11552 * gimple-builder.c: Likewise.
11553 * gimple-expr.c: Likewise.
11554 * gimple-fold.c: Likewise.
11555 * gimple-iterator.c: Likewise.
11556 * gimple-low.c: Likewise.
11557 * gimple-match-head.c: Likewise.
11558 * gimple-pretty-print.c: Likewise.
11559 * gimple-ssa-isolate-paths.c: Likewise.
11560 * gimple-ssa-strength-reduction.c: Likewise.
11561 * gimple-streamer-in.c: Likewise.
11562 * gimple-streamer-out.c: Likewise.
11563 * gimple-streamer.h: Likewise.
11564 * gimple-walk.c: Likewise.
11565 * gimple.c: Likewise.
11566 * gimplify-me.c: Likewise.
11567 * gimplify.c: Likewise.
11568 * godump.c: Likewise.
11569 * graph.c: Likewise.
11570 * graphite-blocking.c: Likewise.
11571 * graphite-dependences.c: Likewise.
11572 * graphite-interchange.c: Likewise.
11573 * graphite-isl-ast-to-gimple.c: Likewise.
11574 * graphite-optimize-isl.c: Likewise.
11575 * graphite-poly.c: Likewise.
11576 * graphite-scop-detection.c: Likewise.
11577 * graphite-sese-to-poly.c: Likewise.
11578 * graphite.c: Likewise.
11579 * haifa-sched.c: Likewise.
11580 * hooks.h: Likewise.
11581 * hw-doloop.c: Likewise.
11582 * ifcvt.c: Likewise.
11583 * incpath.c: Likewise.
11584 * init-regs.c: Likewise.
11585 * internal-fn.c: Likewise.
11586 * ipa-chkp.c: Likewise.
11587 * ipa-comdats.c: Likewise.
11588 * ipa-cp.c: Likewise.
11589 * ipa-devirt.c: Likewise.
11590 * ipa-icf-gimple.c: Likewise.
11591 * ipa-icf.c: Likewise.
11592 * ipa-inline-analysis.c: Likewise.
11593 * ipa-inline-transform.c: Likewise.
11594 * ipa-inline.c: Likewise.
11595 * ipa-polymorphic-call.c: Likewise.
11596 * ipa-profile.c: Likewise.
11597 * ipa-prop.c: Likewise.
11598 * ipa-pure-const.c: Likewise.
11599 * ipa-ref.c: Likewise.
11600 * ipa-reference.c: Likewise.
11601 * ipa-split.c: Likewise.
11602 * ipa-utils.c: Likewise.
11603 * ipa-visibility.c: Likewise.
11605 * ira-build.c: Likewise.
11606 * ira-color.c: Likewise.
11607 * ira-conflicts.c: Likewise.
11608 * ira-costs.c: Likewise.
11609 * ira-emit.c: Likewise.
11610 * ira-lives.c: Likewise.
11612 * jump.c: Likewise.
11613 * langhooks.c: Likewise.
11615 * loop-doloop.c: Likewise.
11616 * loop-init.c: Likewise.
11617 * loop-invariant.c: Likewise.
11618 * loop-iv.c: Likewise.
11619 * loop-unroll.c: Likewise.
11620 * lower-subreg.c: Likewise.
11621 * lra-assigns.c: Likewise.
11622 * lra-coalesce.c: Likewise.
11623 * lra-constraints.c: Likewise.
11624 * lra-eliminations.c: Likewise.
11625 * lra-lives.c: Likewise.
11626 * lra-remat.c: Likewise.
11627 * lra-spills.c: Likewise.
11629 * lto-cgraph.c: Likewise.
11630 * lto-compress.c: Likewise.
11631 * lto-opts.c: Likewise.
11632 * lto-section-in.c: Likewise.
11633 * lto-section-out.c: Likewise.
11634 * lto-streamer-in.c: Likewise.
11635 * lto-streamer-out.c: Likewise.
11636 * lto-streamer.c: Likewise.
11638 * mode-switching.c: Likewise.
11639 * modulo-sched.c: Likewise.
11640 * omega.c: Likewise.
11641 * omp-low.c: Likewise.
11642 * optabs.c: Likewise.
11643 * opts-global.c: Likewise.
11644 * passes.c: Likewise.
11645 * plugin.c: Likewise.
11646 * postreload-gcse.c: Likewise.
11647 * postreload.c: Likewise.
11648 * predict.c: Likewise.
11649 * print-rtl.c: Likewise.
11650 * print-tree.c: Likewise.
11651 * profile.c: Likewise.
11652 * real.c: Likewise.
11653 * realmpfr.c: Likewise.
11654 * realmpfr.h: Likewise.
11655 * recog.c: Likewise.
11657 * reg-stack.c: Likewise.
11658 * regcprop.c: Likewise.
11659 * reginfo.c: Likewise.
11660 * regrename.c: Likewise.
11661 * regs.h: Likewise.
11662 * regstat.c: Likewise.
11663 * reload.c: Likewise.
11664 * reload1.c: Likewise.
11665 * reorg.c: Likewise.
11666 * resource.c: Likewise.
11667 * rtl-chkp.c: Likewise.
11668 * rtlanal.c: Likewise.
11669 * rtlhooks.c: Likewise.
11670 * sanopt.c: Likewise.
11671 * sched-deps.c: Likewise.
11672 * sched-ebb.c: Likewise.
11673 * sched-rgn.c: Likewise.
11674 * sched-vis.c: Likewise.
11675 * sdbout.c: Likewise.
11676 * sel-sched-dump.c: Likewise.
11677 * sel-sched-ir.c: Likewise.
11678 * sel-sched.c: Likewise.
11679 * sese.c: Likewise.
11680 * shrink-wrap.c: Likewise.
11681 * shrink-wrap.h: Likewise.
11682 * simplify-rtx.c: Likewise.
11683 * stack-ptr-mod.c: Likewise.
11684 * statistics.c: Likewise.
11685 * stmt.c: Likewise.
11686 * stor-layout.c: Likewise.
11687 * store-motion.c: Likewise.
11688 * stringpool.c: Likewise.
11689 * symtab.c: Likewise.
11690 * target-globals.c: Likewise.
11691 * targhooks.c: Likewise.
11692 * toplev.c: Likewise.
11693 * tracer.c: Likewise.
11694 * trans-mem.c: Likewise.
11695 * tree-affine.c: Likewise.
11696 * tree-affine.h: Likewise.
11697 * tree-browser.c: Likewise.
11698 * tree-call-cdce.c: Likewise.
11699 * tree-cfg.c: Likewise.
11700 * tree-cfgcleanup.c: Likewise.
11701 * tree-chkp-opt.c: Likewise.
11702 * tree-chkp.c: Likewise.
11703 * tree-chrec.c: Likewise.
11704 * tree-complex.c: Likewise.
11705 * tree-data-ref.c: Likewise.
11706 * tree-dfa.c: Likewise.
11707 * tree-diagnostic.c: Likewise.
11708 * tree-dump.c: Likewise.
11709 * tree-eh.c: Likewise.
11710 * tree-emutls.c: Likewise.
11711 * tree-if-conv.c: Likewise.
11712 * tree-inline.c: Likewise.
11713 * tree-into-ssa.c: Likewise.
11714 * tree-iterator.c: Likewise.
11715 * tree-loop-distribution.c: Likewise.
11716 * tree-nested.c: Likewise.
11717 * tree-nrv.c: Likewise.
11718 * tree-object-size.c: Likewise.
11719 * tree-outof-ssa.c: Likewise.
11720 * tree-parloops.c: Likewise.
11721 * tree-phinodes.c: Likewise.
11722 * tree-predcom.c: Likewise.
11723 * tree-pretty-print.c: Likewise.
11724 * tree-pretty-print.h: Likewise.
11725 * tree-profile.c: Likewise.
11726 * tree-scalar-evolution.c: Likewise.
11727 * tree-sra.c: Likewise.
11728 * tree-ssa-address.c: Likewise.
11729 * tree-ssa-alias.c: Likewise.
11730 * tree-ssa-ccp.c: Likewise.
11731 * tree-ssa-coalesce.c: Likewise.
11732 * tree-ssa-copy.c: Likewise.
11733 * tree-ssa-copyrename.c: Likewise.
11734 * tree-ssa-dce.c: Likewise.
11735 * tree-ssa-dom.c: Likewise.
11736 * tree-ssa-dse.c: Likewise.
11737 * tree-ssa-forwprop.c: Likewise.
11738 * tree-ssa-ifcombine.c: Likewise.
11739 * tree-ssa-live.c: Likewise.
11740 * tree-ssa-loop-ch.c: Likewise.
11741 * tree-ssa-loop-im.c: Likewise.
11742 * tree-ssa-loop-ivcanon.c: Likewise.
11743 * tree-ssa-loop-ivopts.c: Likewise.
11744 * tree-ssa-loop-manip.c: Likewise.
11745 * tree-ssa-loop-niter.c: Likewise.
11746 * tree-ssa-loop-prefetch.c: Likewise.
11747 * tree-ssa-loop-unswitch.c: Likewise.
11748 * tree-ssa-loop.c: Likewise.
11749 * tree-ssa-loop.h: Likewise.
11750 * tree-ssa-math-opts.c: Likewise.
11751 * tree-ssa-operands.c: Likewise.
11752 * tree-ssa-phiopt.c: Likewise.
11753 * tree-ssa-phiprop.c: Likewise.
11754 * tree-ssa-pre.c: Likewise.
11755 * tree-ssa-propagate.c: Likewise.
11756 * tree-ssa-reassoc.c: Likewise.
11757 * tree-ssa-sccvn.c: Likewise.
11758 * tree-ssa-scopedtables.c: Likewise.
11759 * tree-ssa-sink.c: Likewise.
11760 * tree-ssa-strlen.c: Likewise.
11761 * tree-ssa-structalias.c: Likewise.
11762 * tree-ssa-tail-merge.c: Likewise.
11763 * tree-ssa-ter.c: Likewise.
11764 * tree-ssa-threadedge.c: Likewise.
11765 * tree-ssa-threadupdate.c: Likewise.
11766 * tree-ssa-uncprop.c: Likewise.
11767 * tree-ssa-uninit.c: Likewise.
11768 * tree-ssa.c: Likewise.
11769 * tree-ssanames.c: Likewise.
11770 * tree-stdarg.c: Likewise.
11771 * tree-streamer-in.c: Likewise.
11772 * tree-streamer-out.c: Likewise.
11773 * tree-streamer.c: Likewise.
11774 * tree-switch-conversion.c: Likewise.
11775 * tree-tailcall.c: Likewise.
11776 * tree-vect-data-refs.c: Likewise.
11777 * tree-vect-generic.c: Likewise.
11778 * tree-vect-loop-manip.c: Likewise.
11779 * tree-vect-loop.c: Likewise.
11780 * tree-vect-patterns.c: Likewise.
11781 * tree-vect-slp.c: Likewise.
11782 * tree-vect-stmts.c: Likewise.
11783 * tree-vectorizer.c: Likewise.
11784 * tree-vrp.c: Likewise.
11785 * tree.c: Likewise.
11786 * tsan.c: Likewise.
11787 * ubsan.c: Likewise.
11788 * valtrack.c: Likewise.
11789 * value-prof.c: Likewise.
11790 * var-tracking.c: Likewise.
11791 * varasm.c: Likewise.
11792 * varpool.c: Likewise.
11793 * vmsdbgout.c: Likewise.
11794 * vtable-verify.c: Likewise.
11796 * wide-int-print.cc: Likewise.
11797 * wide-int-print.h: Likewise.
11798 * wide-int.cc: Likewise.
11799 * xcoffout.c: Likewise.
11800 * config/aarch64/aarch64-builtins.c: Likewise.
11801 * config/aarch64/aarch64.c: Likewise.
11802 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11803 * config/alpha/alpha.c: Likewise.
11804 * config/arc/arc.c: Likewise.
11805 * config/arm/aarch-common.c: Likewise.
11806 * config/arm/arm-builtins.c: Likewise.
11807 * config/arm/arm-c.c: Likewise.
11808 * config/arm/arm.c: Likewise.
11809 * config/avr/avr-c.c: Likewise.
11810 * config/avr/avr-log.c: Likewise.
11811 * config/avr/avr.c: Likewise.
11812 * config/bfin/bfin.c: Likewise.
11813 * config/c6x/c6x.c: Likewise.
11814 * config/cr16/cr16.c: Likewise.
11815 * config/cris/cris.c: Likewise.
11816 * config/darwin-c.c: Likewise.
11817 * config/darwin.c: Likewise.
11818 * config/default-c.c: Likewise.
11819 * config/epiphany/epiphany.c: Likewise.
11820 * config/epiphany/mode-switch-use.c: Likewise.
11821 * config/epiphany/resolve-sw-modes.c: Likewise.
11822 * config/fr30/fr30.c: Likewise.
11823 * config/frv/frv.c: Likewise.
11824 * config/ft32/ft32.c: Likewise.
11825 * config/glibc-c.c: Likewise.
11826 * config/h8300/h8300.c: Likewise.
11827 * config/i386/i386-c.c: Likewise.
11828 * config/i386/i386.c: Likewise.
11829 * config/i386/msformat-c.c: Likewise.
11830 * config/i386/winnt-cxx.c: Likewise.
11831 * config/i386/winnt-stubs.c: Likewise.
11832 * config/i386/winnt.c: Likewise.
11833 * config/ia64/ia64-c.c: Likewise.
11834 * config/ia64/ia64.c: Likewise.
11835 * config/iq2000/iq2000.c: Likewise.
11836 * config/lm32/lm32.c: Likewise.
11837 * config/m32c/m32c-pragma.c: Likewise.
11838 * config/m32c/m32c.c: Likewise.
11839 * config/m32r/m32r.c: Likewise.
11840 * config/m68k/m68k.c: Likewise.
11841 * config/mcore/mcore.c: Likewise.
11842 * config/mep/mep-pragma.c: Likewise.
11843 * config/mep/mep.c: Likewise.
11844 * config/microblaze/microblaze-c.c: Likewise.
11845 * config/microblaze/microblaze.c: Likewise.
11846 * config/mips/mips.c: Likewise.
11847 * config/mmix/mmix.c: Likewise.
11848 * config/mn10300/mn10300.c: Likewise.
11849 * config/moxie/moxie.c: Likewise.
11850 * config/msp430/msp430-c.c: Likewise.
11851 * config/msp430/msp430.c: Likewise.
11852 * config/nds32/nds32-cost.c: Likewise.
11853 * config/nds32/nds32-fp-as-gp.c: Likewise.
11854 * config/nds32/nds32-intrinsic.c: Likewise.
11855 * config/nds32/nds32-isr.c: Likewise.
11856 * config/nds32/nds32-md-auxiliary.c: Likewise.
11857 * config/nds32/nds32-memory-manipulation.c: Likewise.
11858 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11859 * config/nds32/nds32-predicates.c: Likewise.
11860 * config/nds32/nds32.c: Likewise.
11861 * config/nios2/nios2.c: Likewise.
11862 * config/nvptx/nvptx.c: Likewise.
11863 * config/pa/pa.c: Likewise.
11864 * config/pdp11/pdp11.c: Likewise.
11865 * config/rl78/rl78-c.c: Likewise.
11866 * config/rl78/rl78.c: Likewise.
11867 * config/rs6000/rs6000-c.c: Likewise.
11868 * config/rs6000/rs6000.c: Likewise.
11869 * config/rx/rx.c: Likewise.
11870 * config/s390/s390-c.c: Likewise.
11871 * config/s390/s390.c: Likewise.
11872 * config/sh/sh-c.c: Likewise.
11873 * config/sh/sh-mem.cc: Likewise.
11874 * config/sh/sh.c: Likewise.
11875 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11876 * config/sh/sh_treg_combine.cc: Likewise.
11877 * config/sol2-c.c: Likewise.
11878 * config/sol2-cxx.c: Likewise.
11879 * config/sol2-stubs.c: Likewise.
11880 * config/sol2.c: Likewise.
11881 * config/sparc/sparc-c.c: Likewise.
11882 * config/sparc/sparc.c: Likewise.
11883 * config/spu/spu-c.c: Likewise.
11884 * config/spu/spu.c: Likewise.
11885 * config/stormy16/stormy16.c: Likewise.
11886 * config/tilegx/mul-tables.c: Likewise.
11887 * config/tilegx/tilegx-c.c: Likewise.
11888 * config/tilegx/tilegx.c: Likewise.
11889 * config/tilepro/mul-tables.c: Likewise.
11890 * config/tilepro/tilepro-c.c: Likewise.
11891 * config/tilepro/tilepro.c: Likewise.
11892 * config/v850/v850-c.c: Likewise.
11893 * config/v850/v850.c: Likewise.
11894 * config/vax/vax.c: Likewise.
11895 * config/visium/visium.c: Likewise.
11896 * config/vms/vms-c.c: Likewise.
11897 * config/vms/vms.c: Likewise.
11898 * config/vxworks.c: Likewise.
11899 * config/winnt-c.c: Likewise.
11900 * config/xtensa/xtensa.c: Likewise.
11901 * common/config/bfin/bfin-common.c: Likewise.
11903 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
11905 * tree.h (tree_code_for_canonical_type_merging): New function.
11906 * tree.c (gimple_canonical_types_compatible_p): Use
11907 tree_code_for_canonical_type_merging..
11909 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11913 * doc/tm.texi: Regenerate.
11914 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
11915 * target.def (TARGET_RELAXED_ORDERING): Likewise.
11916 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
11917 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
11918 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
11919 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
11920 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
11921 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
11922 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
11924 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11926 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
11927 register fma steering pass.
11928 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
11929 AARCH64_TUNE_FMA_STEERING.
11931 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
11933 * tree.c (verify_type_variant): Verify that type and variant is
11935 (gimple_canonical_types_compatible_p): Look for main variants.
11937 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11939 * config.gcc (powerpc*-*-*): Add support for a new configure
11940 option --with-advance-toolchain=<xxx> which overrides using the
11941 default header files, libraries and dynamic linker.
11943 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
11944 specs to support the configure --with-advance-toolchain=<xxx>
11946 (INCLUDE_EXTRA_SPEC): Likewise.
11947 (LINK_OS_EXTRA_SPEC32): Likewise.
11948 (LINK_OK_EXTRA_SPEC64): Likewise.
11949 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
11950 (DYNAMIC_LINKER_PREFIX): Likewise.
11951 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
11953 (GLIBC_DYNAMIC_LINKER32): Likewise.
11954 (GLIBC_DYNAMIC_LINKER64): Likewise.
11955 (LINK_OS_LINUX_SPEC32): Likewise.
11956 (LINK_OS_LINUX_SPEC64): Likewise.
11958 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
11959 configuration option.
11961 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
11964 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
11965 to determine current function ABI.
11966 (ix86_function_value_regno_p): Ditto.
11968 2015-06-03 Martin Liska <mliska@suse.cz>
11970 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
11971 * bitmap.h (struct bitmap_usage): Likewise.
11972 * ggc-common.c (struct ggc_usage): Likewise.
11973 * mem-stats.h (struct mem_location): Likewise.
11974 (struct mem_usage): Likewise.
11975 * vec.c (struct vec_usage): Likewise.
11977 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
11979 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
11982 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
11984 * doc/plugins.texi (enum plugin_event): New event.
11985 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
11986 and PLUGIN_FINISH_FUNCTION.
11987 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
11988 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
11990 2015-06-03 Richard Biener <rguenther@suse.de>
11992 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
11993 compute GROUP_GAP for the first element.
11994 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
11997 2015-06-03 Nick Clifton <nickc@redhat.com>
11999 * config/rl78/rl78-real.md: Add peepholes to avoid a register
12000 copy when calling a function.
12001 * config/rl78/rl78.c (need_to_save): Do not push the frame
12002 pointer in an interrupt handler prologue if it is never used.
12004 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12006 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12008 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
12010 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12011 reference when cloning alias node.
12013 2015-06-03 Martin Liska <mliska@suse.cz>
12015 * alloc-pool.h (struct pool_usage): Correct space padding.
12016 * ggc-page.c (ggc_print_statistics): Align columns in a report.
12017 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12018 * tree.c (dump_tree_statistics): Align columns in a report.
12020 2015-06-03 Martin Liska <mliska@suse.cz>
12022 * alloc-pool.c (allocate_pool_descriptor): Remove.
12023 (struct pool_output_info): Likewise.
12024 (print_alloc_pool_statistics): Likewise.
12025 (dump_alloc_pool_statistics): Likewise.
12026 * alloc-pool.h (struct pool_usage): New struct.
12027 (pool_allocator::initialize): Change usage of memory statistics
12028 to a new interface.
12029 (pool_allocator::release): Likewise.
12030 (pool_allocator::allocate): Likewise.
12031 (pool_allocator::remove): Likewise.
12032 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12033 for a pool allocator.
12034 * mem-stats.h (struct mem_location): Add new ctor.
12035 (struct mem_usage): Add counter for number of
12037 (mem_alloc_description::register_descriptor): New overload of
12038 * mem-stats.h (mem_location::to_string): New function.
12039 * bitmap.h (struct bitmap_usage): Use this new function.
12040 * ggc-common.c (struct ggc_usage): Likewise.
12043 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
12045 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12046 of GCC_INSN_FLAGS_H block.
12048 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12050 * explow.c (plus_constant): Update check after force_const_mem call
12051 to see if the value returned is not a NULL_RTX.
12053 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
12055 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12056 remove instumentation thunks calling reachable functions.
12057 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12058 * lto/lto-partition.c (privatize_symbol_name_1): New.
12059 (privatize_symbol_name): Privatize both decl and orig_decl
12060 names for instrumented functions.
12061 * cgraph.c (cgraph_node::verify_node): Add transparent
12062 alias chain check for instrumented node.
12064 2015-06-03 Marek Polacek <polacek@redhat.com>
12068 * tree.c (attribute_value_equal): Handle attribute format.
12069 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12071 2015-06-03 Richard Biener <rguenther@suse.de>
12073 PR tree-optimization/63916
12074 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12075 Forward-propagate non-invariant addresses by splicing their
12076 reference ops if the result isn't going to be used by PRE.
12077 (vn_reference_lookup_3): Remove pointless assert.
12079 2015-06-03 Richard Biener <rguenther@suse.de>
12081 PR tree-optimization/66375
12082 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12083 add to the evolution before following SSA edges.
12085 2015-06-03 Bin Cheng <bin.cheng@arm.com>
12087 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12088 (dump_use, dump_cand, find_induction_variables): Pass new argument
12090 (record_use): Preserve the ssa name information in IV.
12092 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
12094 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12096 (add_mode_tests): Don't add mode tests if the predicate only
12097 accepts scalar constant integers. Otherwise, allow the mode
12098 of "op" to be VOIDmode if the predicate does accept such integers.
12100 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
12103 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12104 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12105 (aarch64_secondary_reload): Likewise
12106 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12108 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12111 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
12112 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12115 * cprop.c (try_replace_reg): Check cost of constants before propagating.
12117 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12119 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12120 provide access to the IBM extended double floating point mode if
12121 long double is IEEE 128-bit floating point.
12122 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12123 point if long double is the IBM extended double type.
12125 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12126 enable adding IEEE 128-bit floating point support.
12127 (-mfloat128-software): Likewise.
12128 (-mfloat128-sw): Likewise.
12130 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12131 128-bit floating point types to occupy any register if
12132 -mlong-double-64. Do not allow use of IFmode/KFmode unless
12133 -mfloat128-software is enabled.
12134 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12136 (rs6000_option_override_internal): Add -mfloat128-* support.
12137 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12139 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12140 and float128 type nodes.
12141 (ieee128_float_type_node): Likewise.
12142 (ibm128_float_type_node): Likewise.
12144 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12147 * config/aarch64/geniterators.sh: Rewrite in awk.
12149 2015-06-02 Martin Liska <mliska@suse.cz>
12151 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12152 values to avoid -Wmaybe-uninitialized errors.
12154 2015-06-02 Richard Biener <rguenther@suse.de>
12157 * dwarf2out.c (lookup_context_die): New function.
12158 (resolve_addr): Avoid forcing a full DIE for the
12159 target of a DW_TAG_GNU_call_site during late compilation.
12160 Instead create a stub DIE without a type if we have a
12161 context DIE present.
12163 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
12165 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12167 2015-06-02 Bin Cheng <bin.cheng@arm.com>
12169 PR tree-optimization/48052
12170 * cfgloop.h (struct control_iv): New.
12171 (struct loop): New field control_ivs.
12172 * tree-ssa-loop-niter.c : Include "stor-layout.h".
12173 (number_of_iterations_lt): Set no_overflow information.
12174 (number_of_iterations_exit): Init control iv in niter struct.
12175 (record_control_iv): New.
12176 (estimate_numbers_of_iterations_loop): Call record_control_iv.
12177 (loop_exits_before_overflow): New. Interface factored out of
12178 scev_probably_wraps_p.
12179 (scev_probably_wraps_p): Factor loop niter related code into
12180 loop_exits_before_overflow.
12181 (free_numbers_of_iterations_estimates_loop): Free control ivs.
12182 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12184 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
12186 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12187 the target doesn't belong to the current function.
12189 2015-06-02 Marek Polacek <polacek@redhat.com>
12191 PR middle-end/66345
12192 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12193 get_maxval_strlen does not produce an INTEGER_CST.
12195 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
12197 * config/arc/constraints.md: Use lower-case names in match_code.
12198 * config/mmix/constraints.md: Likewise.
12200 2015-06-02 Richard Biener <rguenther@suse.de>
12202 PR tree-optimization/65961
12203 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12204 check and clarify dump message.
12205 (vect_build_slp_tree): If all children are built up from scalars
12206 build up the parent from scalars instead.
12207 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12209 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12212 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
12213 instead of print ... .
12215 2015-06-02 Alan Modra <amodra@gmail.com>
12217 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12220 2015-06-02 Bin Cheng <bin.cheng@arm.com>
12222 PR tree-optimization/52563
12223 PR tree-optimization/62173
12224 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
12225 (alloc_iv, set_iv): New parameter.
12226 (determine_biv_step): Delete.
12227 (find_bivs): Inline original determine_biv_step. Pass new
12228 argument to set_iv.
12229 (idx_find_step): Use no_overflow information for conversion.
12230 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12231 resolve_mixers handle folded_casts.
12232 (instantiate_scev_name): Change bool parameter to bool pointer.
12233 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12234 (instantiate_array_ref, instantiate_scev_not): Ditto.
12235 (instantiate_scev_3, instantiate_scev_2): Ditto.
12236 (instantiate_scev_1, instantiate_scev_r): Ditto.
12237 (instantiate_scev_convert, ): Change parameter. Pass argument
12238 to chrec_convert_aggressive.
12239 (instantiate_scev): Change argument.
12240 (resolve_mixers): New parameter and set it.
12241 (scev_const_prop): New argument.
12242 * tree-scalar-evolution.h (resolve_mixers): New parameter.
12243 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12245 (chrec_convert): New parameter. Move definition below.
12246 (chrec_convert_aggressive): New parameter and set it. Call
12247 convert_affine_scev.
12248 * tree-chrec.h (chrec_convert): New parameter.
12249 (chrec_convert_aggressive): Ditto.
12251 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
12253 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12254 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12255 the LHS of a no-return call if its type has variable size.
12256 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12257 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12259 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
12261 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12262 * config.in: Regenerate.
12264 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
12266 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12267 consecutive accesses within outer-loop with force_vectorize
12268 for references with zero step in inner-loop.
12270 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
12272 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12273 rather than from gcc/build directory.
12275 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
12278 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12279 for __sync memory models, emit initial loads and final barriers as
12282 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
12285 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12286 (aarch64_split_atomic_op): Check for __sync memory models, emit
12287 appropriate initial loads and final barriers.
12289 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
12291 * Makefile.in: Fix gcov dependencies that should
12292 not point to a build folder.
12294 2015-06-01 Richard Biener <rguenther@suse.de>
12297 2015-05-29 Richard Biener <rguenther@suse.de>
12299 PR tree-optimization/66314
12300 * tree-ssa-threadupdate.c (create_block_for_threading): Add
12301 parameter that says which loop the new block belongs to.
12302 (ssa_create_duplicates): Blocks duplicated for the threaded
12303 path belong to the loop of the thread destination.
12305 2015-06-01 Martin Liska <mliska@suse.cz>
12307 * sched-deps.c: Include pool-alloc.h before
12308 cselib.h header file is included.
12310 2015-06-01 Richard Biener <rguenther@suse.de>
12312 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12315 2015-06-01 Martin Liska <mliska@suse.cz>
12317 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12318 a function local variable.
12320 2015-06-01 Martin Liska <mliska@suse.cz>
12322 * alloc-pool.c (create_alloc_pool): Remove.
12323 (empty_alloc_pool): Likewise.
12324 (free_alloc_pool): Likewise.
12325 (free_alloc_pool_if_empty): Likewise.
12326 (pool_alloc): Likewise.
12327 (pool_free): Likewise.
12328 * alloc-pool.h: Remove old declarations.
12330 2015-06-01 Martin Liska <mliska@suse.cz>
12332 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12333 (ira_create_object): Likewise.
12334 (ira_create_allocno): Likewise.
12335 (ira_create_live_range): Likewise.
12336 (copy_live_range): Likewise.
12337 (ira_finish_live_range): Likewise.
12338 (ira_free_allocno_costs): Likewise.
12339 (finish_allocno): Likewise.
12340 (finish_allocnos): Likewise.
12341 (initiate_prefs): Likewise.
12342 (ira_create_pref): Likewise.
12343 (finish_pref): Likewise.
12344 (finish_prefs): Likewise.
12345 (initiate_copies): Likewise.
12346 (ira_create_copy): Likewise.
12347 (finish_copy): Likewise.
12348 (finish_copies): Likewise.
12349 (finish_prefs): Likewise.
12351 2015-06-01 Martin Liska <mliska@suse.cz>
12353 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12354 (allocate_and_init_ipcp_value): Likewise.
12355 (ipcp_lattice::add_value): Likewise.
12356 (merge_agg_lats_step): Likewise.
12357 (ipcp_driver): Likewise.
12358 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12359 (ipa_free_all_structures_after_iinln): Likewise.
12360 * ipa-prop.h: Likewise.
12362 2015-06-01 Martin Liska <mliska@suse.cz>
12364 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12366 (set_hint_predicate): Likewise.
12367 (inline_summary_alloc): Likewise.
12368 (reset_inline_edge_summary): Likewise.
12369 (reset_inline_summary): Likewise.
12370 (set_cond_stmt_execution_predicate): Likewise.
12371 (set_switch_stmt_execution_predicate): Likewise.
12372 (compute_bb_predicates): Likewise.
12373 (estimate_function_body_sizes): Likewise.
12374 (inline_free_summary): Likewise.
12376 2015-06-01 Martin Liska <mliska@suse.cz>
12378 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12379 (ipa_edge_duplication_hook): Likewise.
12380 (ipa_free_all_structures_after_ipa_cp): Likewise.
12381 (ipa_free_all_structures_after_iinln): Likewise.
12383 2015-06-01 Martin Liska <mliska@suse.cz>
12385 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12386 (ipa_profile_generate_summary): Likewise.
12387 (ipa_profile_read_summary): Likewise.
12388 (ipa_profile): Likewise.
12390 2015-06-01 Martin Liska <mliska@suse.cz>
12392 * tree-ssa-structalias.c (new_var_info): Use new type-based
12394 (new_constraint): Likewise.
12395 (init_alias_vars): Likewise.
12396 (delete_points_to_sets): Likewise.
12398 2015-06-01 Martin Liska <mliska@suse.cz>
12400 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12401 (free_strinfo): Likewise.
12402 (pass_strlen::execute): Likewise.
12404 2015-06-01 Martin Liska <mliska@suse.cz>
12406 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12408 (vn_reference_insert_pieces): Likewise.
12409 (vn_phi_insert): Likewise.
12410 (visit_reference_op_call): Likewise.
12411 (copy_phi): Likewise.
12412 (copy_reference): Likewise.
12413 (process_scc): Likewise.
12414 (allocate_vn_table): Likewise.
12415 (free_vn_table): Likewise.
12417 2015-06-01 Martin Liska <mliska@suse.cz>
12419 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12421 (add_repeat_to_ops_vec): Likewise.
12422 (get_ops): Likewise.
12423 (maybe_optimize_range_tests): Likewise.
12424 (init_reassoc): Likewise.
12425 (fini_reassoc): Likewise.
12427 2015-06-01 Martin Liska <mliska@suse.cz>
12429 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12431 (bitmap_set_new): Likewise.
12432 (get_or_alloc_expr_for_constant): Likewise.
12433 (get_or_alloc_expr_for): Likewise.
12434 (phi_translate_1): Likewise.
12435 (compute_avail): Likewise.
12436 (init_pre): Likewise.
12437 (fini_pre): Likewise.
12439 2015-06-01 Martin Liska <mliska@suse.cz>
12441 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12442 (delete_dep_node): Likewise.
12443 (create_deps_list): Likewise.
12444 (free_deps_list): Likewise.
12445 (sched_deps_init): Likewise.
12446 (sched_deps_finish): Likewise.
12448 2015-06-01 Martin Liska <mliska@suse.cz>
12450 * regcprop.c (free_debug_insn_changes): Use new type-based
12452 (replace_oldest_value_reg): Likewise.
12453 (pass_cprop_hardreg::execute): Likewise.
12455 2015-06-01 Martin Liska <mliska@suse.cz>
12457 * ira-build.c (initiate_cost_vectors): Use new type-based
12459 (ira_allocate_cost_vector): Likewise.
12460 (ira_free_cost_vector): Likewise.
12461 (finish_cost_vectors): Likewise.
12463 2015-06-01 Martin Liska <mliska@suse.cz>
12465 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12467 (free_sched_pools): Likewise.
12468 * sel-sched-ir.h (_list_alloc): Likewise.
12469 (_list_remove): Likewise.
12471 2015-06-01 Martin Liska <mliska@suse.cz>
12473 * stmt.c (add_case_node): Use new type-based pool allocator.
12474 (expand_case): Likewise.
12475 (expand_sjlj_dispatch_table): Likewise.
12477 2015-06-01 Martin Liska <mliska@suse.cz>
12479 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12480 (free_bb): Likewise.
12481 (pass_cse_reciprocals::execute): Likewise.
12483 2015-06-01 Martin Liska <mliska@suse.cz>
12485 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12486 (sra_deinitialize) Likewise.
12487 (create_access_1) Likewise.
12488 (build_accesses_from_assign) Likewise.
12489 (create_artificial_child_access) Likewise.
12491 2015-06-01 Martin Liska <mliska@suse.cz>
12493 * dse.c (get_group_info):Use new type-based pool allocator.
12494 (dse_step0) Likewise.
12495 (free_store_info) Likewise.
12496 (delete_dead_store_insn) Likewise.
12497 (free_read_records) Likewise.
12498 (record_store) Likewise.
12499 (replace_read) Likewise.
12500 (check_mem_read_rtx) Likewise.
12501 (scan_insn) Likewise.
12502 (dse_step1) Likewise.
12503 (dse_step7) Likewise.
12505 2015-06-01 Martin Liska <mliska@suse.cz>
12507 * df-scan.c (struct df_scan_problem_data):Use new type-based
12509 (df_scan_free_internal) Likewise.
12510 (df_scan_alloc) Likewise.
12511 (df_grow_reg_info) Likewise.
12512 (df_free_ref) Likewise.
12513 (df_insn_create_insn_record) Likewise.
12514 (df_mw_hardreg_chain_delete) Likewise.
12515 (df_insn_info_delete) Likewise.
12516 (df_free_collection_rec) Likewise.
12517 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
12518 (df_sort_and_compress_mws) Likewise.
12519 (df_ref_create_structure) Likewise.
12520 (df_ref_record) Likewise.
12522 2015-06-01 Martin Liska <mliska@suse.cz>
12524 * df-problems.c (df_chain_create):Use new type-based pool allocator.
12525 (df_chain_unlink_1) Likewise.
12526 (df_chain_unlink) Likewise.
12527 (df_chain_remove_problem) Likewise.
12528 (df_chain_alloc) Likewise.
12529 (df_chain_free) Likewise.
12530 * df.h (struct dataflow) Likewise.
12532 2015-06-01 Martin Liska <mliska@suse.cz>
12534 * cselib.c (new_elt_list):Use new type-based pool allocator.
12535 (new_elt_loc_list) Likewise.
12536 (unchain_one_elt_list) Likewise.
12537 (unchain_one_elt_loc_list) Likewise.
12538 (unchain_one_value) Likewise.
12539 (new_cselib_val) Likewise.
12540 (cselib_init) Likewise.
12541 (cselib_finish) Likewise.
12543 2015-06-01 Martin Liska <mliska@suse.cz>
12545 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
12546 (sh_reorg) Likewise.
12548 2015-06-01 Martin Liska <mliska@suse.cz>
12550 * cfg.c (initialize_original_copy_tables):Use new type-based
12552 (free_original_copy_tables) Likewise.
12553 (copy_original_table_clear) Likewise.
12554 (copy_original_table_set) Likewise.
12556 2015-06-01 Martin Liska <mliska@suse.cz>
12558 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
12560 (asan_mem_ref_new) Likewise.
12561 (free_mem_ref_resources) Likewise.
12563 2015-06-01 Martin Liska <mliska@suse.cz>
12565 * var-tracking.c (variable_htab_free):Use new type-based
12567 (attrs_list_clear) Likewise.
12568 (attrs_list_insert) Likewise.
12569 (attrs_list_copy) Likewise.
12570 (shared_hash_unshare) Likewise.
12571 (shared_hash_destroy) Likewise.
12572 (unshare_variable) Likewise.
12573 (var_reg_delete_and_set) Likewise.
12574 (var_reg_delete) Likewise.
12575 (var_regno_delete) Likewise.
12576 (drop_overlapping_mem_locs) Likewise.
12577 (variable_union) Likewise.
12578 (insert_into_intersection) Likewise.
12579 (canonicalize_values_star) Likewise.
12580 (variable_merge_over_cur) Likewise.
12581 (dataflow_set_merge) Likewise.
12582 (remove_duplicate_values) Likewise.
12583 (variable_post_merge_new_vals) Likewise.
12584 (dataflow_set_preserve_mem_locs) Likewise.
12585 (dataflow_set_remove_mem_locs) Likewise.
12586 (variable_from_dropped) Likewise.
12587 (variable_was_changed) Likewise.
12588 (set_slot_part) Likewise.
12589 (clobber_slot_part) Likewise.
12590 (delete_slot_part) Likewise.
12591 (loc_exp_insert_dep) Likewise.
12592 (notify_dependents_of_changed_value) Likewise.
12593 (emit_notes_for_differences_1) Likewise.
12594 (vt_emit_notes) Likewise.
12595 (vt_initialize) Likewise.
12596 (vt_finalize) Likewise.
12598 2015-06-01 Martin Liska <mliska@suse.cz>
12600 * ira-color.c (init_update_cost_records):Use new type-based
12602 (get_update_cost_record) Likewise.
12603 (free_update_cost_record_list) Likewise.
12604 (finish_update_cost_records) Likewise.
12605 (initiate_cost_update) Likewise.
12607 2015-06-01 Martin Liska <mliska@suse.cz>
12609 * lra.c (init_insn_regs): Use new type-based pool allocator.
12610 (new_insn_reg) Likewise.
12611 (free_insn_reg) Likewise.
12612 (free_insn_regs) Likewise.
12613 (finish_insn_regs) Likewise.
12614 (init_insn_recog_data) Likewise.
12615 (init_reg_info) Likewise.
12616 (finish_reg_info) Likewise.
12617 (lra_free_copies) Likewise.
12618 (lra_create_copy) Likewise.
12619 (invalidate_insn_data_regno_info) Likewise.
12621 2015-06-01 Martin Liska <mliska@suse.cz>
12623 * lra-lives.c (free_live_range): Use new type-based pool allocator.
12624 (free_live_range_list) Likewise.
12625 (create_live_range) Likewise.
12626 (copy_live_range) Likewise.
12627 (lra_merge_live_ranges) Likewise.
12628 (remove_some_program_points_and_update_live_ranges) Likewise.
12629 (lra_live_ranges_init) Likewise.
12630 (lra_live_ranges_finish) Likewise.
12632 2015-06-01 Martin Liska <mliska@suse.cz>
12634 * et-forest.c (et_new_occ): Use new type-based pool allocator.
12635 (et_new_tree): Likewise.
12636 (et_free_tree): Likewise.
12637 (et_free_tree_force): Likewise.
12638 (et_free_pools): Likewise.
12639 (et_split): Likewise.
12641 2015-06-01 Martin Liska <mliska@suse.cz>
12643 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
12645 * alloc-pool.h (pool_allocator::pool_allocator): New function.
12646 (pool_allocator::release): Likewise.
12647 (inline pool_allocator::release_if_empty): Likewise.
12648 (inline pool_allocator::~pool_allocator): Likewise.
12649 (pool_allocator::allocate): Likewise.
12650 (pool_allocator::remove): Likewise.
12652 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
12654 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
12657 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
12659 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
12661 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
12662 (arm_macro_fusion_p): Likewise.
12663 (arm_macro_fusion_pair_p): Likewise.
12665 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
12667 * config/aarch64/aarch64-protos.h (tune_params): Rename
12668 fuseable_ops to fusible_ops.
12669 * config/aarch64/aarch64.c (generic_tunings): Rename
12670 fuseable_ops to fusible_ops.
12671 (cortexa53_tunings): Likewise.
12672 (cortexa57_tunings): Likewise.
12673 (thunderx_tunings): Likewise.
12674 (xgene1_tunings): Likewise.
12675 (aarch64_macro_fusion_p): Likewise.
12676 (aarch64_macro_fusion_pair_p): Likewise.
12678 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
12680 * config/s390/driver-native.c: New file.
12681 * config/s390/x-native: New file.
12682 * config.host: Add new files for s390.
12683 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
12685 * config.gcc: Likewise.
12686 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
12687 * config/s390/s390-opts.h (enum processor_type): Ditto.
12688 * config/s390/s390.c (s390_option_override): Catch unhandled
12691 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
12694 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
12695 redirection for instrumented calls.
12696 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
12697 (append_compiler_options): Append -fcheck-pointer-bounds.
12698 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
12699 (chkp_redirect_edge): New.
12700 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
12701 (chkp_redirect_edge): New.
12703 2015-06-01 Richard Biener <rguenther@suse.de>
12705 PR tree-optimization/66280
12706 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
12709 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12711 * config/aarch64/aarch64.md
12712 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
12715 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
12717 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
12718 Remove obsolete kludge.
12720 2015-06-01 Richard Biener <rguenther@suse.de>
12722 * tree-ssa-reassoc.c (get_rank): Simplify.
12724 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
12726 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
12727 * configure: Regenerated.
12729 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
12731 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
12732 issue (add space between string literal and macro).
12733 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
12735 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
12737 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
12738 implict or explicit -fPIE or -fpie.
12740 2015-05-30 Mike Frysinger <vapier@gentoo.org>
12742 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
12744 2015-05-28 DJ Delorie <dj@redhat.com>
12746 * expmed.c (extract_bit_field_1): Avoid clobbering a
12747 yet-to-be-used base/index register.
12749 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
12751 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
12752 (alias_stats): Add num_universal.
12753 (alias_set_subset_of): Special case pointers; be ready for NULL
12755 (alias_sets_conflict_p): Special case pointers; be ready for NULL
12757 (init_alias_set_entry): Break out from ...
12758 (record_alias_subset): ... here; propagate new fields;
12759 allocate children only when really needed.
12760 (get_alias_set): Do less generous pointer globbing.
12761 (dump_alias_stats_in_alias_c): Update statistics.
12763 2015-05-30 Alan Modra <amodra@gmail.com>
12765 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
12766 correct block for use of r12.
12767 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
12769 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
12772 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
12775 2015-05-29 Jakub Jelinek <jakub@redhat.com>
12777 PR tree-optimization/66142
12778 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
12779 virtual phis that feed themselves.
12781 2015-05-29 Richard Biener <rguenther@suse.de>
12783 PR tree-optimization/66314
12784 * tree-ssa-threadupdate.c (create_block_for_threading): Add
12785 parameter that says which loop the new block belongs to.
12786 (ssa_create_duplicates): Blocks duplicated for the threaded
12787 path belong to the loop of the thread destination.
12789 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12791 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
12792 to cleanup-saved-temps.
12793 * doc/sourcebuild.texi (Clean up generated test files): Expand
12795 (dg-keep-saved-temps): Document new proc.
12796 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
12797 cleanup-saved-temps): Remove.
12799 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
12801 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
12802 gcc_AC_CHECK_DECLS.
12803 * configure: Regenerate.
12805 2015-05-28 Mike Frysinger <vapier@gentoo.org>
12807 * config/nios2/linux.h (CPP_SPEC): Define.
12809 2015-05-28 Mike Frysinger <vapier@gentoo.org>
12811 * config/microblaze/linux.h (CPP_SPEC): Define.
12813 2015-05-28 Mike Frysinger <vapier@gentoo.org>
12815 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
12816 -pthread is specified.
12818 2015-05-28 Richard Biener <rguenther@suse.de>
12820 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
12821 (vect_fixup_scalar_cycles_with_patterns): Likewise.
12822 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
12823 after pattern recog.
12824 (vect_create_epilog_for_reduction): Properly handle reductions
12826 (vectorizable_reduction): Likewise.
12827 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
12829 (vect_get_constant_vectors): Create the correct number of
12830 initial values for reductions.
12831 (vect_schedule_slp_instance): Handle reduction chains that are
12832 type changing properly.
12833 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
12835 2015-05-28 Richard Biener <rguenther@suse.de>
12837 PR tree-optimization/66142
12838 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
12839 values better in memcpy destination handling. Handle non-aliasing
12842 2015-05-28 Lawrence Velázquez <vq@larryv.me>
12845 * config/darwin-c.c (version_components): New global enum.
12846 (parse_version, version_as_legacy_macro)
12847 (version_as_modern_macro, macosx_version_as_macro): New functions.
12848 (version_as_macro): Remove.
12849 (darwin_cpp_builtins): Use new function.
12851 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
12853 * builtins.c (expand_builtin_acc_on_device): Mark parameters
12854 with ATTRIBUTE_UNUSED.
12856 2015-05-28 Julian Brown <julian@codesourcery.com>
12860 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
12861 sequence for !ACCEL_COMPILER.
12863 2015-05-28 Nick Clifton <nickc@redhat.com>
12865 * config/rx/rx.c (push_regs): New function. Extracts code from...
12866 (rx_expand_prologue): ... here. Use push_regs to push even small
12867 spans of registers.
12868 (pop_regs): New function.
12869 (rx_expand_epilogue): Use pop_regs to pop even small spans of
12872 2015-05-28 Richard Biener <rguenther@suse.de>
12874 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
12876 (SLP_INSTANCE_BODY_COST_VEC): Remove.
12877 (vect_update_slp_costs_according_to_vf): Likewise.
12878 (vect_slp_analyze_operations): Update prototype.
12879 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
12880 vect_update_slp_costs_according_to_vf, adjust.
12881 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
12882 (vect_analyze_slp_cost_1): Likewise.
12883 (vect_analyze_slp_cost): Likewise. Properly deal with
12884 widening reduction ops. Commit body costs.
12885 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
12886 cost for loops from here.
12887 (vect_slp_analyze_operations): But do it from here when
12888 the vectorization factor is known and stmts are analyzed.
12889 (vect_bb_vectorization_profitable_p): Simplify.
12890 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
12891 (vect_update_slp_costs_according_to_vf): Remove.
12893 2015-05-27 Magnus Granberg <zorry@gentoo.org>
12894 H.J. Lu <hongjiu.lu@intel.com>
12896 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
12897 (BUILD_CFLAGS): Likewise.
12898 (BUILD_CXXFLAGS): Likewise.
12899 (LINKER): Add @NO_PIE_FLAG@.
12900 (BUILD_LDFLAGS): Likewise.
12901 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
12902 --enable-default-pie.
12903 * common.opt (fPIE): Initialize to -1.
12905 (no-pie): New option.
12906 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
12907 * configure.ac: Add --enable-default-pie.
12908 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
12909 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
12910 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
12911 * gcc.c (NO_PIE_SPEC): New.
12912 (PIE_SPEC): Likewise.
12913 (NO_FPIE1_SPEC): Likewise.
12914 (FPIE1_SPEC): Likewise.
12915 (NO_FPIE2_SPEC): Likewise.
12916 (FPIE2_SPEC): Likewise.
12917 (NO_FPIE2_SPEC): Likewise.
12918 (FPIE_SPEC): Likewise.
12919 (NO_FPIE_SPEC): Likewise.
12920 (NO_FPIC1_SPEC): Likewise.
12921 (FPIC1_SPEC): Likewise.
12922 (NO_FPIC2_SPEC): Likewise.
12923 (FPIC2_SPEC): Likewise.
12924 (NO_FPIC2_SPEC): Likewise.
12925 (FPIC_SPEC): Likewise.
12926 (NO_FPIC_SPEC): Likewise.
12927 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
12928 (FPIE1_OR_FPIC1_SPEC): Likewise.
12929 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
12930 (FPIE2_OR_FPIC2_SPEC): Likewise.
12931 (NO_FPIE_AND_FPIC_SPEC): Likewise.
12932 (FPIE_OR_FPIC_SPEC): Likewise.
12933 (LD_PIE_SPEC): Likewise.
12934 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
12935 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
12936 * config/darwin.h (PIE_SPEC): Renamed to ...
12937 (DARWIN_PIE_SPEC): This.
12938 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
12939 * config/darwin9.h (PIE_SPEC): Renamed to ...
12940 (DARWIN_PIE_SPEC): This.
12941 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
12942 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
12943 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
12944 FPIE2_OR_FPIC2_SPEC.
12945 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
12946 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
12947 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
12948 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
12949 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
12950 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
12951 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
12952 * config/m32r/m32r.h (ASM_SPEC): Likewise.
12953 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
12954 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12955 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
12956 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
12957 * config/sparc/linux.h (ASM_SPEC): Likewise.
12958 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12959 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
12960 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
12961 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12962 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12963 * config/sparc/sparc.h (ASM_SPEC): Likewise.
12964 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
12965 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
12966 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
12967 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
12968 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
12969 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
12970 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
12971 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
12972 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
12973 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
12974 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
12975 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
12976 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12977 * config/vax/linux.h (ASM_SPEC): Likewise.
12978 * doc/install.texi: Document --enable-default-pie.
12979 * doc/invoke.texi: Document -no-pie.
12980 * config.in: Regenerated.
12981 * configure: Likewise.
12983 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12985 PR rtl-optimization/66168
12986 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
12987 can_move_invariant_reg.
12989 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
12992 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
12993 REG_EQUAL note when doing insert.
12995 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
12996 instead of "%d" for 'o' operand.
12998 2015-05-27 Nathan Sidwell <nathan@acm.org>
13001 * tree.c (build_pointer_type_for_mode): Canonical type does not
13002 inherit can_alias_all.
13003 (build_reference_type_for_mode): Likewise.
13005 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
13007 * expr.h (array_at_struct_end_p): Move to...
13008 (array_ref_element_size): Likewise.
13009 (component_ref_field_offset): Likewise.
13010 * tree.h (array_ref_element_size): ...here.
13011 (array_at_struct_end_p): Likewise.
13012 (component_ref_field_offset): Likewise.
13013 * expr.c (array_ref_element_size): Move to...
13014 (array_ref_low_bound): Likewise.
13015 (array_at_struct_end_p): Likewise.
13016 (array_ref_up_bound): Likewise.
13017 (component_ref_field_offset): Likewise.
13018 * tree.c (array_ref_element_size): ...here.
13019 (array_ref_low_bound): Likewise.
13020 (array_ref_up_bound): Likewise.
13021 (array_at_struct_end_p): Likewise.
13022 (component_ref_field_offset): Likewise.
13024 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
13025 Szabolcs Nagy <szabolcs.nagy@arm.com>
13027 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13029 2015-05-27 Jason Merrill <jason@redhat.com>
13032 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13033 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13034 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13036 2015-05-22 Aditya Kumar <hiraditya@msn.com>
13038 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13041 * statistics.c (statistics_fini_pass): Print pass name.
13043 2015-05-27 Richard Biener <rguenther@suse.de>
13045 PR tree-optimization/66272
13047 2014-08-15 Richard Biener <rguenther@suse.de>
13049 PR tree-optimization/62031
13050 * tree-data-ref.c (dr_analyze_indices): Do not set
13051 DR_UNCONSTRAINED_BASE.
13052 (dr_may_alias_p): All indirect accesses have to go the
13053 formerly DR_UNCONSTRAINED_BASE path.
13054 * tree-data-ref.h (struct indices): Remove
13055 unconstrained_base member.
13056 (DR_UNCONSTRAINED_BASE): Remove.
13058 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
13060 * dwarf2out.c: Remove block_map.
13061 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13062 (gen_lexical_block_die): Same.
13063 (dwarf2out_function_decl): Remove block_map use.
13064 (dwarf2out_c_finalize): Same.
13065 * tree-core.h (struct tree_block): Add die field.
13066 * tree.h (BLOCK_DIE): New.
13068 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13071 * expr.c (memory_load_overlap): New function.
13072 (emit_push_insn): When pushing partial args to the stack would
13073 clobber the register part load the overlapping part into a pseudo
13074 and put it into the hard reg after pushing. Change return type
13075 to bool. Add bool argument.
13076 * expr.h (emit_push_insn): Change return type to bool.
13078 * calls.c (expand_call): Cancel sibcall optimization when encountering
13079 partial argument on targets with ARGS_GROW_DOWNWARD and
13080 !STACK_GROWS_DOWNWARD.
13081 (emit_library_call_value_1): Update callsite of emit_push_insn.
13082 (store_one_arg): Likewise.
13084 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
13086 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13088 2015-05-27 Martin Liska <mliska@suse.cz>
13090 * Makefile.in: Add additional dependencies related to memory report
13092 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13093 * bitmap.c (struct bitmap_descriptor_d): Remove.
13094 (struct loc): Likewise.
13095 (struct bitmap_desc_hasher): Likewise.
13096 (bitmap_desc_hasher::hash): Likewise.
13097 (bitmap_desc_hasher::equal): Likewise.
13098 (get_bitmap_descriptor): Likewise.
13099 (bitmap_register): User new memory descriptor API.
13100 (register_overhead): Likewise.
13101 (bitmap_find_bit): Register nsearches and search_iter statistics.
13102 (struct bitmap_output_info): Remove.
13103 (print_statistics): Likewise.
13104 (dump_bitmap_statistics): Use new memory descriptor.
13105 * bitmap.h (struct bitmap_usage): New class.
13106 * genmatch.c: Extend header file inclusion.
13107 * genpreds.c: Likewise.
13108 * ggc-common.c (struct ggc_usage): New class.
13109 (struct ggc_loc_desc_hasher): Remove.
13110 (ggc_loc_desc_hasher::hash): Likewise.
13111 (ggc_loc_desc_hasher::equal): Likewise.
13112 (struct ggc_ptr_hash_entry): Likewise.
13113 (struct ptr_hash_hasher): Likewise.
13114 (ptr_hash_hasher::hash): Likewise.
13115 (ptr_hash_hasher::equal): Likewise.
13116 (make_loc_descriptor): Likewise.
13117 (ggc_prune_ptr): Likewise.
13118 (dump_ggc_loc_statistics): Use new memory descriptor.
13119 (ggc_record_overhead): Likewise.
13120 (ggc_free_overhead): Likewise.
13121 (final_cmp_statistic): Remove.
13122 (cmp_statistic): Likewise.
13123 (ggc_add_statistics): Liekwise.
13124 (ggc_prune_overhead_list): Likewise.
13125 * hash-map-traits.h: New file.
13126 * hash-map.h (struct default_hashmap_traits): Move the traits to a
13127 separate header file.
13128 * hash-set.h: Pass memory statistics info to ctor.
13129 * hash-table.c (void dump_hash_table_loc_statistics): New function.
13130 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13131 (hash_table::~hash_table): Register memory release operation.
13132 (hash_table::alloc_entries): Handle memory allocation operation.
13133 (hash_table::expand): Likewise.
13134 * inchash.c (iterative_hash_hashval_t): Move implementation to header
13136 (iterative_hash_host_wide_int): Likewise.
13137 * inchash.h (class hash): Likewise.
13138 * mem-stats-traits.h: New file.
13139 * mem-stats.h: New file.
13140 (mem_location): Add new class.
13141 (mem_usage): Likewise.
13142 (mem_alloc_description): Likewise.
13143 * sese.c: Add new header file inclusision.
13144 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13146 * tree-sra.c: Add new header file inclusision.
13147 * vec.c (struct vec_descriptor): Remove.
13148 (hash_descriptor): Likewise.
13149 (struct vec_usage): Likewise.
13150 (struct ptr_hash_entry): Likewise.
13151 (hash_ptr): Likewise.
13152 (eq_ptr): Likewise.
13153 (vec_prefix::register_overhead): Use new memory descriptor API.
13154 (vec_prefix::release_overhead): Likewise.
13155 (add_statistics): Remove.
13156 (dump_vec_loc_statistics): Use new memory descriptor API.
13157 * vec.h (struct vec_prefix): Likewise.
13158 (va_heap::reserve): Likewise.
13159 (va_heap::release): Likewise.
13160 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13162 2015-05-27 Richard Biener <rguenther@suse.de>
13164 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13165 earlier and remove ??? comment.
13166 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13167 and got called from loop analysis bail out. Always pass the SLP
13168 node to the vectorizable_* functions.
13169 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13170 the premature SLP check here.
13171 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13172 detected SLP stmts.
13173 (vect_detect_hybrid_slp_1): Likewise.
13175 2015-05-26 Jeff Law <law@redhat.com>
13177 * combine.c (find_split_point): Verify that the shift count is a
13178 constant when choosing (plus (ashift ...)) as a split point.
13180 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13181 No functional changes.
13183 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
13185 * ipa-polymorphic-call.c
13186 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13187 case when call target is already known.
13189 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
13192 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13193 take into account the case that operands[1] and operands[2]
13194 are the same register.
13196 2015-05-26 Michael Matz <matz@suse.de>
13198 PR middle-end/66251
13200 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13202 (vect_create_vectorized_demotion_stmts): Always set
13203 STMT_VINFO_VEC_STMT, also with SLP.
13204 (vectorizable_store): Handle strided group stores.
13206 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13209 * config/aarch64/aarch64.md
13210 (*adds_shift_imm_<mode>): New pattern.
13211 (*subs_shift_imm_<mode>): Likewise.
13212 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13213 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13214 (*add_uxt<mode>_shift2): Likewise.
13215 (*add_uxtsi_shift2_uxtw): Likewise.
13216 (*sub_uxt<mode>_shift2): Likewise.
13217 (*sub_uxtsi_shift2_uxtw): Likewise.
13219 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
13221 * config/rs6000/constraints.md (Y, U): Use match_test.
13223 2015-05-26 Christian Bruel <christian.bruel@st.com>
13226 * config/arm/arm.c (arm_option_check_internal)
13227 (arm_option_params_internal): Check opts->target_flags to set macros.
13228 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13229 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13230 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13231 (builtin_define): Replaced with def_or_undef_macro.
13232 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13233 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13234 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13235 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13236 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13237 (TARGET_ARM_FEATURE_LDREX_P)
13238 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13239 * config/arm/arm-c.c (def_or_undef_macro): New function.
13240 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13242 2015-05-26 Christian Bruel <christian.bruel@st.com>
13244 * c-common.h (builtin_define_with_int_value)
13245 (builtin_define_type_sizeof): Declare.
13246 * c-cppbuiltin.c (builtin_define_with_int_value)
13247 (builtin_define_type_sizeof): Externalize.
13248 (builtin_define_std): Cleanup declaration.
13249 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13250 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13251 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13252 (builtin_define, builtin_assert): New macros.
13254 2015-05-26 Richard Biener <rguenther@suse.de>
13256 PR tree-optimization/66142
13257 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13258 MEM_REFs for the same base address.
13260 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13263 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13265 2015-05-26 Jason Merrill <jason@redhat.com>
13267 * configure.ac: Set CXXFLAGS for ISL test.
13268 * configure: Regenerate.
13270 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
13271 strstr and basename.
13272 * configure: Regenerate.
13274 2015-05-26 Richard Biener <rguenther@suse.de>
13276 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13277 X % C -> X & (C - 1) for C being a power-of two to ...
13278 * match.pd: ... patterns.
13280 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
13282 * match.pd (swapped_tcc_comparison): New operator list.
13283 (-A CMP -B): New simplification.
13284 * fold-const.c (fold_comparison): Remove corresponding code.
13286 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
13288 * caller-save.c (init_caller_save): Base temporary register numbers
13289 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13290 * cfgloopanal.c (init_set_costs): Likewise.
13291 * dojump.c (prefer_and_bit_test): Likewise.
13292 * expr.c (init_expr_target): Likewise.
13293 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13294 * lower-subreg.c (init_lower_subreg): Likewise.
13295 * postreload.c (reload_cse_regs_1): Likewise.
13297 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
13299 * gensupport.h (compute_test_codes): Declare.
13300 * gensupport.c (compute_predicate_codes): Rename to...
13301 (compute_test_codes): ...this. Generalize error message.
13302 (process_define_predicate): Update accordingly.
13303 * genpreds.c (compute_maybe_allows): Delete.
13304 (add_constraint): Use compute_test_codes to determine whether
13305 something can accept a SUBREG, REG or MEM.
13307 2015-05-26 Torvald Riegel <triegel@redhat.com>
13309 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13310 'memory model' to align with C++11; fix description of memory orders;
13313 2015-05-26 Richard Biener <rguenther@suse.de>
13315 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13316 (vect_analyze_loop_operations): ... here. Remove slp parameter,
13317 detect whether we apply SLP. Remove call to
13318 vect_update_slp_costs_according_to_vf.
13319 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13320 vect_update_slp_costs_according_to_vf from here. Dispatch
13321 to vect_slp_analyze_operations to analyze SLP stmts.
13322 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13323 unused bb_vec_info parameter, adjust assert.
13324 (vect_slp_analyze_operations): Pass in the slp instance tree
13325 instead of bb_vec_info.
13326 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13327 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13329 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
13331 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13332 Q_REGS. Expand comment.
13333 (REG_CLASS_NAMES): Ditto.
13334 (REG_CLASS_CONTENTS): Ditto.
13336 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
13339 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13340 when LEGACY_INT_REGNO_P is processed.
13342 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
13344 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13346 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13348 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13349 register if not marked dead/unused, before return.
13351 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13354 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13355 is set; check for assembler name at LTO time.
13356 (type_in_anonymous_namespace): Remove hacks, check that all
13357 anonymous types are called "<anon>"
13358 (odr_type_p): Simplify; add check for "<anon>"
13359 (odr_subtypes_equivalent): Add odr_type_p check.
13360 * tree.c (need_assembler_name_p): Even anonymous namespace needs
13363 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13365 * ipa-utils.h (method_class_type): Remove.
13366 * cgraphunit.c (walk_polymorphic_call_targets): Use
13367 TYPE_METHOD_BASETYPE.
13368 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13369 on main variants only.
13370 (method_class_type): Remove.
13371 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13372 (build_type_inheritance_graph): Likewise.
13373 * ipa-icf.c (sem_function::equals_wpa): Likewise.
13374 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13375 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13377 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
13379 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13380 is_typedef_decl, typedef_variant_p): Constify.
13381 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13382 is_typedef_decl, typedef_variant_p): Constify.
13384 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13386 * defaults.h (gen_tablejump): New function.
13387 (HAVE_tablejump): Add default value.
13389 * stmt.c: Likewise.
13391 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13393 * defaults.h (gen_store_multiple): New function.
13394 (HAVE_store_multiple): Add default value.
13395 * expr.c (move_block_from_reg): Adjust.
13397 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13399 * defaults.h (gen_load_multiple): New function.
13400 (HAVE_load_multiple): Add default value.
13401 * expr.c (move_block_to_reg): Adjust.
13403 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13405 * defaults.h (gen_mem_signal_fence): New function.
13406 (HAVE_mem_signal_fence): Add default value.
13407 * optabs.c: Adjust.
13409 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13411 * defaults.h (gen_memory_barrier): New function.
13412 (HAVE_memory_barrier): Add default value.
13413 * optabs.c: Adjust.
13415 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13417 * defaults.h (gen_mem_thread_fence): New function.
13418 (HAVE_mem_thread_fence): Add default definition.
13419 * optabs.c: Adjust.
13421 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13423 * combine.c (find_split_point): Check the value of HAVE_lo_sum
13424 instead of if it is defined.
13425 (combine_simplify_rtx): Likewise.
13426 * lra-constraints.c (process_address_1): Likewise.
13427 * config/darwin.c: Adjust.
13428 * genconfig.c (main): Always define HAVE_lo_sum.
13430 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13432 * genmatch.c (parser::parse_operation): Reject expanding
13433 operator-list inside 'for'.
13435 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13437 * genmatch.c (parser::parse_for): Reject iterator if used as
13440 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13442 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13443 after end of id-list.
13445 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
13447 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13448 we do not try to compute canonical type for type that does not need
13450 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13452 * tree.h (type_with_alias_set_p): New.
13454 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
13456 * tree.c (gimple_canonical_types_compatible_p): Do not compare
13457 function attributes.
13458 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13460 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
13462 * Makefile.in (check_gcc_parallelize): Delete.
13463 (lang_checks_parallelized): Update comment.
13465 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
13467 PR rtl-optimization/66237
13468 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13469 location of an "as_a" cast.
13471 2015-05-22 Jeff Law <law@redhat.com>
13473 * config/pa/pa.md (non-canonical shift-add insns): Remove.
13474 (peepholes with non-canonical RTL sources): Remove.
13475 (peepholes for indexed stores of FP regs in integer modes): Match and
13476 generate canonical RTL.
13478 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13480 PR tree-optimization/63387
13481 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13482 ((x ord x) & (y ord y) -> (x ord y),
13483 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13484 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13485 vectors like scalars.
13487 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13489 * convert.c (convert_to_integer, convert_to_vector): Include the
13490 types in the error message.
13492 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
13494 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13497 2015-05-22 Jeff Law <law@redhat.com>
13499 * config/pa/pa.md (integer_indexed_store splitters): Use
13500 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
13501 insns -- adjusting the constant 2nd operand accordingly.
13503 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13504 (plus (ashift X log2) Y) if it is a split point.
13506 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13507 out of hppa_legitimize_address to handle both forms of a multiply
13509 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13510 Always generate the ASHIFT variant as the result is not directly
13511 used in a MEM. Update comments and refactor slightly to improve
13514 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13517 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
13518 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
13519 (aarch64_composite_type_p): Return false if given type and mode are
13520 for a short vector.
13522 2015-05-22 Richard Biener <rguenther@suse.de>
13524 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
13526 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
13527 patterns when determining whether SLP is pure.
13528 (vect_is_slp_reduction): Remove check for pattern stmts.
13529 (vect_is_simple_reduction_1): Remove dead code.
13530 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
13531 (vect_get_and_check_slp_defs): Pass in the stmt number.
13532 Allow the first def in a reduction to be not a pattern stmt when
13533 the rest of the stmts def are patterns.
13534 (vect_build_slp_tree_1): Allow tcc_expression codes like
13535 SAD_EXPR and DOT_PROD_EXPR.
13536 (vect_build_slp_tree): Adjust.
13537 (vect_analyze_slp): Refactor and move BB vect error message ...
13538 (vect_slp_analyze_bb_1): ... here.
13540 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
13542 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
13543 for CSWTCH temporary.
13545 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13547 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
13548 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
13551 2015-05-22 Richard Biener <rguenther@suse.de>
13553 PR tree-optimization/66251
13554 * tree-vect-stmts.c (vectorizable_conversion): Properly
13555 set STMT_VINFO_VEC_STMT even for the SLP case.
13557 2015-05-22 Marek Polacek <polacek@redhat.com>
13559 * doc/extend.texi: Use @pxref instead of @xref.
13561 2015-05-22 hiraditya <hiraditya@msn.com>
13563 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
13566 2015-05-22 Richard Biener <rguenther@suse.de>
13568 PR tree-optimization/65701
13569 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13570 Move peeling cost models into one place. Peel for alignment
13571 for single loads only if an aligned load is cheaper than
13574 2015-05-22 Marek Polacek <polacek@redhat.com>
13577 * doc/extend.texi (Enumerator Attributes): New section.
13578 Document syntax of enumerator attributes.
13580 2015-05-22 Richard Biener <rguenther@suse.de>
13582 * tree-vect-loop.c (get_reduction_op): New function.
13583 (vect_model_reduction_cost): Use it, add reduc_index parameter.
13584 Make ready for BB reductions.
13585 (vect_create_epilog_for_reduction): Use get_reduction_op.
13586 (vectorizable_reduction): Init reduc_index to a valid value.
13587 Adjust vect_model_reduction_cost call.
13588 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
13589 operand for reduction defaults. Add SAD_EXPR support.
13590 Assert we have a neutral op for SLP reductions.
13591 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
13592 walking pattern stmt ops only recurse to SSA names.
13594 2015-05-22 Richard Biener <rguenther@suse.de>
13596 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
13597 assert with guard, remove check on detected reduction.
13598 (vect_recog_sad_pattern): Likewise.
13599 (vect_recog_widen_sum_pattern): Likewise.
13601 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13603 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
13604 __always_inline__ attribute.
13605 (vaesdq_u8): Likewise.
13606 (vaesmcq_u8): Likewise.
13607 (vaesimcq_u8): Likewise.
13608 (vsha1cq_u32): Likewise.
13609 (vsha1mq_u32): Likewise.
13610 (vsha1pq_u32): Likewise.
13611 (vsha1h_u32): Likewise.
13612 (vsha1su0q_u32): Likewise.
13613 (vsha1su1q_u32): Likewise.
13614 (vsha256hq_u32): Likewise.
13615 (vsha256h2q_u32): Likewise.
13616 (vsha256su0q_u32): Likewise.
13617 (vsha256su1q_u32): Likewise.
13618 (vmull_p64): Likewise.
13619 (vmull_high_p64): Likewise.
13621 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13623 * final.c (final_scan_insn): Don't check HAVE_peephole with the
13625 * output.h: Likewise.
13626 * genconfig.c (main): Alwways define HAVE_peephole.
13627 * genpeep.c: Don't emit checks of HAVE_peephole.
13629 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13631 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
13632 check HAVE_conditional_move with the preprocessor.
13634 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13636 * genconfig.c (main): Always define HAVE_conditional_move.
13637 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
13638 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
13641 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13643 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
13644 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
13645 and FRAME_POINTER_REGNUM with the preprocessor.
13647 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13649 * defaults.h: Add default for STACK_PUSH_CODE.
13650 * expr.c: Don't redefine STACK_PUSH_CODE.
13651 * recog.c: Likewise.
13653 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13655 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
13656 sched-deps.c: Use if instead of preprocessor checks with
13657 STACK_GROWS_DOWNWARD.
13659 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13661 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
13663 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
13664 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
13665 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
13666 * doc/tm.texi: Regenerate.
13668 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
13671 * config/i386/constraints.md (Bg): New constraint for GOT memory
13673 * config/i386/i386.md (*call_got_x32): New pattern.
13674 (*call_value_got_x32): Likewise.
13675 * config/i386/predicates.md (GOT_memory_operand): New predicate.
13677 2015-05-21 Jakub Jelinek <jakub@redhat.com>
13679 PR tree-optimization/66233
13680 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
13683 2015-05-21 Jeff Law <law@redhat.com>
13685 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
13686 than MULT for shadd sequences.
13688 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
13690 * alias.c (alias_stats): New static var.
13691 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
13692 (dump_alias_stats_in_alias_c): New function.
13693 * alias.h (dump_alias_stats_in_alias_c): Declare.
13694 * tree-ssa-alias.c (dump_alias_stats): Call it.
13696 2015-05-08 Michael Matz <matz@suse.de>
13698 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
13700 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
13701 (STMT_VINFO_STRIDED_P): ... this.
13702 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
13703 (vect_verify_datarefs_alignment): Likewise.
13704 (vect_enhance_data_refs_alignment): Likewise.
13705 (vect_analyze_data_ref_access): Likewise.
13706 (vect_analyze_data_refs): Accept strided stores.
13707 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
13708 (vect_model_load_cost): Adjust for macro rename.
13709 (vectorizable_mask_load_store): Likewise.
13710 (vectorizable_load): Likewise.
13711 (vectorizable_store): Open code strided stores.
13713 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13715 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
13716 Document sqrt_insn.
13718 2015-05-21 Richard Biener <rguenther@suse.de>
13721 * match.pd: Guard pattern optimzing (int)(float)int
13722 conversions to apply only on GIMPLE.
13724 2015-05-21 Jeff Law <law@redhat.com>
13726 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
13727 multiply-accumulate/shift-add insn generation.
13729 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
13732 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
13733 operands[1] are the same.
13735 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
13737 PR middle-end/66221
13738 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
13739 build_distinct_type_copy to copy bounds.
13741 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
13743 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
13744 Change to unsigned int.
13746 2015-05-20 Jeff Law <law@redhat.com>
13748 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
13749 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
13750 (pa_shadd_constant_p): Allow constants for shadd insns rather
13751 than valid scaling constants for memory addresses.
13752 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
13753 * config/pa/predicates.md (mem_shadd_operand): New predicate.
13754 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
13755 (shift-add insns using ASHIFT): New patterns.
13757 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
13759 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
13761 (fix_up_fall_thru_edges): Likewise.
13762 (fix_crossing_conditional_branches): Likewise. Promote jump targets
13763 from to rtx_insn to rtx_code_label where feasible.
13764 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
13765 gen_move_insn (returned type changed to rtx_insn).
13766 * builtins.c (expand_errno_check): Fix arguments of
13767 do_compare_rtx_and_jump (now expects rtx_code_label).
13768 (expand_builtin_acc_on_device): Likewise.
13769 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
13770 invert_jump (now exprects rtx_jump_insn).
13771 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
13772 (construct_init_block): Use rtx_code_label.
13773 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
13774 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
13775 calling redirect_jump.
13776 (patch_jump_insn): Likewise.
13777 (redirect_branch_edge): Likewise.
13778 (force_nonfallthru_and_redirect): Likewise.
13779 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
13781 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
13782 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
13783 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
13784 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
13785 to store the value retured by gen_label_rtx.
13786 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
13788 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
13789 (split_branches): Fix calls of redirect_jump.
13790 * dojump.c (jumpifnot): Promote argument type from rtx to
13792 (jumpifnot_1): Likewise.
13793 (jumpif): Likewise.
13794 (jumpif_1): Likewise.
13795 (do_jump_1): Likewise.
13796 (do_jump): Likewise. Use rtx_code_label when feasible.
13797 (do_jump_by_parts_greater_rtx): Likewise.
13798 (do_jump_by_parts_zero_rtx): Likewise.
13799 (do_jump_by_parts_equality_rtx): Likewise.
13800 (do_compare_rtx_and_jump): Likewise.
13801 * dojump.h: Update function prototypes.
13802 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
13804 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
13806 (emit_label_before): Likewise.
13807 (emit_jump_insn_after_noloc): Likewise.
13808 (emit_jump_insn_after_setloc): Likewise.
13809 (emit_jump_insn_after): Likewise
13810 (emit_jump_insn_before_setloc): Likewise.
13811 (emit_jump_insn_before): Likewise.
13812 (emit_label_before): Promote return type to rtx_code_label.
13813 (emit_label): Likewise.
13814 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
13815 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
13817 (emit_stack_restore): Likewise.
13818 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
13819 (do_cmp_and_jump): Likewise.
13820 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
13821 from rtx to rtx_code_label.
13822 (gen_move_insn_uncast): New function.
13823 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
13824 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
13825 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
13826 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
13827 invert_jump_1 and redirect_jump_1.
13828 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
13829 do_compare_rtx_and_jump.
13830 (expand_addsub_overflow): Likewise.
13831 (expand_neg_overflow): Likewise.
13832 (expand_mul_overflow): Likewise.
13833 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
13834 return value of gen_move_insn.
13835 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
13836 * loop-doloop.c (add_test): Use rtx_code_label.
13837 (doloop_modify): Likewise.
13838 (doloop_optimize): Likewise.
13839 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
13840 * lra-constraints.c (emit_spill_move): Remove cast of value returned
13842 (inherit_reload_reg): Add cast when calling dump_insn_slim.
13843 (split_reg): Likewise.
13844 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
13846 * optabs.c (expand_binop_directly): Remove casts of values returned by
13848 (expand_unop_direct): Likewise.
13849 (expand_abs): Likewise.
13850 (maybe_emit_unop_insn): Likewise.
13851 (maybe_gen_insn): Promote return type to rtx_insn.
13852 * optabs.h: Update prototype of maybe_gen_insn.
13853 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
13855 * recog.c (struct peep2_insn_data): Promote type of insn field to
13857 (peep2_reinit_state): Use NULL instead of NULL_RTX.
13858 (peep2_attempt): Remove casts of insn in peep2_insn_data.
13859 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
13860 * recog.h (struct insn_gen_fn): Promote return types of function
13861 pointers and operator ().from rtx to rtx_insn.
13862 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
13863 (fill_eager_delay_slots): Likewise.
13864 (relax_delay_slots): Likewise.
13865 (make_return_insns): Likewise.
13866 (dbr_schedule): Likewise.
13867 (optimize_skips): Likewise.
13868 (reorg_redirect_jump): Likewise.
13869 (fill_slots_from_thread): Likewise.
13870 * reorg.h: Update prototypes.
13871 * resource.c (find_dead_or_set_registers): Use dyn_cast to
13872 rtx_jump_insn instead of check. Use it's jump_target method.
13873 * rtl.h (rtx_jump_insn::jump_label): Define new method.
13874 (rtx_jump_insn::jump_target): Define new method.
13875 (rtx_jump_insn::set_jump_target): Define new method.
13876 * rtlanal.c (tablejump_p): Promote type of one local variable.
13877 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
13878 (sched_analyze_insn): Likewise.
13879 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
13880 (print_insn): Likewise.
13881 * stmt.c (label_rtx): Promote return type to rtx_insn.
13882 (force_label_rtx): Likewise.
13883 (jump_target_rtx): Define new function.
13884 (expand_label): Use it, get rid of one cast.
13885 (expand_naked_return): Promote rtx to rtx_code_label.
13886 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
13887 (expand_case): Use rtx_code_label instread of rtx where feasible.
13888 (expand_sjlj_dispatch_table): Likewise.
13889 (emit_case_nodes): Likewise.
13890 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
13891 * store-motion.c (insert_store): Make use of new return type of
13892 gen_move_insn and remove a cast.
13893 (replace_store_insn): Likewise.
13895 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
13897 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
13898 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
13900 2015-05-20 Jeff Law <law@redhat.com>
13902 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
13903 dispose of the jump thread path when the jump threading
13904 opportunity is cancelled.
13906 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13908 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
13909 when printing the caret character.
13911 2015-05-20 Marek Polacek <polacek@redhat.com>
13913 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
13915 2015-05-20 Marek Polacek <polacek@redhat.com>
13917 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
13918 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
13919 * gimple-fold.c (canonicalize_bool): Likewise.
13920 (same_bool_result_p): Likewise.
13921 * tree-if-conv.c (parse_predicate): Likewise.
13923 2015-05-20 Marek Polacek <polacek@redhat.com>
13925 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
13926 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
13928 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13930 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
13931 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
13934 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
13936 * config/mips/mips.h (micromips_globals): Declare.
13938 2015-05-20 David Malcolm <dmalcolm@redhat.com>
13940 * timevar.def (TV_INITIALIZE_RTL): New.
13941 * toplev.c (initialize_rtl): Use an auto_timevar to account this
13942 function's time to TV_INITIALIZE_RTL.
13944 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
13946 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
13947 gimple_build_nop calls.
13948 (chkp_find_bounds_for_elem): Likewise.
13949 (chkp_get_zero_bounds): Likewise.
13950 (chkp_get_none_bounds): Likewise.
13951 (chkp_get_bounds_by_definition): Likewise.
13952 (chkp_generate_extern_var_bounds): Likewise.
13953 (chkp_get_bounds_for_decl_addr): Likewise.
13954 (chkp_get_bounds_for_string_cst): Likewise.
13956 2015-05-20 Bin Cheng <bin.cheng@arm.com>
13958 PR tree-optimization/65447
13959 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
13960 (dump_use, dump_uses): Support to dump sub use.
13961 (record_use): New parameters to support sub use. Remove call to
13963 (record_sub_use, record_group_use): New functions.
13964 (compute_max_addr_offset, split_all_small_groups): New functions.
13965 (group_address_uses, rewrite_use_address): New functions.
13966 (strip_offset): New declaration.
13967 (find_interesting_uses_address): Call record_group_use.
13968 (add_candidate): New assertion.
13969 (infinite_cost_p): Move definition forward.
13970 (add_costs): Check INFTY cost and return immediately.
13971 (get_computation_cost_at): Clear setup cost and dependent bitmap
13973 (determine_use_iv_cost_address): Compute cost for sub uses.
13974 (rewrite_use_address_1): Rename from old rewrite_use_address.
13975 (free_loop_data): Free sub uses.
13976 (tree_ssa_iv_optimize_loop): Call group_address_uses.
13978 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13979 Jim Wilson <jim.wilson@linaro.org>
13981 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
13982 new fields loadv and storev.
13983 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
13984 Initialize loadv and storev.
13985 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
13986 (cortexa53_extra_costs): Likewise.
13987 (cortexa57_extra_costs): Likewise.
13988 (xgene1_extra_costs): Likewise.
13989 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
13992 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13994 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
13996 (cortexa8_extra_costs): Likewise.
13997 (cortexa5_extra_costs): Likewise.
13998 (cortexa7_extra_costs): Likewise.
13999 (cortexa12_extra_costs): Likewise.
14000 (cortexa15_extra_costs): Likewise.
14001 (v7m_extra_costs): Likewise.
14003 2015-05-20 Jeff Law <law@redhat.com>
14005 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14006 instead of open-coded version. Also delete the jump thread created
14007 within this function.
14009 2015-05-20 Alan Modra <amodra@gmail.com>
14011 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14012 stack adjusting insn. Formatting.
14013 (rs6000_emit_prologue): Track stack adjusting insn, and use of
14014 r12. If possible, emit first -fsplit-stack arg pointer insn
14015 before stack adjust. Don't use r12 to save cr if split-stack.
14017 2015-05-20 Alan Modra <amodra@gmail.com>
14019 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14021 (rs6000_supports_split_stack): New function.
14022 * gcc/config/rs6000/rs6000.c (machine_function): Add
14023 split_stack_arg_pointer.
14024 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14025 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14026 rather than virtual_incoming_args_rtx.
14027 (rs6000_va_start): Likewise.
14028 (split_stack_arg_pointer_used_p): New function.
14029 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14030 (morestack_ref): New var.
14031 (gen_add3_const, rs6000_expand_split_stack_prologue,
14032 rs6000_internal_arg_pointer, rs6000_live_on_entry,
14033 rs6000_split_stack_space_check): New functions.
14034 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14035 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14036 (UNSPECV_SPLIT_STACK_RETURN): Define.
14037 (split_stack_prologue, load_split_stack_limit,
14038 load_split_stack_limit_di, load_split_stack_limit_si,
14039 split_stack_return, split_stack_space_check): New expands and insns.
14040 * gcc/config/rs6000/rs6000-protos.h
14041 (rs6000_expand_split_stack_prologue): Declare.
14042 (rs6000_split_stack_space_check): Declare.
14044 2015-05-20 Alan Modra <amodra@gmail.com>
14046 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14047 (direct_return): Test vrsave_size rather than vrsave_mask.
14048 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
14049 (rs6000_emit_epilogue): Likewise.
14051 2015-05-20 Alan Modra <amodra@gmail.com>
14053 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14054 when not saving registers.
14055 (debug_stack_info): Adjust to omit printing unused offsets,
14057 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14060 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14063 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14064 value_type to const char *.
14066 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
14068 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14069 to build a biarch toolchain again.
14071 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
14073 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14074 or implicit declarations.
14075 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14077 (get_odr_type): Check type has linkage before adding bases.
14078 (register_odr_type): Check that type has linkage before adding it.
14079 (type_known_to_have_no_deriavations_p): Rename to ..
14080 (type_known_to_have_no_derivations_p): This one.
14081 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14082 (type_known_to_have_no_derivations_p): This one.
14083 * ipa-polymorphic-call.c
14084 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14087 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
14089 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14090 (layout_type): Use RECORD_OR_UNION_TYPE_P.
14092 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14094 * config/s390/s390.c (s390_vector_bool_type_p): New function.
14095 (s390_invalid_binary_op): New function.
14096 (TARGET_INVALID_BINARY_OP): Define macro.
14098 2015-05-19 David Sherwood <david.sherwood@arm.com>
14100 * loop-invariant.c (create_new_invariant): Don't calculate address cost
14101 if mode is not a scalar integer.
14102 (get_inv_cost): Increase computational cost for unused invariants.
14104 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14106 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
14107 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
14108 * config/s390/s390-builtin-types.def: New file.
14109 * config/s390/s390-builtins.def: New file.
14110 * config/s390/s390-builtins.h: New file.
14111 * config/s390/s390-c.c: New file.
14112 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14113 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14114 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14115 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14117 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14119 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14120 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14121 variable definitions.
14122 (s390_const_operand_ok): New function.
14123 (s390_expand_builtin): Rewrite.
14124 (s390_init_builtins): New function.
14125 (s390_handle_vectorbool_attribute): New function.
14126 (s390_attribute_table): Add s390_vector_bool attribute.
14127 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14128 (s390_branch_condition_mask): Generate masks for new modes.
14129 (s390_expand_vec_compare_cc): New function.
14130 (s390_mangle_type): Add mangling for vector bool types.
14131 (enum s390_builtin): Remove.
14132 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14134 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14135 s390_cpu_cpp_builtins.
14136 (REGISTER_TARGET_PRAGMAS): New macro.
14137 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14138 (insn_cmp mode attribute): Add new CC modes.
14139 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14140 (lcbb): New pattern definition.
14141 * config/s390/s390intrin.h: Include vecintrin.h.
14142 * config/s390/t-s390: New file.
14143 * config/s390/vecintrin.h: New file.
14144 * config/s390/vector.md: Include vx-builtins.md.
14145 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14148 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14150 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14152 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14153 (s390_select_ccmode): Likewise.
14154 (s390_canonicalize_comparison): Swap operands if necessary.
14155 (s390_expand_vec_compare_scalar): Expand DFmode compare using
14156 single element vector instructions.
14157 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14158 (s390_branch_condition_mask): Generate CC masks for the new modes.
14159 * config/s390/s390.md (v0, vf, vd): New mode attributes.
14160 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14161 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14162 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14163 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14164 (*extend<DSF:mode><BFP:mode>2): New insn definition.
14165 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14166 (extend<DSF:mode><BFP:mode>2): Turn into expander.
14167 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14168 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14169 (sqrt<mode>2): Add vector instruction.
14171 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14173 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14175 * config/s390/predicates.md (const0_operand, constm1_operand)
14176 (constable_operand): Accept vector operands.
14177 * config/s390/s390-modes.def: Add supported vector modes.
14178 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14179 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14180 (s390_bytemask_vector_p, s390_expand_vec_strlen)
14181 (s390_expand_vec_compare, s390_expand_vcond)
14182 (s390_expand_vec_init): Add prototypes.
14183 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14184 (s390_vector_mode_supported_p): New function.
14185 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14186 (s390_contiguous_bitmask_vector_p): New function.
14187 (s390_bytemask_vector_p): New function.
14188 (s390_split_ok_p): Vector regs don't work either.
14189 (regclass_map): Add VEC_REGS.
14190 (s390_legitimate_constant_p): Handle vector constants.
14191 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14192 (legitimate_reload_vector_constant_p): New function.
14193 (s390_preferred_reload_class): Handle CONST_VECTOR.
14194 (s390_reload_symref_address): Likewise.
14195 (s390_secondary_reload): Vector memory instructions only support
14196 short displacements. Rename reload*_nonoffmem* to reload*_la*.
14197 (s390_emit_ccraw_jump): New function.
14198 (s390_expand_vec_strlen): New function.
14199 (s390_expand_vec_compare): New function.
14200 (s390_expand_vcond): New function.
14201 (s390_expand_vec_init): New function.
14202 (s390_dwarf_frame_reg_mode): New function.
14203 (print_operand): Handle addresses with 'O' and 'R' constraints.
14204 (NR_C_MODES, constant_modes): Add vector modes.
14205 (s390_output_pool_entry): Handle vector constants.
14206 (s390_hard_regno_mode_ok): Handle vector registers.
14207 (s390_class_max_nregs): Likewise.
14208 (s390_cannot_change_mode_class): New function.
14209 (s390_invalid_arg_for_unprototyped_fn): New function.
14210 (s390_function_arg_vector): New function.
14211 (s390_function_arg_float): Remove size variable.
14212 (s390_pass_by_reference): Handle vector arguments.
14213 (s390_function_arg_advance): Likewise.
14214 (s390_function_arg): Likewise.
14215 (s390_return_in_memory): Vector values are returned in a VR if
14217 (s390_function_and_libcall_value): Handle vector arguments.
14218 (s390_gimplify_va_arg): Likewise.
14219 (s390_call_saved_register_used): Consider the arguments named.
14220 (s390_conditional_register_usage): Disable v16-v31 for non-vec
14222 (s390_preferred_simd_mode): New function.
14223 (s390_support_vector_misalignment): New function.
14224 (s390_vector_alignment): New function.
14225 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14226 (TARGET_VECTOR_MODE_SUPPORTED_P)
14227 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14228 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14229 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14230 (TARGET_VECTOR_ALIGNMENT): Define target macro.
14231 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14232 (FIRST_PSEUDO_REGISTER): Increase value.
14233 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14234 (VECTOR_REG_P): Define macros.
14235 (FIXED_REGISTERS, CALL_USED_REGISTERS)
14236 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14237 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14238 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14239 Add vector registers.
14240 (CANNOT_CHANGE_MODE_CLASS): Call C function.
14241 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14242 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14244 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14245 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14246 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14247 (VR*_REGNUM): New constants.
14248 (ALL): New mode iterator.
14249 (INTALL): Remove mode iterator.
14251 (movti): Implement TImode moves for VRs.
14252 Disable TImode splitter for VR targets.
14253 Implement splitting TImode GPR<->VR moves.
14254 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14255 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14256 reload<mode>_la_in, reload<mode>_la_out.
14257 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14258 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14259 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14260 (mov<mode> SF SD): Prefer lder, lde for loading.
14261 Add lrl and strl instructions.
14262 Add vector instructions.
14263 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14264 Call s390_expand_vec_strlen on z13.
14265 (*cc_to_int): Change predicate to nonimmediate_operand.
14266 (addti3): Rename to *addti3. New expander.
14267 (subti3): Rename to *subti3. New expander.
14268 * config/s390/vector.md: New file.
14270 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14272 * common/config/s390/s390-common.c (processor_flags_table): Add
14274 * config.gcc: Add z13.
14275 * config/s390/s390-opts.h (enum processor_type): Add
14276 PROCESSOR_2964_Z13.
14277 * config/s390/s390.c (s390_adjust_priority): Check for
14278 PROCESSOR_2964_Z13.
14279 (s390_reorg): Likewise.
14280 (s390_sched_reorder): Likewise.
14281 (s390_sched_variable_issue): Likewise.
14282 (s390_loop_unroll_adjust): Likewise.
14283 (s390_option_override): Likewise. Default to -mvx when available.
14284 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14285 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14286 (TARGET_VX_ABI): Define macros.
14288 (TARGET_DEFAULT): Add MASK_OPT_VX.
14289 * config/s390/s390.md ("cpu" attribute): Add z13.
14290 ("cpu_facility" attribute): Add vec.
14291 * config/s390/s390.opt (processor_type): Add z13.
14292 (mvx): New options.
14293 * doc/invoke.texi: Add z13 option for -march.
14295 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14297 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14298 mode check to make sure that only scalar integer values are
14301 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
14303 * tree.c (verify_type_variant): Fix #undef.
14304 (gimple_canonical_types_compatible_p): Move here from lto.c
14305 (verify_type): Verify TYPE_CANONICAL compatibility.
14306 * tree.h (gimple_canonical_types_compatible_p): Declare.
14308 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14310 PR middle-end/66199
14311 * tree.h (OMP_TEAMS_COMBINED): Define.
14312 * gimplify.c (enum gimplify_omp_var_data): Add
14313 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14314 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14315 (omp_notice_variable): Accept both ORT_TEAMS
14316 and ORT_COMBINED_TEAMS. Don't recurse if
14317 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14318 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14320 (omp_no_lastprivate): New function.
14321 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14322 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14323 notice_outer and set appropriate bits, otherwise make
14324 sure default(none) combined constructs won't complain.
14325 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14326 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14327 omp_no_lastprivate either remove the clause or turn it
14328 into OMP_CLAUSE_PRIVATE.
14329 (gimplify_omp_for): Fix up handling of implicit
14330 lastprivate or linear iterators.
14331 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14332 ORT_COMBINED_TEAMS.
14333 * omp-low.c (lower_omp_for_lastprivate): For combined
14334 for simd use fd.loop.n2 from the for rather than simd.
14336 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14338 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14339 instead of gen_rtx_raw_REG.
14340 (cris_expand_epilogue): Likewise.
14341 * config/microblaze/microblaze.c (microblaze_classify_address):
14343 * config/sparc/sparc.md: Likewise.
14345 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
14347 * config/alpha/alpha.c (alpha_legitimize_reload_address)
14348 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14349 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14350 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14351 Use CASE_CONST_SCALAR_INT.
14352 (print_operand) <case 'M'>: Use mode_width_operand to check the
14353 value of the constant.
14354 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14355 * config/alpha/predicates.md (input_operand): Use general_operand
14356 instead of match_code as operand check.
14357 (symbolic_operand): Use match_code with subexpression digits.
14358 * config/alpha/constraints.md (Q): Ditto.
14360 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14362 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14364 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14366 * config/s390/s390.c (s390_secondary_reload): Fix check for
14367 load/store relative.
14369 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14371 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
14372 alternative_mask to uint64_t.
14374 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14376 PR tree-optimization/66187
14377 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14378 Pass TYPE_SIGN to tree_int_cst_min_precision. If
14379 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14381 2015-05-19 David Malcolm <dmalcolm@redhat.com>
14383 * diagnostic.c (diagnostic_report_current_module): Strengthen
14384 local "new_map" from const line_map * to
14385 const line_map_ordinary *.
14386 * genmatch.c (error_cb): Likewise for local "map".
14387 (output_line_directive): Likewise for local "map".
14388 * input.c (expand_location_1): Likewise for local "map".
14389 Pass NULL rather than &map to
14390 linemap_unwind_to_first_non_reserved_loc, since the value is never
14391 read from there, and the value written back not read from here.
14392 (is_location_from_builtin_token): Strengthen local "map" from
14393 const line_map * to const line_map_ordinary *.
14394 (dump_location_info): Strengthen locals "map" from
14395 line_map *, one to const line_map_ordinary *, the other
14396 to const line_map_macro *.
14397 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14398 const line_map * to const line_map_macro *.
14399 (maybe_unwind_expanded_macro_loc): Add a call to
14400 linemap_check_macro when writing to the "map" field of the
14402 Introduce local const line_map_ordinary * "ord_map", using it in
14403 place of "map" in the part of the function where we know we have
14404 an ordinary map. Strengthen local "m" from const line_map * to
14405 const line_map_ordinary *.
14407 2015-05-19 Nick Clifton <nickc@redhat.com>
14410 * config/msp430/msp430.md (zero_extendhisi2): Add support for
14411 separate source and destination registers.
14413 2015-05-19 Richard Biener <rguenther@suse.de>
14415 PR tree-optimization/66165
14416 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14417 for no load permutation.
14419 PR tree-optimization/66185
14420 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14421 when building the SLP node from scalars.
14423 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
14424 Tristan Gingold <gingold@adacore.com>
14426 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14427 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14428 (expand_stack_restore): Call record_new_stack_level.
14429 (expand_stack_save): Do not call do_pending_stack_adjust.
14430 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14431 * calls.c (expand_call): Call record_new_stack_level for alloca.
14432 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14433 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14434 (update_sjlj_context): New global function.
14435 * except.h (update_sjlj_context): Declare.
14436 * explow.c (record_new_stack_level): New global function.
14437 (allocate_dynamic_stack_space): Call record_new_stack_level.
14438 * explow.h (record_new_stack_level): Declare.
14439 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14440 * cfgrtl.c (duplicate_insn_chain): Likewise.
14442 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14444 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14445 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14446 STACK_GROWS_DOWNWARD as normal if.
14447 (expand_call): Likewise.
14449 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
14452 * config/sh/sh.md (*round_int_even): New insn_and_split and
14453 accompanying new unnamed split.
14455 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14457 * bitmap.c (bitmap_set_range): Handle count==1 specially.
14458 (bitmap_clear_range): Likewise.
14459 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14460 bitmap_set_range unconditionally.
14461 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14462 * df-scan.c (df_mark_reg): Likewise.
14463 * haifa-sched.c (setup_ref_regs): Likewise.
14464 * sched-rgn.c (update_live_1): Likewise.
14466 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14468 * regs.h (END_HARD_REGNO): Delete.
14469 (END_REGNO): Move to...
14471 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14472 * caller-save.c (mark_set_regs): Likewise.
14473 * combine.c (move_deaths, distribute_notes): Likewise.
14474 * cse.c (invalidate, invalidate_for_call): Likewise.
14475 * df-scan.c (df_ref_record): Likewise.
14476 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14477 (record_last_reg_set_info): Likewise.
14478 * reg-stack.c (convert_regs_exit): Likewise.
14479 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14480 * resource.c (update_live_status): Likewise.
14481 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14483 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14485 * rtl.h (reg_info): Add an nregs field.
14486 (REG_NREGS): Use it.
14487 (SET_REGNO_RAW): Delete.
14488 (set_regno_raw): New function.
14489 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14490 (END_REGNO): Redefine in terms of REG_NREGS.
14491 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14493 * emit-rtl.c (set_mode_and_regno): Likewise.
14494 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14495 instead of SET_REGNO_RAW.
14497 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14499 * rtl.h (PUT_MODE_RAW): New macro.
14500 (PUT_REG_NOTE_KIND): Use it.
14501 (set_mode_and_regno): Declare.
14502 (gen_raw_REG): Change regno to "unsigned int".
14503 (gen_rtx_REG): Change "unsigned" to "unsigned int".
14504 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14505 use set_mode_and_regno to change the mode of registers.
14506 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14507 * emit-rtl.c (set_mode_and_regno): New function.
14508 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
14509 * caller-save.c (reg_save_code): Use set_mode_and_regno.
14510 * expr.c (init_expr_target): Likewise.
14511 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14512 * postreload.c (reload_cse_simplify_operands): Likewise.
14514 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14516 * caller-save.c (init_caller_save): Use word_mode and
14517 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
14518 * expr.c (init_expr_target): Likewise.
14519 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14520 * postreload.c (reload_cse_regs_1): Likewise.
14522 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14524 * rtl.def (REG): Change format to "r".
14525 * rtl.h (rtunion): Remove rt_reg.
14526 (reg_info): New structure.
14527 (rtx_def): Add reg field to main union.
14528 (X0REGATTR): Delete.
14529 (REG_CHECK): New macro.
14530 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
14531 * rtl.c (rtx_format): Document "r".
14532 (rtx_code_size): Handle REG specially.
14533 * gengenrtl.c (special_format): Return true for formats
14535 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
14536 Deal with REG_ATTRS after the field loop.
14537 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
14538 * expmed.c (init_expmed): Call gen_raw_REG instead of
14540 * expr.c (init_expr_target): Likewise.
14541 * regcprop.c (maybe_mode_change): Likewise.
14542 * varasm.c (make_decl_rtl): Likewise.
14543 * final.c (leaf_renumber_regs_insn): Return early after
14545 * genemit.c (gen_exp): Handle 'r' fields.
14546 * genpeep.c (match_rtx): Likewise.
14547 * gensupport.c (subst_pattern_match): Likewise.
14548 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
14549 (alter_constraints, subst_dup): Likewise.
14550 * read-rtl.c (read_rtx_code): Likewise.
14551 * print-rtl.c (print_rtx): Likewise.
14552 * genrecog.c (find_operand, find_matching_operand): Likewise.
14553 (validate_pattern, match_pattern_2): Likewise.
14554 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
14555 (rtx_test::regno_field): New function.
14556 (operator ==, safe_to_hoist_p, transition_parameter_type)
14557 (parameter_type_string, print_parameter_value)
14558 (print_nonbool_test, print_test): Handle new enum values.
14559 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
14560 * lra-constraints.c (operands_match_p): Likewise.
14562 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14564 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
14565 Change type of new_regno to unsigned int.
14566 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
14567 new_regno to unsigned int.
14568 (df_ref_change_reg_with_loc): Remove old_regno parameter.
14569 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
14570 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
14571 (SET_REGNO_RAW): Add space after ",".
14573 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14575 * rtl.h (REG_NREGS): New macro
14576 * alias.c (record_set): Use it.
14577 * cfgcleanup.c (mark_effect): Likewise.
14578 * combine.c (likely_spilled_retval_1): Likewise.
14579 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
14580 (move_deaths, distribute_notes): Likewise.
14581 * cselib.c (cselib_record_set): Likewise.
14582 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14583 * df-scan.c (df_mark_reg): Likewise.
14584 * dse.c (look_for_hardregs): Likewise.
14585 * dwarf2out.c (reg_loc_descriptor): Likewise.
14586 (multiple_reg_loc_descriptor): Likewise.
14587 * expr.c (write_complex_part, read_complex_part): Likewise.
14588 (emit_move_complex): Likewise.
14589 * haifa-sched.c (setup_ref_regs): Likewise.
14590 * ira-lives.c (mark_hard_reg_live): Likewise.
14591 * lra.c (lra_set_insn_recog_data): Likewise.
14592 * mode-switching.c (create_pre_exit): Likewise.
14593 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
14594 (reload_combine_recognize_pattern): Likewise.
14595 (reload_combine_note_use, move2add_record_mode): Likewise.
14596 (reload_cse_move2add): Likewise.
14597 * reg-stack.c (subst_stack_regs_pat): Likewise.
14598 * regcprop.c (kill_value, copy_value): Likewise.
14599 (copyprop_hardreg_forward_1): Likewise.
14600 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
14601 (build_def_use): Likewise.
14602 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
14603 (deps_analyze_insn): Likewise.
14604 * sched-rgn.c (check_live_1, update_live_1): Likewise.
14605 * sel-sched.c (count_occurrences_equiv): Likewise.
14606 * valtrack.c (dead_debug_insert_temp): Likewise.
14608 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
14610 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
14611 * dse.c (note_add_store): Likewise.
14612 * ira-lives.c (mark_hard_reg_dead): Likewise.
14613 * loop-invariant.c (mark_reg_store): Likewise.
14614 (mark_reg_death): Likewise.
14615 * postreload.c (reload_combine): Likewise.
14616 (reload_combine_note_store): Likewise.
14617 (reload_combine_note_use): Likewise.
14618 * recog.c (peep2_reg_dead_p): Likewise.
14620 2015-05-19 Alan Modra <amodra@gmail.com>
14622 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
14623 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
14624 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
14626 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
14627 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
14628 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
14629 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
14631 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
14633 * config/mips/mips.md (JOIN_MODE): New mode iterator.
14634 (join2_load_Store<JOIN_MODE:mode>): New pattern.
14635 (join2_loadhi): Likewise.
14636 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
14637 load-load and store-stores.
14638 * config/mips/mips.opt (mload-store-pairs): New option.
14639 (TARGET_LOAD_STORE_PAIRS): New macro.
14640 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
14641 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
14642 * config/mips/mips.c (mips_load_store_bonding_p): New function.
14644 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
14646 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
14648 * dojump.c (do_compare_rtx_and_jump): Likewise.
14649 * expmed.c (emit_store_flag_1): Likewise.
14650 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
14651 * final.c (sprint_ul): Use std::reverse for reversing a string.
14652 * fold-const.c (extract_muldiv_1): Use std::swap.
14653 * genmodes.c (emit_mode_int_n): Likewise.
14654 * ifcvt.c (dead_or_predicable): Likewise.
14655 * ira-build.c (ira_merge_live_ranges): Likewise.
14656 (swap_allocno_copy_ends_if_necessary): Likewise.
14657 * ira.c (ira_setup_alts): Likewise.
14658 * loop-iv.c (iv_analyze_expr): Likewise.
14659 (implies_p): Likewise.
14660 (canon_condition): Likewise.
14661 * lra-constraints.c (swap_operands): Likewise.
14662 * lra-lives.c (lra_merge_live_ranges): Likewise.
14663 * omega.c (swap): Remove.
14665 (omega_unprotect_1): Use std::swap.
14666 (omega_solve_geq): Likewise.
14667 * optabs.c (expand_binop_directly): Likewise.
14668 (expand_binop): Likewise.
14669 (emit_conditional_move): Likewise.
14670 (emit_conditional_add): Likewise.
14671 * postreload.c (reload_cse_simplify_operands): Likewise.
14672 * reg-stack.c (emit_swap_insn): Likewise.
14673 (swap_to_top): Likewise.
14674 (compare_for_stack_reg): Likewise.
14675 (subst_asm_stack_regs): Likewise.
14676 * reload.c (find_reloads): Likewise.
14677 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
14678 * sel-sched.c (invoke_reorder_hooks): Likewise.
14679 (create_block_for_bookkeeping): Likewise.
14680 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
14681 (lambda_matrix_right_hermite): Use std::swap.
14682 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
14683 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
14684 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
14685 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
14686 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
14687 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
14688 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
14689 * tree-vrp.c (compare_ranges): Likewise.
14690 * var-tracking.c (add_with_sets): Likewise.
14691 (vt_find_locations): Likewise.
14693 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
14695 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
14697 (FBSD_ENDFILE_SPEC): Likewise.
14698 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
14699 config/freebsd-spec.h.
14700 (ENDFILE_SPEC): Likewise.
14702 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
14703 Richard Henderson <rth@redhat.com>
14706 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
14707 Check for a memory location that is not a reference (using an AND)
14708 to an unaligned location here.
14709 * config/alpha/predicates.md (normal_memory_operand): Remove.
14711 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
14713 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
14714 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
14716 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
14718 * config/mips/mips.c (micromips_globals): New variable.
14719 (mips_set_compression_mode): Save and reinitialize target-dependent
14720 state for microMIPS.
14722 2015-05-18 Martin Liska <mliska@suse.cz>
14724 * dbgcnt.def: Add new counter.
14725 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
14727 2015-05-18 Martin Liska <mliska@suse.cz>
14729 * dbgcnt.def: Sort counters.
14730 * opts.c (common_handle_option): Do not compile if
14731 -fdbg-cnt-list is enabled.
14733 2015-05-18 Tom de Vries <tom@codesourcery.com>
14735 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
14736 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
14737 address operator to va_list operand.
14738 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
14740 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
14742 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
14743 * config/s390/s390.c (s390_gimplify_va_arg): Same.
14744 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
14746 2015-05-18 Tom de Vries <tom@codesourcery.com>
14748 * tree-ssa-tail-merge.c: Fix whitespace.
14750 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
14752 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
14753 cortex-a17, and cortex-a17.cortex-a7.
14755 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
14758 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
14760 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
14763 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
14764 QImode inner modes for TARGET_AVX512BW. Force mask operand
14765 to a register for AVX512F modes.
14767 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
14769 * toplev.c (emit_debug_global_declarations): Do not output debug info
14770 when doing slim LTO objects.
14772 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
14774 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
14775 odr_types_equivalent_p): Declare.
14776 (odr_type_p): Use gcc_checking_assert.
14777 (type_in_anonymous_namespace_p) Declare.
14778 (type_with_linkage_p): Declare.
14779 * common.opt (Wlto-type-mismatch): New warning.
14780 * ipa-devirt.c (compound_type_base): New function.
14781 (odr_or_derived_type_p): New function.
14782 (odr_types_equivalent_p): New function.
14783 (add_type_duplicate): Simplify.
14784 (type_with_linkage_p): Add hack to prevent false positives on C types
14785 (type_in_anonymous_namespace_p): Likewise.
14786 * tree.c (need_assembler_name_p): Use type_with_linkage.
14787 * tree.h (type_in_anonymous_namespace_p): Remove.
14788 * doc/invoke.texi (-Wlto-type-mismatch): Document
14790 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
14792 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
14793 (verify_type): Verify STRING_FLAG.
14795 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14798 * tree-pretty-print.c (percent_K_format): Replace locus pointer
14799 with accessor function.
14800 * tree-diagnostic.c (diagnostic_report_current_function): Use
14801 diagnostic_location function.
14802 (maybe_unwind_expanded_macro_loc): Likewise.
14803 (virt_loc_aware_diagnostic_finalizer): Likewise.
14804 (default_tree_printer): Replace locus pointer with accessor function.
14805 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
14806 (diagnostic_set_info_translated): Initialize second location.
14807 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
14808 (diagnostic_show_locus): Handle two locations. Call
14809 diagnostic_print_caret_line.
14810 (diagnostic_print_caret_line): New.
14811 (default_diagnostic_starter): Use diagnostic_location function.
14812 (diagnostic_report_diagnostic): Use diagnostic_location function.
14813 (verbatim): Do not set text.locus.
14814 * diagnostic.h (struct diagnostic_info): Remove location field.
14815 (struct diagnostic_context): Make caret_chars an array of two.
14816 (diagnostic_location): New inline.
14817 (diagnostic_expand_location): Handle two locations.
14818 (diagnostic_same_line): New inline.
14819 (diagnostic_print_caret_line): Declare.
14820 (CARET_LINE_MARGIN): New constant.
14821 * pretty-print.c (pp_printf): Do not set text.locus.
14822 (pp_verbatim): Do not set text.locus.
14823 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
14824 (struct text_info): Replace locus pointer with locations
14825 array. Add accessor functions.
14827 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
14828 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14831 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
14832 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
14833 large constants in register instead of splitting them.
14835 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
14838 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
14839 replacements in memory addresses.
14840 (get_unaligned_address): Ditto.
14842 2015-05-16 James Bowman <james.bowman@ftdichip.com>
14844 * config/ft32/*: New files for FT32 port.
14845 * doc/install.texi: Add FT32 information.
14846 * doc/invoke.texi: Add FT32 information.
14847 * doc/md.texi: Add FT32 information.
14848 * doc/contrib.texi: Self added.
14850 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
14852 PR tree-optimization/64454
14853 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
14854 (-1 - A -> ~A): Remove unnecessary condition.
14856 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
14858 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
14859 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
14860 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
14862 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
14864 * ipa-chkp.h (chkp_wrap_function): New.
14865 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
14866 (chkp_wrap_function_name): New.
14867 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
14868 to get wrapper name.
14869 * lto-cgraph.c: Include ipa-chkp.h.
14870 (input_cgraph_1): Avoid alias chain for wrappers.
14872 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
14874 PR middle-end/66134
14875 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
14876 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
14878 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14880 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
14881 (AARCH64_FL_SLOWMUL): Delete.
14882 (AARCH64_FL_CRC): Redefine to 1<<3.
14883 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
14885 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14887 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
14890 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
14892 * config/alpha/alpha.md (extendqidi2): Use general_operand
14893 instead of some_operand for operand[1] predicate.
14894 (extendhidi2): Ditto.
14895 (cbranchdi4): Use general_operand instead of some_operand
14896 for operand[1] and operands[2] predicates.
14897 (cstoredi4): Ditto.
14898 * config/alpha/predicates.md (some_operand): Remove unused predicate.
14899 (some_ni_operand): Ditto.
14901 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
14903 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
14904 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
14905 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
14906 low part of the constant using alpha_emit_set_const_1.
14907 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
14909 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
14911 * varasm.c (output_constant_pool_1): Pass down alignment from
14912 constant pool entry's descriptor to output_constant_pool_2.
14913 (output_object_block): Add comment prior to call to
14914 output_constant_pool_1.
14916 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
14918 PR rtl-optimization/65862
14919 * target.def (ira_change_pseudo_allocno_class): New hook.
14920 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
14922 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
14923 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
14925 * ira-costs.c (find_costs_and_classes): Call the hook and change
14926 classes when it is necessary.
14927 * doc/tm.texi: Update.
14929 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
14931 * config/i386/i386.md (sibcall_memory): Check that register with
14932 callee address is not also used as one of the arguments, instead
14933 of checking that it is not live after the sibcall.
14934 (sibcall_pop_memory): Ditto.
14935 (sibcall_value_memory): Ditto.
14936 (sibcall_value_pop_memory): Ditto.
14938 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
14940 * generic-match-head.c (types_match): Handle non-types.
14941 * gimple-match-head.c (types_match): Likewise.
14942 * match.pd: Remove unnecessary TREE_TYPE for types_match.
14944 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
14946 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
14947 (csneg3<mode>_insn): Enable expansion of pattern.
14949 2015-05-14 Nick Clifton <nickc@redhat.com>
14951 * config/rl78/rl78.c (rl78_select_section): Select the correct
14952 default section based upon the category of the decl.
14954 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14956 PR rtl-optimization/30967
14957 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
14958 destination mode for the cost of scc patterns.
14960 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
14962 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
14963 using SWIM248 mode iterator.
14964 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
14965 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
14966 for operand[2] constraint.
14967 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
14969 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14971 PR middle-end/66133
14972 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
14973 make sure it is never noreturn, even when the task body does not
14975 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
14976 right before GIMPLE_OMP_RETURN.
14977 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
14978 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
14979 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
14981 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14983 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
14984 * tree-ssa-math-opts.c: Include params.h
14985 (pow_synth_sqrt_info): New struct.
14986 (representable_as_half_series_p): New function.
14987 (get_fn_chain): Likewise.
14988 (print_nested_fn): Likewise.
14989 (dump_fractional_sqrt_sequence): Likewise.
14990 (dump_integer_part): Likewise.
14991 (expand_pow_as_sqrts): Likewise.
14992 (gimple_expand_builtin_pow): Use above to attempt to expand
14993 pow as series of square roots. Removed now unused variables.
14995 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
14997 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
14998 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
14999 Remove *p0 and *p1 arguments. Rewrite function.
15000 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15001 (alpha_split_const_mov): Update calls to alpha_extract_integer and
15002 alpha_emit_set_long_const.
15003 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15004 (alpha_output_mi_thunk_osf): Ditto.
15005 * config/alpha/alpha.md (movti): Do not check operands[1]
15008 2015-05-13 Richard Biener <rguenther@suse.de>
15010 PR tree-optimization/66129
15011 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15013 (vect_schedule_slp_instance): Fix typo.
15015 2015-05-13 David Malcolm <dmalcolm@redhat.com>
15017 * common.opt (fdump-internal-locations): New option.
15018 * input.c: Include diagnostic-core.h.
15019 (get_end_location): New function.
15020 (write_digit): New function.
15021 (write_digit_row): New function.
15022 (dump_location_range): New function.
15023 (dump_labelled_location_range): New function.
15024 (dump_location_info): New function.
15025 * input.h (dump_location_info): New prototype.
15026 * toplev.c (compile_file): Handle flag_dump_locations.
15028 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
15030 * gimple-expr.h (is_gimple_constant): Reorder.
15031 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15033 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15035 * combine.c (simplify_set): When generating a CC set, if the
15036 source already is in the correct mode, do not wrap it in a
15037 compare. Simplify the rest of that code.
15039 2015-05-13 Richard Biener <rguenther@suse.de>
15041 PR tree-optimization/66123
15042 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15045 2015-05-13 Richard Biener <rguenther@suse.de>
15047 PR middle-end/66110
15048 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15050 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15052 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15054 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15055 * aclocal.m4: Regenerated with automake-1.11.6.
15057 2015-05-13 Tom de Vries <tom@codesourcery.com>
15059 PR tree-optimization/66010
15060 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15061 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15062 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
15063 and rval based on do_deref.
15065 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15068 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15069 link time constants into adress expressions and therefore set
15072 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15075 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15076 Use SWI248 iterator instead of SWI.
15077 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
15078 Use eq_attr "alternative" "0" instead of match_test in
15079 length_immediate attribute computation.
15080 (*mulvhi4, *mulvhi4_1): New define_insns.
15083 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15084 SIGNED to get precision of non-negative value.
15086 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15089 * function.c (diddle_return_value_1): Process bounds first.
15090 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15093 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15095 PR rtl-optimization/64616
15096 * loop-invariant.c (can_move_invariant_reg): New.
15097 (move_invariant_reg): Call above new function to decide whether
15098 instruction can just be moved, skipping creation of temporary
15101 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15103 PR target/pr66047.c
15104 * i386.c (ix86_function_sseregparm): Only return -1 if local function
15105 with implied regparm is called from -mno-sse function.
15106 (init_cumulative_args): Output error if ix86_function_sseregparm
15107 return -1 and SSE register would be needed.
15108 (function_arg_advance_32): Likewise.
15109 (function_arg_32): Likewise.
15110 * i386.h (ix86_args): Add decl field.
15112 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15115 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15116 inlines across optimization boundary.
15118 2015-05-12 Jason Merrill <jason@redhat.com>
15120 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15121 string literal and macro name.
15123 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
15125 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15126 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15127 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15129 2015-05-12 David Malcolm <dmalcolm@redhat.com>
15131 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15132 (-Wmisleading-indentation): New option.
15133 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15135 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
15137 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15138 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15139 (alpha_extract_integer): Ditto.
15140 (alpha_legitimate_constant_p): Ditto.
15141 (alpha_split_tmode_pair): Ditto.
15142 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15143 (alpha_expand_mov): Ditto.
15144 (print_operand): Remove handling of 'H' modifier.
15145 <case 'm'>: Remove CONST_DOUBLE handling.
15146 (summarize_insn): Handle CONST_WIDE_INT.
15147 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15149 (movti): Handle CONST_WIDE_INT.
15150 * config/alpha/constraints.md ('H'): Remove constraint definition.
15151 ('G'): Do not match MODE_FLOAT class.
15152 * config/alpha/predicates.md (const0_operand): Also match
15154 (non_add_const_operand): Ditto.
15155 (non_zero_const_operand): Ditto.
15156 (some_operand): Ditto.
15157 (input_operand): Ditto. Handle CONST_WIDE_INT.
15158 (and_operand): Do not match const_double.
15159 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15161 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
15164 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15165 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15166 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15167 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15168 is_mm_seq_cst, is_mm_sync): New accessor functions.
15169 * builtins.c (expand_builtin_sync_operation,
15170 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15171 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15172 (get_memmodel, expand_builtin_atomic_compare_exchange,
15173 expand_builtin_atomic_load, expand_builtin_atomic_store,
15174 expand_builtin_atomic_clear): Use new accessor routines.
15175 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15176 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15177 (maybe_emit_sync_lock_test_and_set): Use new accessors and
15178 MEMMODEL_SYNC_ACQUIRE.
15179 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15180 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15181 expand_atomic_store): Use new accessors.
15182 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15183 * tsan.c (instrument_builtin_call): Update check for memory model beyond
15184 final enum to use MEMMODEL_LAST.
15185 * c-family/c-common.c: Use new accessor for memmodel_base.
15186 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15188 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15189 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15190 mem_thread_fence, *dmb): Likewise.
15191 * config/alpha/alpha.c (alpha_split_compare_and_swap,
15192 alpha_split_compare_and_swap_12): Likewise.
15193 * config/arm/arm.c (arm_expand_compare_and_swap,
15194 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15195 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15196 atomic_loaddi): Likewise.
15197 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15199 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15200 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15202 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15203 atomic_store<mode>, atomic_compare_and_swap<mode>,
15204 atomic_exchange<mode>): Use new accessors.
15205 * config/mips/mips.c (mips_process_sync_loop): Likewise.
15206 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15207 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15208 rs6000_post_atomic_barrier): Add new cases.
15209 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15210 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15211 (atomic_load<mode>): Add new cases and use new accessors.
15212 (store_quadpti): Add new cases.
15213 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15215 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15216 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15219 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
15221 * ipa-devirt.c (type_with_linkage_p): New function.
15222 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15224 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15225 (can_be_name_hashed_p): Simplify.
15226 (hash_odr_name): Check that type has linkage before checking if it is
15228 (types_same_for_odr): Likewise.
15229 (odr_name_hasher::equal): Likewise.
15230 (odr_subtypes_equivalent_p): Likewise.
15231 (warn_types_mismatch): Likewise.
15232 (get_odr_type): Likewise.
15233 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15234 * ipa-utils.h (odr_type_p): Move offline.
15235 * tree.c (need_assembler_name_p): Fix handling of types
15237 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15239 2015-05-12 David Malcolm <dmalcolm@redhat.com>
15241 * timevar.c (timevar_enable): Delete in favor of...
15242 (g_timer): New global.
15243 (struct timevar_def): Move to timevar.h inside class timer.
15244 (struct timevar_stack_def): Likewise.
15245 (timevars): Delete global in favor of field "m_timevars" within
15246 class timer in timevar.h
15247 (stack): Likewise, in favor of field "m_stack".
15248 (unused_stack_instances): Likewise, in favor of field
15249 "m_unused_stack_instances".
15250 (start_time): Likewise, in favor of field "m_start_time".
15251 (get_time): Eliminate check for timevar_enable.
15252 (timer::timer): New function, built from part of timevar_init.
15253 (timevar_init): Rewrite idempotency test from using
15254 "timevar_enable" bool to using dynamic allocation of "g_timer".
15255 Move rest of implementation into timer's constructor.
15256 (timevar_push_1): Rename to...
15257 (timer::push): ...this, adding "m_" prefixes to variables that
15258 are now fields of timer.
15259 (timevar_pop_1): Likewise, rename to...
15260 (timer::pop): ...this, and add "m_" prefixes.
15261 (timevar_start): Replace test for "timevar_enable" with one for
15262 "g_timer", and move bulk of implementation to...
15263 (timer::start): ...here, adding "m_" prefixes.
15264 (timevar_stop): Likewise, from here...
15265 (timer::stop): ...to here.
15266 (timevar_cond_start): Likewise, from here...
15267 (timer::cond_start): ...to here.
15268 (timevar_cond_stop): Likewise, from here...
15269 (timer::cond_stop): ...to here.
15270 (validate_phases): Rename to...
15271 (timer::validate_phases): ...this, and add "m_" prefixes. Make
15272 locals "total" and "tv" const.
15273 (timevar_print): Rename to...
15274 (timer::print): ...this, and add "m_" prefixes. Make locals
15275 "total" and "tv" const. Eliminate test for timevar_enable.
15276 * timevar.h (timevar_enable): Eliminate.
15277 (g_timer): New declaration.
15278 (timevar_push_1): Eliminate.
15279 (timevar_pop_1): Eliminate.
15280 (timevar_print): Eliminate.
15281 (class timer): New class.
15282 (timevar_push): Rewrite to use g_timer.
15283 (timevar_pop): Likewise.
15284 * toplev.c (toplev::~toplev): Likewise.
15286 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
15288 * arm-protos.h (arm_sched_autopref): Delete.
15289 (tune_params): Re-organize, use enums for flag values.
15290 (FUSE_OPS): New macro.
15291 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15292 (ARM_PREFETCH_BENEFICIAL): Likewise.
15293 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15294 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15295 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15296 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15297 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15298 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
15299 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15300 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15302 (arm_option_override, thumb2_reorg, arm_print_tune_info)
15303 (aarch_macro_fusion_pair_p): Update uses of current_tune.
15304 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15306 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
15308 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15311 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
15312 Sandra Loosemore <sandra@codesourcery.com>
15314 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15316 (REG_CLASS_NAMES): Add "IJMP_REGS".
15317 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15318 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15319 use new "c" register constraint.
15320 * config/nios2/constraint.md (c): New register constraint
15321 corresponding to IJMP_REGS.
15323 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15325 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15326 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15327 define_splits): Delete, revamp, transmogrify into ...
15328 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15329 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15330 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15333 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15335 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15336 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15338 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15340 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15341 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15342 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15343 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15344 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15345 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15346 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15347 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15348 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15349 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15350 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15351 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15352 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15353 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15354 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15355 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15356 and 30 corresponding splitters): Delete.
15358 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15360 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15363 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15365 * combine.c (recog_for_combine_1): New function, factored out
15366 from recog_for_combine.
15367 (change_zero_ext): New function.
15368 (recog_for_combine): If recog fails, try again with the pattern
15369 modified by change_zero_ext; if that still fails, restore the
15372 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
15374 * combine.c (get_undo_marker): New function.
15375 (undo_to_marker): New function, largely factored out from ...
15376 (undo_all): ... this. Adjust.
15378 2015-05-12 Richard Biener <rguenther@suse.de>
15380 PR tree-optimization/66101
15381 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15382 fixup if we turn a loop exit edge to a fallthru edge.
15384 2015-05-12 Richard Biener <rguenther@suse.de>
15386 PR tree-optimization/37021
15387 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15388 (SLP_TREE_TWO_OPERATORS): New define.
15389 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15390 SLP_TREE_TWO_OPERATORS.
15391 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15393 (vect_build_slp_tree): Adjust.
15394 (vect_analyze_slp_cost_1): Likewise.
15395 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15396 emitting two vector stmts and mixing the results.
15398 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
15400 * call.c (print_z_candidates): Remove dead code.
15402 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15404 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15405 and zEC12_simple_fp.
15406 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15409 2015-05-12 Tom de Vries <tom@codesourcery.com>
15411 PR tree-optimization/66010
15412 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15414 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15415 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
15416 va_lists are passed, and remove corresponding handling.
15417 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
15418 do_deref argument to ifn_va_arg.
15419 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15422 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15425 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15426 REG before taking its REGNO.
15428 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15430 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15431 rsp->sign_bit_copies and rsp->nonzero_bits into ...
15432 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
15433 present to get more accurate information about the number of sign bit
15434 copies and non zero bits.
15436 2015-05-12 Richard Biener <rguenther@suse.de>
15438 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15439 do not allow unrolling.
15441 2015-05-11 Richard Henderson <rth@redhat.com>
15443 * config/i386/i386-modes.def (CCP): New.
15444 * config/i386/i386.c (put_condition_code): Handle it.
15445 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15447 2015-05-11 Richard Henderson <rth@redhat.com>
15449 * target.def (md_asm_clobbers): Replace with...
15450 (md_asm_adjust): this.
15451 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15452 (TARGET_MD_ASM_ADJUST): New.
15453 * tm.texi: Rebuild.
15454 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15455 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15456 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15458 * cfgexpand.c (check_operand_nalternatives): Accept vector of
15459 constraints instead of lists of outputs and inputs.
15460 (expand_asm_stmt): Save and restore input_location around the
15461 body of the function. Move asm data into vectors instead of
15462 building tree lists. Generate cleanup sequences as needed,
15463 rather than waiting til the end. Use new md_asm_adjust hook.
15465 * config/vxworks.c: Include vec.h before target.h.
15466 * gimple.c: Likewise.
15467 * incpath.c: Likewise.
15468 * mode-switching.c: Likewise.
15470 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15471 (cris_md_asm_adjust): this.
15472 (TARGET_MD_ASM_CLOBBERS): Remove.
15473 (TARGET_MD_ASM_ADJUST): New.
15474 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15475 (ix86_md_asm_adjust): this.
15476 (TARGET_MD_ASM_CLOBBERS): Remove.
15477 (TARGET_MD_ASM_ADJUST): New.
15478 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15479 (mn10300_md_asm_adjust): this.
15480 (TARGET_MD_ASM_CLOBBERS): Remove.
15481 (TARGET_MD_ASM_ADJUST): New.
15482 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15483 (rs6000_md_asm_adjust): this.
15484 (TARGET_MD_ASM_CLOBBERS): Remove.
15485 (TARGET_MD_ASM_ADJUST): New.
15486 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15487 (visium_md_asm_adjust): this.
15488 (TARGET_MD_ASM_CLOBBERS): Remove.
15489 (TARGET_MD_ASM_ADJUST): New.
15491 2015-05-11 Richard Henderson <rth@redhat.com>
15493 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15494 if noutputs is zero.
15495 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15497 * cfgexpand.c (expand_asm_operands): Merge into...
15498 (expand_asm_stmt): ... here.
15500 * cfgexpand.c (expand_asm_operands): Don't call
15501 resolve_asm_operand_names.
15502 * stmt.c (resolve_asm_operand_names): Clarify block comment.
15504 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
15506 * dwarf2out.c (gen_member_die): Sanity check that we access
15507 TYPE_MAIN_VARIANT for TYPE_METHODS.
15508 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15509 checking TYPE_METHODS.
15510 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15512 (build_distinct_type_copy): Clear TYPE_METHODS.
15513 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15514 (verify_type): Allow TYPE_METHODS to be error_mark_node.
15515 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15517 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
15519 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
15520 (emit_pattern_before_setloc): Likewise.
15522 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
15524 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
15525 for define_peephole2s.
15526 (get_peephole2_pattern): New function.
15527 (main): Use it. Call validate_pattern.
15529 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15531 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
15532 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
15533 (Last callee saved reg is different for AVR_TINY architecture)
15535 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
15537 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
15538 when looking for memory references.
15540 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
15543 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
15544 via function pointers.
15546 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
15548 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
15549 indirect call by forcing address into a pseudo with -fno-plt.
15550 * common.opt (flag_plt): New option.
15551 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
15552 ([-fno-plt]): Document.
15554 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
15557 * config/rs6000/option-defaults.h: Add space between string literal
15560 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15562 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
15563 accross ARM targets.
15565 2015-05-11 Christian Bruel <christian.bruel@st.com>
15567 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
15568 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
15570 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
15572 PR rtl-optimization/66076
15573 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
15574 Don't grow the heap array if it is already big enough from a
15575 previous iteration.
15577 2015-05-11 Christian Bruel <christian.bruel@st.com>
15579 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
15580 (is_called_in_ARM_mode): Remove.
15581 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
15582 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
15583 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
15584 arm_declare_function_name.
15586 2015-05-11 Christian Bruel <christian.bruel@st.com>
15588 * config/arm/arm.c (arm_option_override): Reoganized and split into :
15589 (arm_option_params_internal); New function.
15590 (arm_option_check_internal): New function.
15591 (arm_option_override_internal): New function.
15592 (thumb_code, thumb1_code): Remove.
15593 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
15594 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
15595 (thumb_code, thumb1_code): Remove.
15596 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
15598 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
15600 * config/alpha/alpha.c (alpha_emit_set_const_1)
15601 (alpha_emit_set_long_const, alpha_extract_integer)
15602 (alpha_legitimate_constant_p, alpha_split_const_mov)
15603 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
15604 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15605 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
15607 * config/alpha/predicates.md (mode_mask_operand): Do not match
15609 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15610 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
15611 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
15612 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15613 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
15615 2015-05-11 Jakub Jelinek <jakub@redhat.com>
15618 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
15619 default_binds_local_p_2.
15620 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
15621 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
15623 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
15625 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
15627 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
15629 Patch by Richard Biener
15630 * coverage.c (coverage_obj_init): Delay building of type variant
15631 until the type is finished.
15633 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
15635 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
15636 mismatch between C and C++ type; compoare correctly ARG_TYPES
15637 for non-prototypes and output correctly parameter index for METHOD_TYPE.
15638 (odr_types_equivalent_p): Fix wording of warning about attributes;
15639 it is OK to match prototype and non-prototype.
15641 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
15643 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
15644 TYPE_ARG_TYPES list.
15645 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
15646 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
15648 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
15650 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
15651 * tree.h (is_lang_specific): Constify.
15653 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
15655 PR tree-optimization/64454
15656 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
15659 2015-05-08 Jason Merrill <jason@redhat.com>
15661 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
15662 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
15663 config/darwin.h, config/darwin9.h, config/elfos.h,
15664 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
15665 config/microblaze/microblaze.h, config/mips/mips.h,
15666 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
15667 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
15668 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
15669 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
15670 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
15671 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
15672 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
15673 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
15674 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
15675 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
15676 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
15677 between string literal and macro name.
15679 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15681 * jump.c: Change argument types to rtx_insn *.
15684 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15686 * lra-constraints.c: Change argument type to rtx_insn *.
15688 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15690 * df-problems.c: Change argument type to rtx_insn *.
15692 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15694 * combine.c: Change argument type to rtx_insn *.
15696 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15699 * rtlanal.c: Change argument type to rtx_insn *.
15701 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15703 * sched-deps.c: Change argument types to rtx_insn *.
15704 * sched-int.h: Adjust.
15706 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15708 * dwarf2cfi.c: Change argument type to rtx_insn *.
15710 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15712 * ira.c (decrease_live_ranges_number): Changetype of local
15713 variable to rtx_insn *.
15714 * recog.c: Change argument types to rtx_insn *.
15717 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15719 * reorg.c: Change argument types to rtx_insn *.
15721 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15723 * ira-color.c: Change argument types to rtx_insn *.
15724 * lra-eliminations.c: Likewise.
15727 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15729 * gcse.c: Change argument types to rtx_insn *.
15731 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15733 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
15735 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15737 * emit-rtl.c (emit_debug_insn_before): Change argument type to
15741 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15743 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
15746 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15748 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
15751 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15753 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
15756 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15758 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
15761 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15763 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
15767 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15769 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
15773 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15775 * except.c (can_nonlocal_goto): Change type of argument to
15779 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15781 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
15784 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15786 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
15787 * cfgrtl.c (can_delete_label_p): Adjust.
15790 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15792 * reorg.c (stop_search_p): Change argument to rtx_insn *.
15794 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15796 * except.c (make_reg_eh_region_note): Change argument to
15798 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
15799 * except.h: Adjust.
15801 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15803 * mode-switching.c (commit_mode_sets): Change type of local
15804 variable from rtx to rtx_insn *.
15806 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
15808 * doc/install.texi (--enable-languages): Add missing jit and lto info.
15809 Add ^ to grep command.
15810 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
15811 arg to last gimple_simplify declaration. Add missing gimple_build
15812 declaration for built-in function case with four tree args.
15814 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
15815 Szabolcs Nagy <szabolcs.nagy@arm.com>
15817 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
15818 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
15819 (GNU_USER_DYNAMIC_LINKERN32): Update.
15821 2015-05-08 Richard Biener <rguenther@suse.de>
15823 PR tree-optimization/66036
15824 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15825 Handle strided group loads.
15826 (vect_verify_datarefs_alignment): Likewise.
15827 (vect_enhance_data_refs_alignment): Likewise.
15828 (vect_analyze_group_access): Likewise.
15829 (vect_analyze_data_ref_access): Likewise.
15830 (vect_analyze_data_ref_accesses): Likewise.
15831 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
15832 (vectorizable_load): Likewise.
15834 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
15836 * config/rs6000/rs6000.md: Require operand inequality in one
15839 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
15840 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15842 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
15844 * config/rx/rx.md (movdi, movdf): Likewise.
15845 Likewise for define_peephole2s.
15847 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
15849 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
15850 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
15851 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
15852 vtst_u64): Rewrite using gcc vector extensions.
15854 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
15856 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
15857 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
15859 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
15861 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
15863 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
15865 * config/glibc-stdint.h (OPTION_MUSL): Define.
15866 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
15867 Change the definition based on OPTION_MUSL for 64 bit targets.
15868 * config/linux.h (OPTION_MUSL): Redefine.
15869 * config/alpha/linux.h (OPTION_MUSL): Redefine.
15870 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
15871 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
15873 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
15874 Szabolcs Nagy <szabolcs.nagy@arm.com>
15876 * config.gcc (LIBC_MUSL): New tm_defines macro.
15877 * config/linux.h (OPTION_MUSL): Define.
15878 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
15879 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
15880 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15881 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15882 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15883 * config/linux.opt (mmusl): New option.
15884 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
15885 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15886 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15887 * configure: Regenerate.
15889 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
15890 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15893 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
15894 * config/i386/knetbsd-gnu64.h: New file.
15896 2015-05-08 Marek Polacek <polacek@redhat.com>
15899 * doc/invoke.texi: Document -Woverride-init-side-effects.
15901 2015-05-07 Marek Polacek <polacek@redhat.com>
15904 * doc/invoke.texi: Document -Wshift-negative-value.
15906 2015-05-06 Aditya Kumar <hiraditya@msn.com>
15908 * gcov-tool.c (do_merge): Refactore to remove int ret.
15909 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
15910 !type == FUNC to type != FUNC.
15911 * reload.h (struct target_reload): Changee to type of
15912 x_spill_indirect_levels from bool to unsigned char.
15914 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
15916 * rtl.h (always_void_p): New function.
15917 * gengenrtl.c (always_void_p): Likewise.
15918 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
15919 with code foo are always VOIDmode.
15920 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
15921 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
15922 compare-elim.c, config/aarch64/aarch64.c,
15923 config/aarch64/aarch64.md, config/alpha/alpha.c,
15924 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
15925 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
15926 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
15927 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15928 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
15929 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
15930 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
15931 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
15932 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
15933 config/ia64/vect.md, config/iq2000/iq2000.c,
15934 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
15935 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
15936 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
15937 config/mep/mep.c, config/microblaze/microblaze.c,
15938 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
15939 config/mn10300/mn10300.c, config/msp430/msp430.c,
15940 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
15941 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
15942 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
15943 config/rs6000/altivec.md, config/rs6000/rs6000.c,
15944 config/rs6000/rs6000.md, config/rs6000/vector.md,
15945 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
15946 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
15947 config/sh/sh.md, config/sh/sh_treg_combine.cc,
15948 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
15949 config/spu/spu.md, config/stormy16/stormy16.c,
15950 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
15951 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
15952 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
15953 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
15954 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
15955 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
15956 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
15957 var-tracking.c: Update calls accordingly.
15959 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
15962 PR middle-end/54303
15963 * varasm.c (function_mergeable_rodata_prefix): New function.
15964 (mergeable_string_section): Use it.
15965 (mergeable_constant_section): Use it.
15967 2015-05-07 Jeff Law <law@redhat.com>
15970 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15971 simplifier to narrow arithmetic.
15972 * generic-match-head.c: (types_match, single_use): New functions.
15973 * gimple-match-head.c: (types_match, single_use): New functions.
15975 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15977 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
15980 2015-05-07 Richard Biener <rguenther@suse.de>
15982 PR tree-optimization/66002
15983 * passes.def: Schedule another pass_merge_phi after ifcombine, right
15986 2015-05-07 Marek Polacek <polacek@redhat.com>
15987 Martin Uecker <uecker@eecs.berkeley.edu>
15989 * doc/invoke.texi: Document -fsanitize=bounds-strict.
15990 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
15991 into SANITIZE_NONDEFAULT.
15992 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
15994 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
15997 * config/alpha/alpha.c (alpha_override_options_after_change): New.
15998 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
15999 (alpha_override_options): Move align_loops, align_jumps and
16000 align_functions handling into alpha_override_options_after_change.
16002 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
16003 Chris Jones <chrisj@nvidia.com>
16004 Joshua Conner <jconner@nvidia.com>
16006 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16007 linking of crtfastmath.o.
16008 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16010 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
16012 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16013 (cstore<mode>4_unsigned_imm): New expander.
16014 (cstore<mode>4): Remove empty constraint strings. Use the new
16017 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
16020 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16023 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16025 * config/aarch64/geniterators.sh: Use standard BRE in sed.
16027 2015-05-06 Alan Modra <amodra@gmail.com>
16030 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16031 (UNSPEC_NOP): Define.
16032 (reload_vsx_from_gpr<mode>): Add missing DONE.
16033 (reload_gpr_from_vsx<mode>): Likewise.
16034 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16035 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16037 2015-05-06 Christian Bruel <christian.bruel@st.com>
16040 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16041 align_jumps, align_functions into aarch64_override_options_after_change.
16043 2015-05-06 Richard Biener <rguenther@suse.de>
16045 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16046 vect_transform_slp_perm_load to check if we support a permutation
16047 for basic-block vectorization.
16049 2015-05-06 Nick Clifton <nickc@redhat.com>
16051 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16052 used, even if it is not being used as a frame pointer.
16054 2015-05-05 Jason Merrill <jason@redhat.com>
16056 * dwarf2out.c (gen_member_die): Don't emit anything for an
16057 anonymous class constructor.
16059 2015-05-05 David Malcolm <dmalcolm@redhat.com>
16061 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16062 that it reflects the block structure.
16063 (afdo_propagate_edge): Likewise.
16064 (afdo_calculate_branch_prob): Likewise.
16065 (afdo_annotate_cfg): Likewise.
16066 * cfgcleanup.c (equal_different_set_p): Likewise.
16067 (try_crossjump_to_edge): Likewise.
16068 * cgraph.c (cgraph_node::verify_node): Likewise.
16069 * cgraphunit.c (expand_all_functions): Likewise.
16070 * config/i386/i386.c (ix86_expand_copysign): Likewise.
16071 (exact_dependency_1): Likewise.
16072 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16073 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16074 * gensupport.c (process_define_subst): Likewise.
16075 * lto-wrapper.c (merge_and_complain): Likewise.
16076 * tree-if-conv.c (if_convertible_bb_p): Likewise.
16077 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16078 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16079 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16080 * tree-vect-loop.c (vectorizable_reduction): Likewise.
16081 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16082 * tree-vect-stmts.c (vectorizable_shift): Likewise.
16083 * tree-vrp.c (vrp_finalize): Likewise.
16084 * tree.c (variably_modified_type_p): Likewise.
16086 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
16088 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16089 on darwin12 and later.
16090 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16091 file to pass -rdynamic on darwin12 and later.
16092 * config/darwin.opt (rdynamic): Add.
16094 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16096 * doc/extend.texi (C Extensions): Update menu for moved Variable
16097 Attributes and Type Attributes sections.
16099 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16102 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16103 if rep_8byte stringop strategy was specified for 32-bit target.
16105 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
16108 * config/i386/i386.md (vector convert to float spltiter): Check for
16109 xmm16+, when splitting scalar float conversion.
16110 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16112 2015-05-05 Nick Clifton <nickc@redhat.com>
16114 * config/msp430/msp430-opts.h (enum msp430_regions): New.
16115 * config/msp430/msp430.c (msp430_override_options): Complain if
16116 -mcode-region or -mdata-region is used on a non MSP430X.
16117 (msp430_section_attr): New function. Checks lower, upper and
16119 (msp430_attribute_table): Add lower, upper and either.
16120 (gen_prefix): New function. Generates a prefix for a section
16122 (msp430_select_section): New function - handles the choice of
16123 section for an object. Takes into account memory region
16124 attributes and options.
16125 (msp430_function_section): Use gen_prefix.
16126 (TARGET_SECTION_TYPE_FLAGS): Define.
16127 (msp430_section_type_flags): New function.
16128 (TARGET_ASM_UNIQUE_SECTION): Define.
16129 (msp430_unique_section): New function.
16130 (msp430_output_aligned_decl_common): New function.
16131 (msp430_do_not_relax_short_jumps): New function.
16132 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16134 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16135 * config/msp430/msp430-protos.h
16136 (msp430_do_not_relax_short_jumps): New prototype.
16137 (msp430_output_aligned_decl_common): New prototype.
16138 * config/msp430/msp430.md (length): New attribute.
16139 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16140 then use a long code sequence for short jumps.
16141 * config/msp430/msp430.opt (mcode-region): New.
16142 (mdata-region): New.
16143 * doc/invoke.texi: Document new options.
16144 * doc/extend.texi: Document new attributes.
16146 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
16148 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16149 (tune_params): Add field branch_costs.
16150 (aarch64_branch_cost): Declare.
16151 * gcc/config/aarch64.c (generic_branch_cost): New.
16152 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16153 (cortexa53_tunings): Likewise.
16154 (cortexa57_tunings): Likewise.
16155 (thunderx_tunings): Likewise.
16156 (xgene1_tunings): Likewise.
16157 (aarch64_branch_cost): Define.
16158 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16160 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16162 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16163 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16164 * config/i386/i386.md: Ditto.
16165 * config/i386/winnt.c: Ditto.
16167 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
16169 * doc/extend.texi (__atomic Builtins): Move implementation details
16170 to the end of the description, rewrite opening paragraphs, state
16171 difference with __sync builtins, state C11/C++11 assumptions,
16172 weaken itemized descriptions, add explanation of memory model
16173 behaviour, expand description of compare-exchange, simplify text.
16175 2015-05-05 Renlin Li <renlin.li@arm.com>
16177 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16179 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
16181 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16182 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16183 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16184 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16185 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16186 * configure: Regenerate.
16187 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16188 * doc/install.texi (aarch64*-*-*): Document new
16189 --enable-fix-cortex-a53-843419 option.
16190 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16191 and -mno-fix-cortex-a53-843419 options.
16193 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
16196 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16198 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
16200 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16201 fix overactive TYPE_MIN_VALUE check and add FIXME for type
16202 compatibility problems.
16204 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
16206 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16208 (cbranchsi4_reg): New.
16209 * config/microblaze/microblaze.c
16210 (microblaze_expand_conditional_branch_reg): New.
16211 * config/microblaze/microblaze-protos.h
16212 (microblaze_expand_conditional_branch_reg): New prototype.
16214 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
16216 * config/microblaze/microblaze.md (peephole2): New.
16218 2015-05-04 Jeff Law <law@redhat.com>
16221 2015-05-04 Jeff Law <law@redhat.com>
16223 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16224 simplifier to narrow arithmetic.
16225 * generic-match-head.c: (types_match, single_use): New functions.
16226 * gimple-match-head.c: (types_match, single_use): New functions.
16228 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
16231 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16232 (split_branches): Likewise.
16234 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
16236 * common.opt (fdelete-null-pointer-checks): Init to -1.
16237 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16238 override flag_delete_null_pointer_checks default.
16239 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16240 behavior re address zero. Better document target-specific behavior.
16241 (-fisolate-errneous-paths-dereference): Mention relationship to
16242 -fdelete-null-pointer-checks.
16244 2015-05-04 Jakub Jelinek <jakub@redhat.com>
16246 PR tree-optimization/65984
16247 * ubsan.c: Include tree-cfg.h.
16248 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16249 stmt_could_throw_p test, rename can_throw variable to ends_bb.
16251 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
16253 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16254 to CONST_DOUBLE_P predicate.
16255 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16256 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16257 allow only operands that satisfy standard_sse_constant_p predicate.
16258 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16259 to CONST_DOUBLE_P predicate.
16261 2015-05-04 Jeff Law <law@redhat.com>
16263 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16264 simplifier to narrow arithmetic.
16265 * generic-match-head.c: (types_match, single_use): New functions.
16266 * gimple-match-head.c: (types_match, single_use): New functions.
16268 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
16270 * config/arm/arm.c: Restore bootstrap.
16272 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
16274 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16275 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16276 as CONST_WIDE_INT, not CONST_DOUBLE.
16277 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16278 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16279 (ix86_find_base_term): Do not check for CONST_DOUBLE.
16280 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16281 (ix86_build_signbit_mask): Rewrite using wide ints.
16282 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16283 (ix86_rtx_costs): Handle CONST_WIDE_INT.
16284 (find_constant): Ditto.
16285 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16286 using gen_int_mode.
16287 * config/i386/predicates.md (x86_64_immediate_operand)
16288 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16289 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16290 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16291 (const0_operand): Also match const_wide_int.
16292 (constm1_operand): Ditto.
16293 (const1_operand): Ditto.
16295 2015-05-04 Richard Biener <rguenther@suse.de>
16297 PR tree-optimization/65965
16298 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16299 store groups at gaps.
16301 2015-05-04 Richard Biener <rguenther@suse.de>
16303 PR tree-optimization/65935
16304 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16305 then make sure to apply that swapping to the IL.
16307 2015-05-04 Jakub Jelinek <jakub@redhat.com>
16309 * Makefile.in (PATCHLEVEL_c): New variable.
16310 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16311 expand the same way as if DEVPHASE_c was non-empty.
16313 2015-05-04 Kai Tietz <ktietz@redhat.com>
16316 * lto-wrapper.c (run_gcc): Open filename
16319 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
16321 * doc/extend.texi (Variable Attributes, Type Attributes): Move
16322 sections up in file, to immediately after the Function Attributes
16325 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
16327 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16329 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16331 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16332 (insert_partition_copy_on_edge): Adjust.
16333 (insert_rtx_to_part_on_edge): Likewise.
16334 (insert_part_to_rtx_on_edge): Likewise.
16336 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16338 * function.c (set_return_jump_label): Change type of argument to
16340 * function.h (set_return_jump_label): Adjust.
16342 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16344 * reload.h (struct reg_equivs_t): Change type of init to
16346 * ira.c (fix_reg_equiv_init): Adjust.
16347 * reload1.c (eliminate_regs_1): Likewise.
16348 (init_eliminable_invariants): Likewise.
16350 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16352 * cselib.c (fp_setter_insn): Take a rtx_insn *.
16353 * cselib.h (fp_setter_insn): Adjust.
16355 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16357 * recog.c (struct validate_replace_src_data): Change type of
16358 insn field to rtx_insn *.
16359 (validate_replace_src_group): Change type of argument to rtx_insn *.
16360 * recog.h (validate_replace_src_group): Adjust.
16362 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16364 * haifa-sched.c: Change the type of some variables to rtx_insn *.
16365 * sched-deps.c: Likewise.
16366 * sched-int.h: Likewise.
16367 * sched-rgn.c: Likewise.
16368 * sel-sched.c: Likewise.
16370 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16373 * config/i386/i386.c: Change the type of some arguments to
16375 * config/arm/arm.c: Likewise.
16377 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16379 * lra-constraints.c: Change type of some arguments to rtx_insn *.
16381 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16383 * regcprop.c (kill_autoinc_value): Change type of argument to
16386 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16388 * genrecog.c (print_subroutine): Adjust.
16389 * recog.c (get_bool_attr_mask_uncached): Likewise.
16390 * recog.h (struct recog_data_d): Change the type of insn to
16393 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16395 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16397 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16399 * df-problems.c (df_set_note): Change type of argument to
16402 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16404 * builtins.c (expand_builtin_trap): Change type of local
16405 variable to rtx_insn *.
16406 (add_sched_insns_for_speculation): Likewise.
16407 (ix86_emit_save_regs): Likewise.
16408 (get_scratch_register_on_entry): Likewise.
16409 (ix86_emit_restore_reg_using_pop): Likewise.
16410 (ix86_emit_leave): Likewise.
16411 (ix86_emit_restore_regs_using_mov): Likewise.
16412 (ix86_expand_epilogue): Likewise.
16414 (rl78_alloc_physical_registers_umul): Likewise.
16415 * cselib.c (discard_useless_locs): Likewise.
16416 (cselib_invalidate_regno): Likewise.
16417 (cselib_invalidate_mem): Likewise.
16418 * function.c (expand_function_start): Likewise.
16419 (emit_use_return_register_into_block): Likewise.
16420 * gcse.c: Likewise.
16421 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16422 * ifcvt.c (noce_get_alt_condition): Likewise.
16423 * loop-doloop.c (doloop_condition_get): Likewise.
16424 * lra-constraints.c (inherit_in_ebb): Likewise.
16425 * modulo-sched.c (sms_schedule_by_order): Likewise.
16426 * recog.c (next_insn_tests_no_inequality): Likewise.
16427 * reorg.c (emit_delay_sequence): Likewise.
16428 (update_reg_dead_notes): Likewise.
16429 (fix_reg_dead_note): Likewise.
16430 (fill_slots_from_thread): Likewise.
16431 (delete_computation): Likewise.
16433 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
16435 * doc/extend.texi (Variable Attributes): Add menu and proper
16436 @nodes to subsections. Move Microsoft Windows attributes to
16437 their own subsection.
16438 (Type Attributes): Reorganize introduction to remove duplicate
16439 list of attributes. Add menu and proper @nodes to subsections.
16440 Alphabetize the main table of common attributes.
16442 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
16444 * match.pd: New simplification patterns.
16445 (x + (x & 1)) -> ((x + 1) & ~1)
16446 (x & ~(x & y)) -> ((x & ~y))
16447 (x | ~(x | y)) -> ((x | ~y))
16449 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16451 * target.def (attribute_table): Mention that struct attribute_spec
16452 is defined in tree-core.h rather than tree.h
16453 * doc/tm.texi: Regenerate.
16455 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
16457 * genrecog.c (test): Rename to rtx_test. Update rest of file
16460 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
16462 PR translation/65959
16463 * params.h (DEFPARAM): Rename msgid to nocmsgid.
16465 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16467 * gcc/config/aarch64/aarch64-protos.h (tune_params):
16468 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16469 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16470 Return value depending on target.
16471 (generic_tunings): Initialize new target settings.
16472 (cortexa53_tunings): Likewise.
16473 (cortexa57_tunings): Likewise.
16474 (thunderx_tunings): Likewise.
16475 (xgene1_tunings): Likewise.
16477 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16479 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16480 Make Cortex-A53 shift costs more accurate.
16482 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16484 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16487 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
16489 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16490 Calculate cost of op0 and op1 in PLUS and MINUS cases.
16492 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16494 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16495 Add cost of op0 in the compare-with-fpzero case.
16497 2015-04-30 David Malcolm <dmalcolm@redhat.com>
16499 * builtins.c (fold_builtin_1): Remove spurious second
16501 * cgraph.h (symtab_node::get_availability): Likewise.
16502 * opts.c (common_handle_option): Remove spurious second semicolon.
16503 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16504 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16506 2015-04-30 Caroline Tice <cmtice@google.com>
16508 PR gcov-profile/65929
16509 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16510 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16511 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16512 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16513 * doc/tm.texi: Regenerate.
16514 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
16515 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16516 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
16517 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
16519 2015-04-30 Marek Polacek <polacek@redhat.com>
16521 * varasm.c (handle_cache_entry): Fix logic.
16523 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16525 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
16526 (*extrsi5_insn_uxtw_alt): Likewise.
16527 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
16528 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
16531 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16533 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
16536 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16538 * config/aarch64/aarch64.md
16539 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
16540 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
16541 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
16542 appropriately. Handle alternative EON form.
16544 2015-04-30 Renlin Li <renlin.li@arm.com>
16546 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
16547 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
16549 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
16552 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
16553 -fstrict-aliasing boundaries.
16555 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16557 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
16558 and [SU]MNEGL patterns.
16560 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16562 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
16563 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
16564 combined arithmetic-shift ops. Properly handle all shift and extend
16565 operations that can occur in combination with PLUS/MINUS.
16566 Rename maybe_fma to compound_p.
16567 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
16568 arithmetic and shift operations.
16570 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16572 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
16573 rather than arith_shift cost when costing ADD/MINUS of an
16576 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
16579 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
16582 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
16584 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
16585 are for the same position.
16587 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
16589 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
16591 (vectorize_loops): Use it.
16593 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
16595 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
16596 for aggregate types.
16597 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
16598 type to be non_ODR.
16599 * tree.c (need_assembler_name_p): Compute mangled name for
16600 non-fundamental types and integer types.
16602 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
16604 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
16606 * expr.c (expand_expr_real_2): Likewise.
16608 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
16610 * tree.c (build_common_builtin_nodes): Do not build
16611 __builtin_alloca_with_align as equivalent of library alloca.
16613 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
16615 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
16616 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
16618 * tree.c: Include print-tree.h and ipa-utils.h
16619 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
16620 (free_lang_data_in_cgraph): Call verify_type.
16621 (verify_type_variant): New function.
16622 (verify_type): New function.
16623 * tree.h (verify_type): Declare.
16625 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
16627 * config/mips/mips-cpus.def: (mips4): Change default processor
16628 from PROCESSOR_R8000 to PROCESSOR_R10000.
16630 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
16632 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
16633 la/jalr instead of jal.
16635 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
16638 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
16639 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
16640 (setcc+movzbl peephole2): Check also clobbered reg.
16641 (setcc+andl peephole2): Ditto.
16643 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
16646 * config/nvptx/mkoffload.c (target_ilp32): New variable.
16647 (main): Set it depending on "-foffload-abi=[...]".
16648 (compile_native, main): Use it to pass "-m32" or "-m64" to the
16651 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
16654 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
16655 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
16656 Flip lane index back at assembly time for bigendian.
16658 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
16660 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
16661 * gimplify.c (gimplify_omp_workshare): Use it.
16663 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
16665 * Makefile.in (build/genrecog.o): Depend on inchash.h.
16666 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
16668 * genrecog.c: Rewrite most of the code except for the third page.
16670 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
16672 * inchash.h, inchash.c: Include bconfig.h for build objects.
16673 * Makefile.in (build/inchash.o): New rule.
16675 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
16678 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
16679 number in type attribute expression.
16681 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
16683 * loop-iv.c (canon_condition): Generalize to all types of integer
16686 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
16688 * gimple-walk.c: Prune duplicate or unneeded includes.
16689 (walk_gimple_asm): Only call parse_input_constraint or
16690 parse_output_constraint if their findings are used.
16691 Honour parse_input_constraint and parse_output_constraint
16694 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
16696 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
16698 2015-04-29 Tom de Vries <tom@codesourcery.com>
16700 PR tree-optimization/65893
16701 * passes.def (pass_all_optimizations): Move pass_stdarg to after
16704 2015-04-29 Richard Biener <rguenther@suse.de>
16706 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16707 compute GROUP_SIZE for basic-block SLP.
16708 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
16709 take into account gaps.
16710 (vect_get_mask_element): Properly reject references to previous
16712 (vect_transform_slp_perm_load): Likewise.
16714 2015-04-29 Christian Bruel <christian.bruel@st.com>
16717 * config/i386/i386.c (ix86_default_align): New function.
16718 (ix86_override_options_after_change): Call ix86_default_align.
16719 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
16720 (ix86_override_options_after_change): New function.
16722 2015-04-28 Jeff Law <law@redhat.com>
16724 * tree-ssa-dom.c (record_equality); Fix comment typos.
16726 2015-04-28 Tom de Vries <tom@codesourcery.com>
16728 PR tree-optimization/65887
16729 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
16731 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
16733 * doc/extend.texi (Declaring Attributes of Functions): Split into
16734 subsections by target. Alphabetize the table of common attributes.
16735 Rewrite some of the introductory text to reflect the new structure.
16736 Update some cross-references to point to the new subsections.
16737 (Attribute Syntax): Put paragraph about "__" naming here. Remove
16738 duplicate copies in the discussion of function, label, and type
16741 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
16744 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
16746 2015-04-28 Jason Merrill <jason@redhat.com>
16749 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
16750 (finalize_type_size): Respect TYPE_USER_ALIGN.
16751 (layout_type) [ARRAY_TYPE]: Likewise.
16753 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
16755 * config/arm/arm.md (*arm_movt): Fix type attribute.
16756 (*cmpsi_shiftsi): Likewise.
16757 (*cmpsi_shiftsi_swp): Likewise.
16758 (*movsicc_insn): Likewise.
16759 (*cond_move): Likewise.
16760 (*if_plus_move): Likewise.
16761 (*if_move_plus): Likewise.
16762 (*if_arith_move): Likewise.
16763 (*if_move_arith): Likewise.
16764 (*if_shift_move): Likewise.
16765 (*if_move_shift): Likewise.
16766 (*arm_movtas_ze): Likewise.
16767 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
16768 redundancy and type attribute.
16769 (*thumb2_movsi_insn): Fix type attribute.
16770 (*thumb2_addsi_short): Likewise.
16771 (thumb2_addsi3_compare0): Likewise.
16772 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
16773 attributes accordingly.
16775 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
16778 * function.c (pad_to_arg_alignment): Add parentheses.
16780 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
16782 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
16783 libgcc/config/frv/elf-lib.h.
16785 2015-04-28 Tom de Vries <tom@codesourcery.com>
16787 * tree-call-cdce.c: Fix example in header comment.
16789 2015-04-28 Richard Biener <rguenther@suse.de>
16791 PR tree-optimization/62283
16792 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
16793 fails fatally and we are vectorizing a basic-block simply
16794 cause the child to be constructed piecewise.
16795 (vect_analyze_slp_cost_1): Adjust.
16796 (vect_detect_hybrid_slp_stmts): Likewise.
16797 (vect_bb_slp_scalar_cost): Likewise.
16798 (vect_get_constant_vectors): For piecewise constructed
16799 constants place them after the last def.
16800 (vect_get_slp_defs): Adjust.
16801 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
16802 externals for basic-block vectorization.
16804 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
16807 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
16809 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
16810 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
16811 (AARCH64_TUNE_FMA_STEERING): Likewise.
16812 * config/aarch64/aarch64-cores.def: Set
16813 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
16814 FMUL/FMADD instructions.
16815 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
16816 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
16817 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
16818 * config/aarch64/cortex-a57-fma-steering.h: New file.
16819 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16821 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
16823 * gensupport.c (std_preds): Add missing codes to address_operand entry.
16825 2015-04-28 Richard Biener <rguenther@suse.de>
16827 PR tree-optimization/65851
16828 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
16829 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
16830 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
16831 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
16832 (ccp_visit_phi_node): Adjust.
16833 (evaluate_stmt): For simplifications to SSA names return its
16834 lattice value if that isn't VARYING. Return immediately when
16835 simplified to a constant.
16836 (visit_assignment): Adjust.
16837 (ccp_visit_stmt): Likewise.
16839 2015-04-28 Tom de Vries <tom@codesourcery.com>
16841 PR tree-optimization/65818
16842 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
16845 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16847 * calls.c (save_fixed_argument_area): Don't check
16848 ARGS_GROW_DOWNWARD with the preprocessor.
16849 (restore_fixed_argument_area): Likewise.
16850 (mem_overlaps_already_clobbered_arg_p): Likewise.
16851 (check_sibcall_argument_overlap): Likewise.
16852 (expand_call): Likewise.
16853 (emit_library_call_value_1): Likewise.
16854 (store_one_arg): Likewise.
16855 * function.c (assign_parms): Likewise.
16856 (locate_and_pad_parm): Likewise.
16857 (pad_to_arg_alignment): Likewise.
16858 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16860 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16862 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
16863 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
16864 * calls.c (save_fixed_argument_area): Don't chekc if
16865 ARGS_GROW_DOWNWARD is defined.
16866 (restore_fixed_argument_area): Likewise.
16867 (mem_overlaps_already_clobbered_arg_p): Likewise.
16868 (check_sibcall_argument_overlap): Likewise.
16869 (expand_call): Likewise.
16870 (emit_library_call_value_1): Likewise.
16871 (store_one_arg): Likewise.
16872 * function.c (assign_parms): Likewise.
16873 (locate_and_pad_parm): Likewise.
16874 (pad_to_arg_alignment): Likewise.
16875 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16877 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16879 * defaults.h (gen_epilogue): New function.
16880 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
16882 * cfgrtl.c (cfg_layout_finalize): Likewise.
16883 * df-scan.c: Likewise.
16884 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16885 (reposition_prologue_and_epilogue_notes): Likewise.
16886 * reorg.c (find_end_label): Likewise.
16887 * toplev.c: Likewise.
16889 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16891 * bb-reorder.c (HAVE_return): Don't check if its undefined.
16892 * defaults.h (gen_simple_return): New function.
16893 (gen_simple_return): Likewise.
16894 (HAVE_return): Add default definition to false.
16895 (HAVE_simple_return): Likewise.
16896 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
16897 HAVE_return and HAVE_simple_return are defined.
16898 * function.c (gen_return_pattern): Likewise.
16899 (convert_jumps_to_returns): Likewise.
16900 (thread_prologue_and_epilogue_insns): Likewise.
16901 * reorg.c (find_end_label): Likewise.
16902 (dbr_schedule): Likewise.
16903 * shrink-wrap.c: Likewise.
16904 * shrink-wrap.h: Likewise.
16906 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16908 * defaults.h (EPILOGUE_USES): Add default definition of false.
16909 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
16910 * resource.c (init_resource_info): Likewise.
16912 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16914 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
16916 * dwarf2out.c (field_byte_offset): REmove check if
16917 PCC_BITFIELD_TYPE_MATTERS is defined.
16918 * stor-layout.c (layout_decl): Likewise.
16919 (update_alignment_for_field): Likewise.
16920 (place_field): Likewise.
16922 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16924 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
16926 * regrename.c (check_new_reg_p): Remove check if
16927 HARD_REGNO_RENAME_OK is defined.
16928 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
16930 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16932 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
16933 * cse.c (fold_rtx): Likewise.
16934 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
16935 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
16936 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
16937 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
16938 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
16939 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
16940 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
16941 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
16942 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
16943 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
16945 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
16946 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
16947 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
16948 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
16949 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
16950 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
16951 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
16952 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
16953 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
16954 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
16955 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
16956 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
16957 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
16958 * doc/tm.texi: Regenerate.
16959 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
16960 either true or false.
16962 2015-04-27 Jeff Law <law@redhat.com>
16964 PR tree-optimization/65217
16965 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
16966 of them has a single use, make sure it is the LHS of the implied
16969 2015-04-28 Alan Modra <amodra@gmail.com>
16972 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
16973 (offsettable_ok_by_alignment): Use minimum of decl and toc
16974 pointer alignment. Replace dead code with assertion.
16975 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
16976 case if size exceeds toc pointer alignment.
16977 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
16978 (rs6000_emit_move): Likewise.
16979 * configure.ac: Add linker toc pointer alignment check.
16980 * configure: Regenerate.
16981 * config.in: Regenerate.
16983 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
16985 * config.gcc: Add h8300-*-linux.
16986 * config/h8300/linux.h: New.
16987 * config/h8300/t-linux: New.
16988 * config/h8300/h8300.c (h8300_option_override): Normal mode
16989 is not supported for h8300-*-linux.
16990 (h8300_file_start): Target priority change.
16991 (get_shift_alg): Likewise.
16992 (h8300_shift_need_scratch_p): Likewise.
16993 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
16994 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
16996 2015-04-27 Caroline Tice <cmtice@google.com>
16998 * final.c (final_scan_insn): Output cold_function_name as function
17000 * varasm.c (cold_function_name): Make global.
17001 (assemble_start_function): Re-set cold_function_name.
17002 (assemble_end_function): Output cold partition size.
17003 * varasm.h (cold_function_name): Declare global.
17005 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
17007 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17008 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17010 (*movxi_internal_avx512f): Ditto.
17011 (define_split): Check for xmm16+, when splitting scalar float_extend.
17012 (*extendsfdf2_mixed): Use "v" constraint.
17013 (define_split): Check for xmm16+, when splitting scalar float_truncate.
17014 (*truncdfsf_fast_sse): Use "v" constraint.
17015 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17016 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17017 (define_peephole2): Check for xmm16+, when converting scalar
17019 (define_peephole2): Check for xmm16+, when converting scalar
17021 (*fop_<mode>_comm_mixed): Use "v" constraint.
17022 (*fop_<mode>_comm_sse): Ditto.
17023 (*fop_<mode>_1_mixed): Ditto.
17024 (*sqrt<mode>2_sse): Ditto.
17025 (*ieee_s<ieee_maxmin><mode>3): Ditto.
17027 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17029 * combine.c (simplify_if_then_else): Use std::swap instead
17030 of manually swapping.
17031 (known_cond): Likewise.
17032 (simplify_comparison): Likewise.
17034 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
17037 * config/rs6000/htm.md: Remove all define_expands.
17038 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17039 UNSPECV_HTM_TABORTWCI): Remove.
17040 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17041 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17042 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17043 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17044 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17045 tabortwci_internal): Remove define_insns.
17046 (tabort<wd>c, tabort<wd>ci): New define_insns.
17047 (tabort): Use gpc_reg_operand.
17048 (tcheck): Remove operand.
17049 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17050 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17052 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17053 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
17054 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17055 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17056 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17057 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17058 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17059 (tcheck): Remove builtin argument.
17060 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17062 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
17063 tabortdc and tabortdci builtins when not in 64-bit mode.
17064 Modify code to handle the loss of the HTM define_expands.
17065 Emit code to copy the CR register to TARGET.
17066 (htm_init_builtins): Modify code to handle the loss of the HTM
17068 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17069 (RS6000_BTC_64BIT): Likewise.
17070 (RS6000_BTC_CR): New macro.
17071 * doc/extend.texi: Update documentation for htm builtins.
17073 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17075 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17076 of manually swapping.
17077 (simplify_associative_operation): Likewise.
17078 (simplify_binary_operation): Likewise.
17079 (simplify_plus_minus): Likewise.
17080 (simplify_relational_operation): Likewise.
17081 (simplify_ternary_operation): Likewise.
17083 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
17085 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17086 (xs_hi_nonmemory_operand): Remove error.
17087 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17088 general_operand rather than xs_hi_general_operand.
17090 2015-04-27 Richard Biener <rguenther@suse.de>
17092 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17093 (record_equivalences_from_stmt): Valueize rhs.
17094 (record_equality): Canonicalize x and y order via
17095 tree_swap_operands_p. Do not swap operands for same loop depth.
17097 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
17101 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17102 Add hint how to use own spec file.
17104 2015-04-27 Jakub Jelinek <jakub@redhat.com>
17106 PR tree-optimization/65875
17107 * tree-vrp.c (update_value_range): If in is_new case setting
17108 old_vr to VR_VARYING, also set new_vr to it. Remove
17109 old_vr->type == VR_VARYING test.
17110 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17111 SSA_PROP_INTERESTING if update_value_range returned true,
17112 but new range is VR_VARYING.
17114 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
17116 * combine.c (sign_extend_short_imm): New.
17117 (set_nonzero_bits_and_sign_copies): Use above new function for sign
17118 extension of src short immediate.
17119 (reg_nonzero_bits_for_combine): Likewise for tem.
17121 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
17123 * stor-layout.c (self_referential_component_ref_p): New predicate.
17124 (copy_self_referential_tree_r): Use it.
17125 (self_referential_size): Punt for simple operations directly involving
17126 self-referential component references.
17127 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17129 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
17131 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17133 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
17135 * vec.h (vec): Make splice arguments const. Update definitions
17138 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
17140 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17143 2015-04-26 Tom de Vries <tom@codesourcery.com>
17145 PR tree-optimization/65826
17146 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17148 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
17150 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17151 (*madd3<mode>): Ditto.
17152 (*msub4<mode>): Ditto.
17153 (*msub3<mode>): Ditto.
17154 (*nmadd4<mode>): Ditto.
17155 (*nmadd3<mode>): Ditto.
17156 (*nmadd4<mode>_fastmath): Ditto.
17157 (*nmadd3<mode>_fastmath): Ditto.
17158 (*nmsub4<mode>): Ditto.
17159 (*nmsub3<mode>): Ditto.
17160 (*nmsub4<mode>_fastmath): Ditto.
17161 (*nmsub3<mode>_fastmath): Ditto.
17163 2015-04-24 Jason Merrill <jason@redhat.com>
17166 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17167 down when building TYPE_CANONICAL.
17168 (build_pointer_type_for_mode): Likewise.
17170 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
17172 * genrecog.c (validate_pattern): Check matching constraint refers
17173 to a lower numbered operand.
17175 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17178 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17179 save to independent variables use the Save attribute. This will
17180 allow these options to be modified with the #pragma/attribute
17182 (-mallow-movmisalign): Likewise.
17183 (-mallow-df-permute): Likewise.
17184 (-msched-groups): Likewise.
17185 (-malways-hint): Likewise.
17186 (-malign-branch-targets): Likewise.
17187 (-mvectorize-builtins): Likewise.
17188 (-msave-toc-indirect): Likewise.
17190 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17191 can be set via the #pragma/attribute target support.
17192 (rs6000_opt_vars): Likewise.
17193 (rs6000_inner_target_options): If VSX was set, also set
17194 -mno-avoid-indexed-addresses.
17196 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17198 * config/arm/iterators.md (shiftable_ops): Rename to...
17199 (SHIFTABLE_OPS): ... This. Update use in comments.
17200 (ior_xor): Rename to...
17201 (IOR_XOR): ... This.
17202 (vqh_ops): Rename to...
17203 (VQH_OPS): ... This.
17204 (vqhs_ops): Rename to...
17205 (VQHS_OPS): ... This.
17206 (rshifts): Rename to...
17207 (RSHIFTS): ... This.
17208 (returns): Rename to...
17209 (RETURNS): ... This.
17210 * config/arm/arm.md: Update uses of the above.
17211 * config/arm/neon.md: Likewise.
17213 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17215 * config.host (case ${host}): Add aarch64*-*-linux case.
17216 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17217 fields to all the cores.
17218 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17219 Add MCPU_MTUNE_NATIVE_SPECS.
17220 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17221 field to all extensions.
17222 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17223 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17224 Adjust definition of AARCH64_OPT_EXTENSION.
17225 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17226 (MCPU_MTUNE_NATIVE_SPECS): Define.
17227 * config/aarch64/driver-aarch64.c: New file.
17228 * config/aarch64/x-arch64: New file.
17229 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17232 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17233 Wei Mi <wmi@google.com>
17235 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17236 * config/i386/i386.c (extract_base_offset_in_addr): New function.
17237 (ix86_operands_ok_for_move_multiple): Ditto.
17238 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17239 (movlpd/movhpd to movupd peephole2): Ditto.
17241 2015-04-24 Marek Polacek <polacek@redhat.com>
17244 * input.h (from_macro_expansion_at): Define.
17247 * doc/invoke.texi: Update description of -Wlogical-op.
17249 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
17251 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17252 ternary operator in fprintf and harmonize spacing.
17254 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17256 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17257 Mark operand1 commutative.
17259 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
17261 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17262 input operands in memory.
17263 (*vec_concatv2si_sse4_1): Ditto.
17264 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17265 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17267 (vec_extract_hi_v32hi): Ditto.
17268 (vec_extract_hi_v64hi): Ditto.
17269 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17271 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
17272 Steven Bosscher <steven@gcc.gnu.org>
17274 PR rtl-optimization/34503
17275 * cprop.c (cprop_reg_p): New.
17276 (hash_scan_set): Use above function to check if register can be
17278 (find_avail_set): Return up to two sets, one whose source is a
17279 register and one whose source is a constant. Sets are returned in an
17280 array passed as parameter rather than as a return value.
17281 (cprop_insn): Use a do while loop rather than a goto. Try each of the
17282 sets returned by find_avail_set, starting with the one whose source is
17283 a constant. Use cprop_reg_p to check if register can be propagated.
17284 (do_local_cprop): Use cprop_reg_p to check if register can be
17286 (implicit_set_cond_p): Likewise.
17288 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17290 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17291 (sem_function::equals): IGNORED_NODES parameter is now unused;
17292 update call of equals_private.
17293 (sem_function::equals_private): Do not call equals_wpa; skip
17294 gimple body matching if there is no body.
17295 (sem_function::init): Add logic to hash tthunk info.
17296 (sem_function::parse): Also parse thunks.
17297 * ipa-icf.h (equals_private): Update declaration.
17299 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17301 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17302 asterisk from name so this can be generated directly.
17303 (*altivec_stvx_<mode>_internal): Likewise.
17304 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17305 that this is never called during or after reload/lra.
17306 (rs6000_frame_related): Remove split_reg
17307 argument and logic that references it.
17308 (emit_frame_save): Remove last parameter from call to
17309 rs6000_frame_related.
17310 (rs6000_emit_prologue): Remove last parameter from eight calls to
17311 rs6000_frame_related. Force generation of stvx instruction for
17312 Altivec register saves. Remove split_reg handling, which is no
17314 (rs6000_emit_epilogue): Force generation of lvx instruction for
17315 Altivec register restores.
17317 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17319 * config/rs6000/rs6000.opt (mcrypto): Change option description to
17320 match category changes in ISA 2.07B.
17322 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17324 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17326 (cmp_op, cmp_type): New code attributes.
17327 (NEON_VCMP, NEON_VACMP): New int iterators.
17328 (cmp_op_unsp): New int attribute.
17329 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17330 (neon_vceq<mode>): Delete.
17331 (neon_vc<cmp_op><mode>_insn): New pattern.
17332 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17333 (neon_vcgeu<mode>): Delete.
17334 (neon_vcle<mode>): Likewise.
17335 (neon_vclt<mode>: Likewise.
17336 (neon_vcage<mode>): Likewise.
17337 (neon_vcagt<mode>): Likewise.
17338 (neon_vca<cmp_op><mode>): New define_expand.
17339 (neon_vca<cmp_op><mode>_insn): New pattern.
17340 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17342 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17344 * tree.h (attribute_value_equal): Declare.
17345 * tree.c (attribute_value_equal): Export.
17347 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17349 * ipa-icf.c (sem_item::compare_attributes): New function.
17350 (sem_item::compare_referenced_symbol_properties): Compare variable
17352 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17353 (sem_function::param_used_p): New function.
17354 (sem_function::equals_wpa): Fix attribute comparsion; match
17355 parameter type codes; do not compare paremter flags when
17356 they are not used; compare edge flags; compare indirect calls.
17357 (sem_item::update_hash_by_addr_refs): Hash reference type.
17358 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17359 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17360 reference use type.
17361 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17362 * ipa-icf.h (compare_attributes, param_used_p): Declare.
17364 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
17366 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17368 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17369 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17370 (sem_item::compare_referenced_symbol_properties): New.
17371 (sem_item::hash_referenced_symbol_properties): New.
17372 (sem_item::compare_cgraph_references): Rename to ...
17373 (sem_item::compare_symbol_references): ... this one; use
17374 compare_referenced_symbol_properties.
17375 (sem_function::equals_wpa): Do not compare
17376 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17377 DECL_IS_OPERATOR_NEW; compare pointer sizes.
17378 (sem_item::update_hash_by_addr_refs): Call
17379 hash_referenced_symbol_properties.
17380 (sem_item::update_hash_by_local_refs): Cleanup.
17381 (sem_function::merge): Do not mix up symbol properties.
17382 (sem_variable::equals_wpa): Use compare_symbol_references.
17383 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17384 (sem_item::hash_referenced_symbol_properties): New.
17385 (sem_item::compare_symbol_references): New.
17386 (sem_item::compare_cgraph_references): Remove.
17388 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
17391 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17392 Emit size of local.
17394 2015-04-23 Nick Clifton <nickc@redhat.com>
17396 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17397 ATTRIBUTE_UNUSED to x parameter.
17398 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17400 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17402 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17403 TARGET_CRYPTO to TARGET_P8_VECTOR>
17404 (crypto_vpermxor_<mode>): Likewise.
17405 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17406 (BU_CRYPTO_3A): Likewise.
17407 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17408 (BU_CRYPTO_OVERLOAD_3A): New #define.
17409 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17410 (VPMSUMH): Likewise.
17411 (VPMSUMW): Likewise.
17412 (VPMSUMD): Likewise.
17413 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17414 (VPERMXOR_V4SI): Likewise.
17415 (VPERMXOR_V8HI): Likewise.
17416 (VPERMXOR_V16QI): Likewise.
17417 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17418 BU_CRYPTO_OVERLOAD_2A.
17419 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17420 BU_CRYPTO_OVERLOAD_3A.
17421 * config/rs6000/rs6000.opt (mcrypto): Change description of
17424 2015-04-23 Richard Biener <rguenther@suse.de>
17426 * passes.def: Remove copy propagation passes run directly after CCP.
17427 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17429 (ccp_visit_phi_node): Rework to handle first executable edge
17432 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
17434 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17435 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17436 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17437 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17438 (thumb_legimitimize_reload_address): Remove.
17439 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17441 (thumb_legimitimize_reload_address): Remove.
17443 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17445 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17447 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17449 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17451 (store_multiple): Likewise.
17453 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17455 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17456 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17457 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17458 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17459 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17460 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17461 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17462 Specify issue_rate value.
17463 (arm_issue_rate): Look up issue rate from tuning structs. Remove
17464 large switch statement.
17465 (arm_marvell_pj4_tune): New struct.
17466 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17469 2015-04-23 Richard Biener <rguenther@suse.de>
17471 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17472 (vect_find_last_store_in_slp_instance): Rename to ...
17473 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17474 (vect_analyze_slp_cost_1): Use vector_load for constant defs
17475 and vec_construct for external defs when estimating prologue cost.
17476 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17477 Compute costs here only when vectorizing loops.
17478 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17479 have been determined.
17480 (vect_schedule_slp_instance): Simplify vectorized code placement
17481 and prepare for in-BB external defs.
17482 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17483 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17484 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17486 (vect_model_load_cost): Likewise.
17487 (vectorizable_store): Instead add it here.
17488 (vectorizable_load): Likewise.
17489 (vect_is_simple_use): Dump def type textually.
17491 2015-04-23 Richard Biener <rguenther@suse.de>
17493 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17494 * cfgloop.c (verify_loop_structure): Verify the root loop node.
17495 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17496 instead of get_eh_region_from_lp_number.
17497 * loop-init.c (fix_loop_structure): If we removed a loop, reset
17500 2015-04-23 Anton Blanchard <anton@samba.org>
17502 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17503 need for -mprofile-kernel to save LR to stack.
17505 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17507 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17509 (insn_is_swappable_p): Return 1 for a convert from double to
17510 single precision when all of its uses are splats of BE element
17513 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17515 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17517 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17520 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
17521 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
17522 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
17524 (rs6000_builtin_mask_for_load): Return 0 for targets with
17525 efficient unaligned VSX accesses so that the vectorizer will use
17526 direct unaligned loads.
17527 (rs6000_builtin_support_vector_misalignment): Always return true
17528 for targets with efficient unaligned VSX accesses.
17529 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
17530 stores on targets with efficient unaligned VSX accesses is almost
17531 always the same as the cost of an aligned load or store, so model
17533 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
17534 unaligned vectors if we have efficient unaligned VSX accesses.
17535 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
17536 undocumented option.
17538 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17541 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
17543 * config.gcc (LIBC_MUSL): New tm_defines macro.
17544 * config/linux.h (OPTION_MUSL): Define.
17545 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17546 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17547 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17549 * config/linux.opt (mmusl): New option.
17550 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17551 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17553 * configure: Regenerate.
17555 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
17557 * config.gcc (LIBC_MUSL): New tm_defines macro.
17558 * config/linux.h (OPTION_MUSL): Define.
17559 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17560 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17561 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17563 * config/linux.opt (mmusl): New option.
17564 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17565 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17567 * configure: Regenerate.
17569 2015-04-22 Yury Gribov <y.gribov@samsung.com>
17571 * doc/invoke.texi (-fsanitize-sections): Update description.
17572 * asan.c (set_sanitized_sections): Parse incoming arg.
17573 (section_sanitized_p): Support wildcards.
17575 2015-04-22 Tom de Vries <tom@codesourcery.com>
17577 PR tree-optimization/65823
17578 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
17579 equality between ap_copy and ap.
17581 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17584 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
17586 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17589 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
17591 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17594 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
17595 remove already contained t-files.
17597 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17599 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
17600 Remove unneeded forward declarations.
17601 (suitable_for_tail_call_opt_p): Commentary typo fix.
17603 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17605 * varasm.c (emit_bss): Remove redundant guard.
17607 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17609 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
17611 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17613 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
17615 2015-04-22 Hale Wang <hale.wang@arm.com>
17616 Terry Guo <terry.guo@arm.com>
17618 PR rtl-optimization/64818
17619 * combine.c (can_combine_p): Don't combine user-specified
17620 register if it is in an asm input.
17622 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
17625 * passes.def (early_optimizations): Add pass_dse.
17627 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17629 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
17630 * reorg.c (redundant_insn): Remove ifdef
17631 INSN_REFERENCES_ARE_DELAYED.
17632 * resource.c (mark_referenced_resources): Likewise.
17634 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17636 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
17637 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
17638 * resource.c (mark_set_resources): Likewise.
17640 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17642 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
17643 * cfgcleanup.c (flow_find_cross_jump): Likewise.
17644 (flow_find_head_matching_sequence): Likewise.
17645 (try_head_merge_bb): Likewise.
17646 * combine.c (can_combine_p): Likewise.
17647 (try_combine): Likewise.
17648 (distribute_notes): Likewise.
17649 * df-problems.c (can_move_insns_across): Likewise.
17650 * final.c (final): Likewise.
17651 * gcse.c (insert_insn_end_basic_block): Likewise.
17652 * ira.c (find_moveable_pseudos): Likewise.
17653 * reorg.c (try_merge_delay_insns): Likewise.
17654 (fill_simple_delay_slots): Likewise.
17655 (fill_slots_from_thread): Likewise.
17656 * sched-deps.c (sched_analyze_2): Likewise.
17658 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17660 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
17661 PIC_OFFSET_TABLE_REGNUM.
17663 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17665 * alias.c (init_alias_target): Remove ifdef
17666 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
17667 * df-scan.c (df_insn_refs_collect): Likewise.
17668 (df_get_regular_block_artificial_uses): Likewise.
17669 (df_get_eh_block_artificial_uses): Likewise.
17670 (df_get_entry_block_def_set): Likewise.
17671 (df_get_exit_block_use_set): Likewise.
17672 * emit-rtl.c (gen_rtx_REG): Likewise.
17673 * ira.c (ira_setup_eliminable_regset): Likewise.
17674 * reginfo.c (init_reg_sets_1): Likewise.
17675 * regrename.c (rename_chains): Likewise.
17676 * reload1.c (reload): Likewise.
17677 (eliminate_regs_in_insn): Likewise.
17678 * resource.c (mark_referenced_resources): Likewise.
17679 (init_resource_info): Likewise.
17681 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17683 * defaults.h (MASK_RETURN_ADDR): New definition.
17684 * except.c (expand_builtin_extract_return_addr): Remove ifdef
17687 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17689 * defaults.h (RETURN_ADDR_OFFSET): New definition.
17690 * except.c (expand_builtin_extract_return_addr): Remove ifdef
17691 RETURN_ADDR_OFFSET.
17692 (expand_builtin_frob_return_addr): Likewise.
17694 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17696 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
17697 (try_redirect_by_replacing_jump): Likewise.
17698 (rtl_tidy_fallthru_edge): Likewise.
17699 * combine.c (insn_a_feeds_b): Likewise.
17700 (find_split_point): Likewise.
17701 (simplify_set): Likewise.
17702 * cprop.c (cprop_jump): Likewise.
17703 * cse.c (cse_extended_basic_block): Likewise.
17704 * df-problems.c (can_move_insns_across): Likewise.
17705 * function.c (emit_use_return_register_into_block): Likewise.
17706 * haifa-sched.c (sched_init): Likewise.
17707 * ira.c (find_moveable_pseudos): Likewise.
17708 * loop-invariant.c (find_invariant_insn): Likewise.
17709 * lra-constraints.c (curr_insn_transform): Likewise.
17710 * postreload.c (reload_combine_recognize_const_pattern):
17712 * reload.c (find_reloads): Likewise.
17713 * reorg.c (delete_scheduled_jump): Likewise.
17714 (steal_delay_list_from_target): Likewise.
17715 (steal_delay_list_from_fallthrough): Likewise.
17716 (redundant_insn): Likewise.
17717 (fill_simple_delay_slots): Likewise.
17718 (fill_slots_from_thread): Likewise.
17719 (delete_computation): Likewise.
17720 * sched-rgn.c (add_branch_dependences): Likewise.
17722 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17724 * genconfig.c (main): Always define HAVE_cc0.
17725 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
17727 * cfgcleanup.c (flow_find_cross_jump): Likewise.
17728 (flow_find_head_matching_sequence): Likewise.
17729 (try_head_merge_bb): Likewise.
17730 * cfgrtl.c (rtl_merge_blocks): Likewise.
17731 (try_redirect_by_replacing_jump): Likewise.
17732 (rtl_tidy_fallthru_edge): Likewise.
17733 * combine.c (do_SUBST_MODE): Likewise.
17734 (insn_a_feeds_b): Likewise.
17735 (combine_instructions): Likewise.
17736 (can_combine_p): Likewise.
17737 (try_combine): Likewise.
17738 (find_split_point): Likewise.
17740 (simplify_set): Likewise.
17741 (distribute_notes): Likewise.
17742 * cprop.c (cprop_jump): Likewise.
17743 * cse.c (cse_extended_basic_block): Likewise.
17744 * df-problems.c (can_move_insns_across): Likewise.
17745 * final.c (final): Likewise.
17746 (final_scan_insn): Likewise.
17747 * function.c (emit_use_return_register_into_block): Likewise.
17748 * gcse.c (insert_insn_end_basic_block): Likewise.
17749 * haifa-sched.c (sched_init): Likewise.
17750 * ira.c (find_moveable_pseudos): Likewise.
17751 * loop-invariant.c (find_invariant_insn): Likewise.
17752 * lra-constraints.c (curr_insn_transform): Likewise.
17753 * optabs.c (prepare_cmp_insn): Likewise.
17754 * postreload.c (reload_combine_recognize_const_pattern):
17756 * reload.c (find_reloads): Likewise.
17757 (find_reloads_address_1): Likewise.
17758 * reorg.c (delete_scheduled_jump): Likewise.
17759 (steal_delay_list_from_target): Likewise.
17760 (steal_delay_list_from_fallthrough): Likewise.
17761 (try_merge_delay_insns): Likewise.
17762 (redundant_insn): Likewise.
17763 (fill_simple_delay_slots): Likewise.
17764 (fill_slots_from_thread): Likewise.
17765 (delete_computation): Likewise.
17766 (relax_delay_slots): Likewise.
17767 * sched-deps.c (sched_analyze_2): Likewise.
17768 * sched-rgn.c (add_branch_dependences): Likewise.
17770 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17772 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
17773 that is trivially ded on non cc0 targets.
17774 (simplify_set): Likewise.
17775 (mark_used_regs_combine): Likewise.
17776 * cse.c (new_basic_block): Likewise.
17777 (fold_rtx): Likewise.
17778 (cse_insn): Likewise.
17779 (cse_extended_basic_block): Likewise.
17780 (set_live_p): Likewise.
17781 * rtlanal.c (canonicalize_condition): Likewise.
17782 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17784 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17786 * conditions.h: Define macros even if HAVE_cc0 is undefined.
17787 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
17788 * final.c: Likewise.
17789 * jump.c: Likewise.
17790 * recog.c: Likewise.
17791 * recog.h: Declare functions even when HAVE_cc0 is undefined.
17792 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
17794 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17796 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
17797 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
17798 * builtins.c (expand_builtin): Remove check if
17799 EH_RETURN_DATA_REGNO is defined.
17800 * df-scan.c (df_bb_refs_collect): Likewise.
17801 (df_get_exit_block_use_set): Likewise.
17802 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
17803 * ira-lives.c (process_bb_node_lives): Likewise.
17804 * lra-lives.c (process_bb_lives): Likewise.
17806 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
17808 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
17809 FIRST_PSEUDO_REG): New.
17810 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
17811 (ARG_POINTER_REGNUM): Define to ARGP_REG.
17812 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
17813 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
17814 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
17815 (FIRST_INT_REG): New.
17816 (LAST_INT_REG): New.
17817 (FIRST_*_REG): Define using *_REG.
17818 (LAST_*_REG): Ditto.
17819 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
17820 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
17821 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
17823 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17825 * expmed.c: (synth_mult): Only assume overlapping
17826 shift with previous steps in alg_sub_t_m2 case.
17828 2015-04-21 Richard Biener <rguenther@suse.de>
17830 PR tree-optimization/65650
17831 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
17832 transitions involving copies.
17833 (set_lattice_value): Adjust for copy lattice state.
17834 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
17835 if that doesn't dominate the merge point.
17836 (bit_value_unop): Adjust what we treat as varying mask.
17837 (bit_value_binop): Likewise.
17838 (bit_value_assume_aligned): Likewise.
17839 (evaluate_stmt): When we simplified to a SSA name record a copy
17840 instead of dropping to varying.
17841 (visit_assignment): Simplify.
17843 * gimple-match.h (gimple_simplify): Add another callback.
17844 * gimple-fold.c (fold_stmt_1): Adjust caller.
17845 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
17846 for the 2nd callback.
17847 * gimple-match-head.c (gimple_simplify): Add a callback that is
17848 used to valueize the stmt operands and use it that way.
17850 2015-04-21 Richard Biener <rguenther@suse.de>
17852 PR tree-optimization/65788
17853 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
17855 2015-04-21 Richard Biener <rguenther@suse.de>
17857 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
17858 vec_construct cost by vec_stmt_cost.
17860 2015-04-21 Richard Biener <rguenther@suse.de>
17862 * cfghooks.h (create_basic_block): Replace with two overloads
17863 for RTL and GIMPLE.
17864 (split_block): Likewise.
17865 * cfghooks.c (split_block): Rename to ...
17866 (split_block_1): ... this.
17867 (split_block): Add two type-safe overloads for RTL and GIMPLE.
17868 (split_block_after_labels): Call split_block_1.
17869 (create_basic_block): Rename to ...
17870 (create_basic_block_1): ... this.
17871 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
17872 (create_empty_bb): Call create_basic_block_1.
17873 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
17874 split_block_after_labels.
17875 * omp-low.c (expand_parallel_call): Likewise.
17876 (expand_omp_target): Likewise.
17877 (simd_clone_adjust): Likewise.
17878 * tree-chkp.c (chkp_get_entry_block): Likewise.
17879 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
17880 create_basic_block overload.
17881 (cgraph_node::expand_thunk): Likewise.
17882 * tree-cfg.c (make_blocks): Likewise.
17883 (handle_abnormal_edges): Likewise.
17884 * tree-inline.c (copy_bb): Likewise.
17886 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17888 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
17890 (*xor_one_cmplsidi3_ze): Likewise.
17892 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
17894 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
17895 use df_remove_problem rather than manually removing problems, leaving
17896 holes in df->problems_in_order[].
17898 2015-04-21 Tom de Vries <tom@codesourcery.com>
17900 PR tree-optimization/65802
17901 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
17903 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17905 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
17907 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
17908 at '.'. Assert that there's enough space for everything.
17910 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
17912 PR tree-optimization/64950
17914 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
17917 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
17920 2015-04-20 Shiva Chen <shiva0217@gmail.com>
17922 PR rtl-optimization/64916
17923 * cfgcleanup.c (values_equal_p): New function.
17924 (can_replace_by): Use it.
17926 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
17929 * doc/invoke.texi ([-Wnarrowing]): Update.
17931 2015-04-20 Jeff Law <law@redhat.com>
17933 PR tree-optimization/65658
17934 * tree-ssa-threadupdate.c (redirection_block_p): Remove
17935 redundant test for GIMPLE_ASSIGN in last change.
17937 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
17939 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
17940 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
17941 (legitimize_tls_address): Ditto.
17942 (ix86_expand_move): Ditto.
17943 (ix86_expand_binary_operator): Remove reload_in_progress checks.
17944 (ix86_expand_unary_operator): Ditto.
17945 * config/i386/predicates.md (index_register_operand): Ditto.
17947 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
17949 * reorg.c (try_merge_delay_insns): Improve correctness checking
17950 for targets with multiple delay slots.
17952 2015-04-20 Jeff Law <law@redhat.com>
17954 PR tree-optimization/65658
17955 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
17958 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
17960 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
17961 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
17964 2015-04-20 Jakub Jelinek <jakub@redhat.com>
17967 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
17969 2015-04-20 Richard Biener <rguenther@suse.de>
17971 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
17972 * gimple-fold.c (gimple_build_valueize): New function.
17973 (gimple_build): Always use gimple_build_valueize as valueize hook.
17975 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
17978 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
17979 and overwrite variable parts if <= 1/2 the elements are variable.
17981 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
17983 PR rtl-optimization/65805
17984 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
17985 Don't use difference of offset and previous offset if
17986 update_sp_offset is non-zero.
17987 (eliminate_regs_in_insn): Ditto.
17988 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
17989 lra_eliminate_regs_1 call.
17990 * lra-constraints.c (get_equiv_with_elimination): Ditto.
17992 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
17994 * hash-table.h: Remove version of hash_table that stored value_type *.
17995 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
17996 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
17997 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
17998 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
17999 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18000 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18001 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18002 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18003 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18004 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18005 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18006 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18007 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18008 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18009 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18010 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18012 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18013 Jakub Jelinek <jakub@redhat.com>
18016 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18017 subsequent SH_NONE operand does not overwrite an existing *special
18019 (adjust_extract): Handle case where a vec_extract operation is
18020 wrapped in a PARALLEL.
18022 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
18025 * config/i386/i386.c (ix86_binds_local_p): Define only if
18026 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18028 2015-04-17 Jeff Law <law@redhat.com>
18030 PR tree-optimization/47679
18031 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18032 * tree-ssa-scopedtables.c: New file.
18033 * tree-ssa-scopedtables.h: New file.
18034 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18035 (const_and_copies): Change name/type.
18036 (record_const_or_copy): Move into tree-ssa-scopedtables.c
18037 (record_const_or_copy_1): Similarly.
18038 (restore_vars_to_original_value): Similarly.
18039 (pass_dominator::execute): Create and destroy const_and_copies table.
18040 (thread_across_edge): Update passing of const_and_copies.
18041 (record_temporary_equivalence): Use method calls rather than
18042 manipulating const_and_copies directly.
18043 (record_equality, cprop_into_successor_phis): Similarly.
18044 (dom_opt_dom_walker::before_dom_children): Similarly.
18045 (dom_opt_dom_walker::after_dom_children): Similarly.
18046 (eliminate_redundant_computations): Similarly.
18047 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18048 (record_temporary_equivalence): Likewise.
18049 (invalidate_equivalences): Likewise.
18050 (record_temporary_equivalences_from_phis): Update due to type
18051 change of const_and_copies. Use method calls rather than
18052 manipulating the stack directly.
18053 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18054 (thread_through_normal_block, thread_across_edge): Likewise.
18055 (thread_across_edge): Likewise.
18056 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18057 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
18059 (identify_jump_threads): Update due to type change of equiv_stack.
18060 (finalize_jump_threads): Delete the equiv_stack when complete.
18062 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
18064 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18065 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18066 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18068 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
18071 * config.gcc: Exit with a comment when we do not have a major version
18072 number for the FreeBSD target.
18074 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18077 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18078 maybe_allows_mem bitfields.
18079 (maybe_allows_none_start, maybe_allows_none_end,
18080 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18081 maybe_allows_mem_end): New variables.
18082 (compute_maybe_allows): New function.
18083 (add_constraint): Use it to initialize maybe_allows_reg and
18084 maybe_allows_mem fields.
18085 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18086 is_address constraints such that those that allow neither mem nor
18087 reg come first, then those that only allow reg but not mem, then
18088 those that only allow mem but not reg, then the rest.
18089 (write_allows_reg_mem_function): New function.
18090 (write_tm_preds_h): Call it.
18091 * stmt.c (parse_output_constraint, parse_input_constraint): Use
18092 the generated insn_extra_constraint_allows_reg_mem function
18093 instead of always setting *allows_reg = true; *allows_mem = true;
18094 for unknown extra constraints.
18096 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
18099 * output.h (default_binds_local_p_3): New.
18100 * varasm.c (default_binds_local_p_3): Make it public. Take an
18101 argument to indicate if common symbol may be local. If common
18102 symbol may be local, treat non-external variable as defined
18104 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18105 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18106 * config/i386/i386.c (ix86_binds_local_p): New.
18107 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18108 ix86_binds_local_p.
18110 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18113 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18114 trying mem_loc_descriptor on XEXP (rtl, 0).
18116 2015-04-17 Martin Liska <mliska@suse.cz>
18118 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18119 Release symbol_compare_collection.
18120 * ipa-reference.c: Add TODO that a vector should be released.
18122 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18125 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18126 to new AVR-LibC file layout (bug #44574).
18127 (*avrlibc_devicelib): Same.
18128 * config/avr/avr-mcus.def: Adjust comments.
18129 * config/avr/avr.opt (nodevicelib): Adjust help.
18131 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
18133 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18135 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
18138 * gimplify.c (gimplify_init_constructor): Always emit a
18139 side-effecting constructor.
18141 2015-04-17 Tom de Vries <tom@codesourcery.com>
18143 PR tree-optimization/64950
18144 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18145 in cfun->curr_properties.
18146 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18147 if we generate an IFN_VA_ARG.
18148 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18149 function if PROP_gimple_lva is not set in src function.
18151 2015-04-17 Tom de Vries <tom@codesourcery.com>
18152 Michael Matz <matz@suse.de>
18154 PR tree-optimization/64950
18155 * gimple-iterator.c (update_modified_stmts): Remove static.
18156 * gimple-iterator.h (update_modified_stmts): Declare.
18157 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18158 (gimplify_va_arg_internal): New function.
18159 (gimplify_va_arg_expr): Use IFN_VA_ARG.
18160 * gimplify.h (gimplify_va_arg_internal): Declare.
18161 * internal-fn.c (expand_VA_ARG): New unreachable function.
18162 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18163 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18164 (expand_ifn_va_arg): New function.
18165 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18166 (pass_stdarg::execute): Call expand_ifn_va_arg.
18167 (pass_data_lower_vaarg): New pass_data.
18168 (pass_lower_vaarg): New gimple_opt_pass.
18169 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18170 (make_pass_lower_vaarg): New function.
18171 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18172 properties_required field.
18173 * passes.def (all_passes): Add pass_lower_vaarg.
18174 * tree-pass.h (PROP_gimple_lva): Add define.
18175 (make_pass_lower_vaarg): Declare.
18177 2015-04-17 Tom de Vries <tom@codesourcery.com>
18179 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18180 * calls.c (call_expr_flags): Same.
18182 2015-04-17 Tom de Vries <tom@codesourcery.com>
18184 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18185 (pass_stdarg::execute): ... here.
18187 2015-04-17 Tom de Vries <tom@codesourcery.com>
18188 Michael Matz <matz@suse.de>
18190 * tree-cfg.c (make_blocks_1): Factor out of ...
18191 (make_blocks): ... here.
18192 (make_edges_bb): Factor out of ...
18193 (make_edges): ... here.
18194 (gimple_find_sub_bbs): New function.
18195 * tree-cfg.h (gimple_find_sub_bbs): Declare.
18197 2015-04-17 Tom de Vries <tom@codesourcery.com>
18199 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18201 2015-04-17 Yury Gribov <y.gribov@samsung.com>
18203 * asan.c (set_sanitized_sections): New function.
18204 (section_sanitized_p): Ditto.
18205 (asan_protect_global): Optionally sanitize user-defined
18207 * asan.h (set_sanitized_sections): Declare new function.
18208 * common.opt (fsanitize-sections): New option.
18209 * doc/invoke.texi (-fsanitize-sections): Document new option.
18210 * opts-global.c (handle_common_deferred_options): Handle new
18213 2015-04-17 Jakub Jelinek <jakub@redhat.com>
18216 * dwarf2out.c (loc_list_from_tree): Return NULL
18217 for DEBUG_EXPR_DECL.
18219 2015-04-17 Christian Bruel <christian.bruel@st.com>
18221 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18224 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18226 * ira-color.c (setup_left_conflict_sizes_p): Do not process
18227 node itself when computing left conflict subnode size.
18229 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
18231 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18232 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18233 *fop_<mode>_1_sse using enabled attribute. Use
18234 register_mixssei387nonimm_operand operand 1 predicate. Change
18235 alternative 3 constraints from "x" to "v".
18237 2015-04-16 Richard Biener <rguenther@suse.de>
18239 PR tree-optimization/65774
18240 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18241 bit-value tracking on.
18243 2015-04-16 Richard Biener <rguenther@suse.de>
18245 PR tree-optimization/64277
18246 * tree-vrp.c (check_array_ref): Fix anti-range handling,
18247 simplify upper bound handling.
18248 (search_for_addr_array): Simplify.
18249 (check_array_bounds): Handle ADDR_EXPRs here.
18250 (check_all_array_refs): Simplify.
18252 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
18254 * config/i386/i386.c (print_reg): Rewrite function.
18256 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18258 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18259 Invert the condition.
18261 2015-04-16 Renlin Li <renlin.li@arm.com>
18263 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18264 simplifications for UNSIGNED_FLOAT.
18266 2015-04-16 Nick Clifton <nickc@redhat.com>
18268 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18270 (enum rl78_cpu_type): New.
18271 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18272 (umulhi3_shift_virt): Remove m constraint from operand 1.
18273 (umulqihi3_virt): Likewise.
18274 * config/rl78/rl78.c (rl78_option_override): Add code to process
18275 -mcpu and -mmul options.
18276 (rl78_alloc_physical_registers): Add code to handle divhi and
18277 divsi valloc attributes.
18278 (set_origin): Likewise.
18279 * config/rl78/rl78.h (RL78_MUL_G14): Define.
18280 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18281 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18283 (ASM_SPEC): Pass -mcpu on to assembler.
18284 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18285 (mulqi3_rl78): Likewise.
18286 (mulhi3_g13): Likewise.
18287 (mulhi3): Generate the G13 or G14 versions of the insn directly.
18288 (mulsi3): Likewise.
18289 (mulhi3_g14): Add clobbers of AX and BC.
18290 (mulsi3_g14): Likewise.
18291 (mulsi3_g13): Likewise.
18292 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18293 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18294 * config/rl78/rl78.opt (mmul): Initialise value to
18296 (mcpu): New option.
18297 (m13, m14, mrl78): New option aliases.
18298 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18299 (MULTILIB_DIRNAMES): Add g13 and g14.
18300 * doc/invoke.texi: Document -mcpu and -mmul options.
18302 2015-04-16 Richard Biener <rguenther@suse.de>
18304 * tree-ssa-ccp.c (likely_value): See if we have operands that
18305 are marked as never simulate again and return CONSTANT in this
18307 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18308 not have any operands that will be simulated again as
18309 not being simulated again.
18311 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
18313 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18314 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18315 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18317 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18319 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18320 *float<SWI48:mode><MODEF:mode>2_sse.
18321 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18323 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18326 2015-04-15 Tom de Vries <tom@codesourcery.com>
18329 * function.c (push_dummy_function): New function.
18330 (init_dummy_function_start): Use push_dummy_function.
18331 (pop_dummy_function): New function. Factored out of ...
18332 (expand_dummy_function_end): ... here.
18333 * function.h (push_dummy_function, pop_dummy_function): Declare.
18334 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18335 pop_dummy_function.
18336 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18338 2015-04-15 Jeff Law <law@redhat.com>
18340 PR tree-optimization/47679
18341 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18342 need for forward declaration in upcoming changes.
18343 (record_conditions, record_edge_info): Likewise.
18345 PR rtl-optimization/42522
18346 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18347 SIGN_EXTRACT as a whole object rather than simplifying
18350 2015-04-15 Jakub Jelinek <jakub@redhat.com>
18353 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18354 and GIMPLE_PREDICT use break instead of return true. For
18355 GIMPLE_EH_DISPATCH, compare dispatch region.
18357 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
18359 * doc/extend.texi (__sync Builtins): Simplify some text. Update
18360 details about the implementation. Make clear preference for
18361 __atomic builtins. Reduce possibility of future change.
18363 2015-04-15 Nick Clifton <nickc@redhat.com>
18365 * config/rx/rx.opt (mallow-string-insns): New option.
18366 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18367 builtin if string instructions are denied.
18368 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18369 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18371 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18372 * config/rx/rx.md (movstr): Enable pattern only if string
18373 instructions are allowed.
18374 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18375 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18376 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18377 (MULTILIB_DIRNAMES): Add no-strings.
18378 * doc/invoke.texi: Document -mno-allow-string-insns.
18380 2015-04-15 Alan Modra <amodra@gmail.com>
18384 PR middle-end/36043
18385 * calls.c (load_register_parameters): Don't load past end of
18386 mem unless suitably aligned.
18388 2015-04-15 Nick Clifton <nickc@redhat.com>
18390 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18391 decrement instruction as being frame related.
18392 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18394 If zero extending a function address enclose the operation in
18396 (rl78_preferred_reload_class): New function.
18397 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18398 * config/rl78/rl78.md: Remove useless constraints in expanders.
18399 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18400 (mulhi3_rl78): Likewise.
18401 (mulhi3_g13): Likewise.
18402 (mulsi3_rl78): Likewise.
18403 (es_addr): Move to before the multiply patterns.
18405 2015-04-15 Alan Modra <amodra@gmail.com>
18407 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18408 and sequence_stack. Add seq.
18409 (seq_stack): Delete.
18410 * function.c (prepare_function_start): Don't access x_last_insn.
18411 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18412 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18413 * emit_rtl.c (start_sequence, push_topmost_sequence,
18414 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18415 sequence accessors.
18416 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18417 remove_insn): Likewise. Simplify.
18418 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18419 and pop_topmost_sequence.
18420 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
18422 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18424 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
18427 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18430 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
18432 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18433 (LEGACY_INT_REGNO_P): Ditto.
18434 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18435 (ANY_MASK_REG_P): Remove.
18436 (BND_REG_P): Rename from ANY_BND_REG_P.
18437 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18438 legacy integer registers. Do not handle MMX_REG_P in a special way.
18439 Merge 64byte and 32byte SSE handling.
18441 2015-04-14 Nick Clifton <nickc@redhat.com>
18443 * expr.c (expand_assignment): Force an address offset computation
18444 into a register before changing its mode.
18445 (expand_expr_real_1): Likewise.
18447 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
18449 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18450 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18451 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18452 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18453 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18454 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18455 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18456 and __aarch64_vget_lane_any.
18458 2015-04-14 Jakub Jelinek <jakub@redhat.com>
18460 PR rtl-optimization/65761
18461 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18462 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18464 2015-04-14 Richard Biener <rguenther@suse.de>
18466 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18467 (graphite_can_represent_scev): Use POINTER_TYPE_P.
18469 2015-04-14 Richard Biener <rguenther@suse.de>
18471 PR tree-optimization/65758
18472 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18474 (ccp_lattice_meet): Likewise.
18475 (bit_value_unop): Likewise.
18476 (bit_value_binop): Likewise.
18477 (bit_value_assume_aligned): Likewise.
18479 2015-04-14 Christian Bruel <christian.bruel@st.com>
18481 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18484 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
18486 PR tree-optimization/63387
18487 * match.pd ((x unord x) | (y unord y) -> (x unord y),
18488 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18490 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
18492 * config/i386/predicates.md (any_QIreg_operand): Rename from
18493 q_regs_operand. Do not process subregs.
18494 (QIreg_operand): Use QI_REGNO_P predicate.
18495 (ext_QIreg_operand): Ditto.
18496 (ext_register_operand): Ditto.
18497 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18498 (AND splitters): Ditto.
18499 (AND with -65536 splitter): Add SWI48 mode for operand 0.
18500 (AND with -256 splitter): Use any_QIreg_operand predicate and
18501 SWI248 mode for operand 0.
18502 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18503 mode for operand 0.
18504 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18506 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
18508 * doc/plugins.texi: Rewrite first introductory paragraph.
18510 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18512 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18513 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18515 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18517 * ipa-profie.c (ipa_profile): Check number of parameters
18518 and possible polymorphic call targets before
18521 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
18523 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
18524 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
18526 2015-04-13 Richard Biener <rguenther@suse.de>
18528 PR tree-optimization/65204
18529 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
18530 takens for bit-CCP.
18532 2015-04-13 Richard Biener <rguenther@suse.de>
18535 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
18536 and cond_not_taken_branch_cost to 4 and 2.
18537 (bdver2_cost): Likewise.
18538 (bdver3_cost): Likewise.
18539 (bdver4_cost): Likewise.
18541 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18543 * hash-table.h (hash_table constructor): Add mem stats.
18544 (alloc_entries): Likewise.
18546 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18548 * ipa-cp.c (ipcp_driver): Relase prev_edge.
18549 * passes.c (execute_one_pass): Only add transform if pass has one.
18551 2015-04-12 Joseph Myers <joseph@codesourcery.com>
18553 * config/i386/i386.c (ix86_option_override_internal): Don't set
18554 -fprefetch-loop-arrays if optimizing for size.
18556 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
18557 Gerald Pfeifer <gerald@pfeifer.com>
18559 * doc/contrib.texi (Contributors): Add Martin Jambor and
18562 2015-04-12 Jakub Jelinek <jakub@redhat.com>
18564 * BASE-VER: Set to 6.0.0.
18566 PR tree-optimization/65747
18567 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
18568 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
18570 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
18572 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
18573 sentence. Improve grammar.
18575 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
18577 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
18579 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
18582 * ipa-inline-transform.c (speculation_removed): Remove static var.
18583 (check_speculations): New function.
18584 (clone_inlined_nodes): Do not check spculations.
18585 (inline_call): Call check_speculations.
18586 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
18587 consider non-invariants.
18589 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
18590 Martin Liska <mliska@suse.cz>
18593 * ipa-icf.c (sem_item::compare_cgraph_references): function and
18594 variable can not match.
18595 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
18596 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
18598 2015-04-11 Jakub Jelinek <jakub@redhat.com>
18600 PR tree-optimization/65735
18601 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
18602 Remove visited_phis argument, add visited_bbs, avoid recursing into the
18603 same bb rather than just into the same phi node.
18604 (thread_through_normal_block): Adjust caller.
18606 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
18608 * doc/contrib.texi (Contributors): Add Ira Rosen.
18610 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
18612 * gcov.c (find_source): Fix miswording in error message.
18613 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
18614 (ix86_expand_sse_comi_round): Fix typo in error message.
18616 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
18618 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
18620 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
18622 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
18624 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
18627 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
18628 Print bad_spills_num and insn_pseudos_num.
18630 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18633 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
18634 when creating +1 values for SImode.
18636 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
18639 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
18642 2015-04-10 Jakub Jelinek <jakub@redhat.com>
18643 Iain Sandoe <iain@codesourcery.com>
18646 * configure: Regenerate.
18648 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
18651 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
18653 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
18655 * doc/contrib.texi (Contributors): Add John Marino.
18657 2015-04-09 Jakub Jelinek <jakub@redhat.com>
18659 PR tree-optimization/65709
18660 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
18661 TREE_TYPE (TREE_TYPE (t)).
18663 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
18666 * lra-int.h (lra_bad_spill_regno_start): New.
18667 * lra.c (lra_bad_spill_regno_start): New.
18668 (lra): Set up lra_bad_spill_regno_start. Set up
18669 lra_constraint_new_regno_start unconditionally.
18670 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
18673 2015-04-09 Marek Polacek <polacek@redhat.com>
18674 Jakub Jelinek <jakub@redhat.com>
18676 PR middle-end/65554
18677 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
18678 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
18681 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
18683 PR rtl-optimization/65693
18684 * combine.c (is_parallel_of_n_reg_sets): Move outside of
18687 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
18690 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
18691 device specs file if "device-specs%s" didn't resolve to a path.
18693 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
18696 * config/i386/i386.c (fixup_modeless_constant): New.
18697 (ix86_expand_args_builtin): Fixup modeless constant operand.
18698 (ix86_expand_round_builtin): Ditto.
18699 (ix86_expand_special_args_builtin): Ditto.
18700 (ix86_expand_builtin): Ditto.
18702 2015-04-09 Jakub Jelinek <jakub@redhat.com>
18705 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
18706 any pow2 integer in between 2 and 0x80000000U inclusive.
18708 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
18710 PR rtl-optimization/65693
18711 * combine.c (is_parallel_of_n_reg_sets): Change first argument
18712 from an rtx_insn * to an rtx.
18713 (try_combine): Adjust both callers. Use it once more.
18715 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
18717 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
18718 (chkp_make_static_const_bounds): Search existing
18719 symbol by assembler name. Use make_decl_one_only.
18720 (chkp_get_zero_bounds_var): Remove node search which
18721 is now performed in chkp_make_static_const_bounds.
18722 (chkp_get_none_bounds_var): Likewise.
18724 2015-04-08 Michael Witten <mfwitten@gmail.com>
18726 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
18729 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18731 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
18733 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
18735 * doc/extend.texi (__sync Builtins): Fix grammar.
18737 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18739 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
18741 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18743 * varasm.c (emit_local): Move definition of align.
18745 2015-04-08 Julian Brown <julian@codesourcery.com>
18747 * config/nvptx/mkoffload.c (process): Support variable mapping.
18749 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
18751 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
18753 (alpha_write_one_linkage): Correct typo.
18755 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
18757 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
18759 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
18761 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
18763 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
18765 * tree-chkp.h (chkp_insert_retbnd_call): New.
18766 * tree-chkp.c (chkp_insert_retbnd_call): New.
18767 * ipa-split.c (insert_bndret_call_after): Remove.
18768 (split_function): Use chkp_insert_retbnd_call.
18769 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
18770 bounds for instrumented functions.
18772 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
18775 * calls.c (initialize_argument_information): When producing tail
18776 call also turn SSA_NAMES passed by references to original PARM_DECLs
18778 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
18781 * lra-remat.c (do_remat): Process input and non-input insn
18782 registers separately.
18784 2015-04-07 Jakub Jelinek <jakub@redhat.com>
18787 * valtrack.c (debug_lowpart_subreg): New function.
18788 (dead_debug_insert_temp): Use it.
18790 PR middle-end/65680
18791 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
18792 into signed HOST_WIDE_INT the same as negative bit_offset.
18794 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
18796 * ipa-comdats.c (ipa_comdats): Visit all thunks
18797 to set proper comdat group.
18799 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18802 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
18803 on constants for NEON VSTRUCT modes.
18805 2015-04-07 Jakub Jelinek <jakub@redhat.com>
18806 Iain Sandoe <iain@codesourcery.com>
18809 * configure: Regenerate.
18811 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18814 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
18815 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
18816 that LFD is used to load double constants instead of LFS. Add
18817 defaults for all costs structures. Add comments for missing
18818 initialization fields.
18819 (size32_cost): Likewise.
18820 (size64_cost): Likewise.
18821 (rs64a_cost): Likewise.
18822 (mpccore_cost): Likewise.
18823 (ppc403_cost): Likewise.
18824 (ppc405_cost): Likewise.
18825 (ppc440_cost): Likewise.
18826 (ppc476_cost): Likewise.
18827 (ppc601_cost): Likewise.
18828 (ppc603_cost): Likewise.
18829 (ppc604_cost): Likewise.
18830 (ppc604e_cost): Likewise.
18831 (ppc620_cost): Likewise.
18832 (ppc630_cost): Likewise.
18833 (ppccell_cost): Likewise.
18834 (ppc750_cost): Likewise.
18835 (ppc7450_cost): Likewise.
18836 (ppc8540_cost): Likewise.
18837 (ppce300c2c3_cost): Likewise.
18838 (ppce500mc_cost): Likewise.
18839 (ppce500mc64_cost): Likewise.
18840 (ppce5500_cost): Likewise.
18841 (ppce6500_cost): Likewise.
18842 (titan_cost): Likewise.
18843 (power4_cost): Likewise.
18844 (power6_cost): Likewise.
18845 (power7_cost): Likewise.
18846 (power8_cost): Likewise.
18847 (ppca2_cost): Likewise.
18848 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
18850 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
18851 instead of XXLOR to copy SFmode to clear out dirty bits created
18852 when SFmode denormals are generated.
18853 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
18854 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
18856 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
18858 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
18859 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
18860 * config/aarch64/aarch64-tune.md: Regenerate.
18862 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
18864 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
18865 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
18866 * config/arm/arm-cores.def (exynos-m1): New core.
18867 * config/arm/arm-tune.md: Regenerate.
18868 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
18869 * config/arm/bpabi.h: Likewise.
18871 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
18873 * ipa-cp (set_single_call_flag): Remove too
18874 restrictive assert.
18876 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
18878 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
18879 GOMP_offload_unregister from the destructor.
18881 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
18883 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
18884 flags for instrumentation thunk.
18885 (chkp_produce_thunks): Likewise.
18887 2015-04-05 Martin Liska <mliska@suse.cz>
18890 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
18891 has computed data structure.
18892 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
18894 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
18896 * invoke.texi (inline-unit-growth): Increase growth to 20%
18897 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
18899 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
18902 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
18904 (lra_rematerialization_iter): New.
18905 * lra.c (lra): Initialize lra_rematerialization_iter.
18906 Stop updating lra_constraint_new_regno_start after switching of
18907 inheritance and rematerialization.
18908 * lra-remat.c (lra_rematerialization_iter): New.
18909 (lra_remat): Add printing pass iteration. Do rematerialization
18910 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
18912 2015-04-04 Richard Biener <rguenther@suse.de>
18914 PR tree-optimization/64909
18915 PR tree-optimization/65660
18916 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
18917 to take a cost vector for scalar iteration cost.
18918 (vect_get_single_scalar_iteration_cost): Likewise.
18919 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
18920 Compute the scalar iteration cost into a cost vector.
18921 (vect_get_known_peeling_cost): Use the scalar cost vector to
18922 account for the cost of the peeled iterations.
18923 (vect_estimate_min_profitable_iters): Likewise.
18924 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18927 2015-04-04 Alan Modra <amodra@gmail.com>
18931 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
18932 0.0 constant unless TARGET_VSX.
18933 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
18936 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
18939 * ipa-inline-transform.c (inline_call): Skip sanity check to work
18942 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
18945 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
18946 speculative indirect edges to avoid ordering issue.
18948 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
18951 * ipa-inline.c (edge_badness): Add combined size to the denominator.
18953 2015-04-03 Jakub Jelinek <jakub@redhat.com>
18955 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
18956 TYPE_ARTIFICIAL on the .omp_data* types.
18958 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18960 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
18961 instrumentation thunks.
18963 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18965 * config/i386/i386.c (ix86_expand_call): Avoid nested
18966 PARALLEL in returned call value.
18968 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
18970 * lto-cgraph.c (input_cgraph_1): Always link instrumented
18971 assembler name with original one.
18973 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
18975 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
18977 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
18979 Revert parts of r216820.
18980 * config/i386/i386.md (movqi_internal): Correct type calculation
18981 for alternatives 3 and 5.
18983 2015-04-02 Jakub Jelinek <jakub@redhat.com>
18985 PR preprocessor/61977
18986 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
18987 predefine __vector/__bool/__pixel macros nor context sensitive
18988 macros for CLK_ASM.
18989 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
18991 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
18993 * config/pa/pa.c (pa_output_move_double): Directly handle register
18994 indexed memory operand. Simplify handling of scaled register indexed
18997 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
19000 * config/i386/linux-common.h (MPX_SPEC): New.
19001 (CHKP_SPEC): Add MPX_SPEC.
19002 * doc/invoke.texi (-fcheck-pointer-boudns): Document
19003 possible issues with '-z bndplt' support in linker.
19005 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
19007 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19008 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19009 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19010 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19011 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19013 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
19015 * config/i386/sync.md (UNSPEC_MOVA): Remove.
19016 (atomic_load<mode>): Change operand 0 predicate to
19017 nonimmediate_operand and fix up the destination when needed.
19019 (atomic_loaddi_fpu): Use UNSPEC_LDA.
19020 (atomic_store<mode>): Change operand 1 predicate to
19021 nonimmendate_operand and move the source to register when needed.
19023 (atomic_store<mode>_1): Use UNSPEC_STA.
19024 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19025 Fix moves from memory operand. Use UNSPEC_STA.
19027 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19029 * expmed.c (strict_volatile_bitfield_p): Check that the access will
19030 not cross a MODESIZE boundary.
19031 (store_bit_field, extract_bit_field): Added assertions in the
19032 strict volatile bitfields code path.
19034 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
19037 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19038 Increase args array size by one to avoid buffer overflow.
19040 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
19042 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19044 * ipa-inline.c (edge_badness): Add wrapper penalty.
19045 (sum_callers): Move up.
19046 (inline_small_functions): Set single_caller.
19047 * ipa-inline.h (inline_summary): Add single_caller.
19048 * ipa-split.c (split_function): Set split_part.
19049 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19050 * cgraph.h (cgraph_node): Add split_part.
19052 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
19055 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19056 Do not split operands 0 and operands 2 to halfmode.
19057 (atomic_compare_and_swap<mode>): Update for
19058 atomic_compare_and_swap<dwi>_doubleword changes.
19060 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
19062 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19063 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19064 no caching is done.
19066 2015-03-31 Martin Liska <mliska@suse.cz>
19069 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19070 has already filled up function summary.
19071 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19073 2015-03-31 Richard Biener <rguenther@suse.de>
19075 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19078 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
19080 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19082 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19083 (s390_asm_output_function_label): Adapt to new signature of
19084 s390_function_num_hotpatch_hw
19085 Optimise the code generating assembler output.
19086 Add comments to assembler file.
19088 2015-03-31 Richard Biener <rguenther@suse.de>
19090 PR middle-end/65626
19091 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19092 of the noreturn call so it is last and cleanup_control_flow_bb
19093 can do the CFG part.
19095 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
19098 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19099 same_comdat_group for external symbols.
19100 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19101 infinite same_comdat_group traversal loop.
19103 2015-03-31 Jakub Jelinek <jakub@redhat.com>
19106 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19107 automatically to $headers.
19109 2015-03-30 Jakub Jelinek <jakub@redhat.com>
19112 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19113 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19115 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19117 * ipa-prop.c (param_type_may_change_p): Likewise.
19118 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19119 (remove_unused_scope_block_p): Add in_ctor_dtor_block
19120 argument. Before inlining, preserve
19121 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19122 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
19124 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19126 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19129 * ipa-inline.c (edge_badness): Base denominator on callee's
19132 2015-03-27 Martin Jambor <mjambor@suse.cz>
19135 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19136 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19137 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19138 node_calling_single_call.
19139 * ipa-cp.c (count_callers): New function.
19140 (set_single_call_flag): Likewise.
19141 (initialize_node_lattices): Count callers and set single_flag_call if
19143 (incorporate_penalties): New function.
19144 (good_cloning_opportunity_p): Use it, dump new flags.
19145 (propagate_constants_topo): Set node_within_scc flag if appropriate.
19146 * doc/invoke.texi (ipa-cp-recursion-penalty,
19147 ipa-cp-single-call-pentalty): Document.
19149 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19152 * symtab.c (symtab_node::get_partitioning_class): Register vars
19154 * varpool.c (symbol_table::output_variables) Do not assemble unefined
19155 decls for non-symbols.
19157 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
19160 * output.h (default_binds_local_p_2): New.
19161 * varasm.c (default_binds_local_p_2): Renamed to ...
19162 (default_binds_local_p_3): This. Don't return true on protected
19163 data symbol if protected data may be external.
19164 (default_binds_local_p): Use default_binds_local_p_3.
19165 (default_binds_local_p_1): Likewise.
19166 (default_binds_local_p_2): New.
19167 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19168 default_binds_local_p_2 if TARGET_MACHO is undefined.
19170 2015-03-27 Jakub Jelinek <jakub@redhat.com>
19173 * config/i386/i386.c (legitimize_pic_address): If base
19174 is SYMBOL_REF or LABEL_REF using %rip addressing, force
19175 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19177 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19180 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19183 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
19186 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19187 of optimized out indirect call.
19188 (redirect_to_unreachable): Always build symbol table node for
19189 BUILT_IN_UNREACHABLE
19191 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
19194 * ira-costs.c (record_reg_classes): Process all constraint string
19197 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
19199 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19203 * config/c6x/constraints.md (S3): New constraint.
19204 * config/c6x/c6x.md (real_jump): Use it.
19206 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19208 PR middle-end/65595
19209 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19210 do redirection if the call is not optimized out.
19212 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
19215 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19216 (fchkp-check-incomplete-type): Add LTO.
19217 (fchkp-zero-input-bounds-for-main): Likewise.
19218 (fchkp-first-field-has-own-bounds): Likewise.
19219 (fchkp-narrow-bounds): Likewise.
19220 (fchkp-narrow-to-innermost-array): Likewise.
19221 (fchkp-use-static-bounds): Likewise.
19222 (fchkp-use-static-const-bounds): Likewise.
19223 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19225 2015-03-27 Marek Polacek <polacek@redhat.com>
19227 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19229 2015-03-27 Marek Polacek <polacek@redhat.com>
19232 * ubsan.c (ubsan_create_edge): New function.
19233 (instrument_bool_enum_load): Call it.
19234 (instrument_nonnull_arg): Likewise.
19235 (instrument_nonnull_return): Likewise.
19236 (instrument_object_size): Likewise.
19238 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19240 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19243 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19246 * lto-streamer.h (class lto_location_cache): New.
19247 (struct data_in): Add location_cache.
19248 (lto_input_location): Update prototype.
19249 (stream_input_location_now): New.
19250 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19251 pointer to location.
19252 (stream_input_location): Update.
19253 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19254 (warn_odr): Apply location cache before warning.
19255 (lto_input_location): Update prototype.
19256 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19257 Use stream_input_location_now.
19258 * lto-streamer-in.c (lto_location_cache::current_cache): New static
19260 (lto_location_cache::cmp_loc): New function.
19261 (lto_location_cache::apply_location_cache): New function.
19262 (lto_location_cache::accept_location_cache): New function.
19263 (lto_location_cache::revert_location_cache): New function.
19264 (lto_location_cache::input_location): New function.
19265 (lto_input_location): Do location caching.
19266 (stream_input_location_now): New function.
19267 (input_eh_region, input_struct_function_base): Use
19268 stream_input_location_now.
19269 (lto_data_in_create): use new.
19270 (lto_data_in_delete): Use delete.
19271 * tree-streamer-in.c (unpack_ts_block_value_fields,
19272 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19273 lto_input_ts_exp_tree_pointers): Update for cached location api.
19275 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19278 * passes.def: Add pass_nothrow.
19279 * ipa-pure-const.c: (pass_data_nothrow): New.
19280 (pass_nothrow): New.
19281 (pass_nothrow::execute): New.
19282 (make_pass_nothrow): New.
19283 * tree-pass.h (make_pass_nothrow): Declare.
19285 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19287 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19288 edge to change by speculation resolution or redirection.
19289 (edge_set_predicate): Likewise.
19290 (inline_summary_t::duplicate): Likewise.
19291 (remap_edge_summaries): Likewise.
19293 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19295 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19297 (can_inline_edge_p): Relax option matching for always inline functions.
19299 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
19302 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19303 Check operand 4 and operand 0 for equality.
19304 (avx512f_vextract<shuffletype>32x4_1_maskm):
19305 Check operand 6 and operand 0 for equality.
19306 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19308 (vec_extract_hi_<mode>_maskm): Ditto.
19310 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19312 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19313 dead calls back to live.
19314 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19316 (cgraph_node::verify_node): ... here; verify only callee edges,
19318 * cif-code.def (CILK_SPAWN): New code.
19320 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
19322 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19323 (edge_set_predicate): Use it to mark unreachable edges.
19324 (inline_summary_t::duplicate): Remove unnecesary code.
19325 (remap_edge_summaries): Likewise.
19326 (dump_inline_summary): Report contains_cilk_spawn.
19327 (compute_inline_parameters): Compute contains_cilk_spawn.
19328 (inline_read_section, inline_write_summary): Stream
19329 contains_cilk_spawn.
19330 * ipa-inline.c (can_inline_edge_p): Do not touch
19331 DECL_STRUCT_FUNCTION that may not be available;
19332 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19333 remove check for callee_fun->can_throw_non_call_exceptions and
19334 replace it by optimization attribute check; check for flag_exceptions.
19335 * ipa-inline-transform.c (inline_call): Maintain
19336 DECL_FUNCTION_PERSONALITY
19337 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19339 2015-03-26 Jakub Jelinek <jakub@redhat.com>
19341 PR tree-optimization/65551
19342 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19343 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19345 2015-03-26 Richard Biener <rguenther@suse.de>
19347 PR middle-end/65555
19348 * tree-cfg.c (verify_gimple_call): Do not require a call to
19349 have no LHS if it wasn't recognized as control altering yet.
19351 2015-03-26 Jakub Jelinek <jakub@redhat.com>
19353 PR tree-optimization/64715
19354 * passes.def: Add another instance of pass_object_sizes before ccp1.
19355 * tree-object-size.c (pass_object_sizes::execute): In
19356 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19357 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19358 __bos result and the computed constant. Remove redundant
19359 checks, obsoleted by gimple_call_builtin_p test.
19361 * var-tracking.c (variable_tracking_main_1): Don't track
19362 variables for targetm.no_register_allocation targets.
19364 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
19366 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19367 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19369 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19372 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19373 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
19374 0.0 is correctly setup.
19375 (extenddftf2_internal): Likewise.
19377 2015-03-25 Sebastian Pop <s.pop@samsung.com>
19379 PR tree-optimization/65177
19380 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19382 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
19383 edges not adjacent on the path to the original code.
19385 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
19388 * doc/install.texi (Building a native compiler): Document new
19389 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
19390 configuration assumes that the host supports the linker plugin.
19392 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
19395 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19396 chain for generated call.
19398 2015-03-25 Richard Biener <rguenther@suse.de>
19400 * passes.c (pass_manager::execute_early_local_passes): Guard
19401 execution of pass_chkp_instrumentation_passes with
19402 flag_check_pointer_bounds.
19403 (pass_chkp_instrumentation_passes::gate): Likewise.
19405 2015-03-25 Martin Liska <mliska@suse.cz>
19407 PR tree-optimization/65538
19408 * symbol-summary.h (function_summary::~function_summary):
19409 Relese memory for allocated summaries.
19410 (function_summary::release): New function.
19412 2015-03-25 Jakub Jelinek <jakub@redhat.com>
19415 * lto-streamer-out.c (DFS::worklist): New struct.
19416 (DFS::worklist_vec): New data member.
19417 (DFS::next_dfs_num): Remove.
19418 (DFS::DFS): Rewritten using worklist instead of recursion,
19419 using most of code from DFS::DFS_write_tree.
19420 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19421 pass it to DFS_write_tree calls.
19422 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19423 quick initial checks push it into worklist_vec and return.
19425 2015-03-25 Richard Biener <rguenther@suse.de>
19427 PR middle-end/65519
19428 * genmatch.c (expr::gen_transform): Re-write to avoid
19429 using gimple_build.
19431 2015-03-25 Bin Cheng <bin.cheng@arm.com>
19433 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19435 2015-03-25 Bin Cheng <bin.cheng@arm.com>
19437 * config/arm/arm.opt (print_tune_info): New option.
19438 * config/arm/arm.c (arm_print_tune_info): New function.
19439 (arm_file_start): Call arm_print_tune_info.
19440 * config/arm/arm-protos.h (struct tune_params): Add comment.
19441 * doc/invoke.texi (@item -mprint-tune-info): New item.
19442 (-mtune): mention it in ARM Option Summary.
19444 2015-03-25 DJ Delorie <dj@redhat.com>
19446 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19449 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
19450 Martin Liska <mliska@suse.cz>
19452 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19453 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19454 (sem_item::add_type): New function.
19455 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19456 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19457 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19458 (sem_function::equals_wpa): Fix typo.
19459 * ipa-icf.h (sem_item::add_type): New function.
19460 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19463 2015-03-24 Jakub Jelinek <jakub@redhat.com>
19465 PR tree-optimization/65533
19466 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19467 with swapped operands, call vect_free_slp_tree on
19468 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19471 2015-03-24 Richard Biener <rguenther@suse.de>
19473 PR middle-end/65517
19474 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19475 for fixup if necessary.
19477 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
19479 * doc/extend.texi (Function Attributes): Add @cindex entries
19480 for all attributes and regularize their format. Delete text
19481 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
19482 information about "eightbit_data", "tiny_data", and "model"
19483 variable attributes to the Variable Attributes section. Fix
19484 some obvious typos and copy-editing issues.
19485 (Variable Attributes, Type Attributes): Likewise add/fix
19486 @cindex entries for all attributes.
19488 2015-03-23 Jakub Jelinek <jakub@redhat.com>
19491 * tree-chkp.c (chkp_build_returned_bound): Ignore
19492 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19494 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
19497 * config/sh/predicates.md (simple_mem_operand,
19498 displacement_mem_operand): Add test for reg.
19499 (short_displacement_mem_operand): Test for displacement_mem_operand
19500 before invoking sh_disp_addr_displacement.
19501 * config/sh/constraints.md (Sdd, Sra): Simplify.
19502 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19503 Remove redundant displacement_mem_operand tests.
19505 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
19508 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19509 the same -mmcu=MCU more than once.
19511 2015-03-23 Jakub Jelinek <jakub@redhat.com>
19514 * ipa-devirt.c: Remove duplicate demangle.h include.
19517 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
19519 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
19520 REG_POINTER on *destptr after adjusting it for prologue size.
19523 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
19524 ultimate_alias_target ()->order ints instead of
19525 ultimate_alias_target () pointers.
19527 2015-03-23 Richard Biener <rguenther@suse.de>
19529 PR tree-optimization/65518
19530 * tree-vect-stmts.c (vectorizable_load): Reject single-element
19531 interleaving cases we generate absymal code for.
19533 2015-03-23 Richard Biener <rguenther@suse.de>
19535 PR tree-optimization/65494
19536 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
19538 (vect_analyze_slp_instance): But do that here, always and once.
19540 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19542 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
19543 adding T or multiplying by T+1 and subracting T.
19545 2015-03-22 Jeff Law <law@redhat.com>
19547 PR rtl-optimization/64317
19548 * Makefile.in (OBJS): Add gcse-common.c
19549 * gcse.c: Include gcse-common.h
19550 (struct modify_pair_s): Move structure definition to gcse-common.h
19551 (compute_transp): Move function to gcse-common.c.
19552 (canon_list_insert): Similarly.
19553 (record_last_mem_set_info): Break out some code and put it into
19554 gcse-common.c. Call into the new common code.
19555 (compute_local_properties): Pass additional arguments to compute_transp.
19556 * postreload-gcse.c: Include gcse-common.h and df.h
19557 (modify_mem_list_set, blocks_with_calls): New variables.
19558 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
19559 (get_bb_avail_insn): Pass in the expression index too.
19560 (alloc_mem): Allocate memory for the new bitmaps and lists.
19561 (free_mem): Free memory for the new bitmaps and lists.
19562 (insert_expr_in_table): Record a bitmap index for each entry we
19564 (record_last_mem_set_info): Call into common code in gcse-common.c.
19565 (get_bb_avail_insn): If no available insn was found in the requested
19566 BB. If BB has a single predecessor, see if the expression is
19567 transparent in BB and available in that single predecessor.
19568 (compute_expr_transp): New wrapper for compute_transp.
19569 (eliminate_partially_redundant_load): Pass expression's bitmap_index
19570 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
19571 (gcse_after_reload_main): If there are elements in the hash table,
19572 then compute transparency for all the elements in the hash table.
19573 * gcse-common.h: New file.
19574 * gcse-common.c: New file.
19576 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
19578 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
19580 (System Headers): Likewise.
19582 (Traditional macros): Likewise.
19583 (Invocation): Likewise.
19584 (Option Index): Likewise.
19585 * doc/cppopts.texi (-M): Likewise.
19586 (-finput-charset): Likewise.
19587 (--help): Likewise.
19588 * doc.invoke.texi (AVR Options): Likewise.
19589 (V850 Options): Likewise.
19591 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
19594 * ipa-devirt.c: Include demangle.h
19595 (odr_type_d): Add field rtti_broken.
19596 (odr_subtypes_equivalent_p): Do not require name to match.
19597 (compare_virtual_tables): Fix typo; if type already has ODR violation,
19598 bypass the tests; be ready for function referneces in vtables that are
19599 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
19600 (warn_odr): Give up for nameless types.
19601 (warn_types_mismatch): Report mismatch in mangled names;
19602 report mismatch in anonymous namespaces; look into component types to
19603 give useful error; report when mismatch is dragged in from other ODR
19605 (odr_types_equivalent_p): Match types for being polymorphic; avoid
19606 duplicated diagnostics.
19607 (add_type_duplicate): Reorder checks so more informative ones come
19608 first; fix typo; do not output "the extra base is defined here" when
19610 (BINFO_N_BASE_BINFOS): Relax sanity check.
19612 2015-03-22 Martin Liska <mliska@suse.cz>
19613 Jakub Jelinek <jakub@redhat.com>
19615 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
19616 masks that can potentially include a builtin.
19617 (ix86_add_new_builtins): Introduce fast filter for isa values
19618 that cannot trigger builtin inclusion.
19620 2015-03-22 Martin Liska <mliska@suse.cz>
19622 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
19623 (sem_item::update_hash_by_local_refs): Likewise.
19624 (sem_variable::get_hash): Empty line is fixed.
19625 (sem_item_optimizer::execute): Include adding of hash references.
19626 (sem_item_optimizer::update_hash_by_addr_refs): New function.
19627 (sem_item_optimizer::build_hash_based_classes): Use local hash.
19628 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
19629 (sem_item::update_hash_by_local_refs): Likewise.
19631 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
19634 * ipa-comdats.c (enqueue_references): Walk through thunks.
19635 (ipa_comdats): Likewise.
19636 (set_comdat_group_1): New function.
19638 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
19641 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
19644 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
19645 Gerald Pfeifer <gerald@pfeifer.com>
19647 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
19649 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
19650 Sandra Loosemore <sandra@codesourcery.com>
19652 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
19653 function parameter declaration.
19654 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
19655 Update arguments to nios2_adjust_call_address().
19656 (sibcall_internal): Rename from *sibcall.
19657 (sibcall_value_internal): Rename from *sibcall_value.
19658 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
19659 (nios2_large_got_address): Add target temp reg parameter.
19660 (nios2_got_address): Adjust call to nios2_large_got_address, add
19661 force_reg around it.
19662 (nios2_load_pic_address): Add target temp reg parameter, replace call
19663 to nios2_got_address with corresponding code.
19664 (nios2_legitimize_constant_address): Update call to
19665 nios2_load_pic_address.
19666 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
19667 to use temp reg for PIC loading purposes.
19668 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
19669 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19670 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
19672 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
19674 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
19675 usage of "the @option{...}".
19676 (-Wopenmp-simd): Likewise.
19677 (-fsanitize-recover): Likewise.
19678 (-fsanitize-undefined-trap-on-error): Likewise.
19680 (tracer-dynamic-coverage-feedback): Likewise.
19681 (reorder-block-duplicate-feedback): Likewise.
19682 (loop-unroll-jam-size): Likewise.
19685 (-mabs=legacy): Likewise.
19686 (-mupper-regs-df): Likewise.
19687 (-mupper-regs-sf): Likewise.
19688 (-mpointers-to-nested-functions): Likewise.
19690 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
19692 * doc/extend.texi (Cilk Plus Builtins): Add markup.
19694 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
19696 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
19697 additional index entries and cross-references.
19698 (-fchkp-check-incomplete-type): Likewise.
19699 (-fchkp-first-field-has-own-bounds): Likewise.
19700 (-fchkp-narrow-to-innermost-array): Likewise.
19701 (-fchkp-use-fast-string-functions): Likewise.
19702 (-fchkp-use-nochk-string-functions): Likewise.
19703 (-fchkp-use-static-const-bounds): Likewise.
19704 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19705 (-fchkp-instrument-marked-only): Likewise.
19706 (-fchkp-use-wrappers): Likewise.
19707 (-static-libmpx): Likewise.
19708 (-static-libmpxwrappers): Likewise.
19709 * doc/extend.texi (bnd_legacy): Likewise.
19710 (bnd_instrument): Likewise.
19711 (bnd_variable_size): Likewise.
19712 (Pointer Bounds Checker builtins): Likewise.
19714 2015-03-21 Tom de Vries <tom@codesourcery.com>
19716 PR tree-optimization/65458
19717 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
19718 * cgraph.h (cgraph_node): Add parallelized_function field.
19719 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
19720 (input_overwrite_node): Read parallelized_function field.
19721 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
19722 parallelized_function on cgraph_node for child_fn.
19723 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
19724 Remove include of gt-tree-parloops.h.
19725 (parallelized_functions): Remove static variable.
19726 (parallelized_function_p): Rewrite using parallelized_function field of
19728 (create_loop_fn): Remove adding to parallelized_functions.
19729 * Makefile.in (GTFILES): Remove tree-parloops.c
19731 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
19733 PR rtl-optimization/64366
19734 * lra.c (lra_update_insn_regno_info): Consider regs in
19735 CALL_INSN_FUNCTION_USAGE memory.
19737 2015-03-20 Richard Biener <rguenther@suse.de>
19739 PR middle-end/64715
19740 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
19741 for type comparison and gcc_checking_assert.
19742 (chrec_fold_plus_poly_poly): Likewise.
19743 (chrec_fold_multiply_poly_poly): Likewise.
19744 (chrec_convert_1): Likewise.
19745 * gimplify.c (gimplify_expr): Remove premature folding of
19746 &X + CST to &MEM[&X, CST].
19748 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
19750 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
19752 (ipa_inline): Recompute inline_failed codes.
19753 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
19754 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
19757 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
19759 PR rtl-optimization/60851
19760 * recog.c (constrain_operands): Accept a pseudo register before reload
19761 for LRA enabled targets.
19763 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
19766 * config/rs6000/predicates.md (easy_fp_constant): Remove special
19767 -ffast-math handling that kept non-0 constants live in the RTL
19768 until reload. Remove logic testing the number of instructions it
19769 took to create a constant in a GPR that was never used, due to a
19770 test for soft-float earlier.
19771 (memory_fp_constant): Delete, no longer used.
19773 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
19774 alternatives for loading non-0 constants into GPRs for hard
19775 floating point that is no longer needed due to changes in
19776 easy_fp_constant. Add support for loading 0.0 into GPRs.
19777 (mov<mode>_hardfloat32): Likewise.
19778 (mov<mode>_hardfloat64): Likewise.
19779 (mov<mode>_64bit_dm): Likewise.
19780 (movtd_64bit_nodm): Likewise.
19781 (pre-reload move FP constant define_split): Delete define_split,
19782 since it is no longer used.
19783 (extenddftf2_internal): Remove GHF constraints that are not valid
19786 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
19788 PR rtl-optimization/63491
19789 * lra-constraints.c (check_and_process_move): Use src instead of
19790 sreg. Remove some dead code.
19792 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
19795 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
19796 (sem_variable::merge): Likewise.
19798 2015-03-19 Martin Liska <mliska@suse.cz>
19801 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
19802 all fields of cgraph_thunk_info.
19804 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
19806 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
19807 clone instrumented thunks.
19809 2015-03-19 Richard Biener <rguenther@suse.de>
19812 2015-03-10 Richard Biener <rguenther@suse.de>
19814 PR middle-end/63155
19815 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
19816 * tree-ssa-coalesce.c: Include timevar.h.
19817 (attempt_coalesce): Handle graph being NULL.
19818 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
19819 Split out abnormal coalescing to ...
19820 (perform_abnormal_coalescing): ... this function.
19821 (coalesce_ssa_name): Perform abnormal coalescing without computing
19823 (verify_ssa_coalescing_worker): New function.
19824 (verify_ssa_coalescing): Likewise.
19826 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
19827 Jakub Jelinek <jakub@redhat.com>
19830 * tsan.c (instrument_gimple): Clear tail call flag on
19833 2015-03-19 Jakub Jelinek <jakub@redhat.com>
19836 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
19837 call in the return bb.
19838 (find_split_points): Add RETURN_BB argument, don't call
19840 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
19841 if true append TSAN_FUNC_EXIT internal call after the call to
19842 the split off function.
19843 (execute_split_functions): Call find_return_bb here.
19844 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
19845 Adjust find_split_points and split_function calls.
19847 2015-03-18 DJ Delorie <dj@redhat.com>
19849 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
19850 (iorqi3_virt): Likewise.
19852 2015-03-18 Tom de Vries <tom@codesourcery.com>
19854 * tree-parloops.c (parallelize_loops): Make static.
19855 * tree-parloops.h (parallelize_loops): Remove extern declaration.
19857 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
19859 PR middle-end/64491
19861 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
19863 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
19864 condition would be removed due to undefined behaviour.
19866 2015-03-18 Martin Liska <mliska@suse.cz>
19869 * cgraph.c (cgraph_node::get_create): Remove unnecessary
19870 xstrdup_for_dump wrapper.
19871 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
19873 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
19874 with xstrdup_for_dump.
19875 (sem_variable::equals): Likewise.
19876 (sem_item_optimizer::read_section): Use symtab_node::name instead of
19878 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
19879 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
19880 symtab_node::asm_name with xstrdup_for_dump.
19881 (congruence_class::dump): Use symtab_node::name instead of
19883 * ipa-icf.h (symtab_node::name): Remove.
19884 (symtab_node::asm_name): Likewise.
19886 2015-03-18 Jakub Jelinek <jakub@redhat.com>
19888 PR tree-optimization/65450
19889 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
19891 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
19892 it instead of duplicate_ssa_name_ptr_info.
19895 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
19897 2015-03-18 Richard Biener <rguenther@suse.de>
19899 * tree-data-ref.h (struct access_matrix): Remove.
19900 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
19901 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
19902 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
19903 (am_vector_index_for_loop): Likewise.
19904 (struct data_reference): Remove access_matrix member.
19905 (DR_ACCESS_MATRIX): Remove.
19906 (lambda_vector_new): Add comment.
19907 (lambda_matrix_new): Use XOBNEWVEC.
19909 2015-03-18 Richard Biener <rguenther@suse.de>
19911 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
19912 (pass_ch::execute): Cleanup the CFG only if we did sth.
19913 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
19915 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19917 * expmed.c (synth_mult): Use std::swap instead of manually
19918 swapping algorithms.
19920 2015-03-18 Jakub Jelinek <jakub@redhat.com>
19923 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
19925 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
19928 * config/avr/avr.opt (-nodevicelib): New option.
19929 * doc/invoke.texi (AVR Options): Document it.
19930 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
19931 libgcc.a, libc.a, libm.a.
19932 * config/avr/specs.h: Same.
19933 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
19934 which don't (directly) depend on the device. Print more help.
19935 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
19936 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
19937 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
19939 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
19940 for specs file name.
19941 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
19942 * config/avr/avr-mcus.def: Adjust initializers and comments.
19944 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
19946 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
19947 DECL_ONE_ONLY to check if decl is one only.
19948 * ipa-split.c (consider_split): Limit splitt of one only functions.
19950 2015-03-16 Jakub Jelinek <jakub@redhat.com>
19952 PR tree-optimization/65427
19953 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
19955 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
19957 2015-03-16 Marek Polacek <polacek@redhat.com>
19959 * cgraph.h (add_new_static_var): Remove declaration.
19960 * varpool.c (add_new_static_var): Remove function.
19962 2015-03-16 Jakub Jelinek <jakub@redhat.com>
19964 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
19965 instead of vec<tree> * with vec_alloc and release for args.
19968 PR middle-end/65431
19969 * omp-low.c (delete_omp_context): Only splay_tree_delete
19970 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
19971 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
19973 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
19976 * cfgexpand.c (align_base): New function.
19977 (alloc_stack_frame_space): Call it.
19978 (expand_stack_vars): Align prev_frame to be sure
19979 data->asan_vec elements aligned properly.
19981 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
19983 PR middle-end/65409
19984 * expr.c (store_field): Do not do a direct block copy if the source is
19985 a PARALLEL with BLKmode.
19987 2015-03-16 Tom de Vries <tom@codesourcery.com>
19989 PR middle-end/65414
19991 2015-03-12 Tom de Vries <tom@codesourcery.com>
19993 PR rtl-optimization/64895
19994 * lra-lives.c (check_pseudos_live_through_calls): Use
19995 actual_call_used_reg_set instead of call_used_reg_set, if available.
19997 2015-03-16 Alan Modra <amodra@gmail.com>
20000 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20001 Modify Z->r bswapdi splitter to use dest in place of scratch.
20002 In r->Z and Z->r bswapdi splitter rename word_high, word_low
20003 to word1, word2 and rearrange logic to suit.
20004 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20005 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
20006 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20007 Add one '?' on r->r. Modify Z->r splitter to avoid need for
20010 2015-03-14 Jakub Jelinek <jakub@redhat.com>
20012 PR tree-optimization/65369
20013 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20014 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20015 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20017 PR tree-optimization/65418
20018 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20019 are casts in the first PLUS_EXPR operand, ensure tbias and
20020 *totallowp are in the inner type.
20022 PR rtl-optimization/65401
20023 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20024 argument. If true, adjust_address_nv of x with big-endian
20025 correction for the mode widening to GET_MODE (y).
20026 (make_field_assignment): Don't do MEM mode widening here.
20027 Use MEM_P instead of GET_CODE == MEM.
20029 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
20031 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20032 the external decls.
20034 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20037 * config/arm/arm.c (arm_gen_constant, AND case): Use
20038 ARM_SIGN_EXTEND when constructing AND mask.
20040 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20042 * graph.c (print_graph_cfg): Make function names visible and append
20043 parenthesis to it. Also make groups of basic blocks belonging to the
20044 same function visible.
20046 2015-03-12 Richard Biener <rguenther@suse.de>
20048 PR middle-end/44563
20049 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20050 to avoid quadratic behavior with inline expansion splitting blocks.
20051 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20052 with the successor if the predecessor will be merged with it.
20053 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20054 entry block with its successor.
20056 2015-03-13 Richard Biener <rguenther@suse.de>
20058 PR middle-end/44563
20059 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20060 (cleanup_tree_cfg_1): Do not call it.
20061 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20062 (fixup_noreturn_call): Mark the stmt as control altering.
20063 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20065 (pass_data_fixup_cfg): Produce a dump file.
20066 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20067 (need_noreturn_fixup): New global.
20068 (pass_dominator::execute): Fixup queued noreturn calls.
20069 (optimize_stmt): Queue calls that became noreturn for fixup.
20070 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20071 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20072 (el_to_fixup): New global.
20073 (eliminate_dom_walker::before_dom_childre): Queue calls that
20074 became noreturn for fixup.
20075 (eliminate): Fixup queued noreturn calls.
20076 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20077 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20078 (substitute_and_fold_dom_walker::before_dom_children): Queue
20079 alls that became noreturn for fixup.
20080 (substitute_and_fold): Fixup queued noreturn calls.
20082 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
20084 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20085 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20086 are building; for methods check ODR type of class they belong to if
20087 they may lead to a polymorphic call.
20088 (sem_function::compare_polymorphic_p): Be bit smarter about testing
20089 when function may lead to a polymorphic call.
20090 (sem_function::compare_type_list): Remove.
20091 (sem_variable::equals): Update use of compatible_types_p.
20092 (sem_variable::parse_tree_refs): Remove.
20093 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20095 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20097 (func_checker::compatible_polymorphic_types_p): Break out from ...
20098 (unc_checker::compatible_types_p): ... here.
20099 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20101 (unc_checker::compatible_types_p): Update.
20102 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20105 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20107 PR rtl-optimization/65235
20108 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20109 When first element of vec_concat is const_int, calculate its size
20110 using second element.
20112 2015-03-12 Richard Biener <rguenther@suse.de>
20114 PR middle-end/65270
20115 * fold-const.c (operand_equal_p): Fix ordering of resetting
20116 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20118 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
20120 * config/s390/s390.c (s390_reorg): Move code to output nops after label
20122 (s390_asm_output_function_label): Likewise.
20123 * config/s390/s390.c (s390_asm_output_function_label):
20124 Fix function label alignment with -mhtopatch.
20125 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20126 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20127 ("nop_2_byte"): New define_insn.
20128 ("nop_4_byte"): Likewise.
20129 ("nop_6_byte"): Likewise.
20130 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20131 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20133 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
20136 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20139 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
20142 * toplev.c (process_options): Restrict Pointer Bounds Checker
20143 usage with Address Sanitizer.
20145 2015-03-12 Richard Biener <rguenther@suse.de>
20147 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20149 * omp-low.c (expand_omp_taskreg): Split block before removing
20151 (expand_omp_target): Likewise.
20152 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20153 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20154 stmt to split_block.
20156 2015-03-12 Tom de Vries <tom@codesourcery.com>
20158 PR rtl-optimization/64895
20159 * lra-lives.c (check_pseudos_live_through_calls): Use
20160 actual_call_used_reg_set instead of call_used_reg_set, if available.
20162 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20164 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20165 (cgraph_node::remove): Likewise.
20166 (cgraph_node::get_untransformed_body): Likewise.
20167 * varpool.c (varpool_node::remove): Likewise.
20168 (varpool_node::get_constructor): Add sanity check.
20170 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
20172 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20174 (-fabi-compat-version): Likewise.
20175 (-ffriend-injection): Likewise.
20176 (-Wdeclaration-after-statement): Likewise.
20177 (-fomit-frame-pointer): Likewise.
20178 (-ftree-coalesce-inlined-vars): Likewise.
20179 (-fvisibility=): Likewise.
20180 * doc/extend.texi (Typeof): Likewise.
20181 (Zero Length): Likewise.
20182 (Escaped Newlines): Likewise.
20183 (Compound Literals): Likewise.
20184 (Function Attributes): Likewise.
20185 (Label Attributes): Likewise.
20186 (Type Attributes): Likewise.
20187 (Function Names): Likewise.
20188 (Other Builtins): Likewise.
20189 (Function Specific Option Pragmas): Likewise.
20190 (C++ Interface): Likewise.
20192 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
20194 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20196 2015-03-11 Marek Polacek <polacek@redhat.com>
20198 PR tree-optimization/65388
20199 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20201 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
20204 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20205 * configure: Regenerate.
20206 * config.in: Regenerate.
20207 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20208 [-mn-flash]: Document it.
20209 [__AVR_ARCH__]: Document avrtiny.
20211 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20212 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20213 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20215 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20217 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20219 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20222 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20223 allow reloads of PLUS in floating point/VSX registers.
20225 2015-03-11 Junmo Park <junmoz.park@samsung.com>
20227 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20228 crypto_sha256_fast.
20229 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20231 2015-03-11 Richard Biener <rguenther@suse.de>
20233 PR tree-optimization/65310
20234 * tree-sra.c (build_ref_for_offset): Also preserve larger
20237 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
20239 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20241 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20244 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20246 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20248 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20250 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20251 (sem_function::equals_wpa): ... here.
20253 2015-03-10 Marek Polacek <polacek@redhat.com>
20254 Jakub Jelinek <jakub@redhat.com>
20257 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20258 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
20261 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20264 * config/rs6000/t-linux: For powerpc64* target set
20265 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20267 2015-03-10 Richard Biener <rguenther@suse.de>
20269 PR middle-end/44563
20270 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20271 for redirect_all_calls.
20273 2015-03-10 Marek Polacek <polacek@redhat.com>
20275 * gdbinit.in (pcfun): Define and document.
20277 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
20279 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20280 of libgomp-plugin.h.
20281 (find_target_compiler): Support a case when the path to gcc is
20282 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20283 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20284 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20286 (main): Use GCC_INSTALL_NAME as target_driver_name.
20287 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20289 (mkoffload.o): Remove obsolete include path and defines.
20290 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20292 2015-03-10 Richard Biener <rguenther@suse.de>
20294 PR middle-end/63155
20295 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20296 * tree-ssa-coalesce.c: Include timevar.h.
20297 (attempt_coalesce): Handle graph being NULL.
20298 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20299 Split out abnormal coalescing to ...
20300 (perform_abnormal_coalescing): ... this function.
20301 (coalesce_ssa_name): Perform abnormal coalescing without computing
20303 (verify_ssa_coalescing_worker): New function.
20304 (verify_ssa_coalescing): Likewise.
20306 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
20309 * config.gcc (extra_options) [avr]: Remove.
20310 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20311 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20312 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20314 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20315 (-mmcu=): Add Var and MissingArgError properties.
20317 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20318 * config/avr/t-multilib: Regenerate.
20319 * config/avr/specs.h: New file.
20320 * config/avr/driver-avr.c: New file.
20321 * config/avr/genopt.sh: Remove file.
20322 * config/avr/avr-tables.opt: Remove file.
20323 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20324 * config/avr/avr-c.c: Same.
20325 * avr-arch.h: Same.
20326 (avr_current_device): Remove proto.
20327 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20328 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20329 (EXTRA_SPEC_FUNCTIONS): Define.
20330 (avr_devicespecs_file): New specs function proto.
20331 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20332 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20333 (avr_current_device): Remove definition and usage.
20334 (avr_set_core_architecture): New static function.
20335 (avr_option_override): Use it.
20336 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20337 (mcu_name): New static array.
20338 (comparator, avr_archs_str, avr_mcus_str): New static functions.
20339 (avr_inform_devices, avr_inform_core_architectures): New functions.
20340 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20341 (avrlibc.h) [WITH_AVRLIBC]: Include.
20342 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20343 (print_mcu): Rewrite from scratch.
20344 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20345 Forward to avr-specific specs defined in device-specs file.
20346 * config/avr/t-avr (driver-avr.o): New rule.
20347 (avr-devices.o): Depend on avr-arch.h.
20348 (avr-mcus): No more depend on avr-tables.opt.
20349 (avr-tables.opt): Remove rule.
20350 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20352 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20354 * c-family/c.opt (fchkp-use-wrappers): New.
20355 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20356 (chkp_wrap_function): New.
20357 (chkp_build_instrumented_fndecl): Support wrapped
20359 * doc/invoke.texi (-fcheck-pointer-bounds): New.
20360 (-fchkp-check-incomplete-type): New.
20361 (-fchkp-first-field-has-own-bounds): New.
20362 (-fchkp-narrow-bounds): New.
20363 (-fchkp-narrow-to-innermost-array): New.
20364 (-fchkp-optimize): New.
20365 (-fchkp-use-fast-string-functions): New.
20366 (-fchkp-use-nochk-string-functions): New.
20367 (-fchkp-use-static-bounds): New.
20368 (-fchkp-use-static-const-bounds): New.
20369 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20370 (-fchkp-check-read): New.
20371 (-fchkp-check-write): New.
20372 (-fchkp-store-bounds): New.
20373 (-fchkp-instrument-calls): New.
20374 (-fchkp-instrument-marked-only): New.
20375 (-fchkp-use-wrappers): New.
20376 (-static-libmpx): New.
20377 (-static-libmpxwrappers): New.
20379 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20381 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20382 (CHKP_SPEC): Add wrappers library.
20383 * c-family/c.opt (static-libmpxwrappers): New.
20385 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
20387 * config/i386/linux-common.h (LIBMPX_LIBS): New.
20388 (LIBMPX_SPEC): New.
20390 * gcc.c (CHKP_SPEC): New.
20391 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20392 * c-family/c.opt (static-libmpx): New.
20394 2015-03-10 Richard Biener <rguenther@suse.de>
20396 PR middle-end/44563
20397 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20399 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20400 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20401 (cgraph_add_edge_to_call_site_hash): Likewise.
20402 (cgraph_node::get_edge): Likewise.
20403 (cgraph_edge::set_call_stmt): Likewise.
20404 (cgraph_edge::remove_caller): Likewise.
20406 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
20408 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20409 (callee_saved_gpr_regs_size): ... this.
20410 (callee_saved_regs_first_regno): Rename to ...
20411 (callee_saved_first_gpr_regno): ... this.
20412 (callee_saved_regs_last_regno) Rename to ...
20413 (callee_saved_last_gpr_regno): ... this.
20414 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20416 (nds32_initial_elimination_offset): Likewise.
20417 (nds32_expand_prologue): Likewise.
20418 (nds32_expand_epilogue): Likewise.
20419 (nds32_expand_prologue_v3push): Likewise.
20420 (nds32_expand_epilogue_v3pop): Likewise.
20421 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20422 Adjust renamed variables.
20423 (nds32_output_stack_pop): Likewise.
20425 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
20427 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20430 2015-03-10 Jakub Jelinek <jakub@redhat.com>
20432 PR rtl-optimization/65321
20433 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20435 * var-tracking.c (use_narrower_mode): Likewise.
20437 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
20439 PR tree-optimization/65355
20440 * varasm.c (notice_global_symbol): Do not produce RTL.
20441 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20443 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20444 check for section anchors.
20446 2015-03-10 Alan Modra <amodra@gmail.com>
20449 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20450 to be single-arch by default. Set cpu_is_64bit for powerpc64
20451 given --with-cpu=native.
20452 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20453 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20455 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20456 rs6000_isa_flags rather than TARGET_64BIT.
20458 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
20459 Kaz Kojima <kkojima@gcc.gnu.org>
20461 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20463 2015-03-09 Jakub Jelinek <jakub@redhat.com>
20466 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20467 on a TREE_BINFO, instead use BINFO_TYPE.
20469 2015-03-09 Richard Biener <rguenther@suse.de>
20471 PR middle-end/65270
20472 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20473 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20474 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
20475 of that. When comparing dereferences compare alignment.
20476 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20478 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
20480 * ipa-inline-analysis.c (check_callers): Check
20481 node->can_remove_if_no_direct_calls_and_refs_p.
20482 (growth_likely_positive): Reorganize to call
20483 can_remove_if_no_direct_calls_p later.
20484 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20485 will_be_removed_from_program_if_no_direct_calls_p): Add
20486 will_inline parameter.
20487 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20488 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20489 Handle inliner case correctly.
20491 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
20493 PR tree-optimization/63743
20494 * cfgexpand.c (reorder_operands): Also reorder if only second operand
20495 had its definition forwarded by TER.
20497 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
20500 * ipa-utils.h (types_odr_comparable): Add strict argument.
20501 * ipa-devirt.c: Fix whitespace;
20502 (odr_hasher): Remove.
20503 (odr_name_hasher, odr_vtable_hasher): New hashers.
20504 (can_be_name_hashed_p): New predicate.
20505 (hash_type_name): remove.
20506 (hash_odr_name): New.
20507 (odr_name_hasher::hash): new.
20508 (can_be_vtable_hashed_p): New.
20509 (hash_odr_vtable): New.
20510 (odr_vtable_hasher::hash): New.
20511 (types_same_for_odr): Add strict parameter.
20512 (types_odr_comparable): Likewise.
20513 (odr_name_hasher::equal): New.
20514 (odr_vtable_hasher::equal): New.
20515 (odr_name_hasher::remove): New.
20516 (odr_hash_type): Change to hash_table<odr_name_hasher>.
20517 (odr_vtable_hash_type): New.
20518 (odr_vtable_hash): New.
20519 (odr_subtypes_equivalent_p): Do strict comparsion.
20520 (add_type_duplicate): Merge type names; cleanup; avoid type
20522 (register_odr_type): Initialize vtable hash.
20523 (build_type_inheritance_graph): Likewise
20524 (get_odr_type): Reorg to use two hashes.
20525 (dump_possible_polymorphic_call_targets): Move sanity check after debug
20527 (ipa_devirt): Dump type_inheritance_graph.
20528 (types_same_for_odr): Add strict mode.
20530 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20533 * cgraph.h (symtab_node): Add definition_alignment,
20534 can_increase_alignment_p and increase_alignment.
20535 * symtab.c (symtab_node::can_increase_alignment_p,
20536 increase_alignment_1, symtab_node::increase_alignment,
20537 symtab_node::definition_alignment): New.
20538 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
20539 can_increase_alignment_p.
20540 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
20541 * tree-vect-stmts.c (ensure_base_align): Likewise.
20542 * varasm.c (function_section_1): Use definition_alignment.
20543 (assemble_start_function): Likewise.
20544 (emit_local): likewise.
20545 (build_constant_desc): Likewsie.
20546 (output_constant_def_contents): Likewise.
20547 (place_block_symbol): Likewise.
20548 (output_object_block): Likewise.
20550 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20553 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
20554 when outputting debug.
20556 2015-03-07 Marek Polacek <polacek@redhat.com>
20557 Martin Uecker <uecker@eecs.berkeley.edu>
20560 * doc/invoke.texi: Update description of -fsanitize=bounds.
20562 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
20564 * tree-ssa-phiopt.c (neg_replacement): Remove.
20565 (tree_ssa_phiopt_worker): Remove negate optimization.
20567 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20570 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
20572 2015-03-06 Richard Biener <rguenther@suse.de>
20574 PR middle-end/64928
20575 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
20576 and liveout_obstack members.
20577 (calculate_live_on_exit): Remove.
20578 (calculate_live_ranges): Change declaration.
20579 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
20580 (new_tree_live_info): Adjust.
20581 (calculate_live_ranges): Delete livein when not wanted.
20582 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
20583 Deal with partly deleted live info.
20584 (loe_visit_block): Remove temporary bitmap by using
20585 bitmap_ior_and_compl_into.
20586 (live_worklist): Adjust accordingly.
20587 (calculate_live_on_exit): Make static.
20588 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
20589 we do not need livein.
20591 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
20593 * real.c (real_from_string): Fix typo in assertion.
20595 2015-03-06 Alex Velenko <alex.velenko@arm.com>
20597 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
20600 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
20602 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
20604 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
20607 * lra-assigns.c (find_hard_regno_for): Rename to
20608 find_hard_regno_for_1. Add a new parameter.
20609 (find_hard_regno_for): New function using find_hard_regno_for_1.
20611 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
20613 PR rtl-optimization/65067
20614 * expmed.c (store_bit_field, extract_bit_field): Reworked the
20615 strict volatile bitfield handling.
20617 2015-03-05 Martin Liska <mliska@suse.cz>
20620 * ipa-icf.c (sem_variable::equals): Compare variables types.
20622 2015-03-05 Richard Henderson <rth@redhat.com>
20625 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
20626 correctly check weak symbol binding.
20628 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
20630 PR middle-end/65315
20631 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
20634 2015-03-05 Martin Liska <mliska@suse.cz>
20636 * ipa-inline.c (inline_small_functions): Set default value to
20637 prevent warning during bootstrap.
20638 * tree.h: Add pragma guard that ignores false positives during
20641 2015-03-05 Richard Biener <rguenther@suse.de>
20643 PR tree-optimization/65310
20644 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20645 Properly preserve alignment of the base of the access.
20647 2015-03-05 Richard Biener <rguenther@suse.de>
20650 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
20651 Compare dependence info.
20653 2015-03-05 Richard Biener <rguenther@suse.de>
20655 PR middle-end/65233
20656 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
20658 (walk_ssa_copies): Revert last chage. Instead do not walk
20659 SSA names registered for SSA update.
20661 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
20664 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
20665 vtable references for their containing type.
20666 (sem_function::equals_wpa): Compare TYPE_RESTRICT
20667 and type attributes.
20669 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
20671 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
20672 before negating it.
20673 * stor-layout.c (finalize_record_size): Revert latest change.
20675 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
20677 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
20679 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
20681 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
20682 for correct comdat handling.
20683 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20685 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
20686 (used_from_object_file_p_worker): Remove.
20687 (cgraph_node::only_called_directly_or_alised): Add
20688 used_from_object_file_p.
20689 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
20690 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
20691 can_remove_if_no_direct_calls_and_refs_p.
20693 2015-03-04 Nick Clifton <nickc@redhat.com>
20695 * config/rl78/rl78.h (enum reg_class): Remove real registers from
20696 General register class.
20697 * config/rl78/rl78-real.md: Replace general register constraints
20698 with real+virtual register constraints.
20700 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20702 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
20703 from checking for -mhtm option.
20705 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
20707 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
20708 (struct ipa_sra_check_caller_data): Add has_thunk field.
20709 (ipa_sra_check_caller): Check for thunk.
20710 (ipa_sra_preliminary_function_checks): Give up on function with
20712 (ipa_early_sra): Use call_for_symbol_and_aliases.
20714 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
20717 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
20718 called for __stack_chk_guard symbol.
20720 2015-03-03 DJ Delorie <dj@redhat.com>
20722 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
20724 (*addhi3_real): Likewise.
20725 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
20726 pattern to match incrementing memory.
20727 * config/rl78/predicates.md (rl78_1_2_operand): New.
20728 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
20729 it's the same and only mem.
20730 (rl78_alloc_physical_registers_op2): If there's effectively only
20731 one MEM, transcode it into HL.
20732 (rl78_far_p): Reject addresses that aren't legitimate.
20734 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
20736 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
20739 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
20741 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
20743 Implement call0 ABI for xtensa
20744 * config/xtensa/constraints.md ("a" constraint): Include stack
20745 pointer in case of call0 ABI.
20746 ("q" constraint): Make empty in case of call0 ABI.
20747 ("D" constraint): Include stack pointer in case of call0 ABI.
20748 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
20749 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
20751 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
20753 (xtensa_regno_to_class): Make it a local variable in the
20754 function xtensa_regno_to_class.
20755 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
20756 macro, function prototype and implementation.
20757 (reg_nonleaf_alloc_order): Make it a local variable in the
20758 function order_regs_for_local_alloc.
20759 (xtensa_conditional_register_usage): New function.
20760 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
20761 (xtensa_valid_move): Allow direct moves to stack pointer
20762 register in call0 ABI.
20763 (xtensa_setup_frame_addresses): Only spill register windows in
20765 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
20766 call0 ABI respectively.
20767 (xtensa_function_arg_1): Only mark a7 register for copying in
20769 (xtensa_call_save_reg): New function.
20770 (compute_frame_size): Add space for callee saved register
20771 storage to the frame size in call0 ABI.
20772 (xtensa_expand_prologue): Generate code to set up stack frame
20773 and save callee-saved registers in call0 ABI.
20774 (xtensa_expand_epilogue): New function.
20775 (xtensa_set_return_address): New function.
20776 (xtensa_return_addr): Calculate return address in call0 ABI.
20777 (xtensa_builtin_saveregs): Only mark a7 register for copying and
20778 emit copying code in windowed ABI.
20779 (order_regs_for_local_alloc): Add preferred register allocation
20780 order for non-leaf function in call0 ABI.
20781 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
20782 (xtensa_asm_trampoline_template): Add trampoline generation for
20784 (xtensa_trampoline_init): Add trampoline initialization for
20786 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
20788 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
20789 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
20790 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
20791 ABI call-used registers.
20792 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
20793 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
20795 (REG_CLASS_CONTENTS): Include all registers into the preferred
20796 reload registers set, adjust the set in the
20797 xtensa_conditional_register_usage.
20798 (xtensa_regno_to_class): Drop variable declaration.
20799 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
20801 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
20803 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
20804 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
20805 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
20806 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
20807 location in call0 ABI.
20808 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
20809 stack adjustment size when handling exception.
20810 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
20811 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
20813 ("return" pattern): Generate ret.n/ret in call0 ABI.
20814 ("epilogue" pattern): Expand epilogue.
20815 ("nonlocal_goto" pattern): Use default in call0 ABI.
20816 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
20817 emit eh_set_a0_* depending on ABI.
20818 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
20819 ("eh_set_a0_call0", "blockage"): New patterns.
20821 2015-03-03 Martin Liska <mliska@suse.cz>
20824 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
20826 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20829 * config/rs6000/rs6000-tables.opt: Regenerate table.
20831 2015-03-03 Renlin Li <renlin.li@arm.com>
20833 * doc/md.texi (@item ^): Change ? into ^.
20835 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
20837 * doc/tm.texi: Regenerated.
20839 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
20841 * builtins.c (expand_builtin_return_addr): Add
20842 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
20843 surrounding #ifdef.
20844 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
20846 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
20848 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
20850 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
20853 2015-03-03 Martin Jambor <mjambor@suse.cz>
20854 Eric Botcazou <ebotcazou@adacore.com>
20856 * tree-sra.c (ipa_sra_check_caller_data): New type.
20857 (has_caller_p): Removed.
20858 (ipa_sra_check_caller): New function.
20859 (ipa_sra_preliminary_function_checks): Use it.
20861 2015-03-03 Martin Liska <mliska@suse.cz>
20863 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
20864 instead of if branch.
20866 2015-03-03 Martin Liska <mliska@suse.cz>
20869 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
20871 2015-03-23 Jeff Law <law@redhat.com>
20873 PR tree-optimization/65241
20874 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
20875 hash table if INSERT is true.
20877 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
20880 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
20882 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
20885 * config/avr/avr.c (context.h, tree-pass.h): Include them.
20886 (avr_pass_data_recompute_notes): New static variable.
20887 (avr_pass_recompute_notes): New class.
20888 (avr_register_passes): New static function.
20889 (avr_option_override): Call it.
20891 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
20893 Fix various problems with specs file generation.
20896 * config.gcc (extra_gcc_objs) [avr]: Remove.
20897 * config/avr/driver-avr.c: Remove file.
20898 * config/avr/t-avr (driver-avr.o): Remove rule.
20899 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
20900 INCLUDES to build. Depend on TM_H.
20901 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
20902 build warnings. Fix non-matching types and non-existing %-codes.
20904 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
20905 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
20906 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
20907 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
20908 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
20909 (LIBGCC_SPEC): Remove definitions.
20911 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
20913 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
20914 to create a register in testing mode.
20916 2015-03-03 Martin Liska <mliska@suse.cz>
20917 Jan Hubicka <hubicka@ucw.cz>
20920 * cgraph.c (cgraph_node::has_thunk_p): New function.
20921 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
20922 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
20923 (sem_function::merge): Assert is changed.
20925 2015-03-03 Martin Liska <mliska@suse.cz>
20926 Martin Jambor <mjambor@suse.cz>
20929 * ipa-icf.c (sem_item_optimizer::execute): Change function
20930 return value to boolean.
20931 (sem_item_optimizer::merge_classes): Likewise.
20932 (ipa_icf_driver): Return TODO_remove_functions in case there's
20933 a merge operation processed.
20934 * ipa-icf.h: Change function return value to boolean.
20936 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20939 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
20940 processor type for 64-bit little endian PowerPC.
20942 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20943 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
20944 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
20945 printing built-in mask so it does not pass NULL pointers.
20947 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
20950 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
20953 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
20954 !ISA_HAS_FP_CONDMOVE.
20956 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
20958 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
20961 2015-03-02 Ulrich Drepper <drepper@gmail.com>
20963 * doc/invoke.texi (Options for Code Generation Conventions):
20964 Fix URL of DSO paper.
20966 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
20969 * ipa-inline.c (check_callers): Looks for recursion.
20970 (inline_to_all_callers): Give up on uninlinable or recursive edges.
20971 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
20972 summary of inline clones.
20973 (do_estimate_growth_1): Fix recursion check.
20975 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
20978 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
20981 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
20982 Aldy Hernandez <aldyh@redhat.com>
20985 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
20986 when checking TYPE_BINFO.
20988 2015-03-02 Richard Biener <rguenther@suse.de>
20991 * ipa-icf-gimple.c: Include builtins.h.
20992 (func_checker::compare_memory_operand): Compare base alignment.
20994 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
20997 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
20998 are never passed by reference.
21000 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
21003 * tree-chkp.c (chkp_check_lower): Don't check against
21004 zero bounds for already instrumented functions.
21005 (chkp_check_upper): Likewise.
21006 (chkp_fini): Clean pass local data to avoid wrong reusage.
21008 2015-02-28 Martin Liska <mliska@suse.cz>
21009 Jan Hubicka <hubicka@ucw.cz>
21011 * ipa-icf.c (sem_variable::equals): Improve debug output;
21012 get variable constructor.
21013 (sem_variable::parse): Do not filter out too early; give up on
21014 volatile and register vars.
21015 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21017 * ipa-icf.h (sem_variable::init): Do not set ctor.
21018 (sem_variable::ctor): Remove.
21020 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
21022 PR middle-end/65233
21023 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21025 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21027 * ipa-icf.c: Include stor-layout.h
21028 (sem_function::compare_cgraph_references): Rename to ...
21029 (sem_item::compare_cgraph_references): ... this one.
21030 (sem_variable::equals_wpa): New function
21031 (sem_variable::equals): Do not check stuff already verified by
21033 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21034 * ipa-icf.h (sem_item): Add compare_cgraph_references.
21035 (sem_function): Remove compare_cgraph_references.
21036 (sem_variable): Turns equals_wpa into non-inline.
21038 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21040 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21041 (sem_item::add_expr): New function.
21042 (sem_function::hash_stmt): Handle operands of most statements.
21043 (sem_variable::get_hash): Hash the actual constructor.
21044 * ipa-icf.h (sem_item): Add add_expr.
21045 (sem_function): Update prototype of hash_stmt
21047 2015-02-28 Martin Liska <mliska@suse.cz>
21048 Jan Hubicka <hubicka@ucw.cz>
21051 * ipa-icf-gimple.c (func_checker::compare_function_decl):
21053 (func_checker::compare_variable_decl): Skip symtab vars.
21054 (func_checker::compare_cst_or_decl): Update.
21055 * ipa-icf.c (sem_function::parse): Do not consider aliases.
21056 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21057 use correct symtab predicates.
21058 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21059 (sem_variable::parse): Update comment.
21060 (sem_item_optimizer::build_graph): Consider ultimate aliases
21063 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21065 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21068 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21070 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21071 (sem_variable::merge) Likewise.
21073 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21075 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21076 target; also match flag_ipa_devirt.
21078 2015-03-01 Martin Liska <mliska@suse.cz>
21079 Jan Hubicka <hubicka@ucw.cz>
21081 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21082 Validate variable alignment.
21083 * ipa-icf.c (sem_function::equals_private): Be more precise
21084 about non-common function attributes.
21085 (sem_variable::equals): Likewise.
21087 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21090 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21091 across COMDAT group boundary.
21093 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21096 * ipa-icf.c (clear_decl_rtl): New function.
21097 (sem_function::merge): Clear RTL before forming alias.
21098 (sem_variable::merge): Clear RTL before forming alias.
21100 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
21103 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21105 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
21107 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21110 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21112 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21113 a typo in the description.
21115 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21118 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21119 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21120 * lra-constraints.c: Include "params.h".
21121 (EBB_PROBABILITY_CUTOFF): Use
21122 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21123 (lra_inheritance): Use '<' instead of '<=' for
21124 EBB_PROBABILITY_CUTOFF.
21125 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21128 2015-02-27 Martin Liska <mliska@suse.cz>
21130 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21131 vector length condition.
21133 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
21135 * doc/extend.texi (x86 transactional memory intrinsics):
21136 Reorganize discussion of _xbegin. Clarify that the return
21137 value is a bit mask. Expand example and move to end of section.
21139 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21140 Aldy Hernandez <aldyh@redhat.com>
21142 PR rtl-optimization/65220
21143 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21145 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
21148 * lra-remat.c (update_scratch_ops): New.
21149 (do_remat): Call it.
21150 * lra.c (lra_register_new_scratch_op): New. Take code from ...
21151 (remove_scratches): ... here.
21152 * lra-int.h (lra_register_new_scratch_op): New prototype.
21154 2015-02-27 Marek Polacek <polacek@redhat.com>
21157 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21158 -Wformat-signedness anymore.
21160 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21162 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21164 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21166 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21168 * config/s390/s390.c (enum s390_builtin):
21169 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21170 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21171 (s390_init_builtins): Generate new builtin functions.
21172 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21173 (s390_sfpc, s390_efpc): New pattern definitions.
21175 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21177 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21178 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21179 (s390_builtin_decls): New array.
21180 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21181 (s390_builtin_decl): New function.
21182 (TARGET_BUILTIN_DECL): Define macro.
21184 2015-02-27 Richard Biener <rguenther@suse.de>
21186 PR middle-end/63175
21187 * builtins.c (get_object_alignment_2): Make sure to re-apply
21188 the ANDed mask after recursing to its operand gets us a new
21189 misalignment bit position.
21191 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
21192 Martin Liska <mliska@suse.cz>
21195 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21196 Use address_matters_p.
21197 (redirect_all_callers, set_addressable): New functions.
21198 (sem_function::merge): Reorganize and fix merging issues.
21199 (sem_variable::merge): Likewise.
21200 (sem_variable::compare_sections): Remove.
21201 * common.opt (fmerge-all-constants, fmerge-constants): Remove
21203 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21205 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21207 (address_matters_1): New function.
21208 (symtab_node::address_matters_p): New function.
21209 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21210 check for merged flag.
21211 * cgraph.h (address_matters_p): Declare.
21212 (symtab_node::address_taken_from_non_vtable_p): Remove.
21213 (symtab_node::address_can_be_compared_p): New method.
21214 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21215 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21217 (comdat_can_be_unshared_p_1) Use address_matters_p.
21218 (update_vtable_references): Fix formating.
21219 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21220 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21221 * cgraphclones.c: Preserve merged and icf_merged flags.
21223 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
21225 * doc/extend.texi (Function Attributes): Fix spelling and typos.
21226 (Label Attributes): Likewise.
21227 (Cilk Plus Builtins): Likewise.
21228 (ARC SIMD Built-in Functions): Likewise.
21229 (ARM C Language Extensions (ACLE)): Likewise.
21230 (PowerPC Built-in Functions): Likewise.
21231 (PowerPC Hardware Transactional Memory Built-in Functions):
21234 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21236 PR tree-optimization/65216
21237 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21238 new stmt and new SSA_NAME for lhs whenever the arguments have
21239 changed and weren't just swapped. Fix comment typo.
21241 PR tree-optimization/65215
21242 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21243 for PDP endian targets.
21244 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21245 Fix up formatting issues.
21246 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
21247 size is smaller than the original, adjust MEM_REF offset by the
21248 difference of sizes. Use is_gimple_mem_ref_addr instead of
21249 is_gimple_min_invariant test to avoid adding address temporaries.
21251 2015-02-26 Martin Liska <mliska@suse.cz>
21252 Jan Hubicka <hubicka@ucw.cz>
21255 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21256 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21257 (sem_item_optimizer::process_cong_reduction): Include division by
21258 sensitive references.
21259 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21260 * ipa-ref.c (ipa_ref::address_matters_p): New function.
21261 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21263 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
21266 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21268 * config/avr/avr.c: Same.
21269 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21270 Refuse any constant address not in 0..0xbf.
21271 * config/avr/avr.md (*mov<mode>, *movsf): Remove
21272 tiny_valid_direct_memory_access_range from insn conditions.
21273 (mov<mode>): Don't special-case expansion of avrtiny addresses.
21275 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
21278 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21279 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21280 * config/sh/predicates.md (const_logical_operand): New predicate.
21281 * config/sh/sh.md: Add new peephole2 patterns.
21283 2015-02-26 Marek Polacek <polacek@redhat.com>
21286 * ipa-inline.c (early_inliner): Recompute inline parameters.
21288 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21291 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21292 instructions with TImode operands are included in the analysis.
21294 2015-02-26 Sebastian Pop <s.pop@samsung.com>
21296 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21297 of an EDGE_FSM_THREAD.
21299 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21301 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21303 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
21306 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21308 2015-02-26 Sebastian Pop <s.pop@samsung.com>
21310 PR tree-optimization/65048
21311 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21312 (thread_through_all_blocks): Call valid_jump_thread_path.
21313 Remove invalid FSM jump-thread paths.
21315 2015-02-26 Jakub Jelinek <jakub@redhat.com>
21317 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21318 (ipa_write_optimization_summaries): Likewise.
21319 * tree-streamer.h: Include data-streamer.h.
21320 (streamer_mode_table): Declare extern variable.
21321 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21322 * lto-streamer-out.c (lto_output_init_mode_table,
21323 lto_write_mode_table): New functions.
21324 (produce_asm_for_decls): Call lto_write_mode_table when streaming
21326 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21327 (lto_create_simple_input_block): Add mode_table argument to the
21328 lto_input_block constructors.
21329 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21331 * data-streamer-in.c (string_for_index): Likewise.
21332 * ipa-inline-analysis.c (inline_read_section): Likewise.
21333 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21334 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21335 * lto-streamer-in.c (lto_read_body_or_constructor,
21336 lto_input_toplevel_asms): Likewise.
21337 (lto_input_mode_table): New function.
21338 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21339 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21340 Use bp_pack_machine_mode.
21341 * real.h (struct real_format): Add name field.
21342 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21343 (class lto_input_block): Add mode_table member.
21344 (lto_input_block::lto_input_block): Add mode_table_ argument,
21345 initialize mode_table.
21346 (struct lto_file_decl_data): Add mode_table field.
21347 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21348 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21349 unpack_ts_decl_common_value_fields,
21350 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21351 * tree-streamer.c (streamer_mode_table): New variable.
21352 * real.c (ieee_single_format, mips_single_format,
21353 motorola_single_format, spu_single_format, ieee_double_format,
21354 mips_double_format, motorola_double_format,
21355 ieee_extended_motorola_format, ieee_extended_intel_96_format,
21356 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21357 ibm_extended_format, mips_extended_format, ieee_quad_format,
21358 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21359 decimal_single_format, decimal_double_format, decimal_quad_format,
21360 ieee_half_format, arm_half_format, real_internal_format): Add name
21362 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21364 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
21367 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21368 reordering for selective scheduling.
21370 2015-02-26 Terry Guo <terry.guo@arm.com>
21372 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21373 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21374 (arm_arch_no_volatile_ce): Declare new global variable.
21375 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21376 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21377 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21378 (TARGET_NO_VOLATILE_CE): New macro.
21379 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21380 volatile memory access in IT block
21382 2015-02-25 Kai Tietz <ktietz@redhat.com>
21384 PR tree-optimization/61917
21385 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21386 that reduc_def_stmt is null.
21388 2015-02-25 Martin Liska <mliska@suse.cz>
21390 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21391 hard register variables.
21393 2015-02-25 Kai Tietz <ktietz@redhat.com>
21396 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21397 (symtab::noninterposable_alias): Likewise.
21399 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
21402 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21404 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21406 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
21409 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21410 as split condition; force split via '#' in output pattern.
21412 2015-02-25 Richard Biener <rguenther@suse.de>
21413 Kai Tietz <ktietz@redhat.com>
21415 PR tree-optimization/61917
21416 * tree-vect-loop.c (vectorizable_reduction): Allow
21417 vect_internal_def without reduction to exit graceful.
21419 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
21422 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21423 only with NONDEBUG_INSN_P.
21425 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
21427 Use variadic macros with avr-log.c.
21429 * config/avr/avr-protos.h (avr_vdump): New prototype.
21430 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21431 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21432 * config/avr/avr-log.c: Adjust comments.
21433 (avr_vdump): New function.
21434 (avr_vadump): Pass caller as 2nd argument instead of format string.
21435 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21436 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21438 2015-02-25 Jakub Jelinek <jakub@redhat.com>
21441 * target.def (target_option_stream_in): New target hook.
21442 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21443 targetm.target_option.post_stream_in if non-NULL.
21444 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21445 * doc/tm.texi: Updated.
21446 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21448 (TARGET_OPTION_POST_STREAM_IN): Redefine.
21450 2015-02-24 Jeff Law <law@redhat.com>
21453 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21454 of operand 0 and operand 2.
21455 (zero_cost_loop_end, loop_end): Similarly.
21457 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
21459 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21462 2015-02-24 DJ Delorie <dj@redhat.com>
21464 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21465 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21466 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21467 instead of hardcoding SImode.
21469 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
21471 * omp-low.c (create_omp_child_function): Tag entrypoint
21472 functions with a special attribute.
21474 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21477 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21479 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
21481 PR rtl-optimization/65123
21482 * lra-remat.c (operand_to_remat): Check hard regs in insn
21485 2015-02-24 Nick Clifton <nickc@redhat.com>
21487 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21490 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
21493 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21494 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21495 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21496 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21497 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21498 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21499 (BUILT_IN_GOACC_PARALLEL): Specify as
21500 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21501 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21502 * builtin-types.def
21503 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21504 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21505 Remove function types.
21506 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21507 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21508 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21509 New function types.
21511 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
21513 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21515 2015-02-24 Jakub Jelinek <jakub@redhat.com>
21517 PR tree-optimization/65170
21518 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
21519 if val[1] < 0, clear also val[2] and return 3.
21521 2015-02-24 Alan Modra <amodra@gmail.com>
21524 * config/rs6000/rs6000.c (get_memref_parts): Only return true
21525 when *base is a reg. Handle nested plus addresses. Simplify
21528 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
21530 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
21531 use natural alignment when optimizing for size.
21533 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
21536 * config/sh/sh.md (movsicc_true+3): Remove peephole.
21537 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
21538 * config/sh/sh.c (replace_n_hard_rtx): Remove.
21540 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
21543 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
21544 too big for a wide_int. Implement missing wrapping operation.
21546 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
21549 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
21550 instead of const_int 4294901760.
21552 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
21554 * config/avr/t-avr: Fix typo in comment.
21556 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
21558 * doc/rtl.texi (fma): Clarify documentation.
21560 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
21563 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
21564 over input_location.
21566 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
21568 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
21569 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
21570 restrict alignments to absolute_biggest_alignment.
21571 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
21573 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
21574 * doc/tm.texi: Regenerate.
21575 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
21577 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
21580 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
21582 2015-02-20 Richard Biener <rguenther@suse.de>
21584 PR tree-optimization/65136
21585 * tree-ssa-propagate.c: Include cfgloop.h.
21586 (replace_phi_args_in): Avoid replacing loop latch edge PHI
21587 arguments with constants.
21589 2015-02-20 Jakub Jelinek <jakub@redhat.com>
21590 Martin Liska <mliska@suse.cz>
21593 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
21594 don't try to create_thunk if stdarg_p. If
21595 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
21596 redirect_callers if possible.
21597 (sem_item_optimizer::execute): Call unregister_hooks here...
21598 (ipa_icf_driver): ... instead of here.
21600 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21602 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
21603 Mark operand 0 as earlyclobber in 2nd alternative.
21604 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
21605 Write negated shift amount into QI lowpart operand 0 and use it
21607 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
21609 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
21611 * cgraph.h (clone_function_name_1): Declare.
21612 * cgraphclones.c (clone_function_name_1): New function.
21613 (clone_function_name): Use it.
21614 * lto-partition.c: Include "stringpool.h".
21615 (must_not_rename, maybe_rewrite_identifier)
21616 (validize_symbol_for_target): New static functions.
21617 (privatize_symbol_name): Use must_not_rename.
21618 (promote_symbol): Call validize_symbol_for_target.
21619 (lto_promote_cross_file_statics): Likewise.
21620 (lto_promote_statics_nonwpa): Likewise.
21622 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
21625 * config/avr/avr.md (pushhi_insn): New insn.
21626 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
21628 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
21629 Jakub Jelinek <jakub@redhat.com>
21631 * tree-streamer.c (preload_common_nodes): Don't preload
21632 TI_VA_LIST* for offloading.
21633 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
21636 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
21638 * config/pa/pa.c (pa_emit_move_sequence): Always force
21639 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
21642 * config/pa/pa.c (pa_reloc_rw_mask): New function.
21643 (TARGET_ASM_RELOC_RW_MASK): Define.
21644 (pa_cannot_force_const_mem): Revert previous change.
21646 2015-02-19 Martin Jambor <mjmabor@suse.cz>
21647 Jan Hubicka <hubicka@ucw.cz>
21650 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
21651 across jump functions.
21653 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
21655 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
21657 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
21659 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
21661 2015-02-19 Richard Henderson <rth@redhat.com>
21663 PR middle-end/65074
21664 * varasm.c (default_binds_local_p_2): Don't test node->definition;
21665 test DECL_EXTERNAL independent of symtab_node.
21667 2015-02-19 Jakub Jelinek <jakub@redhat.com>
21670 * varpool.c (varpool_node::get_constructor): Return early
21671 if this->lto_file_data is NULL.
21673 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21675 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
21676 (rank_for_schedule_debug): Update.
21677 (ready_sort): Make static. Move sorting logic to ...
21678 (ready_sort_debug, ready_sort_real): New static functions.
21679 (schedule_block): Sort both debug insns and real insns in preparation
21680 for ready list trimming. Improve debug output.
21681 * sched-int.h (ready_sort): Remove global declaration.
21683 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
21685 * ipa-icf.c (sem_function::equals_private): Adjust.
21686 (sem_function::bb_dict_test): Take a vec<int> * instead of
21688 * ipa-icf.h (bb_dict_test): Likewise.
21690 2015-02-18 Jakub Jelinek <jakub@redhat.com>
21692 PR gcov-profile/64634
21693 * tree-eh.c (frob_into_branch_around): Fix up typos
21694 in function comment.
21695 (lower_catch): Put eh_seq resulting from EH lowering of
21696 the cleanup sequence after the cleanup rather than before it.
21698 2015-02-18 Tom de Vries <tom@codesourcery.com>
21700 * common.opt (fstdarg-opt): New option.
21701 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
21702 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
21703 (@item -fstdarg-opt): New item.
21705 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
21708 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
21709 for common symbols.
21711 2015-02-18 Jakub Jelinek <jakub@redhat.com>
21713 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
21715 (ALL_HOST_OBJS): Add mkoffload.o.
21716 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
21718 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
21720 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
21721 (compare_virtual_tables): Be smarter about skipping typeinfos;
21722 do sane output on virtual table table mismatch.
21723 (warn_odr): Be ready for forward declarations of enums;
21724 output sane info on base mismatch and virtual table mismatch.
21725 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
21726 when only one type is polymorphic.
21727 (get_odr_type): Fix hashtable corruption.
21728 (dump_odr_type): Dump mangled names.
21730 2015-02-18 Richard Biener <rguenther@suse.de>
21732 PR tree-optimization/65063
21733 * tree-predcom.c (determine_unroll_factor): Return 1 if we
21734 have replaced looparound PHIs.
21736 2015-02-18 Martin Liska <mliska@suse.cz>
21738 * lto-streamer.c (lto_streamer_init): Encapsulate
21739 streamer_check_handled_ts_structures with checking macro.
21741 2015-02-18 Jakub Jelinek <jakub@redhat.com>
21744 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
21745 section if !implicit_section.
21746 (cgraph_node::create_version_clone_with_body): Likewise.
21747 * trans-mem.c (ipa_tm_create_version): Likewise.
21749 2015-02-18 Richard Biener <rguenther@suse.de>
21751 PR tree-optimization/62217
21752 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
21755 2015-02-18 Marek Polacek <polacek@redhat.com>
21758 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
21759 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
21760 is in range [-16K, -1]. Don't issue run-time error if
21761 (ptr > ptr + offset).
21763 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
21765 * doc/install.texi (nvptx-*-none): New section.
21766 * doc/invoke.texi (Nvidia PTX Options): Likewise.
21767 * config/nvptx/nvptx.opt: Update.
21769 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
21770 (access_check): New functions, copied from
21771 config/i386/intelmic-mkoffload.c.
21772 (main): For non-installed testing, look in all COMPILER_PATHs for
21775 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
21777 2015-02-18 Andrew Pinski <apinski@cavium.com>
21778 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21780 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
21781 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
21783 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
21785 * ipa-visibility.c (function_and_variable_visibility): Only
21786 check locality if node is not already local.
21787 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
21788 call_for_symbol_and_aliases instead of
21789 call_for_symbol_thunks_and_aliases.
21790 (ipa_inline): Likewise.
21791 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21792 first walk aliases.
21793 * ipa.c (symbol_table::remove_unreachable_nodes): Use
21794 call_for_symbol_and_aliases.
21795 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
21796 (ipa_propagate_frequency_1): Use it; use opt_for_fn
21797 (ipa_propagate_frequency): Update.
21798 (ipa_profile): Add opt_for_fn gueards.
21800 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
21802 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
21803 * doc/invoke.texi (SH options): Document it.
21804 * config/sh/sh.c (sh_insn_length_adjustment): Check
21805 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
21807 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
21809 * common.opt (fipa-cp-alignment): New.
21810 * ipa-cp.c (ipcp_store_alignment_results): Check
21811 flag_ipa_cp_alignment.
21812 * opts.c (default_options_table): Enable -fipa-cp-alignment for
21814 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
21815 * doc/invoke.texi: Document -fipa-cp-alignment.
21817 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
21820 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
21821 to nil. Adjust comments.
21823 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
21825 * ipa-visibility.c (function_and_variable_visibility): Only
21826 check locality if node is not already local.
21827 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
21828 call_for_symbol_and_aliases instead of
21829 call_for_symbol_thunks_and_aliases.
21830 (ipa_inline): Likewise.
21831 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21832 first walk aliases.
21833 * ipa.c (symbol_table::remove_unreachable_nodes): Use
21834 call_for_symbol_and_aliases.
21835 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
21836 (ipa_propagate_frequency_1): Use it; use opt_for_fn
21837 (ipa_propagate_frequency): Update.
21838 (ipa_profile): Add opt_for_fn guards.
21840 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
21842 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
21843 skipping of "strange" tokens.
21845 2015-02-17 Jeff Law <law@redhat.com>
21847 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
21850 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
21852 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
21853 as forcing a HARD_DEP between instructions, thereby
21854 disallowing rewriting to break dependencies.
21856 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
21858 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
21859 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
21860 variables in boundary that have no inlitalizer encoded and are
21862 * varasm.c (default_binds_local_p_2): External definitions do not
21863 count as definitions here.
21865 2015-02-16 Jeff Law <law@redhat.com>
21867 PR tree-optimization/64823
21868 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
21870 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
21871 threading through blocks with PHIs, but no statements.
21872 (thread_through_normal_block): Distinguish between blocks where
21873 we did not process all the statements and blocks with no statements.
21875 2015-02-16 Jakub Jelinek <jakub@redhat.com>
21876 James Greenhalgh <james.greenhalgh@arm.com>
21879 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
21880 section if not linkonce. Fix up formatting.
21881 (cgraph_node::create_version_clone_with_body): Copy section.
21882 * trans-mem.c (ipa_tm_create_version): Likewise.
21884 2015-02-16 Richard Biener <rguenther@suse.de>
21886 PR tree-optimization/65077
21887 * tree-ssa-structalias.c (get_constraint_for_1): Handle
21888 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
21889 (find_func_aliases): Allow float values to carry pointers again.
21891 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21893 * doc/install.texi (Specific): Reorder targets list to put
21894 aarch64 in alphabetical order. Add a link to aarch64*-*-*
21897 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21898 David Edelsohn <dje.gcc@gmail.com>
21901 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
21902 mapping class to external variable or function reference.
21903 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
21906 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
21909 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
21910 ASM_WEAKEN_DECL if defined.
21912 2015-02-16 Richard Biener <rguenther@suse.de>
21915 * varasm.c (default_file_start): For LTO produced units
21916 emit <artificial> as file directive.
21918 2015-02-16 Richard Biener <rguenther@suse.de>
21920 PR tree-optimization/63593
21921 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
21922 stmts and releasing SSA names until...
21923 (execute_pred_commoning): ... after processing all chains.
21925 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
21928 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
21929 external functions.
21931 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
21933 * doc/bugreport.texi: Adjust section titles throughout the file
21934 to use "Title Case".
21935 * doc/extend.texi: Likewise.
21936 * doc/gcov.texi: Likewise.
21937 * doc/implement-c.texi: Likewise.
21938 * doc/implement-cxx.texi: Likewise.
21939 * doc/invoke.texi: Likewise.
21940 * doc/objc.texi: Likewise.
21941 * doc/standards.texi: Likewise.
21942 * doc/trouble.texi: Likewise.
21944 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
21946 * cgraph.h (symtab_node::has_aliases_p): Simplify.
21947 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
21948 * tree.c (lookup_binfo_at_offset): Make static.
21949 (get_binfo_at_offset): Do not shadow offset; add explanatory
21952 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
21954 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
21955 for all floading point loads and stores except those using a register
21957 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
21960 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
21962 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
21963 (do_estimate_growth_1): Record if any uninlinable edge was seen.
21964 (estimate_growth): Handle uninlinable edges correctly.
21965 (check_callers): New.
21966 (growth_likely_positive): Handle aliases correctly.
21968 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
21970 * ipa-chkp.c: Use iterate_direct_aliases.
21971 * symtab.c (resolution_used_from_other_file_p): Move inline.
21972 (symtab_node::create_reference): Fix formating.
21973 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
21974 (symtab_node::iterate_reference): Move inline.
21975 (symtab_node::iterate_referring): Move inline.
21976 (symtab_node::iterate_direct_aliases): Move inline.
21977 (symtab_node::used_from_object_file_p_worker): Inline into ...
21978 (symtab_node::used_from_object_file_p): ... this one; move inline.
21979 (symtab_node::call_for_symbol_and_aliases): Move inline;
21980 use iterate_direct_aliases.
21981 (symtab_node::call_for_symbol_and_aliases_1): New method.
21982 (cgraph_node::call_for_symbol_and_aliases): Move inline;
21983 use iterate_direct_aliases.
21984 (cgraph_node::call_for_symbol_and_aliases_1): New method.
21985 (varpool_node::call_for_node_and_aliases): Rename to ...
21986 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
21987 use iterate_direct_aliases.
21988 (varpool_node::call_for_symbol_and_aliases_1): New method.
21989 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
21990 (ipa_discover_readonly_nonaddressable_var): Update.
21991 * ipa-devirt.c: Fix formating.
21992 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
21994 (cgraph_node::call_for_symbol_and_aliases): Move inline.
21995 (cgraph_node::call_for_symbol_and_aliases_1): New function..
21996 * cgraph.h (used_from_object_file_p_worker): Remove.
21997 (resolution_used_from_other_file_p): Move inline.
21998 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
21999 (symtab_node::iterate_reference): Move inline.
22000 (symtab_node::iterate_referring): Move inline.
22001 (symtab_node::iterate_direct_aliases): Move inline.
22002 (symtab_node::used_from_object_file_p_worker): Inline into ...
22003 (symtab_node::used_from_object_file_p): Move inline.
22004 * tree-emutls.c (ipa_lower_emutls): Update.
22005 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22006 (varpool_node::call_for_node_and_aliases): Remove.
22008 2015-02-14 Jakub Jelinek <jakub@redhat.com>
22010 PR tree-optimization/62209
22011 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22012 op == range->exp, insert seq and gimplified code after labels
22013 instead of after the phi.
22015 2015-02-13 Jeff Law <law@redhat.com>
22018 Revert my change for tree-optimization/64823.
22020 2015-02-13 Jakub Jelinek <jakub@redhat.com>
22022 PR tree-optimization/65053
22023 * tree-ssa-phiopt.c (value_replacement): When moving assign before
22024 cond, either reset VR on lhs or set it to phi result VR.
22026 2015-02-13 Jeff Law <law@redhat.com>
22028 PR tree-optimization/64823
22029 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22030 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22031 threading through blocks with PHIs, but no statements.
22032 (thread_through_normal_block): Distinguish between blocks where
22033 we did not process all the statements and blocks with no statements.
22035 PR rtl-optimization/47477
22036 * match.pd (convert (plus/minus (convert @0) (convert @1): New
22037 simplifier to narrow arithmetic.
22039 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
22042 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22043 polymorphic call info when type is not known to be preserved.
22045 2015-02-13 Maritn Jambor <mjambor@suse.cz>
22048 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22049 (inline_call): Use it.
22051 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
22053 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22054 GOMP_DEVICE_NVIDIA_PTX.
22056 2015-02-13 Jakub Jelinek <jakub@redhat.com>
22059 * stmt.c (emit_case_nodes): Use void_type_node instead of
22060 NULL_TREE as LABEL_DECL type.
22062 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
22064 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22066 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22067 symbolic references to data to be forced to constant memory on the
22070 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
22072 PR tree-optimization/65002
22073 * tree-cfg.c (pass_data_fixup_cfg): Don't update
22075 * tree-sra.c (some_callers_have_no_vuse_p): New.
22076 (ipa_early_sra): Reject functions whose callers
22077 assume function is read only.
22079 2015-02-13 Richard Biener <rguenther@suse.de>
22082 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22083 for LTO produced CUs.
22085 2015-02-13 Bin Cheng <bin.cheng@arm.com>
22087 PR tree-optimization/64705
22088 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22089 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22090 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22091 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22092 expand_simple_operations.
22094 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
22095 Richard Henderson <rth@redhat.com>
22098 * cgraphunit.c (cgraph_node::finalize_function): Set definition
22099 before notice_global_symbol.
22100 (varpool_node::finalize_decl): Likewise.
22101 * varasm.c (default_binds_local_p_2): Rename from
22102 default_binds_local_p_1, add weak_dominate argument. Use direct
22103 returns instead of assigning to local variable. Unify varpool and
22104 cgraph paths via symtab_node. Reject undef weak variables before
22105 testing visibility. Reorder tests for simplicity.
22106 (default_binds_local_p): Use default_binds_local_p_2.
22107 (default_binds_local_p_1): Likewise.
22108 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22110 (default_elf_asm_output_external): Emit visibility when specified.
22112 2015-02-13 Alan Modra <amodra@gmail.com>
22114 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22115 code setting up r11 for out-of-line fp restore.
22117 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
22119 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22120 (muser-mode): Likewise.
22122 2015-02-13 Alan Modra <amodra@gmail.com>
22124 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22125 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22127 2015-02-12 David Howells <dhowells@redhat.com>
22129 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22131 * tree-ssa-uninit.c (dump_predicates): Likewise.
22132 * opts.c (print_filtered_help): Likewise.
22134 2015-02-12 Jakub Jelinek <jakub@redhat.com>
22136 * dwarf2out.c (output_die): Use "%s", name instead of name to
22137 avoid -Wformat-security warning.
22139 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22140 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22141 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22142 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22144 2015-02-12 Jason Merrill <jason@redhat.com>
22146 * common.opt (-flifetime-dse): New.
22148 2015-02-12 Jakub Jelinek <jakub@redhat.com>
22151 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22153 PR tree-optimization/65014
22154 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22155 use original second operand of arg0 or arg1 instead of
22156 that adjusted by STRIP_NOPS.
22158 2015-02-11 Jeff Law <law@redhat.com>
22161 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22162 that needs to be queued, just queue it for a single cycle.
22164 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
22166 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22167 bodies of thunks; comment on why.
22168 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22169 symbols are extern.
22171 2015-02-11 Richard Henderson <rth@redhat.com>
22174 * tree-eh.c (mark_reachable_handlers): Mark source and destination
22175 regions of __builtin_eh_copy_values.
22177 2015-02-11 Jakub Jelinek <jakub@redhat.com>
22179 PR middle-end/65003
22180 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22181 ultimate alias is MEM with SYMBOL_REF satisfying
22182 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
22183 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22185 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
22187 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22188 "diagnostic-core.h".
22189 (main): Initialize progname, and call diagnostic_initialize.
22191 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22192 instead of __OPENMP_TARGET__.
22194 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22195 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22196 hard-coding PTX_ID.
22198 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
22200 * doc/sourcebuild.texi (pie_enabled): Document.
22202 2015-02-11 Martin Liska <mliska@suse.cz>
22205 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22206 a return value for call to a function that is noreturn.
22208 2015-02-11 Richard Biener <rguenther@suse.de>
22211 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22214 2015-02-11 Andrew Pinski <apinski@cavium.com>
22217 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22218 Change the first argument type to size_type_node and add another
22220 (aarch64_simd_expand_builtin): Handle the new argument to
22221 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22222 print an out when the first two arguments are not
22223 nonzero integer constants.
22224 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22225 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22227 2015-02-11 Jakub Jelinek <jakub@redhat.com>
22230 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22231 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22232 (ix86_set_current_function): Rewritten.
22233 (ix86_add_new_builtins): Temporarily clear current_target_pragma
22234 when creating builtin fndecls.
22236 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22239 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22241 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22242 have no comdat group.
22243 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22244 (lto_output_varpool_node): Always output alias info.
22245 (output_refs): Output refs of boundary aliases, too.
22246 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22247 (output_symtab): Output call eges in thunks in boundary.
22248 (get_alias_symbol): Remove.
22249 (input_node, input_varpool_node): Do not special case weakrefs.
22250 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22251 alias and thunks targets in the boundary; do not take removed symbols
22252 from their comdat groups.
22253 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22254 (cgraph_node::global_info): Remove.
22255 (cgraph_node::rtl_info): Look through aliases and thunks.
22256 * cgrpah.h (global_info): Remove.
22257 (non_local_p): Remove.
22259 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22260 Sandra Loosemore <sandra@codesourcery.com>
22262 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22263 to inline asm. List dialects in proper order.
22265 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22266 Sandra Loosemore <sandra@codesourcery.com>
22268 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22270 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
22272 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22273 modified) reference to Solaris.
22275 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
22277 * doc/extend.texi (Extended Asm): Fix typos.
22279 2015-02-10 Jakub Jelinek <jakub@redhat.com>
22282 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22284 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
22287 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22288 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22289 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22290 * config/sh/constraints.md (Ara, Add): New constraints.
22291 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22293 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22294 atomic_mem_operand_0. Don't use force_reg on the memory address.
22295 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22296 Sra constraint. Convert to insn_and_split. Add workaround for
22298 (atomic_compare_and_swap<mode>_hard): Copy to
22299 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
22300 Use atomic_mem_operand_0 predicate.
22301 (atomic_compare_and_swap<mode>_soft_gusa,
22302 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22303 AraAdd constraints.
22304 (atomic_compare_and_swap<mode>_soft_tcb,
22305 atomic_compare_and_swap<mode>_soft_imask,
22306 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22307 atomic_mem_operand_0 predicate and SraSdd constraints.
22308 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22310 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22311 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
22312 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22313 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
22314 force_reg on the memory address.
22315 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22316 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22317 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22318 atomic_mem_operand_1 predicate and Sra constraint.
22319 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22320 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
22321 Use atomic_mem_operand_1 predicate.
22322 (atomic_<fetchop_name><mode>_hard): Copy to
22323 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
22324 Use atomic_mem_operand_1 predicate.
22325 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22326 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
22327 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
22328 insn_and_split. Use atomic_mem_operand_1 predicate.
22329 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22330 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
22331 Use atomic_mem_operand_1 predicate.
22332 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22333 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
22334 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22335 in generated insn with original mem operand before emitting the insn.
22336 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22337 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22338 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22339 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22340 Use atomic_mem_operand_1 predicate and AraAdd constraints.
22341 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22342 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22343 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22344 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22345 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22346 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22347 atomic_not_fetch<mode>_soft_tcb,
22348 atomic_<fetchop_name>_fetch<mode>_soft_imask,
22349 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22350 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22351 Use atomic_mem_operand_1 predicate and SraSdd constraints.
22353 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
22355 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22356 and 3 earlyclobber operands.
22358 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22360 * common.opt (fstack-reuse): Mark as optimization.
22362 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
22365 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22367 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
22369 PR tree-optimization/64326
22370 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22372 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
22374 PR gcov-profile/61889
22375 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22377 2015-02-10 Richard Biener <rguenther@suse.de>
22379 PR tree-optimization/64995
22380 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22381 value we use is final.
22382 (visit_reference_op_store): Always valueize op.
22383 (visit_use): Properly valueize vuses.
22385 2015-02-10 Richard Biener <rguenther@suse.de>
22387 PR tree-optimization/64909
22388 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22389 pass a scalar-stmt count estimate to the cost model.
22390 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22392 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
22394 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22395 enabled by default together with var-tracking.
22397 2015-02-10 Nick Clifton <nickc@redhat.com>
22399 * config/rl78/rl78.c: Remove DIV attribute code accidentally
22400 included in previous rl78 commit.
22402 2015-02-10 Richard Biener <rguenther@suse.de>
22404 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22405 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22406 return the bitpack.
22408 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
22410 PR gcov-profile/61889
22411 * config.in: regenerate.
22412 * configure.in: Likewise.
22413 * configure.ac: Check for ftw.h.
22414 * gcov-tool.c: Check for ftw.h before using nftw.
22416 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
22419 * ipa-visibility.c (update_visibility_by_resolution_info): Only
22420 assert when not in lto mode.
22422 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22424 * ira-color.c (setup_left_conflict_sizes_p): Simplify
22425 initialization/assignment of conflict_size.
22427 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
22430 * ipa-cp.c (gather_caller_stats): Skip thunks.
22431 (propagate_constants_topo): Skip aliases.
22433 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
22436 * config/sh/sh.c (sh_option_override): Don't change
22437 -freorder-blocks-and-partition to -freorder-blocks even when
22438 unwinding is enabled.
22439 (sh_can_follow_jump): Return false if the followee jump is
22440 a crossing jump when -freorder-blocks-and-partition is specified.
22441 * config/sh/sh.md (*jump_compact_crossing): New insn.
22443 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
22444 Kaz Kojima <kkojima@gcc.gnu.org>
22447 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22448 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22449 (sh_can_redirect_branch): Rename to ...
22450 (sh_can_follow_jump): ... this. Constify argument types.
22451 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22452 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22453 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22454 * doc/tm.texi: Regenerate.
22456 2015-02-09 Jakub Jelinek <jakub@redhat.com>
22459 * builtins.c (expand_builtin): Call targetm.expand_builtin
22460 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22462 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22465 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22467 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22470 * ipa-icf.c (set_local): New function.
22471 (sem_function::merge): Use it.
22473 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22475 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22476 (add_type_duplicate): Fix comparison of BINFOs.
22478 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22480 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22481 on getting VOID pointer.
22483 2015-02-09 Jakub Jelinek <jakub@redhat.com>
22486 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22489 2015-02-09 Richard Biener <rguenther@suse.de>
22491 * genmatch.c (replace_id): Copy expr_type.
22493 2015-02-09 Richard Biener <rguenther@suse.de>
22495 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22496 (streamer_write_tree_bitfields): Declare.
22497 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22498 properly unpack padding.
22499 (unpack_value_fields): Inline ...
22500 (streamer_read_tree_bitfields): ... here.
22501 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22502 and properly add padding bits.
22503 (streamer_pack_tree_bitfields): Fold into ...
22504 (streamer_write_tree_bitfields): ... this new function,
22505 exposing the bitpack object.
22506 * lto-streamer-out.c (lto_write_tree_1): Call
22507 streamer_write_tree_bitfields.
22509 2015-02-09 Richard Biener <rguenther@suse.de>
22511 PR tree-optimization/54000
22512 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22513 (struct ivopts_data): Add loop_loc member.
22514 (tree_ssa_iv_optimize_loop): Dump loop location.
22515 (create_new_ivs): Likewise, also dump number of IVs generated.
22517 2015-02-09 Martin Liska <mliska@suse.cz>
22519 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
22520 just if not yet registered.
22521 (ipa_icf_generate_summary): Register callgraph hooks.
22523 2015-02-08 Andrew Pinski <apinski@cavium.com>
22525 * config/aarch64/aarch64.c (gty_dummy): Delete.
22527 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22530 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
22531 (cgraph_node::local_p): Remove thunk related FIXME.
22533 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22536 * i386.c (ix86_function_regparm): Look through aliases to see if callee
22537 is local and optimized.
22538 (ix86_function_sseregparm): Likewise; also use target's SSE math
22539 settings; error out instead of silently generating wrong code
22541 (init_cumulative_args): Look through aliases.
22543 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22546 * ipa-split.c (execute_split_functions): Split if function has aliases.
22548 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
22551 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
22552 aliases before trying to expand it.
22553 (cgraph_node::expand_thunk): Fix formating.
22555 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
22557 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
22558 (Using Assembly Language with C): Expand introduction.
22559 (Basic Asm): Copy-edit. Add more information about uses of
22561 (Extended Asm): Copy-edit. Document new escape syntax and
22563 (Global Reg Vars): Copy-edit.
22564 (Local Reg Vars): Likewise.
22566 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
22570 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
22571 (DBX_CONTIN_CHAR): Define.
22573 2015-02-06 Sebastian Pop <s.pop@samsung.com>
22574 Brian Rzycki <b.rzycki@samsung.com>
22576 PR tree-optimization/64878
22577 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
22578 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
22579 Stop recursion at loop phi nodes after having visited a loop phi node.
22581 2015-02-06 Jakub Jelinek <jakub@redhat.com>
22583 * toplev.c (process_options): Change flag_ipa_ra before creating
22584 optimization_{default,current}_node.
22587 * cgraphunit.c (cgraph_node::expand_thunk): If
22588 restype is not is_gimple_reg_type nor the thunk_fndecl
22589 returns aggregate_value_p, set restmp to a temporary variable
22590 instead of resdecl.
22592 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
22594 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
22596 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22599 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
22600 add a general secondary reload handler for SDmode, unless we have
22601 both read/write support for SDmode.
22603 2015-02-06 Jakub Jelinek <jakub@redhat.com>
22605 PR middle-end/64937
22606 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
22607 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
22608 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
22609 1 before, push it to abstract_vec.
22610 (dwarf2out_abstract_function): Adjust caller. Don't call
22611 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
22612 DECL_ABSTRACT_P flags for all abstract_vec elts.
22614 2015-02-06 Renlin Li <renlin.li@arm.com>
22616 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
22618 * tree-ssa.c (execute_update_addresses_taken): Likewise.
22620 2015-02-06 Jeff Law <law@redhat.com>
22623 * config/h8300/h8300.c (push): New argument "in_prologue".
22624 Pass "in_prologue" along to "F".
22625 (h8300_push_pop): Corresponding changes.
22626 (h8300_expand_prologue): Likewise.
22627 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
22629 2015-02-06 Jakub Jelinek <jakub@redhat.com>
22631 PR rtl-optimization/64957
22633 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
22634 IOR rather than for AND.
22636 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
22639 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
22640 of shift-add and (add + shift) operations. Rename local variable.
22642 2015-02-05 Jeff Law <law@redhat.com>
22645 * config/h8300/constraints.md (U): Correctly dectect
22646 "eightbit_data" memory addresses.
22647 * config/h8300/h8300.c (eightbit_constant_address_p): Also
22648 handle (const (plus (symbol_ref (x)))) where x is declared
22649 as an 8-bit data memory address.
22650 * config/h8300/h8300.md (call, call_value): Correctly detect
22651 "funcvec" functions.
22654 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
22655 24 to 28 bits for the H8/300.
22657 2015-02-06 Alan Modra <amodra@gmail.com>
22660 * config/rs6000/rs6000.c (chain_already_loaded): New function.
22661 (rs6000_call_aix): Use it.
22663 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
22665 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
22668 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
22670 * config/h8300/constraints.md ("U" constraint): Use strict
22671 variant of REG_OK_FOR_BASE_P after reload has started.
22673 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
22675 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
22676 define to zero if !TARGET_NEON.
22677 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
22679 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22680 Trevor Saunders <tsaunders@mozilla.com>
22683 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
22685 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22688 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
22689 when removing varpool nodes.
22691 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22694 * varpool.c (varpool_node::remove): Fix order of variables.
22696 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22699 * ipa-inline.c (inline_small_functions): Fix ordering issue between
22700 speculation resolution and key updates.
22702 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22704 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
22705 about not letting any speculative edges unupdated.
22707 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22710 * gcov-io.c (gcov_var): Export.
22712 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22714 PR middle-end/64922
22715 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
22716 edges that become speculative.
22718 2015-02-04 Jakub Jelinek <jakub@redhat.com>
22720 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
22721 or DW_LANG_Fortran08.
22722 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
22724 (gen_compile_unit_die): Handle "GNU Fortran2003" and
22725 "GNU Fortran2008" language strings.
22726 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
22727 * langhooks.h (lang_GNU_Fortran): New prototype.
22728 * langhooks.c (lang_GNU_Fortran): New function.
22729 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
22732 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
22734 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
22735 (RTX_OK_FOR_OLO10_P): Likewise.
22737 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
22739 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
22741 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
22743 PR middle-end/64922
22744 * gimple.c: Include gimple-ssa.h.
22745 (maybe_remove_unused_call_args): New function.
22746 * gimple.h (maybe_remove_unused_call_args): Declare.
22747 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22748 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
22749 * gimple-fold.c (gimple_fold_call): Likewise.
22751 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
22753 PR rtl-optimization/64905
22754 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
22755 pointer alignment if it isn't needed.
22757 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
22759 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
22760 cortex-a72.cortex-a53.
22761 * config/aarch64/aarch64-tune.md: Regenerate.
22762 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
22764 2015-02-04 Nick Clifton <nickc@redhat.com>
22766 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
22769 2015-02-04 Jakub Jelinek <jakub@redhat.com>
22771 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
22772 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
22773 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
22775 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
22776 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
22777 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
22778 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
22779 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
22780 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
22781 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
22782 * tree-core.h (enum built_in_function): In between
22783 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
22784 for builtins that use DEF_BUILTIN_CHKP macro.
22786 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
22789 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
22790 operands for tcc_comparison exprs. Fix typos.
22793 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
22794 of two XORs that have an intervening AND or IOR.
22797 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
22798 simplification of XOR of AND to not allocate new rtx before
22799 committing to a simplification.
22801 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22803 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
22804 manual swaps in all peepholes.
22806 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22808 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
22809 of manual swapping implementation.
22810 (aarch64_expand_vec_perm_const_1): Likewise.
22812 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
22814 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
22815 (generic_addrcost_table): Remove NAMED_PARAM.
22816 (cortexa57_addrcost_table): Likewise.
22817 (xgene1_addrcost_table): Likewise.
22818 (generic_regmove_table): Likewise.
22819 (cortexa53_regmove_table): Likewise.
22820 (xgene1_regmove_table): Likewise.
22821 (generic_vector_table): Likewise.
22822 (cortexa57_vector_table): Likewise.
22823 (xgene1_vector_table): Likewise.
22824 (generic_tunings): Likewise.
22825 (cortexa53_tunings): Likewise.
22826 (cortexa57_tunings): Likewise.
22827 (xgene1_tunings): Likewise.
22829 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
22831 * config/arm/arm-cores.def: Add cortex-a72 and
22832 cortex-a72.cortex-a53.
22833 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
22834 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
22835 * config/arm/arm-tune.md: Regenerate.
22836 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
22837 "cortex-a72.cortex-a53".
22838 * doc/invoke.texi (ARM Options/-mtune): Likewise.
22840 2015-02-04 Nick Clifton <nickc@redhat.com>
22843 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
22845 (nonimmediate_di_operand): Likewise.
22847 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
22848 prefixes of known F5 using MSP430 MCUs.
22850 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22852 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
22853 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
22854 instead of __builtin_sqrt.
22856 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
22858 * varasm.c (do_assemble_alias): Follow transparent alias
22860 (default_assemble_visibility): Follow transparent alias
22861 chain for decl name.
22863 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22865 PR middle-end/62103
22866 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
22867 to compute size of referenced value in the constant case.
22869 2015-02-03 Jakub Jelinek <jakub@redhat.com>
22871 PR rtl-optimization/64756
22872 * cse.c (invalidate_dest): New function.
22873 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
22874 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
22875 invalidate and do not record it.
22877 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
22880 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
22881 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
22882 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
22883 atomic_nand<mode>_soft_tcb): New insns.
22884 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
22885 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
22886 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
22887 Split into atomic_not_fetchsi_hard if operands[0] is unused.
22888 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
22889 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
22890 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
22891 atomic_not<mode>_hard if operands[0] is unused.
22892 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
22893 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
22894 if operands[0] is unused.
22895 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
22896 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
22897 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
22898 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
22900 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
22901 into atomic_not<mode>_soft_tcb if operands[0] is unused.
22902 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
22903 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
22904 if operands[0] is unused.
22905 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
22906 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
22907 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
22908 atomic_nand_fetchsi_hard if operands[0] is unused.
22909 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
22910 atomic_nand<mode>_hard if operands[0] is unused.
22911 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
22912 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
22913 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
22914 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
22915 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
22916 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
22917 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
22918 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
22919 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
22920 atomic_not<mode>_hard if operands[0] is unused.
22921 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
22922 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
22924 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
22925 into atomic_not<mode>_soft_tcb if operands[0] is unused.
22926 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
22927 atomic_nand<mode>_hard if operands[0] is unused.
22928 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
22929 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
22931 2015-02-03 David Malcolm <dmalcolm@redhat.com>
22934 * Makefile.in (GCC_OBJS): Add gcc-main.o.
22935 * gcc-main.c: New file, containing "main" taken from gcc.c.
22936 * gcc.c (do_self_spec): Free decoded_options.
22937 (class driver): Move declaration to gcc.h.
22938 (main): Move declaration and implementation to new file
22940 (driver_get_configure_time_options): New function.
22941 * gcc.h (class driver): Move this declaration here, from
22943 (driver_get_configure_time_options): New declaration.
22945 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
22947 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
22948 cross-module inlining.
22949 * cgraph.h (cgraph_node): Add flag merged.
22950 * ipa-icf.c (sem_function::merge): Maintain it.
22952 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
22954 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
22955 instead of OBJECT_P.
22957 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
22960 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
22961 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
22962 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
22963 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
22965 2015-02-03 Jakub Jelinek <jakub@redhat.com>
22968 * combine.c (reg_n_sets_max): New variable.
22969 (can_change_dest_mode, reg_nonzero_bits_for_combine,
22970 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
22971 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
22972 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
22973 (rest_of_handle_combine): Initialize reg_n_sets_max.
22975 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
22977 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
22978 if some always_inline was inlined, apply changes before inlining
22981 2015-02-02 David Malcolm <dmalcolm@redhat.com>
22984 * config/arm/arm.c (arm_option_override): Set
22985 arm_selected_arch/cpu/tune to NULL on entry.
22987 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
22988 Andrew Pinski <pinskia@gcc.gnu.org>
22989 Jakub Jelinek <jakub@gcc.gnu.org>
22992 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
22993 integer typing for small model. Use IN_RANGE.
22995 2015-02-02 Richard Biener <rguenther@suse.de>
22997 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
22998 * tree-vrp.c (vrp_valueize_1): Likewise.
23000 2015-02-02 Alan Modra <amodra@gmail.com>
23002 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23003 than mem for toc_restore.
23004 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23005 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23006 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23008 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
23011 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23012 explicit default options.
23014 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
23017 * ipa-utils.c (ipa_merge_profiles): Add release argument.
23018 * ipa-icf.c (sem_function::merge): Do not release body when merging.
23019 * ipa-utils.h (ipa_merge_profiles): Update prototype.
23021 2015-02-01 Jakub Jelinek <jakub@redhat.com>
23024 * cfgexpand.c (deep_ter_debug_map): New variable.
23025 (avoid_deep_ter_for_debug): New function.
23026 (expand_debug_expr): If TERed SSA_NAME is in
23027 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23028 instead of trying to expand SSA_NAME's def stmt.
23029 (expand_debug_locations): When expanding debug bind
23030 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23031 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23033 (pass_expand::execute): Call avoid_deep_ter_for_debug on
23034 all debug bind stmts. Delete deep_ter_debug_map after
23035 expand_debug_location if non-NULL and clear it.
23037 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
23040 * config/sh/sync.md (atomic_fetch_notsi_hard,
23041 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23042 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23043 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23044 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23045 atomic_not_fetch<mode>_soft_imask): New insns.
23047 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23049 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23050 (rank_for_schedule_debug): Split from ...
23051 (rank_for_schedule): ... this.
23052 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23053 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23055 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
23057 * doc/md.texi (Machine Constraints): Alphabetize table by target.
23058 * doc/extend.texi (x86 Variable Attributes): Move section to
23059 correct alphabetization after renaming.
23060 (x86 Type Attributes): Likewise.
23061 (Target Builtins): Re-alphabetize menu.
23062 (x86 Built-in Functions): Move section to correct alphabetization
23064 (x86 transactional memory intrinsics): Likewise.
23065 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23066 and x86 Windows Options in table and menu.
23067 (x86 Options): Move section to correct alphabetization after
23069 (x86 Windows Options): Likewise.
23071 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
23073 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23074 preferred names of the architecture and its 32- and 64-bit
23076 * doc/invoke.texi: Likewise.
23077 * doc/md.texi: Likewise.
23079 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
23082 * config/i386/predicates.md (address_no_seg_operand): Reject
23083 non-CONST_INT_P operands in invalid mode.
23085 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
23087 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23088 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
23089 * config/i386/predicates.md (address_no_seg_operand): Call
23090 address_operand with VOIDmode.
23091 (vsib_address_operand): Ditto.
23092 (address_mpx_no_base_operand): Ditto.
23093 (address_mpx_no_index_operand): Ditto.
23095 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
23098 * lra-constraints.c (original_subreg_reg_mode): New.
23099 (simplify_operand_subreg): Try to simplify subreg of const. Use
23100 original_subreg_reg_mode for it.
23101 (swap_operands): Update original_subreg_reg_mode.
23102 (curr_insn_transform): Set up original_subreg_reg_mode.
23104 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
23107 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23109 (process_alt_operands): Use it.
23110 (curr_insn_transform): Check the optional reload pseudo class is
23113 2015-01-30 Joseph Myers <joseph@codesourcery.com>
23115 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23116 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23118 * toplev.h (init_asm_output): Update comment on use of
23119 UNKNOWN_LOCATION with fatal_error.
23120 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23121 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23122 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23123 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23124 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23125 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23126 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23127 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23128 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23129 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23130 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23131 fatal_error changed to pass input_location as first argument.
23133 2015-01-30 Martin Liska <mliska@suse.cz>
23135 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23136 in #pragma GCC diagnostic guards.
23138 2015-01-30 Richard Biener <rguenther@suse.de>
23140 PR tree-optimization/64829
23141 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23142 not add a widening conversion pattern but hand off extra
23143 widenings to callers.
23144 (vect_recog_widen_mult_pattern): Handle extra widening produced
23145 by vect_handle_widen_op_by_const.
23146 (vect_recog_widen_shift_pattern): Likewise.
23147 (vect_pattern_recog_1): Remove excess vertical space in dumping.
23148 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23149 (vect_init_vector_1): Likewise.
23150 (vect_get_vec_def_for_operand): Likewise.
23151 (vect_finish_stmt_generation): Likewise.
23152 (vectorizable_load): Likewise.
23153 (vect_analyze_stmt): Likewise.
23154 (vect_is_simple_use): Likewise.
23156 2015-01-29 Jeff Law <law@redhat.com>
23158 * combine.c (try_combine): Fix typo in comment.
23160 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
23163 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23164 (rs6000_stack_info): Add assert.
23165 (rs6000_output_savres_externs): New function, split off from...
23166 (rs6000_output_function_prologue): ... here. Do not call it for
23169 2015-01-29 Jeff Law <law@redhat.com>
23172 * combine.c (try_combine): If I0 is a memory load and I3 a store
23173 to a related address, increase the "goodness" of doing a 4-insn
23174 combination with I0-I3.
23175 (make_field_assignment): Handle SUBREGs in the ior+and case.
23177 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
23179 PR tree-optimization/64746
23180 * tree-if-conv.c (mask_exists): New function.
23181 (predicate_mem_writes): Save created mask with given size for further
23183 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23184 (ifcvt_repair_bool_pattern): Collect all statements that are root
23185 of bool pattern and use iterative algorithm to remove multiple uses
23186 of predicates, display number of required iterations.
23188 2015-01-29 Richard Biener <rguenther@suse.de>
23190 PR tree-optimization/64853
23191 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23192 stmt will get simulated again.
23193 * tree-ssa-ccp.c (valueize_op_1): Likewise.
23195 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23197 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23198 return_in_pc. Remove redundant assignments.
23199 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23200 (arm_expand_epilogue): Don't compare boolean with true in if condition.
23202 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
23204 * config/i386/i386.c (ix86_mode_after): Make static.
23206 2015-01-29 Richard Biener <rguenther@suse.de>
23208 PR tree-optimization/64844
23209 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23210 dump cost model analysis.
23211 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23212 Do not register adjusted load/store costs here.
23214 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
23215 Uros Bizjak <ubizjak@gmail.com>
23217 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23218 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23219 using x86_use_pseudo_pic_reg.
23220 * config/i386/i386.c (ix86_conditional_register_usage): Remove
23221 support for fixed PIC register.
23222 (ix86_use_pseudo_pic_reg): Not static any more.
23224 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
23226 PR middle-end/64805
23227 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23228 to avoid error in cgraph node verification.
23230 2015-01-29 Marek Polacek <polacek@redhat.com>
23232 * doc/standards.texi: Reflect that the default for C is gnu11.
23234 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
23237 * reorg.c (switch_text_sections_between_p): New function.
23238 (relax_delay_slots): Call it when testing if the jump insn
23239 is removable. Use targetm.can_follow_jump when testing if
23240 the conditional branch can follow an unconditional jump.
23242 2015-01-27 Caroline Tice <cmtice@google.com>
23244 Committing VTV Cywin/Ming patch for Patrick Wollgast
23245 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23246 if -fvtable-verify=preinit/std is used.
23247 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23248 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23249 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23250 if -fvtable-verify=preinit/std is used.
23251 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23252 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23253 if -fvtable-verify=preinit/std is used.
23254 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23255 * config/i386/mingw32.h (LIB_SPEC): Likewise.
23256 * varasm.c (assemble_variable): Add code to properly set the comdat
23257 section and name for the .vtable_map_vars section in case the
23258 target is PE or COFF.
23260 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
23263 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23264 make sane BB profile.
23265 (cgraph_node::expand_thunk): Make sane BB profile.
23266 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23267 * cgraph.h (init_lowered_empty_function): Update prototype.
23268 * config/i386/i386.c (make_resolver_func): Update call.
23269 * predict.c (gate): Disable branch prediction pass if
23270 profile is already there.
23272 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
23274 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23275 * opth-gen.awk: Likewise.
23276 * common.opt: Mark flag_fp_contract_mode as Optimization.
23278 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
23280 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23281 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23283 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
23286 * config/sh/predicates.md (atomic_arith_operand,
23287 atomic_logical_operand): Remove.
23288 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23289 (atomic_arith_operand_0): New predicate.
23290 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23291 Use atomic_arith_operand_0 for input values.
23292 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23293 atomic_compare_and_swap<mode>_soft_gusa,
23294 atomic_compare_and_swap<mode>_soft_tcb,
23295 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23296 arith_reg_operand instead of register_operand.
23297 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
23298 atomic_arith_operand_0 for newval input.
23299 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23300 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23301 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23302 arith_reg_operand instead of register_operand.
23303 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23304 fetchop_predicate_1, fetchop_constraint_1_llcs,
23305 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23306 fetchop_constraint_1_imask): New code iterator attributes.
23307 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23308 register_operand. Use fetchop_predicate_1.
23309 (atomic_fetch_<fetchop_name>si_hard,
23310 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23311 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23312 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23313 and arith_reg_operand instead of register_operand. Use
23314 fetchop_predicate_1, fetchop_constraint_1_gusa.
23315 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23316 and arith_reg_operand instead of register_operand. Use
23317 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
23319 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23320 and arith_reg_operand instead of register_operand. Use
23321 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
23323 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23324 register_operand. Use atomic_logical_operand_1.
23325 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23326 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23327 arith_reg_operand instead of register_operand.
23328 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23329 Use arith_reg_dest and arith_reg_operand instead of register_operand.
23330 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
23331 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23332 register_operand. Use fetchop_predicate_1.
23333 (atomic_<fetchop_name>_fetchsi_hard,
23334 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23335 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23336 fetchop_constraint_1_llcs.
23337 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23338 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23339 fetchop_constraint_1_gusa.
23340 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23341 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23342 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
23343 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23344 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
23345 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
23346 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23347 register_operand. Use atomic_logical_operand_1.
23348 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23349 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23350 arith_reg_operand instead of register_operand.
23351 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23352 arith_reg_operand instead of register_operand. Use logical_operand
23353 and K08. Adjust asm sequence to allow R0 usage.
23354 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23355 arith_reg_operand instead of register_operand. Use logical_operand
23358 2015-01-28 Jakub Jelinek <jakub@redhat.com>
23361 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23362 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23363 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23364 only get_full_len HOST_WIDE_INTs from get_val () array rather than
23365 all bits in *val_wide.
23367 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
23369 * varpool.c (tls_model_names): Fix names.
23370 (varpool_node::dump): Dump tls- prefix for tls models.
23372 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
23373 Bernd Schmidt <bernds@codesourcery.com>
23374 Nathan Sidwell <nathan@codesourcery.com>
23376 * config/nvptx/mkoffload.c: New file.
23377 * config/nvptx/t-nvptx: Add build rules for it.
23378 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23379 (extra_programs): Add mkoffload.
23380 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23382 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23384 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
23386 PR middle-end/64809
23387 * cfgexpand.c (reorder_operands): Skip debug gimples.
23389 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
23391 PR tree-optimization/64277
23392 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23393 range info when possible to refine estimation.
23395 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23397 PR tree-optimization/64718
23398 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23399 be a 16bit unsigned integer when n->range is 16.
23400 (bswap_replace): Convert src to that type if necessary for all bswap
23401 sizes. Fix rotation right notation in nearby comment. Use bswap_type
23402 set in pass_optimize_bswap::execute ().
23404 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
23406 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23407 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23408 integer and floating point variants.
23409 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23411 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
23413 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23414 for all vector modes.
23416 2015-01-28 Jakub Jelinek <jakub@redhat.com>
23419 * doc/sourcebuild.texi (comdat_group): Document.
23421 2015-01-28 Terry Guo <terry.guo@arm.com>
23423 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23425 2015-01-27 David Malcolm <dmalcolm@redhat.com>
23427 * toplev.c (print_version): Add param "show_global_state", and
23428 only print GGC and plugin information if it is true.
23429 (init_asm_output): Pass in "true" for the new param when calling
23431 (process_options): Likewise.
23432 (toplev::main): Likewise.
23433 * toplev.h (print_version): Add new param to decl.
23435 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
23439 * tree.c (lookup_binfo_at_offset): New function.
23440 (get_binfo_at_offset): Use it.
23442 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
23445 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23446 on vtable being vtable.
23448 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
23450 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23451 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23452 -mhotpatch= option.
23453 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23454 -mno-hotpatch options. Change syntax of -mhotpatch= option.
23455 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23457 (s390_hotpatch_trampoline_halfwords_max): Renamed.
23458 (s390_hotpatch_hw_max): New name.
23459 (s390_hotpatch_trampoline_halfwords): Renamed.
23460 (s390_hotpatch_hw_before_label): New name.
23461 (get_hotpatch_attribute): Removed.
23462 (s390_hotpatch_hw_after_label): New name.
23463 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23465 (s390_attribute_table): Ditto.
23466 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23467 (s390_function_num_hotpatch_hw): New name.
23468 Remove special handling of inline functions and hotpatching.
23469 Return number of nops before and after the function label.
23470 (s390_can_inline_p): Removed.
23471 (s390_asm_output_function_label): Emit a configurable number of nops
23472 after the function label.
23473 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23474 (TARGET_CAN_INLINE_P) Removed.
23475 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23477 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23478 Jiong Wang <jiong.wang@arm.com>
23480 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23482 (cb<optab><mode>1): Likewise.
23483 * config/aarch64/iterators.md (bcond): New define_code_attr.
23485 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23487 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23490 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23492 * config/s390/s390.c (s390_register_move_cost): Increase costs for
23495 2015-01-27 Richard Biener <rguenther@suse.de>
23497 * tree-vrp.c (update_value_range): Intersect the range with
23498 old recorded SSA name range information.
23500 2015-01-27 Nick Clifton <nickc@redhat.com>
23502 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23503 BC, DE and HL registers directly, not via AX.
23504 When decrementing the stack pointer by a large amount, transfer SP
23505 into AX and perform the subtraction there.
23506 (rl78_expand_epilogue): Perform the inverse of the above
23509 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23511 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23513 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23514 Yury Gribov <y.gribov@samsung.com>
23517 * ubsan.c (ubsan_source_location): Refactor code.
23518 (ubsan_type_descriptor): Update type size. Refactor code.
23520 2015-01-27 Richard Biener <rguenther@suse.de>
23522 PR tree-optimization/56273
23523 PR tree-optimization/59124
23524 PR tree-optimization/64277
23525 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
23526 from the first VRP pass.
23528 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23531 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
23532 handle the first argument in the same loop as all the other arguments.
23534 PR rtl-optimization/61058
23535 * jump.c (cleanup_barriers): Update basic block boundaries
23536 if BLOCK_FOR_INSN is non-NULL on PREV.
23538 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
23540 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
23541 bounds narrowing, already instrumented calls and calls to
23542 not instrumentable functions.
23544 2015-01-27 Jakub Jelinek <jakub@redhat.com>
23546 PR tree-optimization/64807
23547 * wide-int.cc (wi::divmod_internal): Clear
23548 b_dividend[dividend_blocks_needed].
23550 2015-01-26 DJ Delorie <dj@redhat.com>
23552 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
23553 volatile memory references.
23555 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
23558 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
23560 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
23561 shifts if it already fits into K08.
23563 2015-01-26 Jakub Jelinek <jakub@redhat.com>
23566 * ipa-inline.c (inline_small_functions): Print "unknown" even
23567 if edge->call_stmt is non-NULL, but has builtins or unknown
23570 PR middle-end/64421
23571 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
23572 with asterisk, skip the first character.
23574 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
23577 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
23580 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
23583 * config/i386/i386.md (*movdi_internal): Also check operand 0
23584 to determine TYPE_LEA operand.
23585 (*movsi_internal): Ditto.
23587 2015-01-26 Jakub Jelinek <jakub@redhat.com>
23589 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
23590 OPTION_MASK_QUAD_MEMORY_ATOMIC.
23592 2015-01-26 Renlin Li <renlin.li@arm.com>
23594 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
23596 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
23599 2015-01-26 Richard Biener <rguenther@suse.de>
23601 PR middle-end/64764
23602 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
23603 combining two BIT_AND_EXPR predicates.
23605 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
23608 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
23610 2015-01-26 Terry Guo <terry.guo@arm.com>
23612 * config/arm/arm.c (arm_file_start): Update the assignment of
23613 Tag_ABI_HardFP_use.
23615 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
23617 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
23619 config/arm/arm.md: Include the new Cortex-A57 model.
23620 (generic_sched): Don't use generic_sched when tuning for
23623 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
23624 Uros Bizjak <ubizjak@gmail.com>
23626 * config/i386/i386.c (get_builtin_code_for_version): Add
23627 support for BMI and BMI2 multiversion functions.
23629 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23631 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
23632 (extract_bit_field): Likewise.
23633 (extract_low_bits): Likewise.
23634 (expand_mult): Likewise.
23635 (expand_mult_highpart_adjust): Likewise.
23637 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
23639 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
23640 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
23641 * config/i386/i386.c (processor_model): Add
23642 M_INTEL_COREI7_BROADWELL.
23643 (arch_names_table): Add "broadwell".
23645 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
23654 * config/sh/sh-protos.h
23655 (sh_extending_set_of_reg::can_use_as_unextended_reg,
23656 sh_extending_set_of_reg::use_as_unextended_reg,
23657 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
23658 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
23659 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
23660 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
23661 (sh_treg_insns): New class.
23662 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
23663 (scope_counter): New class.
23664 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
23665 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
23666 sh_extending_set_of_reg::can_use_as_unextended_reg,
23667 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
23668 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
23669 sh_split_treg_set_expr): New functions.
23670 (addsubcosts): Handle treg_set_expr.
23671 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
23672 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
23673 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
23674 (sh_insn_operands_modified_between_p): Make non-static.
23675 * config/sh/predicates.md (zero_extend_movu_operand): Allow
23676 simple_mem_operand in addition to displacement_mem_operand.
23677 (zero_extend_operand): Don't allow zero_extend_movu_operand.
23678 (treg_set_expr, treg_set_expr_not_const01,
23679 arith_reg_or_treg_set_expr): New predicates.
23680 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
23681 arith_or_int_operand instead of logical_operand. Convert to
23682 insn_and_split. Try to optimize constant operand in splitter.
23683 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
23684 (*tstqi_t_zero): Delete.
23685 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
23686 (tstsi_t_and_not): Delete.
23687 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
23688 Convert to insn_and_split.
23689 (unnamed split, tstsi_t_zero_extract_xor,
23690 tstsi_t_zero_extract_subreg_xor_little,
23691 tstsi_t_zero_extract_subreg_xor_big): Delete.
23692 (*tstsi_t_shift_mask): New insn_and_split.
23693 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
23694 to recombine with surrounding insns when splitting.
23695 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
23696 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
23697 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
23698 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
23699 (*cbranch_div0s: Delete.
23700 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
23701 Try to recombine with surrounding insns when splitting. Add operand
23703 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
23704 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
23705 *addc_r_r_msb, *addc_2r_msb): Delete.
23706 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
23708 (*addc_negreg_t): New insn_and_split.
23709 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
23710 Try to recombine with surrounding insns when splitting.
23711 Add operand order variants.
23712 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
23713 insn_and_split patterns.
23714 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
23715 surrounding insns when splitting.
23716 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
23717 (*rotcl): Likewise. Add zero_extract variant.
23718 (*ashrsi2_31): New insn_and_split.
23719 (*negc): Convert to insn_and_split. Use treg_set_expr.
23720 (*zero_extend<mode>si2_disp_mem): Update comment.
23721 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
23723 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
23724 with surrounding insns when splitting.
23725 (any_treg_expr_to_reg): New insn_and_split.
23726 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
23727 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
23728 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
23729 *zero_extract_2): New single bit zero extract patterns.
23730 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
23731 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
23732 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
23733 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
23735 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
23736 register_operand for set source.
23738 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
23740 * i386.opt (prefetch_sse): New targetsave.
23741 * i386.c (ix86_function_specific_save): Save prefetch_sse.
23742 (ix86_function_specific_restore): Restore prefetch_sse and initialize
23743 ix86_cost/ix86_tune_cost.
23745 2015-01-23 David Malcolm <dmalcolm@redhat.com>
23747 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
23748 Support the JIT by using 0 as the language type.
23750 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
23753 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
23754 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
23755 (mark_regno_live, process_bb_lives): Pass new parameter value to
23756 make_hard_regno_born.
23758 2015-01-23 Jakub Jelinek <jakub@redhat.com>
23760 PR rtl-optimization/63637
23761 PR rtl-optimization/60663
23762 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
23763 if elt->cost is MAX_COST for ASM_OPERANDS.
23764 (find_sets_in_insn): Fix up comment typo.
23765 (cse_insn): Don't set src_volatile for all non-volatile
23766 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
23767 or with "memory" clobber. Set elt->cost to MAX_COST
23768 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
23769 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
23771 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
23773 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
23776 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
23778 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
23779 libgcc/config/i386/elf-lib.h.
23781 2015-01-23 Jakub Jelinek <jakub@redhat.com>
23784 * gcc.c (print_configuration): Don't print a blank line at the end
23786 (run_attempt): ... but here unstead.
23788 PR middle-end/64734
23789 * omp-low.c (scan_sharing_clauses): Don't ignore
23790 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
23791 on target data/update constructs.
23793 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
23796 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
23797 (DEBUG_RELOAD): Removed define.
23798 (m32c_limit_reload_class): Enable traces with if DEBUG0.
23799 (m32c_function_arg): Added a type cast.
23800 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
23801 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
23802 * config/m32c/bitops.md (andqi3_16): Likewise.
23803 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
23804 (push_a01_l): Likewise.
23806 2015-01-23 David Malcolm <dmalcolm@redhat.com>
23809 * main.c (main): Construct toplev instances with init_signals=true.
23810 * toplev.c (general_init): Add param "init_signals", and use it to
23811 conditionalize the calls to signal and host_hooks.extra_signals.
23812 (toplev::toplev): Add param "init_signals".
23813 (toplev::main): When invoking general_init, pass m_init_signals
23814 to control whether signal-handlers are installed.
23815 * toplev.h (toplev::toplev): Add param "init_signals".
23816 (toplev::m_init_signals): New field.
23818 2015-01-23 David Malcolm <dmalcolm@redhat.com>
23821 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
23822 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
23823 latter may be affected by the former (e.g. on i686).
23825 2015-01-23 Martin Liska <mliska@suse.cz>
23827 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
23828 false positive during profiledbootstrap.
23830 2015-01-23 Tom de Vries <tom@codesourcery.com>
23833 * lto-opts.c (lto_write_options): Output non-explicit conservative
23835 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
23836 (append_compiler_options): Pass -fopenacc through.
23838 2015-01-23 Tom de Vries <tom@codesourcery.com>
23841 * lto-opts.c (lto_write_options): Output non-explicit conservative
23843 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
23844 (append_compiler_options): Pass -fopenmp through.
23846 2015-01-23 Jakub Jelinek <jakub@redhat.com>
23849 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
23852 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
23853 * diagnostic.def (DK_ICE_NOBT): New kind.
23854 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
23855 like DK_ICE, but never print backtrace.
23856 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
23857 (internal_error_no_backtrace): New function.
23858 * gcc.c (execute): Use internal_error_no_backtrace instead of
23861 2015-01-22 Jeff Law <law@redhat.com>
23864 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
23865 improve code density for small immediate to memory case.
23866 (insv): Better handle bitfield assignments when the field is
23867 being set to all ones.
23868 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
23871 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23872 Jakub Jelinek <jakub@redhat.com>
23874 PR middle-end/64729
23875 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
23876 for !TARGET_LIBC_PROVIDES_SSP version and
23877 -fstack-protector-{all,strong,explicit} otherwise.
23878 * config/freebsd.h (LINK_SSP_SPEC): Handle
23879 -fstack-protector-{strong,explicit}.
23881 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
23882 H.J. Lu <hongjiu.lu@intel.com>
23885 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
23888 2015-01-22 Wei Mi <wmi@google.com>
23890 PR rtl-optimization/64557
23891 * dse.c (record_store): Call get_addr for mem_addr.
23892 (check_mem_read_rtx): Likewise.
23894 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
23896 * fold-const.c (const_binop): Add early return for non-tcc_binary.
23898 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
23900 * toplev.c (init_local_tick): Process the failure when read
23901 fails for random_seed.
23903 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
23904 'pretty_name' to avoid memory overflow.
23906 2015-01-22 Richard Biener <rguenther@suse.de>
23908 PR middle-end/64728
23909 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
23910 abnormal coalescing on undefined SSA names.
23912 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
23916 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
23918 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
23920 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
23922 PR middle-end/63325
23923 * fold-const.c (fold_checksum_tree): Don't include value of
23924 expr->decl_with_vis.symtab_node in the checksum.
23926 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23928 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
23930 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
23933 * gcc.c (insert_comments): New function.
23934 (try_generate_repro): Call it.
23935 (append_text): Removed.
23937 2015-01-22 Richard Biener <rguenther@suse.de>
23939 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
23940 with IL incompatible options. Properly honor user optimize
23943 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
23945 PR rtl-optimization/64682
23946 * combine.c (distribute_notes): When moving a death note for
23947 a register that is set in the new I2, make sure to put it
23948 before that new I2.
23950 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
23952 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
23953 not TARGET_DEFAULT.
23955 2015-01-21 Jakub Jelinek <jakub@redhat.com>
23958 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
23959 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
23960 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
23963 * doc/invoke.texi (-fsanitize=vptr): Document.
23965 PR rtl-optimization/62078
23966 * dse.c: Include cfgcleanup.h.
23967 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
23968 anything call purge_all_dead_edges and cleanup_cfg at the end
23971 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
23973 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
23976 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
23978 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
23981 2015-01-21 David Sherwood <david.sherwood@arm.com>
23982 Tejas Belagod <Tejas.Belagod@arm.com>
23984 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
23985 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
23986 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
23989 2015-01-21 David Sherwood <david.sherwood@arm.com>
23990 Tejas Belagod <Tejas.Belagod@arm.com>
23992 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
23993 (aarch64_reverse_mask): New decls.
23994 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
23995 (insn_count): New mode_attr.
23996 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
23997 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
23998 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
23999 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24000 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24001 (aarch64_simd_st4): New patterns.
24002 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24003 (aarch64_reverse_mask): New functions.
24005 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
24007 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24009 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24010 addressing modes for BE.
24011 (aarch64_print_operand): Add 'R' specifier.
24012 (aarch64_simd_disambiguate_copy): Delete.
24013 (aarch64_simd_emit_reg_reg_move): New function.
24014 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24015 in define_splits for structural moves.
24016 (mov<mode>): Use less restrictive predicates.
24017 (*aarch64_mov<mode>): Simplify and only allow for LE.
24018 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24020 2015-01-21 Alan Hayward <alan.hayward@arm.com>
24022 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24024 2015-01-21 Richard Henderson <rth@redhat.com>
24027 * ccmp.c (used_in_cond_stmt_p): Remove.
24028 (expand_ccmp_expr): Don't use it.
24030 2015-01-21 Nick Clifton <nickc@redhat.com>
24032 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24035 2015-01-21 Richard Biener <rguenther@suse.de>
24037 PR middle-end/64313
24038 * tree-core.h (builtin_info, builtin_info_type): Turn from
24039 an object with two arrays into an array of an object with
24040 decl and two flags, implicit_p and declared_p.
24041 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24042 set_builtin_decl, set_builtin_decl_implicit_p,
24043 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24044 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24045 * builtins.c (builtin_info): Adjust.
24046 * gimplify.c (gimplify_addr_expr): References to builtins
24047 that have been declared by the user makes them eligible for
24048 use by the compiler. Call set_builtin_decl_implicit_p on them.
24050 2015-01-20 Jeff Law <law@redhat.com>
24053 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24054 allow pc-relative addresses in operand predicates or constraints.
24056 2015-01-21 Bin Cheng <bin.cheng@arm.com>
24058 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24059 neon on aarch32 processors for stringops.
24061 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24064 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24066 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24069 * ipa-inline.c: Include lto-streamer.h
24070 (report_inline_failed_reason): Output source file differences and
24071 flags on optimization/target node mismatch.
24072 (can_inline_edge_p): Consider caller to be the outer inline function;
24073 be less restrictive about matching opimize and optimize_size attributes.
24074 (inline_account_function_p): Break out from ...
24075 (inline_small_functions): ... here.
24076 * ipa-inline-transform.c (clone_inlined_nodes): Use
24077 inline_account_function_p.
24078 (inline_call): Use optimize attribution; use inline_account_function_p.
24079 (inline_transform): Use opt_for_fn.
24080 * ipa-inline.h (inline_account_function_p): Declare.
24082 2015-01-20 Jakub Jelinek <jakub@redhat.com>
24085 * dwarf2out.c (decl_piece_node): Don't put bitsize into
24086 mode if bitsize <= 0.
24087 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24088 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24089 sizes and positions.
24091 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
24093 * config/nios2/nios2.c (nios2_asm_file_end): Implement
24094 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24096 (TARGET_ASM_FILE_END): Define.
24098 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24100 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24101 (struct tune_params): Use the enum.
24102 * arm.c (arm_*_tune): Update.
24103 (arm_option_override): Update.
24105 2015-01-20 Richard Biener <rguenther@suse.de>
24108 * ipa-reference.c (add_static_var): Inline ...
24109 (analyze_function): ... here after splitting out from ...
24110 (is_proper_for_analysis): ... this.
24112 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
24115 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24116 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24117 replace the conditional with it's true branch.
24118 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24119 (arm_lra_p): Remove.
24121 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
24123 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24125 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24127 * config/tilegx/mul-tables.c: Move symtab.h include after
24128 coretypes.h include.
24129 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24130 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24131 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24132 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24133 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24135 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
24139 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
24141 PR rtl-optimization/64081
24142 * loop-iv.c (def_pred_latch_p): New function.
24143 (latch_dominating_def): Allow specific cases with non-single
24145 (iv_get_reaching_def): Likewise.
24146 (check_complex_exit_p): New function.
24147 (check_simple_exit): Use check_complex_exit_p to allow certain cases
24148 with exits not executing on any iteration.
24150 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24153 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24154 to set branch cost.
24156 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24159 * i386.c (gate): Check flag_expensive_optimizations and
24161 (ix86_option_override_internal): Drop optimize_size condition
24162 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24163 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24164 MASK_PREFER_AVX128.
24165 (ix86_avx256_split_vector_move_misalign,
24166 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24167 * sse.md (all uses of TARGET_PREFER_AVX128): Add
24168 optimize_insn_for_speed_p check.
24170 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
24172 * config/mips/mips.h (FP_ASM_SPEC): New define.
24173 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24176 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
24179 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24180 nullptr for insn when reaching the first insn.
24181 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24182 (sh_insn_operands_modified_between_p): Add nullptr check.
24183 (sh_find_extending_set_of_reg): Fix log message. Don't accept
24184 sign extending mem load if the insn contains any UNSPEC or
24187 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24189 * params.def (inline-unit-growth): Drop to 15%.
24190 * invoke.texi (inline-unit-growth): Document change.
24192 2015-01-19 Martin Liska <mliska@suse.cz>
24195 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24196 function for second argument of OBJ_TYPE_REF.
24198 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24201 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24202 whether function is an alias.
24204 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
24206 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24209 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
24211 PR rtl-optimization/64671
24212 * lra-remat.c (operand_to_remat): Don't consider jump and call
24215 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
24218 * config/rs6000/default64.h: Include rs6000-cpus.def.
24219 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24220 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24221 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24223 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24225 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24226 pseudo-op to specify assembler dialect.
24228 2015-01-19 Martin Liska <mliska@suse.cz>
24231 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24232 Handle safe potentially removed nodes during filtering.
24234 2015-01-19 Martin Liska <mliska@suse.cz>
24236 * doc/extend.texi (no_icf): Add new attribute description.
24237 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24238 where the pass attempts to merge a function with no_icf attribute.
24240 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24243 * doc/md.texi (ARM Options): Document register constraints.
24245 2015-01-19 Jiong Wang <jiong.wang@arm.com>
24246 Andrew Pinski <apinski@cavium.com>
24249 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24250 (ashl<mode>3): Don't expand if operands[2] is not constant.
24252 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24255 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24256 Match xor-and-xor RTL pattern.
24258 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
24260 PR rtl-optimization/64081
24261 * loop-iv.c (def_pred_latch_p): New function.
24262 (latch_dominating_def): Allow specific cases with non-single
24264 (iv_get_reaching_def): Likewise.
24265 (check_complex_exit_p): New function.
24266 (check_simple_exit): Use check_complex_exit_p to allow certain cases
24267 with exits not executing on any iteration.
24269 2015-01-19 Jakub Jelinek <jakub@redhat.com>
24271 * common.opt (fgraphite): Fix a typo.
24273 2015-01-19 Felix Yang <felix.yang@huawei.com>
24275 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24277 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24278 uminp, smax_nanp, smin_nanp): New builtins.
24279 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24280 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24281 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24282 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24283 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24284 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24285 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24286 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24287 vpminnms_f32): Rewrite using builtin functions.
24289 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
24292 * omp-low.c (offload_symbol_decl): Remove variable.
24293 (get_offload_symbol_decl): Remove function.
24294 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24295 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24296 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24297 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24298 BUILT_IN_GOACC_UPDATE don't pass it at all.
24300 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
24302 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24305 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
24307 * ipa-chkp.c (chkp_produce_thunks): Add early param
24308 to split thunks production into two passes. Keep
24309 'always_inline' function bodies after the first pass.
24310 (pass_data_ipa_chkp_early_produce_thunks): New.
24311 (pass_ipa_chkp_early_produce_thunks): New.
24312 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24313 chkp_produce_thunks signature.
24314 (make_pass_ipa_chkp_early_produce_thunks): New.
24315 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24316 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24317 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24319 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24321 * cgraph.c (cgraph_node::dump): Dump profile flags.
24323 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
24326 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24327 reg appear first in the parallel.
24329 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24331 * ipa-reference.c (set_reference_optimization_summary,
24332 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24334 (ignore_module_statics): New static var.
24335 (propagate_bits): If ipa-reference is disabled, do not look into local
24337 (analyze_function): Disable analysis when ipa_reference is disabled.
24338 (generate_summary): Do not dump when reference is disabled;
24339 collect vars accessed from functions with ipa-reference disabled.
24340 (get_read_write_all_from_node): When ipa-reference is disabled, use the
24342 (gate): Enable for LTO.
24343 (ignore_edge_p): New function.
24344 (propagate): Skip functions w/o ipa-reference analysis.
24345 * optc-save-gen.awk: Handle optimize_debug correctly.
24346 * opth-gen.awk: Likewise.
24347 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24348 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24349 fira-share-save-slots, fira-share-spill-slots,
24350 fmodulo-sched-allow-regmoves, fpartial-inlining,
24351 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24352 ftracer, ftree-parallelize-loops, fassociative-math,
24353 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24355 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24356 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24358 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24361 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
24364 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24366 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24368 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
24370 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24371 Remove duplicate option listings.
24373 2015-01-18 Felix Yang <felix.yang@huawei.com>
24375 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24376 (autofdo_source_profile::get_callsite_total_count,
24377 function_instance::get_function_instance_by_decl,
24378 string_table::get_index, string_table::get_index_by_decl,
24379 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24380 Fix comment typos. Reformatting and minor code rearrangement.
24382 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24384 * config/rs6000/rs6000.md (probe_stack): Delete.
24385 (probe_stack_address): New.
24387 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24389 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24390 to test for 32-bit ABIs, not !TARGET_POWERPC64.
24392 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
24394 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24395 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
24396 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
24398 (rs6000_libcall_value): Use the new function.
24400 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
24402 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24404 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
24406 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24407 implement a more precise life analysis for it during backward scan.
24409 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
24411 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24413 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
24415 PR rtl-optimization/52773
24416 * calls.c (emit_library_call_value): When pushing arguments use
24417 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24418 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
24419 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24421 2015-01-17 Jeff Law <law@redhat.com>
24423 PR rtl-optimization/32790
24424 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24425 not ZERO_EXTEND in SET_DESTs.
24427 2015-01-17 Alan Modra <amodra@gmail.com>
24429 * cprop.c (do_local_cprop): Revert last change.
24431 2015-01-16 DJ Delorie <dj@redhat.com>
24432 Nick Clifton <nickc@redhat.com>
24434 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24435 (addhi3_real): Likewise. Fix [HL+0] syntax.
24436 (subqi3_real): Likewise.
24437 (subhi3_real): Likewise.
24438 (cbranchqi4_real): Likewise. Allow saddr,#imm.
24439 (cbranchhi4_real): Likewise.
24440 (cbranchhi4_real_inverted): Likewise.
24441 (cbranchsi4_real_lt): Likewise.
24442 (cbranchsi4_real_ge): Likewise.
24443 (cbranchsi4_real_ge): Likewise.
24444 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24445 (sub<mode>3_virt): Likewise.
24446 (cbranchqi4_virt): Likewise.
24447 (cbranchhi4_virt): Likewise.
24448 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24449 always use '[reg+imm]' even when imm is zero.
24450 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24451 (rl78_general_operand): New.
24452 (rl78_nonimmediate_operand): New.
24453 (rl78_nonfar_operand): Use them.
24454 (rl78_nonfar_nonimm_operand): Likewise.
24455 (rl78_stack_based_mem): Fix.
24456 * config/rl78/constraints.md (Ibqi): New.
24461 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24462 (iorqi3): Likewise.
24463 (xorqi3): Likewise.
24464 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24466 * config/rl78/constrains (Qs8): New constraint.
24467 * config/rl78/rl78.c (rl78_flags_already_set): New function.
24468 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24469 * config/rl78/rl78-real.md (update_Z): New attribute.
24470 Update patterns to set it.
24471 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24472 shorter compare and branch sequence can be used.
24473 (cbranchhi4_real): Likewise.
24474 (cbranchhi4_real_inverted): Likewise.
24476 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24477 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24479 * config/rl78/rl78.c (rl78_get_name_encoding): New.
24480 (rl78_option_override): Allow -mes0 only if C.
24481 (characterize_address): Support subregs of symbol_refs.
24482 (rl78_addr_space_address_mode): Move. Add __near.
24483 (rl78_far_p): Likewise.
24484 (rl78_addr_space_pointer_mode): Likewise.
24485 (rl78_as_legitimate_address): Likewise.
24486 (rl78_addr_space_subset_p): Likewise.
24487 (rl78_addr_space_convert): Likewise.
24488 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24489 symbols with -mes0.
24490 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
24492 (rl78_alloc_physical_registers_op1): Change logic to prefer
24493 symbol[BC] addressing.
24494 (frodata_section): New.
24495 (rl78_asm_init_sections): Initialize it.
24496 (rl78_select_section): Put __far readonly symbols in .frodata.
24497 (rl78_make_type_far): New.
24498 (rl78_insert_attributes): Force all readonly symbols to be
24500 (rl78_asm_out_integer): New.
24501 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24502 * config/rl78/rl78.opt (-mes0): New.
24504 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24505 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24506 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24507 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24508 (rl78_saddr_p): New.
24509 (rl78_output_aligned_common): New.
24510 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24511 (rl78_handle_saddr_attribute): New.
24512 (rl78_handle_naked_attribute): New.
24513 (rl78_attribute_table): Add saddr.
24514 (rl78_print_operand_1): Don't print '!' on saddr operands.
24515 (rl78_print_operand_1): Strip encodings.
24517 (rl78_strip_name_encoding): New.
24518 (rl78_attrlist_to_encoding): New.
24519 (rl78_encode_section_info): New.
24520 (rl78_asm_init_sections): New.
24521 (rl78_select_section): New.
24522 (rl78_output_labelref): New.
24523 (rl78_output_aligned_common): New.
24524 (rl78_asm_out_integer): New.
24525 (rl78_asm_ctor_dtor): New.
24526 (rl78_asm_constructor): New.
24527 (rl78_asm_destructor): New.
24529 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
24530 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
24531 (transcode_memory_rtx): Update.
24532 (rl78_expand_epilogue): Use A_REG instead of 0.
24534 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24536 * config/arm/arm-protos.h (struct tune_params): New field
24537 sched_autopref_queue_depth.
24538 * config/arm/arm.c (sched-int.h): Include header.
24539 (arm_first_cycle_multipass_dfa_lookahead_guard,)
24540 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
24541 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
24542 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
24543 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
24544 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
24545 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
24546 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
24547 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
24548 * config/arm/t-arm (arm.o): Update.
24549 * haifa-sched.c (update_insn_after_change): Update.
24550 (rank_for_schedule): Use auto-prefetcher model, if requested.
24551 (autopref_multipass_init): New static function.
24552 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
24553 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
24554 variable for debug dumps.
24555 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
24556 (autopref_multipass_dfa_lookahead_guard): New global function that
24557 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
24558 (init_h_i_d): Update.
24559 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
24560 * sched-int.h (enum autopref_multipass_data_status): New const enum.
24561 (autopref_multipass_data_): Structure for auto-prefetcher data.
24562 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
24563 (struct _haifa_insn_data:autopref_multipass_data): New field.
24564 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
24565 (autopref_multipass_dfa_lookahead_guard): Declare.
24567 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24569 * rtlanal.c (get_base_term): Handle SCRATCH.
24571 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24573 * config/aarch64/aarch64.c
24574 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
24575 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24577 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
24578 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24580 2015-01-17 Alan Modra <amodra@gmail.com>
24582 * cprop.c (do_local_cprop): Disallow replacement of fixed
24585 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24588 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
24591 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
24593 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
24594 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
24596 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24598 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
24599 * config/arm/thumb1.md: ... Here.
24601 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
24603 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
24604 TImode for TARGET_32BIT.
24606 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
24608 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
24609 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
24611 (rs6000_abi_word_mode): New function.
24613 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
24615 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
24616 instead of UNITS_PER_WORD to describe the size of stack slots.
24618 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
24620 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
24621 as rs6000_promote_function_mode. Move comment to there.
24622 (rs6000_promote_function_mode): New function.
24624 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
24626 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
24627 -mpowerpc64 is active.
24629 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
24631 PR middle-end/64353
24632 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
24635 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
24637 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
24638 introduced in revision 219724.
24640 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24641 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24644 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
24645 destination is not a GP reg.
24646 (*movdi_aarch64): Likewise.
24648 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
24651 * config/rs6000/default64.h: Revert ISA change.
24653 2015-01-16 Richard Biener <rguenther@suse.de>
24655 PR middle-end/64614
24656 * tree-ssa-uninit.c: Include tree-cfg.h.
24657 (MAX_SWITCH_CASES): New define.
24658 (convert_control_dep_chain_into_preds): Handle switch statements.
24659 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
24660 (normalize_one_pred_1): Do not split bit-manipulations.
24663 2015-01-16 Richard Biener <rguenther@suse.de>
24665 PR tree-optimization/64568
24666 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
24667 complex load rewriting for TARGET_MEM_REFs.
24669 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
24671 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
24673 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
24676 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
24678 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
24679 (aarch64_lra_p): Remove.
24681 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
24684 * ipa-chkp.h (chkp_instrumentable_p): New.
24685 * ipa-chkp.c: Include tree-inline.h.
24686 (chkp_instrumentable_p): New.
24687 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
24688 Fix processing of not instrumentable functions.
24689 (chkp_versioning): Use chkp_instrumentable_p. Warn about
24690 not instrumentable functions.
24691 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
24692 chkp_instrumentable_p.
24693 * tree-inline.h (copy_forbidden): New.
24694 * tree-inline.c (copy_forbidden): Not static anymore.
24696 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24698 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
24701 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
24703 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
24704 type OP_OUT to OP_INOUT.
24706 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
24708 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
24709 (high x) y) to y if x and y have the same base.
24711 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
24713 * config/arm/cortex-a57.md: New.
24714 * config/aarch64/aarch64.md: Include it.
24715 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
24716 * config/aarch64/aarch64-tune.md: Regenerate.
24718 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
24721 * ccmp.c (expand_ccmp_next): New function.
24722 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
24723 and compare insn sequence.
24724 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
24725 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
24726 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
24727 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
24728 (*ccmp_ior): Changed to ccmp_ior<mode>.
24729 (cmp<mode>): New pattern.
24730 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
24732 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
24734 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
24736 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
24737 _mm256_bsrli_epi128): New.
24738 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
24740 2015-01-15 Jiong Wang <jiong.wang@arm.com>
24742 * expmed.c (store_bit_field_using_insv): Improve warning message.
24743 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
24745 2015-01-15 Jiong Wang <jiong.wang@arm.com>
24747 PR rtl-optimization/64011
24748 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
24749 there is partial overflow.
24751 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
24753 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
24755 (nds32_expand_epilogue_v3pop): Likewise.
24756 * config/nds32/nds32.md (sibcall): Define this for sibling call
24758 (sibcall_register): Likewise.
24759 (sibcall_immediate): Likewise.
24760 (sibcall_value): Likewise.
24761 (sibcall_value_register): Likewise.
24762 (sibcall_value_immediate): Likewise.
24763 (sibcall_epilogue): Likewise.
24764 (epilogue): Pass false to indicate this is not a sibcall epilogue.
24765 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
24766 (nds32_expand_epilogue_v3pop): Likewise.
24768 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
24770 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
24771 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
24772 (return_internal): New.
24773 (return): Define this named pattern.
24774 (simple_return): Define this named pattern.
24775 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
24776 pattern instead of unspec_volatile_func_return.
24777 (nds32_expand_epilogue_v3pop): Likewise.
24778 (nds32_can_use_return_insn): New function.
24780 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
24782 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
24783 * config/nds32/nds32.md (pop25return): New.
24784 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
24785 pop25return pattern.
24787 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
24789 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
24790 -mforbid-fp-as-gp, and -mex9 options.
24792 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
24794 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
24795 remove -mgp-direct option.
24797 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
24799 * doc/invoke.texi (--param early-inlining-insns): Update default value.
24800 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
24802 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
24804 * ipa-inline.c (inline_small_functions): Work around hints
24807 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
24810 * doc/invoke.texi (Option Summary): Document new Nios II
24812 (Nios II Options): Likewise.
24813 * config/nios2/nios2.opt: Add -mgpopt= option support.
24814 Modify existing -mgpopt and -mno-gpopt options to be aliases.
24815 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
24816 * config/nios2/nios2.c (nios2_option_override): Adjust
24817 -mgpopt defaulting.
24818 (nios2_in_small_data_p): Return true for explicit small data
24819 sections even with -G0.
24820 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
24823 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
24826 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
24828 (inline_call): Fix removal of aliases.
24830 2015-01-15 Jakub Jelinek <jakub@redhat.com>
24832 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
24833 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
24834 * opts.c (common_handle_option): Add -fsanitize=vptr.
24835 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
24836 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
24837 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
24838 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
24839 (ubsan_expand_vptr_ifn): New prototype.
24840 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
24841 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
24842 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
24843 expand_LOOP_VECTORIZED): Make argument nameless, remove
24845 (expand_UBSAN_VPTR): New function.
24846 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
24848 (UBSAN_VPTR): New internal function.
24849 * sanopt.c (tree_map_traits): Renamed to ...
24850 (sanopt_tree_map_traits): ... this.
24851 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
24852 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
24853 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
24854 (maybe_optimize_ubsan_vptr_ifn): New function.
24855 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
24856 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
24858 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
24859 internal calls like pure functions for aliasing, even when they
24860 have other side-effects that prevent making them ECF_PURE.
24861 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
24862 (ubsan_expand_vptr_ifn): New function.
24864 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
24866 PR rtl-optimization/64110
24867 * stmt.c (parse_output_constraint): Process '^' and '$'.
24868 (parse_input_constraint): Ditto.
24869 * lra-constraints.c (process_alt_operands): Process the new
24871 * ira-costs.c (record_reg_classes): Process the new constraint
24873 * genoutput.c (indep_constraints): Add '^' and '$'.
24874 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
24875 * doc/md.texi: Add description of the new constraints.
24877 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
24878 Bernd Schmidt <bernds@codesourcery.com>
24879 Cesar Philippidis <cesar@codesourcery.com>
24880 James Norris <jnorris@codesourcery.com>
24881 Tom de Vries <tom@codesourcery.com>
24882 Ilmir Usmanov <i.usmanov@samsung.com>
24883 Dmitry Bocharnikov <dmitry.b@samsung.com>
24884 Evgeny Gavrin <e.gavrin@samsung.com>
24885 Jakub Jelinek <jakub@redhat.com>
24887 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
24888 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
24889 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
24890 New function types.
24891 * builtins.c: Include "gomp-constants.h".
24892 (expand_builtin_acc_on_device): New function.
24893 (expand_builtin, is_inexpensive_builtin): Handle
24894 BUILT_IN_ACC_ON_DEVICE.
24895 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
24897 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
24899 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
24900 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
24901 i386/intelmic-offload.h.
24902 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
24903 to libgomp and its dependencies.
24904 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
24905 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
24906 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
24907 * config/ia64/hpux.h (LIB_SPEC): Likewise.
24908 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24909 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
24910 * doc/generic.texi: Update for OpenACC changes.
24911 * doc/gimple.texi: Likewise.
24912 * doc/invoke.texi: Likewise.
24913 * doc/sourcebuild.texi: Likewise.
24914 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
24915 GF_OMP_FOR_KIND_OACC_LOOP.
24916 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
24917 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
24918 GF_OMP_TARGET_KIND_OACC_UPDATE,
24919 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
24921 * gimple.c: Update comments for OpenACC changes.
24922 * gimple.def: Likewise.
24923 * gimple.h: Likewise.
24924 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
24925 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
24926 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
24927 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
24928 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
24930 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
24931 * gimplify.c: Include "gomp-constants.h".
24932 Update comments for OpenACC changes.
24933 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
24934 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
24935 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
24936 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
24937 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
24938 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
24939 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
24940 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
24941 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
24943 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
24944 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
24945 OMP_CLAUSE_SET_MAP_KIND.
24946 (gimplify_oacc_cache): New function.
24947 (gimplify_omp_for): Handle OACC_LOOP.
24948 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
24950 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
24951 OACC_EXIT_DATA, OACC_UPDATE.
24952 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
24953 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
24954 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
24955 (gimplify_body): Consider flag_openacc next to flag_openmp.
24956 * lto-streamer-out.c: Include "gomp-constants.h".
24957 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
24958 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
24959 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
24960 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
24961 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
24962 (BUILT_IN_ACC_ON_DEVICE): New builtins.
24963 * omp-low.c: Include "gomp-constants.h".
24964 Update comments for OpenACC changes.
24965 (struct omp_context): Add reduction_map, gwv_below, gwv_this
24967 (extract_omp_for_data, use_pointer_for_field, install_var_field)
24968 (new_omp_context, delete_omp_context, scan_sharing_clauses)
24969 (create_omp_child_function, scan_omp_for, scan_omp_target)
24970 (check_omp_nesting_restrictions, lower_reduction_clauses)
24971 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
24972 Update for OpenACC changes.
24973 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
24974 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
24975 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
24976 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
24977 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
24978 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
24980 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24981 Handle GF_OMP_FOR_KIND_OACC_LOOP.
24982 (expand_omp_target, lower_omp_target): Handle
24983 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
24984 GF_OMP_TARGET_KIND_OACC_UPDATE,
24985 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
24986 GF_OMP_TARGET_KIND_OACC_DATA.
24987 (pass_expand_omp::execute, execute_lower_omp)
24988 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
24990 (offload_symbol_decl): New variable.
24991 (oacc_get_reduction_array_id, oacc_max_threads)
24992 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
24993 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
24994 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
24995 (oacc_gimple_assign, oacc_initialize_reduction_data)
24996 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
24998 (is_targetreg_ctx): Remove function.
24999 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25000 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25001 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25002 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25003 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25004 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25005 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25006 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25007 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25008 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25009 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25010 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25011 * tree-core.h: Update comments for OpenACC changes.
25012 (enum omp_clause_map_kind): Remove.
25013 (struct tree_omp_clause): Change type of map_kind member from enum
25014 omp_clause_map_kind to unsigned char.
25015 * tree-inline.c: Update comments for OpenACC changes.
25016 * tree-nested.c: Likewise. Include "gomp-constants.h".
25017 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25018 (convert_tramp_reference_stmt, convert_gimple_call): Update for
25019 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
25020 OMP_CLAUSE_SET_MAP_KIND.
25021 * tree-pretty-print.c: Include "gomp-constants.h".
25022 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25023 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25024 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25025 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25026 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25027 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
25028 instead of OMP_CLAUSE_MAP_*.
25029 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25030 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25031 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25032 * tree-streamer-in.c: Include "gomp-constants.h".
25033 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25034 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
25035 * tree-streamer-out.c: Include "gomp-constants.h".
25036 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25038 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25039 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25040 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25041 * tree.c (omp_clause_num_ops): Update accordingly.
25042 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25044 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25045 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25046 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25047 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25048 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25049 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25050 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25051 (OMP_CLAUSE_SET_MAP_KIND): New macro.
25052 * varpool.c (varpool_node::get_create): Consider flag_openacc next
25054 * config/i386/intelmic-offload.h: New file.
25055 * config/nvptx/offload.h: Likewise.
25057 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25059 * explow.h: Remove duplicate contents.
25060 * dojump.h: Likewise.
25062 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
25064 * arm.c (arm_xgene_tune): Add default initializer for instruction
25067 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
25071 * ipa.c (symbol_table::remove_unreachable_nodes):
25072 Do not put abstract origins into boundary.
25074 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
25076 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25077 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25079 2015-01-15 Steve Ellcey <sellcey@mips.com>
25081 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25082 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25083 builtins.def, and chkp-builtins.def.
25085 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
25087 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25090 2015-01-15 Richard Biener <rguenther@suse.de>
25092 PR tree-optimization/61743
25093 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25094 information on PHIs for some simple cases.
25096 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25098 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25100 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25101 * config/arm/arm-cores.def (xgene1): New entry.
25102 * config/arm/arm-tables.opt: Regenerate.
25103 * config/arm/arm-tune.md: Regenerate.
25104 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25106 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
25108 * tree-if-conv.c: Include hash-map.h.
25109 (aggressive_if_conv): New variable.
25110 (fold_build_cond_expr): Add simplification of non-zero condition.
25111 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25112 destination block is not always executed.
25113 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25114 than two predecessors if AGGRESSIVE_IF_CONV is true.
25115 (if_convertible_stmt_p): Fix commentary.
25116 (all_preds_critical_p): New function.
25117 (has_pred_critical_p): New function.
25118 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25119 BB can have more than two predecessors and all incoming edges can be
25121 (predicate_bbs): Skip predication for loop exit block, use build2_loc
25122 to compute predicate for true edge.
25123 (find_phi_replacement_condition): Delete this function.
25124 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25125 Allow interchange PHI arguments if EXTENDED is false.
25126 Change check that block containing reduction statement candidate
25127 is predecessor of phi-block since phi may have more than two arguments.
25128 (phi_args_hash_traits): New helper structure.
25129 (struct phi_args_hash_traits): New type.
25130 (phi_args_hash_traits::hash): New function.
25131 (phi_args_hash_traits::equal_keys): New function.
25132 (gen_phi_arg_condition): New function.
25133 (predicate_scalar_phi): Add handling of phi nodes with more than two
25134 arguments, delete COND and TRUE_BB arguments, insert body of
25135 find_phi_replacement_condition to predicate ordinary phi nodes.
25136 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25137 delete call of find_phi_replacement_condition and invoke
25138 predicate_scalar_phi with two arguments.
25139 (insert_gimplified_predicates): Add assert that non-predicated block
25140 don't have statements to insert.
25141 (ifcvt_split_critical_edges): New function.
25142 (ifcvt_split_def_stmt): Likewise.
25143 (ifcvt_walk_pattern_tree): Likewise.
25144 (stmt_is_root_of_bool_pattern): Likewise.
25145 (ifcvt_repair_bool_pattern): Likewise.
25146 (ifcvt_local_dce): Likewise.
25147 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25148 is copy of inner or outer loop force_vectorize field, invoke
25149 ifcvt_split_critical_edges, ifcvt_local_dce and
25150 ifcvt_repair_bool_pattern for aggressive if-conversion.
25152 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
25154 * config/aarch64/aarch64.md: Include xgene1.md.
25155 * config/aarch64/xgene1.md: New file.
25157 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25159 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25160 xgene1 (APM XGene-1) core definition.
25161 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25162 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25163 * doc/invoke.texi: Document -mcpu=xgene1.
25165 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25167 * dojump.h: New header file.
25168 * explow.h: Likewise.
25169 * expr.h: Remove includes.
25170 Move expmed.c prototypes to expmed.h.
25171 Move dojump.c prototypes to dojump.h.
25172 Move alias.c prototypes to alias.h.
25173 Move explow.c prototypes to explow.h.
25174 Move calls.c prototypes to calls.h.
25175 Move emit-rtl.c prototypes to emit-rtl.h.
25176 Move varasm.c prototypes to varasm.h.
25177 Move stmt.c prototypes to stmt.h.
25178 (saved_pending_stack_adjust): Move to dojump.h.
25179 (adjust_address): Move to explow.h.
25180 (adjust_address_nv): Move to emit-rtl.h.
25181 (adjust_bitfield_address): Likewise.
25182 (adjust_bitfield_address_size): Likewise.
25183 (adjust_bitfield_address_nv): Likewise.
25184 (adjust_automodify_address_nv): Likewise.
25185 * explow.c (expr_size): Move to expr.c.
25186 (int_expr_size): Likewise.
25187 (tree_expr_size): Likewise.
25188 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25189 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25190 * genemit.c (main): Generate includes statistics.h, real.h,
25191 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25193 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25194 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25195 explow.h, emit-rtl.h, stmt.h.
25196 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25197 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25198 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25199 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25200 emit-rtl.h, varasm.h, stmt.h.
25201 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25202 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25203 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25204 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25205 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25206 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25207 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25208 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25209 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25210 tm.h tree.h varasm.h vec.h wide-int.h.
25211 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25212 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25213 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25214 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25215 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25216 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25217 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25218 * loop-iv.c: Likewise.
25219 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25220 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25221 statistics.h stmt.h tree.h varasm.h wide-int.h.
25222 * lra-constraints.c: Likewise.
25223 * lra-eliminations.c: Likewise.
25224 * lra-lives.c: Likewise.
25225 * lra-remat.c: Likewise.
25226 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25227 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25228 statistics.h stmt.h tree.h varasm.h wide-int.h.
25229 * hw-doloop.c: Likewise.
25230 * ira-color.c: Likewise.
25231 * ira-emit.c: Likewise.
25232 * loop-doloop.c: Likewise.
25233 * loop-invariant.c: Likewise.
25234 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25235 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25236 statistics.h stmt.h tree.h varasm.h wide-int.h.
25237 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25238 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25239 statistics.h stmt.h tree.h varasm.h wide-int.h.
25240 * combine-stack-adj.c: Likewise.
25243 * ifcvt.c: Likewise.
25244 * ira-costs.c: Likewise.
25245 * jump.c: Likewise.
25246 * lra-coalesce.c: Likewise.
25247 * lra-spills.c: Likewise.
25248 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25249 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25250 stmt.h varasm.h wide-int.h.
25251 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25252 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25254 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25255 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25256 statistics.h stmt.h varasm.h wide-int.h.
25257 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25258 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25259 varasm.h wide-int.h.
25260 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25261 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25262 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25263 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25264 statistics.h stmt.h.
25265 * config/tilepro/tilepro.c: Likewise.
25266 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25267 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25268 * config/pdp11/pdp11.c: Likewise.
25269 * config/xtensa/xtensa.c: Likewise.
25270 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25271 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25273 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25274 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25275 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25276 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25277 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25278 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25279 * rtl-chkp.c: Likewise.
25280 * tree-chkp-opt.c: Likewise.
25281 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25282 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25283 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25284 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25285 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25286 statistics.h stmt.h.
25287 * tree-vect-data-refs.c: Likewise.
25288 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25289 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25290 rtl.h statistics.h stmt.h varasm.h.
25291 * internal-fn.c: Likewise.
25292 * ipa-icf-gimple.c: Likewise.
25293 * lto-section-out.c: Likewise.
25294 * tree-data-ref.c: Likewise.
25295 * tree-nested.c: Likewise.
25296 * tree-outof-ssa.c: Likewise.
25297 * tree-predcom.c: Likewise.
25298 * tree-pretty-print.c: Likewise.
25299 * tree-scalar-evolution.c: Likewise.
25300 * tree-ssa-strlen.c: Likewise.
25301 * tree-vect-loop.c: Likewise.
25302 * tree-vect-patterns.c: Likewise.
25303 * tree-vect-slp.c: Likewise.
25304 * tree-vect-stmts.c: Likewise.
25305 * tsan.c: Likewise.
25306 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25307 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25309 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25310 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25311 statistics.h stmt.h varasm.h.
25312 * loop-unroll.c: Likewise.
25313 * ubsan.c: Likewise.
25314 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25315 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25317 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25318 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25319 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25320 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25321 statistics.h stmt.h.
25322 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25323 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25324 statistics.h stmt.h varasm.h.
25325 * gimple-match-head.c: Likewise.
25326 * lto-cgraph.c: Likewise.
25327 * lto-section-in.c: Likewise.
25328 * lto-streamer-in.c: Likewise.
25329 * lto-streamer-out.c: Likewise.
25330 * tree-affine.c: Likewise.
25331 * tree-cfg.c: Likewise.
25332 * tree-cfgcleanup.c: Likewise.
25333 * tree-if-conv.c: Likewise.
25334 * tree-into-ssa.c: Likewise.
25335 * tree-ssa-alias.c: Likewise.
25336 * tree-ssa-copyrename.c: Likewise.
25337 * tree-ssa-dse.c: Likewise.
25338 * tree-ssa-forwprop.c: Likewise.
25339 * tree-ssa-live.c: Likewise.
25340 * tree-ssa-math-opts.c: Likewise.
25341 * tree-ssa-pre.c: Likewise.
25342 * tree-ssa-sccvn.c: Likewise.
25343 * tree-tailcall.c: Likewise.
25344 * tree-vect-generic.c: Likewise.
25345 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25346 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25347 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25348 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25349 * varasm.c: Likewise.
25350 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25351 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25353 * init-regs.c: Likewise.
25355 * omp-low.c: Likewise.
25356 * stack-ptr-mod.c: Likewise.
25357 * tree-ssa-reassoc.c: Likewise.
25358 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25359 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25361 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25362 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25363 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25364 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25365 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25366 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25367 * tree-ssa-phiopt.c: Likewise.
25368 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25369 fixed-value.h hashtab.h real.h statistics.h stmt.h.
25370 * config/fr30/fr30.c: Likewise.
25371 * config/frv/frv.c: Likewise.
25372 * expr.c: Likewise.
25373 * final.c: Likewise.
25374 * optabs.c: Likewise.
25375 * passes.c: Likewise.
25376 * simplify-rtx.c: Likewise.
25377 * stmt.c: Likewise.
25378 * toplev.c: Likewise.
25379 * var-tracking.c: Likewise.
25380 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25381 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25382 * lower-subreg.c: Likewise.
25383 * postreload-gcse.c: Likewise.
25385 * reginfo.c: Likewise.
25386 * store-motion.c: Likewise.
25387 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25388 fixed-value.h hashtab.h real.h stmt.h varasm.h.
25389 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25390 fixed-value.h hashtab.h statistics.h stmt.h.
25391 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25392 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25393 * except.c: Likewise.
25394 * explow.c: Likewise.
25395 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25396 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25398 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25399 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25400 * tree-ssa-structalias.c: Likewise.
25401 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25402 fixed-value.h insn-config.h real.h statistics.h.
25403 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25404 fixed-value.h insn-config.h real.h statistics.h stmt.h.
25405 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25406 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25407 * cfgbuild.c: Likewise.
25408 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25409 fixed-value.h real.h rtl.h statistics.h stmt.h.
25410 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25411 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25412 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25413 fixed-value.h real.h statistics.h stmt.h.
25414 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25415 fixed-value.h real.h statistics.h stmt.h varasm.h.
25416 * cprop.c: Likewise.
25417 * modulo-sched.c: Likewise.
25418 * postreload.c: Likewise.
25419 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25420 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25421 statistics.h stmt.h varasm.h.
25422 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25423 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25424 rtl.h statistics.h stmt.h varasm.h.
25425 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25426 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25428 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25429 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25431 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25432 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25434 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25435 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25436 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25437 function.h real.h statistics.h stmt.h varasm.h.
25438 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25439 insn-config.h real.h statistics.h stmt.h.
25440 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25441 statistics.h stmt.h.
25442 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25443 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25444 statistics.h stmt.h varasm.h.
25445 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25446 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25447 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25448 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25449 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25450 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25451 statistics.h stmt.h varasm.h.
25452 * ipa-polymorphic-call.c: Likewise.
25453 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25454 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25455 statistics.h stmt.h.
25456 * config/c6x/c6x.c: Likewise.
25457 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25458 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25459 statistics.h stmt.h varasm.h.
25460 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25461 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25463 * ipa-split.c: Likewise.
25464 * tree-eh.c: Likewise.
25465 * tree-ssa-dce.c: Likewise.
25466 * tree-ssa-loop-niter.c: Likewise.
25467 * tree-vrp.c: Likewise.
25468 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25469 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25471 * config/nds32/nds32-fp-as-gp.c: Likewise.
25472 * config/nds32/nds32-intrinsic.c: Likewise.
25473 * config/nds32/nds32-isr.c: Likewise.
25474 * config/nds32/nds32-md-auxiliary.c: Likewise.
25475 * config/nds32/nds32-memory-manipulation.c: Likewise.
25476 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25477 * config/nds32/nds32-predicates.c: Likewise.
25478 * config/nds32/nds32.c: Likewise.
25479 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25480 fixed-value.h hashtab.h real.h statistics.h.
25481 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25482 fixed-value.h hashtab.h real.h statistics.h stmt.h.
25483 * config/arm/arm.c: Likewise.
25484 * config/avr/avr.c: Likewise.
25485 * config/bfin/bfin.c: Likewise.
25486 * config/h8300/h8300.c: Likewise.
25487 * config/i386/i386.c: Likewise.
25488 * config/ia64/ia64.c: Likewise.
25489 * config/iq2000/iq2000.c: Likewise.
25490 * config/m32c/m32c.c: Likewise.
25491 * config/m32r/m32r.c: Likewise.
25492 * config/m68k/m68k.c: Likewise.
25493 * config/mcore/mcore.c: Likewise.
25494 * config/mep/mep.c: Likewise.
25495 * config/mips/mips.c: Likewise.
25496 * config/mn10300/mn10300.c: Likewise.
25497 * config/moxie/moxie.c: Likewise.
25498 * config/pa/pa.c: Likewise.
25499 * config/rl78/rl78.c: Likewise.
25500 * config/rx/rx.c: Likewise.
25501 * config/s390/s390.c: Likewise.
25502 * config/sh/sh.c: Likewise.
25503 * config/sparc/sparc.c: Likewise.
25504 * config/spu/spu.c: Likewise.
25505 * config/stormy16/stormy16.c: Likewise.
25506 * config/v850/v850.c: Likewise.
25507 * config/vax/vax.c: Likewise.
25508 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25509 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25510 * config/msp430/msp430.c: Likewise.
25511 * predict.c: Likewise.
25512 * value-prof.c: Likewise.
25513 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25514 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25515 * config/microblaze/microblaze.c: Likewise.
25516 * config/nios2/nios2.c: Likewise.
25517 * config/rs6000/rs6000.c: Likewise.
25518 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25519 insn-config.h real.h rtl.h statistics.h stmt.h.
25520 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25521 insn-config.h real.h statistics.h stmt.h.
25522 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
25523 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25524 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
25525 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25526 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
25527 fixed-value.h real.h statistics.h stmt.h.
25528 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
25529 fixed-value.h statistics.h stmt.h.
25530 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
25533 2015-01-15 Jakub Jelinek <jakub@redhat.com>
25535 * gengtype.c (create_user_defined_type): Workaround
25536 -Wmaybe-uninitialized false positives.
25537 * cse.c (fold_rtx): Likewise.
25538 * loop-invariant.c (gain_for_invariant): Likewise.
25540 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
25542 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
25543 set the memory attributes in all cases but clear MEM_EXPR if need be.
25545 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
25547 PR tree-optimization/64434
25548 * cfgexpand.c (reorder_operands): New function.
25549 (expand_gimple_basic_block): Insert call of reorder_operands if
25552 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
25554 * config/mips/micromips.md (*swp): Remove explicit parallel.
25555 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
25556 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
25557 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
25558 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
25559 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
25560 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
25561 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
25562 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
25563 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
25564 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
25565 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
25566 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
25567 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
25568 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
25569 (mips_wrdsp): Likewise.
25570 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
25572 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
25573 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
25574 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
25575 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
25576 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
25577 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
25578 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
25579 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
25580 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
25582 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
25584 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
25585 (mips_print_operand): Support 'y' to print exact log2 in decimal
25587 * config/mips/mips.h (ISA_HAS_LSA): New define.
25588 (ISA_HAS_DLSA): Likewise.
25589 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
25590 * config/mips/predicates.md (const_immlsa_operand): New predicate.
25592 2015-01-15 Martin Liska <mliska@suse.cz>
25595 * optc-save-gen.awk: Add support for array types.
25597 2015-01-15 Richard Biener <rguenther@suse.de>
25599 PR middle-end/64365
25600 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
25601 for MEM_REF access functions with the same base can never partially
25604 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
25606 * common.opt: New option -fstack-protector-explicit.
25607 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
25608 (stack_protect_decl_phase): Handle stack_protect attribute for
25609 explicit stack protection requests.
25610 (expand_used_vars): Similarly.
25611 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
25612 * doc/extend.texi: Add documentation for "stack_protect" attribute.
25613 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
25615 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
25618 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
25620 (sh_extending_set_of_reg): New struct.
25621 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
25622 sh_remove_reg_dead_or_unused_notes): New Declarations.
25623 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
25624 sh_find_extending_set_of_reg, sh_split_tst_subregs,
25625 sh_extending_set_of_reg::use_as_extended_reg): New functions.
25626 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
25627 convert to insn_and_split and use new function sh_split_tst_subregs.
25629 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
25631 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
25633 (Optimization Options): Move -fuse-ld documentation to...
25634 (Link Options): ...here.
25636 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
25638 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
25640 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
25641 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
25642 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
25643 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
25644 instead of ZR for the memory operand of LL/SC.
25645 (compare_and_swap_12, sync_add<mode>): Likewise.
25646 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
25647 (sync_new_<optab>_12, sync_nand_12): Likewise.
25648 (sync_old_nand_12, sync_new_nand_12): Likewise.
25649 (sync_sub<mode>, sync_old_add<mode>): Likewise.
25650 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
25651 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
25652 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
25653 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
25654 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
25655 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
25656 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
25657 * doc/md.texi (ZC): Update description.
25659 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
25661 * builtins.c (expand_builtin_atomic_exchange): Remove error when
25662 memory model is CONSUME.
25663 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
25664 expand_builtin_atomic_store): Change invalid memory model errors to
25666 (expand_builtin_atomic_clear): Change invalid model errors to warnings
25667 and issue warning for CONSUME.
25669 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
25671 * lto-cgraph: Update function comments for
25672 lto_symtab_encoder_encode_*.
25674 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
25676 * Makefile.in (site.exp): Do not set ENABLE_LTO.
25678 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
25680 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
25681 * lto-cgraph.c (select_what_to_stream): Remove argument, use
25682 lto_stream_offload_p instead.
25683 * lto-streamer.h (select_what_to_stream): Remove argument.
25684 * passes.c (ipa_write_summaries): Likewise.
25685 * tree-pass.h (ipa_write_summaries): Likewise.
25687 2015-01-14 Richard Biener <rguenther@suse.de>
25689 PR tree-optimization/59354
25690 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
25691 groups larger than the slp group size as having gaps.
25693 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
25695 PR middle-end/59448
25696 * builtins.c (get_memmodel): Promote consume to acquire always.
25698 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
25701 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
25704 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
25707 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
25709 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
25710 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
25711 AVX512VBMI, as it implies AVX512BW.
25713 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
25716 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
25717 (vec_unpacks_hi_v16sf): Ditto.
25719 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25721 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
25724 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25726 * doc/invoke.texi (mapcs): Mention deprecation.
25727 (mapcs-frame): Likewise.
25729 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
25732 * config/arm/arm.c (callee_saved_reg_p): Define.
25733 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
25734 register is callee saved instead of !call_used_regs[reg].
25735 (thumb1_compute_save_reg_mask): Likewise.
25737 2015-01-14 Hale Wang <hale.wang@arm.com>
25739 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
25742 2015-01-14 Richard Biener <rguenther@suse.de>
25745 * tree-inline.c (insert_debug_decl_map): Check destination
25746 function MAY_HAVE_DEBUG_STMTS.
25747 (insert_init_debug_bind): Likewise.
25748 (insert_init_stmt): Remove redundant check.
25749 (remap_gimple_stmt): Drop debug stmts if the destination
25750 function has var-tracking assignments disabled.
25752 2015-01-14 Martin Liska <mliska@suse.cz>
25754 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
25755 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
25757 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25760 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
25761 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
25763 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
25765 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
25766 level from an ARCH; do not inject the default.
25767 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
25768 MIPS_ISA_LEVEL_SPEC.
25769 (MIPS_ISA_NAN2008_SPEC): Update comment.
25770 (BASE_DRIVER_SELF_SPECS): Likewise.
25771 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
25772 MIPS_DEFAULT_ISA_LEVEL_SPEC.
25773 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
25774 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
25775 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
25777 2015-01-14 Richard Biener <rguenther@suse.de>
25779 PR tree-optimization/64493
25780 PR tree-optimization/64495
25781 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
25782 assign the proper vectorized PHI to the inner loop exit PHIs.
25784 2015-01-14 Joey Ye <joey.ye@arm.com>
25786 * config/arm/arm.c (arm_compute_save_reg_mask):
25787 Do not save lr in case of tail call.
25788 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
25790 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
25792 * tree-vrp.c (check_array_ref): Emit more warnings
25793 for warn_array_bounds >= 2.
25794 * common.opt: New option -Warray-bounds=.
25795 * doc/invoke.texi: Document -Warray-bounds=.
25797 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
25799 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
25800 (mforbid-fp-as-gp): Remove.
25802 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
25803 (nds32_symbol_load_store_p): Remove.
25804 (nds32_fp_as_gp_check_available): Clean up implementation.
25805 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
25807 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
25808 fp-as-gp and ex9 cases.
25810 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
25812 * tree-profile.c (init_ic_make_global_vars): Drop workaround
25813 for bintuils bug 14342.
25814 (init_ic_make_global_vars): Likewise.
25815 (gimple_init_edge_profiler): Likewise.
25816 (gimple_gen_ic_func_profiler): Likewise.
25818 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25820 * ipa-inline.c (inline_small_functions): Swap the operands in
25823 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
25826 * ipa-inline-analysis.c (node_growth_cache): Remove.
25827 (initialize_growth_caches): Do not initialize it.
25828 (free_growth_caches): Do not free it.
25829 (do_estimate_growth): Rename to ...
25830 (estimate_growth): ... this one; drop growth cache code.
25831 (growth_likely_positive): Always go the heuristics way.
25832 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
25833 (reset_edge_caches): Do not reset node growth.
25834 (heap_edge_removal_hook): Do not maintain cache.
25835 (inline_small_functions): Likewise; strenghten sanity check.
25836 (ipa_inline): Do not maintain caches.
25837 * ipa-inline.h (node_growth_cache): Remove.
25838 (do_estimate_growth): Remove to ...
25839 (estimate_growth): this one; remove inline version.
25840 (reset_node_growth_cache): Remove.
25842 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
25845 * ipa-inline.c (inline_small_functions): Update callee keys after
25846 resolving speculation
25847 (inline_small_functions): Always check monotonicity of the queue.
25849 2015-01-13 Marek Polacek <polacek@redhat.com>
25851 PR middle-end/64391
25852 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
25854 2015-01-13 Jakub Jelinek <jakub@redhat.com>
25856 PR rtl-optimization/64286
25857 * ree.c (combine_reaching_defs): Move part of comment earlier,
25858 remove !SCALAR_INT_MODE_P check.
25859 (add_removable_extension): Don't add vector mode
25860 extensions if all uses of the source register aren't the same
25863 2015-01-13 Renlin Li <renlin.li@arm.com>
25865 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
25866 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
25868 2015-01-13 Martin Liska <mliska@suse.cz>
25870 * ipa-icf.c (sem_function::equals_private): Call new functions
25871 cl_target_option_print_diff and cl_optimization_print_diff.
25872 * optc-save-gen.awk (cl_target_option_print_diff): New function.
25873 (cl_optimization_print_diff): Likewise.
25874 * opth-gen.awk: Likewise.
25876 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
25878 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
25879 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
25880 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
25881 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
25882 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
25883 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
25885 2015-01-13 Andrew Pinski <apinski@cavium.com>
25887 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
25888 instead of src mode.
25890 2015-01-13 Richard Biener <rguenther@suse.de>
25893 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
25896 2015-01-13 Andrew Pinski <apinski@cavium.com>
25898 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
25900 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
25902 2015-01-13 Jakub Jelinek <jakub@redhat.com>
25904 PR middle-end/63974
25905 * cfgexpand.c (expand_computed_goto): Don't call
25906 convert_memory_address here.
25908 2015-01-13 Richard Biener <rguenther@suse.de>
25910 PR tree-optimization/64406
25911 * tree-loop-distibution.c (pass_loop_distribution::execute):
25912 Reset the SCEV hashtable if we distributed anything.
25914 2015-01-13 Richard Biener <rguenther@suse.de>
25916 PR tree-optimization/64404
25917 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
25918 SLP types for CSEd loads.
25920 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25922 PR tree-optimization/64436
25923 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
25924 merge of two symbolic numbers for a bitwise OR to ...
25925 (perform_symbolic_merge): This. Also fix computation of the range and
25926 end of the symbolic number corresponding to the result of a bitwise OR.
25928 2015-01-13 Richard Biener <rguenther@suse.de>
25930 PR tree-optimization/64568
25931 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
25932 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
25934 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25936 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
25937 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
25939 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25941 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
25942 target-specific symbol_ref flag.
25943 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
25944 resides in rodata section.
25945 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
25946 (nds32_encode_section_info): New function.
25948 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25950 * config/nds32/nds32.md (call): Use pseudo instruction bal which
25951 clobbers TA_REGNUM if large code model is specified.
25952 (call_register): Likewise.
25953 (call_immediate): Likewise.
25954 (call_value): Likewise.
25955 (call_value_register): Likewise.
25956 (call_value_immediate): Likewise.
25958 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25960 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
25961 (TARGET_CMODEL_MEDIUM): New macro.
25962 (TARGET_CMODEL_LARGE): New macro.
25963 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
25964 code model setting in assembly code.
25966 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25968 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25969 Remove MASK_GP_DIRECT flag.
25970 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
25971 one of the multilib default options.
25972 * config/nds32/nds32.opt (mgp-direct): Remove.
25973 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
25974 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
25976 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
25978 * config/nds32/nds32.opt (mcmodel): Add new option.
25979 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
25980 to describe code model.
25982 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
25985 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
25987 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
25989 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
25990 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
25991 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
25992 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
25993 __builtin_sh_set_fpscr.
25995 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
25997 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
25998 after a funtion name just to indicate it is a function.
25999 ([-fsanitize-undefined-trap-on-error]): Likewise.
26000 ([-fdbg-cnt=]): Likewise.
26001 ([-mmemcpy]): Likewise.
26002 ([-mflush-func]): Likewise.
26003 ([-msynci]): Likewise.
26005 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
26007 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26010 2015-01-12 Jakub Jelinek <jakub@redhat.com>
26012 PR tree-optimization/64563
26013 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26014 instead of != VR_VARYING.
26017 * config/i386/i386.c (ix86_expand_prologue): Add
26018 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26020 PR tree-optimization/64454
26021 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26022 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26023 for signed or [0, op1 - 1] for unsigned modulo.
26024 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26025 even if op1 does not satisfy integer_pow2p.
26028 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26030 2015-01-12 Jeff Law <law@redhat.com>
26033 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26034 (trunchiqi2, truncsihi2): Similarly.
26036 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26037 rather than calling F.
26039 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
26041 * tsan.c (instrument_expr): Use force_gimple_operand.
26042 Use may_be_nonaddressable_p instead of is_gimple_addressable.
26044 2015-01-12 Richard Biener <rguenther@suse.de>
26046 PR tree-optimization/64530
26047 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26050 2015-01-12 Richard Biener <rguenther@suse.de>
26052 PR middle-end/64357
26053 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26056 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26058 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26059 Cortex-A17 tuning parameters.
26060 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26062 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26064 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26065 * config/arm/arm.c (arm_macro_fusion_p): New function.
26066 (arm_macro_fusion_pair_p): Likewise.
26067 (TARGET_SCHED_MACRO_FUSION_P): Define.
26068 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26069 (ARM_FUSE_NOTHING): Likewise.
26070 (ARM_FUSE_MOVW_MOVT): Likewise.
26071 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26072 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26073 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26074 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26075 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26076 arm_cortex_a5_tune): Specify fuseable_ops value.
26078 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
26081 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26082 test for PIE with copy reloc.
26083 * configure: Regenerated.
26085 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26087 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26089 (arm_tls_descseq_addr): Likewise.
26090 (arm_gen_movmemqi): Likewise.
26091 (arm_expand_epilogue_apcs_frame): Likewise.
26092 (arm_expand_epilogue): Likewise.
26093 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
26096 2015-01-12 Martin Liska <mliska@suse.cz>
26099 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26100 volatility for correct operands.
26102 2015-01-12 Martin Liska <mliska@suse.cz>
26104 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26105 indication that a function is not leaf.
26106 (sem_function::compare_polymorphic_p): Likewise.
26108 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26110 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26111 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26112 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26113 fold-const.h, tree-check.h.
26115 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
26119 * ipa-inline.c (compute_uninlined_call_time,
26120 compute_inlined_call_time): Use counts for extra precision when
26122 (big_speedup_p): Fix formating.
26123 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26124 (relative_time_benefit): Remove.
26125 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26126 merge guessed and read profile paths.
26127 (inline_small_functions): Count only !optimize_size functions into
26128 initial size; be more lax about sanity check when profile is used;
26129 be sure to update inlined function profile when profile is read.
26131 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
26134 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26135 cost when edge becomes direct.
26136 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26137 is resolved or when introducing new speculation.
26139 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
26143 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26144 '||' to fix typo issue.
26146 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26147 accept and return NULL.
26149 2015-01-12 Martin Liska <mliska@suse.cz>
26151 * cgraph.c (cgraph_edge::remove_callee): Move function to header
26152 file for being inlined.
26153 (cgraph_set_edge_callee): Delete.
26154 (cgraph_edge::redirect_callee): Move function to header file
26156 (cgraph_edge::make_direct): Use new function.
26157 (cgraph_edge::dump_edge_flags): New function created from
26158 static dump_edge_flags function.
26159 (cgraph_node::dump): Use new function.
26160 (cgraph_edge::verify_count_and_frequency): New function created
26161 from verify_edge_count_and_frequency.
26162 (cgraph_edge::verify_corresponds_to_fndecl): New function created
26163 from verify_edge_corresponds_to_fndecl.
26164 (verify_edge_corresponds_to_fndecl): Delete.
26165 (cgraph_node::verify_node): Use new function.
26166 * cgraph.h (cgraph_edge::set_callee): New function.
26167 (cgraph_edge::dump_edge_flags): Likewise.
26168 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26170 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
26172 * ipa-utils.c (estimate_function_body_sizes): Do not
26173 free node params when called late with early=true.
26175 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
26177 * doc/md.texi (Instruction Patterns): Rewrite text for
26179 (Example): Likewise.
26181 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
26183 * doc/invoke.texi (Option Summary): Break long lines.
26184 [(-fdiagnostics-color)]: Put long literal in @smallexample
26186 [(-fsanitize-recover)]: Likewise.
26187 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26188 [(-ffast-math)]: Likewise.
26189 [(--param max-inline-insns-recursive)]: Likewise.
26190 [(--param max-inline-recursive-depth)]: Likewise.
26191 [(-mno-text-section-literals)]: Likewise.
26193 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
26195 * doc/install.texi: Update for libgomp being renamed from "GNU
26196 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26198 * doc/sourcebuild.texi: Likewise.
26200 2015-01-10 Anthony Green <green@moxielogic.com>
26202 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26203 mul.x availability for moxiebox configuration.
26205 2015-01-09 Anthony Green <green@moxielogic.com>
26207 * config/moxie/moxie.md: Tabify assembly output.
26209 2015-01-09 Anthony Green <green@moxielogic.com>
26211 * config/moxie/moxie.md (CC_REG): Correct register definition.
26213 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
26215 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26216 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
26219 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26221 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26223 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
26224 Jakub Jelinek <jakub@redhat.com>
26226 PR middle-end/64412
26227 * lto-streamer.h (lto_stream_offload_p): New declaration.
26228 * lto-streamer.c (lto_stream_offload_p): New variable.
26229 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26230 at the same time as section_name_prefix.
26231 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26232 if lto_stream_offload_p.
26233 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26234 stream TREE_TARGET_OPTION if lto_stream_offload_p.
26235 (write_ts_function_decl_tree_pointers): Don't
26236 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26237 * tree-streamer-in.c (unpack_value_fields): Don't stream
26238 TREE_TARGET_OPTION in if ACCEL_COMPILER.
26239 (lto_input_ts_function_decl_tree_pointers): Don't stream
26240 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26241 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26242 instead of section_name_prefix string comparisons.
26244 2015-01-09 Jakub Jelinek <jakub@redhat.com>
26246 PR rtl-optimization/64536
26247 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26250 2015-01-09 Michael Collison <michael.collison@linaro.org>
26252 PR tree-optimization/64322
26253 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26254 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26256 2015-01-09 Tom de Vries <tom@codesourcery.com>
26258 PR rtl-optimization/64539
26259 * regcprop.c (kill_clobbered_values): Factor out of ...
26260 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
26261 instead of note_stores with kill_clobbered_value.
26263 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26265 * ginclude/unwind-arm-common.h: Revert previous commit.
26267 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
26269 * config.gcc (arm*-*-freebsd*): New configuration.
26270 * config/arm/freebsd.h: New file.
26271 * config.host: Add extra components for arm*-*-freebsd*.
26272 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26273 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26275 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26277 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26279 * config/rs6000/t-rtems: Add e6500 multilibs.
26281 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26283 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26286 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26288 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26289 MULTILIB_EXCEPTIONS.
26291 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26293 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26294 MULTILIB_EXCEPTIONS.
26296 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
26298 * config/arm/t-rtems-eabi: Rename to...
26299 * config/arm/t-rtems: ...this.
26300 * config/arm/rtems-eabi.h: Rename to...
26301 * config/arm/rtems.h: ...this.
26302 * config.gcc (arm*-*-rtems*): Reflect changes above.
26304 2015-01-09 Richard Biener <rguenther@suse.de>
26306 PR tree-optimization/64410
26307 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26309 (execute_update_addresses_taken): Deal with that.
26310 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26311 loads/stores for complex variables.
26313 2015-01-09 Martin Liska <mliska@suse.cz>
26315 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26317 (func_checker::compare_memory_operand): New function.
26318 (func_checker::compare_operand): Split case to newly
26320 (func_checker::compare_cst_or_decl): New function.
26321 (func_checker::compare_gimple_call): Identify
26323 (func_checker::compare_gimple_assign): Likewise.
26324 * ipa-icf-gimple.h: New function.
26326 2015-01-09 Martin Liska <mliska@suse.cz>
26329 * sreal.c (sreal::dump): Change unsigned format to signed for
26331 (sreal::to_double): Replace exp2 with scalbln.
26333 2015-01-09 Martin Liska <mliska@suse.cz>
26335 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26336 * ipa-icf.c (sem_function::equals_private): Add support for target and
26337 (sem_item_optimizer::merge_classes): Remove redundant function
26338 optimization flags comparison.
26339 * tree.h (target_opts_for_fn): New function.
26341 2015-01-09 Tom de Vries <tom@codesourcery.com>
26343 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26345 2015-01-09 Kito Cheng <kito@0xlab.org>
26347 PR rtl-optimization/64348
26348 * lra-constraints.c (split_reg): Fix caller-save store/restore
26349 instruction generation.
26351 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
26353 PR gcov-profile/61790
26354 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26355 long long. Fallback to int64_t if host doesn't have long long and
26356 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
26358 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26360 PR tree-optimization/63989
26361 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26362 from 1000 to 10000.
26363 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26364 (get_stridx): If we don't have a record for certain SSA_NAME,
26365 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26366 constant offset, call get_stridx_plus_constant.
26367 (get_stridx_plus_constant): New function.
26368 (zero_length_string): Don't use get_stridx here.
26371 PR middle-end/64388
26372 * dse.c (struct insn_info): Mention frame_read set also
26373 before reload for tail calls on some targets.
26374 (scan_insn): Revert 2014-12-22 change. Set frame_read
26375 also before reload for tail calls if
26376 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
26377 instead of add_non_frame_wild_read for non-const/memset
26378 tail calls after reload.
26380 2015-01-08 Jason Merrill <jason@redhat.com>
26382 * ubsan.c (do_ubsan_in_current_function): New.
26383 (pass_ubsan::gate): Use it.
26384 * ubsan.h: Declare it.
26385 * convert.c (convert_to_integer): Use it.
26387 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26390 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26391 compare_code when it is unconditionally overwritten afterwards.
26392 Use ix86_reverse_condition instead of reverse_condition. Don't
26393 change code if *reverse_condition* returned UNKNOWN and don't
26394 swap ct/cf and negate diff in that case.
26396 2015-01-08 Mike Stump <mikestump@comcast.net>
26398 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26399 (pass_tsan_O0::gate): Likewise.
26400 * extend.texi (Function Attributes): Add no_sanitize_thread
26403 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
26405 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26406 for registering builtins.
26407 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26408 add -fopenmp to the argv_obstack used when invoking
26409 compile_for_target.
26411 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26412 add "-m32" or "-m64" to argv_obstack.
26413 (generate_host_descr_file): Likewise, when invoking host_compiler.
26414 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26417 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
26419 * config/sh/sh-mem.cc: Use constant as second operand when emitting
26422 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
26425 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26426 constant load if constant operand fits into I08.
26428 2015-01-08 Jakub Jelinek <jakub@redhat.com>
26431 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26432 and TREE_THIS_VOLATILE for MEM_REFs.
26433 (build5_stat): Fix up initialization of TREE_READONLY and
26434 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26436 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
26439 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26440 of r for the second alternative of the destination operand.
26442 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
26445 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26447 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
26449 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26451 ([-fivar-visibility], [-fvisibility]): Likewise.
26453 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
26455 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26456 the file where @code, @command, etc is more appropriate.
26458 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
26460 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26461 of -mrecip= documentation.
26463 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26466 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26467 correct reload handler if -m32 -mpowerpc64 is used.
26469 2015-01-06 Tom de Vries <tom@codesourcery.com>
26471 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26473 2015-01-08 Christian Bruel <christian.bruel@st.com>
26476 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26478 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
26480 PR tree-optimization/63259
26481 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26482 if optab exists for 16bit byteswap.
26484 2015-01-06 Jakub Jelinek <jakub@redhat.com>
26486 * opts.c (common_handle_option): Add support for
26487 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26488 * doc/invoke.texi: Document -fno-sanitize=all,
26489 -f{,no-}sanitize-recover=all. Document that
26490 -fsanitize=float-cast-overflow is not enabled
26491 by -fsanitize=undefined. Fix up documentation
26492 of -f{,no-}sanitize-recover.
26494 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
26496 * config.gcc: Add Visium support.
26497 * configure.ac: Likewise.
26498 * configure: Regenerate.
26499 * doc/extend.texi (interrupt attribute): Add Visium.
26500 * doc/invoke.texi: Document Visium options.
26501 * doc/install.texi: Document Visium target.
26502 * doc/md.texi: Document Visium constraints.
26503 * common/config/visium: New directory.
26504 * config/visium: Likewise.
26506 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
26508 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26509 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26511 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
26513 * combine.c (combine_validate_cost): Do not count the cost of a
26514 split I2 twice. Do not display it twice in the dump, either.
26516 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
26518 Revert parts of r219199.
26519 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
26521 ([-Wtraditional]): Restore markup on <limits.h>.
26523 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
26526 * doc/invoke.texi: Document -Wsuggest-override.
26528 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
26530 PR rtl-optimization/64287
26531 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
26532 (process_options): Disable flag_ipa_ra if profiling.
26534 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
26536 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
26538 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
26540 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
26541 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
26542 put under #if TARGET_LOOPS guard.
26544 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
26546 * config/i386/i386.c (output_387_binary_op): Use std::swap.
26548 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
26550 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
26551 * rtl.h (refers_to_regno_p): Add overload.
26553 * bt-load.c: Likewise.
26554 * combine.c: Likewise.
26555 * df-scan.c: Likewise.
26556 * sched-deps.c: Likewise.
26557 * config/s390/s390.c: Likewise.
26558 * config/m32r/m32r.c: Likewise.
26559 * config/rs6000/spe.md: Likewise.
26560 * config/rs6000/rs6000.c: Likewise.
26561 * config/pa/pa.c: Likewise.
26562 * config/stormy16/stormy16.c: Likewise.
26563 * config/cris/cris.c: Likewise.
26564 * config/arc/arc.md: Likewise.
26565 * config/arc/arc.c: Likewise.
26566 * config/sh/sh.md: Likewise.
26567 * config/sh/sh.c: Likewise.
26568 * config/frv/frv.c: Likewise.
26570 2015-01-05 Jakub Jelinek <jakub@redhat.com>
26573 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
26574 call as cleanup of the whole body.
26575 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
26576 * tsan.c (replace_func_exit): New function.
26577 (instrument_func_exit): Moved earlier.
26578 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
26579 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
26581 (tsan_pass): Don't call instrument_func_exit.
26582 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
26583 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
26587 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
26588 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
26589 it to libubsan handler instead of EXPR. Fold comparisons earlier,
26590 if the result is integer_zerop, return NULL_TREE.
26591 * convert.c (convert_to_integer): Pass expr as ARG.
26593 PR tree-optimization/64465
26594 * tree-inline.c (redirect_all_calls): During inlining
26595 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
26596 changed the stmt to a non-throwing call.
26598 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
26600 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
26601 etc markup throughout the file.
26603 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
26605 Enable experimental TSAN support for Ada.
26606 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
26608 2015-01-05 Jakub Jelinek <jakub@redhat.com>
26610 PR tree-optimization/64494
26611 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
26612 clear SSA_NAME_ANTI_RANGE_P flag.
26614 2015-01-05 Marek Polacek <polacek@redhat.com>
26616 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
26618 2015-01-05 Jakub Jelinek <jakub@redhat.com>
26620 Update copyright years.
26622 * gcc.c (process_command): Update copyright notice dates.
26623 * gcov-dump.c: Ditto.
26625 * doc/cpp.texi: Bump @copying's copyright year.
26626 * doc/cppinternals.texi: Ditto.
26627 * doc/gcc.texi: Ditto.
26628 * doc/gccint.texi: Ditto.
26629 * doc/gcov.texi: Ditto.
26630 * doc/install.texi: Ditto.
26631 * doc/invoke.texi: Ditto.
26633 * auto-profile.c, auto-profile.h: Fix up Copyright line.
26635 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
26637 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
26639 ([-fvtable-verify], [-fvtv-debug]): Likewise.
26640 ([-Wabi]): Likewise.
26641 ([-fmessage-length]): Likewise.
26642 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
26643 ([-Wno-discarded-qualifiers]): Likewise.
26644 ([-Wnodiscarded-array-qualifiers]): Likewise.
26645 ([-Wno-virtual-move-assign]): Likewise.
26646 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
26647 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
26648 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
26649 ([-fsanitize-undefined-trap-on-error]): Likewise.
26650 ([-floop-interchange]): Likewise.
26651 ([-ftree-coalesce-inlined-vars]): Likewise.
26652 ([-fvect-cost-model]): Likewise.
26653 ([-flto]): Likewise.
26654 ([--param]): Likewise.
26655 (Spec Files): Likewise.
26656 ([-mstrict-align]): Likewise.
26657 ([-mfix-cortex-a53-835769]): Likewise.
26658 ([-march], [-mtune]): Likewise.
26659 ([-mpic-register]): Likewise.
26660 ([-munaligned-access]): Likewise.
26661 ([-msp8]): Likewise.
26662 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
26663 (AVR Built-in Macros): Likewise.
26664 ([-mpreferred-stack-boundary]): Likewise.
26665 ([-mtune-crtl]): Likewise.
26666 ([-mashf]): Likewise.
26667 ([-mmcu=]): Likewise.
26668 ([-minrt]): Likewise.
26669 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
26670 ([-mupper-regs]): Likewise.
26671 ([-matomic-model]): Likewise.
26672 ([-mdiv]): Likewise.
26673 ([-mzdcbranch]): Likewise.
26674 ([-mdisable-callt]): Likewise.
26675 ([-msoft-float]): Likewise.
26676 ([-m8byte-align]): Likewise.
26677 ([-fstack-reuse]): Likewise.
26679 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
26681 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
26682 Fix markup, light copy-editing.
26683 ([-fauto-profile]): Rewrite to fix formatting and content
26686 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
26688 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
26689 Copy-edit description.
26690 ([-fisolate-erroneous-paths-attribute]): Likewise.
26691 * common.opt (fisolate-erroneous-paths-dereference):
26692 Copy-edit description.
26693 (fisolate-erroneous-paths-attribute): Likewise.
26695 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
26697 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
26700 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
26702 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
26703 ([-fvtv-debug]): Likewise.
26704 ([-Wc++-compat]): Likewise.
26705 ([-Wc++11-compat]): Likewise.
26706 ([-Wc++14-compat]): Likewise.
26707 ([-Wno-sized-deallocation]): Likewise.
26708 ([-femit-class-debug-always]): Likewise.
26709 ([-femit-struct-debug-detailed]): Likewise.
26710 ([-fno-keep-inline-dllexport]): Likewise.
26711 ([-fira-algorithm]): Likewise.
26712 ([-fira-region]): Likewise.
26713 ([-flra-remat]): Likewise.
26714 ([-fipa-ra]): Likewise.
26715 ([-fhoist-adjacent-loads]): Likewise.
26716 ([-fisolate-erroneous-paths-dereference]): Likewise.
26717 ([-fisolate-erroneous-paths-attribute]): Likewise.
26718 ([-ftree-switch-conversion]): Likewise.
26719 ([-ftree-tail-merge]): Likewise.
26720 ([-ftree-loop-if-convert]): Likewise.
26721 ([-ftree-loop-if-convert-stores]): Likewise.
26722 ([-ftree-loop-distribution]): Likewise.
26723 ([-ftree-loop-distribute-patterns]): Likewise.
26724 ([-flto-compression-level]): Likewise.
26725 ([-flto-report]): Likewise.
26726 ([-flto-report-wpa]): Likewise.
26727 ([-fuse-linker-plugin]): Likewise.
26728 ([-mfix-cortex-a53-835769]): Likewise.
26729 ([-mno-fix-cortex-a53-835769]): Likewise.
26730 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
26731 explicit listing; add a note to the discussion indicating they
26732 exist. Reorder table to group similar options. Add missing
26733 @opindex entries. Add @need commands throughout the table to
26734 allow it to be split across multiple pages.
26735 ([-m8bit-idiv]): Fix @opindex.
26736 ([-mavx256-split-unaligned-load]): Likewise.
26737 ([-mavx256-split-unaligned-store]): Likewise.
26738 ([-mstack-protector-guard]): Likewise.
26739 ([-mcpu=]): Likewise.
26740 ([-mcpu]): Likewise.
26741 ([-mpointer-size=]): Likewise.
26743 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
26745 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
26746 instead of `m' constraint. Likewise for unnamed movb comparison
26747 patterns using reg_before_reload_operand predicate.
26748 * config/pa/predicates.md (reg_before_reload_operand): Tighten
26749 predicate to reject register index and LO_SUM DLT memory forms
26752 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
26754 * doc/invoke.texi (Option Summary): Fix spelling of
26755 -fdevirtualize-at-ltrans.
26756 ([-fdevirtualize]): Fix markup.
26757 ([-fdevirtualize-speculatively]): Fix typo.
26758 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
26759 implementor-speaky.
26760 * common.opt (fdevirtualize-at-ltrans): Likewise.
26761 * ipa-devirt.c: Fix typos in comments throughout the file.
26762 (ipa_devirt): Fix typos in format strings for dump output.
26764 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
26766 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
26767 discussion of defaults, light copy-editing.
26769 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26771 * tsan.c (instrument_expr): corrected previous checkin.
26773 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26775 Instrument bit field and unaligned accesses for TSAN.
26776 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
26777 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
26778 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
26779 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
26780 unaligned memory regions.
26782 2015-01-01 Anthony Green <green@moxielogic.com>
26784 * config/moxie/predicates.md (moxie_general_movsrc_operand):
26785 Restrict move source register offsets to 16 bits.
26787 Copyright (C) 2015 Free Software Foundation, Inc.
26789 Copying and distribution of this file, with or without modification,
26790 are permitted in any medium without royalty provided the copyright
26791 notice and this notice are preserved.