gimple-fold.c (fold_gimple_cond): Do not require folding results to pass valid_gimple...
[gcc.git] / gcc / ChangeLog
1 2015-07-23 Richard Biener <rguenther@suse.de>
2
3 * gimple-fold.c (fold_gimple_cond): Do not require folding
4 results to pass valid_gimple_rhs_p.
5 * tree-cfg.h (fold_cond_expr_cond): Remove.
6 * tree-cfg.c (fold_cond_expr_cond): Likewise.
7 (make_edges): Do not call it.
8 * tree-inline.c (tree_function_versioning): Likewise.
9
10 2015-07-23 Tom de Vries <tom@codesourcery.com>
11
12 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13 vect_force_simple_reduction.
14 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15 (vect_is_simple_reduction_1): Add and handle
16 need_wrapping_integral_overflow parameter.
17 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18 need_wrapping_integral_overflow parameter.
19 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
21 decl.
22
23 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
24
25 PR tree-optimization/66926,66951
26 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
27 INNER_LOOP and fix up condition for renaming virtual operands.
28
29 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30
31 * combine.c (try_combine): Use std::swap instead of manually
32 swapping.
33
34 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
35
36 * config/mips/i6400.md: New file.
37 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
38 (mips64r6): Likewise.
39 (i6400): Define.
40 * config/mips/mips-tables.opt: Regenerate.
41 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
42 (mips_issue_rate): Add support for i6400.
43 (mips_multipass_dfa_lookahead): Likewise.
44 * config/mips/mips.h (TUNE_I6400): Define.
45 * config/mips/mips.md: Include i6400.md.
46 (processor): Add i6400.
47 * doc/invoke.texi (-march=@var{arch}): Add i6400.
48
49 2015-07-23 Richard Biener <rguenther@suse.de>
50
51 PR middle-end/66916
52 * match.pd: Guard widen and sign-change comparison simplification
53 with single_use.
54
55 2015-07-23 Richard Biener <rguenther@suse.de>
56
57 PR tree-optimization/66945
58 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
59 ::before_dom_children): Force the propagators idea of
60 non-executable edges to materialize, not what the folder
61 chooses.
62
63 2015-07-23 Richard Biener <rguenther@suse.de>
64
65 * gimple.h (gimple_cond_make_false): Use 0 != 0.
66 (gimple_cond_make_true): Use 1 != 0.
67
68 2015-07-22 DJ Delorie <dj@redhat.com>
69
70 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
71 slashes.
72
73 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
74 (ashrhi3): Likewise.
75 (lshrhi3): Likewise.
76 (movhi): Take advantage of zero-extend to load small constants.
77 (movpsi): Likewise.
78 (and<mode>3): Likewise.
79 (zero_extendqihi2): Likewise.
80 (zero_extendqisi2): New.
81 * config/msp430/constraints.md (N,O): New.
82 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
83
84 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
85
86 PR target/66954
87 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
88 to enum feature_priority and feature_list.
89 (fold_builtin_cpu): Add F_AES to enum processor_features
90 and isa_names_table.
91
92 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
93
94 PR driver/66737
95 * config/i386/linux-common.h (MPX_SPEC): Use linker option
96 for 64bit target only.
97
98 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
99
100 * config/nvptx/nvptx.c: Expand some comments.
101
102 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
103
104 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
105 (cortex_a53_advsimd): ...This.
106
107 2015-07-22 Richard Biener <rguenther@suse.de>
108
109 * genmatch.c (expr::gen_transform): Clarify error message
110 and display location.
111
112 2015-07-22 Richard Biener <rguenther@suse.de>
113
114 * genmatch.c (struct operand): Add location member.
115 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
116 constructors.
117 (struct simplify): Remove match_location and result_location
118 members.
119 (elsehwere): Adjust.
120
121 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
122
123 * config/mips/m5100.md: New file.
124 * config/mips/mips-cpus.def (m5100, m5101): Define.
125 * config/mips/mips-tables.opt: Regenerate.
126 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
127 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
128 -march=m5101 to -mips32r5.
129 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
130 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
131 !-msoft-float.
132 * config/mips/mips.md: Include m5100.md.
133 (processor): Add m5100.
134 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
135
136 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
137
138 * config/mips/mips-cpus.def (interaptiv): Define.
139 * config/mips/mips-tables.opt: Regenerate.
140 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
141 -mips32r2.
142 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
143 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
144
145 2015-07-22 Jiong Wang <jiong.wang@arm.com>
146
147 PR target/63521
148 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
149 (HONOR_REG_ALLOC_ORDER): Define.
150
151 2015-07-22 Richard Biener <rguenther@suse.de>
152
153 PR tree-optimization/66952
154 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
155 blocks we end up executing unconditionally reset all SSA
156 info such as range and alignment.
157 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
158 * tree-ssanames.c (reset_flow_sensitive_info): New function.
159
160 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
161
162 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
163 typo in attribute.
164
165 2015-07-22 Richard Biener <rguenther@suse.de>
166
167 * genmatch.c (parser::parse_result): Properly handle
168 match with result operands and conditions.
169
170 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
171
172 PR target/63870
173 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
174 Add qualifier_struct_load_store_lane_index.
175 (aarch64_types_loadstruct_lane_qualifiers): Use
176 qualifier_struct_load_store_lane_index for lane index argument for
177 last argument.
178 (aarch64_types_storestruct_lane_qualifiers): Ditto.
179 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
180 (aarch64_simd_expand_args): Add new argument describing mode of
181 builtin. Check lane bounds for arguments with
182 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
183 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
184 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
185 (aarch64_simd_expand_builtin): Handle arguments with
186 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
187 aarch64_simd_expand_args.
188 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
189 vst[234]_lane with BUILTIN_VALLDIF.
190 * config/aarch64/aarch64-simd.md:
191 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
192 endianness reversal on lane index.
193 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
194 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
195 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
196 (vec_store_lanesci_lane<mode>): Ditto.
197 (vec_store_lanesxi_lane<mode>): Ditto.
198 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
199 reversal of lane index.
200 (aarch64_ld3_lane<mode>): Ditto.
201 (aarch64_ld4_lane<mode>): Ditto.
202 (aarch64_st2_lane<mode>): Ditto.
203 (aarch64_st3_lane<mode>): Ditto.
204 (aarch64_st4_lane<mode>): Ditto.
205 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
206 to qmode. Add new mode parameter. Update uses.
207 (__LD3_LANE_FUNC): Ditto.
208 (__LD4_LANE_FUNC): Ditto.
209 (__ST2_LANE_FUNC): Ditto.
210 (__ST3_LANE_FUNC): Ditto.
211 (__ST4_LANE_FUNC): Ditto.
212
213 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
214
215 * doc/invoke.texi (Language Independent Options): Rename node to
216 Diagnostic Message Formatting Options.
217
218 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
219
220 PR ipa/66424.
221 * lra-remat.c (operand_to_remat): Prevent using insns with input
222 subregs processed separately by IRA.
223
224 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
225
226 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
227 straight loops.
228 (single_imm_use): Check for iterator node.
229 (num_imm_uses): Likewise.
230 * tree-ssa-operands.c (has_zero_uses_1): Delete.
231 (single_imm_use_1): Check for iterator node.
232
233 2015-07-21 Mike Frysinger <vapier@gentoo.org>
234 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
235
236 * configure.ac: Add check for new options in isl-0.15.
237 * config.in, configure: Rebuilt.
238 * graphite-blocking.c: Include <isl/constraint.h>
239 * graphite-interchange.c, graphite-poly.c: Likewise.
240 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
241 * graphite.c: Likewise.
242 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
243 <isl/union_set.h>.
244 * graphite-dependences.c: Include <isl/constraint.h>.
245 (max_number_of_out_dimensions): Returns isl_stat.
246 (extend_schedule_1): Likewise
247 (extend_schedule): Corresponding changes.
248 * graphite-optimize-isl.c: Include <isl/constraint.h> and
249 <isl/union_set.h>.
250 (getSingleMap): Change return type of isl_stat.
251 (optimize_isl): Conditionally use
252 isl_options_set_schedule_serialize_sccs.
253 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
254 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
255
256 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
257
258 PR target/66956
259 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
260 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
261
262 2015-07-21 Richard Biener <rguenther@suse.de>
263
264 PR tree-optimization/66948
265 * genmatch.c (capture_info::walk_match): Also recurse to
266 captures. Properly compute expr state from captures of
267 captures.
268 * match.pd: Add single-use guards to
269 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
270
271 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
272
273 * config/nvptx/mkoffload.c (process): Add static destructor call.
274
275 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
276
277 PR middle-end/66915
278 * match.pd (A - B -> A + (-B)): Don't allow folding
279 when type if a fixed-point type.
280
281 2015-07-20 DJ Delorie <dj@redhat.com>
282
283 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
284 (iorqi3_real): Likewise for set1.
285
286 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
287
288 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
289 for !TARGET_64BIT.
290
291 2015-07-20 Aditya Kumar <hiraditya@msn.com>
292
293 * graphite-isl-ast-to-gimple.c:
294 Refactor so that each function can access 'region'. This will help
295 maintain a parameter rename_map within a region.
296
297 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
298
299 * config/rs6000/rs6000.md (*lt0_disi): New.
300
301 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
302
303 PR target/66217
304 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
305 "available letters" comment.
306 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
307 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
308 and_2rld_operand): Delete.
309 (and_operand): Adjust.
310 (rotate_mask_operator): New.
311 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
312 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
313 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
314 extract_ME): Delete.
315 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
316 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
317 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
318 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
319 rs6000_emit_2insn_and): New.
320 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
321 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
322 includes_rldic_lshift_p, includes_rldicr_lshift_p,
323 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
324 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
325 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
326 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
327 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
328 rs6000_emit_2insn_and): New.
329 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
330 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
331 handling.
332 <NOT>: Don't fall through to next case.
333 <AND>: Handle the various rotate-and-mask cases directly.
334 <IOR>: Always cost as one insn.
335 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
336 (and<mode>3): Adjust expander for the new patterns.
337 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
338 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
339 (*and<mode>3_imm_dot_shifted): New.
340 (*and<mode>3_mask): Delete, rewrite as ...
341 (and<mode>3_mask): ... New.
342 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
343 (andsi3_internal0_nomc): Delete.
344 (*andsi3_internal6): Delete.
345 (*and<mode>3_2insn): New.
346 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
347 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
348 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
349 *insvdi_internal3): Delete.
350 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
351 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
352 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
353 *ior<mode>_mask): New.
354 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
355 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
356 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
357 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
358 Delete.
359 (ashr<mode>3): Delete expander.
360 (*ashr<mode>3): Rename to ...
361 (ashr<mode>3): ... This.
362 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
363 (*rotldi3_internal4, *rotldi3_internal5 and split,
364 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
365 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
366 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
367 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
368 (splitter for loading a mask): Adjust.
369 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
370
371 2015-07-20 Marek Polacek <polacek@redhat.com>
372
373 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
374 output_add_clobbers, output_added_clobbers_hard_reg_p,
375 gen_rtx_scratch): Remove declarations.
376
377 2015-07-20 Marek Polacek <polacek@redhat.com>
378
379 PR c++/55095
380 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
381
382 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
383
384 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
385 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
386
387 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
388
389 * combine.c (combine_simplify_rtx): Move simplification step
390 before various transformations/substitutions.
391
392 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
393
394 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
395 (struct int_traits): Likewise.
396
397 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
398
399 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
400 function to vmsdbgout_function_decl.
401
402 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
403
404 PR target/66922
405 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
406 from misaligned positions.
407 (ix86_expand_pinsr): Reject insertions to misaligned positions.
408
409 2015-07-18 Sebastian Pop <s.pop@samsung.com>
410
411 PR middle-end/46851
412 PR middle-end/60340
413 * Makefile.in: Removed omega.o.
414 * common.opt: Document flag fcheck-data-deps as deprecated.
415 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
416 its associated params: omega-max-vars, omega-max-geqs,
417 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
418 omega-max-keys, omega-eliminate-redundant-constraints.
419 * doc/loop.texi: Remove all the section on Omega.
420 * graphite-blocking.c: Include missing params.h: it used to be
421 included through tree-data-ref.h and omega.h.
422 * graphite-isl-ast-to-gimple.c: Same.
423 * graphite-optimize-isl.c: Same.
424 * graphite-sese-to-poly.c: Same.
425 * graphite.c: Same.
426 * omega.c: Remove.
427 * omega.h: Remove.
428 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
429 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
430 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
431 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
432 * passes.def: Remove pass_check_data_deps.
433 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
434 (dump_conflict_function): Same.
435 (dump_subscript): Same.
436 (print_direction_vector): Same.
437 (print_dir_vectors): Same.
438 (print_lambda_vector): Same.
439 (print_dist_vectors): Same.
440 (dump_data_dependence_relation): Same.
441 (dump_data_dependence_relations): Same.
442 (dump_dist_dir_vectors): Same.
443 (dump_ddrs): Same.
444 (init_omega_eq_with_af): Removed.
445 (omega_extract_distance_vectors): Removed.
446 (omega_setup_subscript): Removed.
447 (init_omega_for_ddr_1): Removed.
448 (init_omega_for_ddr): Removed.
449 (ddr_consistent_p): Removed.
450 (compute_affine_dependence): Do not use omega to check data
451 dependences.
452 (compute_data_dependences_for_bb): Removed.
453 (analyze_all_data_dependences): Removed.
454 (tree_check_data_deps): Removed.
455 * tree-data-ref.h: Do not include omega.h.
456 (compute_data_dependences_for_bb): Removed.
457 (tree_check_data_deps): Removed.
458 * tree-ssa-loop.c (pass_check_data_deps): Removed.
459 (make_pass_check_data_deps): Removed.
460 * tree-ssa-phiopt.c: Include params.h.
461 * tree-vect-data-refs.c: Same.
462 * tree-vect-slp.c: Same.
463
464 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
465
466 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
467 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
468 (mem->fpreg splitters): Ditto.
469 (general_operand->nonimmediate_operand splitter): Use explicit modes.
470 Disable DFmode for TARGET_64BIT.
471
472 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
473
474 PR target/66906
475 * config/i386/i386.c (ix86_expand_prologue): Replicate static
476 chain on the stack.
477
478 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
479
480 * config/nvptx/mkoffload.c (process): Constify host data.
481 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
482 Constify host data.
483 (generate_host_descr_file): Likewise.
484
485 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
486 Sebastian Pop <s.pop@samsung.com>
487
488 PR middle-end/61929
489 * graphite-dependences.c (add_pdr_constraints): Renamed
490 pdr->extent to pdr->subscript_sizes.
491 * graphite-interchange.c (build_linearized_memory_access): Add
492 back all gcc_assert's that the "isl_int to isl_val conversion"
493 patch has removed. Refactored.
494 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
495 * graphite-poly.c (new_poly_dr): Same.
496 (free_poly_dr): Same.
497 * graphite-poly.h (struct poly_dr): Same.
498 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
499 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
500 * graphite-scop-detection.h: Fix space.
501 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
502 back all gcc_assert's removed by a previous patch.
503 (wrap): Remove the_isl_ctx global variable that the same patch has
504 added.
505 (build_loop_iteration_domains): Same.
506 (add_param_constraints): Same.
507 (pdr_add_data_dimensions): Same. Refactored.
508 (build_poly_dr): Renamed extent to subscript_sizes.
509
510 2015-07-17 Marek Polacek <polacek@redhat.com>
511
512 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
513 * match.pd: ... here.
514
515 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
516
517 * config/nvptx/mkoffload.c (process): Constify target data.
518 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
519 Constify target data.
520 (generate_target_offloadend_file): Likewise.
521
522 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
523
524 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
525 to allow renaming of PHI arguments on edges incoming from outer
526 loop header, add corresponding check before start PHI iterator.
527 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
528 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
529 with true force_vectorize. Set-up dominator for outer loop too.
530 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
531 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
532 was marked with force_vectorize and has restricted cfg.
533 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
534 inner loop.
535 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
536 do peeling for outer loops.
537
538 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
539 Matthias Klose <doko@ubuntu.com>
540
541 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
542 build-sysroot, sysroot from the `Miscenalleous configure options' to
543 the `Directories' section and strip trailing `/' from with_sysroot.
544 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
545 * configure: Regenerated.
546
547 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
548
549 PR target/66824
550 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
551 (TARGET_HARD_DF_REGS): Ditto.
552 (TARGET_HARD_XF_REGS): Ditto.
553 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
554 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
555 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
556 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
557 (*movsf_internal): Add alternatives 16 and 17. Enable
558 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
559
560 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
561
562 PR rtl-optimization/66891
563 * calls.c (expand_call): Wrap precompute_register_parameters with
564 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
565
566 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
567
568 * config/nvptx/mkoffload.c (process): Constify mapping variables.
569 Define target data struct and initialize it.
570
571 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
572
573 PR rtl-optimization/66626
574 * ira.h (emit-rtl.h): Include.
575 (non_spilled_static_chain_regno_p): New.
576 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
577 unless it is non spilled static chain pseudo.
578 (assign_hard_rego): Spill memory profitable allocno unless it is
579 non spilled static chain pseudo.
580 (allocno_spill_priority_compare): Put non spilled static chain
581 pseudo at the end of sorted array.
582 (improve_allocation): Do nothing if we have static chain and
583 non-local goto.
584 (allocno__priority_compare_func): Put non spilled static chain
585 pseudo at the beginning of sorted array.
586 (move_spill_restore): Ignore non spilled static chain pseudo.
587 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
588 to non spilled static chain pseudo.
589 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
590 pseudo at the beginning of sorted array.
591 (spill_for): Spill non spilled static chain pseudo last.
592 * lra-constraints.c (lra_constraints): Remove static chain pseudo
593 check for equivalence.
594
595 2015-07-16 Martin Liska <mliska@suse.cz>
596
597 PR ipa/66896.
598 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
599 dst_ctx if it does not exist.
600
601 2015-07-16 Martin Liska <mliska@suse.cz>
602
603 * hash-set.h (remove): New function.
604 (iterator): New iteration class for hash_set.
605
606 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
607
608 * genattrtab.c (make_canonical): Add a file_location parameter.
609 Use fatal_at rather than fatal.
610 (get_attr_value): Likewise. Update call to make_canonical.
611 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
612 (make_internal_attr): Update calls accordingly.
613
614 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
615
616 * read-md.h (message_with_line, error_with_line): Delete.
617 * read-md.c (message_with_line, error_with_line): Delete.
618 * gensupport.h: Include read-md.h.
619 (md_rtx_info): New structure.
620 (read_md_rtx): Use it. Return a bool success value.
621 * gensupport.c (read_md_rtx): Likewise.
622 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
623 (main): Update after interface changes.
624 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
625 (main): Update after interface changes.
626 * genattrtab.c (insn_code_number): Delete.
627 (optimize_attrs): Add a max_insn_code parameter and use it instead
628 of insn_code_number.
629 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
630 Use *_at rather than *_with_line functions.
631 (gen_insn): Likewise.
632 (gen_delay): Likewise.
633 (gen_insn_reserv): Likewise.
634 (gen_bypass): Take an md_rtx_info rather than an rtx.
635 (main): Update after interface changes. Use a local max_insn_code
636 variable instead of insn_code_number.
637 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
638 an rtx. Use fatal_at rather than fatal.
639 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
640 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
641 (gen_absence_set, gen_final_absence_set, gen_automaton)
642 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
643 (main): Update after interface changes.
644 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
645 and code number.
646 (main): Update after interface changes.
647 * genconditions.c (main): Use new read_md_rtx interface.
648 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
649 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
650 (main): Update after interface changes.
651 * genemit.c (insn_code_number, insn_index_number): Delete.
652 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
653 Use fatal_at rather than fatal.
654 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
655 rather than fatal.
656 (gen_split): Likewise.
657 (main): Update after interface changes.
658 * genextract.c (line_no): Delete.
659 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
660 Update call to walk_rtx.
661 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
662 rather than message_with_line.
663 (walk_rtx): Add an md_rtx_info argument. Update call to
664 VEC_safe_set_locstr.
665 (main): Update after interface changes.
666 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
667 and lineno. Use error_at rather than separate message_with_line
668 calls and have_error assignments.
669 (main): Update after interface changes.
670 * genmddump.c (main): Use new read_md_rtx interface.
671 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
672 (main): Update after interface changes.
673 * genoutput.c (next_code_number): Delete.
674 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
675 (gen_peephole, gen_expand, gen_split): Likewise.
676 (note_constraint): Likewise. Use *_at rather than *_with_line
677 functions.
678 (main): Update after interface changes.
679 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
680 rtx and lineno.
681 (main): Update after interface changes.
682 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
683 than an rtx and lineno.
684 (process_define_constraint): Likewise.
685 (process_define_register_constraint): Likewise.
686 (main): Update after interface changes.
687 * genrecog.c (next_insn_code, pattern_lineno): Delete.
688 (validate_pattern): Replace top-level rtx with an md_rtx_info.
689 Use *_at rather than *_with_line functions.
690 (match_pattern_2): Likewise.
691 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
692 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
693 Use *_at rather than *_with_line functions.
694 * gentarget-def.c (add_insn): New function.
695 (main): Use it. Use new read_md_rtx interface.
696
697 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
698
699 * gensupport.h (compute_test_codes): Take a file_location rather
700 than a line number.
701 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
702 rather than *_with_line functions.
703 (process_define_predicate): Update call to compute_test_codes.
704 * genpreds.c (validate_exp): Take a file_location rather than a
705 line number. Use *_at functions rather than *_with_line functions.
706 (process_define_predicate): Update call to validate_exp.
707 (constraint_data): Replace lineno field with a file_location.
708 (add_constraint): Take a file_location rather than a line number.
709 Use *_at functions rather than *_with_line functions. Fix error
710 message for address constraints. Update after changes to
711 validate_exp, constraint_data and compute_test_codes.
712 (process_define_constraint): Update accordingly.
713 (process_define_register_constraint): Likewise.
714
715 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
716
717 * genoutput.c (data): Use a file_location to record the source
718 position.
719 (nothing): Delete.
720 (idata, idata_end): Remove initialization.
721 (constraint_data): Replace lineno with a file_location.
722 (output_insn_data): Update after changes to data.
723 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
724 (scan_operands): Likewise, using *_at rather than *_with_line
725 functions.
726 (process_template): Likewise.
727 (validate_insn_alternatives): Likewise.
728 (validate_insn_operands): Likewise.
729 (validate_optab_operands): Likewise.
730 (init_insn_for_nothing): Initialize idata and idata_end.
731 (note_constraint): Update after changes to constraint_data,
732 using at rather than with_line functions.
733 (mdep_constraint_len): Take a file_location rather than a
734 line number. Use at rather than with_line functions.
735
736 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
737
738 * read-md.h (fatal_at): Declare.
739 * read-md.c (fatal_at): New function.
740 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
741 to record the source position.
742 (check_attr_test): Take a file_location instead of a line number.
743 Use fatal_at instead of fatal.
744 (check_attr_value): Update after above changes, using "at"
745 rather than "with_line" reporting functions.
746 (convert_set_attr_alternative): Likewise.
747 (gen_attr): Likewise.
748 (check_defs): Likewise. Don't assign to read_md_filename.
749 (gen_insn): Update initialization after above changes.
750 (gen_delay): Likewise.
751 (write_insn_cases): Print the filename for a define_peephole.
752 (gen_insn_reserv): Take a line number as argument and update
753 the call to check_attr_test.
754 (main): Pass a line number to gen_insn_reserv.
755
756 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
757
758 * read-md.h (file_location): New structure.
759 (directive_handler_t): Take a file_location rather than a line number.
760 (message_at, error_at): Declare.
761 (read_skip_construct): Delete.
762 * read-md.c (message_with_line_1): Replace with...
763 (message_at_1): ...this new function.
764 (message_at, error_at): New functions.
765 (message_with_line, error_with_line): Update to use message_at_1.
766 (handle_enum): Take a file_location rather than a line number
767 and use error_at for error reporting.
768 (handle_include): Likewise.
769 (read_skip_construct): Likewise. Make static.
770 (handle_file): Update after above changes. Pass a file_location
771 rather than a line number to handle_directive.
772 * gensupport.c (queue_elem): Replace separate filename and lineno
773 with a file_location.
774 (queue_pattern): Replace filename and lineno arguments with a
775 file_location. Update after change to queue_elem.
776 (process_define_predicate): Replace lineno argument with a
777 file_location and use error_at for error reporting. Update
778 after above changes.
779 (process_rtx): Likewise.
780 (subst_pattern_match): Likewise.
781 (get_alternatives_number): Likewise.
782 (alter_predicate_for_insn): Likewise.
783 (rtx_handle_directive): Likewise.
784 (is_predicable): Update after above changes, using error_at rather
785 than error_with_line.
786 (has_subst_attribute): Likewise.
787 (identify_predicable_attribute): Likewise.
788 (alter_attrs_for_subst_insn): Likewise.
789 (process_one_cond_exec): Likewise.
790 (process_substs_on_one_elem): Likewise.
791 (process_define_subst): Likewise.
792 (check_define_attr_duplicates): Likewise.
793 (read_md_rtx): Update after change to queue_elem.
794
795 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
796
797 * genoutput.c (next_index_number): Delete.
798 (data): Remove index_number.
799 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
800 (main): Remove manipulation of next_index_number.
801
802 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
803
804 * genattrtab.c (check_attr_value): Remove handling of null attrs.
805 (make_canonical): Likewise.
806
807 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
808
809 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
810 instead of adjust_address_nv.
811 (restore_stack_nonlocal): Likewise.
812 (nonlocal_goto): Likewise.
813
814 2015-07-16 Tom de Vries <tom@codesourcery.com>
815
816 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
817 not have a corresponding loop header phi.
818
819 2015-07-16 Tom de Vries <tom@codesourcery.com>
820
821 * tree-parloops.c (create_loads_for_reductions): Handle case that
822 reduction is unused.
823
824 2015-07-16 Richard Biener <rguenther@suse.de>
825
826 PR tree-optimization/66894
827 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
828 about deriving NE_EXPR from truncated values.
829
830 2015-07-16 Martin Liska <mliska@suse.cz>
831
832 * alloc-pool.h
833 (object_allocator): Add new class.
834 (pool_allocator::initialize): Use the underlying class.
835 (pool_allocator::allocate): Likewise.
836 (pool_allocator::remove): Likewise.
837 (operator new): A new generic allocator.
838 * asan.c (struct asan_mem_ref): Remove unused members.
839 (asan_mem_ref_new): Replace new operator with
840 object_allocator::allocate.
841 (free_mem_ref_resources): Change deallocation.
842 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
843 with object_allocator.
844 * config/sh/sh.c (add_constant): Replace new operator with
845 object_allocator::allocate.
846 (sh_reorg): Change call to a release method.
847 * cselib.c (struct elt_list): Remove unused members.
848 (new_elt_list): Replace new operator with
849 object_allocator::allocate.
850 (new_elt_loc_list): Likewise.
851 (new_cselib_val): Likewise.
852 (unchain_one_elt_list): Change delete operator with remove method.
853 (unchain_one_elt_loc_list): Likewise.
854 (unchain_one_value): Likewise.
855 (cselib_finish): Release newly added static allocators.
856 * cselib.h (struct cselib_val): Remove unused members.
857 (struct elt_loc_list): Likewise.
858 * df-problems.c (df_chain_alloc): Replace pool_allocator with
859 object_allocator.
860 * df-scan.c (struct df_scan_problem_data): Likewise.
861 (df_scan_alloc): Likewise.
862 * df.h (struct dataflow): Likewise.
863 * dse.c (struct read_info_type): Likewise.
864 (struct insn_info_type): Likewise.
865 (struct dse_bb_info_type): Likewise.
866 (struct group_info): Likewise.
867 (struct deferred_change): Likewise.
868 (get_group_info): Likewise.
869 (delete_dead_store_insn): Likewise.
870 (free_read_records): Likewise.
871 (replace_read): Likewise.
872 (check_mem_read_rtx): Likewise.
873 (scan_insn): Likewise.
874 (dse_step1): Likewise.
875 (dse_step7): Likewise.
876 * et-forest.c (struct et_occ): Remove unused members.
877 (et_new_occ): Use allocate instead of new operator.
878 (et_new_tree): Likewise.
879 (et_free_tree): Call release method explicitly.
880 (et_free_tree_force): Likewise.
881 (et_free_pools): Likewise.
882 (et_split): Use remove instead of delete operator.
883 * et-forest.h (struct et_node): Remove unused members.
884 * ipa-cp.c: Change pool_allocator to object_allocator.
885 * ipa-inline-analysis.c: Likewise.
886 * ipa-profile.c: Likewise.
887 * ipa-prop.c: Likewise.
888 * ipa-prop.h: Likewise.
889 * ira-build.c (initiate_cost_vectors): Cast return value.
890 (ira_allocate_cost_vector): Likewise.
891 * ira-color.c (struct update_cost_record): Remove unused members.
892 * lra-int.h (struct lra_live_range): Likewise.
893 (struct lra_copy): Likewise.
894 (struct lra_insn_reg): Likewise.
895 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
896 * lra.c (new_insn_reg): Replace new operator with allocate method.
897 (free_insn_regs): Same for operator delete.
898 (finish_insn_regs): Release new static allocator.
899 (finish_insn_recog_data): Likewise.
900 (lra_free_copies): Replace delete operator with remove method.
901 (lra_create_copy): Replace operator new with allocate method.
902 (invalidate_insn_data_regno_info): Same for remove method.
903 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
904 (free_debug_insn_changes): Replace delete operator with remove method.
905 (replace_oldest_value_reg): Replace operator new with allocate method.
906 (pass_cprop_hardreg::execute): Release new static variable.
907 * sched-deps.c (sched_deps_init): Change pool_allocator to
908 object_allocator.
909 * sel-sched-ir.c: Likewise.
910 * sel-sched-ir.h: Likewise.
911 * stmt.c (expand_case): Likewise.
912 (expand_sjlj_dispatch_table): Likewise.
913 * tree-sra.c (struct access): Remove unused members.
914 (struct assign_link): Likewise.
915 (sra_deinitialize): Release newly added static pools.
916 (create_access_1):Replace operator new with allocate method.
917 (build_accesses_from_assign): Likewise.
918 (create_artificial_child_access): Likewise.
919 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
920 pool_allocator to object_allocator.
921 * tree-ssa-pre.c: Likewise.
922 * tree-ssa-reassoc.c: Likewise.
923 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
924 * tree-ssa-strlen.c: Likewise.
925 * tree-ssa-structalias.c: Likewise.
926 * var-tracking.c (onepart_pool_allocate): New function.
927 (unshare_variable): Use the newly added function.
928 (variable_merge_over_cur): Likewise.
929 (variable_from_dropped): Likewise.
930 (variable_was_changed): Likewise.
931 (set_slot_part): Likewise.
932 (emit_notes_for_differences_1): Likewise.
933 (vt_finalize): Release newly added static pools.
934
935 2015-07-16 Martin Jambor <mjambor@suse.cz>
936
937 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
938 all uses. Fix two typos in its general comment.
939 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
940
941 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
942
943 * config/i386/linux-common.h (LINK_MPX): New.
944 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
945 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
946 indicating '-z bndplt' support by linker.
947 * configure: Regenerate.
948 * config.in: Regenerate.
949
950 2015-07-16 Richard Biener <rguenther@suse.de>
951
952 * fold-const.c (fold_widened_comparison): Remove.
953 (fold_sign_changed_comparison): Likewise.
954 (fold_comparison): Move widened and sign-changed comparison
955 simplification ...
956 * match.pd: ... to patterns here.
957 * generic-match-head.c: Include target.h.
958 * gimple-match-head.c: Likewise.
959
960 2015-07-16 Richard Biener <rguenther@suse.de>
961
962 * tree-ssa-dom.c (dom_valueize): New function.
963 (record_temporary_equivalences): Also record equivalences
964 for dominating stmts that have uses of equivalences we are
965 about to record.
966
967 2015-07-16 Bin Cheng <bin.cheng@arm.com>
968
969 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
970 add_autoinc_candidates.
971 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
972 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
973 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
974 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
975 Call new function.
976 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
977 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
978 Remove parameter struct iv*. Call add_autoinc_candidates here.
979 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
980 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
981 Call new function.
982 (find_iv_candidates): Call new functions.
983
984 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
985
986 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
987 uninitialized-variable warning.
988
989 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
990
991 PR target/65249
992 * config/sh/sh.md (movdi): Split simple reg move to two movsi
993 when the destination is R0.
994
995 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
996
997 PR target/66866
998 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
999 * config/i386/i386.c (ix86_expand_pextr): New function.
1000 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
1001 for non-lowpart subregs.
1002 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1003 (insv<mode>): Use SWI248 mode iterator.
1004 (insv<mode>_1): Ditto.
1005
1006 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1007 Sebastian Pop <s.pop@samsung.com>
1008
1009 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1010 iterator to use_stmt.
1011
1012 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1013 Sebastian Pop <s.pop@samsung.com>
1014
1015 * graphite-scop-detection.c (build_scops_1): Discard scops for
1016 which entry==exit.
1017
1018 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1019 Sebastian Pop <s.pop@samsung.com>
1020
1021 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1022 case of a return statement in scop.
1023
1024 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1025 Sebastian Pop <s.pop@samsung.com>
1026
1027 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1028 INTEGER_TYPE parameters.
1029 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1030 VECTOR_CST in scan_tree_for_params.
1031 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1032
1033 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1034
1035 * gimple-pretty-print.h: Don't include pretty-print.h.
1036 * tree-streamer.h: Don't include lto-streamer.h.
1037 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1038 * gimple-streamer-in.c: Remove redundant includes.
1039 * gimple-streamer-out.c: Likewise.
1040 * ipa-devirt.c: Likewise.
1041 * ipa-icf.c: Likewise.
1042 * ipa-inline-analysis.c: Likewise.
1043 * ipa-polymorphic-call.c: Likewise.
1044 * ipa-profile.c: Likewise.
1045 * ipa-prop.c: Likewise.
1046 * ipa-pure-const.c: Likewise.
1047 * lto-cgraph.c: Likewise.
1048 * lto-streamer-in.c: Likewise.
1049 * lto-streamer-out.c: Likewise.
1050 * lto-streamer.c: Likewise.
1051 * tree-streamer-in.c: Likewise.
1052 * tree-streamer-out.c: Likewise.
1053 * tree-streamer.c: Likewise.
1054
1055 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1056
1057 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1058 include input.h.
1059 * opts.c: Remove multiline #include comment.
1060
1061 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
1062
1063 * config/nvptx/mkoffload.c (process): Add C++ protection to
1064 emitted code.
1065
1066 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1067
1068 PR target/66854
1069 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1070 null before IEEE 128-bit floating point support patch.
1071
1072 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1073
1074 * simplify-rtx.c (simplify_ternary_operation): Add simplification
1075 for (!c) != {0,...,0} ? a : b for vector modes.
1076
1077 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1078 Martin Jambor <mjambor@suse.cz>
1079
1080 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1081 struct func_body_info* instead of struct ipa_node_params*, expecting
1082 fbi->info to be filled in. Replace throughout. Adjust call to
1083 ipa_load_from_parm_agg.
1084 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1085 instead of struct ipa_node_params*. Adjust calls to other functions
1086 so that they pass either fbi or fbi->info.
1087 (set_switch_stmt_execution_predicate): Likewise.
1088 (will_be_nonconstant_predicate): Likewise.
1089 (compute_bb_predicates): Likewise.
1090 (estimate_function_body_sizes): Move asserts earlier. Fill in
1091 struct func_body_info, replace parms_info with fbi.info. Adjust
1092 calls to functions that now accept struct func_body_info.
1093 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1094 (struct func_body_info): Likewise.
1095 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1096 remove static. Adjust callers.
1097 (ipa_load_from_parm_agg): Remove.
1098 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1099 (func_body_info): Likewise.
1100 (ipa_load_from_parm_agg): Adjust prototype.
1101
1102 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1103
1104 * gensupport.c (rtx_handle_directive): Adjust.
1105 * read-rtl.c (apply_iterators): Take vector to add rtxs to
1106 instead of expr list rtx.
1107 (add_define_attr_for_define_subst): Likewise.
1108 (add_define_subst_attr): Likewise.
1109 (read_subst_mapping): Likewise.
1110 (read_rtx): Likewise.
1111 * rtl.h (read_rtx): Adjust.
1112
1113 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1114
1115 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1116
1117 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1118
1119 PR target/58066
1120 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1121 (*tls_local_dynamic_base_64_<mode>): Ditto.
1122 (*tls_local_dynamic_base_64_largepic): Ditto.
1123 (tls_global_dynamic_64_<mode>): Update expander pattern.
1124 (tls_local_dynamic_base_64_<mode>): Ditto.
1125
1126 2015-07-15 Richard Biener <rguenther@suse.de>
1127
1128 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1129 and bool_var == 1 -> bool_var simplifications ...
1130 * match.pd: ... to patterns here. Factor out negate_expr_p
1131 cases from the A - B -> A + (-B) patterns as negate_expr_p
1132 predicate and add a -(A + B) -> (-B) - A pattern.
1133
1134 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1135
1136 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1137
1138 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
1139 Robert Suchanek <robert.suchanek@imgtec.com>
1140
1141 * config/mips/mips.c (mips_int_mask): New enum.
1142 (mips_shadow_set): Likewise.
1143 (int_mask): New variable.
1144 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1145 (machine_function): Add int_mask and use_shadow_register_set.
1146 (mips_attribute_table): Add attribute handlers for interrupt and
1147 use_shadow_register_set.
1148 (mips_interrupt_mask): New static function.
1149 (mips_handle_interrupt_attr): Likewise.
1150 (mips_handle_use_shadow_register_set_attr): Likewise.
1151 (mips_use_shadow_register_set): Change return type to enum
1152 mips_shadow_set. Add argument handling for use_shadow_register_set
1153 attribute.
1154 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1155 compare with mips_shadow_set enum.
1156 (mips_compute_frame_info): Add interrupt mask and
1157 use_shadow_register_set to per-function information structure.
1158 Add a stack slot for EPC unconditionally.
1159 (mips_expand_prologue): Compare use_shadow_register_set value
1160 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
1161 masked interrupt register but in EIC mode use K0 and save Cause in K0.
1162 EPC saved and restored unconditionally. Use PMODE_INSN macro when
1163 copying the stack pointer from the shadow register set.
1164 * config/mips/mips.h (SR_IM0): New define.
1165 * config/mips/mips.md (mips_rdpgpr): Rename to...
1166 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
1167 * doc/extend.texi (Declaring Attributes of Functions): Document
1168 optional arguments for interrupt and use_shadow_register_set
1169 attributes.
1170
1171 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1172
1173 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1174 interrupt attribute.
1175 (mips_expand_prologue): Disable the floating point unit in an ISR.
1176 * config/mips/mips.h (SR_COP1): New define.
1177
1178 2015-07-15 Richard Biener <rguenther@suse.de>
1179
1180 * genmatch.c (parser::peek, parser::peek_ident): Add argument
1181 to tell how many tokens to peek ahead (default 1).
1182 (parser::eat_token, parser::eat_ident): Return token consumed.
1183 (parser::parse_result): Parse new switch statement.
1184 * match.pd: Use case statements where appropriate.
1185
1186 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1187
1188 PR rtl-optimization/58066
1189 * calls.c (expand_call): Precompute register parameters before stack
1190 alignment is performed.
1191
1192 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1193
1194 PR rtl-optimization/66838
1195 * postreload.c (reload_cse_move2add): Also process
1196 CALL_INSN_FUNCTION_USAGE when resetting information of
1197 call-clobbered registers.
1198
1199 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1200 Cesar Philippidis <cesar@codesourcery.com>
1201 Chung-Lin Tang <cltang@codesourcery.com>
1202
1203 * config/nios2/constraints.md (U, v): New constraints.
1204 * config/nios2/predicates.md (rdprs_dcache_operand): New.
1205 (ldstex_memory_operand): New.
1206 * config/nios2/sync.md: New file.
1207 * config/nios2/nios2.md (unspecv): Add new builtin function
1208 UNSPECV codes.
1209 (rdprs, flushd, flushda, wrpie, eni): New patterns.
1210 (top-level): Include sync.md.
1211 * config/nios2/nios2.c (N2_FTYPES): Add function types for
1212 new builtins.
1213 (N2_BUILTINS): Add arch field setting, add new builtins.
1214 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1215 for arch field.
1216 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1217 Also handle ldex/stex/ldsex/stsex builtins.
1218 (nios2_expand_rdprs_builtin): New function.
1219 (nios2_expand_cache_builtin): New function.
1220 (nios2_expand_wrpie_builtin): New function.
1221 (nios2_expand_eni_builtin): New function.
1222 (nios2_expand_builtin): Add arch field handling and new builtin
1223 cases.
1224 * doc/extend.texi (Altera Nios II Built-in Functions): Document
1225 new builtins.
1226 * doc/md.texi (Machine Constraints): Document U and v constraints.
1227
1228 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1229 Cesar Philippidis <cesar@codesourcery.com>
1230 Chung-Lin Tang <cltang@codesourcery.com>
1231
1232 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1233 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1234 callee_save_reg_size and uses_anonymous_args fields.
1235 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1236 (nios2_create_cfa_notes): New function.
1237 (nios2_adjust_stack): New function for adjusting stack.
1238 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1239 Use nios2_adjust_stack.
1240 (nios2_expand_epilogue): Likewise.
1241 (nios2_expand_return): New function.
1242 (nios2_can_use_return_insn): Update for CDX pop.n usage.
1243 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1244 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1245 * config/nios2/nios2.md (return): Use nios2_expand_return.
1246
1247 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1248 Cesar Philippidis <cesar@codesourcery.com>
1249 Chung-Lin Tang <cltang@codesourcery.com>
1250
1251 * config/nios2/predicates.md (pop_operation): New.
1252 (ldwm_operation, stwm_operation): New.
1253 (nios2_hard_register_operand): New.
1254 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1255 (ldstwm_operation_p): Declare.
1256 (gen_ldstwm_peep): Declare.
1257 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1258 (base_reg_adjustment_p): New.
1259 (pop_operation_p): New.
1260 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1261 (nios2_ldstwm_regset_p): New.
1262 (ldstwm_operation_p): New.
1263 (gen_ldst): New.
1264 (nios2_ldst_parallel): New.
1265 (struct ldswm_operand): Declare.
1266 (compare_ldstwm_operands): New.
1267 (can_use_cdx_ldstw): New.
1268 (gen_ldstwm_peep): New.
1269 * config/nios2/nios2-ldstwm.sml: New.
1270 * config/nios2/nios2.md: Include ldstwm.md.
1271 * config/nios2/ldstwm.md: Generated.
1272
1273 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1274 Cesar Philippidis <cesar@codesourcery.com>
1275 Chung-Lin Tang <cltang@codesourcery.com>
1276
1277 * config/nios2/nios2.h (LABEL_ALIGN): Define.
1278 (REG_ALLOC_ORDER): Define.
1279 (ADJUST_REG_ALLOC_ORDER): Define.
1280 (HONOR_REG_ALLOC_ORDER): Define.
1281 (CDX_REG_P): Define.
1282 (ANDCLEAR_INT): Define.
1283 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1284 (nios2_label_align): Declare.
1285 (nios2_cdx_narrow_form_p): Declare.
1286 (nios2_adjust_reg_alloc_order): Declare.
1287 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1288 operation.
1289 (nios2_large_unspec_reloc_p): New function, split from...
1290 (nios2_legitimate_pic_operand_p): ...here.
1291 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1292 (nios2_print_operand_punct_valid_p): New.
1293 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
1294 (split_mem_address): New.
1295 (split_alu_insn): New.
1296 (cdxreg): New.
1297 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1298 (enum nios2_add_insn_kind): New.
1299 (nios2_add_insn_names, nios2_add_insn_narrow): New.
1300 (nios2_add_insn_classify): New.
1301 (nios2_add_insn_asm): New.
1302 (nios2_cdx_narrow_form_p): New.
1303 (label_align, min_labelno, max_labelno): New.
1304 (nios2_reorg): New.
1305 (nios2_label_align): New.
1306 (nios2_adjust_reg_alloc_order): New.
1307 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1308 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1309 * config/nios2/constraints.md (P): New constraint.
1310 * config/nios2/predicates.md (const_and_operand): New.
1311 (and_operand): New.
1312 (stack_memory_operand): New.
1313 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1314 (length): Update to use nios2_cdx_narrow_form_p().
1315 (type): Add new insn type values.
1316 (control, alu, st, ld, shift): Update insn reservations with
1317 new insn type values.
1318 (*high, *lo_sum): Define new insn patterns for constant generation.
1319 (movqi_internal, movhi_internal, movsi_internal): Reduce
1320 alternatives, update asm template to handle CDX variants, update
1321 type attributes.
1322 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1323 template, update type attributes.
1324 (extendhisi2, extendqi<mode>2): Likewise.
1325 (addsi3): Change to use function for asm string.
1326 (subsi3): Add CDX notation to asm template, update type attributes.
1327 (negsi3, one_cmplsi3): Likewise.
1328 (andsi3): New pattern, specialized from logical patterns.
1329 (<code>si3): Remove and case, combine alternatives, update asm
1330 template.
1331 (<shift_op>si3): Add CDX notation, update type attributes.
1332 (rotrsi3): Update type attribute.
1333 (*merge, extzv, insv): New insn patterns.
1334 (return): Change to define_expand.
1335 (simple_return): Add CDX notation, update type attributes.
1336 (indirect_jump): Add CDX notation.
1337 (jump): Update asm cases, update length attribute expression.
1338 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1339 (nios2_cbranch): Update asm cases and length attribute expression
1340 to handle CDX variants.
1341 (nios2_cmp<code>): Update asm template.
1342 (nop): Add CDX notation, update type attributes.
1343 (trap): Add CDX notation.
1344 (ctrapsi4): Update asm cases and length attribute expression to
1345 handle CDX variant.
1346 * doc/md.texi (Machine Constraints): Document P constraint.
1347
1348 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1349 Cesar Philippidis <cesar@codesourcery.com>
1350 Chung-Lin Tang <cltang@codesourcery.com>
1351
1352 * config/nios2/nios2.h (SMALL_INT12): New macro.
1353 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1354 (nios2_valid_addr_expr_p): Use it.
1355 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1356 with implicit "io" instructions on R2.
1357 * config/nios2/constraints.md (w): New constraint.
1358 * config/nios2/predicates.md (ldstio_memory_operand): New.
1359 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1360 operand predicate and constraint.
1361 (ld<bh>io_signed, st<bhw>io>): Likewise.
1362 * doc/md.texi (Machine Constraints): Document w constraint.
1363
1364 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1365 Cesar Philippidis <cesar@codesourcery.com>
1366 Chung-Lin Tang <cltang@codesourcery.com>
1367
1368 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1369 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1370 Nios II architecture level.
1371 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1372 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1373 (OPTION_DEFAULT_SPECS): Define.
1374 (ASM_SPEC): Add -march= spec strings.
1375 * config/nios2/nios2.c (nios2_option_override): Check for
1376 conflicts involving new options.
1377 * config.gcc (nios2*-*-*): Support --with-arch=.
1378 * doc/invoke.texi (Option Summary, Nios II Options): Document
1379 -march=, -mbmx, and -mcdx.
1380
1381 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
1382
1383 PR rtl-optimization/66626
1384 * lra-constraints.c (lra_constraints): Prevent equivalence
1385 substitution for static chain pseudo in functions with nonlocal
1386 goto.
1387
1388 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1389
1390 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1391 (nios2_emit_stack_limit_check): Add size parameter. Handle
1392 -fstack-limit-symbol as well as -fstack-limit-register.
1393 (nios2_expand_prologue): Emit only a single stack limit check,
1394 even if multiple stack adjustments are required.
1395 (nios2_option_override): Diagnose unsupported combination of -fpic
1396 and -stack-limit-symbol.
1397
1398 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
1399
1400 * Makefile.in (top_srcdir): New.
1401 * configure.ac: Use AM_ZLIB.
1402 * configure: Regeneated.
1403
1404 2015-07-14 Matthias Klose <doko@ubuntu.com>
1405
1406 PR target/66840
1407 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1408
1409 2015-07-14 Richard Biener <rguenther@suse.de>
1410
1411 PR tree-optimization/66863
1412 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1413 what we record for conversion use stmt lhs inequalities.
1414
1415 2015-07-14 Richard Biener <rguenther@suse.de>
1416
1417 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1418 (decision_tree::gen_gimple): Likewise.
1419
1420 2015-07-14 Tom de Vries <tom@codesourcery.com>
1421
1422 * gcc.c (greater_than_spec_func): Declare forward.
1423 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1424 -ftree-parallelize-loops={0,1}.
1425 (static_spec_functions): Add greater_than_spec_func function with name
1426 "gt".
1427 (greater_than_spec_func): New function.
1428
1429 2015-07-14 Richard Biener <rguenther@suse.de>
1430
1431 * tree-ssa-dom.c (record_temporary_equivalences): Merge
1432 wideing type conversion case from record_equivalences_from_incoming_edge
1433 and use record_equality to record equivalences.
1434 (record_equivalences_from_incoming_edge): Call
1435 record_temporary_equivalences.
1436
1437 2015-07-14 Richard Biener <rguenther@suse.de>
1438
1439 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1440 (struct if_expr): New.
1441 (struct with_expr): Likewise.
1442 (is_a_helper): Add helpers for if_expr and with_expr.
1443 (struct simplify): Add simplify_kind enum and member. Remove
1444 ifexpr_vec member.
1445 (simplify::simplify): Adjust.
1446 (lower_commutative): Adjust.
1447 (lower_opt_convert): Likewise.
1448 (lower_cond): Likewise.
1449 (replace_id): Handle with_expr and if_expr.
1450 (lower_for): Adjust.
1451 (dt_simplify::gen_1): New recursive worker, split out from ...
1452 (dt_simplify::gen): ... here. Deal with if and with expansion
1453 recursively.
1454 (capture_info::capture_info): Take context argument
1455 (capture_info::walk_result): Only analyze specific result.
1456 (parser::parse_result): New function.
1457 (parser::parse_simplify): Adjust to parse ifs with then end
1458 else case.
1459 (parser::parse_if): Simplify.
1460 (parser::parse_pattern): Pass down simplify kind.
1461 * match.pd: Convert if structure to new syntax.
1462
1463 2015-07-13 Marek Polacek <polacek@redhat.com>
1464
1465 * rtl.c (rtx_equal_p_cb): Fix typo.
1466
1467 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
1468
1469 * omega.h: Don't include config.h, don't include params.h again if
1470 omega.h has already been included.
1471 * graphite-poly.h: Include sese.h.
1472 * graphite.c: Don't include sese.h, remove needless includes and
1473 minimize includes outside #ifdef HAVE_isl block.
1474 * graphite-blocking.c: Don't include sese.h, remove needless includes,
1475 and wrap entire file in #ifdef HAVE_isl
1476 * graphite-dependences.c: Likewise.
1477 * graphite-interchange.c: Likewise.
1478 * graphite-isl-ast-to-gimple.c: Likewise.
1479 * graphite-optimize-isl.c: Likewise.
1480 * graphite-poly.c: Likewise.
1481 * graphite-scop-detection.c: Likewise.
1482 * graphite-sese-to-poly.c: Likewise.
1483
1484 2015-07-13 Tom de Vries <tom@codesourcery.com>
1485
1486 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1487
1488 2015-07-13 Renlin Li <renlin.li@arm.com>
1489
1490 PR rtl/66556
1491 * simplify-rtx.c (simplify_const_relational_operation): Add
1492 side_effects_p checks.
1493
1494 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1495
1496 * bitmap.h: Fix double word typos.
1497 * builtins.c: Same.
1498 * calls.c: Same.
1499 * cfgloopmanip.c: Same.
1500 * cgraph.c: Same.
1501 * cgraph.h: Same.
1502 * cgraphclones.c: Same.
1503 * combine.c: Same.
1504 * config/aarch64/aarch64-protos.h: Same.
1505 * config/aarch64/aarch64.c: Same.
1506 * config/aarch64/aarch64.md: Same.
1507 * config/arm/arm.md: Same.
1508 * config/arm/arm1020e.md: Same.
1509 * config/arm/arm1026ejs.md: Same.
1510 * config/arm/arm926ejs.md: Same.
1511 * config/arm/fa526.md: Same.
1512 * config/arm/fa606te.md: Same.
1513 * config/arm/fa626te.md: Same.
1514 * config/arm/fa726te.md: Same.
1515 * config/arm/fmp626.md: Same.
1516 * config/darwin.c: Same.
1517 * config/epiphany/epiphany.c: Same.
1518 * config/frv/frv.c: Same.
1519 * config/ft32/ft32.c: Same.
1520 * config/gnu-user.h: Same.
1521 * config/h8300/constraints.md: Same.
1522 * config/i386/i386.c: Same.
1523 * config/i386/i386.md: Same.
1524 * config/iq2000/iq2000.md: Same.
1525 * config/mips/mips.c: Same.
1526 * config/mmix/mmix.md: Same.
1527 * config/moxie/moxie.c: Same.
1528 * config/nds32/nds32.md: Same.
1529 * config/pa/pa.h: Same.
1530 * config/rs6000/aix.h: Same.
1531 * config/rs6000/rs6000.h: Same.
1532 * config/sh/sh.c: Same.
1533 * config/tilegx/tilegx.md: Same.
1534 * config/tilepro/gen-mul-tables.cc: Same.
1535 * cse.c: Same.
1536 * dbxout.c: Same.
1537 * doc/invoke.texi: Same.
1538 * dse.c: Same.
1539 * dwarf2out.c: Same.
1540 * final.c: Same.
1541 * gcc.c: Same.
1542 * genmatch.c: Same.
1543 * gimplify.c: Same.
1544 * hash-table.h: Same.
1545 * internal-fn.c: Same.
1546 * ipa-cp.c: Same.
1547 * ipa-devirt.c: Same.
1548 * ipa-icf.c: Same.
1549 * ipa-icf.h: Same.
1550 * ipa-profile.c: Same.
1551 * ipa-prop.c: Same.
1552 * ipa-prop.h: Same.
1553 * ira.c: Same.
1554 * omp-low.c: Same.
1555 * reg-stack.c: Same.
1556 * regcprop.c: Same.
1557 * reorg.c: Same.
1558 * rtl.h: Same.
1559 * sbitmap.h: Same.
1560 * tree-eh.c: Same.
1561 * tree-inline.c: Same.
1562 * tree-sra.c: Same.
1563 * tree-ssa-dom.c: Same.
1564 * tree-ssa-loop-ivopts.c: Same.
1565 * tree-ssa-structalias.c: Same.
1566 * tree-ssa-tail-merge.c: Same.
1567 * tree-ssa-ter.c: Same.
1568 * tree-ssa-threadupdate.c: Same.
1569 * tree-ssa-uninit.c: Same.
1570 * tree-ssanames.c: Same.
1571 * tree-vect-loop-manip.c: Same.
1572 * tree-vrp.c: Same.
1573 * tree.c: Same.
1574 * valtrack.c: Same.
1575 * vec.h: Same.
1576
1577 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1578
1579 PR middle-end/66726
1580 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1581 tree_ssa_phiopt_worker): Call it.
1582
1583 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1584
1585 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1586 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1587 REG_EQUAL note.
1588
1589 2015-07-11 Marek Polacek <polacek@redhat.com>
1590
1591 PR middle-end/66353
1592 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1593 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1594 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1595 rather than bb_has_abnormal_call_pred.
1596 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1597 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1598 rather than bb_has_abnormal_call_pred.
1599
1600 2015-07-10 Anatoly Sokolov <aesok@post.ru>
1601
1602 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1603 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1604 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1605 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1606 v850_legitimate_address_p): New functions.
1607 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1608
1609 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
1610
1611 PR target/66819
1612 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1613 indirect sibcall with register arguments if register available
1614 for argument passing.
1615 (init_cumulative_args): Set cfun->machine->arg_reg_available
1616 to (cum->nregs > 0) or to true if function has a variable
1617 argument list.
1618 (function_arg_advance_32): Set cfun->machine->arg_reg_available
1619 to false if cum->nregs <= 0.
1620 * config/i386/i386.h (machine_function): Add arg_reg_available.
1621
1622 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1623
1624 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1625 and gen_higpart instead of gen_rtx_SUBREG.
1626 * config/i386/i386.md
1627 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1628 (read-modify peephole2): Use gen_lowpart instead of
1629 gen_rtx_SUBREG for operand 5.
1630
1631 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1632
1633 * config/tilepro/gen-mul-tables.cc (main): Change include list for
1634 generated files.
1635 * config/tilepro/mul-tables.c: Regenerate.
1636 * config/tilegx/mul-tables.c: Regenerate.
1637
1638 2015-07-10 Richard Biener <rguenther@suse.de>
1639
1640 * fold-const.c (distribute_bit_expr): Remove.
1641 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1642 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1643 to A & (B | C) and simplifying A << C1 << C2 to ...
1644 * match.pd: ... patterns here.
1645
1646 2015-07-10 Jiong Wang <jiong.wang@arm.com>
1647
1648 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1649 Mark mem as READONLY and NOTRAP for PIC symbol.
1650
1651 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1652
1653 * gimple-predict.h: New file.
1654 (gimple_predict_predictor, gimple_predict_set_predictor,
1655 gimple_predict_outcome, gimple_predict_set_outcome,
1656 gimple_build_predict): Relocate here.
1657 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1658 gimple_predict_outcome, gimple_predict_set_outcome): Move to
1659 gimple-predict.h.
1660 * gimple.c (gimple_build_predict): Move to gimple-predict.h
1661 * basic-block.h: Don't include cfghooks.h.
1662 * backend.h: Don't include predict.h.
1663 * cfghooks.h: Include predict.h.
1664 * gimple-pretty-print.c: Include gimple-predict.h.
1665 * gimplify.c: Likwise.
1666 * predict.c: Adjust includes.
1667 * tree-inline.c: Likewise.
1668 * asan.c: Likewise.
1669 * auto-inc-dec.c: Likewise.
1670 * auto-profile.c: Likewise.
1671 * bb-reorder.c: Likewise.
1672 * builtins.c: Likewise.
1673 * caller-save.c: Likewise.
1674 * calls.c: Likewise.
1675 * cfganal.c: Likewise.
1676 * cfgbuild.c: Likewise.
1677 * cfg.c: Likewise.
1678 * cfgcleanup.c: Likewise.
1679 * cfgexpand.c: Likewise.
1680 * cfghooks.c: Likewise.
1681 * cfgloopanal.c: Likewise.
1682 * cfgloop.c: Likewise.
1683 * cfgloopmanip.c: Likewise.
1684 * cfgrtl.c: Likewise.
1685 * cgraph.c: Likewise.
1686 * cgraphunit.c: Likewise.
1687 * combine.c: Likewise.
1688 * cprop.c: Likewise.
1689 * cse.c: Likewise.
1690 * dce.c: Likewise.
1691 * dojump.c: Likewise.
1692 * dse.c: Likewise.
1693 * except.c: Likewise.
1694 * expmed.c: Likewise.
1695 * expr.c: Likewise.
1696 * final.c: Likewise.
1697 * fold-const.c: Likewise.
1698 * function.c: Likewise.
1699 * fwprop.c: Likewise.
1700 * gcc-plugin.h: Likewise.
1701 * gcse.c: Likewise.
1702 * genattrtab.c: Likewise.
1703 * genemit.c: Likewise.
1704 * gengtype.c: Likewise.
1705 * genopinit.c: Likewise.
1706 * genoutput.c: Likewise.
1707 * genpreds.c: Likewise.
1708 * genrecog.c: Likewise.
1709 * gimple-fold.c: Likewise.
1710 * gimple-iterator.c: Likewise.
1711 * gimple-ssa-isolate-paths.c: Likewise.
1712 * gimple-ssa-strength-reduction.c: Likewise.
1713 * graph.c: Likewise.
1714 * graphite-blocking.c: Likewise.
1715 * graphite.c: Likewise.
1716 * graphite-dependences.c: Likewise.
1717 * graphite-interchange.c: Likewise.
1718 * graphite-isl-ast-to-gimple.c: Likewise.
1719 * graphite-optimize-isl.c: Likewise.
1720 * graphite-poly.c: Likewise.
1721 * graphite-scop-detection.c: Likewise.
1722 * graphite-sese-to-poly.c: Likewise.
1723 * haifa-sched.c: Likewise.
1724 * ifcvt.c: Likewise.
1725 * internal-fn.c: Likewise.
1726 * ipa-cp.c: Likewise.
1727 * ipa-profile.c: Likewise.
1728 * ipa-split.c: Likewise.
1729 * ipa-utils.c: Likewise.
1730 * ira-build.c: Likewise.
1731 * ira-color.c: Likewise.
1732 * ira-conflicts.c: Likewise.
1733 * ira-costs.c: Likewise.
1734 * ira-emit.c: Likewise.
1735 * ira-lives.c: Likewise.
1736 * jump.c: Likewise.
1737 * loop-doloop.c: Likewise.
1738 * loop-init.c: Likewise.
1739 * loop-invariant.c: Likewise.
1740 * loop-unroll.c: Likewise.
1741 * lower-subreg.c: Likewise.
1742 * lra-assigns.c: Likewise.
1743 * lra.c: Likewise.
1744 * lra-coalesce.c: Likewise.
1745 * lra-constraints.c: Likewise.
1746 * lra-lives.c: Likewise.
1747 * lto-cgraph.c: Likewise.
1748 * lto-streamer-in.c: Likewise.
1749 * mode-switching.c: Likewise.
1750 * modulo-sched.c: Likewise.
1751 * omp-low.c: Likewise.
1752 * optabs.c: Likewise.
1753 * passes.c: Likewise.
1754 * postreload.c: Likewise.
1755 * postreload-gcse.c: Likewise.
1756 * profile.c: Likewise.
1757 * recog.c: Likewise.
1758 * regstat.c: Likewise.
1759 * reload1.c: Likewise.
1760 * reorg.c: Likewise.
1761 * rtlanal.c: Likewise.
1762 * sched-ebb.c: Likewise.
1763 * sel-sched-ir.c: Likewise.
1764 * sese.c: Likewise.
1765 * shrink-wrap.c: Likewise.
1766 * simplify-rtx.c: Likewise.
1767 * stmt.c: Likewise.
1768 * store-motion.c: Likewise.
1769 * tracer.c: Likewise.
1770 * trans-mem.c: Likewise.
1771 * tree-call-cdce.c: Likewise.
1772 * tree-cfg.c: Likewise.
1773 * tree-cfgcleanup.c: Likewise.
1774 * tree-chkp.c: Likewise.
1775 * tree-complex.c: Likewise.
1776 * tree-eh.c: Likewise.
1777 * tree-if-conv.c: Likewise.
1778 * tree-loop-distribution.c: Likewise.
1779 * tree-outof-ssa.c: Likewise.
1780 * tree-parloops.c: Likewise.
1781 * tree-predcom.c: Likewise.
1782 * tree-pretty-print.c: Likewise.
1783 * tree-profile.c: Likewise.
1784 * tree-sra.c: Likewise.
1785 * tree-ssa.c: Likewise.
1786 * tree-ssa-coalesce.c: Likewise.
1787 * tree-ssa-dce.c: Likewise.
1788 * tree-ssa-dom.c: Likewise.
1789 * tree-ssa-forwprop.c: Likewise.
1790 * tree-ssa-ifcombine.c: Likewise.
1791 * tree-ssa-loop-ch.c: Likewise.
1792 * tree-ssa-loop-im.c: Likewise.
1793 * tree-ssa-loop-ivcanon.c: Likewise.
1794 * tree-ssa-loop-ivopts.c: Likewise.
1795 * tree-ssa-loop-manip.c: Likewise.
1796 * tree-ssa-loop-prefetch.c: Likewise.
1797 * tree-ssa-loop-unswitch.c: Likewise.
1798 * tree-ssa-math-opts.c: Likewise.
1799 * tree-ssa-phiopt.c: Likewise.
1800 * tree-ssa-pre.c: Likewise.
1801 * tree-ssa-reassoc.c: Likewise.
1802 * tree-ssa-sink.c: Likewise.
1803 * tree-ssa-tail-merge.c: Likewise.
1804 * tree-ssa-threadedge.c: Likewise.
1805 * tree-ssa-threadupdate.c: Likewise.
1806 * tree-switch-conversion.c: Likewise.
1807 * tree-tailcall.c: Likewise.
1808 * tree-vect-data-refs.c: Likewise.
1809 * tree-vect-loop.c: Likewise.
1810 * tree-vect-loop-manip.c: Likewise.
1811 * tree-vectorizer.c: Likewise.
1812 * tree-vrp.c: Likewise.
1813 * ubsan.c: Likewise.
1814 * value-prof.c: Likewise.
1815 * varasm.c: Likewise.
1816 * var-tracking.c: Likewise.
1817 * config/aarch64/aarch64-builtins.c: Likewise.
1818 * config/aarch64/aarch64.c: Likewise.
1819 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1820 * config/alpha/alpha.c: Likewise.
1821 * config/arc/arc.c: Likewise.
1822 * config/arm/arm.c: Likewise.
1823 * config/avr/avr.c: Likewise.
1824 * config/bfin/bfin.c: Likewise.
1825 * config/c6x/c6x.c: Likewise.
1826 * config/cr16/cr16.c: Likewise.
1827 * config/cris/cris.c: Likewise.
1828 * config/darwin.c: Likewise.
1829 * config/darwin-c.c: Likewise.
1830 * config/epiphany/epiphany.c: Likewise.
1831 * config/epiphany/mode-switch-use.c: Likewise.
1832 * config/epiphany/resolve-sw-modes.c: Likewise.
1833 * config/fr30/fr30.c: Likewise.
1834 * config/frv/frv.c: Likewise.
1835 * config/ft32/ft32.c: Likewise.
1836 * config/h8300/h8300.c: Likewise.
1837 * config/i386/i386.c: Likewise.
1838 * config/i386/winnt.c: Likewise.
1839 * config/ia64/ia64.c: Likewise.
1840 * config/iq2000/iq2000.c: Likewise.
1841 * config/lm32/lm32.c: Likewise.
1842 * config/m32c/m32c.c: Likewise.
1843 * config/m32r/m32r.c: Likewise.
1844 * config/m68k/m68k.c: Likewise.
1845 * config/mcore/mcore.c: Likewise.
1846 * config/mep/mep.c: Likewise.
1847 * config/microblaze/microblaze.c: Likewise.
1848 * config/mips/mips.c: Likewise.
1849 * config/mmix/mmix.c: Likewise.
1850 * config/mn10300/mn10300.c: Likewise.
1851 * config/moxie/moxie.c: Likewise.
1852 * config/msp430/msp430.c: Likewise.
1853 * config/nds32/nds32.c: Likewise.
1854 * config/nds32/nds32-cost.c: Likewise.
1855 * config/nds32/nds32-fp-as-gp.c: Likewise.
1856 * config/nds32/nds32-intrinsic.c: Likewise.
1857 * config/nds32/nds32-isr.c: Likewise.
1858 * config/nds32/nds32-md-auxiliary.c: Likewise.
1859 * config/nds32/nds32-memory-manipulation.c: Likewise.
1860 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1861 * config/nds32/nds32-predicates.c: Likewise.
1862 * config/nios2/nios2.c: Likewise.
1863 * config/nvptx/nvptx.c: Likewise.
1864 * config/pa/pa.c: Likewise.
1865 * config/pdp11/pdp11.c: Likewise.
1866 * config/rl78/rl78.c: Likewise.
1867 * config/rs6000/rs6000.c: Likewise.
1868 * config/rx/rx.c: Likewise.
1869 * config/s390/s390.c: Likewise.
1870 * config/sh/sh.c: Likewise.
1871 * config/sh/sh-mem.cc: Likewise.
1872 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1873 * config/sh/sh_treg_combine.cc: Likewise.
1874 * config/sparc/sparc.c: Likewise.
1875 * config/spu/spu.c: Likewise.
1876 * config/stormy16/stormy16.c: Likewise.
1877 * config/tilegx/tilegx.c: Likewise.
1878 * config/tilepro/tilepro.c: Likewise.
1879 * config/v850/v850.c: Likewise.
1880 * config/vax/vax.c: Likewise.
1881 * config/visium/visium.c: Likewise.
1882 * config/xtensa/xtensa.c: Likewise.
1883
1884 2015-07-10 Richard Biener <rguenther@suse.de>
1885
1886 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
1887 (decision_tree::gen_gimple): Likewise.
1888 (decision_tree::gen_generic): Likewise.
1889
1890 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1891
1892 PR target/66813
1893 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
1894 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
1895
1896 2015-07-10 Jakub Jelinek <jakub@redhat.com>
1897
1898 PR middle-end/66820
1899 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
1900 or ORT_TASK contexts.
1901 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
1902 is non-zero.
1903
1904 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1905
1906 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
1907 above function.
1908
1909 2015-07-10 Tom de Vries <tom@codesourcery.com>
1910
1911 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
1912 insert nit + 1 bound.
1913
1914 2015-07-10 Richard Biener <rguenther@suse.de>
1915
1916 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
1917 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
1918 (if_convertible_loop_p_1): For this always compute bb predicates.
1919 (if_convertible_loop_p): And free them.
1920
1921 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1922
1923 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
1924 in dump message.
1925
1926 2015-07-10 Richard Biener <rguenther@suse.de>
1927
1928 PR tree-optimization/66823
1929 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
1930 inverted predicate.
1931
1932 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
1933
1934 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
1935 to handle mips[32|64]r3 and mips[32|64]r5.
1936
1937 2015-07-09 Jakub Jelinek <jakub@redhat.com>
1938
1939 PR middle-end/66633
1940 * tree-nested.c (get_static_chain): Or in a flag into
1941 info->static_chain_added.
1942 (get_frame_field, get_nonlocal_debug_decl): Likewise.
1943 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
1944 2015-07-01 changes.
1945 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
1946 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
1947 add it to clauses.
1948
1949 PR tree-optimization/66718
1950 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
1951 field.
1952 (vect_simd_lane_linear): New function.
1953 (vectorizable_simd_clone_call): Support using linear arguments for
1954 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
1955
1956 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
1957
1958 PR target/66821
1959 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
1960
1961 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1962
1963 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
1964 Use machine mode, not enum machine_mode in the prototype.
1965
1966 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
1967 classify 128-bit floating point support.
1968 (FLOAT128_IBM_P): Likewise.
1969 (FLOAT128_VECTOR_P): Likewise.
1970 (FLOAT128_2REG_P): Likewise.
1971 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
1972 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
1973 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1974 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
1975
1976 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
1977 tests against TFmode/TDmode, since those modes do not use VSX
1978 addresses.
1979 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
1980 support.
1981 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
1982 tests against TFmode, etc.
1983 (invalid_e500_subreg): Add tests against IFmode/KFmode.
1984 (reg_offset_addressing_ok_p): Likewise.
1985 (rs6000_legitimate_offset_address_p): Likewise.
1986 (rs6000_legitimize_address): Likewise.
1987 (rs6000_legitimize_reload_address): Likewise.
1988 (rs6000_legitimate_address_p): Clean up tests against TFmode and
1989 TDmode to use the new helper macros, which will include IFmode and
1990 KFmode.
1991 (rs6000_emit_move): Likewise.
1992 (rs6000_darwin64_record_arg_recurse): Likewise.
1993 (print_operand): Likewise.
1994 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
1995 that uses a single vector register as a vector and not as a
1996 floating point register in terms of the calling sequence.
1997 (rs6000_discover_homogeneous_aggregate): Likewise.
1998 (rs6000_return_in_memory): Likewise.
1999 (init_cumulative_args): Likewise.
2000 (rs6000_function_arg_boundary): Likewise.
2001 (rs6000_function_arg_advance_1): Likewise.
2002 (rs6000_function_arg): Likewise.
2003 (rs6000_pass_by_reference): Likewise.
2004 (rs6000_gimplify_va_arg): Likewise.
2005 (rs6000_secondary_reload_memory): Use machine_mode not enum
2006 machine mode.
2007 (rs6000_split_multireg_move): Use new helper macros.
2008 (spe_func_has_64bit_regs_p): Likewise.
2009 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2010 (output_toc): Use new helper macros.
2011 (rs6000_register_move_cost): Likewise.
2012 (rs6000_function_value): Add IEEE 128-bit floating point calling
2013 sequence support.
2014 (rs6000_libcall_value): Likewise.
2015 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2016 floating point support.
2017 (rs6000_vector_mode_supported_p): Likewise.
2018
2019 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
2020
2021 PR rtl-optimization/66782
2022 * lra-int.h (struct lra_insn_recog_data): Add comment about
2023 clobbered hard regs for arg_hard_regs.
2024 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2025 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2026 Add condition for processing used hard regs.
2027 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2028 Process clobbered hard regs.
2029
2030 2015-07-09 Michael Matz <matz@suse.de>
2031
2032 * genmatch.c (fprintf_indent): New function.
2033 (operand::gen_transform): Add indent parameter.
2034 (expr::gen_transform, c_expr::gen_transform,
2035 capture::gen_transform): Ditto and use fprintf_indent.
2036 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2037 (dt_operand::gen, dt_operand::gen_predicate,
2038 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2039 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2040 (decision_tree::gen_gimple): Adjust calls and indent generated
2041 code.
2042 (decision_tree::gen_generic): Ditto.
2043 (write_predicate): Ditto.
2044
2045 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2046
2047 PR target/66814
2048 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2049 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2050 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2051 {GENERAL,SSE,MMX}_REG_P where appropriate.
2052
2053 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2054
2055 * lto-streamer.h: Don't include target.h and alloc-pool.h.
2056 * builtins.c: Adjust includes.
2057 * gimple.c: Likewise.
2058 * ipa-icf.c: Likewise.
2059 * lto-opts.c: Likewise.
2060 * ipa-reference.c: Likewise.
2061 * lto-section-out.c: Likewise.
2062 * lto-streamer-in.c: Likewise.
2063 * lto-streamer-out.c: Likewise.
2064 * opts-global.c: Likewise.
2065 * symtab.c: Likewise.
2066 * tree-chkp.c: Likewise.
2067 * tree-ssa-live.c: Likewise.
2068 * tree-streamer-in.c: Likewise.
2069 * tree-streamer-out.c: Likewise.
2070 * config/darwin.c: Likewise.
2071 * config/i386/winnt.c: Likewise.
2072
2073 2015-07-09 Richard Biener <rguenther@suse.de>
2074
2075 * genmatch.c (struct expr): Add force_single_use flag.
2076 (expr::expr): Add copy constructor.
2077 (capture_info::walk_match): Gather force_single_use captures.
2078 (expr::gen_transform): Use possibly NULLified sequence.
2079 (dt_simplify::gen): Apply single-use restrictions by NULLifying
2080 seq if any constrained expr is not single-use.
2081 (parser::parse_expr): Refactor to allow multiple flags. Handle
2082 's' flag to force an expression have a single-use if the pattern
2083 simplifies to more than one statement.
2084 * match.pd: Convert most single_use conditionals to :s flags.
2085
2086 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2087
2088 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2089 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2090 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2091
2092 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2093
2094 * flags.h: Don't include flag-types.h or options.h.
2095 * opts-common.c: Adjust includes.
2096 * opts-global.c: Likewise.
2097 * common/config/epiphany/epiphany-common.c: Likewise.
2098
2099 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2100
2101 PR target/66818
2102 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2103 for IA MCU.
2104
2105 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 PR target/66817
2108 * config/i386/i386.c (ix86_return_in_memory): Return true
2109 if int_size_in_bytes returns negative for IA MCU.
2110
2111 2015-07-09 Marek Polacek <polacek@redhat.com>
2112
2113 PR tree-optimization/66718
2114 * Makefile.in (OBJS): Add gimple-laddress.o.
2115 * passes.def: Schedule pass_laddress.
2116 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2117 * tree-pass.h (make_pass_laddress): Declare.
2118 * gimple-laddress.c: New file.
2119
2120 2015-07-09 Richard Biener <rguenther@suse.de>
2121
2122 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2123
2124 2015-07-09 Richard Biener <rguenther@suse.de>
2125
2126 PR tree-optimization/66807
2127 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2128
2129 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
2130
2131 * function.c (stack_protect_epilogue): Use if rather than switch for
2132 check targetm.have_stack_protect_test.
2133
2134 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2135
2136 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2137 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2138 * config/arc/arc.h: Likewise.
2139 * config/arm/arm.h: Likewise.
2140 * config/bfin/bfin.h: Likewise.
2141 * config/epiphany/epiphany.h: Likewise.
2142 * config/frv/frv.h: Likewise.
2143 * config/ia64/ia64.h: Likewise.
2144 * config/iq2000/iq2000.h: Likewise.
2145 * config/lm32/lm32.h: Likewise.
2146 * config/m32r/m32r.h: Likewise.
2147 * config/mcore/mcore.h: Likewise.
2148 * config/mep/mep.h: Likewise.
2149 * config/microblaze/microblaze.h: Likewise.
2150 * config/mips/mips.h: Likewise.
2151 * config/mmix/mmix.h: Likewise.
2152 * config/mn10300/mn10300.h: Likewise.
2153 * config/nds32/nds32.h: Likewise.
2154 * config/nios2/nios2.h: Likewise.
2155 * config/pa/pa.h: Likewise.
2156 * config/rl78/rl78.h: Likewise.
2157 * config/sh/sh.h: Likewise.
2158 * config/sparc/sparc.h: Likewise.
2159 * config/stormy16/stormy16.h: Likewise.
2160 * config/tilegx/tilegx.h: Likewise.
2161 * config/tilepro/tilepro.h: Likewise.
2162 * config/v850/v850.h: Likewise.
2163 * config/xtensa/xtensa.h: Likewise.
2164 * doc/tm.texi: Regenerate.
2165 * doc/tm.texi.in: Adjust.
2166 * combine.c (simplify_set): Likewise.
2167 (simplify_comparison): Likewise.
2168 * expr.c (store_constructor): Likewise.
2169 * internal-fn.c (expand_arith_overflow): Likewise.
2170 * reload.c (push_reload): Likewise.
2171 (find_reloads): Likewise.
2172 (find_reloads_subreg_address): Likewise.
2173 * reload1.c (eliminate_regs_1): Likewise.
2174 * rtlanal.c (nonzero_bits1): Likewise.
2175 (num_sign_bit_copies1): Likewise.
2176 * simplify-rtx.c (simplify_truncation): Likewise.
2177
2178 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2179
2180 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2181 of AUTO_INC_DEC with the preprocessor.
2182 * combine.c (combine_instructions): Likewise.
2183 (can_combine_p): Likewise.
2184 (try_combine): Likewise.
2185 * emit-rtl.c (try_split): Likewise.
2186 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2187 * lower-subreg.c (resolve_simple_move): Likewise.
2188 * lra.c (update_inc_notes): Likewise.
2189 * recog.c (asm_operand_ok): Likewise.
2190 (constrain_operands): Likewise.
2191 * regrename.c (scan_rtx_address): Likewise.
2192 * reload.c (update_auto_inc_notes): Likewise.
2193 (reg_inc_found_and_valid_p): Likewise.
2194 * reload1.c (reload): Likewise.
2195 (emit_input_reload_insns): Likewise.
2196 (delete_output_reload): Likewise.
2197 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2198 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2199
2200 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2201
2202 * rtl.h: Always define AUTO_INC_DEC.
2203 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2204 * combine.c (combine_instructions): Likewise.
2205 (can_combine_p): Likewise.
2206 (try_combine): Likewise.
2207 * emit-rtl.c (try_split): Likewise.
2208 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2209 * lower-subreg.c (resolve_simple_move): Likewise.
2210 * lra.c (update_inc_notes): Likewise.
2211 * recog.c (asm_operand_ok): Likewise.
2212 (constrain_operands): Likewise.
2213 * regrename.c (scan_rtx_address): Likewise.
2214 * reload.c (update_auto_inc_notes): Likewise.
2215 (find_equiv_reg): Likewise.
2216 * reload1.c (reload): Likewise.
2217 (reload_as_needed): Likewise.
2218 (choose_reload_regs): Likewise.
2219 (emit_input_reload_insns): Likewise.
2220 (delete_output_reload): Likewise.
2221 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2222 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2223
2224 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2225
2226 * combine.c (can_combine_def_p): Don't check the value of
2227 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2228 (combinable_i3pat): Likewise.
2229 (mark_used_regs_combine): Likewise.
2230 * regrename.c (rename_chains): Likewise.
2231 * reload.c (find_reloads_address): Likewise.
2232 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2233
2234 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2235
2236 * combine.c (update_rsp_from_reg_equal): Don't check if
2237 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2238 (reg_nonzero_bits_for_combine): Likewise.
2239 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2240 1.
2241 * config/frv/frv.h: Likewise.
2242 * config/lm32/lm32.h: Likewise.
2243 * config/mep/mep.h: Likewise.
2244 * config/mips/mips.h: Likewise.
2245 * config/rs6000/rs6000.h: Likewise.
2246 * config/sh/sh.h: Likewise.
2247 * config/tilegx/tilegx.h (enum reg_class): Likewise.
2248 * config/tilepro/tilepro.h: Likewise.
2249 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2250 * doc/tm.texi: Regenerate.
2251 * doc/tm.texi.in: Adjust.
2252 * rtlanal.c (nonzero_bits1): Likewise.
2253
2254 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2255
2256 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2257 with the preprocessor.
2258 (combine_instructions): Likewise.
2259 (try_combine): Likewise.
2260 (subst): Likewise.
2261 (distribute_notes): Likewise.
2262
2263 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2264
2265 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2266 defined.
2267 (simplify_set): Likewise.
2268 * cse.c (cse_insn): Likewise.
2269 * fold-const.c (fold_single_bit_test): Likewise.
2270 (fold_unary_loc): Likewise.
2271 * postreload.c (reload_cse_simplify_set): Likewise.
2272 (reload_cse_simplify_operands): Likewise.
2273
2274 2015-07-08 Jiong Wang <jiong.wang@arm.com>
2275
2276 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2277 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2278
2279 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2280
2281 PR target/66746
2282 * config/i386/x86intrin.h: Include <adxintrin.h> even if
2283 __iamcu__ is defined.
2284
2285 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2286
2287 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2288
2289 2015-07-08 Iain Sandoe <iain@codesourcery.com>
2290
2291 PR target/66523
2292 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2293 names from preservation.
2294
2295 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2296
2297 PR target/66806
2298 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2299 change for IAMCU.
2300 (function_arg_advance_32): Don't pass vectors in registers for
2301 IAMCU.
2302 (function_arg_32): Likewise.
2303 (ix86_return_in_memory): Don't return vectors in registers for
2304 IAMCU.
2305
2306 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
2307
2308 PR middle-end/66334
2309 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2310 hard regno live at the start of BB with incoming abnormal edges.
2311 * lra-lives.c (process_bb_lives): Ditto.
2312
2313 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2314
2315 PR libgomp/65099
2316 * config/nvptx/mkoffload.c (main): Create an offload image only in
2317 64-bit configurations.
2318
2319 2015-07-08 Martin Liska <mliska@suse.cz>
2320
2321 PR bootstrap/66744
2322 * tree-sra.c (create_access_1): Call ctor without brackets.
2323 (create_artificial_child_access): Likewise.
2324
2325 2015-07-08 Richard Biener <rguenther@suse.de>
2326
2327 PR tree-optimization/66793
2328 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2329 Properly split the block after stmts ending it.
2330
2331 2015-07-08 Richard Biener <rguenther@suse.de>
2332
2333 PR tree-optimization/66794
2334 * passes.c (execute_function_todo): Assert that post-dominators
2335 are not computed.
2336 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2337 Free post-dominators.
2338
2339 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2340
2341 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2342 with early exit.
2343
2344 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2345
2346 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2347 more than or equal 8 and less than 32 when optimizing for size.
2348
2349 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2350
2351 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2352 COSTS_N_INSNS (1) and increment it appropriately throughout the
2353 function.
2354
2355 2015-07-08 Richard Biener <rguenther@suse.de>
2356
2357 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2358
2359 2015-07-08 Alan Modra <amodra@gmail.com>
2360
2361 * target.def (rtx_costs): Remove "code" param, add "mode".
2362 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2363 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
2364 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2365 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
2366 call. Track mode when given in rtx.
2367 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
2368 (default_address_cost): Pass Pmode to rtx_cost.
2369 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2370 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2371 with NULL set.
2372 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
2373 (notreg_cost): Add mode param. Use it.
2374 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
2375 mode param and pass to set_src_cost. Update all calls.
2376 (hash_scan_set): Formatting.
2377 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2378 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2379 * hooks.h: Ditto.
2380 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2381 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2382 emit_store_flag): Update set_src_cost and rtx_cost calls.
2383 * auto-inc-dec.c (attempt_change): Likewise.
2384 * calls.c (precompute_register_parameters): Likewise.
2385 * combine.c (expand_compound_operation, make_extraction,
2386 force_to_mode, distribute_and_simplify_rtx): Likewise.
2387 * dojump.c (prefer_and_bit_test): Likewise.
2388 * dse.c (find_shift_sequence): Likewise.
2389 * expr.c (compress_float_constant): Likewise.
2390 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2391 * ifcvt.c (noce_try_sign_mask): Likewise.
2392 * loop-doloop.c (doloop_optimize): Likewise.
2393 * loop-invariant.c (create_new_invariant): Likewise.
2394 * lower-subreg.c (shift_cost, compute_costs): Likewise.
2395 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2396 lshift_cheap_p): Likewise.
2397 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2398 try_replace_in_use, reload_cse_move2add): Likewise.
2399 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2400 Likewise.
2401 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2402 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2403 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2404 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2406 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
2407 to rtx_cost calls.
2408 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2409 * config/arc/arc.c (arc_rtx_costs): Likewise.
2410 * config/arm/arm.c (arm_rtx_costs): Likewise.
2411 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2412 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2413 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2414 * config/cris/cris.c (cris_rtx_costs): Likewise.
2415 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2416 * config/frv/frv.c (frv_rtx_costs): Likewise.
2417 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2418 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2419 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2420 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2421 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2422 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2423 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2424 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2425 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2426 * config/mep/mep.c (mep_rtx_cost): Likewise.
2427 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2428 * config/mips/mips.c (mips_rtx_costs): Likewise.
2429 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2430 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2431 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2432 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2433 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2434 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2435 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2436 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2437 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2438 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2439 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2440 * config/s390/s390.c (s390_rtx_costs): Likewise.
2441 * config/sh/sh.c (sh_rtx_costs): Likewise.
2442 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2443 * config/spu/spu.c (spu_rtx_costs): Likewise.
2444 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2445 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2446 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2447 * config/v850/v850.c (v850_rtx_costs): Likewise.
2448 * config/vax/vax.c (vax_rtx_costs): Likewise.
2449 * config/visium/visium.c (visium_rtx_costs): Likewise.
2450 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2451 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2452 "code" param, and pass as outer_code to first rtx_cost call. Pass
2453 mode to rtx_cost calls.
2454 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2455 calls.
2456 (aarch64_rtx_costs_wrapper): Update.
2457 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2458 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2459 rtx_cost calls.
2460 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2461 and rtx_cost calls.
2462 (avr_operand_rtx_cost): Similarly.
2463 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2464 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2465 * config/mips/mips.c (mips_stack_address_p): Comment typo.
2466 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2467 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2468 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2469 rtx_cost.
2470 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2471 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2472 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2473 * doc/tm.texi: Regenerate.
2474
2475 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
2476
2477 * tree-core.h: Include symtab.h.
2478 * rtl.h: Include hard-reg-set.h but not flags.h.
2479 (HARD_CONST): Remove condition compilation involving HARD_CONST since
2480 hard-reg-set.h is always included.
2481 * regs.h: Don't include hard-reg-set.h or rtl.h.
2482 * cfg.h: Include dominance.h.
2483 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2484 * backend.h: New. Aggregate commonly used backend header files.
2485 * gimple-ssa.h: Don't include tree-hasher.h.
2486 * ssa.h: New. Aggregate commonly used SSA header files.
2487 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2488 * sel-sched-ir.h: Flatten includes.
2489 * lra-int.h: Flatten completely.
2490 * sel-sched-dump.h: Flatten includes.
2491 * ira-int.h: Flatten includes.
2492 * gimple-streamer.h: Remove all includes.
2493 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2494 * resource.h: Flatten hard-reg-set.h and df.h.
2495 * sched-int.h: Flatten insn-arrt.h and df.h.
2496 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2497 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2498 * genattrtab.c (write_header): Adjust generated includes.
2499 * genautomata.c (main): Likewise.
2500 * genconditions.c (write-header): Likewise.
2501 * genemit.c (main): Likewise.
2502 * gengtype.c (open_base_files): Likewise.
2503 * genopinit.c (main): Likewise.
2504 * genoutput.c (output_prologue): Likewise.
2505 * genpeep.c (main): Likewise.
2506 * genpreds.c (write_insn_preds_c): Likewise.
2507 * genrecog.c (write_header): Likewise.
2508 * alias.c: Adjust includes.
2509 * asan.c: Likewise.
2510 * attribs.c: Likewise.
2511 * auto-inc-dec.c: Likewise.
2512 * auto-profile.c: Likewise.
2513 * bb-reorder.c: Likewise.
2514 * bt-load.c: Likewise.
2515 * builtins.c: Likewise.
2516 * caller-save.c: Likewise.
2517 * calls.c: Likewise.
2518 * ccmp.c: Likewise.
2519 * cfg.c: Likewise.
2520 * cfganal.c: Likewise.
2521 * cfgbuild.c: Likewise.
2522 * cfgcleanup.c: Likewise.
2523 * cfgexpand.c: Likewise.
2524 * cfghooks.c: Likewise.
2525 * cfgloop.c: Likewise.
2526 * cfgloopanal.c: Likewise.
2527 * cfgloopmanip.c: Likewise.
2528 * cfgrtl.c: Likewise.
2529 * cgraph.c: Likewise.
2530 * cgraphbuild.c: Likewise.
2531 * cgraphclones.c: Likewise.
2532 * cgraphunit.c: Likewise.
2533 * cilk-common.c: Likewise.
2534 * combine-stack-adj.c: Likewise.
2535 * combine.c: Likewise.
2536 * compare-elim.c: Likewise.
2537 * convert.c: Likewise.
2538 * coverage.c: Likewise.
2539 * cppbuiltin.c: Likewise.
2540 * cprop.c: Likewise.
2541 * cse.c: Likewise.
2542 * cselib.c: Likewise.
2543 * data-streamer-in.c: Likewise.
2544 * data-streamer-out.c: Likewise.
2545 * data-streamer.c: Likewise.
2546 * dbxout.c: Likewise.
2547 * dce.c: Likewise.
2548 * ddg.c: Likewise.
2549 * debug.c: Likewise.
2550 * df-core.c: Likewise.
2551 * df-problems.c: Likewise.
2552 * df-scan.c: Likewise.
2553 * dfp.c: Likewise.
2554 * dojump.c: Likewise.
2555 * dominance.c: Likewise.
2556 * domwalk.c: Likewise.
2557 * double-int.c: Likewise.
2558 * dse.c: Likewise.
2559 * dumpfile.c: Likewise.
2560 * dwarf2asm.c: Likewise.
2561 * dwarf2cfi.c: Likewise.
2562 * dwarf2out.c: Likewise.
2563 * emit-rtl.c: Likewise.
2564 * et-forest.c: Likewise.
2565 * except.c: Likewise.
2566 * explow.c: Likewise.
2567 * expmed.c: Likewise.
2568 * expr.c: Likewise.
2569 * final.c: Likewise.
2570 * fixed-value.c: Likewise.
2571 * fold-const.c: Likewise.
2572 * function.c: Likewise.
2573 * fwprop.c: Likewise.
2574 * gcc-plugin.h: Likewise.
2575 * gcse-common.c: Likewise.
2576 * gcse.c: Likewise.
2577 * generic-match-head.c: Likewise.
2578 * ggc-page.c: Likewise.
2579 * gimple-builder.c: Likewise.
2580 * gimple-expr.c: Likewise.
2581 * gimple-fold.c: Likewise.
2582 * gimple-iterator.c: Likewise.
2583 * gimple-low.c: Likewise.
2584 * gimple-match-head.c: Likewise.
2585 * gimple-pretty-print.c: Likewise.
2586 * gimple-ssa-isolate-paths.c: Likewise.
2587 * gimple-ssa-strength-reduction.c: Likewise.
2588 * gimple-streamer-in.c: Likewise.
2589 * gimple-streamer-out.c: Likewise.
2590 * gimple-walk.c: Likewise.
2591 * gimple.c: Likewise.
2592 * gimplify-me.c: Likewise.
2593 * gimplify.c: Likewise.
2594 * godump.c: Likewise.
2595 * graph.c: Likewise.
2596 * graphite-blocking.c: Likewise.
2597 * graphite-dependences.c: Likewise.
2598 * graphite-interchange.c: Likewise.
2599 * graphite-isl-ast-to-gimple.c: Likewise.
2600 * graphite-optimize-isl.c: Likewise.
2601 * graphite-poly.c: Likewise.
2602 * graphite-scop-detection.c: Likewise.
2603 * graphite-sese-to-poly.c: Likewise.
2604 * graphite.c: Likewise.
2605 * haifa-sched.c: Likewise.
2606 * hw-doloop.c: Likewise.
2607 * ifcvt.c: Likewise.
2608 * init-regs.c: Likewise.
2609 * internal-fn.c: Likewise.
2610 * ipa-chkp.c: Likewise.
2611 * ipa-comdats.c: Likewise.
2612 * ipa-cp.c: Likewise.
2613 * ipa-devirt.c: Likewise.
2614 * ipa-icf-gimple.c: Likewise.
2615 * ipa-icf.c: Likewise.
2616 * ipa-inline-analysis.c: Likewise.
2617 * ipa-inline-transform.c: Likewise.
2618 * ipa-inline.c: Likewise.
2619 * ipa-polymorphic-call.c: Likewise.
2620 * ipa-profile.c: Likewise.
2621 * ipa-prop.c: Likewise.
2622 * ipa-pure-const.c: Likewise.
2623 * ipa-ref.c: Likewise.
2624 * ipa-reference.c: Likewise.
2625 * ipa-split.c: Likewise.
2626 * ipa-utils.c: Likewise.
2627 * ipa-visibility.c: Likewise.
2628 * ipa.c: Likewise.
2629 * ira-build.c: Likewise.
2630 * ira-color.c: Likewise.
2631 * ira-conflicts.c: Likewise.
2632 * ira-costs.c: Likewise.
2633 * ira-emit.c: Likewise.
2634 * ira-lives.c: Likewise.
2635 * ira.c: Likewise.
2636 * jump.c: Likewise.
2637 * langhooks.c: Likewise.
2638 * lcm.c: Likewise.
2639 * loop-doloop.c: Likewise.
2640 * loop-init.c: Likewise.
2641 * loop-invariant.c: Likewise.
2642 * loop-iv.c: Likewise.
2643 * loop-unroll.c: Likewise.
2644 * lower-subreg.c: Likewise.
2645 * lra-assigns.c: Likewise.
2646 * lra-coalesce.c: Likewise.
2647 * lra-constraints.c: Likewise.
2648 * lra-eliminations.c: Likewise.
2649 * lra-lives.c: Likewise.
2650 * lra-remat.c: Likewise.
2651 * lra-spills.c: Likewise.
2652 * lra.c: Likewise.
2653 * lto-cgraph.c: Likewise.
2654 * lto-compress.c: Likewise.
2655 * lto-opts.c: Likewise.
2656 * lto-section-in.c: Likewise.
2657 * lto-section-out.c: Likewise.
2658 * lto-streamer-in.c: Likewise.
2659 * lto-streamer-out.c: Likewise.
2660 * lto-streamer.c: Likewise.
2661 * mcf.c: Likewise.
2662 * mode-switching.c: Likewise.
2663 * modulo-sched.c: Likewise.
2664 * omega.c: Likewise.
2665 * omp-low.c: Likewise.
2666 * optabs.c: Likewise.
2667 * opts-global.c: Likewise.
2668 * passes.c: Likewise.
2669 * plugin.c: Likewise.
2670 * postreload-gcse.c: Likewise.
2671 * postreload.c: Likewise.
2672 * predict.c: Likewise.
2673 * print-rtl.c: Likewise.
2674 * print-tree.c: Likewise.
2675 * profile.c: Likewise.
2676 * real.c: Likewise.
2677 * realmpfr.c: Likewise.
2678 * recog.c: Likewise.
2679 * ree.c: Likewise.
2680 * reg-stack.c: Likewise.
2681 * regcprop.c: Likewise.
2682 * reginfo.c: Likewise.
2683 * regrename.c: Likewise.
2684 * regstat.c: Likewise.
2685 * reload.c: Likewise.
2686 * reload1.c: Likewise.
2687 * reorg.c: Likewise.
2688 * resource.c: Likewise.
2689 * rtl-chkp.c: Likewise.
2690 * rtlanal.c: Likewise.
2691 * rtlhooks.c: Likewise.
2692 * sanopt.c: Likewise.
2693 * sched-deps.c: Likewise.
2694 * sched-ebb.c: Likewise.
2695 * sched-rgn.c: Likewise.
2696 * sched-vis.c: Likewise.
2697 * sdbout.c: Likewise.
2698 * sel-sched-dump.c: Likewise.
2699 * sel-sched-ir.c: Likewise.
2700 * sel-sched.c: Likewise.
2701 * sese.c: Likewise.
2702 * shrink-wrap.c: Likewise.
2703 * simplify-rtx.c: Likewise.
2704 * stack-ptr-mod.c: Likewise.
2705 * stmt.c: Likewise.
2706 * stor-layout.c: Likewise.
2707 * store-motion.c: Likewise.
2708 * stringpool.c: Likewise.
2709 * symtab.c: Likewise.
2710 * target-globals.c: Likewise.
2711 * targhooks.c: Likewise.
2712 * toplev.c: Likewise.
2713 * tracer.c: Likewise.
2714 * trans-mem.c: Likewise.
2715 * tree-affine.c: Likewise.
2716 * tree-browser.c: Likewise.
2717 * tree-call-cdce.c: Likewise.
2718 * tree-cfg.c: Likewise.
2719 * tree-cfgcleanup.c: Likewise.
2720 * tree-chkp-opt.c: Likewise.
2721 * tree-chkp.c: Likewise.
2722 * tree-chrec.c: Likewise.
2723 * tree-complex.c: Likewise.
2724 * tree-data-ref.c: Likewise.
2725 * tree-dfa.c: Likewise.
2726 * tree-diagnostic.c: Likewise.
2727 * tree-dump.c: Likewise.
2728 * tree-eh.c: Likewise.
2729 * tree-emutls.c: Likewise.
2730 * tree-if-conv.c: Likewise.
2731 * tree-inline.c: Likewise.
2732 * tree-into-ssa.c: Likewise.
2733 * tree-iterator.c: Likewise.
2734 * tree-loop-distribution.c: Likewise.
2735 * tree-nested.c: Likewise.
2736 * tree-nrv.c: Likewise.
2737 * tree-object-size.c: Likewise.
2738 * tree-outof-ssa.c: Likewise.
2739 * tree-parloops.c: Likewise.
2740 * tree-phinodes.c: Likewise.
2741 * tree-predcom.c: Likewise.
2742 * tree-pretty-print.c: Likewise.
2743 * tree-profile.c: Likewise.
2744 * tree-scalar-evolution.c: Likewise.
2745 * tree-sra.c: Likewise.
2746 * tree-ssa-address.c: Likewise.
2747 * tree-ssa-alias.c: Likewise.
2748 * tree-ssa-ccp.c: Likewise.
2749 * tree-ssa-coalesce.c: Likewise.
2750 * tree-ssa-copy.c: Likewise.
2751 * tree-ssa-copyrename.c: Likewise.
2752 * tree-ssa-dce.c: Likewise.
2753 * tree-ssa-dom.c: Likewise.
2754 * tree-ssa-dse.c: Likewise.
2755 * tree-ssa-forwprop.c: Likewise.
2756 * tree-ssa-ifcombine.c: Likewise.
2757 * tree-ssa-live.c: Likewise.
2758 * tree-ssa-loop-ch.c: Likewise.
2759 * tree-ssa-loop-im.c: Likewise.
2760 * tree-ssa-loop-ivcanon.c: Likewise.
2761 * tree-ssa-loop-ivopts.c: Likewise.
2762 * tree-ssa-loop-manip.c: Likewise.
2763 * tree-ssa-loop-niter.c: Likewise.
2764 * tree-ssa-loop-prefetch.c: Likewise.
2765 * tree-ssa-loop-unswitch.c: Likewise.
2766 * tree-ssa-loop.c: Likewise.
2767 * tree-ssa-math-opts.c: Likewise.
2768 * tree-ssa-operands.c: Likewise.
2769 * tree-ssa-phiopt.c: Likewise.
2770 * tree-ssa-phiprop.c: Likewise.
2771 * tree-ssa-pre.c: Likewise.
2772 * tree-ssa-propagate.c: Likewise.
2773 * tree-ssa-reassoc.c: Likewise.
2774 * tree-ssa-sccvn.c: Likewise.
2775 * tree-ssa-scopedtables.c: Likewise.
2776 * tree-ssa-sink.c: Likewise.
2777 * tree-ssa-strlen.c: Likewise.
2778 * tree-ssa-structalias.c: Likewise.
2779 * tree-ssa-tail-merge.c: Likewise.
2780 * tree-ssa-ter.c: Likewise.
2781 * tree-ssa-threadedge.c: Likewise.
2782 * tree-ssa-threadupdate.c: Likewise.
2783 * tree-ssa-uncprop.c: Likewise.
2784 * tree-ssa-uninit.c: Likewise.
2785 * tree-ssa.c: Likewise.
2786 * tree-ssanames.c: Likewise.
2787 * tree-stdarg.c: Likewise.
2788 * tree-streamer-in.c: Likewise.
2789 * tree-streamer-out.c: Likewise.
2790 * tree-streamer.c: Likewise.
2791 * tree-switch-conversion.c: Likewise.
2792 * tree-tailcall.c: Likewise.
2793 * tree-vect-data-refs.c: Likewise.
2794 * tree-vect-generic.c: Likewise.
2795 * tree-vect-loop-manip.c: Likewise.
2796 * tree-vect-loop.c: Likewise.
2797 * tree-vect-patterns.c: Likewise.
2798 * tree-vect-slp.c: Likewise.
2799 * tree-vect-stmts.c: Likewise.
2800 * tree-vectorizer.c: Likewise.
2801 * tree-vrp.c: Likewise.
2802 * tree.c: Likewise.
2803 * tsan.c: Likewise.
2804 * ubsan.c: Likewise.
2805 * valtrack.c: Likewise.
2806 * value-prof.c: Likewise.
2807 * var-tracking.c: Likewise.
2808 * varasm.c: Likewise.
2809 * varpool.c: Likewise.
2810 * vmsdbgout.c: Likewise.
2811 * vtable-verify.c: Likewise.
2812 * web.c: Likewise.
2813 * wide-int.cc: Likewise.
2814 * xcoffout.c: Likewise.
2815 * config/aarch64/aarch64-builtins.c: Likewise.
2816 * config/aarch64/aarch64.c: Likewise.
2817 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2818 * config/alpha/alpha.c: Likewise.
2819 * config/arc/arc.c: Likewise.
2820 * config/arm/aarch-common.c: Likewise.
2821 * config/arm/arm-builtins.c: Likewise.
2822 * config/arm/arm-c.c: Likewise.
2823 * config/arm/arm.c: Likewise.
2824 * config/avr/avr-c.c: Likewise.
2825 * config/avr/avr-log.c: Likewise.
2826 * config/avr/avr.c: Likewise.
2827 * config/bfin/bfin.c: Likewise.
2828 * config/c6x/c6x.c: Likewise.
2829 * config/cr16/cr16.c: Likewise.
2830 * config/cris/cris.c: Likewise.
2831 * config/darwin-c.c: Likewise.
2832 * config/darwin.c: Likewise.
2833 * config/epiphany/epiphany.c: Likewise.
2834 * config/epiphany/mode-switch-use.c: Likewise.
2835 * config/epiphany/resolve-sw-modes.c: Likewise.
2836 * config/fr30/fr30.c: Likewise.
2837 * config/frv/frv.c: Likewise.
2838 * config/ft32/ft32.c: Likewise.
2839 * config/h8300/h8300.c: Likewise.
2840 * config/i386/i386-c.c: Likewise.
2841 * config/i386/i386.c: Likewise.
2842 * config/i386/msformat-c.c: Likewise.
2843 * config/i386/winnt-cxx.c: Likewise.
2844 * config/i386/winnt-stubs.c: Likewise.
2845 * config/i386/winnt.c: Likewise.
2846 * config/ia64/ia64-c.c: Likewise.
2847 * config/ia64/ia64.c: Likewise.
2848 * config/iq2000/iq2000.c: Likewise.
2849 * config/lm32/lm32.c: Likewise.
2850 * config/m32c/m32c-pragma.c: Likewise.
2851 * config/m32c/m32c.c: Likewise.
2852 * config/m32r/m32r.c: Likewise.
2853 * config/m68k/m68k.c: Likewise.
2854 * config/mcore/mcore.c: Likewise.
2855 * config/mep/mep-pragma.c: Likewise.
2856 * config/mep/mep.c: Likewise.
2857 * config/microblaze/microblaze-c.c: Likewise.
2858 * config/microblaze/microblaze.c: Likewise.
2859 * config/mips/mips.c: Likewise.
2860 * config/mmix/mmix.c: Likewise.
2861 * config/mn10300/mn10300.c: Likewise.
2862 * config/moxie/moxie.c: Likewise.
2863 * config/msp430/msp430-c.c: Likewise.
2864 * config/msp430/msp430.c: Likewise.
2865 * config/nds32/nds32-cost.c: Likewise.
2866 * config/nds32/nds32-fp-as-gp.c: Likewise.
2867 * config/nds32/nds32-intrinsic.c: Likewise.
2868 * config/nds32/nds32-isr.c: Likewise.
2869 * config/nds32/nds32-md-auxiliary.c: Likewise.
2870 * config/nds32/nds32-memory-manipulation.c: Likewise.
2871 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2872 * config/nds32/nds32-predicates.c: Likewise.
2873 * config/nds32/nds32.c: Likewise.
2874 * config/nios2/nios2.c: Likewise.
2875 * config/nvptx/nvptx.c: Likewise.
2876 * config/pa/pa.c: Likewise.
2877 * config/pdp11/pdp11.c: Likewise.
2878 * config/rl78/rl78-c.c: Likewise.
2879 * config/rl78/rl78.c: Likewise.
2880 * config/rs6000/rs6000-c.c: Likewise.
2881 * config/rs6000/rs6000.c: Likewise.
2882 * config/rx/rx.c: Likewise.
2883 * config/s390/s390-c.c: Likewise.
2884 * config/s390/s390.c: Likewise.
2885 * config/sh/sh-c.c: Likewise.
2886 * config/sh/sh-mem.cc: Likewise.
2887 * config/sh/sh.c: Likewise.
2888 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2889 * config/sh/sh_treg_combine.cc: Likewise.
2890 * config/sol2-c.c: Likewise.
2891 * config/sol2-cxx.c: Likewise.
2892 * config/sol2-stubs.c: Likewise.
2893 * config/sol2.c: Likewise.
2894 * config/sparc/sparc-c.c: Likewise.
2895 * config/sparc/sparc.c: Likewise.
2896 * config/spu/spu-c.c: Likewise.
2897 * config/spu/spu.c: Likewise.
2898 * config/stormy16/stormy16.c: Likewise.
2899 * config/tilegx/mul-tables.c: Likewise.
2900 * config/tilegx/tilegx-c.c: Likewise.
2901 * config/tilegx/tilegx.c: Likewise.
2902 * config/tilepro/mul-tables.c: Likewise.
2903 * config/tilepro/tilepro-c.c: Likewise.
2904 * config/tilepro/tilepro.c: Likewise.
2905 * config/v850/v850-c.c: Likewise.
2906 * config/v850/v850.c: Likewise.
2907 * config/vax/vax.c: Likewise.
2908 * config/visium/visium.c: Likewise.
2909 * config/vms/vms-c.c: Likewise.
2910 * config/vms/vms.c: Likewise.
2911 * config/vxworks.c: Likewise.
2912 * config/xtensa/xtensa.c: Likewise.
2913
2914 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
2915
2916 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
2917 Remove operand constraints. Change operand 2 predicate to
2918 nonmemory operand. Limit const_int values to mode bitsize. Only
2919 allow const_int values less than 32 when optimizing for size.
2920 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
2921 Remove operand constraints.
2922 (*bt<mode>): Use SImode for const_int values less than 32.
2923 (regmode): Remove mode attribute.
2924
2925 2015-07-07 Anatoly Sokolov <aesok@post.ru>
2926
2927 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2928 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
2929 moxie_legitimate_address_p): New functions.
2930 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2931
2932 2015-07-07 Tom de Vries <tom@codesourcery.com>
2933
2934 PR tree-optimization/66642
2935 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
2936 header comment. Rename split_edge variable to edge_at_split. Split
2937 exit edge to create new loop exit bb. Insert loop exit phis in new
2938 loop exit bb.
2939
2940 2015-07-07 Tom de Vries <tom@codesourcery.com>
2941
2942 * tree-cfg.c (get_virtual_phi): New function.
2943 * tree-cfg.h (get_virtual_phi): Declare.
2944 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
2945 (rewrite_virtuals_into_loop_closed_ssa): New function.
2946 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
2947 Declare.
2948 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
2949 (transform_to_exit_first_loop_alt): Use
2950 rewrite_virtuals_into_loop_closed_ssa.
2951
2952 2015-07-07 Richard Biener <rguenther@suse.de>
2953
2954 * fold-const.c (fold_binary_loc): Move
2955 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
2956 * match.pd: ... here.
2957 Add (X * C1) % C2 -> 0 simplification pattern derived from
2958 extract_muldiv_1.
2959
2960 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
2961
2962 PR target/66780
2963 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
2964 change for target/65249.
2965
2966 2015-07-07 Paulo Matos <pmatos@broadcom.com>
2967
2968 * symtab.c (address_matters_1): Fix typo in comment above.
2969 (can_increase_alignment_p): Likewise.
2970
2971 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2972
2973 * function.c (free_after_compilation): Clear PROP_cfg in
2974 f->curr_properties.
2975
2976 2015-07-07 Richard Biener <rguenther@suse.de>
2977
2978 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
2979 add which use to.
2980 (add_control_edge): Remove excessive vertical space in dumping.
2981 (process_ssa_edge_worklist): Simulate at most one statement and
2982 return whether we did. Do not simulate PHIs if they are in a
2983 BB not yet simulated.
2984 (ssa_propagate): Adjust to always drain the BB worklist whenever
2985 a BB is available there, likewise the VARYING edges list before
2986 the interesting edge list.
2987
2988 2015-07-07 Christian Bruel <christian.bruel@st.com>
2989
2990 PR target/52144
2991 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
2992
2993 2015-07-07 Richard Biener <rguenther@suse.de>
2994
2995 PR middle-end/66739
2996 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
2997 A - B.
2998
2999 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3000
3001 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
3002 modes for operands 0 and 3. Use SImode for operands 2 and 3.
3003 Copy operand 0 to a temporary if !ext_register_operand. Remove
3004 ancient extract_bit_field workaround.
3005 (insv<mode>_1): Rename from mov<mode>_insv_1.
3006 (*insvqi): Rename from *movqi_insv_2.
3007 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3008 for renamed insvsi_1.
3009 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3010
3011 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
3012
3013 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
3014 call to nvptx_reorg_subreg.
3015
3016 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
3017
3018 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3019 * graphite-dependencies.c, graphite-interchange.c,
3020 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3021 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3022 Likewise.
3023
3024 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
3025
3026 * match.pd: Remove element_mode inside HONOR_*.
3027 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3028 (~X | X -> -1, ~X ^ X -> -1): Merge.
3029 * tree.c (build_each_one_cst): New function.
3030 * tree.h (build_each_one_cst): Likewise.
3031
3032 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3033
3034 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3035 PROCESSOR_IAMCU.
3036
3037 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
3038
3039 * config.gcc <mips*-*-*>: Add fused-madd.opt.
3040 * config/mips/mips.opt (mfused-madd): Remove.
3041 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3042 * config/mips/mips.h (TARGET_MIPS8000): New.
3043 (ISA_HAS_FP_MADD4_MSUB4): Remove.
3044 (ISA_HAS_FP_MADDF_MSUBF): Remove.
3045 (ISA_HAS_FP_MADD3_MSUB3): Remove.
3046 (ISA_HAS_NMADD4_NMSUB4): Remove.
3047 (ISA_HAS_NMADD3_NMSUB3): Remove.
3048 (ISA_HAS_FUSED_MADD4): New.
3049 (ISA_HAS_UNFUSED_MADD4): New.
3050 (ISA_HAS_FUSED_MADDF): New.
3051 (ISA_HAS_FUSED_MADD3): New.
3052 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3053 (*fma<mode>4_madd3) New.
3054 (*fma<mode>4_madd4) New.
3055 (*fma<mode>4_maddf) New.
3056 (fms<mode>4) New.
3057 (*fms<mode>4_msub3) New.
3058 (*fms<mode>4_msub4) New.
3059 (fnma<mode>4) New.
3060 (*fnma<mode>4_nmadd3) New.
3061 (*fnma<mode>4_nmadd4) New.
3062 (fnms<mode>4) New.
3063 (*fnms<mode>4_nmsub3) New.
3064 (*fnms<mode>4_nmsub4) New.
3065 (*madd4<mode>) Modify to be unfused only.
3066 (*msub4<mode>) Modify to be unfused only.
3067 (*nmadd4<mode>) Modify to be unfused only.
3068 (*nmsub4<mode>) Modify to be unfused only.
3069 (*madd3<mode>) Remove.
3070 (*msub3<mode>) Remove.
3071 (*nmadd3<mode>) Remove.
3072 (*nmsub3<mode>) Remove.
3073 (*nmadd3<mode>_fastmath) Remove.
3074 (*nmsub3<mode>_fastmath) Remove.
3075 (*nmadd4<mode>_fastmath) Update condition.
3076 (*nmsub4<mode>_fastmath) Update condition.
3077
3078 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3079
3080 PR target/65956
3081 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3082 alignment attribute, exploring one level down for records and arrays.
3083
3084 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3085
3086 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
3087 modes for operands 0 and 1. Use SImode for operands 2 and 3.
3088 Copy operand 1 to a temporary if !ext_register_operand. Remove
3089 ancient extract_bit_field workaround.
3090 (*extv<mode>): Rename from *mov<mode>_extv_1.
3091 (*extvqi): Rename from *movqi_extv_1.
3092 (extzv<mode>): Rename from extzv. Use SWI248 modes for
3093 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
3094 to a temporary if !ext_register_operand. Remove ancient
3095 extract_bit_field workaround.
3096 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3097 (*extzvqi): Rename from *movqi_extzv_2.
3098 (*testqi_ext_3): Remove modes from const_int_operand predicated
3099 operands. Add "n" constraint.
3100 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3101 operand. Add "J" constraint.
3102 (*btsq, *btrq, *btcq peephole2s): Remove mode from
3103 const_0_to_63 predicated operand.
3104 (regmode): New insn attribute.
3105 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
3106 to nonmemory_operand. Use regmode insn attribute.
3107 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3108 (*jcc_bt<mode>_mask): Remove mode from operand 3.
3109 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3110 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3111 operands. Use "N" constraint instead of "n".
3112
3113 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3114
3115 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3116
3117 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3118
3119 PR target/66749
3120 * config/i386/i386.c (iamcu_cost): New.
3121 (m_IAMCU): Likewise.
3122 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3123 (processor_target_table): Add an entry for "iamcu".
3124 (processor_alias_table): Likewise.
3125 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3126 (ix86_adjust_cost): Likewise.
3127 (ia32_multipass_dfa_lookahead): Likewise.
3128 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3129 * config/i386/x86-tune.def: Updated for m_IAMCU.
3130
3131 2015-07-06 Richard Biener <rguenther@suse.de>
3132
3133 PR tree-optimization/66772
3134 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3135 values are available in the PHI node BB when there are
3136 still unexecutable edges.
3137
3138 2015-07-06 Richard Biener <rguenther@suse.de>
3139
3140 PR tree-optimization/66767
3141 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3142 Make sure to build the alignment test on a SSA name without
3143 final alignment info valid only if the alignment test
3144 evaluates to true.
3145
3146 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
3147
3148 PR target/66620
3149 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3150 loop start when inserting LSETUP.
3151
3152 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3153
3154 PR target/53383
3155 * config/i386/i386.c (ix86_option_override_internal): Allow
3156 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3157
3158 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3159
3160 * read-md.c (decimal_string): Rename to ...
3161 (md_decimal_string): ... this.
3162 (handle_enum): Reflect this.
3163
3164 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3165
3166 PR target/66731
3167 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3168
3169 2015-07-06 Richard Biener <rguenther@suse.de>
3170
3171 PR middle-end/66759
3172 * match.pd: Add missing constraint of y to REAL_CST in
3173 REAL_CST - x CMP y to y - CST CMP x simplification.
3174
3175 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
3176
3177 PR tree-optimization/66757
3178 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3179
3180 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
3181 Sandra Loosemore <sandra@codesourcery.com>
3182
3183 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3184 Delete extern declaration.
3185 (gprel_constant_p): Add extern declaration.
3186 * config/nios2/constraints.md ("S"): Use gprel_constant_p
3187 instead of nios2_symbol_ref_in_small_data_p.
3188 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3189 (nios2_symbol_ref_in_small_data_p): Make static.
3190 (gprel_constant_p): Make non-static.
3191
3192 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
3193
3194 * doc/fragments.texi (Target Fragment): Convert debian.org
3195 link to use https.
3196 * doc/install.texi (Configuration): Ditto.
3197
3198 2015-07-05 Jakub Jelinek <jakub@redhat.com>
3199
3200 PR tree-optimization/66718
3201 * tree-vect-stmts.c (vectorizable_call): Replace uses of
3202 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3203
3204 PR tree-optimization/66718
3205 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3206 vectorizable_load, vectorizable_condition): Move vectype,
3207 nunits, ncopies computation after checking what kind of statement
3208 stmt is.
3209
3210 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3211
3212 * target-insns.def (extv, extzv, insv): New targetm instruction
3213 patterns.
3214 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3215 interface.
3216 * recog.c (simplify_while_replacing): Likewise.
3217
3218 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3219
3220 * target-insns.def (doloop_begin, doloop_end): New targetm
3221 instruction patterns.
3222 * loop-init.c: Include target.h.
3223 (pass_loop2::gate): Use the new targetm patterns instead of
3224 HAVE_*/gen_* interface.
3225 (pass_rtl_doloop::gate): Likewise.
3226 (pass_rtl_doloop::execute): Remove preprocessor condition.
3227 * hw-doloop.c: Build unconditionally.
3228 * loop-doloop.c: Likewise.
3229 (doloop_optimize): Use the new targetm patterns instead of
3230 HAVE_*/gen_* interface.
3231 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3232 * modulo-sched.c (doloop_register_get): Likewise.
3233
3234 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3235
3236 * target-insns.def (clear_cache): New targetm instruction pattern.
3237 * builtins.c (expand_builtin___clear_cache): Use it instead of
3238 HAVE_*/gen_* interface.
3239
3240 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3241
3242 * target-insns.def (allocate_stack, check_stack, probe_stack)
3243 (probe_stack_address, split_stack_prologue, split_stack_space_check):
3244 New targetm instruction patterns.
3245 * explow.c (allocate_dynamic_stack_space): Use them instead of
3246 HAVE_*/gen_* interface.
3247 (emit_stack_probe): Likewise.
3248 (probe_stack_range): Likewise.
3249 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3250
3251 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3252
3253 * target-insns.def (stack_protect_set, stack_protect_test): New
3254 targetm instruction patterns.
3255 * cfgexpand.c (stack_protect_prologue): Use them instead of
3256 HAVE_*/gen_* interface.
3257 * function.c (stack_protect_epilogue): Likewise.
3258
3259 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3260
3261 * expr.h (gen_move_insn_uncast): Delete.
3262 * expr.c (gen_move_insn_uncast): Delete.
3263
3264 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3265
3266 * target-insns.def (restore_stack_block, restore_stack_function)
3267 (restore_stack_nonlocal, save_stack_block, save_stack_function)
3268 (save_stack_nonlocal): New targetm instruction patterns.
3269 * builtins.c (expand_builtin_apply): Use them instead of
3270 HAVE_*/gen_* interface.
3271 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3272
3273 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3274
3275 * target-insns.def (trap): New targetm instruction pattern.
3276 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3277 interface.
3278 * explow.c (allocate_dynamic_stack_space): Likewise.
3279 * ifcvt.c (find_if_header): Likewise.
3280
3281 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3282
3283 * target-insns.def (prefetch): New targetm instruction pattern.
3284 * tree-ssa-loop-prefetch.c: Include targeth.
3285 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3286 of HAVE_*/gen_* interface.
3287 * builtins.c (expand_builtin_prefetch): Likewise.
3288 * toplev.c (process_options): Likewise.
3289
3290 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3291
3292 * target-insns.def (untyped_call, untyped_return): New targetm
3293 instruction patterns.
3294 * builtins.c (expand_builtin_apply): Use them instead of
3295 HAVE_*/gen_* interface.
3296 (result_vector): Define unconditionally.
3297
3298 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3299
3300 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3301 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3302 (nonlocal_goto_receiver): New targetm instruction patterns.
3303 * builtins.c (expand_builtin_setjmp_setup): Use them instead
3304 of HAVE_*/gen_* interface.
3305 (expand_builtin_setjmp_receiver): Likewise.
3306 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3307 * except.c (expand_dw2_landing_pad_for_region): Likewise.
3308
3309 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3310
3311 * target.def: Add code_for_* hooks.
3312 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3313 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3314 * target-insns.def (casesi, tablejump): New targetm instruction
3315 patterns.
3316 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3317 (do_tablejump): Likewise.
3318 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3319 (expand_sjlj_dispatch_table): Likewise.
3320 * targhooks.c (default_case_values_threshold): Likewise.
3321
3322 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
3323
3324 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3325 Use rtx_insn * instead of rtx.
3326 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3327 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3328 (nios2_call_tls_get_addr): Likewise.
3329 (nios2_emit_expensive_div): Likewise.
3330 (nios2_emit_move_sequence): Change return type to bool.
3331 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3332 Change return type to bool.
3333
3334 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3335
3336 PR target/66747
3337 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3338
3339 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
3340
3341 PR target/66114
3342 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3343 of register_operand. Remove constraint.
3344
3345 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
3346
3347 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3348 the first argument.
3349
3350 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
3351
3352 * attribs.c (decl_attributes): Guard inform with the return value
3353 of the preceding warning.
3354
3355 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3356
3357 * doc/invoke.texi (moverride): Move to correct section.
3358
3359 2015-07-03 Richard Biener <rguenther@suse.de>
3360
3361 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3362 Copy from tree.c
3363 (dt_operand::gen_gimple_expr): After valueizing operands
3364 re-canonicalize operand order for commutative tree codes.
3365
3366 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
3367
3368 PR target/66746.
3369 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3370 is defined.
3371 (__crc32w): Likewise.
3372 (__crc32d): Likewise.
3373 (__rdpmc): Likewise.
3374 (__rdtscp): Likewise.
3375 (_rdpmc): Likewise.
3376 (_rdtscp): Likewise.
3377 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3378 is defined.
3379
3380 2015-07-03 Richard Biener <rguenther@suse.de>
3381
3382 * fold-const.c (fold_mathfn_compare): Remove.
3383 (fold_inf_compare): Likewise.
3384 (fold_comparison): Move floating point comparison simplifications...
3385 * match.pd: ... to patterns here. Introduce simple_comparisons
3386 operator list and use it for patterns formerly in fold_comparison.
3387
3388 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3389
3390 PR tree-optimization/66119
3391 * toplev.c (process_options): Don't set up default values for
3392 the sra_max_scalarization_size_{speed,size} parameters.
3393 * tree-sra (analyze_all_variable_accesses): If no values
3394 have been set for the sra_max_scalarization_size_{speed,size}
3395 parameters, call get_move_ratio to get target defaults.
3396
3397 2015-07-03 Richard Biener <rguenther@suse.de>
3398
3399 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3400 * match.pd: ... here.
3401
3402 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
3403
3404 PR target/37072
3405 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3406 is not actually the default on FreeBSD.
3407
3408 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3409
3410 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3411 definition.
3412 (CMPGE_8HI): Likewise.
3413 (CMPGE_4SI): Likewise.
3414 (CMPGE_2DI): Likewise.
3415 (CMPGE_U16QI): Likewise.
3416 (CMPGE_U8HI): Likewise.
3417 (CMPGE_U4SI): Likewise.
3418 (CMPGE_U2DI): Likewise.
3419 (CMPLE_16QI): Likewise.
3420 (CMPLE_8HI): Likewise.
3421 (CMPLE_4SI): Likewise.
3422 (CMPLE_2DI): Likewise.
3423 (CMPLE_U16QI): Likewise.
3424 (CMPLE_U8HI): Likewise.
3425 (CMPLE_U4SI): Likewise.
3426 (CMPLE_U2DI): Likewise.
3427 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3428 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3429 ALTIVEC_BUILTIN_VEC_CMPLE.
3430 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3431 floating-point vector modes.
3432 (vector_nlt<mode>): New define_expand.
3433 (vector_nltu<mode>): Likewise.
3434 (vector_ngt<mode>): Likewise.
3435 (vector_ngtu<mode>): Likewise.
3436
3437 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
3438
3439 PR rtl-optimization/66706
3440 * combine.c (make_compound_operation): If an AND of SUBREG of
3441 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3442
3443 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
3444
3445 * tree-pass.h (make_pass_ch_vect): New.
3446 * passes.def: Add pass_ch_vect just before pass_if_conversion.
3447
3448 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3449 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3450 make_pass_ch_vect): New.
3451 (pass_ch): Extend ch_base.
3452
3453 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3454 (ch_base::copy_headers): ...here.
3455
3456 2015-07-02 Richard Biener <rguenther@suse.de>
3457
3458 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3459 * fold-const.c (get_pointer_modulus_and_residue): Remove.
3460 (fold_binary_loc): Implement (T)ptr & CST in terms of
3461 get_pointer_alignment_1.
3462 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3463 Make sure to build the alignment test on a SSA name without
3464 final alignment info valid only after the prologue.
3465
3466 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
3467
3468 * config/cris/cris.md ("epilogue"): Remove condition.
3469 ("prologue"): Ditto.
3470
3471 2015-07-02 Richard Biener <rguenther@suse.de>
3472
3473 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3474 parameter to record a condition that is false.
3475 (record_conditions): When recording an extra NE_EXPR that is
3476 true also record a EQ_EXPR that is false.
3477
3478 2015-07-02 Bin Cheng <bin.cheng@arm.com>
3479
3480 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3481 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3482 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
3483 (set_iv, find_interesting_uses_address, add_candidate_1): New
3484 argument to alloc_iv.
3485 (find_interesting_uses_op, find_interesting_uses_cond): Don't
3486 duplicate struct iv.
3487 (free_loop_data): Don't free struct iv explicitly.
3488 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3489
3490 2015-07-01 DJ Delorie <dj@redhat.com>
3491
3492 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3493 (LIB_SPEC): Add.
3494 (SUPPORTS_DISCRIMINATOR): Define.
3495
3496 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3497
3498 PR bootstrap/66685
3499 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3500 there are no CALLs in the same pattern.
3501
3502 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3503
3504 PR rtl-optimization/61047
3505 * rtlanal.c (get_initial_register_offset): New function.
3506 (rtx_addr_can_trap_p_1): Check offsets of stack references.
3507
3508 2015-07-01 Richard Biener <rguenther@suse.de>
3509
3510 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3511 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3512 ~X CMP C -> X CMP' ~C to ...
3513 * match.pd: ... patterns here.
3514
3515 2015-07-01 Nick Clifton <nickc@redhat.com>
3516
3517 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3518 a 16-bit value into a 20-bit memory slot.
3519
3520 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3521
3522 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3523 "aarch64_tiny", "aarch64_small", "aarch64_large",
3524 "aarch64_little_endian", "aarch64_big_endian".
3525
3526 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3527
3528 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3529 Document "aarch64_small_fpic".
3530
3531 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3532
3533 * configure.ac: Add check for aarch64 assembler -fpic relocation
3534 modifier support.
3535 * configure: Regenerate.
3536 * config.in: Regenerate.
3537 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3538 to -fPIC if not support of -fpic relocation modifier in assembler.
3539
3540 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3541
3542 PR bootstrap/66685
3543 * rtl.c (classify_insn): Handle returns in PARALLELs.
3544
3545 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
3546
3547 PR middle-end/66633
3548 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3549 to true if the function is nested and if not optimizing.
3550 (convert_local_omp_clauses): Initialize need_frame to true if the
3551 function contains nested functions and if not optimizing.
3552
3553 2015-07-01 Richard Biener <rguenther@suse.de>
3554
3555 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3556 (X & Y) ^ Y -> ~X & Y transforms to ...
3557 * match.pd: ... here.
3558
3559 2015-07-01 Richard Biener <rguenther@suse.de>
3560
3561 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3562 of converts to avoid uninteresting noise from the conversion
3563 simplifying patterns.
3564
3565 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
3566
3567 * config/c6x/c6x.c (try_rename_operands): Do not depend on
3568 gcc_assert evaluating its argument for side-effect.
3569
3570 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
3571
3572 PR target/64833
3573 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3574 flag_pic is set.
3575
3576 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3577
3578 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3579 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3580 (hash_scc): Add this_ref_p and ref_p parameters and pass them
3581 to the inner DFS walk.
3582
3583 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3584
3585 * target-insns.def (jump): New targetm instruction pattern.
3586 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3587 instead of gen_jump.
3588 (fix_up_crossing_landing_pad): Likewise.
3589 (add_labels_and_missing_jumps): Likewise.
3590 (fix_crossing_conditional_branches): Likewise.
3591 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3592 (force_nonfallthru_and_redirect): Likewise.
3593 * cse.c (cse_insn): Likewise.
3594 * expmed.c (expand_divmod): Likewise.
3595 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3596 * haifa-sched.c (init_before_recovery): Likewise.
3597 (sched_create_recovery_edges): Likewise.
3598 * ifcvt.c (find_cond_trap): Likewise.
3599 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3600 (expand_float, expand_fix): Likewise.
3601 * stmt.c (emit_jump): Likewise.
3602
3603 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3604
3605 * defaults.h (HAVE_load_multiple, gen_load_multiple)
3606 (HAVE_store_multiple, gen_store_multiple): Delete.
3607 * target-insns.def (load_multiple, store_multiple): New targetm
3608 instruction patterns.
3609 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3610 of HAVE_*/gen_* interface.
3611
3612 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3613
3614 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3615 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3616 (gen_mem_signal_fence): Delete.
3617 * target-insns.def (mem_signal_fence, mem_thread_fence)
3618 (memory_barrier): New targetm instruction patterns.
3619 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3620 interface.
3621 (expand_mem_signal_fence): Likewise.
3622
3623 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3624
3625 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3626 * target-insns.def (epilogue, prologue, sibcall_prologue): New
3627 targetm instruction patterns.
3628 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3629 interface.
3630 * calls.c (expand_call): Likewise.
3631 * cfgrtl.c (cfg_layout_finalize): Likewise.
3632 * df-scan.c (df_get_entry_block_def_set): Likewise.
3633 (df_get_exit_block_use_set): Likewise.
3634 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3635 * final.c (final_start_function): Likewise.
3636 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3637 (reposition_prologue_and_epilogue_notes): Likewise.
3638 * reorg.c (find_end_label): Likewise.
3639 * toplev.c (process_options): Likewise.
3640
3641 2015-06-30 David Malcolm <dmalcolm@redhat.com>
3642
3643 * typed-splay-tree.h: New file.
3644
3645 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
3646
3647 PR debug/66691
3648 * lra-int.h (lra_substitute_pseudo): Add a parameter.
3649 (lra_substitute_pseudo_within_insn): Ditto.
3650 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
3651 of constant.
3652 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
3653 to lra_substitute_pseudo.
3654 * lra-lives.c (process_bb_lives): Add an argument to
3655 lra_substitute_pseudo_within_insn call.
3656 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3657 argument to lra_substitute_pseudo and
3658 lra_substitute_pseudo_within_insn calls.
3659 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3660
3661 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3662
3663 * configure: Regenerated.
3664
3665 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3666
3667 * config.gcc: Support i[34567]86-*-elfiamcu target.
3668 * config/i386/iamcu.h: New.
3669 * config/i386/i386.opt: Add -miamcu.
3670 * doc/invoke.texi: Document -miamcu.
3671 * common/config/i386/i386-common.c (ix86_handle_option): Turn
3672 off x87/MMX/SSE/AVX codegen for -miamcu.
3673 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3674 __iamcu/__iamcu__ for -miamcu.
3675 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3676 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3677 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3678 * config/i386/i386.c (ix86_option_override_internal): Ignore and
3679 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
3680 MCU by default. Default long double to 64-bit for Intel MCU.
3681 Turn on -freg-struct-return for Intel MCU. Issue an error when
3682 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3683 AVX is turned on.
3684 (function_arg_advance_32): Pass value whose size is no larger
3685 than 8 bytes in registers for Intel MCU.
3686 (function_arg_32): Likewise.
3687 (ix86_return_in_memory): Return value whose size is no larger
3688 than 8 bytes in registers for Intel MCU.
3689 (iamcu_alignment): New function.
3690 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3691 true.
3692 (ix86_local_alignment): Don't increase alignment for Intel MCU.
3693 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3694 true.
3695
3696 2015-06-30 Marek Polacek <polacek@redhat.com>
3697
3698 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
3699 both operands of the resulting expression.
3700
3701 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
3702 the final expression with the operand's type and then convert
3703 it to the type of the expression.
3704
3705 2015-06-30 Richard Biener <rguenther@suse.de>
3706
3707 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
3708 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
3709 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
3710 * match.pd: ... to patterns here.
3711
3712 2015-06-30 Richard Biener <rguenther@suse.de>
3713
3714 PR tree-optimization/66704
3715 * tree-vect-data-refs.c (vect_setup_realignment): Use
3716 make_ssa_name for non-SSA name source.
3717
3718 2015-06-30 Jakub Jelinek <jakub@redhat.com>
3719
3720 PR middle-end/66702
3721 * omp-low.c (simd_clone_adjust): Handle addressable linear
3722 or uniform parameters or non-gimple type uniform parameters.
3723
3724 2015-06-30 Richard Biener <rguenther@suse.de>
3725
3726 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
3727 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
3728 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
3729 * match.pd: ... here.
3730 Add a few cases of A - B -> A + (-B) when B "easily" negates.
3731 Move (x & y) | x -> x and friends before
3732 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
3733
3734 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3735
3736 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
3737 -mfix-ut699 is not specified.
3738 (leon3_load): Rename into...
3739 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
3740 is specified.
3741
3742 2015-06-30 Marek Polacek <polacek@redhat.com>
3743
3744 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
3745 * match.pd: ... here.
3746
3747 2015-06-30 Richard Biener <rguenther@suse.de>
3748
3749 * target-insns.def (canonicalize_funcptr_for_compare): Add.
3750 * fold-const.c (build_range_check): Replace uses of
3751 HAVE_canonicalize_funcptr_for_compare.
3752 (fold_widened_comparison): Likewise.
3753 (fold_sign_changed_comparison): Likewise.
3754 * dojump.c: Include "target.h".
3755 (do_compare_and_jump): Replace uses of
3756 HAVE_canonicalize_funcptr_for_compare and
3757 gen_canonicalize_funcptr_for_compare.
3758 * expr.c (do_store_flag): Likewise.
3759
3760 2015-06-30 Tom de Vries <tom@codesourcery.com>
3761
3762 PR tree-optimization/66652
3763 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
3764 max_loop_iterations to determine if nit + 1 overflows.
3765
3766 2015-06-30 Richard Biener <rguenther@suse.de>
3767
3768 * tree-vrp.c (register_edge_assert_for_2): Also register
3769 asserts for dominating conversion results.
3770
3771 2015-06-30 Bin Cheng <bin.cheng@arm.com>
3772
3773 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
3774 field in struct iv.
3775
3776 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
3777
3778 PR target/66509
3779 * configure.ac: Fix filds and fildq test for 64-bit.
3780 * configure: Regenerated.
3781
3782 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
3783
3784 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
3785 (nvptx_reorg): Here. Keep the non-subreg pieces.
3786
3787 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
3788
3789 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
3790 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
3791
3792 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
3793
3794 * config/i386/i386.md (*jcc_1): Use %! in asm template.
3795 Set attribute "length_nobnd" instead of "length".
3796 (*jcc_2): Ditto.
3797 (jump): Ditto.
3798 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
3799
3800 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
3801
3802 * config/nios2/nios2.c (nios2_delegitimize_address): Make
3803 assert less restrictive.
3804
3805 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3806
3807 PR fortran/66605
3808 * cgraphunit.c (cgraph_node::finalize_function): Do not call
3809 do_warn_unused_parameter.
3810 * function.c (do_warn_unused_parameter): Move from here.
3811 * function.h (do_warn_unused_parameter): Do not declare.
3812
3813 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3814
3815 PR target/65697
3816 * gcc.target/arm/armv-sync-comp-swap.c: New.
3817 * gcc.target/arm/armv-sync-op-acquire.c: New.
3818 * gcc.target/arm/armv-sync-op-full.c: New.
3819 * gcc.target/arm/armv-sync-op-release.c: New.
3820
3821 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3822
3823 PR target/65697
3824 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
3825 initial acquire barrier with final barrier.
3826
3827 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3828
3829 PR target/65697
3830 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
3831 initial acquire barrier with final barrier.
3832
3833 2015-06-29 Richard Henderson <rth@redhat.com>
3834
3835 * config/i386/constraints.md (Bf): New constraint.
3836 * config/i386/i386-c.c (ix86_target_macros): Define
3837 __GCC_ASM_FLAG_OUTPUTS__.
3838 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
3839 as flags outputs.
3840 * doc/extend.texi (FlagOutputOperands): Document them.
3841
3842 2015-06-29 Jiong Wang <jiong.wang@arm.com>
3843
3844 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
3845 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
3846 unspec name.
3847 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
3848 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
3849 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
3850 (aarch64_symbol_context): Ditto.
3851 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
3852 and use new pattern name.
3853 (aarch64_expand_mov_immediate): Ditto.
3854 (aarch64_print_operand): Ditto.
3855 (aarch64_classify_tls_symbol): Ditto.
3856
3857 2015-06-29 Marek Polacek <polacek@redhat.com>
3858 Marc Glisse <marc.glisse@inria.fr>
3859
3860 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
3861 * match.pd: ... pattern here.
3862
3863 2015-06-29 Tom de Vries <tom@codesourcery.com>
3864
3865 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
3866 function structure.
3867
3868 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
3869
3870 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
3871 feature description, split out the native option, add a link to
3872 the feature documentation, rearrange and slightly rewrite text.
3873 (Aarch64 options, -mcpu): Likewise.
3874 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
3875 +rdma implies Adv. SIMD.
3876
3877 2015-06-29 Marek Polacek <polacek@redhat.com>
3878
3879 PR c/66322
3880 * function.c (stack_protect_epilogue): Remove a cast to int.
3881 * doc/invoke.texi: Update -Wswitch-bool description.
3882
3883 2015-06-29 Richard Biener <rguenther@suse.de>
3884
3885 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
3886 * fold-const.c (fold_binary_loc): Move &A - &B simplification
3887 via ptr_difference_const ...
3888 * match.pd: ... here.
3889 When matching (X ^ Y) == Y also match with swapped operands.
3890
3891 2015-06-29 Richard Biener <rguenther@suse.de>
3892
3893 * lto-streamer.h (LTO_major_version): Bump to 5.
3894
3895 2015-06-29 Richard Biener <rguenther@suse.de>
3896
3897 PR tree-optimization/66677
3898 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
3899 STMT_VINFO_VEC_STMT clobbering less strict.
3900
3901 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3902
3903 PR middle-end/64130
3904 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
3905 division, compute max and min when value ranges for dividend and
3906 divisor are available.
3907
3908 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
3909 Sandra Loosemore <sandra@codesourcery.com>
3910
3911 * regrename.h (regrename_do_replace): Change to return bool.
3912 * regrename.c (rename_chains): Check return value of
3913 regname_do_replace.
3914 (regrename_do_replace): Re-validate the modified insns and
3915 return bool status.
3916 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3917 Update to match rename_chains changes.
3918 * config/c6x/c6x.c (try_rename_operands): Assert that
3919 regrename_do_replace returns true.
3920
3921 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
3922
3923 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
3924 operand 2 here. Use copy_addr_to_reg to copy non-index
3925 register operand 2 to a temporary.
3926 (<mode>_stx): Ditto for operand 1.
3927 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
3928 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
3929 (ix86_store_bounds): Ditto.
3930
3931 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
3932
3933 * print-tree.c (print_node) [TREE_VEC]: Print its length.
3934
3935 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
3936
3937 * gimple.c (gimple_call_set_fndecl): Remove.
3938 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
3939 build1_loc directly instead of build_fold_addr_expr_loc.
3940
3941 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
3942
3943 * hash-map.h (hash_map::traverse): Use the definition of the
3944 Key typedef rather than the typedef itself.
3945
3946 2015-06-26 Martin Jambor <mjambor@suse.cz>
3947
3948 PR debug/66301
3949 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
3950 NULL instead of calling dump_enabled_p.
3951
3952 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
3953
3954 * config/aarch64/aarch64.opt: (override): New.
3955 * doc/invoke.texi (override): Document.
3956 * config/aarch64/aarch64.c (aarch64_flag_desc): New
3957 (aarch64_fusible_pairs): Likewise.
3958 (aarch64_tuning_flags): Likewise.
3959 (aarch64_tuning_override_function): Likewise.
3960 (aarch64_tuning_override_functions): Likewise.
3961 (aarch64_parse_one_option_token): Likewise.
3962 (aarch64_parse_boolean_options): Likewise.
3963 (aarch64_parse_fuse_string): Likewise.
3964 (aarch64_parse_tune_string): Likewise.
3965 (aarch64_parse_one_override_token): Likewise.
3966 (aarch64_parse_override_string): Likewise.
3967 (aarch64_override_options): Parse the -override string if it
3968 is present.
3969
3970 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
3971
3972 * config/aarch64/aarch64-protos.h (tune_params): Remove
3973 const from members.
3974 (aarch64_tune_params): Remove const, change to no longer be
3975 a pointer.
3976 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
3977 change to no longer be a pointer, initialize to generic_tunings.
3978 (aarch64_min_divisions_for_recip_mul): Change dereference of
3979 aarch64_tune_params to member access.
3980 (aarch64_reassociation_width): Likewise.
3981 (aarch64_rtx_mult_cost): Likewise.
3982 (aarch64_address_cost): Likewise.
3983 (aarch64_branch_cost): Likewise.
3984 (aarch64_rtx_costs): Likewise.
3985 (aarch64_register_move_cost): Likewise.
3986 (aarch64_memory_move_cost): Likewise.
3987 (aarch64_sched_issue_rate): Likewise.
3988 (aarch64_builtin_vectorization_cost): Likewise.
3989 (aarch64_override_options): Take a copy of the selected tuning
3990 struct in to aarch64_tune_params, rather than just setting
3991 a pointer, change dereferences of aarch64_tune_params to member
3992 accesses.
3993 (aarch64_override_options_after_change): Change dereferences of
3994 aarch64_tune_params to member access.
3995 (aarch64_macro_fusion_p): Likewise.
3996 (aarch_macro_fusion_pair_p): Likewise.
3997 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
3998
3999 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4000
4001 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4002 (aarch64_tune_flags): Likewise.
4003 (AARCH64_TUNE_FMA_STEERING): Likewise.
4004 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4005 to AARCH64_FL_USE_FMA_STEERING_PASS.
4006 (cortex-a57.cortex-a53): Likewise.
4007 (cortex-a72): Use cortexa72_tunings.
4008 (cortex-a72.cortex-a53): Likewise.
4009 (exynos-m1): Likewise.
4010 * config/aarch64/aarch64-protos.h (tune_params): Add
4011 a field: extra_tuning_flags.
4012 * config/aarch64/aarch64-tuning-flags.def: New.
4013 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4014 (aarch64_extra_tuning_flags): Likewise.
4015 (aarch64_tune_params): Declare here.
4016 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4017 (cortexa53_tunings): Likewise.
4018 (cortexa57_tunings): Likewise.
4019 (thunderx_tunings): Likewise.
4020 (xgene1_tunings): Likewise.
4021 (cortexa72_tunings): New.
4022 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4023 (gate): Check against aarch64_tune_params.
4024 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4025 aarch64-protos.h.
4026
4027 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4028
4029 * config/aarch64/aarch64-fusion-pairs.def: New.
4030 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4031 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4032 aarch64_fusion_pairs.
4033 (AARCH64_FUSE_MOV_MOVK): Likewise.
4034 (AARCH64_FUSE_ADRP_ADD): Likewise.
4035 (AARCH64_FUSE_MOVK_MOVK): Likewise.
4036 (AARCH64_FUSE_ADRP_LDR): Likewise.
4037 (AARCH64_FUSE_CMP_BRANCH): Likewise.
4038
4039 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4040
4041 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4042 SYMBOL_SMALL_GOT_28K.
4043 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4044 relocation modifiers.
4045 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4046 (ldr_got_small_28k_<mode>): New.
4047 (ldr_got_small_28k_sidi): New.
4048 * config/aarch64/iterators.md (got_modifier): New mode iterator.
4049 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4050 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4051 SYMBOL_SMALL_GOT_28K.
4052 (aarch64_rtx_costs): Add costs for new instruction sequences.
4053 (initialize_aarch64_code_model): Initialize new model.
4054 (aarch64_classify_symbol): Recognize new model and new symbol classification.
4055 (aarch64_asm_preferred_eh_data_format): Support new model.
4056 (aarch64_load_symref_appropriately): Generate new instruction
4057 sequences for -fpic.
4058 (TARGET_USE_PSEUDO_PIC_REG): New definition.
4059 (aarch64_use_pseudo_pic_reg): New function.
4060
4061 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4062
4063 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4064 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4065 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4066 (aarch64_expand_mov_immediate): Ditto.
4067 (aarch64_print_operand): Ditto.
4068 (aarch64_classify_symbol): Ditto.
4069
4070 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
4071
4072 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4073
4074 2015-06-26 Bin Cheng <bin.cheng@arm.com>
4075
4076 PR bootstrap/66638
4077 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4078 assertion failed. Remove assertion itself.
4079
4080 2015-06-26 Richard Biener <rguenther@suse.de>
4081
4082 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4083 and -A CMP CST -> A CMP -CST which is redundant with a pattern
4084 in match.pd.
4085 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4086 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4087 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4088 * match.pd: ... patterns here.
4089
4090 2015-06-26 Marek Polacek <polacek@redhat.com>
4091
4092 * match.pd ((x | y) & ~(x & y) -> x ^ y,
4093 (x | y) & (~x ^ y) -> x & y): New patterns.
4094
4095 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4096
4097 * rtl.h (emit): Add an optional boolean parameter to control
4098 whether barriers are emitted.
4099 * emit-rtl.c (emit): Likewise.
4100 * gensupport.c (get_emit_function): Return null rather than "emit".
4101 * genemit.c (gen_emit_seq): Handle the null return value.
4102 Don't emit barriers after the final instruction in the sequence.
4103 * gentarget-def.c (main): Don't emit barriers after the instruction.
4104
4105 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4106
4107 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4108 TARGET_UNIFIED_ASM.
4109
4110 2015-06-26 Richard Biener <rguenther@suse.de>
4111
4112 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4113
4114 2015-06-26 Richard Biener <rguenther@suse.de>
4115
4116 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4117 irrespective on whether the inner operation has a single use
4118 of both off are constant.
4119
4120 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
4121 Segher Boessenkool <segher@kernel.crashing.org>
4122
4123 PR target/66412
4124 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4125 before doing PUT_MODE or PUT_CODE on operands to avoid
4126 in-place RTX modification.
4127
4128 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4129
4130 * gentarget-def.c (def_target_insn): Cast return of strtol to
4131 unsigned int.
4132
4133 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4134
4135 * gimple.h (gimple_call_set_fn): Move inline function.
4136 * gimple.c (gimple_call_set_fn): Relocate here.
4137
4138 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
4139
4140 PR target/65979
4141 PR target/66611
4142 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4143 the replacement insn will work.
4144
4145 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4146
4147 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4148 by default.
4149
4150 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4151
4152 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4153 * cgraph.h: Include ipa-ref.h and plugin-api.h.
4154 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4155 (symtab_node::address_can_be_compared_p): Move function.
4156 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4157 definition here.
4158 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4159 * auto-profile.c: Likewise.
4160 * bb-reorder.c: Likewise.
4161 * builtins.c: Likewise.
4162 * calls.c: Likewise.
4163 * cfgexpand.c: Likewise.
4164 * cgraphbuild.c: Likewise.
4165 * cgraphclones.c: Likewise.
4166 * cgraphunit.c: Likewise.
4167 * combine.c: Likewise.
4168 * coverage.c: Likewise.
4169 * data-streamer-in.c: Likewise.
4170 * data-streamer-out.c: Likewise.
4171 * data-streamer.c: Likewise.
4172 * dbxout.c: Likewise.
4173 * dwarf2out.c: Likewise.
4174 * except.c: Likewise.
4175 * expr.c: Likewise.
4176 * final.c: Likewise.
4177 * fold-const.c: Likewise.
4178 * ggc-page.c: Likewise.
4179 * gimple-fold.c: Likewise.
4180 * gimple-iterator.c: Likewise.
4181 * gimple-pretty-print.c: Likewise.
4182 * gimple-streamer-in.c: Likewise.
4183 * gimple-streamer-out.c: Likewise.
4184 * gimple.c: Likewise.
4185 * gimplify.c: Likewise.
4186 * ipa-chkp.c: Likewise.
4187 * ipa-comdats.c: Likewise.
4188 * ipa-cp.c: Likewise.
4189 * ipa-devirt.c: Likewise.
4190 * ipa-icf-gimple.c: Likewise.
4191 * ipa-icf.c: Likewise.
4192 * ipa-inline-analysis.c: Likewise.
4193 * ipa-inline-transform.c: Likewise.
4194 * ipa-inline.c: Likewise.
4195 * ipa-polymorphic-call.c: Likewise.
4196 * ipa-profile.c: Likewise.
4197 * ipa-prop.c: Likewise.
4198 * ipa-pure-const.c: Likewise.
4199 * ipa-ref.c: Likewise.
4200 * ipa-reference.c: Likewise.
4201 * ipa-split.c: Likewise.
4202 * ipa-utils.c: Likewise.
4203 * ipa-visibility.c: Likewise.
4204 * ipa.c: Likewise.
4205 * langhooks.c: Likewise.
4206 * lto-cgraph.c: Likewise.
4207 * lto-compress.c: Likewise.
4208 * lto-opts.c: Likewise.
4209 * lto-section-in.c: Likewise.
4210 * lto-section-out.c: Likewise.
4211 * lto-streamer-in.c: Likewise.
4212 * lto-streamer-out.c: Likewise.
4213 * lto-streamer.c: Likewise.
4214 * omp-low.c: Likewise.
4215 * opts-global.c: Likewise.
4216 * passes.c: Likewise.
4217 * predict.c: Likewise.
4218 * print-tree.c: Likewise.
4219 * profile.c: Likewise.
4220 * ree.c: Likewise.
4221 * sanopt.c: Likewise.
4222 * stor-layout.c: Likewise.
4223 * symtab.c: Likewise.
4224 * toplev.c: Likewise.
4225 * trans-mem.c: Likewise.
4226 * tree-cfg.c: Likewise.
4227 * tree-chkp.c: Likewise.
4228 * tree-eh.c: Likewise.
4229 * tree-emutls.c: Likewise.
4230 * tree-inline.c: Likewise.
4231 * tree-nested.c: Likewise.
4232 * tree-parloops.c: Likewise.
4233 * tree-pretty-print.c: Likewise.
4234 * tree-profile.c: Likewise.
4235 * tree-sra.c: Likewise.
4236 * tree-ssa-alias.c: Likewise.
4237 * tree-ssa-live.c: Likewise.
4238 * tree-ssa-loop-ivcanon.c: Likewise.
4239 * tree-ssa-loop-ivopts.c: Likewise.
4240 * tree-ssa-pre.c: Likewise.
4241 * tree-ssa-sccvn.c: Likewise.
4242 * tree-ssa-strlen.c: Likewise.
4243 * tree-ssa-structalias.c: Likewise.
4244 * tree-streamer-in.c: Likewise.
4245 * tree-streamer-out.c: Likewise.
4246 * tree-streamer.c: Likewise.
4247 * tree-switch-conversion.c: Likewise.
4248 * tree-tailcall.c: Likewise.
4249 * tree-vect-data-refs.c: Likewise.
4250 * tree-vect-stmts.c: Likewise.
4251 * tree-vectorizer.c: Likewise.
4252 * tree.c: Likewise.
4253 * tsan.c: Likewise.
4254 * ubsan.c: Likewise.
4255 * value-prof.c: Likewise.
4256 * varasm.c: Likewise.
4257 * varpool.c: Likewise.
4258 * config/arm/arm.c: Likewise.
4259 * config/bfin/bfin.c: Likewise.
4260 * config/c6x/c6x.c: Likewise.
4261 * config/cris/cris.c: Likewise.
4262 * config/darwin-c.c: Likewise.
4263 * config/darwin.c: Likewise.
4264 * config/i386/i386.c: Likewise.
4265 * config/i386/winnt.c: Likewise.
4266 * config/microblaze/microblaze.c: Likewise.
4267 * config/mips/mips.c: Likewise.
4268 * config/rs6000/rs6000.c: Likewise.
4269 * config/rx/rx.c: Likewise.
4270 * config/s390/s390.c: Likewise.
4271 * config/tilegx/mul-tables.c: Likewise.
4272
4273 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4274
4275 * config/aarch64/aarch64.c, config/alpha/alpha.c,
4276 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4277 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4278 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4279 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4280 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4281 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4282 config/microblaze/microblaze.c, config/mips/mips.c,
4283 config/mmix/mmix.c, config/mn10300/mn10300.c,
4284 config/moxie/moxie.c, config/msp430/msp430.c,
4285 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4286 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4287 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4288 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4289 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4290 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4291 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4292 target-def.h include.
4293 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
4294
4295 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4296
4297 * Makefile.in (TARGET_DEF): Add target-insns.def.
4298 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4299 (build/gentarget-def.o): New rule.
4300 (genprogrtl): Add target-def.
4301 * target-insns.def, gentarget-def.c: New files.
4302 * target.def: Add targetm.have_* and targetm.gen_* hooks,
4303 based on the contents of target-insns.def.
4304 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4305 (HAVE_return, gen_return): Delete.
4306 * target-def.h: Include insn-target-def.h.
4307 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4308 instead of direct calls. Rely on them to do the appropriate assertions.
4309 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
4310 (convert_jumps_to_returns): Use targetm interface instead of
4311 direct calls.
4312 (thread_prologue_and_epilogue_insns): Likewise.
4313 * reorg.c (find_end_label, dbr_schedule): Likewise.
4314 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4315 * shrink-wrap.c (convert_to_simple_return): Likewise.
4316 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4317
4318 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4319
4320 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4321 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4322 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4323 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4324 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4325 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4326 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4327 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4328 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4329 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4330 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4331 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4332 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4333 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4334 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4335 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4336 includes to end.
4337
4338 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4339
4340 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4341 (unbounded_int_hashmap_traits::key_type): Likewise.
4342 * hash-map.h (hash_map): Get the key type from the traits.
4343 * hash-traits.h (default_hash_traits): By default, inherit from the
4344 template parameter.
4345 * alias.c (alias_set_traits): Delete.
4346 (alias_set_entry_d::children): Use alias_set_hash as the first
4347 template parameter.
4348 (record_alias_subset): Update accordingly.
4349 * except.c (tree_hash_traits): Delete.
4350 (type_to_runtime_map): Use tree_hash as the first template parameter.
4351 (init_eh): Update accordingly.
4352 * genmatch.c (capture_id_map_hasher): Delete.
4353 (cid_map_t): Use nofree_string_hash as first template parameter.
4354 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4355 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4356 Use symbol_compare_hash as the first template parameter in
4357 subdivide_hash_map.
4358 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4359 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4360 template parameter.
4361 * passes.c (pass_registry_hasher): Delete.
4362 (name_to_pass_map): Use nofree_string_hash as the first template
4363 parameter.
4364 (register_pass_name): Update accordingly.
4365 * sanopt.c (sanopt_tree_map_traits): Delete.
4366 (sanopt_tree_triplet_map_traits): Delete.
4367 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4368 template parameter.
4369 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4370 the first template parameter.
4371 * sese.c (rename_map_hasher): Delete.
4372 (rename_map_type): Use tree_ssa_name_hash as the first template
4373 parameter.
4374 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4375 (function_summary::m_map): Use map_hash as the first template
4376 parameter.
4377 (function_summary::release): Update accordingly.
4378 * tree-if-conv.c (phi_args_hash_traits): Delete.
4379 (predicate_scalar_phi): Use tree_operand_hash as the first template
4380 parameter to phi_arg_map.
4381 * tree-inline.h (dependence_hasher): Delete.
4382 (copy_body_data::dependence_map): Use dependence_hash as the first
4383 template parameter.
4384 * tree-inline.c (remap_dependence_clique): Update accordingly.
4385 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4386 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4387 parameter.
4388 (addr_stridxptr): Update accordingly.
4389 * value-prof.c (profile_id_traits): Delete.
4390 (cgraph_node_map): Use profile_id_hash as the first template
4391 parameter.
4392 (init_node_map): Update accordingly.
4393 * config/alpha/alpha.c (string_traits): Delete.
4394 (machine_function::links): Use nofree_string_hash as the first
4395 template parameter.
4396 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4397 * config/m32c/m32c.c (pragma_traits): Delete.
4398 (pragma_htab): Use nofree_string_hash as the first template parameter.
4399 (m32c_note_pragma_address): Update accordingly.
4400 * config/mep/mep.c (pragma_traits): Delete.
4401 (pragma_htab): Use nofree_string_hash as the first template parameter.
4402 (mep_note_pragma_flag): Update accordingly.
4403 * config/mips/mips.c (mips16_flip_traits): Delete.
4404 (mflip_mips16_htab): Use nofree_string_hash as the first template
4405 parameter.
4406 (mflip_mips16_use_mips16_p): Update accordingly.
4407 (local_alias_traits): Delete.
4408 (mips16_local_aliases): Use nofree_string_hash as the first template
4409 parameter.
4410 (mips16_local_alias): Update accordingly.
4411
4412 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4413
4414 * hash-map-traits.h (default_hashmap_traits): Delete.
4415
4416 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4417
4418 * hash-map-traits.h (unbounded_hashmap_traits): New class.
4419 (unbounded_int_hashmap_traits): Likewise.
4420 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4421
4422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4423
4424 * ipa-icf.h (symbol_compare_hash): New class.
4425 (symbol_compare_hashmap_traits): Use it.
4426 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4427 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4428 (mem_alloc_description::reverse_mem_map_t): Remove redundant
4429 default_hashmap_traits.
4430 * sanopt.c (sanopt_tree_triplet_hash): New class.
4431 (sanopt_tree_triplet_map_traits): Use it.
4432
4433 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4434
4435 * gengtype-parse.c (require_template_declaration): Allow '+' in
4436 template parameters. Consolidate cases.
4437 * hash-traits.h (int_hash): New class.
4438 * alias.c (alias_set_hash): New structure.
4439 (alias_set_traits): Use it.
4440 * symbol-summary.h (function_summary::map_hash): New class.
4441 (function_summary::summary_hashmap_traits): Use it.
4442 * tree-inline.h (dependence_hash): New class.
4443 (dependence_hasher): Use it.
4444 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4445 * value-prof.c (profile_id_hash): New class.
4446 (profile_id_traits): Use it.
4447
4448 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4449
4450 * config/mips/mips.c (mips16_flip_traits): Use it.
4451 (local_alias_traits, mips16_local_aliases): Convert from a map of
4452 rtxes to a map of symbol names.
4453 (mips16_local_alias): Update accordingly.
4454
4455 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4456
4457 * hash-traits.h (string_hash, nofree_string_hash): New classes.
4458 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4459 * passes.c (pass_registry_hasher): Likewise.
4460 * config/alpha/alpha.c (string_traits): Likewise.
4461 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4462 * config/m32c/m32c.c (pragma_traits): Likewise.
4463 * config/mep/mep.c (pragma_traits): Likewise.
4464
4465 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4466
4467 * tree-hash-traits.h (tree_hash): New class.
4468 * except.c: Include tree-hash-traits.h.
4469 (tree_hash_traits): Use tree_hash.
4470
4471 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4472
4473 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4474 * sese.c: Include tree-hash-traits.h.
4475 (rename_map_hasher): Use tree_ssa_name_hasher.
4476
4477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4478
4479 * tree-hash-traits.h (tree_decl_hash): New class.
4480 * tree-ssa-strlen.c: Include tree-hash-traits.h.
4481 (stridxlist_hash_traits): Use tree_decl_hash.
4482
4483 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4484
4485 * tree-hash-traits.h: New file.
4486 (tree_operand_hash): New class.
4487 * sanopt.c: Include tree-hash-traits.h.
4488 (sanopt_tree_map_traits): Use tree_operand_hash.
4489 * tree-if-conv.c: Include tree-hash-traits.h.
4490 (phi_args_hash_traits): Use tree_operand_hash.
4491 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4492 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4493
4494 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4495
4496 * hash-map-traits.h: Include hash-traits.h.
4497 (simple_hashmap_traits): New class.
4498 * mem-stats.h (hash_map): Change the default traits to
4499 simple_hashmap_traits<default_hash_traits<Key> >.
4500
4501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4502
4503 * hash-table.h: Update comments.
4504
4505 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4506
4507 * hash-traits.h (default_hash_traits): New structure.
4508 * hash-set.h (default_hashset_traits): Delete.
4509 (hash_set): Use default_hash_traits<Key> instead of
4510 default_hashset_traits. Delete hash_entry type and use Key directly.
4511 * ipa-devirt.c (pair_traits): Delete.
4512 (default_hash_traits <type_pair>): Override.
4513 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4514 (odr_types_equivalent_p, add_type_duplicate): Likewise.
4515
4516 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4517
4518 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4519
4520 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4521
4522 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4523 (has_is_empty, is_empty_helper): Delete.
4524 (has_mark_deleted, mark_deleted_helper): Delete.
4525 (has_mark_empty, mark_empty_helper): Delete.
4526 (hash_table::is_deleted): Call the Descriptor unconditionally.
4527 (hash_table::is_empty): Likewise.
4528 (hash_table::mark_deleted): Likewise.
4529 (hash_table::mark_empty): Likewise.
4530
4531 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4532
4533 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
4534 redundant typedefs and members.
4535 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
4536 redundant typedefs.
4537 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4538 * ipa-devirt.c (odr_name_hasher): Likewise.
4539 (polymorphic_call_target_hasher): Likewise.
4540 * ira-costs.c (cost_classes_hasher): Likewise.
4541 * statistics.c (stats_counter_hasher): Likewise.
4542 * trans-mem.c (log_entry_hasher): Likewise.
4543 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4544 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4545 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4546 * var-tracking.c (variable_hasher): Likewise.
4547 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4548 Remove redundant typedefs and members.
4549
4550 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4551
4552 * hash-traits.h (ggc_cache_hasher): Rename to...
4553 (ggc_cache_remove): ...this and remove typedefs.
4554 (ggc_cache_ptr_hash): New class.
4555 * hash-table.h: Update commentary.
4556 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4557 rather than ggc_cache_hasher.
4558 (const_wide_int_hasher, reg_attr_hasher): Likewise.
4559 (const_double_hasher, const_fixed_hasher): Likewise.
4560 * function.c (insn_cache_hasher): Likewise.
4561 * trans-mem.c (tm_wrapper_hasher): Likewise.
4562 * tree.h (tree_decl_map_cache_hasher): Likewise.
4563 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4564 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4565 * ubsan.c (tree_type_map_cache_hasher): Likewise.
4566 * varasm.c (tm_clone_hasher): Likewise.
4567 * config/i386/i386.c (dllimport_hasher): Likewise.
4568 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4569 (tree_hasher): Likewise.
4570
4571 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4572
4573 * hash-traits.h (ggc_hasher): Rename to...
4574 (ggc_remover): ...this and remove typedefs.
4575 (ggc_cache_hasher): Update accordingly. Add typedefs.
4576 (ggc_ptr_hash): New class.
4577 * hash-table.h: Update comment.
4578 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4579 ggc_hasher.
4580 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4581 (tree_descriptor_hasher): Likewise.
4582 * cgraph.c (function_version_hasher): Likewise.
4583 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4584 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4585 (dw_loc_list_hasher, addr_hasher): Likewise.
4586 * function.h (used_type_hasher): Likewise.
4587 * function.c (temp_address_hasher): Likewise.
4588 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4589 * libfuncs.h (libfunc_hasher): Likewise.
4590 * lto-streamer.h (decl_state_hasher): Likewise.
4591 * optabs.c (libfunc_decl_hasher): Likewise.
4592 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4593 * varasm.c (section_hasher, object_block_hasher): Likewise.
4594 (const_rtx_desc_hasher): Likewise.
4595 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4596 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4597
4598 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4599
4600 * hash-traits.h (free_ptr_hash): New class.
4601 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4602 rather than typed_free_remove. Remove redudant typedefs.
4603 (external_ref_hasher): Likewise.
4604 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4605 (ehspec_hasher): Likewise.
4606 * ggc-common.c (saving_hasher): Likewise.
4607 * gimplify.c (gimplify_hasher): Likewise.
4608 * haifa-sched.c (delay_i2_hasher): Likewise.
4609 * loop-invariant.c (invariant_expr_hasher): Likewise.
4610 * loop-iv.c (biv_entry_hasher): Likewise.
4611 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4612 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4613 * tree-cfg.c (locus_discrim_hasher): Likewise.
4614 * tree-eh.c (finally_tree_hasher): Likewise.
4615 * tree-into-ssa.c (var_info_hasher): Likewise.
4616 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4617 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4618 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4619 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4620 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4621 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4622 (shared_bitmap_hasher): Likewise.
4623 * tree-ssa-threadupdate.c (redirection_data): Likewise.
4624 * tree-vectorizer.h (peel_info_hasher): Likewise.
4625 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4626 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4627
4628 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4629
4630 * hash-table.h: Update comments.
4631 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4632 (nofree_ptr_hash): New class.
4633 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4634 than typed_noop_remove. Remove redudant typedefs.
4635 * attribs.c (attribute_hasher): Likewise.
4636 * cfg.c (bb_copy_hasher): Likewise.
4637 * cselib.c (cselib_hasher): Likewise.
4638 * dse.c (invariant_group_base_hasher): Likewise.
4639 * dwarf2cfi.c (trace_info_hasher): Likewise.
4640 * dwarf2out.c (macinfo_entry_hasher): Likewise.
4641 (comdat_type_hasher, loc_list_hasher): Likewise.
4642 * gcse.c (pre_ldst_expr_hasher): Likewise.
4643 * genmatch.c (id_base): Likewise.
4644 * genrecog.c (test_pattern_hasher): Likewise.
4645 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4646 * haifa-sched.c (delay_i1_hasher): Likewise.
4647 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4648 * ipa-icf.h (congruence_class_group_hash): Likewise.
4649 * ipa-profile.c (histogram_hash): Likewise.
4650 * ira-color.c (allocno_hard_regs_hasher): Likewise.
4651 * lto-streamer.h (string_slot_hasher): Likewise.
4652 * lto-streamer.c (tree_entry_hasher): Likewise.
4653 * plugin.c (event_hasher): Likewise.
4654 * postreload-gcse.c (expr_hasher): Likewise.
4655 * store-motion.c (st_expr_hasher): Likewise.
4656 * tree-sra.c (uid_decl_hasher): Likewise.
4657 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4658 (ssa_name_var_hash): Likewise.
4659 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4660 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4661 * tree-ssa-pre.c (pre_expr_d): Likewise.
4662 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4663 * vtable-verify.h (registration_hasher): Likewise.
4664 * vtable-verify.c (vtbl_map_hasher): Likewise.
4665 * config/arm/arm.c (libcall_hasher): Likewise.
4666 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4667 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4668 * config/sol2.c (comdat_entry_hasher): Likewise.
4669 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4670 (print_fold_checksum, fold_checksum_tree): Likewise.
4671 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4672 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4673 (fold_build_call_array_loc): Likewise.
4674 * tree-ssa-ccp.c (gimple_htab): Likewise.
4675 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4676 rather than pointer_type.
4677
4678 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4679
4680 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4681 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4682
4683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4684
4685 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4686 (ggc_hasher::ggc_mx): Likewise.
4687 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
4688 that duplicate ggc_hasher ones.
4689
4690 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4691
4692 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4693 (gt_cleare_cache): Check here for deleted and empty entries.
4694 Replace handle_cache_entry with a call to keep_cache_entry.
4695 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4696 (ggc_cache_hasher::keep_cache_entry): New function.
4697 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4698 (tm_wrapper_hasher::keep_cache_entry): New function.
4699 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4700 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4701 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4702 (type_cache_hasher::keep_cache_entry): New function.
4703 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4704 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4705 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4706 (tree_type_map_cache_hasher::keep_cache_entry): New function.
4707 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
4708 (tm_clone_hasher::keep_cache_entry): New function.
4709 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
4710 (dllimport_hasher::keep_cache_entry): New function.
4711
4712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4713
4714 * hash-table.h: Include hash-traits.h.
4715 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
4716 (ggc_cache_hasher): Move to...
4717 * hash-traits.h: ...this new file.
4718
4719 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4720
4721 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
4722 struct cl_optimization.
4723 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
4724 * tree.c (make_node_stat): Allocate cl_optimization struct.
4725 (copy_node_stat): Allocate and copy cl_optimization struct.
4726
4727 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4728
4729 * function.h (struct incoming_args): Move struct.
4730 (pass_by_reference, reference_callee_copied): Remove prototypes.
4731 * emit-rtl.h (struct incoming_args): Relocate struct here.
4732 * calls.h (pass_by_reference, reference_callee_copied): Relocate
4733 prototypes here.
4734 * function.c (pass_by_reference, reference_callee_copied): Move.
4735 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
4736 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
4737 * ipa-chkp.c: Include calls.h.
4738
4739 2015-06-25 Andrew Macleod <amacleod@redhat.com>
4740
4741 * alias.h (alias_set_type): Move typedef.
4742 * coretypes.h (alias_set_type): Relocate typedef here.
4743 * rtl.h: Don't include alias.h.
4744
4745 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4746
4747 * cgraph.h (cgraph_rtl_info): Move to rtl.h
4748 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
4749 and instance.
4750 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
4751 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
4752 doesn't exist.
4753 * calls.c: Include hard-reg-set.h before rtl.h.
4754 * ira.c: Likewise.
4755
4756 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4757 Vladimir Makarov <vmakarov@redhat.com>
4758
4759 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
4760 Add assert.
4761
4762 2015-06-25 Richard Biener <rguenther@suse.de>
4763
4764 * fold-const.c (fold_binary_loc): Move simplification of
4765 (X <<>> C1) & C2 ...
4766 * match.pd: ... here.
4767
4768 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
4769
4770 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
4771
4772 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4773
4774 * match.pd: Add patterns for vec_conds between 1 and 0.
4775
4776 2015-06-25 Richard Biener <rguenther@suse.de>
4777
4778 * tree-vect-stmts.c (vectorizable_conversion): Do not set
4779 STMT_VINFO_VEC_STMT for SLP.
4780 (vectorizable_store): Likewise.
4781 (vectorizable_load): Likewise.
4782 (vect_transform_stmt): Catch SLP vectorization clobbering
4783 STMT_VINFO_VEC_STMT.
4784
4785 2015-06-25 Richard Biener <rguenther@suse.de>
4786
4787 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
4788 dumping.
4789 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
4790 cleanup resulting dead code and parameters.
4791 (vect_transform_slp_perm_load): Adjust.
4792
4793 2015-06-25 Nick Clifton <nickc@redhat.com>
4794
4795 * config/bfin/bfin.c (bfin_expand_prologue): Set
4796 current_function_static_stack_size if flag_stack_usage_info is set.
4797 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4798 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
4799 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4800 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
4801
4802 2015-06-25 Tom de Vries <tom@codesourcery.com>
4803
4804 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
4805 comment that the generated IV is unsigned.
4806
4807 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4808
4809 PR target/29693
4810 * config/arm/arm.c (arm_dbx_register_number): Return
4811 DWARF_FRAME_REGISTERS by default.
4812
4813 2015-06-25 Tom de Vries <tom@codesourcery.com>
4814
4815 * dominance.c (calculate_dominance_info): Fix verify_dominators call
4816 argument. Call verify_dominator when reusing dominator info.
4817
4818 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
4819
4820 PR target/66563
4821 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
4822 an additional element of the unspec vector. Modify indices
4823 of operands.
4824 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
4825 * config/sh/sh.c (prepare_move_operands): Pass incremented
4826 const_int to gen_GOTaddr2picreg.
4827 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
4828
4829 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
4830
4831 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
4832 Condition on TARGET_FLOAT.
4833
4834 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
4835
4836 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
4837 and (no)crypto.
4838
4839 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
4840
4841 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
4842
4843 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
4844 aarch64_err_no_fpadvsimd.
4845
4846 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
4847 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
4848 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
4849 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
4850 Turn error into assert, test TARGET_FLOAT.
4851 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
4852 TARGET_FLOAT.
4853
4854 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
4855
4856 PR debug/66482
4857 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
4858
4859 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4860
4861 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
4862
4863 2015-06-24 Renlin Li <renlin.li@arm.com>
4864
4865 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
4866 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
4867
4868 2015-06-24 Richard Biener <rguenther@suse.de>
4869
4870 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
4871 (main): Likewise.
4872 (lower_opt_convert): Support lowering of conditional view_convert.
4873 (parser::parse_operation): Likewise.
4874 (parser::parse_for): Likewise.
4875
4876 2015-06-24 Renlin Li <renlin.li@arm.com>
4877
4878 * varasm.c (emit_local): Use unsigned int for align variable.
4879
4880 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4881
4882 PR target/63408
4883 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
4884 for negative numbers.
4885
4886 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4887
4888 PR rtl-optimization/66306
4889 * reload.c (find_reloads): Swap the match_dup info for
4890 commutative operands.
4891
4892 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4893
4894 * config/s390/vx-builtins.md
4895 ("vec_scatter_element<mode>_<non_vec_int>")
4896 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
4897 attribute with bhfgq.
4898
4899 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4900
4901 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
4902
4903 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4904
4905 * config/s390/s390-builtin-types.def: Add flag to indicate the
4906 options under which the function type is needed.
4907 * config/s390/s390-builtins.def: Add flag to indicate the options
4908 under which the builtin is enabled.
4909 * config/s390/s390-builtins.h: Add flags parameter to macro
4910 definitions.
4911 (bflags_for_builtin): New function.
4912 (flags_for_builtin): Renamed to ...
4913 (opflags_for_builtin): ... this.
4914 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
4915 flags_for_builtin to bflags_for_builtin and
4916 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
4917 * config/s390/s390.c: Add initialization of bflags_builtin and
4918 opflags_builtin arrays.
4919 Remove code for flags_builtin.
4920 (s390_init_builtins): Only create builtin function types if one of
4921 their flags is active.
4922 Only create builtins if all of their flags are active.
4923 (s390_expand_builtin): Rename flags_for_builtin to
4924 opflags_for_builtin.
4925
4926 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4927
4928 * config/s390/vecintrin.h: Remove internal builtins.
4929
4930 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4931
4932 * config/s390/s390.c (s390_secondary_reload): Fix check for
4933 GENERAL_REGS register class.
4934
4935 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4936
4937 * config/s390/s390.c (s390_support_vector_misalignment): Call
4938 default implementation for !TARGET_VX.
4939
4940 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4941
4942 * config/s390/s390.c (s390_legitimate_constant_p): Add
4943 TARGET_VX check.
4944
4945 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4946
4947 * config/s390/s390.c (s390_vector_abi): New variable definition.
4948 (s390_check_type_for_vector_abi): New function.
4949 (TARGET_ASM_FILE_END): New macro definition.
4950 (s390_asm_file_end): New function.
4951 (s390_function_arg): Call s390_check_type_for_vector_abi.
4952 (s390_gimplify_va_arg): Likewise.
4953 * configure: Regenerate.
4954 * configure.ac: Check for .gnu_attribute Binutils feature.
4955
4956 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
4957
4958 PR target/65803
4959 * config/bfin/bfin.c (hwloop_optimize): Initialize
4960 JUMP_LABEL for newly created jump.
4961
4962 2015-06-23 Tristan Gingold <gingold@adacore.com>
4963
4964 * collect-utils.c (collect_wait): Unlink the response file here
4965 instead of...
4966 (do_wait): ...here.
4967 (utils_cleanup): ...and here.
4968
4969 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
4970
4971 * df-scan.c: Don't include target-def.h.
4972 * targhooks.c: Likewise.
4973 * config/arm/arm-c.c: Likewise.
4974 * config/i386/i386-c.c: Likewise.
4975 * config/nds32/nds32-cost.c: Likewise.
4976 * config/nds32/nds32-fp-as-gp.c: Likewise.
4977 * config/nds32/nds32-intrinsic.c: Likewise.
4978 * config/nds32/nds32-isr.c: Likewise.
4979 * config/nds32/nds32-md-auxiliary.c: Likewise.
4980 * config/nds32/nds32-memory-manipulation.c: Likewise.
4981 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4982 * config/nds32/nds32-predicates.c: Likewise.
4983
4984 2015-06-23 Richard Biener <rguenther@suse.de>
4985
4986 PR tree-optimization/66636
4987 * tree-vect-stmts.c (vectorizable_store): Properly compute the
4988 def type for further defs for strided stores.
4989
4990 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
4991
4992 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
4993 conditional selects.
4994 (setcc_int<mode>, setcc_float<mode>): Reformat.
4995
4996 2015-06-23 Marek Polacek <polacek@redhat.com>
4997
4998 * match.pd ((x + y) - (x | y) -> x & y,
4999 (x + y) - (x & y) -> x | y): New patterns.
5000
5001 2015-06-23 Ludovic Courtès <ludo@gnu.org>
5002
5003 PR 65711
5004 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5005 '-dynamic-linker' within %{!shared: ...}.
5006
5007 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
5008
5009 PR target/66560
5010 * config/i386/predicates.md (addsub_vm_operator): New predicate.
5011 (addsub_vs_operator): Ditto.
5012 (addsub_vs_parallel): Ditto.
5013 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5014 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5015 Put minus RTX before plus and adjust vec_merge selector.
5016 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5017 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5018 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5019 (addsub vec_merge splitters): New combiner splitters.
5020 (addsub vec_select/vec_concat splitters): Ditto.
5021
5022 2015-06-23 Bin Cheng <bin.cheng@arm.com>
5023
5024 PR tree-optimization/66449
5025 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5026 POINTER_PLUS_EXPR for pointers.
5027
5028 2015-06-23 Alan Modra <amodra@gmail.com>
5029
5030 * rtlanal.c (commutative_operand_precedence): Correct comments.
5031 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5032 declaration. Return an int. Distinguish REG,REG return from
5033 others.
5034 (struct simplify_plus_minus_op_data): Make local to function.
5035 (simplify_plus_minus): Don't set canonicalized if merely sorting
5036 registers. Avoid packing ops if nothing changes. White space fixes.
5037
5038 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5039
5040 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5041 -fdump-ada-spec is passed but not if -fsyntax-only is.
5042
5043 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
5044
5045 PR bootstrap/63740
5046 * lra-lives.c (process_bb_lives): Check insn copying the same
5047 reload pseudo and don't create a copy for it.
5048
5049 2015-06-22 Tom de Vries <tom@codesourcery.com>
5050
5051 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5052 for cond_stmt.
5053
5054 2015-06-22 Tom de Vries <tom@codesourcery.com>
5055
5056 * builtins.def (DEF_GOMP_BUILTIN): Test
5057 'flag_tree_parallelize_loops > 1' instead of
5058 'flag_tree_parallelize_loops'. Test flag_cilkplus.
5059
5060 2015-06-22 Tom de Vries <tom@codesourcery.com>
5061
5062 * dominance.c (calculate_dominance_info): Verify dominators if
5063 early-out.
5064
5065 2015-06-22 Marek Polacek <polacek@redhat.com>
5066
5067 * match.pd ((x ^ y) ^ (x | y) -> x & y,
5068 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5069 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5070 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5071
5072 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
5073
5074 PR target/65871
5075 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5076 cost of embedded comparison.
5077
5078 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5079
5080 PR target/65914
5081 * config/rs6000/predicates.md (altivec_register_operand): Permit
5082 virtual stack registers.
5083 (vsx_register_operand): Likewise.
5084 (vfloat_operand): Likewise.
5085 (vint_operand): Likewise.
5086 (vlogical_operand): Likewise.
5087
5088 2015-06-22 Richard Biener <rguenther@suse.de>
5089
5090 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5091 and single_scalar_iteration_cost members.
5092 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5093 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5094 (vect_get_single_scalar_iteration_cost): Remove.
5095 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5096 Use LOOP_VINFO_SCALAR_ITERATION_COST.
5097 * tree-vect-loop.c (destroy_loop_vec_info): Free
5098 scalar_cost_vec.
5099 (vect_get_single_scalar_iteration_cost): Compute result into
5100 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5101 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
5102 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5103 (vect_estimate_min_profitable_iters): Use them.
5104
5105 2015-06-22 Christian Bruel <christian.bruel@st.com>
5106
5107 PR target/52144
5108 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5109 (TARGET_INSERT_ATTRIBUTES): Define.
5110 (thumb_flipper): New var.
5111 * config/arm/arm.opt (-mflip-thumb): New switch.
5112
5113 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5114 Martin Liska <mliska@suse.cz>
5115
5116 PR ipa/65908
5117 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5118 construction of arg_types.
5119 (sem_function::sem_function): Likewise.
5120 (sem_function::~sem_function): Remove destruction of arg_types.
5121 (sem_function::compatible_parm_types_p): New function.
5122 (sem_function::equals_wpa): Reorg matching of return values
5123 and parameter types.
5124 (sem_function::equals_private): Reorg mathcing of argument types.
5125 (sem_function::parse_tree_args): Remove.
5126 * ipa-icf.h (init_wpa): Do not call it.
5127 (parse_tree_args): Remove.
5128 (compatible_parm_types_p): Declare.
5129 (result_type): Remove.
5130 (arg_types): Remove.
5131
5132 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5133
5134 PR ipa/66351
5135 * ipa-polymorphic-call.c
5136 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5137 initializing alias oracle; fix formating; set base_alias_set if it
5138 is known.
5139
5140 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5141
5142 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5143 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5144 (find_inc): Likewise.
5145 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5146 swapping.
5147 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5148 * df-scan.c (df_swap_refs): Remove.
5149 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5150 * dominance.c (link_roots): Use std::swap instead of manually swapping.
5151 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5152 * fold-const.c (fold_relational_const): Likewise.
5153 * genattrtab.c (simplify_test_exp): Likewise.
5154 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5155 gimple_simplify): Likewise.
5156 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5157 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5158 * ipa-devirt.c (add_type_duplicate): Likewise.
5159 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5160 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5161 * lra.c (lra_create_copy): Likewise.
5162 * lto-streamer-out.c (DFS::DFS): Likewise.
5163 * modulo-sched.c (get_sched_window): Likewise.
5164 * omega.c (omega_pretty_print_problem): Likewise.
5165 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5166 * reload1.c (reloads_unique_chain_p): Likewise.
5167 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5168 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5169 use std::swap.
5170 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5171 manually swapping.
5172 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5173 predicate_mem_writes): Likewise.
5174 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5175 * tree-predcom.c (combine_chains): Likewise.
5176 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5177 refs_may_alias_p_1): Likewise.
5178 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5179 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5180 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5181 number_of_iterations_cond): Likewise.
5182 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5183 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5184 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5185 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5186 * tree-vrp.c (extract_range_from_binary_expr_1,
5187 extract_range_from_unary_expr_1): Likewise.
5188
5189 2015-06-20 Marek Polacek <polacek@redhat.com>
5190
5191 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5192
5193 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
5194
5195 PR target/66591
5196 * config/sh/sh.c (prepare_move_operands): Replace subreg
5197 index term with R0 for base and index addressing.
5198
5199 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
5200
5201 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5202 op1 is an fp zero.
5203 (movsf_aarch64): Change condition from register_operand to
5204 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
5205 load1. Change type for alternative 7 to store1.
5206 (movdf_aarch64): Likewise.
5207
5208 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
5209
5210 * config/vax/vax.md: Adjust sign/zero extend patterns to
5211 handle SUBREGs in operands[1].
5212
5213 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5214
5215 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5216 of manually swapping.
5217 (expand_vec_perm_interleave2): Likewise.
5218
5219 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
5220
5221 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5222 reuse bounds created for abnormal ssa names.
5223
5224 2015-06-19 Jakub Jelinek <jakub@redhat.com>
5225
5226 * config/nvptx/nvptx.md (allocate_stack): Rename to...
5227 (allocate_stack_<mode>): ... this, and add :P on both
5228 match_operand and unspec.
5229 (allocate_stack): New expander.
5230
5231 2015-06-19 Christian Bruel <christian.bruel@st.com>
5232
5233 PR target/66541
5234 PR target/52144
5235 * config/arm/arm.c (arm_set_current_function): Handle
5236 explicit default options.
5237
5238 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5239
5240 * config/i386/i386.md (*movsicc_noc_zext): New insn.
5241 (zero-extended cmove with mem peephole2): New pattern.
5242 (cmove with mem peephole2): Merge patterns.
5243
5244 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
5245
5246 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5247
5248 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
5249
5250 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5251 * config/mips/mips.md (*madd4<mode>): Ditto.
5252 (*nmadd3<mode>) Ditto.
5253 (*nmadd4<mode>_fastmath): Ditto.
5254 (*nmadd3<mode>_fastmath): Ditto.
5255 (*nmsub4<mode>): Ditto.
5256 (*nmsub3<mode>): Ditto.
5257 (*nmsub4<mode>_fastmath): Ditto.
5258 (*nmsub3<mode>_fastmath): Ditto.
5259
5260 2015-06-18 Michael Matz <matz@suse.de>
5261
5262 PR middle-end/66253
5263 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5264 grouped strided stores.
5265 (vectorizable_load): Don't use the DR from first_stmt in
5266 the non-SLP grouped strided case.
5267
5268 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5269
5270 PR target/66569
5271 * function.c (assign_bounds): Add arguments assign_regs,
5272 assign_special, assign_bt.
5273 (assign_parms): For vararg functions handle bounds in BT
5274 and special slots after incoming vararg bounds.
5275
5276 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5277
5278 PR middle-end/66568
5279 * cfgexpand.c (expand_return): Handle missing bounds.
5280 (expand_gimple_stmt_1): Likewise.
5281 * tree-chkp.c (chkp_expand_zero_bounds): New.
5282 * tree-chkp.h (chkp_expand_zero_bounds): New.
5283
5284 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5285
5286 PR middle-end/66567
5287 * ipa-chkp.c (chkp_maybe_create_clone): Require
5288 functions to be instrumentable.
5289 * tree-chkp.c (chkp_replace_function_pointer): Use
5290 chkp_instrumentable_p instead of attribute check.
5291
5292 2015-06-18 Richard Biener <rguenther@suse.de>
5293
5294 PR tree-optimization/66510
5295 * tree-vect-stmts.c (vectorizable_load): Properly compute the
5296 number of vector loads for SLP permuted loads.
5297 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5298 check the stride for loop vectorization.
5299 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5300 vectorization factor.
5301 (vect_analyze_group_access): If the group size is not a power
5302 of two require a epilogue loop.
5303 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5304 compute and optimizing and alias test pruning after final
5305 vectorization factor computation.
5306 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5307 vector alignment.
5308 (vect_transform_slp_perm_load): Properly compute the original
5309 number of vector load stmts.
5310
5311 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5312
5313 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5314 "unlikely character , in @var" warning.
5315
5316 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
5317
5318 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5319 (ix86_function_arg_advance): Ditto.
5320 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
5321
5322 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5323
5324 * function.h (struct rtl_data): Remove struct and accessor macros.
5325 * emit-rtl.h (struct rtl_data): Relocate to here.
5326 * Makefile.in (GTFILES): Add emit-rtl.h.
5327 * df-core.c: Include emit-rtl.h.
5328 * genattrtab.c: Likewise.
5329 * genconditions.c: Likewise.
5330 * genpreds.c: Likewise.
5331 * genrecog.c: Likewise.
5332 * regcprop.c: Likewise.
5333 * resource.c: Likewise.
5334 * sched-rgn.c: Likewise.
5335 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5336 * config/i386/winnt.c: Likewise.
5337
5338 2015-06-17 Jakub Jelinek <jakub@redhat.com>
5339
5340 PR middle-end/66429
5341 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5342 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
5343 and has_force_vectorize_loops flags from cfun into
5344 child_cfun.
5345 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5346 if simduid is non-NULL.
5347 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5348 * passes.def (pass_simduid_cleanup): Add new pass after loop
5349 passes.
5350 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5351 indirection from htab argument's type.
5352 (shrink_simd_arrays): New function.
5353 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
5354 Don't call adjust_simduid_builtins if there are no loops.
5355 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5356 (pass_simduid_cleanup::execute): New method.
5357 (make_pass_simduid_cleanup): New function.
5358
5359 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
5360
5361 * tree-core.h (tree_target_option): Make opts field a pointer to a
5362 cl_target_option instead of an instance of the struct.
5363 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5364 the structure.
5365 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5366 TARGET_OPTION_NODE.
5367 (copy_node_stat): Allocate and copy struct cl_target_option.
5368
5369 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5370
5371 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5372 Remove conditional exposure of prototypes.
5373 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5374 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
5375 definitions in tree.h with functions.
5376 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5377 anon_aggrname_p.
5378 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5379
5380 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
5381
5382 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5383 (*cmp<mode>_signed): ... this.
5384 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5385 (*cmp<mode>_unsigned): ... this. Remove %b.
5386
5387 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5388
5389 * coretypes.h: Include input.h and as-a.h.
5390 * rtl.h: Include input.h and as-a.h for generator files.
5391 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5392 * vec.c: Don't include diagnostic-core.h.
5393 * alias.c: Do not include input.h, line-map.h or is-a.h.
5394 * asan.c: Likewise.
5395 * attribs.c: Likewise.
5396 * auto-inc-dec.c: Likewise.
5397 * auto-profile.c: Likewise.
5398 * bb-reorder.c: Likewise.
5399 * bt-load.c: Likewise.
5400 * builtins.c: Likewise.
5401 * caller-save.c: Likewise.
5402 * calls.c: Likewise.
5403 * ccmp.c: Likewise.
5404 * cfg.c: Likewise.
5405 * cfganal.c: Likewise.
5406 * cfgbuild.c: Likewise.
5407 * cfgcleanup.c: Likewise.
5408 * cfgexpand.c: Likewise.
5409 * cfghooks.c: Likewise.
5410 * cfgloop.c: Likewise.
5411 * cfgloop.h: Likewise.
5412 * cfgloopanal.c: Likewise.
5413 * cfgloopmanip.c: Likewise.
5414 * cfgrtl.c: Likewise.
5415 * cgraph.c: Likewise.
5416 * cgraphbuild.c: Likewise.
5417 * cgraphclones.c: Likewise.
5418 * cgraphunit.c: Likewise.
5419 * cilk-common.c: Likewise.
5420 * combine-stack-adj.c: Likewise.
5421 * combine.c: Likewise.
5422 * compare-elim.c: Likewise.
5423 * convert.c: Likewise.
5424 * coverage.c: Likewise.
5425 * cppbuiltin.c: Likewise.
5426 * cprop.c: Likewise.
5427 * cse.c: Likewise.
5428 * cselib.c: Likewise.
5429 * data-streamer-in.c: Likewise.
5430 * data-streamer-out.c: Likewise.
5431 * data-streamer.c: Likewise.
5432 * dbxout.c: Likewise.
5433 * dce.c: Likewise.
5434 * ddg.c: Likewise.
5435 * debug.c: Likewise.
5436 * df-core.c: Likewise.
5437 * df-problems.c: Likewise.
5438 * df-scan.c: Likewise.
5439 * df.h: Likewise.
5440 * dfp.c: Likewise.
5441 * diagnostic-core.h: Likewise.
5442 * diagnostic.c: Likewise.
5443 * dojump.c: Likewise.
5444 * dominance.c: Likewise.
5445 * domwalk.c: Likewise.
5446 * double-int.c: Likewise.
5447 * dse.c: Likewise.
5448 * dumpfile.c: Likewise.
5449 * dumpfile.h: Likewise.
5450 * dwarf2asm.c: Likewise.
5451 * dwarf2cfi.c: Likewise.
5452 * dwarf2out.c: Likewise.
5453 * emit-rtl.c: Likewise.
5454 * et-forest.c: Likewise.
5455 * except.c: Likewise.
5456 * explow.c: Likewise.
5457 * expmed.c: Likewise.
5458 * expr.c: Likewise.
5459 * final.c: Likewise.
5460 * fixed-value.c: Likewise.
5461 * fold-const.c: Likewise.
5462 * function.c: Likewise.
5463 * fwprop.c: Likewise.
5464 * gcc-plugin.h: Likewise.
5465 * gcse.c: Likewise.
5466 * generic-match-head.c: Likewise.
5467 * ggc-page.c: Likewise.
5468 * gimple-builder.c: Likewise.
5469 * gimple-expr.c: Likewise.
5470 * gimple-fold.c: Likewise.
5471 * gimple-iterator.c: Likewise.
5472 * gimple-low.c: Likewise.
5473 * gimple-match-head.c: Likewise.
5474 * gimple-pretty-print.c: Likewise.
5475 * gimple-ssa-isolate-paths.c: Likewise.
5476 * gimple-ssa-strength-reduction.c: Likewise.
5477 * gimple-streamer-in.c: Likewise.
5478 * gimple-streamer-out.c: Likewise.
5479 * gimple-streamer.h: Likewise.
5480 * gimple-walk.c: Likewise.
5481 * gimple.c: Likewise.
5482 * gimplify-me.c: Likewise.
5483 * gimplify.c: Likewise.
5484 * godump.c: Likewise.
5485 * graph.c: Likewise.
5486 * graphite-blocking.c: Likewise.
5487 * graphite-dependences.c: Likewise.
5488 * graphite-interchange.c: Likewise.
5489 * graphite-isl-ast-to-gimple.c: Likewise.
5490 * graphite-optimize-isl.c: Likewise.
5491 * graphite-poly.c: Likewise.
5492 * graphite-scop-detection.c: Likewise.
5493 * graphite-sese-to-poly.c: Likewise.
5494 * graphite.c: Likewise.
5495 * haifa-sched.c: Likewise.
5496 * hw-doloop.c: Likewise.
5497 * ifcvt.c: Likewise.
5498 * init-regs.c: Likewise.
5499 * input.c: Likewise.
5500 * internal-fn.c: Likewise.
5501 * ipa-chkp.c: Likewise.
5502 * ipa-comdats.c: Likewise.
5503 * ipa-cp.c: Likewise.
5504 * ipa-devirt.c: Likewise.
5505 * ipa-icf-gimple.c: Likewise.
5506 * ipa-icf.c: Likewise.
5507 * ipa-inline-analysis.c: Likewise.
5508 * ipa-inline-transform.c: Likewise.
5509 * ipa-inline.c: Likewise.
5510 * ipa-polymorphic-call.c: Likewise.
5511 * ipa-profile.c: Likewise.
5512 * ipa-prop.c: Likewise.
5513 * ipa-pure-const.c: Likewise.
5514 * ipa-ref.c: Likewise.
5515 * ipa-reference.c: Likewise.
5516 * ipa-split.c: Likewise.
5517 * ipa-utils.c: Likewise.
5518 * ipa-visibility.c: Likewise.
5519 * ipa.c: Likewise.
5520 * ira-build.c: Likewise.
5521 * ira-color.c: Likewise.
5522 * ira-conflicts.c: Likewise.
5523 * ira-costs.c: Likewise.
5524 * ira-emit.c: Likewise.
5525 * ira-lives.c: Likewise.
5526 * ira.c: Likewise.
5527 * jump.c: Likewise.
5528 * langhooks.c: Likewise.
5529 * lcm.c: Likewise.
5530 * loop-doloop.c: Likewise.
5531 * loop-init.c: Likewise.
5532 * loop-invariant.c: Likewise.
5533 * loop-iv.c: Likewise.
5534 * loop-unroll.c: Likewise.
5535 * lower-subreg.c: Likewise.
5536 * lra-assigns.c: Likewise.
5537 * lra-coalesce.c: Likewise.
5538 * lra-constraints.c: Likewise.
5539 * lra-eliminations.c: Likewise.
5540 * lra-lives.c: Likewise.
5541 * lra-remat.c: Likewise.
5542 * lra-spills.c: Likewise.
5543 * lra.c: Likewise.
5544 * lto-cgraph.c: Likewise.
5545 * lto-compress.c: Likewise.
5546 * lto-opts.c: Likewise.
5547 * lto-section-in.c: Likewise.
5548 * lto-section-out.c: Likewise.
5549 * lto-streamer-in.c: Likewise.
5550 * lto-streamer-out.c: Likewise.
5551 * lto-streamer.c: Likewise.
5552 * mcf.c: Likewise.
5553 * mode-switching.c: Likewise.
5554 * modulo-sched.c: Likewise.
5555 * omega.c: Likewise.
5556 * omp-low.c: Likewise.
5557 * optabs.c: Likewise.
5558 * opts-global.c: Likewise.
5559 * opts.h: Likewise.
5560 * passes.c: Likewise.
5561 * plugin.c: Likewise.
5562 * postreload-gcse.c: Likewise.
5563 * postreload.c: Likewise.
5564 * predict.c: Likewise.
5565 * pretty-print.h: Likewise.
5566 * print-rtl.c: Likewise.
5567 * print-tree.c: Likewise.
5568 * profile.c: Likewise.
5569 * real.c: Likewise.
5570 * realmpfr.c: Likewise.
5571 * recog.c: Likewise.
5572 * ree.c: Likewise.
5573 * reg-stack.c: Likewise.
5574 * regcprop.c: Likewise.
5575 * reginfo.c: Likewise.
5576 * regrename.c: Likewise.
5577 * regstat.c: Likewise.
5578 * reload.c: Likewise.
5579 * reload1.c: Likewise.
5580 * reorg.c: Likewise.
5581 * resource.c: Likewise.
5582 * rtl-chkp.c: Likewise.
5583 * rtl-error.c: Likewise.
5584 * rtlanal.c: Likewise.
5585 * rtlhooks.c: Likewise.
5586 * sanopt.c: Likewise.
5587 * sched-deps.c: Likewise.
5588 * sched-ebb.c: Likewise.
5589 * sched-rgn.c: Likewise.
5590 * sched-vis.c: Likewise.
5591 * sdbout.c: Likewise.
5592 * sel-sched-dump.c: Likewise.
5593 * sel-sched-ir.c: Likewise.
5594 * sel-sched.c: Likewise.
5595 * sese.c: Likewise.
5596 * shrink-wrap.c: Likewise.
5597 * simplify-rtx.c: Likewise.
5598 * stack-ptr-mod.c: Likewise.
5599 * statistics.c: Likewise.
5600 * stmt.c: Likewise.
5601 * stor-layout.c: Likewise.
5602 * store-motion.c: Likewise.
5603 * streamer-hooks.c: Likewise.
5604 * stringpool.c: Likewise.
5605 * symtab.c: Likewise.
5606 * target-globals.c: Likewise.
5607 * targhooks.c: Likewise.
5608 * toplev.c: Likewise.
5609 * tracer.c: Likewise.
5610 * trans-mem.c: Likewise.
5611 * tree-affine.c: Likewise.
5612 * tree-browser.c: Likewise.
5613 * tree-call-cdce.c: Likewise.
5614 * tree-cfg.c: Likewise.
5615 * tree-cfgcleanup.c: Likewise.
5616 * tree-chkp-opt.c: Likewise.
5617 * tree-chkp.c: Likewise.
5618 * tree-chrec.c: Likewise.
5619 * tree-complex.c: Likewise.
5620 * tree-data-ref.c: Likewise.
5621 * tree-dfa.c: Likewise.
5622 * tree-diagnostic.c: Likewise.
5623 * tree-dump.c: Likewise.
5624 * tree-eh.c: Likewise.
5625 * tree-emutls.c: Likewise.
5626 * tree-if-conv.c: Likewise.
5627 * tree-inline.c: Likewise.
5628 * tree-into-ssa.c: Likewise.
5629 * tree-iterator.c: Likewise.
5630 * tree-loop-distribution.c: Likewise.
5631 * tree-nested.c: Likewise.
5632 * tree-nrv.c: Likewise.
5633 * tree-object-size.c: Likewise.
5634 * tree-outof-ssa.c: Likewise.
5635 * tree-parloops.c: Likewise.
5636 * tree-phinodes.c: Likewise.
5637 * tree-predcom.c: Likewise.
5638 * tree-pretty-print.c: Likewise.
5639 * tree-profile.c: Likewise.
5640 * tree-scalar-evolution.c: Likewise.
5641 * tree-sra.c: Likewise.
5642 * tree-ssa-address.c: Likewise.
5643 * tree-ssa-alias.c: Likewise.
5644 * tree-ssa-ccp.c: Likewise.
5645 * tree-ssa-coalesce.c: Likewise.
5646 * tree-ssa-copy.c: Likewise.
5647 * tree-ssa-copyrename.c: Likewise.
5648 * tree-ssa-dce.c: Likewise.
5649 * tree-ssa-dom.c: Likewise.
5650 * tree-ssa-dse.c: Likewise.
5651 * tree-ssa-forwprop.c: Likewise.
5652 * tree-ssa-ifcombine.c: Likewise.
5653 * tree-ssa-live.c: Likewise.
5654 * tree-ssa-loop-ch.c: Likewise.
5655 * tree-ssa-loop-im.c: Likewise.
5656 * tree-ssa-loop-ivcanon.c: Likewise.
5657 * tree-ssa-loop-ivopts.c: Likewise.
5658 * tree-ssa-loop-manip.c: Likewise.
5659 * tree-ssa-loop-niter.c: Likewise.
5660 * tree-ssa-loop-prefetch.c: Likewise.
5661 * tree-ssa-loop-unswitch.c: Likewise.
5662 * tree-ssa-loop.c: Likewise.
5663 * tree-ssa-math-opts.c: Likewise.
5664 * tree-ssa-operands.c: Likewise.
5665 * tree-ssa-phiopt.c: Likewise.
5666 * tree-ssa-phiprop.c: Likewise.
5667 * tree-ssa-pre.c: Likewise.
5668 * tree-ssa-propagate.c: Likewise.
5669 * tree-ssa-reassoc.c: Likewise.
5670 * tree-ssa-sccvn.c: Likewise.
5671 * tree-ssa-scopedtables.c: Likewise.
5672 * tree-ssa-sink.c: Likewise.
5673 * tree-ssa-strlen.c: Likewise.
5674 * tree-ssa-structalias.c: Likewise.
5675 * tree-ssa-tail-merge.c: Likewise.
5676 * tree-ssa-ter.c: Likewise.
5677 * tree-ssa-threadedge.c: Likewise.
5678 * tree-ssa-threadupdate.c: Likewise.
5679 * tree-ssa-uncprop.c: Likewise.
5680 * tree-ssa-uninit.c: Likewise.
5681 * tree-ssa.c: Likewise.
5682 * tree-ssanames.c: Likewise.
5683 * tree-stdarg.c: Likewise.
5684 * tree-streamer-in.c: Likewise.
5685 * tree-streamer-out.c: Likewise.
5686 * tree-streamer.c: Likewise.
5687 * tree-switch-conversion.c: Likewise.
5688 * tree-tailcall.c: Likewise.
5689 * tree-vect-data-refs.c: Likewise.
5690 * tree-vect-generic.c: Likewise.
5691 * tree-vect-loop-manip.c: Likewise.
5692 * tree-vect-loop.c: Likewise.
5693 * tree-vect-patterns.c: Likewise.
5694 * tree-vect-slp.c: Likewise.
5695 * tree-vect-stmts.c: Likewise.
5696 * tree-vectorizer.c: Likewise.
5697 * tree-vrp.c: Likewise.
5698 * tree.c: Likewise.
5699 * tsan.c: Likewise.
5700 * ubsan.c: Likewise.
5701 * valtrack.c: Likewise.
5702 * value-prof.c: Likewise.
5703 * var-tracking.c: Likewise.
5704 * varasm.c: Likewise.
5705 * varpool.c: Likewise.
5706 * vmsdbgout.c: Likewise.
5707 * vtable-verify.c: Likewise.
5708 * web.c: Likewise.
5709 * wide-int.cc: Likewise.
5710 * xcoffout.c: Likewise.
5711 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
5712 * common/common-targhooks.c: Likewise.
5713 * config/aarch64/aarch64-builtins.c: Likewise.
5714 * config/aarch64/aarch64.c: Likewise.
5715 * config/alpha/alpha.c: Likewise.
5716 * config/arc/arc.c: Likewise.
5717 * config/arm/aarch-common.c: Likewise.
5718 * config/arm/arm-builtins.c: Likewise.
5719 * config/arm/arm-c.c: Likewise.
5720 * config/arm/arm.c: Likewise.
5721 * config/avr/avr-c.c: Likewise.
5722 * config/avr/avr-log.c: Likewise.
5723 * config/avr/avr.c: Likewise.
5724 * config/bfin/bfin.c: Likewise.
5725 * config/c6x/c6x.c: Likewise.
5726 * config/cr16/cr16.c: Likewise.
5727 * config/cris/cris.c: Likewise.
5728 * config/darwin-c.c: Likewise.
5729 * config/darwin.c: Likewise.
5730 * config/default-c.c: Likewise.
5731 * config/epiphany/epiphany.c: Likewise.
5732 * config/epiphany/mode-switch-use.c: Likewise.
5733 * config/epiphany/resolve-sw-modes.c: Likewise.
5734 * config/fr30/fr30.c: Likewise.
5735 * config/frv/frv.c: Likewise.
5736 * config/ft32/ft32.c: Likewise.
5737 * config/glibc-c.c: Likewise.
5738 * config/h8300/h8300.c: Likewise.
5739 * config/i386/i386-c.c: Likewise.
5740 * config/i386/i386.c: Likewise.
5741 * config/i386/msformat-c.c: Likewise.
5742 * config/i386/winnt-cxx.c: Likewise.
5743 * config/i386/winnt-stubs.c: Likewise.
5744 * config/i386/winnt.c: Likewise.
5745 * config/ia64/ia64-c.c: Likewise.
5746 * config/ia64/ia64.c: Likewise.
5747 * config/iq2000/iq2000.c: Likewise.
5748 * config/lm32/lm32.c: Likewise.
5749 * config/m32c/m32c-pragma.c: Likewise.
5750 * config/m32c/m32c.c: Likewise.
5751 * config/m32r/m32r.c: Likewise.
5752 * config/m68k/m68k.c: Likewise.
5753 * config/mcore/mcore.c: Likewise.
5754 * config/mep/mep-pragma.c: Likewise.
5755 * config/mep/mep.c: Likewise.
5756 * config/microblaze/microblaze-c.c: Likewise.
5757 * config/microblaze/microblaze.c: Likewise.
5758 * config/mips/mips.c: Likewise.
5759 * config/mmix/mmix.c: Likewise.
5760 * config/mn10300/mn10300.c: Likewise.
5761 * config/moxie/moxie.c: Likewise.
5762 * config/msp430/msp430-c.c: Likewise.
5763 * config/msp430/msp430.c: Likewise.
5764 * config/nds32/nds32-cost.c: Likewise.
5765 * config/nds32/nds32-fp-as-gp.c: Likewise.
5766 * config/nds32/nds32-intrinsic.c: Likewise.
5767 * config/nds32/nds32-isr.c: Likewise.
5768 * config/nds32/nds32-md-auxiliary.c: Likewise.
5769 * config/nds32/nds32-memory-manipulation.c: Likewise.
5770 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5771 * config/nds32/nds32-predicates.c: Likewise.
5772 * config/nds32/nds32.c: Likewise.
5773 * config/nios2/nios2.c: Likewise.
5774 * config/nvptx/nvptx.c: Likewise.
5775 * config/pa/pa.c: Likewise.
5776 * config/pdp11/pdp11.c: Likewise.
5777 * config/rl78/rl78-c.c: Likewise.
5778 * config/rl78/rl78.c: Likewise.
5779 * config/rs6000/rs6000-c.c: Likewise.
5780 * config/rs6000/rs6000.c: Likewise.
5781 * config/rx/rx.c: Likewise.
5782 * config/s390/s390-c.c: Likewise.
5783 * config/s390/s390.c: Likewise.
5784 * config/sh/sh-c.c: Likewise.
5785 * config/sh/sh-mem.cc: Likewise.
5786 * config/sh/sh.c: Likewise.
5787 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5788 * config/sh/sh_treg_combine.cc: Likewise.
5789 * config/sol2-c.c: Likewise.
5790 * config/sol2-cxx.c: Likewise.
5791 * config/sol2-stubs.c: Likewise.
5792 * config/sol2.c: Likewise.
5793 * config/sparc/sparc-c.c: Likewise.
5794 * config/sparc/sparc.c: Likewise.
5795 * config/spu/spu-c.c: Likewise.
5796 * config/spu/spu.c: Likewise.
5797 * config/stormy16/stormy16.c: Likewise.
5798 * config/tilegx/mul-tables.c: Likewise.
5799 * config/tilegx/tilegx-c.c: Likewise.
5800 * config/tilegx/tilegx.c: Likewise.
5801 * config/tilepro/mul-tables.c: Likewise.
5802 * config/tilepro/tilepro-c.c: Likewise.
5803 * config/tilepro/tilepro.c: Likewise.
5804 * config/v850/v850-c.c: Likewise.
5805 * config/v850/v850.c: Likewise.
5806 * config/vax/vax.c: Likewise.
5807 * config/visium/visium.c: Likewise.
5808 * config/vms/vms-c.c: Likewise.
5809 * config/vms/vms.c: Likewise.
5810 * config/vxworks.c: Likewise.
5811 * config/winnt-c.c: Likewise.
5812 * config/xtensa/xtensa.c: Likewise.
5813
5814 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
5815
5816 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
5817 function.
5818 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
5819
5820 2015-06-17 Richard Biener <rguenther@suse.de>
5821
5822 PR tree-optimization/66251
5823 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
5824 stmts for SLP strided stores.
5825
5826 Revert
5827 2015-05-22 Richard Biener <rguenther@suse.de>
5828
5829 PR tree-optimization/66251
5830 * tree-vect-stmts.c (vectorizable_conversion): Properly
5831 set STMT_VINFO_VEC_STMT even for the SLP case.
5832
5833 2015-05-26 Michael Matz <matz@suse.de>
5834
5835 PR middle-end/66251
5836 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
5837 STMT_VINFO_VEC_STMT, also with SLP.
5838
5839 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
5840
5841 PR target/56766
5842 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
5843 (*avx_addsubv4df3_1s): Ditto.
5844 (*sse3_addsubv2df3_1): Ditto.
5845 (*sse3_addsubv2df3_1s): Ditto.
5846 (*avx_addsubv8sf3_1): Ditto.
5847 (*avx_addsubv8sf3_1s): Ditto.
5848 (*sse3_addsubv4sf3_1): Ditto.
5849 (*sse3_addsubv4sf3_1s): Ditto.
5850
5851 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
5852
5853 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
5854 (SYSROOT_SUFFIX_SPEC): Update.
5855 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
5856 (STARTFILE_PREFIX_SPEC): Update.
5857 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
5858 (MULTILIB_REQUIRED): New.
5859 (MULTILIB_OSDIRNAMES): New.
5860 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
5861 (MULTILIB_REQUIRED): New.
5862 (MULTILIB_OSDIRNAMES): New.
5863
5864 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
5865
5866 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
5867 * config/aarch64/aarch64-options-extensions.def: Update "fP",
5868 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
5869 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
5870 (AARCH64_FL_PAN): New.
5871 (AARCH64_FL_LOR): New.
5872 (AARCH64_FL_RDMA): New.
5873 (AARCH64_FL_FOR_ARCH8_1): New.
5874 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
5875 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
5876
5877 2015-06-16 Martin Liska <mliska@suse.cz>
5878
5879 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
5880 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
5881 guard.
5882
5883 2015-06-16 Richard Biener <rguenther@suse.de>
5884
5885 * tree-vect-stmts.c (vectorizable_store): Adjust.
5886 (vectorizable_load): Likewise.
5887 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5888 Simplify.
5889 (vect_create_data_ref_ptr): Likewise.
5890 (bump_vector_ptr): Adjust.
5891
5892 2015-06-16 Richard Biener <rguenther@suse.de>
5893
5894 * tree-vect-stmts.c (vectorizable_load): Properly start loads
5895 with the first element if this is grouped loads.
5896
5897 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
5898
5899 * config/arm/arm-protos.h (struct tune_params): Rename
5900 log_op_non_sc to log_op_non_short_circuit, and rename enum
5901 values to expand SC to SHORT_CIRCUIT.
5902 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
5903 to LOG_OP_NON_SHORT_CIRCUIT.
5904 (arm_fastmul_tune):Likewise
5905 (arm_strongarm_tune): Likewise.
5906 (arm_xscale_tune): Likewise.
5907 (arm_9e_tune): Likewise.
5908 (arm_marvell_pj4_tune): Likewise.
5909 (arm_v6t2_tune): Likewise.
5910 (arm_cortex_tune): Likewise.
5911 (arm_cortex_a8_tune): Likewise.
5912 (arm_cortex_a7_tune): Likewise.
5913 (arm_cortex_a15_tune): Likewise.
5914 (arm_cortex_a53_tune): Likewise.
5915 (arm_cortex_a57_tune): Likewise.
5916 (arm_xgene1_tune): Likewise.
5917 (arm_cortex_a5_tune): Likewise.
5918 (arm_cortex_a9_tune): Likewise.
5919 (arm_cortex_a12_tune): Likewise.
5920 (arm_v7m_tune): Likewise.
5921 (arm_cortex_m7_tune): Likewise.
5922 (arm_v6m_tune): Likewise.
5923 (arm_fa726te_tune): Likewise.
5924
5925 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
5926
5927 * altivec.md: Delete UNSPEC_VMLADDUHM.
5928 (mulv4si3_p8): New pattern.
5929 (mulv4si3): Use it for POWER8.
5930 (mulv8hi3): Use vmladduhm with zero addend.
5931 (altivec_vmladduhm): Descriptive RTL.
5932
5933 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
5934
5935 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
5936 to use neon_move instead of mov_imm.
5937 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
5938 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
5939
5940 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
5941 aarch64_float_const_zero_rtx_p check before TFmode check.
5942 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
5943 an fp zero.
5944 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
5945 code and attributes to match. Change condition from register_operand
5946 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
5947 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
5948 to store2.
5949
5950 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
5951
5952 PR debug/66535
5953 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
5954 there is no parent.
5955
5956 2015-06-14 Shiva Chen <shiva0217@gmail.com>
5957
5958 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
5959 HOST_WIDE_INT parameter.
5960
5961 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
5962
5963 PR ipa/66181
5964 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
5965 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
5966 TYPE_NO_FORCE_BLK.
5967 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5968
5969 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
5970
5971 * rtl.h (classify_insn): Declare.
5972 * emit-rtl.c (classify_insn): Move to...
5973 * rtl.c: ...here and add generator support.
5974 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
5975 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
5976 * genemit.c (gen_emit_seq): New function.
5977 (gen_expand, gen_split): Use it.
5978
5979 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
5980
5981 * tree.c (make_vector_stat): Fix comment to state that the
5982 function returns a VECTOR_CST.
5983
5984 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
5985
5986 * gensupport.h (add_implicit_parallel): Declare.
5987 * genrecog.c (add_implicit_parallel): Move to...
5988 * gensupport.c (add_implicit_parallel): ...here.
5989 (process_one_cond_exec): Use it.
5990 * genemit.c (gen_insn): Likewise.
5991
5992 2015-06-13 Iain Sandoe <iain@codesourcery.com>
5993
5994 PR bootstrap/66448
5995 * passes.c (rest_of_decl_compilation): Do not register globals for
5996 early debug if they are declared in built-ins.
5997
5998 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
5999
6000 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6001
6002 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6003
6004 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6005 manually swapping.
6006 (noce_try_cmove_arith): Likewise.
6007 (noce_get_alt_condition): Likewise.
6008
6009 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6010
6011 * common/config/i386/i386-common.c
6012 (OPTION_MASK_ISA_MWAITX_SET): New.
6013 (ix86_handle_option): Handle mwaitx.
6014 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6015 (x86_64-*-*): Likewise.
6016 * config/i386/mwaitxintrin.h: New header.
6017 * config/i386/cpuid.h (bit_MWAITX): Define.
6018 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6019 MWAITX support.
6020 * config/i386/i386.opt (mwaitx): New.
6021 * config/i386/i386-builtin-types.def
6022 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6023 * config/i386/i386-c.c: Define __MWAITX__ if needed.
6024 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6025 (PTA_MWAITX): New.
6026 (ix86_option_override_internal): Handle new option.
6027 (processor_alias_table): Added PTA_MWAITX.
6028 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6029 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6030 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6031 IX86_BUILTIN_MONITORX built-ins.
6032 * config/i386/i386.h (TARGET_MWAITX): New.
6033 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6034 UNSPEC_MONITORX.
6035 (mwaitx): New pattern.
6036 (monitorx_<mode>): New pattern.
6037 * config/i386/x86intrin.h: Include mwaitxintrin.h.
6038 * doc/extend.texi: Document monitorx and mwaitx builtins.
6039 * doc/invoke.texi: Document -mmwaitx option.
6040
6041 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
6042
6043 * emit-rtl.c (need_atomic_barrier_p): Mask model with
6044 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
6045
6046 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6047
6048 * dbxout.c (xcoff_debug_hooks): Provide a function for
6049 register_main_translation_unit hook.
6050
6051 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6052
6053 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6054 variants cases from switch.
6055 (rs6000_post_atomic_barrier): Same.
6056 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6057 (rs6000_expand_atomic_exchange): Same.
6058 (rs6000_expand_atomic_op): Same.
6059 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6060 SYNC variants cases from switch.
6061 (atomic_load): Same.
6062 (atomic_store): Same.
6063
6064 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
6065
6066 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6067 CONST_INT for goto.
6068
6069 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
6070
6071 PR bootstrap/66448
6072 * dwarf2out.c (check_die): Check for common duplicate attributes.
6073 (add_location_or_const_value_attribute): Do not add duplicate
6074 attributes.
6075 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6076 time around.
6077 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6078 (gen_type_die_with_usage): Call check_die.
6079 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6080
6081 2015-06-11 Jason Merrill <jason@redhat.com>
6082
6083 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6084 dies.
6085
6086 2015-06-11 Marek Polacek <polacek@redhat.com>
6087
6088 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6089
6090 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
6091
6092 PR bootstrap/66252
6093 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6094 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6095 (*addx_extend_sp32): Fix pasto.
6096 (*subx_extend): Rename into...
6097 (*subx_extend_sp32): ...this.
6098 (*adddi3_extend_sp32): Add earlyclobber.
6099 (*subdi3_insn_sp32): Likewise.
6100 (*subdi3_extend_sp32): Likewise.
6101 (*and_not_di_sp32): Likewise.
6102 (*or_not_di_sp32): Likewise.
6103 (*xor_not_di_sp32): Likewise.
6104 (*negdi2_sp32): Likewise.
6105 (*one_cmpldi2_sp32): Likewise.
6106
6107 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
6108
6109 * debug.h (struct gcc_debug_hooks): Add a
6110 register_main_translation_unit hook.
6111 * debug.c (do_nothing_debug_hooks): Provide a function for this
6112 new hook.
6113 * dbxout.c (dbx_debug_hooks): Likewise.
6114 * sdbout.c (sdb_debug_hooks): Likewise.
6115 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6116 * dwarf2out.c (main_translation_unit): New global variable.
6117 (dwarf2out_register_main_translation_unit): New function
6118 implementing the new hook.
6119 (dwarf2_debug_hooks): Assign
6120 dwarf2out_register_main_translation_unit to this new hook.
6121 (dwarf2out_init): Associate any main translation unit to
6122 comp_unit_die ().
6123
6124 2015-06-11 Marek Polacek <polacek@redhat.com>
6125
6126 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6127
6128 2015-06-11 Marek Polacek <polacek@redhat.com>
6129
6130 * match.pd: Use single_use throughout.
6131
6132 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6133
6134 * config/arm/arm.c (arm_option_params_internal): When optimising
6135 for speed set max_insns_skipped when arm_restrict_it.
6136
6137 2015-06-11 Christian Bruel <christian.bruel@st.com>
6138
6139 PR target/52144
6140 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6141 macros in ...
6142 (arm_cpu_builtins): New function.
6143 (arm_pragma_target_parse): Call arm_cpu_builtins.
6144 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6145 (arm_register_target_pragmas): Likewise.
6146 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6147 Call arm_register_target_pragmas.
6148 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6149 (arm_pragma_target_parse): Likewise.
6150
6151 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
6152
6153 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6154 of the second operand.
6155
6156 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
6157
6158 PR target/66473
6159 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6160 to prepare mask operand for AVX512 modes.
6161
6162 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6163
6164 PR target/66474
6165 * doc/md.texi (Machine Constraints): Document that on the PowerPC
6166 if you use a constraint that targets a VSX register, you must use
6167 %x<n> in the template.
6168
6169 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
6170
6171 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6172 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6173 (define_insn "trap"): New definition.
6174
6175 2015-06-10 Richard Biener <rguenther@suse.de>
6176
6177 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6178 out from ...
6179 (vect_supported_load_permutation_p): ... here. Handle
6180 supportable permutations in reductions.
6181 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6182 for vectorizing strided group loads.
6183
6184 2015-06-10 Jakub Jelinek <jakub@redhat.com>
6185
6186 PR target/66470
6187 * config/i386/i386.c (ix86_split_long_move): For collisions
6188 involving direct tls segment refs, move the UNSPEC_TP possibly
6189 wrapped in ZERO_EXTEND out of the address for lea, to each of
6190 the memory loads.
6191
6192 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6193
6194 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6195 dmb sy. Adjust tabs.
6196
6197 2015-06-10 Tom de Vries <tom@codesourcery.com>
6198
6199 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6200
6201 2015-06-10 Martin Liska <mliska@suse.cz>
6202
6203 PR bootstrap/66471
6204 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6205 all enum values in mem_alloc_origin.
6206 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6207 name.
6208 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6209 * bitmap.c (bitmap_register): Likewise.
6210 (dump_bitmap_statistics): Likewise.
6211 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6212 (ggc_record_overhead): Likewise.
6213 * hash-map.h: Likewise.
6214 * hash-set.h: Likewise.
6215 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6216 * hash-table.h: Likewise.
6217 * vec.c (vec_prefix::register_overhead): Likewise.
6218 (vec_prefix::release_overhead): Likewise.
6219 (dump_vec_loc_statistics): Likewise.
6220
6221 2015-06-09 Christian Bruel <christian.bruel@st.com>
6222
6223 PR target/52144
6224 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6225 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6226 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6227 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6228 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6229 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6230 (arm_valid_target_attribute_p): Likewise.
6231 (arm_set_current_function, arm_can_inline_p): Likewise.
6232 (arm_valid_target_attribute_rec): Likewise.
6233 (arm_previous_fndecl): New variable.
6234 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6235 (TARGET_CAN_INLINE_P): Define.
6236 (arm_asm_trampoline_template): Emit mode.
6237 (arm_file_start): Don't set unified syntax.
6238 (arm_declare_function_name): Set unified syntax and mode.
6239 (arm_option_override): Init target_option_default_node.
6240 and target_option_current_node.
6241 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6242 (*call_symbol): Likewise.
6243 * doc/extend.texi: Document ARM/Thumb target attribute.
6244 * doc/invoke.texi: Likewise.
6245
6246 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6247
6248 Revert:
6249 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6250 PR rtl-optimization/64164
6251 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6252 * tree-ssa-copyrename.c: Removed.
6253 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6254 -ftree-coalesce-vars.
6255 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6256 * common.opt (ftree-copyrename): Ignore.
6257 (ftree-coalesce-inlined-vars): Likewise.
6258 * doc/invoke.texi: Remove the ignored options above.
6259 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6260 * tree-ssa-coalesce.h: ... here.
6261 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6262 headers required by it.
6263 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6264 across variables when flag_tree_coalesce_vars. Check register
6265 use and promoted modes to allow coalescing. Moved to
6266 tree-ssa-coalesce.c.
6267 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6268 with its member functions to tree-ssa-coalesce.c.
6269 (var_map_base_init): Likewise. Renamed to
6270 compute_samebase_partition_bases.
6271 (partition_view_normal): Drop want_bases parameter.
6272 (partition_view_bitmap): Likewise.
6273 * tree-ssa-live.h: Adjust declarations.
6274 * tree-ssa-coalesce.c: Include explow.h.
6275 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6276 default defs at the entry point.
6277 (dump_part_var_map): New.
6278 (compute_optimized_partition_bases): New, called by...
6279 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6280 of compute_samebase_partition_bases. Adjust.
6281 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6282 * cfgexpand.c (leader_merge): New.
6283 (get_rtl_for_parm_ssa_default_def): New.
6284 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6285 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6286 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6287 redundant MEM attr setting.
6288 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6289 from...
6290 (expand_one_stack_var): ... this. New wrapper to check and
6291 skip already expanded SSA partitions.
6292 (record_alignment_for_reg_var): New, factored out of...
6293 (expand_one_var): ... this.
6294 (expand_one_ssa_partition): New.
6295 (adjust_one_expanded_partition_var): New.
6296 (expand_one_register_var): Check and skip already expanded SSA
6297 partitions.
6298 (expand_used_vars): Don't create DECLs for anonymous SSA
6299 names. Expand all SSA partitions, then adjust all SSA names.
6300 (pass::execute): Replace the loops that set
6301 SA.partition_to_pseudo from partition leaders and cleared
6302 DECL_RTL for multi-location variables, and that which used to
6303 rename vars and set attrs, with one that clears DECL_RTL and
6304 checks that PARMs and RESULTs default_defs match DECL_RTL.
6305 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6306 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6307 * explow.c (promote_ssa_mode): New.
6308 * explow.h (promote_ssa_mode): Declare.
6309 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6310 * function.c: Include cfgexpand.h.
6311 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6312 (use_register_for_parm_decl): Wrapper for the above to
6313 special-case the result_ptr.
6314 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6315 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6316 multiple locations.
6317 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6318 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6319 (assign_parm_setup_block): Prefer SSA-assigned location.
6320 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6321 if stack_parm is NULL.
6322 (assign_parm_setup_stack): Prefer SSA-assigned location.
6323 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6324 rtl before testing for pointer bounds. Special-case result_ptr.
6325 (expand_function_start): Maybe reset DECL_RTL of result.
6326 Prefer SSA-assigned location for result and static chain.
6327 Factor out DECL_RESULT and SET_DECL_RTL.
6328 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6329 anonymous SSA names. Use promote_ssa_mode.
6330 (get_temp_reg): Likewise.
6331 (remove_ssa_form): Adjust.
6332 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6333 and get its reg_usage for reg invalidation.
6334 (compute_bb_dataflow): Pass it insn.
6335 (emit_notes_in_bb): Likewise.
6336 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6337 fail assert on conversion between unsigned types.
6338
6339 2015-06-09 Tom de Vries <tom@codesourcery.com>
6340
6341 PR tree-optimization/65460
6342 * omp-low.c (expand_omp_target): Set parallelized_function on
6343 cgraph_node for child_fn.
6344
6345 2015-06-09 Tom de Vries <tom@codesourcery.com>
6346
6347 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6348 parallelized_function before add_new_function.
6349
6350 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
6351
6352 * gcc-plugin.h: Move decls to plugin.h and include it.
6353 * plugin.h: Relocate decls from gcc-plugin.h
6354 * ggc-page.c: Include required header files.
6355 * passes.c: Likewise.
6356 * cgraphunit.c: Likewise.
6357
6358 2015-06-09 Tom de Vries <tom@codesourcery.com>
6359
6360 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6361
6362 2015-06-09 Jason Merrill <jason@redhat.com>
6363
6364 PR bootstrap/66448
6365 * toplev.c (check_global_declaration): Don't warn about a clone.
6366
6367 2015-06-09 Marek Polacek <polacek@redhat.com>
6368
6369 PR tree-optimization/66299
6370 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6371 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6372 patterns.
6373
6374 2015-06-09 Richard Biener <rguenther@suse.de>
6375
6376 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6377 (vect_analyze_slp_instance): Instead do not falsely drop
6378 load permutations.
6379
6380 2015-06-09 Richard Biener <rguenther@suse.de>
6381
6382 PR middle-end/66423
6383 * match.pd: Handle A % (unsigned)(1 << B).
6384
6385 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
6386
6387 * varasm.c (output_object_block_htab): Remove.
6388 (output_object_block_compare): New.
6389 (output_object_blocks): Sort named object_blocks before outputting
6390 them.
6391
6392 2015-06-09 Richard Biener <rguenther@suse.de>
6393
6394 PR tree-optimization/66419
6395 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6396 consider GROUP_GAP when detecting a perfect subchain.
6397
6398 2015-06-09 Nick Clifton <nickc@redhat.com>
6399
6400 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6401 place read only data in the .frodata section.
6402
6403 2015-06-09 Shiva Chen <shiva0217@gmail.com>
6404
6405 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6406 (atomic_store<mode>): Likewise.
6407
6408 2015-06-09 Richard Biener <rguenther@suse.de>
6409
6410 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6411
6412 2015-06-09 Richard Biener <rguenther@suse.de>
6413
6414 PR middle-end/66413
6415 * tree-inline.c (insert_init_debug_bind): Unshare value.
6416
6417 2015-06-09 Richard Biener <rguenther@suse.de>
6418
6419 PR tree-optimization/66396
6420 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6421 Rename virtual operands.
6422
6423 2015-06-09 Tom de Vries <tom@codesourcery.com>
6424
6425 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6426 always return false.
6427
6428 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6429
6430 PR rtl-optimization/64164
6431 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6432 * tree-ssa-copyrename.c: Removed.
6433 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6434 -ftree-coalesce-vars.
6435 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6436 * common.opt (ftree-copyrename): Ignore.
6437 (ftree-coalesce-inlined-vars): Likewise.
6438 * doc/invoke.texi: Remove the ignored options above.
6439 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6440 * tree-ssa-coalesce.h: ... here.
6441 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6442 headers required by it.
6443 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6444 across variables when flag_tree_coalesce_vars. Check register
6445 use and promoted modes to allow coalescing. Moved to
6446 tree-ssa-coalesce.c.
6447 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6448 with its member functions to tree-ssa-coalesce.c.
6449 (var_map_base_init): Likewise. Renamed to
6450 compute_samebase_partition_bases.
6451 (partition_view_normal): Drop want_bases parameter.
6452 (partition_view_bitmap): Likewise.
6453 * tree-ssa-live.h: Adjust declarations.
6454 * tree-ssa-coalesce.c: Include explow.h.
6455 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6456 default defs at the entry point.
6457 (dump_part_var_map): New.
6458 (compute_optimized_partition_bases): New, called by...
6459 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6460 of compute_samebase_partition_bases. Adjust.
6461 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6462 * cfgexpand.c (leader_merge): New.
6463 (get_rtl_for_parm_ssa_default_def): New.
6464 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6465 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6466 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6467 redundant MEM attr setting.
6468 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6469 from...
6470 (expand_one_stack_var): ... this. New wrapper to check and
6471 skip already expanded SSA partitions.
6472 (record_alignment_for_reg_var): New, factored out of...
6473 (expand_one_var): ... this.
6474 (expand_one_ssa_partition): New.
6475 (adjust_one_expanded_partition_var): New.
6476 (expand_one_register_var): Check and skip already expanded SSA
6477 partitions.
6478 (expand_used_vars): Don't create DECLs for anonymous SSA
6479 names. Expand all SSA partitions, then adjust all SSA names.
6480 (pass::execute): Replace the loops that set
6481 SA.partition_to_pseudo from partition leaders and cleared
6482 DECL_RTL for multi-location variables, and that which used to
6483 rename vars and set attrs, with one that clears DECL_RTL and
6484 checks that PARMs and RESULTs default_defs match DECL_RTL.
6485 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6486 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6487 * explow.c (promote_ssa_mode): New.
6488 * explow.h (promote_ssa_mode): Declare.
6489 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6490 * function.c: Include cfgexpand.h.
6491 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6492 (use_register_for_parm_decl): Wrapper for the above to
6493 special-case the result_ptr.
6494 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6495 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6496 multiple locations.
6497 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6498 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6499 (assign_parm_setup_block): Prefer SSA-assigned location.
6500 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6501 if stack_parm is NULL.
6502 (assign_parm_setup_stack): Prefer SSA-assigned location.
6503 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6504 rtl before testing for pointer bounds. Special-case result_ptr.
6505 (expand_function_start): Maybe reset DECL_RTL of result.
6506 Prefer SSA-assigned location for result and static chain.
6507 Factor out DECL_RESULT and SET_DECL_RTL.
6508 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6509 anonymous SSA names. Use promote_ssa_mode.
6510 (get_temp_reg): Likewise.
6511 (remove_ssa_form): Adjust.
6512 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6513 and get its reg_usage for reg invalidation.
6514 (compute_bb_dataflow): Pass it insn.
6515 (emit_notes_in_bb): Likewise.
6516 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6517 fail assert on conversion between unsigned types.
6518
6519 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6520
6521 PR debug/58315
6522 * tree-inline.c (reset_debug_binding): New.
6523 (reset_debug_bindings): Likewise.
6524 (expand_call_inline): Call it.
6525
6526 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6527
6528 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6529 TYPE_STRING_FLAG.
6530
6531 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6532
6533 * lto-streamer-out.c (lto_output_location): Stream
6534 reserved locations correctly.
6535 * lto-streamer-in.c (lto_output_location): Likewise.
6536
6537 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
6538
6539 * coretypes.h: Include hash-table.h and hash-set.h for host files.
6540 * ggc.h: Don't include statistics.h>
6541 * hash-map.h: Remove all includes.
6542 * hash-set.h: Likewise.
6543 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6544 the include list. Remove <new>.
6545 * inchash.h: Remove all includes.
6546 * mem-stats.h: Likewise.
6547 * vec.h: No special processing for generators or ggc.
6548 * alias.c : Adjust include files.
6549 * alloc-pool.c : Likewise.
6550 * alloc-pool.h : Likewise.
6551 * asan.c : Likewise.
6552 * attribs.c : Likewise.
6553 * auto-inc-dec.c : Likewise.
6554 * auto-profile.c : Likewise.
6555 * bb-reorder.c : Likewise.
6556 * bitmap.c : Likewise.
6557 * bitmap.h : Likewise.
6558 * bt-load.c : Likewise.
6559 * builtins.c : Likewise.
6560 * caller-save.c : Likewise.
6561 * calls.c : Likewise.
6562 * ccmp.c : Likewise.
6563 * cfg.c : Likewise.
6564 * cfganal.c : Likewise.
6565 * cfgbuild.c : Likewise.
6566 * cfgcleanup.c : Likewise.
6567 * cfgexpand.c : Likewise.
6568 * cfghooks.c : Likewise.
6569 * cfgloop.c : Likewise.
6570 * cfgloop.h : Likewise.
6571 * cfgloopanal.c : Likewise.
6572 * cfgloopmanip.c : Likewise.
6573 * cfgrtl.c : Likewise.
6574 * cgraph.c : Likewise.
6575 * cgraphbuild.c : Likewise.
6576 * cgraphclones.c : Likewise.
6577 * cgraphunit.c : Likewise.
6578 * cilk-common.c : Likewise.
6579 * combine-stack-adj.c : Likewise.
6580 * combine.c : Likewise.
6581 * compare-elim.c : Likewise.
6582 * context.c : Likewise.
6583 * convert.c : Likewise.
6584 * coverage.c : Likewise.
6585 * cppbuiltin.c : Likewise.
6586 * cprop.c : Likewise.
6587 * cse.c : Likewise.
6588 * cselib.c : Likewise.
6589 * data-streamer-in.c : Likewise.
6590 * data-streamer-out.c : Likewise.
6591 * data-streamer.c : Likewise.
6592 * data-streamer.h : Likewise.
6593 * dbxout.c : Likewise.
6594 * dce.c : Likewise.
6595 * ddg.c : Likewise.
6596 * debug.c : Likewise.
6597 * df-core.c : Likewise.
6598 * df-problems.c : Likewise.
6599 * df-scan.c : Likewise.
6600 * df.h : Likewise.
6601 * dfp.c : Likewise.
6602 * dojump.c : Likewise.
6603 * dominance.c : Likewise.
6604 * domwalk.c : Likewise.
6605 * double-int.c : Likewise.
6606 * dse.c : Likewise.
6607 * dumpfile.c : Likewise.
6608 * dwarf2asm.c : Likewise.
6609 * dwarf2cfi.c : Likewise.
6610 * dwarf2out.c : Likewise.
6611 * emit-rtl.c : Likewise.
6612 * et-forest.c : Likewise.
6613 * except.c : Likewise.
6614 * except.h : Likewise.
6615 * explow.c : Likewise.
6616 * expmed.c : Likewise.
6617 * expr.c : Likewise.
6618 * final.c : Likewise.
6619 * fixed-value.c : Likewise.
6620 * fold-const.c : Likewise.
6621 * function.c : Likewise.
6622 * fwprop.c : Likewise.
6623 * gcc-plugin.h : Likewise.
6624 * gcc.c : Likewise.
6625 * gcse-common.c : Likewise.
6626 * gcse.c : Likewise.
6627 * genattrtab.c : Likewise.
6628 * genautomata.c : Likewise.
6629 * genconditions.c : Likewise.
6630 * genemit.c : Likewise.
6631 * generic-match-head.c : Likewise.
6632 * genextract.c : Likewise.
6633 * gengtype-state.c : Likewise.
6634 * gengtype.c : Likewise.
6635 * genhooks.c : Likewise.
6636 * genmatch.c : Likewise.
6637 * genmodes.c : Likewise.
6638 * genrecog.c : Likewise.
6639 * gensupport.c : Likewise.
6640 * ggc-common.c : Likewise.
6641 * ggc-internal.h : Likewise.
6642 * ggc-none.c : Likewise.
6643 * ggc-page.c : Likewise.
6644 * gimple-builder.c : Likewise.
6645 * gimple-expr.c : Likewise.
6646 * gimple-fold.c : Likewise.
6647 * gimple-iterator.c : Likewise.
6648 * gimple-low.c : Likewise.
6649 * gimple-match-head.c : Likewise.
6650 * gimple-pretty-print.c : Likewise.
6651 * gimple-ssa-isolate-paths.c : Likewise.
6652 * gimple-ssa-strength-reduction.c : Likewise.
6653 * gimple-ssa.h : Likewise.
6654 * gimple-streamer-in.c : Likewise.
6655 * gimple-streamer-out.c : Likewise.
6656 * gimple-streamer.h : Likewise.
6657 * gimple-walk.c : Likewise.
6658 * gimple.c : Likewise.
6659 * gimplify-me.c : Likewise.
6660 * gimplify.c : Likewise.
6661 * godump.c : Likewise.
6662 * graph.c : Likewise.
6663 * graphds.c : Likewise.
6664 * graphite-blocking.c : Likewise.
6665 * graphite-dependences.c : Likewise.
6666 * graphite-interchange.c : Likewise.
6667 * graphite-isl-ast-to-gimple.c : Likewise.
6668 * graphite-optimize-isl.c : Likewise.
6669 * graphite-poly.c : Likewise.
6670 * graphite-scop-detection.c : Likewise.
6671 * graphite-sese-to-poly.c : Likewise.
6672 * graphite.c : Likewise.
6673 * haifa-sched.c : Likewise.
6674 * hard-reg-set.h : Likewise.
6675 * hw-doloop.c : Likewise.
6676 * ifcvt.c : Likewise.
6677 * inchash.c : Likewise.
6678 * incpath.c : Likewise.
6679 * init-regs.c : Likewise.
6680 * input.c : Likewise.
6681 * internal-fn.c : Likewise.
6682 * ipa-chkp.c : Likewise.
6683 * ipa-comdats.c : Likewise.
6684 * ipa-cp.c : Likewise.
6685 * ipa-devirt.c : Likewise.
6686 * ipa-icf-gimple.c : Likewise.
6687 * ipa-icf.c : Likewise.
6688 * ipa-inline-analysis.c : Likewise.
6689 * ipa-inline-transform.c : Likewise.
6690 * ipa-inline.c : Likewise.
6691 * ipa-polymorphic-call.c : Likewise.
6692 * ipa-profile.c : Likewise.
6693 * ipa-prop.c : Likewise.
6694 * ipa-pure-const.c : Likewise.
6695 * ipa-ref.c : Likewise.
6696 * ipa-reference.c : Likewise.
6697 * ipa-split.c : Likewise.
6698 * ipa-utils.c : Likewise.
6699 * ipa-visibility.c : Likewise.
6700 * ipa.c : Likewise.
6701 * ira-build.c : Likewise.
6702 * ira-color.c : Likewise.
6703 * ira-conflicts.c : Likewise.
6704 * ira-costs.c : Likewise.
6705 * ira-emit.c : Likewise.
6706 * ira-lives.c : Likewise.
6707 * ira.c : Likewise.
6708 * jump.c : Likewise.
6709 * langhooks.c : Likewise.
6710 * lcm.c : Likewise.
6711 * libfuncs.h : Likewise.
6712 * lists.c : Likewise.
6713 * loop-doloop.c : Likewise.
6714 * loop-init.c : Likewise.
6715 * loop-invariant.c : Likewise.
6716 * loop-iv.c : Likewise.
6717 * loop-unroll.c : Likewise.
6718 * lower-subreg.c : Likewise.
6719 * lra-assigns.c : Likewise.
6720 * lra-coalesce.c : Likewise.
6721 * lra-constraints.c : Likewise.
6722 * lra-eliminations.c : Likewise.
6723 * lra-lives.c : Likewise.
6724 * lra-remat.c : Likewise.
6725 * lra-spills.c : Likewise.
6726 * lra.c : Likewise.
6727 * lto-cgraph.c : Likewise.
6728 * lto-compress.c : Likewise.
6729 * lto-opts.c : Likewise.
6730 * lto-section-in.c : Likewise.
6731 * lto-section-out.c : Likewise.
6732 * lto-streamer-in.c : Likewise.
6733 * lto-streamer-out.c : Likewise.
6734 * lto-streamer.c : Likewise.
6735 * lto-streamer.h : Likewise.
6736 * mcf.c : Likewise.
6737 * mode-switching.c : Likewise.
6738 * modulo-sched.c : Likewise.
6739 * omega.c : Likewise.
6740 * omp-low.c : Likewise.
6741 * optabs.c : Likewise.
6742 * opts-global.c : Likewise.
6743 * opts.h : Likewise.
6744 * passes.c : Likewise.
6745 * plugin.c : Likewise.
6746 * postreload-gcse.c : Likewise.
6747 * postreload.c : Likewise.
6748 * predict.c : Likewise.
6749 * print-rtl.c : Likewise.
6750 * print-tree.c : Likewise.
6751 * profile.c : Likewise.
6752 * read-md.c : Likewise.
6753 * read-md.h : Likewise.
6754 * read-rtl.c : Likewise.
6755 * real.c : Likewise.
6756 * realmpfr.c : Likewise.
6757 * recog.c : Likewise.
6758 * ree.c : Likewise.
6759 * reg-stack.c : Likewise.
6760 * regcprop.c : Likewise.
6761 * reginfo.c : Likewise.
6762 * regrename.c : Likewise.
6763 * regstat.c : Likewise.
6764 * reload.c : Likewise.
6765 * reload1.c : Likewise.
6766 * reorg.c : Likewise.
6767 * resource.c : Likewise.
6768 * rtl-chkp.c : Likewise.
6769 * rtl.c : Likewise.
6770 * rtl.h : Likewise.
6771 * rtlanal.c : Likewise.
6772 * rtlhash.c : Likewise.
6773 * rtlhash.h : Likewise.
6774 * rtlhooks.c : Likewise.
6775 * sanopt.c : Likewise.
6776 * sched-deps.c : Likewise.
6777 * sched-ebb.c : Likewise.
6778 * sched-rgn.c : Likewise.
6779 * sched-vis.c : Likewise.
6780 * sdbout.c : Likewise.
6781 * sel-sched-dump.c : Likewise.
6782 * sel-sched-ir.c : Likewise.
6783 * sel-sched-ir.h : Likewise.
6784 * sel-sched.c : Likewise.
6785 * sese.c : Likewise.
6786 * shrink-wrap.c : Likewise.
6787 * shrink-wrap.h : Likewise.
6788 * simplify-rtx.c : Likewise.
6789 * stack-ptr-mod.c : Likewise.
6790 * statistics.c : Likewise.
6791 * stmt.c : Likewise.
6792 * stor-layout.c : Likewise.
6793 * store-motion.c : Likewise.
6794 * stringpool.c : Likewise.
6795 * symtab.c : Likewise.
6796 * target-globals.c : Likewise.
6797 * targhooks.c : Likewise.
6798 * tlink.c : Likewise.
6799 * toplev.c : Likewise.
6800 * tracer.c : Likewise.
6801 * trans-mem.c : Likewise.
6802 * tree-affine.c : Likewise.
6803 * tree-affine.h : Likewise.
6804 * tree-browser.c : Likewise.
6805 * tree-call-cdce.c : Likewise.
6806 * tree-cfg.c : Likewise.
6807 * tree-cfgcleanup.c : Likewise.
6808 * tree-chkp-opt.c : Likewise.
6809 * tree-chkp.c : Likewise.
6810 * tree-chrec.c : Likewise.
6811 * tree-complex.c : Likewise.
6812 * tree-data-ref.c : Likewise.
6813 * tree-dfa.c : Likewise.
6814 * tree-diagnostic.c : Likewise.
6815 * tree-dump.c : Likewise.
6816 * tree-eh.c : Likewise.
6817 * tree-eh.h : Likewise.
6818 * tree-emutls.c : Likewise.
6819 * tree-hasher.h : Likewise.
6820 * tree-if-conv.c : Likewise.
6821 * tree-inline.c : Likewise.
6822 * tree-inline.h : Likewise.
6823 * tree-into-ssa.c : Likewise.
6824 * tree-iterator.c : Likewise.
6825 * tree-loop-distribution.c : Likewise.
6826 * tree-nested.c : Likewise.
6827 * tree-nrv.c : Likewise.
6828 * tree-object-size.c : Likewise.
6829 * tree-outof-ssa.c : Likewise.
6830 * tree-parloops.c : Likewise.
6831 * tree-phinodes.c : Likewise.
6832 * tree-predcom.c : Likewise.
6833 * tree-pretty-print.c : Likewise.
6834 * tree-profile.c : Likewise.
6835 * tree-scalar-evolution.c : Likewise.
6836 * tree-sra.c : Likewise.
6837 * tree-ssa-address.c : Likewise.
6838 * tree-ssa-alias.c : Likewise.
6839 * tree-ssa-ccp.c : Likewise.
6840 * tree-ssa-coalesce.c : Likewise.
6841 * tree-ssa-copy.c : Likewise.
6842 * tree-ssa-copyrename.c : Likewise.
6843 * tree-ssa-dce.c : Likewise.
6844 * tree-ssa-dom.c : Likewise.
6845 * tree-ssa-dse.c : Likewise.
6846 * tree-ssa-forwprop.c : Likewise.
6847 * tree-ssa-ifcombine.c : Likewise.
6848 * tree-ssa-live.c : Likewise.
6849 * tree-ssa-loop-ch.c : Likewise.
6850 * tree-ssa-loop-im.c : Likewise.
6851 * tree-ssa-loop-ivcanon.c : Likewise.
6852 * tree-ssa-loop-ivopts.c : Likewise.
6853 * tree-ssa-loop-manip.c : Likewise.
6854 * tree-ssa-loop-niter.c : Likewise.
6855 * tree-ssa-loop-prefetch.c : Likewise.
6856 * tree-ssa-loop-unswitch.c : Likewise.
6857 * tree-ssa-loop.c : Likewise.
6858 * tree-ssa-math-opts.c : Likewise.
6859 * tree-ssa-operands.c : Likewise.
6860 * tree-ssa-phiopt.c : Likewise.
6861 * tree-ssa-phiprop.c : Likewise.
6862 * tree-ssa-pre.c : Likewise.
6863 * tree-ssa-propagate.c : Likewise.
6864 * tree-ssa-reassoc.c : Likewise.
6865 * tree-ssa-sccvn.c : Likewise.
6866 * tree-ssa-scopedtables.c : Likewise.
6867 * tree-ssa-sink.c : Likewise.
6868 * tree-ssa-strlen.c : Likewise.
6869 * tree-ssa-structalias.c : Likewise.
6870 * tree-ssa-tail-merge.c : Likewise.
6871 * tree-ssa-ter.c : Likewise.
6872 * tree-ssa-threadedge.c : Likewise.
6873 * tree-ssa-threadupdate.c : Likewise.
6874 * tree-ssa-uncprop.c : Likewise.
6875 * tree-ssa-uninit.c : Likewise.
6876 * tree-ssa.c : Likewise.
6877 * tree-ssanames.c : Likewise.
6878 * tree-stdarg.c : Likewise.
6879 * tree-streamer-in.c : Likewise.
6880 * tree-streamer-out.c : Likewise.
6881 * tree-streamer.c : Likewise.
6882 * tree-streamer.h : Likewise.
6883 * tree-switch-conversion.c : Likewise.
6884 * tree-tailcall.c : Likewise.
6885 * tree-vect-data-refs.c : Likewise.
6886 * tree-vect-generic.c : Likewise.
6887 * tree-vect-loop-manip.c : Likewise.
6888 * tree-vect-loop.c : Likewise.
6889 * tree-vect-patterns.c : Likewise.
6890 * tree-vect-slp.c : Likewise.
6891 * tree-vect-stmts.c : Likewise.
6892 * tree-vectorizer.c : Likewise.
6893 * tree-vectorizer.h : Likewise.
6894 * tree-vrp.c : Likewise.
6895 * tree.c : Likewise.
6896 * tsan.c : Likewise.
6897 * ubsan.c : Likewise.
6898 * valtrack.c : Likewise.
6899 * valtrack.h : Likewise.
6900 * value-prof.c : Likewise.
6901 * var-tracking.c : Likewise.
6902 * varasm.c : Likewise.
6903 * varpool.c : Likewise.
6904 * vec.c: Likewise.
6905 * vmsdbgout.c : Likewise.
6906 * vtable-verify.c : Likewise.
6907 * vtable-verify.h : Likewise.
6908 * web.c : Likewise.
6909 * wide-int.cc : Likewise.
6910 * xcoffout.c : Likewise.
6911 * config/aarch64/aarch64-builtins.c : Likewise.
6912 * config/aarch64/aarch64.c : Likewise.
6913 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
6914 * config/alpha/alpha.c : Likewise.
6915 * config/arc/arc.c : Likewise.
6916 * config/arm/aarch-common.c : Likewise.
6917 * config/arm/arm-builtins.c : Likewise.
6918 * config/arm/arm-c.c : Likewise.
6919 * config/arm/arm.c : Likewise.
6920 * config/avr/avr-c.c : Likewise.
6921 * config/avr/avr-log.c : Likewise.
6922 * config/avr/avr.c : Likewise.
6923 * config/bfin/bfin.c : Likewise.
6924 * config/c6x/c6x.c : Likewise.
6925 * config/cr16/cr16.c : Likewise.
6926 * config/cris/cris.c : Likewise.
6927 * config/darwin-c.c : Likewise.
6928 * config/darwin.c : Likewise.
6929 * config/default-c.c : Likewise.
6930 * config/epiphany/epiphany.c : Likewise.
6931 * config/epiphany/mode-switch-use.c : Likewise.
6932 * config/epiphany/resolve-sw-modes.c : Likewise.
6933 * config/fr30/fr30.c : Likewise.
6934 * config/frv/frv.c : Likewise.
6935 * config/ft32/ft32.c : Likewise.
6936 * config/glibc-c.c : Likewise.
6937 * config/h8300/h8300.c : Likewise.
6938 * config/i386/i386-c.c : Likewise.
6939 * config/i386/i386.c : Likewise.
6940 * config/i386/msformat-c.c : Likewise.
6941 * config/i386/winnt-cxx.c : Likewise.
6942 * config/i386/winnt-stubs.c : Likewise.
6943 * config/i386/winnt.c : Likewise.
6944 * config/ia64/ia64-c.c : Likewise.
6945 * config/ia64/ia64.c : Likewise.
6946 * config/iq2000/iq2000.c : Likewise.
6947 * config/lm32/lm32.c : Likewise.
6948 * config/m32c/m32c-pragma.c : Likewise.
6949 * config/m32c/m32c.c : Likewise.
6950 * config/m32r/m32r.c : Likewise.
6951 * config/m68k/m68k.c : Likewise.
6952 * config/mcore/mcore.c : Likewise.
6953 * config/mep/mep-pragma.c : Likewise.
6954 * config/mep/mep.c : Likewise.
6955 * config/microblaze/microblaze-c.c : Likewise.
6956 * config/microblaze/microblaze.c : Likewise.
6957 * config/mips/mips.c : Likewise.
6958 * config/mmix/mmix.c : Likewise.
6959 * config/mn10300/mn10300.c : Likewise.
6960 * config/moxie/moxie.c : Likewise.
6961 * config/msp430/msp430-c.c : Likewise.
6962 * config/msp430/msp430.c : Likewise.
6963 * config/nds32/nds32-cost.c : Likewise.
6964 * config/nds32/nds32-fp-as-gp.c : Likewise.
6965 * config/nds32/nds32-intrinsic.c : Likewise.
6966 * config/nds32/nds32-isr.c : Likewise.
6967 * config/nds32/nds32-md-auxiliary.c : Likewise.
6968 * config/nds32/nds32-memory-manipulation.c : Likewise.
6969 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
6970 * config/nds32/nds32-predicates.c : Likewise.
6971 * config/nds32/nds32.c : Likewise.
6972 * config/nios2/nios2.c : Likewise.
6973 * config/nvptx/nvptx.c : Likewise.
6974 * config/pa/pa.c : Likewise.
6975 * config/pdp11/pdp11.c : Likewise.
6976 * config/rl78/rl78-c.c : Likewise.
6977 * config/rl78/rl78.c : Likewise.
6978 * config/rs6000/rs6000-c.c : Likewise.
6979 * config/rs6000/rs6000.c : Likewise.
6980 * config/rx/rx.c : Likewise.
6981 * config/s390/s390-c.c : Likewise.
6982 * config/s390/s390.c : Likewise.
6983 * config/sh/sh-c.c : Likewise.
6984 * config/sh/sh-mem.cc : Likewise.
6985 * config/sh/sh.c : Likewise.
6986 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
6987 * config/sh/sh_treg_combine.cc : Likewise.
6988 * config/sol2-c.c : Likewise.
6989 * config/sol2-cxx.c : Likewise.
6990 * config/sol2-stubs.c : Likewise.
6991 * config/sol2.c : Likewise.
6992 * config/sparc/sparc-c.c : Likewise.
6993 * config/sparc/sparc.c : Likewise.
6994 * config/spu/spu-c.c : Likewise.
6995 * config/spu/spu.c : Likewise.
6996 * config/stormy16/stormy16.c : Likewise.
6997 * config/tilegx/mul-tables.c : Likewise.
6998 * config/tilegx/tilegx-c.c : Likewise.
6999 * config/tilegx/tilegx.c : Likewise.
7000 * config/tilepro/mul-tables.c : Likewise.
7001 * config/tilepro/tilepro-c.c : Likewise.
7002 * config/tilepro/tilepro.c : Likewise.
7003 * config/v850/v850-c.c : Likewise.
7004 * config/v850/v850.c : Likewise.
7005 * config/vax/vax.c : Likewise.
7006 * config/visium/visium.c : Likewise.
7007 * config/vms/vms-c.c : Likewise.
7008 * config/vms/vms.c : Likewise.
7009 * config/vxworks.c : Likewise.
7010 * config/winnt-c.c : Likewise.
7011 * config/xtensa/xtensa.c : Likewise.
7012
7013 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7014
7015 PR lto/65378
7016 * ipa-utils.h (warn_types_mismatch): Update prototype.
7017 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7018 parameters.
7019 (type_mismatch_p): New function.
7020 (warn_types_mismatch): Reorg to work better on non-C++ types.
7021 (odr_types_equivalent_p): Add loc1/loc2 parameters.
7022 (add_type_duplicate): Update.
7023
7024 2015-06-08 Tom de Vries <tom@codesourcery.com>
7025
7026 PR rtl-optimization/66444
7027 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7028 call_used_regs.
7029
7030 2015-06-08 Richard Biener <rguenther@suse.de>
7031
7032 PR tree-optimization/66422
7033 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7034 block after inserted gcc_unreachable.
7035
7036 2015-06-08 Nick Clifton <nickc@redhat.com>
7037
7038 * config/rx/rx.c (rx_function_value): Do not promote vector types.
7039 (rx_promote_function_mode): Likewise.
7040 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7041
7042 2015-06-08 Jakub Jelinek <jakub@redhat.com>
7043
7044 * genattrtab.c (insn_alternatives): Change type from int *
7045 to uint64_t *.
7046 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7047 (get_attr_value): Change type of num_alt to uint64_t.
7048 (compute_alternative_mask): Change return type from
7049 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7050 (make_alternative_compare, mk_attr_alt): Change argument type
7051 from int to uint64_t.
7052 (simplify_test_exp): Change type of i from int to uint64_t.
7053 Shift ((uint64_t) 1) instead of 1 up.
7054 (main): Adjust oballocvec first argument from int to uint64_t.
7055 Shift ((uint64_t) 1) instead of 1 up.
7056
7057 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7058
7059 PR other/65366
7060 * gdbhooks.py: Import sys.
7061 (intptr): New function. Replace int(...) by intptr(...).
7062
7063 2015-06-08 Richard Biener <rguenther@suse.de>
7064
7065 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7066 adjustment for gaps at the end of a SLP load group properly.
7067 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7068 all permutations we can generate.
7069 (vect_transform_slp_perm_load): Use the correct group-size.
7070
7071 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
7072
7073 * genmatch.c (expr::gen_transform): For conditions, guess the type
7074 from the second operand.
7075
7076 2015-06-08 Tom de Vries <tom@codesourcery.com>
7077
7078 PR tree-optimization/66442
7079 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7080 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7081 if the loop latch is not a singleton. Use
7082 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7083
7084 2015-06-08 Marek Polacek <polacek@redhat.com>
7085
7086 PR sanitizer/66452
7087 * toplev.c (check_global_declaration): Don't warn about artificial
7088 decls.
7089
7090 2015-06-08 Tom de Vries <tom@codesourcery.com>
7091
7092 PR tree-optimization/66436
7093 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7094 dump file.
7095 * gimplify.c: Add tree-dump.h include.
7096 (gimplify_function_tree): Dump function to gimple dump file.
7097 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7098 dump file.
7099
7100 2015-06-08 Tom de Vries <tom@codesourcery.com>
7101
7102 PR tree-optimization/66435
7103 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7104 function.
7105
7106 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
7107
7108 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7109 of ptr_type_node to not be ptr_to_node.
7110 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7111 TREE_TYPE of pointers.
7112 * gimple-expr.c (useless_type_conversion): Reorder the check for
7113 function pointers and TYPE_CANONICAL.
7114
7115 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
7116
7117 PR bootstrap/66319
7118 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7119 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7120 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7121 later.
7122 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7123 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7124 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7125 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7126 and non iso if unix2003.
7127
7128 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
7129
7130 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7131
7132 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
7133
7134 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7135 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7136 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7137 except.c, final.c, function.c, gcse-common.c, genemit.c,
7138 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7139 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7140 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7141 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7142 more derived ones.
7143
7144 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
7145
7146 * combine.c (combine_split_insns): Remove cast.
7147 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7148 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7149 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7150 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7151 * genemit.c (gen_split): Change return type of generated functions to
7152 rtx_insn.
7153 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7154 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7155 gen_peephole2_* functions.
7156 (print_subroutine, main): Likewise.
7157 * recog.c (peephole2_optimize): Remove cast.
7158 (peep2_next_insn): Promote return type to rtx_insn.
7159 * recog.h (peep2_next_insn): Fix prototype.
7160 * rtl.h (try_split, split_insns): Likewise.
7161
7162 2015-06-06 DJ Delorie <dj@redhat.com>
7163
7164 * config/msp430/msp430.c (msp430_asm_integer): Support addition
7165 and subtraction too.
7166
7167 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
7168
7169 PR target/66410
7170 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7171 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7172 instead of Snd. Disparage Sid/z alternative with '^'.
7173
7174 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7175
7176 * dwarf2out.c: Remove deferred_locations*.
7177 (dwarf2_debug_hooks): Add early_finish hook.
7178 Remove global_decl hook.
7179 Add early_global_decl and late_global_decl hook.
7180 New global early_dwarf.
7181 New structure set_early_dwarf.
7182 (output_die): Indicate whether a DIE was generated early
7183 when generating assembly with -dA.
7184 (struct limbo_die_struct): Document created_for field.
7185 Remove file_table_last_lookup.
7186 (remove_AT): Return TRUE if successful.
7187 (remove_child_TAG): Clear die_parent.
7188 (reparent_child): New function abstracted from...
7189 (splice_child_die): ...here.
7190 (new_die): ICE if a DIE ends up in limbo too late.
7191 (check_die): New.
7192 (defer_location): Remove.
7193 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7194 (fill_variable_array_bounds): New.
7195 (decl_start_label): Call fill_variable_array_bounds.
7196 (gen_formal_parameter_die): Rewrite to reuse previously generated
7197 DIEs.
7198 (gen_subprogram_die): Same.
7199 (gen_variable_die): Same.
7200 (gen_const_die): Same.
7201 (gen_label_die): Same.
7202 (gen_lexical_block_die): Same.
7203 (decl_will_get_specification_p): New.
7204 (local_function_static): New.
7205 (gen_struct_or_union_type_die): Fill in variable-length fields.
7206 (gen_typedef_die): Fill in variable-length typedefs.
7207 (gen_tagged_type_die): Gracefully return on error_mark_node.
7208 Handle re-entrancy.
7209 (gen_type_die_with_usage): Handle variable-length types.
7210 Remove duplicate code for ARRAY_TYPE case.
7211 (process_scope_var): Only process imported modules during early
7212 dwarf.
7213 (dwarf2out_early_global_decl): New.
7214 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7215 (dwarf2out_type_decl): Set early_dwarf while calling
7216 dwarf2out_decl.
7217 (dwarf2out_decl): Verify that we did not recreate a previously
7218 generated DIE.
7219 Do not return on DECL_EXTERNALs in VAR_DECLs.
7220 Abstract some code to local_function_static.
7221 (lookup_filename): Remove use of file_table_last_lookup.
7222 Gracefully exit on missing file_name.
7223 (dwarf2out_finish): Verify limbo list.
7224 Remove deferred_locations_list use.
7225 Move deferred_asm_name and limbo flushing to...
7226 (dwarf2out_early_finish): ...here. New.
7227 (dwarf2out_c_finalize): Remove set of deferred_location_list,
7228 deferred_asm_name, and file_table_last_lookup.
7229 * cgraph.h (referred_to_p): Add default argument.
7230 * cgraphunit.c (referred_to_p): Add and handle include_self
7231 argument.
7232 (analyze_functions): Add first_time argument.
7233 Call check_global_declaration for all symbols.
7234 Call late_global_decl for nodes for moribund nodes.
7235 (finalize_compilation_unit): Add new argument to
7236 analyze_functions.
7237 Call early_global_decl for functions.
7238 Call early_finish debug hook.
7239 * dbxout.c (dbxout_early_global_decl): New.
7240 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
7241 (dbx_debug_hooks): Add new hooks.
7242 (xcoff_debug_hooks): Same.
7243 * debug.c (do_nothing_debug_hooks): Add early_finish field.
7244 Add early and late debug hooks.
7245 Remove global_decl hook.
7246 * debug.h (struct gcc_debug_hooks): Add early_finish,
7247 early_global_decl, and late_global_decl fields.
7248 Remove global_decl field.
7249 Document gcc_debug_hooks.
7250 * gengtype.c (output_typename): Remove.
7251 * godump.c (go_early_global_decl): New.
7252 (go_late_global_decl): New.
7253 (go_global_decl): Remove.
7254 (dump_go_spec_init): Remove global_decl. Add
7255 {early,late}_global_decl.
7256 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7257 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7258 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7259 (write_global_declarations): Remove.
7260 (global_decl_processing): New.
7261 * langhooks.h (struct lang_hooks_for_decls): Remove
7262 final_write_globals field.
7263 Add post_compilation_parsing_cleanups field.
7264 * passes.c (rest_of_decl_compilation): Call early_global_decl.
7265 * sdbout.c: Add early and late_global_decl hooks. Remove
7266 sdbout_global_decl hook.
7267 Add early_finish field for sdb_debug_hooks.
7268 (sdbout_global_decl): Remove.
7269 (sdbout_early_global_decl): New.
7270 (sdbout_late_global_decl): New.
7271 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7272 * toplev.c (check_global_declaration): Rename from
7273 check_global_declaration_1.
7274 Adapt to use symtab infrastructure.
7275 (check_global_declarations): Remove.
7276 (emit_debug_global_declarations): Remove.
7277 (compile_file): Remove call to final_write_globals langhook.
7278 Run the actual compilation process.
7279 Perform any post compilation parser cleanups.
7280 Generate late debug info.
7281 * toplev.h (check_global_declaration): New.
7282 (check_global_declaration_1): Remove.
7283 (check_global_declarations): Remove.
7284 (write_global_declarations): Remove.
7285 (emit_debug_global_declarations): Remove.
7286 (global_decl_processing): New.
7287 * tree-core.h (struct tree_block): Add DIE field.
7288 * tree.h (BLOCK_DIE): New.
7289 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7290 throughout.
7291 (vmsdbgout_early_global_decl): New.
7292 (vmsdbgout_late_global_decl): New.
7293 Add early_finish debug hook field to vmsdbg_debug_hooks.
7294 Remove vmsdbgout_decl to vmsdbgout_function_decl.
7295 Add early and late_global_decl debug hooks.
7296
7297 2015-06-05 Julian Brown <julian@codesourcery.com>
7298 Sandra Loosemore <sandra@codesourcery.com>
7299
7300 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7301 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7302 to print-sysroot-suffix.sh script.
7303
7304 2015-06-05 Tom de Vries <tom@codesourcery.com>
7305
7306 merge from gomp4 branch:
7307 2015-05-28 Tom de Vries <tom@codesourcery.com>
7308
7309 PR tree-optimization/65443
7310 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7311 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7312 (try_transform_to_exit_first_loop_alt): New function.
7313 (transform_to_exit_first_loop): Use
7314 try_transform_to_exit_first_loop_alt.
7315
7316 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
7317
7318 * builtins.c (expand_builtin_atomic_compare_exchange): Call
7319 emit_cmp_and_jump_insns with the mode of target.
7320
7321 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7322
7323 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7324
7325 2015-06-04 DJ Delorie <dj@redhat.com>
7326
7327 * config/msp430/msp430.md (movsi_s): New. Special case for
7328 storing a 20-bit symbol into a 32-bit register.
7329 * config/msp430/msp430.c (msp430_subreg): Add support for it.
7330 * config/msp430/predicates.md (msp430_symbol_operand): New.
7331
7332 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7333
7334 * c-family/c-common.c (noplt): New attribute.
7335 (handle_noplt_attribute): New handler.
7336 * calls.c (prepare_call_address): Check for noplt
7337 attribute.
7338 * config/i386/i386.c (ix86_expand_call): Check
7339 for noplt attribute.
7340 (ix86_nopic_noplt_attribute_p): New function.
7341 (ix86_output_call_insn): Output indirect call for non-pic
7342 no plt calls.
7343 * doc/extend.texi (noplt): Document new attribute.
7344 * doc/invoke.texi: Document new attribute.
7345
7346 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7347
7348 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7349 real.h, and fixed-value.h when included in host source files.
7350 * double-int.h: Remove redundant #includes listed above.
7351 * fixed-value.h: Likewise.
7352 * real.h: Likewise.
7353 * wide-int.h: Likewise.
7354 * inchash.h: Likewise.
7355 * rtl.h: Add some include files When included from a generator file.
7356 * target.h: Remove wide-int.h and insn-modes.h from the include list.
7357 * internal-fn.h: Don't include coretypes.h.
7358 * alias.c: Adjust includes for restructured coretypes.h.
7359 * asan.c: Likewise.
7360 * attribs.c: Likewise.
7361 * auto-inc-dec.c: Likewise.
7362 * auto-profile.c: Likewise.
7363 * bb-reorder.c: Likewise.
7364 * bt-load.c: Likewise.
7365 * builtins.c: Likewise.
7366 * caller-save.c: Likewise.
7367 * calls.c: Likewise.
7368 * ccmp.c: Likewise.
7369 * cfg.c: Likewise.
7370 * cfganal.c: Likewise.
7371 * cfgbuild.c: Likewise.
7372 * cfgcleanup.c: Likewise.
7373 * cfgexpand.c: Likewise.
7374 * cfghooks.c: Likewise.
7375 * cfgloop.c: Likewise.
7376 * cfgloop.h: Likewise.
7377 * cfgloopanal.c: Likewise.
7378 * cfgloopmanip.c: Likewise.
7379 * cfgrtl.c: Likewise.
7380 * cgraph.c: Likewise.
7381 * cgraphbuild.c: Likewise.
7382 * cgraphclones.c: Likewise.
7383 * cgraphunit.c: Likewise.
7384 * cilk-common.c: Likewise.
7385 * combine-stack-adj.c: Likewise.
7386 * combine.c: Likewise.
7387 * compare-elim.c: Likewise.
7388 * convert.c: Likewise.
7389 * coverage.c: Likewise.
7390 * cppbuiltin.c: Likewise.
7391 * cprop.c: Likewise.
7392 * cse.c: Likewise.
7393 * cselib.c: Likewise.
7394 * data-streamer-in.c: Likewise.
7395 * data-streamer-out.c: Likewise.
7396 * data-streamer.c: Likewise.
7397 * dbxout.c: Likewise.
7398 * dce.c: Likewise.
7399 * ddg.c: Likewise.
7400 * debug.c: Likewise.
7401 * df-core.c: Likewise.
7402 * df-problems.c: Likewise.
7403 * df-scan.c: Likewise.
7404 * df.h: Likewise.
7405 * dfp.c: Likewise.
7406 * dojump.c: Likewise.
7407 * dominance.c: Likewise.
7408 * domwalk.c: Likewise.
7409 * double-int.c: Likewise.
7410 * dse.c: Likewise.
7411 * dumpfile.c: Likewise.
7412 * dwarf2asm.c: Likewise.
7413 * dwarf2cfi.c: Likewise.
7414 * dwarf2out.c: Likewise.
7415 * dwarf2out.h: Likewise.
7416 * emit-rtl.c: Likewise.
7417 * et-forest.c: Likewise.
7418 * except.c: Likewise.
7419 * explow.c: Likewise.
7420 * expmed.c: Likewise.
7421 * expr.c: Likewise.
7422 * final.c: Likewise.
7423 * fixed-value.c: Likewise.
7424 * fold-const.c: Likewise.
7425 * function.c: Likewise.
7426 * fwprop.c: Likewise.
7427 * gcc-plugin.h: Likewise.
7428 * gcse.c: Likewise.
7429 * generic-match-head.c: Likewise.
7430 * ggc-page.c: Likewise.
7431 * gimple-builder.c: Likewise.
7432 * gimple-expr.c: Likewise.
7433 * gimple-fold.c: Likewise.
7434 * gimple-iterator.c: Likewise.
7435 * gimple-low.c: Likewise.
7436 * gimple-match-head.c: Likewise.
7437 * gimple-pretty-print.c: Likewise.
7438 * gimple-ssa-isolate-paths.c: Likewise.
7439 * gimple-ssa-strength-reduction.c: Likewise.
7440 * gimple-streamer-in.c: Likewise.
7441 * gimple-streamer-out.c: Likewise.
7442 * gimple-streamer.h: Likewise.
7443 * gimple-walk.c: Likewise.
7444 * gimple.c: Likewise.
7445 * gimplify-me.c: Likewise.
7446 * gimplify.c: Likewise.
7447 * godump.c: Likewise.
7448 * graph.c: Likewise.
7449 * graphite-blocking.c: Likewise.
7450 * graphite-dependences.c: Likewise.
7451 * graphite-interchange.c: Likewise.
7452 * graphite-isl-ast-to-gimple.c: Likewise.
7453 * graphite-optimize-isl.c: Likewise.
7454 * graphite-poly.c: Likewise.
7455 * graphite-scop-detection.c: Likewise.
7456 * graphite-sese-to-poly.c: Likewise.
7457 * graphite.c: Likewise.
7458 * haifa-sched.c: Likewise.
7459 * hooks.h: Likewise.
7460 * hw-doloop.c: Likewise.
7461 * ifcvt.c: Likewise.
7462 * incpath.c: Likewise.
7463 * init-regs.c: Likewise.
7464 * internal-fn.c: Likewise.
7465 * ipa-chkp.c: Likewise.
7466 * ipa-comdats.c: Likewise.
7467 * ipa-cp.c: Likewise.
7468 * ipa-devirt.c: Likewise.
7469 * ipa-icf-gimple.c: Likewise.
7470 * ipa-icf.c: Likewise.
7471 * ipa-inline-analysis.c: Likewise.
7472 * ipa-inline-transform.c: Likewise.
7473 * ipa-inline.c: Likewise.
7474 * ipa-polymorphic-call.c: Likewise.
7475 * ipa-profile.c: Likewise.
7476 * ipa-prop.c: Likewise.
7477 * ipa-pure-const.c: Likewise.
7478 * ipa-ref.c: Likewise.
7479 * ipa-reference.c: Likewise.
7480 * ipa-split.c: Likewise.
7481 * ipa-utils.c: Likewise.
7482 * ipa-visibility.c: Likewise.
7483 * ipa.c: Likewise.
7484 * ira-build.c: Likewise.
7485 * ira-color.c: Likewise.
7486 * ira-conflicts.c: Likewise.
7487 * ira-costs.c: Likewise.
7488 * ira-emit.c: Likewise.
7489 * ira-lives.c: Likewise.
7490 * ira.c: Likewise.
7491 * jump.c: Likewise.
7492 * langhooks.c: Likewise.
7493 * lcm.c: Likewise.
7494 * loop-doloop.c: Likewise.
7495 * loop-init.c: Likewise.
7496 * loop-invariant.c: Likewise.
7497 * loop-iv.c: Likewise.
7498 * loop-unroll.c: Likewise.
7499 * lower-subreg.c: Likewise.
7500 * lra-assigns.c: Likewise.
7501 * lra-coalesce.c: Likewise.
7502 * lra-constraints.c: Likewise.
7503 * lra-eliminations.c: Likewise.
7504 * lra-lives.c: Likewise.
7505 * lra-remat.c: Likewise.
7506 * lra-spills.c: Likewise.
7507 * lra.c: Likewise.
7508 * lto-cgraph.c: Likewise.
7509 * lto-compress.c: Likewise.
7510 * lto-opts.c: Likewise.
7511 * lto-section-in.c: Likewise.
7512 * lto-section-out.c: Likewise.
7513 * lto-streamer-in.c: Likewise.
7514 * lto-streamer-out.c: Likewise.
7515 * lto-streamer.c: Likewise.
7516 * mcf.c: Likewise.
7517 * mode-switching.c: Likewise.
7518 * modulo-sched.c: Likewise.
7519 * omega.c: Likewise.
7520 * omp-low.c: Likewise.
7521 * optabs.c: Likewise.
7522 * opts-global.c: Likewise.
7523 * passes.c: Likewise.
7524 * plugin.c: Likewise.
7525 * postreload-gcse.c: Likewise.
7526 * postreload.c: Likewise.
7527 * predict.c: Likewise.
7528 * print-rtl.c: Likewise.
7529 * print-tree.c: Likewise.
7530 * profile.c: Likewise.
7531 * real.c: Likewise.
7532 * realmpfr.c: Likewise.
7533 * realmpfr.h: Likewise.
7534 * recog.c: Likewise.
7535 * ree.c: Likewise.
7536 * reg-stack.c: Likewise.
7537 * regcprop.c: Likewise.
7538 * reginfo.c: Likewise.
7539 * regrename.c: Likewise.
7540 * regs.h: Likewise.
7541 * regstat.c: Likewise.
7542 * reload.c: Likewise.
7543 * reload1.c: Likewise.
7544 * reorg.c: Likewise.
7545 * resource.c: Likewise.
7546 * rtl-chkp.c: Likewise.
7547 * rtlanal.c: Likewise.
7548 * rtlhooks.c: Likewise.
7549 * sanopt.c: Likewise.
7550 * sched-deps.c: Likewise.
7551 * sched-ebb.c: Likewise.
7552 * sched-rgn.c: Likewise.
7553 * sched-vis.c: Likewise.
7554 * sdbout.c: Likewise.
7555 * sel-sched-dump.c: Likewise.
7556 * sel-sched-ir.c: Likewise.
7557 * sel-sched.c: Likewise.
7558 * sese.c: Likewise.
7559 * shrink-wrap.c: Likewise.
7560 * shrink-wrap.h: Likewise.
7561 * simplify-rtx.c: Likewise.
7562 * stack-ptr-mod.c: Likewise.
7563 * statistics.c: Likewise.
7564 * stmt.c: Likewise.
7565 * stor-layout.c: Likewise.
7566 * store-motion.c: Likewise.
7567 * stringpool.c: Likewise.
7568 * symtab.c: Likewise.
7569 * target-globals.c: Likewise.
7570 * targhooks.c: Likewise.
7571 * toplev.c: Likewise.
7572 * tracer.c: Likewise.
7573 * trans-mem.c: Likewise.
7574 * tree-affine.c: Likewise.
7575 * tree-affine.h: Likewise.
7576 * tree-browser.c: Likewise.
7577 * tree-call-cdce.c: Likewise.
7578 * tree-cfg.c: Likewise.
7579 * tree-cfgcleanup.c: Likewise.
7580 * tree-chkp-opt.c: Likewise.
7581 * tree-chkp.c: Likewise.
7582 * tree-chrec.c: Likewise.
7583 * tree-complex.c: Likewise.
7584 * tree-data-ref.c: Likewise.
7585 * tree-dfa.c: Likewise.
7586 * tree-diagnostic.c: Likewise.
7587 * tree-dump.c: Likewise.
7588 * tree-eh.c: Likewise.
7589 * tree-emutls.c: Likewise.
7590 * tree-if-conv.c: Likewise.
7591 * tree-inline.c: Likewise.
7592 * tree-into-ssa.c: Likewise.
7593 * tree-iterator.c: Likewise.
7594 * tree-loop-distribution.c: Likewise.
7595 * tree-nested.c: Likewise.
7596 * tree-nrv.c: Likewise.
7597 * tree-object-size.c: Likewise.
7598 * tree-outof-ssa.c: Likewise.
7599 * tree-parloops.c: Likewise.
7600 * tree-phinodes.c: Likewise.
7601 * tree-predcom.c: Likewise.
7602 * tree-pretty-print.c: Likewise.
7603 * tree-pretty-print.h: Likewise.
7604 * tree-profile.c: Likewise.
7605 * tree-scalar-evolution.c: Likewise.
7606 * tree-sra.c: Likewise.
7607 * tree-ssa-address.c: Likewise.
7608 * tree-ssa-alias.c: Likewise.
7609 * tree-ssa-ccp.c: Likewise.
7610 * tree-ssa-coalesce.c: Likewise.
7611 * tree-ssa-copy.c: Likewise.
7612 * tree-ssa-copyrename.c: Likewise.
7613 * tree-ssa-dce.c: Likewise.
7614 * tree-ssa-dom.c: Likewise.
7615 * tree-ssa-dse.c: Likewise.
7616 * tree-ssa-forwprop.c: Likewise.
7617 * tree-ssa-ifcombine.c: Likewise.
7618 * tree-ssa-live.c: Likewise.
7619 * tree-ssa-loop-ch.c: Likewise.
7620 * tree-ssa-loop-im.c: Likewise.
7621 * tree-ssa-loop-ivcanon.c: Likewise.
7622 * tree-ssa-loop-ivopts.c: Likewise.
7623 * tree-ssa-loop-manip.c: Likewise.
7624 * tree-ssa-loop-niter.c: Likewise.
7625 * tree-ssa-loop-prefetch.c: Likewise.
7626 * tree-ssa-loop-unswitch.c: Likewise.
7627 * tree-ssa-loop.c: Likewise.
7628 * tree-ssa-loop.h: Likewise.
7629 * tree-ssa-math-opts.c: Likewise.
7630 * tree-ssa-operands.c: Likewise.
7631 * tree-ssa-phiopt.c: Likewise.
7632 * tree-ssa-phiprop.c: Likewise.
7633 * tree-ssa-pre.c: Likewise.
7634 * tree-ssa-propagate.c: Likewise.
7635 * tree-ssa-reassoc.c: Likewise.
7636 * tree-ssa-sccvn.c: Likewise.
7637 * tree-ssa-scopedtables.c: Likewise.
7638 * tree-ssa-sink.c: Likewise.
7639 * tree-ssa-strlen.c: Likewise.
7640 * tree-ssa-structalias.c: Likewise.
7641 * tree-ssa-tail-merge.c: Likewise.
7642 * tree-ssa-ter.c: Likewise.
7643 * tree-ssa-threadedge.c: Likewise.
7644 * tree-ssa-threadupdate.c: Likewise.
7645 * tree-ssa-uncprop.c: Likewise.
7646 * tree-ssa-uninit.c: Likewise.
7647 * tree-ssa.c: Likewise.
7648 * tree-ssanames.c: Likewise.
7649 * tree-stdarg.c: Likewise.
7650 * tree-streamer-in.c: Likewise.
7651 * tree-streamer-out.c: Likewise.
7652 * tree-streamer.c: Likewise.
7653 * tree-switch-conversion.c: Likewise.
7654 * tree-tailcall.c: Likewise.
7655 * tree-vect-data-refs.c: Likewise.
7656 * tree-vect-generic.c: Likewise.
7657 * tree-vect-loop-manip.c: Likewise.
7658 * tree-vect-loop.c: Likewise.
7659 * tree-vect-patterns.c: Likewise.
7660 * tree-vect-slp.c: Likewise.
7661 * tree-vect-stmts.c: Likewise.
7662 * tree-vectorizer.c: Likewise.
7663 * tree-vrp.c: Likewise.
7664 * tree.c: Likewise.
7665 * tsan.c: Likewise.
7666 * ubsan.c: Likewise.
7667 * valtrack.c: Likewise.
7668 * value-prof.c: Likewise.
7669 * var-tracking.c: Likewise.
7670 * varasm.c: Likewise.
7671 * varpool.c: Likewise.
7672 * vmsdbgout.c: Likewise.
7673 * vtable-verify.c: Likewise.
7674 * web.c: Likewise.
7675 * wide-int-print.cc: Likewise.
7676 * wide-int-print.h: Likewise.
7677 * wide-int.cc: Likewise.
7678 * xcoffout.c: Likewise.
7679 * config/aarch64/aarch64-builtins.c: Likewise.
7680 * config/aarch64/aarch64.c: Likewise.
7681 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7682 * config/alpha/alpha.c: Likewise.
7683 * config/arc/arc.c: Likewise.
7684 * config/arm/aarch-common.c: Likewise.
7685 * config/arm/arm-builtins.c: Likewise.
7686 * config/arm/arm-c.c: Likewise.
7687 * config/arm/arm.c: Likewise.
7688 * config/avr/avr-c.c: Likewise.
7689 * config/avr/avr-log.c: Likewise.
7690 * config/avr/avr.c: Likewise.
7691 * config/bfin/bfin.c: Likewise.
7692 * config/c6x/c6x.c: Likewise.
7693 * config/cr16/cr16.c: Likewise.
7694 * config/cris/cris.c: Likewise.
7695 * config/darwin-c.c: Likewise.
7696 * config/darwin.c: Likewise.
7697 * config/default-c.c: Likewise.
7698 * config/epiphany/epiphany.c: Likewise.
7699 * config/epiphany/mode-switch-use.c: Likewise.
7700 * config/epiphany/resolve-sw-modes.c: Likewise.
7701 * config/fr30/fr30.c: Likewise.
7702 * config/frv/frv.c: Likewise.
7703 * config/ft32/ft32.c: Likewise.
7704 * config/glibc-c.c: Likewise.
7705 * config/h8300/h8300.c: Likewise.
7706 * config/i386/i386-c.c: Likewise.
7707 * config/i386/i386.c: Likewise.
7708 * config/i386/msformat-c.c: Likewise.
7709 * config/i386/winnt-cxx.c: Likewise.
7710 * config/i386/winnt-stubs.c: Likewise.
7711 * config/i386/winnt.c: Likewise.
7712 * config/ia64/ia64-c.c: Likewise.
7713 * config/ia64/ia64.c: Likewise.
7714 * config/iq2000/iq2000.c: Likewise.
7715 * config/lm32/lm32.c: Likewise.
7716 * config/m32c/m32c-pragma.c: Likewise.
7717 * config/m32c/m32c.c: Likewise.
7718 * config/m32r/m32r.c: Likewise.
7719 * config/m68k/m68k.c: Likewise.
7720 * config/mcore/mcore.c: Likewise.
7721 * config/mep/mep-pragma.c: Likewise.
7722 * config/mep/mep.c: Likewise.
7723 * config/microblaze/microblaze-c.c: Likewise.
7724 * config/microblaze/microblaze.c: Likewise.
7725 * config/mips/mips.c: Likewise.
7726 * config/mmix/mmix.c: Likewise.
7727 * config/mn10300/mn10300.c: Likewise.
7728 * config/moxie/moxie.c: Likewise.
7729 * config/msp430/msp430-c.c: Likewise.
7730 * config/msp430/msp430.c: Likewise.
7731 * config/nds32/nds32-cost.c: Likewise.
7732 * config/nds32/nds32-fp-as-gp.c: Likewise.
7733 * config/nds32/nds32-intrinsic.c: Likewise.
7734 * config/nds32/nds32-isr.c: Likewise.
7735 * config/nds32/nds32-md-auxiliary.c: Likewise.
7736 * config/nds32/nds32-memory-manipulation.c: Likewise.
7737 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7738 * config/nds32/nds32-predicates.c: Likewise.
7739 * config/nds32/nds32.c: Likewise.
7740 * config/nios2/nios2.c: Likewise.
7741 * config/nvptx/nvptx.c: Likewise.
7742 * config/pa/pa.c: Likewise.
7743 * config/pdp11/pdp11.c: Likewise.
7744 * config/rl78/rl78-c.c: Likewise.
7745 * config/rl78/rl78.c: Likewise.
7746 * config/rs6000/rs6000-c.c: Likewise.
7747 * config/rs6000/rs6000.c: Likewise.
7748 * config/rx/rx.c: Likewise.
7749 * config/s390/s390-c.c: Likewise.
7750 * config/s390/s390.c: Likewise.
7751 * config/sh/sh-c.c: Likewise.
7752 * config/sh/sh-mem.cc: Likewise.
7753 * config/sh/sh.c: Likewise.
7754 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7755 * config/sh/sh_treg_combine.cc: Likewise.
7756 * config/sol2-c.c: Likewise.
7757 * config/sol2-cxx.c: Likewise.
7758 * config/sol2-stubs.c: Likewise.
7759 * config/sol2.c: Likewise.
7760 * config/sparc/sparc-c.c: Likewise.
7761 * config/sparc/sparc.c: Likewise.
7762 * config/spu/spu-c.c: Likewise.
7763 * config/spu/spu.c: Likewise.
7764 * config/stormy16/stormy16.c: Likewise.
7765 * config/tilegx/mul-tables.c: Likewise.
7766 * config/tilegx/tilegx-c.c: Likewise.
7767 * config/tilegx/tilegx.c: Likewise.
7768 * config/tilepro/mul-tables.c: Likewise.
7769 * config/tilepro/tilepro-c.c: Likewise.
7770 * config/tilepro/tilepro.c: Likewise.
7771 * config/v850/v850-c.c: Likewise.
7772 * config/v850/v850.c: Likewise.
7773 * config/vax/vax.c: Likewise.
7774 * config/visium/visium.c: Likewise.
7775 * config/vms/vms-c.c: Likewise.
7776 * config/vms/vms.c: Likewise.
7777 * config/vxworks.c: Likewise.
7778 * config/winnt-c.c: Likewise.
7779 * config/xtensa/xtensa.c: Likewise.
7780 * common/config/bfin/bfin-common.c: Likewise.
7781
7782 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
7783
7784 * tree.h (tree_code_for_canonical_type_merging): New function.
7785 * tree.c (gimple_canonical_types_compatible_p): Use
7786 tree_code_for_canonical_type_merging..
7787
7788 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7789
7790 PR c++/66192
7791 PR target/66200
7792 * doc/tm.texi: Regenerate.
7793 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
7794 * target.def (TARGET_RELAXED_ORDERING): Likewise.
7795 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
7796 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
7797 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
7798 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
7799 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
7800 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
7801 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
7802
7803 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7804
7805 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
7806 register fma steering pass.
7807 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
7808 AARCH64_TUNE_FMA_STEERING.
7809
7810 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
7811
7812 * tree.c (verify_type_variant): Verify that type and variant is
7813 compatible.
7814 (gimple_canonical_types_compatible_p): Look for main variants.
7815
7816 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7817
7818 * config.gcc (powerpc*-*-*): Add support for a new configure
7819 option --with-advance-toolchain=<xxx> which overrides using the
7820 default header files, libraries and dynamic linker.
7821
7822 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
7823 specs to support the configure --with-advance-toolchain=<xxx>
7824 option.
7825 (INCLUDE_EXTRA_SPEC): Likewise.
7826 (LINK_OS_EXTRA_SPEC32): Likewise.
7827 (LINK_OK_EXTRA_SPEC64): Likewise.
7828 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
7829 (DYNAMIC_LINKER_PREFIX): Likewise.
7830 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
7831 toolchain support.
7832 (GLIBC_DYNAMIC_LINKER32): Likewise.
7833 (GLIBC_DYNAMIC_LINKER64): Likewise.
7834 (LINK_OS_LINUX_SPEC32): Likewise.
7835 (LINK_OS_LINUX_SPEC64): Likewise.
7836
7837 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
7838 configuration option.
7839
7840 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
7841
7842 PR target/66275
7843 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
7844 to determine current function ABI.
7845 (ix86_function_value_regno_p): Ditto.
7846
7847 2015-06-03 Martin Liska <mliska@suse.cz>
7848
7849 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
7850 * bitmap.h (struct bitmap_usage): Likewise.
7851 * ggc-common.c (struct ggc_usage): Likewise.
7852 * mem-stats.h (struct mem_location): Likewise.
7853 (struct mem_usage): Likewise.
7854 * vec.c (struct vec_usage): Likewise.
7855
7856 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
7857
7858 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
7859 -Bsymbolic.
7860
7861 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
7862
7863 * doc/plugins.texi (enum plugin_event): New event.
7864 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
7865 and PLUGIN_FINISH_FUNCTION.
7866 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
7867 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
7868
7869 2015-06-03 Richard Biener <rguenther@suse.de>
7870
7871 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7872 compute GROUP_GAP for the first element.
7873 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
7874 on in-group gaps.
7875
7876 2015-06-03 Nick Clifton <nickc@redhat.com>
7877
7878 * config/rl78/rl78-real.md: Add peepholes to avoid a register
7879 copy when calling a function.
7880 * config/rl78/rl78.c (need_to_save): Do not push the frame
7881 pointer in an interrupt handler prologue if it is never used.
7882
7883 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7884
7885 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
7886
7887 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
7888
7889 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
7890 reference when cloning alias node.
7891
7892 2015-06-03 Martin Liska <mliska@suse.cz>
7893
7894 * alloc-pool.h (struct pool_usage): Correct space padding.
7895 * ggc-page.c (ggc_print_statistics): Align columns in a report.
7896 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
7897 * tree.c (dump_tree_statistics): Align columns in a report.
7898
7899 2015-06-03 Martin Liska <mliska@suse.cz>
7900
7901 * alloc-pool.c (allocate_pool_descriptor): Remove.
7902 (struct pool_output_info): Likewise.
7903 (print_alloc_pool_statistics): Likewise.
7904 (dump_alloc_pool_statistics): Likewise.
7905 * alloc-pool.h (struct pool_usage): New struct.
7906 (pool_allocator::initialize): Change usage of memory statistics
7907 to a new interface.
7908 (pool_allocator::release): Likewise.
7909 (pool_allocator::allocate): Likewise.
7910 (pool_allocator::remove): Likewise.
7911 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
7912 for a pool allocator.
7913 * mem-stats.h (struct mem_location): Add new ctor.
7914 (struct mem_usage): Add counter for number of
7915 instances.
7916 (mem_alloc_description::register_descriptor): New overload of
7917 * mem-stats.h (mem_location::to_string): New function.
7918 * bitmap.h (struct bitmap_usage): Use this new function.
7919 * ggc-common.c (struct ggc_usage): Likewise.
7920 the function.
7921
7922 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
7923
7924 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
7925 of GCC_INSN_FLAGS_H block.
7926
7927 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
7928
7929 * explow.c (plus_constant): Update check after force_const_mem call
7930 to see if the value returned is not a NULL_RTX.
7931
7932 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
7933
7934 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
7935 remove instumentation thunks calling reachable functions.
7936 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
7937 * lto/lto-partition.c (privatize_symbol_name_1): New.
7938 (privatize_symbol_name): Privatize both decl and orig_decl
7939 names for instrumented functions.
7940 * cgraph.c (cgraph_node::verify_node): Add transparent
7941 alias chain check for instrumented node.
7942
7943 2015-06-03 Marek Polacek <polacek@redhat.com>
7944
7945 PR c/64223
7946 PR c/29358
7947 * tree.c (attribute_value_equal): Handle attribute format.
7948 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
7949
7950 2015-06-03 Richard Biener <rguenther@suse.de>
7951
7952 PR tree-optimization/63916
7953 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7954 Forward-propagate non-invariant addresses by splicing their
7955 reference ops if the result isn't going to be used by PRE.
7956 (vn_reference_lookup_3): Remove pointless assert.
7957
7958 2015-06-03 Richard Biener <rguenther@suse.de>
7959
7960 PR tree-optimization/66375
7961 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
7962 add to the evolution before following SSA edges.
7963
7964 2015-06-03 Bin Cheng <bin.cheng@arm.com>
7965
7966 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
7967 (dump_use, dump_cand, find_induction_variables): Pass new argument
7968 to dump_iv.
7969 (record_use): Preserve the ssa name information in IV.
7970
7971 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
7972
7973 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
7974 NO_MODE_TEST.
7975 (add_mode_tests): Don't add mode tests if the predicate only
7976 accepts scalar constant integers. Otherwise, allow the mode
7977 of "op" to be VOIDmode if the predicate does accept such integers.
7978
7979 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
7980
7981 PR target/66258
7982 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
7983 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
7984 (aarch64_secondary_reload): Likewise
7985 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
7986 to !TARGET_FLOAT.
7987 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
7988 Likewise.
7989
7990 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
7991 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7992
7993 PR target/65768
7994 * cprop.c (try_replace_reg): Check cost of constants before propagating.
7995
7996 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7997
7998 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
7999 provide access to the IBM extended double floating point mode if
8000 long double is IEEE 128-bit floating point.
8001 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8002 point if long double is the IBM extended double type.
8003
8004 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8005 enable adding IEEE 128-bit floating point support.
8006 (-mfloat128-software): Likewise.
8007 (-mfloat128-sw): Likewise.
8008
8009 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8010 128-bit floating point types to occupy any register if
8011 -mlong-double-64. Do not allow use of IFmode/KFmode unless
8012 -mfloat128-software is enabled.
8013 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8014 support.
8015 (rs6000_option_override_internal): Add -mfloat128-* support.
8016 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8017
8018 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8019 and float128 type nodes.
8020 (ieee128_float_type_node): Likewise.
8021 (ibm128_float_type_node): Likewise.
8022
8023 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8024
8025 PR target/66136
8026 * config/aarch64/geniterators.sh: Rewrite in awk.
8027
8028 2015-06-02 Martin Liska <mliska@suse.cz>
8029
8030 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8031 values to avoid -Wmaybe-uninitialized errors.
8032
8033 2015-06-02 Richard Biener <rguenther@suse.de>
8034
8035 PR debug/65549
8036 * dwarf2out.c (lookup_context_die): New function.
8037 (resolve_addr): Avoid forcing a full DIE for the
8038 target of a DW_TAG_GNU_call_site during late compilation.
8039 Instead create a stub DIE without a type if we have a
8040 context DIE present.
8041
8042 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
8043
8044 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8045
8046 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8047
8048 PR tree-optimization/48052
8049 * cfgloop.h (struct control_iv): New.
8050 (struct loop): New field control_ivs.
8051 * tree-ssa-loop-niter.c : Include "stor-layout.h".
8052 (number_of_iterations_lt): Set no_overflow information.
8053 (number_of_iterations_exit): Init control iv in niter struct.
8054 (record_control_iv): New.
8055 (estimate_numbers_of_iterations_loop): Call record_control_iv.
8056 (loop_exits_before_overflow): New. Interface factored out of
8057 scev_probably_wraps_p.
8058 (scev_probably_wraps_p): Factor loop niter related code into
8059 loop_exits_before_overflow.
8060 (free_numbers_of_iterations_estimates_loop): Free control ivs.
8061 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8062
8063 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
8064
8065 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8066 the target doesn't belong to the current function.
8067
8068 2015-06-02 Marek Polacek <polacek@redhat.com>
8069
8070 PR middle-end/66345
8071 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8072 get_maxval_strlen does not produce an INTEGER_CST.
8073
8074 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
8075
8076 * config/arc/constraints.md: Use lower-case names in match_code.
8077 * config/mmix/constraints.md: Likewise.
8078
8079 2015-06-02 Richard Biener <rguenther@suse.de>
8080
8081 PR tree-optimization/65961
8082 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8083 check and clarify dump message.
8084 (vect_build_slp_tree): If all children are built up from scalars
8085 build up the parent from scalars instead.
8086 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8087
8088 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8089
8090 PR other/65366
8091 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
8092 instead of print ... .
8093
8094 2015-06-02 Alan Modra <amodra@gmail.com>
8095
8096 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8097 2014-08-11 change.
8098
8099 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8100
8101 PR tree-optimization/52563
8102 PR tree-optimization/62173
8103 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
8104 (alloc_iv, set_iv): New parameter.
8105 (determine_biv_step): Delete.
8106 (find_bivs): Inline original determine_biv_step. Pass new
8107 argument to set_iv.
8108 (idx_find_step): Use no_overflow information for conversion.
8109 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8110 resolve_mixers handle folded_casts.
8111 (instantiate_scev_name): Change bool parameter to bool pointer.
8112 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8113 (instantiate_array_ref, instantiate_scev_not): Ditto.
8114 (instantiate_scev_3, instantiate_scev_2): Ditto.
8115 (instantiate_scev_1, instantiate_scev_r): Ditto.
8116 (instantiate_scev_convert, ): Change parameter. Pass argument
8117 to chrec_convert_aggressive.
8118 (instantiate_scev): Change argument.
8119 (resolve_mixers): New parameter and set it.
8120 (scev_const_prop): New argument.
8121 * tree-scalar-evolution.h (resolve_mixers): New parameter.
8122 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8123 of chrec_conert_1.
8124 (chrec_convert): New parameter. Move definition below.
8125 (chrec_convert_aggressive): New parameter and set it. Call
8126 convert_affine_scev.
8127 * tree-chrec.h (chrec_convert): New parameter.
8128 (chrec_convert_aggressive): Ditto.
8129
8130 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8131
8132 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8133 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8134 the LHS of a no-return call if its type has variable size.
8135 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8136 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8137
8138 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
8139
8140 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8141 * config.in: Regenerate.
8142
8143 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8144
8145 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8146 consecutive accesses within outer-loop with force_vectorize
8147 for references with zero step in inner-loop.
8148
8149 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8150
8151 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8152 rather than from gcc/build directory.
8153
8154 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8155
8156 PR target/65697
8157 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8158 for __sync memory models, emit initial loads and final barriers as
8159 appropriate.
8160
8161 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8162
8163 PR target/65697
8164 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8165 (aarch64_split_atomic_op): Check for __sync memory models, emit
8166 appropriate initial loads and final barriers.
8167
8168 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8169
8170 * Makefile.in: Fix gcov dependencies that should
8171 not point to a build folder.
8172
8173 2015-06-01 Richard Biener <rguenther@suse.de>
8174
8175 Revert
8176 2015-05-29 Richard Biener <rguenther@suse.de>
8177
8178 PR tree-optimization/66314
8179 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8180 parameter that says which loop the new block belongs to.
8181 (ssa_create_duplicates): Blocks duplicated for the threaded
8182 path belong to the loop of the thread destination.
8183
8184 2015-06-01 Martin Liska <mliska@suse.cz>
8185
8186 * sched-deps.c: Include pool-alloc.h before
8187 cselib.h header file is included.
8188
8189 2015-06-01 Richard Biener <rguenther@suse.de>
8190
8191 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8192 functions.
8193
8194 2015-06-01 Martin Liska <mliska@suse.cz>
8195
8196 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8197 a function local variable.
8198
8199 2015-06-01 Martin Liska <mliska@suse.cz>
8200
8201 * alloc-pool.c (create_alloc_pool): Remove.
8202 (empty_alloc_pool): Likewise.
8203 (free_alloc_pool): Likewise.
8204 (free_alloc_pool_if_empty): Likewise.
8205 (pool_alloc): Likewise.
8206 (pool_free): Likewise.
8207 * alloc-pool.h: Remove old declarations.
8208
8209 2015-06-01 Martin Liska <mliska@suse.cz>
8210
8211 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8212 (ira_create_object): Likewise.
8213 (ira_create_allocno): Likewise.
8214 (ira_create_live_range): Likewise.
8215 (copy_live_range): Likewise.
8216 (ira_finish_live_range): Likewise.
8217 (ira_free_allocno_costs): Likewise.
8218 (finish_allocno): Likewise.
8219 (finish_allocnos): Likewise.
8220 (initiate_prefs): Likewise.
8221 (ira_create_pref): Likewise.
8222 (finish_pref): Likewise.
8223 (finish_prefs): Likewise.
8224 (initiate_copies): Likewise.
8225 (ira_create_copy): Likewise.
8226 (finish_copy): Likewise.
8227 (finish_copies): Likewise.
8228 (finish_prefs): Likewise.
8229
8230 2015-06-01 Martin Liska <mliska@suse.cz>
8231
8232 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8233 (allocate_and_init_ipcp_value): Likewise.
8234 (ipcp_lattice::add_value): Likewise.
8235 (merge_agg_lats_step): Likewise.
8236 (ipcp_driver): Likewise.
8237 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8238 (ipa_free_all_structures_after_iinln): Likewise.
8239 * ipa-prop.h: Likewise.
8240
8241 2015-06-01 Martin Liska <mliska@suse.cz>
8242
8243 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8244 pool allocator.
8245 (set_hint_predicate): Likewise.
8246 (inline_summary_alloc): Likewise.
8247 (reset_inline_edge_summary): Likewise.
8248 (reset_inline_summary): Likewise.
8249 (set_cond_stmt_execution_predicate): Likewise.
8250 (set_switch_stmt_execution_predicate): Likewise.
8251 (compute_bb_predicates): Likewise.
8252 (estimate_function_body_sizes): Likewise.
8253 (inline_free_summary): Likewise.
8254
8255 2015-06-01 Martin Liska <mliska@suse.cz>
8256
8257 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8258 (ipa_edge_duplication_hook): Likewise.
8259 (ipa_free_all_structures_after_ipa_cp): Likewise.
8260 (ipa_free_all_structures_after_iinln): Likewise.
8261
8262 2015-06-01 Martin Liska <mliska@suse.cz>
8263
8264 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8265 (ipa_profile_generate_summary): Likewise.
8266 (ipa_profile_read_summary): Likewise.
8267 (ipa_profile): Likewise.
8268
8269 2015-06-01 Martin Liska <mliska@suse.cz>
8270
8271 * tree-ssa-structalias.c (new_var_info): Use new type-based
8272 pool allocator.
8273 (new_constraint): Likewise.
8274 (init_alias_vars): Likewise.
8275 (delete_points_to_sets): Likewise.
8276
8277 2015-06-01 Martin Liska <mliska@suse.cz>
8278
8279 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8280 (free_strinfo): Likewise.
8281 (pass_strlen::execute): Likewise.
8282
8283 2015-06-01 Martin Liska <mliska@suse.cz>
8284
8285 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8286 pool allocator.
8287 (vn_reference_insert_pieces): Likewise.
8288 (vn_phi_insert): Likewise.
8289 (visit_reference_op_call): Likewise.
8290 (copy_phi): Likewise.
8291 (copy_reference): Likewise.
8292 (process_scc): Likewise.
8293 (allocate_vn_table): Likewise.
8294 (free_vn_table): Likewise.
8295
8296 2015-06-01 Martin Liska <mliska@suse.cz>
8297
8298 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8299 pool allocator.
8300 (add_repeat_to_ops_vec): Likewise.
8301 (get_ops): Likewise.
8302 (maybe_optimize_range_tests): Likewise.
8303 (init_reassoc): Likewise.
8304 (fini_reassoc): Likewise.
8305
8306 2015-06-01 Martin Liska <mliska@suse.cz>
8307
8308 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8309 pool allocator.
8310 (bitmap_set_new): Likewise.
8311 (get_or_alloc_expr_for_constant): Likewise.
8312 (get_or_alloc_expr_for): Likewise.
8313 (phi_translate_1): Likewise.
8314 (compute_avail): Likewise.
8315 (init_pre): Likewise.
8316 (fini_pre): Likewise.
8317
8318 2015-06-01 Martin Liska <mliska@suse.cz>
8319
8320 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8321 (delete_dep_node): Likewise.
8322 (create_deps_list): Likewise.
8323 (free_deps_list): Likewise.
8324 (sched_deps_init): Likewise.
8325 (sched_deps_finish): Likewise.
8326
8327 2015-06-01 Martin Liska <mliska@suse.cz>
8328
8329 * regcprop.c (free_debug_insn_changes): Use new type-based
8330 pool allocator.
8331 (replace_oldest_value_reg): Likewise.
8332 (pass_cprop_hardreg::execute): Likewise.
8333
8334 2015-06-01 Martin Liska <mliska@suse.cz>
8335
8336 * ira-build.c (initiate_cost_vectors): Use new type-based
8337 pool allocator.
8338 (ira_allocate_cost_vector): Likewise.
8339 (ira_free_cost_vector): Likewise.
8340 (finish_cost_vectors): Likewise.
8341
8342 2015-06-01 Martin Liska <mliska@suse.cz>
8343
8344 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8345 pool allocator.
8346 (free_sched_pools): Likewise.
8347 * sel-sched-ir.h (_list_alloc): Likewise.
8348 (_list_remove): Likewise.
8349
8350 2015-06-01 Martin Liska <mliska@suse.cz>
8351
8352 * stmt.c (add_case_node): Use new type-based pool allocator.
8353 (expand_case): Likewise.
8354 (expand_sjlj_dispatch_table): Likewise.
8355
8356 2015-06-01 Martin Liska <mliska@suse.cz>
8357
8358 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8359 (free_bb): Likewise.
8360 (pass_cse_reciprocals::execute): Likewise.
8361
8362 2015-06-01 Martin Liska <mliska@suse.cz>
8363
8364 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8365 (sra_deinitialize) Likewise.
8366 (create_access_1) Likewise.
8367 (build_accesses_from_assign) Likewise.
8368 (create_artificial_child_access) Likewise.
8369
8370 2015-06-01 Martin Liska <mliska@suse.cz>
8371
8372 * dse.c (get_group_info):Use new type-based pool allocator.
8373 (dse_step0) Likewise.
8374 (free_store_info) Likewise.
8375 (delete_dead_store_insn) Likewise.
8376 (free_read_records) Likewise.
8377 (record_store) Likewise.
8378 (replace_read) Likewise.
8379 (check_mem_read_rtx) Likewise.
8380 (scan_insn) Likewise.
8381 (dse_step1) Likewise.
8382 (dse_step7) Likewise.
8383
8384 2015-06-01 Martin Liska <mliska@suse.cz>
8385
8386 * df-scan.c (struct df_scan_problem_data):Use new type-based
8387 pool allocator.
8388 (df_scan_free_internal) Likewise.
8389 (df_scan_alloc) Likewise.
8390 (df_grow_reg_info) Likewise.
8391 (df_free_ref) Likewise.
8392 (df_insn_create_insn_record) Likewise.
8393 (df_mw_hardreg_chain_delete) Likewise.
8394 (df_insn_info_delete) Likewise.
8395 (df_free_collection_rec) Likewise.
8396 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8397 (df_sort_and_compress_mws) Likewise.
8398 (df_ref_create_structure) Likewise.
8399 (df_ref_record) Likewise.
8400
8401 2015-06-01 Martin Liska <mliska@suse.cz>
8402
8403 * df-problems.c (df_chain_create):Use new type-based pool allocator.
8404 (df_chain_unlink_1) Likewise.
8405 (df_chain_unlink) Likewise.
8406 (df_chain_remove_problem) Likewise.
8407 (df_chain_alloc) Likewise.
8408 (df_chain_free) Likewise.
8409 * df.h (struct dataflow) Likewise.
8410
8411 2015-06-01 Martin Liska <mliska@suse.cz>
8412
8413 * cselib.c (new_elt_list):Use new type-based pool allocator.
8414 (new_elt_loc_list) Likewise.
8415 (unchain_one_elt_list) Likewise.
8416 (unchain_one_elt_loc_list) Likewise.
8417 (unchain_one_value) Likewise.
8418 (new_cselib_val) Likewise.
8419 (cselib_init) Likewise.
8420 (cselib_finish) Likewise.
8421
8422 2015-06-01 Martin Liska <mliska@suse.cz>
8423
8424 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8425 (sh_reorg) Likewise.
8426
8427 2015-06-01 Martin Liska <mliska@suse.cz>
8428
8429 * cfg.c (initialize_original_copy_tables):Use new type-based
8430 pool allocator.
8431 (free_original_copy_tables) Likewise.
8432 (copy_original_table_clear) Likewise.
8433 (copy_original_table_set) Likewise.
8434
8435 2015-06-01 Martin Liska <mliska@suse.cz>
8436
8437 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8438 pool allocator.
8439 (asan_mem_ref_new) Likewise.
8440 (free_mem_ref_resources) Likewise.
8441
8442 2015-06-01 Martin Liska <mliska@suse.cz>
8443
8444 * var-tracking.c (variable_htab_free):Use new type-based
8445 pool allocator.
8446 (attrs_list_clear) Likewise.
8447 (attrs_list_insert) Likewise.
8448 (attrs_list_copy) Likewise.
8449 (shared_hash_unshare) Likewise.
8450 (shared_hash_destroy) Likewise.
8451 (unshare_variable) Likewise.
8452 (var_reg_delete_and_set) Likewise.
8453 (var_reg_delete) Likewise.
8454 (var_regno_delete) Likewise.
8455 (drop_overlapping_mem_locs) Likewise.
8456 (variable_union) Likewise.
8457 (insert_into_intersection) Likewise.
8458 (canonicalize_values_star) Likewise.
8459 (variable_merge_over_cur) Likewise.
8460 (dataflow_set_merge) Likewise.
8461 (remove_duplicate_values) Likewise.
8462 (variable_post_merge_new_vals) Likewise.
8463 (dataflow_set_preserve_mem_locs) Likewise.
8464 (dataflow_set_remove_mem_locs) Likewise.
8465 (variable_from_dropped) Likewise.
8466 (variable_was_changed) Likewise.
8467 (set_slot_part) Likewise.
8468 (clobber_slot_part) Likewise.
8469 (delete_slot_part) Likewise.
8470 (loc_exp_insert_dep) Likewise.
8471 (notify_dependents_of_changed_value) Likewise.
8472 (emit_notes_for_differences_1) Likewise.
8473 (vt_emit_notes) Likewise.
8474 (vt_initialize) Likewise.
8475 (vt_finalize) Likewise.
8476
8477 2015-06-01 Martin Liska <mliska@suse.cz>
8478
8479 * ira-color.c (init_update_cost_records):Use new type-based
8480 pool allocator.
8481 (get_update_cost_record) Likewise.
8482 (free_update_cost_record_list) Likewise.
8483 (finish_update_cost_records) Likewise.
8484 (initiate_cost_update) Likewise.
8485
8486 2015-06-01 Martin Liska <mliska@suse.cz>
8487
8488 * lra.c (init_insn_regs): Use new type-based pool allocator.
8489 (new_insn_reg) Likewise.
8490 (free_insn_reg) Likewise.
8491 (free_insn_regs) Likewise.
8492 (finish_insn_regs) Likewise.
8493 (init_insn_recog_data) Likewise.
8494 (init_reg_info) Likewise.
8495 (finish_reg_info) Likewise.
8496 (lra_free_copies) Likewise.
8497 (lra_create_copy) Likewise.
8498 (invalidate_insn_data_regno_info) Likewise.
8499
8500 2015-06-01 Martin Liska <mliska@suse.cz>
8501
8502 * lra-lives.c (free_live_range): Use new type-based pool allocator.
8503 (free_live_range_list) Likewise.
8504 (create_live_range) Likewise.
8505 (copy_live_range) Likewise.
8506 (lra_merge_live_ranges) Likewise.
8507 (remove_some_program_points_and_update_live_ranges) Likewise.
8508 (lra_live_ranges_init) Likewise.
8509 (lra_live_ranges_finish) Likewise.
8510
8511 2015-06-01 Martin Liska <mliska@suse.cz>
8512
8513 * et-forest.c (et_new_occ): Use new type-based pool allocator.
8514 (et_new_tree): Likewise.
8515 (et_free_tree): Likewise.
8516 (et_free_tree_force): Likewise.
8517 (et_free_pools): Likewise.
8518 (et_split): Likewise.
8519
8520 2015-06-01 Martin Liska <mliska@suse.cz>
8521
8522 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8523 to header file.
8524 * alloc-pool.h (pool_allocator::pool_allocator): New function.
8525 (pool_allocator::release): Likewise.
8526 (inline pool_allocator::release_if_empty): Likewise.
8527 (inline pool_allocator::~pool_allocator): Likewise.
8528 (pool_allocator::allocate): Likewise.
8529 (pool_allocator::remove): Likewise.
8530
8531 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8532
8533 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8534 in comment.
8535
8536 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8537
8538 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8539 to fusible_ops.
8540 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8541 (arm_macro_fusion_p): Likewise.
8542 (arm_macro_fusion_pair_p): Likewise.
8543
8544 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8545
8546 * config/aarch64/aarch64-protos.h (tune_params): Rename
8547 fuseable_ops to fusible_ops.
8548 * config/aarch64/aarch64.c (generic_tunings): Rename
8549 fuseable_ops to fusible_ops.
8550 (cortexa53_tunings): Likewise.
8551 (cortexa57_tunings): Likewise.
8552 (thunderx_tunings): Likewise.
8553 (xgene1_tunings): Likewise.
8554 (aarch64_macro_fusion_p): Likewise.
8555 (aarch64_macro_fusion_pair_p): Likewise.
8556
8557 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
8558
8559 * config/s390/driver-native.c: New file.
8560 * config/s390/x-native: New file.
8561 * config.host: Add new files for s390.
8562 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8563 and -march=native
8564 * config.gcc: Likewise.
8565 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8566 * config/s390/s390-opts.h (enum processor_type): Ditto.
8567 * config/s390/s390.c (s390_option_override): Catch unhandled
8568 PROCESSOR_NATIVE
8569
8570 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
8571
8572 PR target/65527
8573 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8574 redirection for instrumented calls.
8575 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8576 (append_compiler_options): Append -fcheck-pointer-bounds.
8577 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8578 (chkp_redirect_edge): New.
8579 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8580 (chkp_redirect_edge): New.
8581
8582 2015-06-01 Richard Biener <rguenther@suse.de>
8583
8584 PR tree-optimization/66280
8585 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8586 def-use walking.
8587
8588 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8589
8590 * config/aarch64/aarch64.md
8591 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8592 logic_shift_imm.
8593
8594 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8595
8596 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8597 Remove obsolete kludge.
8598
8599 2015-06-01 Richard Biener <rguenther@suse.de>
8600
8601 * tree-ssa-reassoc.c (get_rank): Simplify.
8602
8603 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8606 * configure: Regenerated.
8607
8608 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
8609
8610 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8611 issue (add space between string literal and macro).
8612 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8613
8614 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
8615
8616 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8617 implict or explicit -fPIE or -fpie.
8618
8619 2015-05-30 Mike Frysinger <vapier@gentoo.org>
8620
8621 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8622
8623 2015-05-28 DJ Delorie <dj@redhat.com>
8624
8625 * expmed.c (extract_bit_field_1): Avoid clobbering a
8626 yet-to-be-used base/index register.
8627
8628 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
8629
8630 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8631 (alias_stats): Add num_universal.
8632 (alias_set_subset_of): Special case pointers; be ready for NULL
8633 children.
8634 (alias_sets_conflict_p): Special case pointers; be ready for NULL
8635 children.
8636 (init_alias_set_entry): Break out from ...
8637 (record_alias_subset): ... here; propagate new fields;
8638 allocate children only when really needed.
8639 (get_alias_set): Do less generous pointer globbing.
8640 (dump_alias_stats_in_alias_c): Update statistics.
8641
8642 2015-05-30 Alan Modra <amodra@gmail.com>
8643
8644 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8645 correct block for use of r12.
8646 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8647
8648 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8649
8650 PR target/66215
8651 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8652 with -mhotpatch=.
8653
8654 2015-05-29 Jakub Jelinek <jakub@redhat.com>
8655
8656 PR tree-optimization/66142
8657 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8658 virtual phis that feed themselves.
8659
8660 2015-05-29 Richard Biener <rguenther@suse.de>
8661
8662 PR tree-optimization/66314
8663 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8664 parameter that says which loop the new block belongs to.
8665 (ssa_create_duplicates): Blocks duplicated for the threaded
8666 path belong to the loop of the thread destination.
8667
8668 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8669
8670 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8671 to cleanup-saved-temps.
8672 * doc/sourcebuild.texi (Clean up generated test files): Expand
8673 introduction.
8674 (dg-keep-saved-temps): Document new proc.
8675 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8676 cleanup-saved-temps): Remove.
8677
8678 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
8679
8680 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8681 gcc_AC_CHECK_DECLS.
8682 * configure: Regenerate.
8683
8684 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8685
8686 * config/nios2/linux.h (CPP_SPEC): Define.
8687
8688 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8689
8690 * config/microblaze/linux.h (CPP_SPEC): Define.
8691
8692 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8693
8694 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8695 -pthread is specified.
8696
8697 2015-05-28 Richard Biener <rguenther@suse.de>
8698
8699 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8700 (vect_fixup_scalar_cycles_with_patterns): Likewise.
8701 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8702 after pattern recog.
8703 (vect_create_epilog_for_reduction): Properly handle reductions
8704 with patterns.
8705 (vectorizable_reduction): Likewise.
8706 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
8707 reduction chains.
8708 (vect_get_constant_vectors): Create the correct number of
8709 initial values for reductions.
8710 (vect_schedule_slp_instance): Handle reduction chains that are
8711 type changing properly.
8712 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
8713
8714 2015-05-28 Richard Biener <rguenther@suse.de>
8715
8716 PR tree-optimization/66142
8717 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
8718 values better in memcpy destination handling. Handle non-aliasing
8719 we discover here.
8720
8721 2015-05-28 Lawrence Velázquez <vq@larryv.me>
8722
8723 PR target/63810
8724 * config/darwin-c.c (version_components): New global enum.
8725 (parse_version, version_as_legacy_macro)
8726 (version_as_modern_macro, macosx_version_as_macro): New functions.
8727 (version_as_macro): Remove.
8728 (darwin_cpp_builtins): Use new function.
8729
8730 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
8731
8732 * builtins.c (expand_builtin_acc_on_device): Mark parameters
8733 with ATTRIBUTE_UNUSED.
8734
8735 2015-05-28 Julian Brown <julian@codesourcery.com>
8736
8737 PR libgomp/65742
8738
8739 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
8740 sequence for !ACCEL_COMPILER.
8741
8742 2015-05-28 Nick Clifton <nickc@redhat.com>
8743
8744 * config/rx/rx.c (push_regs): New function. Extracts code from...
8745 (rx_expand_prologue): ... here. Use push_regs to push even small
8746 spans of registers.
8747 (pop_regs): New function.
8748 (rx_expand_epilogue): Use pop_regs to pop even small spans of
8749 registers.
8750
8751 2015-05-28 Richard Biener <rguenther@suse.de>
8752
8753 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
8754 member.
8755 (SLP_INSTANCE_BODY_COST_VEC): Remove.
8756 (vect_update_slp_costs_according_to_vf): Likewise.
8757 (vect_slp_analyze_operations): Update prototype.
8758 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
8759 vect_update_slp_costs_according_to_vf, adjust.
8760 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
8761 (vect_analyze_slp_cost_1): Likewise.
8762 (vect_analyze_slp_cost): Likewise. Properly deal with
8763 widening reduction ops. Commit body costs.
8764 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
8765 cost for loops from here.
8766 (vect_slp_analyze_operations): But do it from here when
8767 the vectorization factor is known and stmts are analyzed.
8768 (vect_bb_vectorization_profitable_p): Simplify.
8769 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
8770 (vect_update_slp_costs_according_to_vf): Remove.
8771
8772 2015-05-27 Magnus Granberg <zorry@gentoo.org>
8773 H.J. Lu <hongjiu.lu@intel.com>
8774
8775 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
8776 (BUILD_CFLAGS): Likewise.
8777 (BUILD_CXXFLAGS): Likewise.
8778 (LINKER): Add @NO_PIE_FLAG@.
8779 (BUILD_LDFLAGS): Likewise.
8780 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
8781 --enable-default-pie.
8782 * common.opt (fPIE): Initialize to -1.
8783 (fpie): Likewise.
8784 (no-pie): New option.
8785 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
8786 * configure.ac: Add --enable-default-pie.
8787 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
8788 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
8789 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
8790 * gcc.c (NO_PIE_SPEC): New.
8791 (PIE_SPEC): Likewise.
8792 (NO_FPIE1_SPEC): Likewise.
8793 (FPIE1_SPEC): Likewise.
8794 (NO_FPIE2_SPEC): Likewise.
8795 (FPIE2_SPEC): Likewise.
8796 (NO_FPIE2_SPEC): Likewise.
8797 (FPIE_SPEC): Likewise.
8798 (NO_FPIE_SPEC): Likewise.
8799 (NO_FPIC1_SPEC): Likewise.
8800 (FPIC1_SPEC): Likewise.
8801 (NO_FPIC2_SPEC): Likewise.
8802 (FPIC2_SPEC): Likewise.
8803 (NO_FPIC2_SPEC): Likewise.
8804 (FPIC_SPEC): Likewise.
8805 (NO_FPIC_SPEC): Likewise.
8806 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
8807 (FPIE1_OR_FPIC1_SPEC): Likewise.
8808 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
8809 (FPIE2_OR_FPIC2_SPEC): Likewise.
8810 (NO_FPIE_AND_FPIC_SPEC): Likewise.
8811 (FPIE_OR_FPIC_SPEC): Likewise.
8812 (LD_PIE_SPEC): Likewise.
8813 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
8814 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
8815 * config/darwin.h (PIE_SPEC): Renamed to ...
8816 (DARWIN_PIE_SPEC): This.
8817 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
8818 * config/darwin9.h (PIE_SPEC): Renamed to ...
8819 (DARWIN_PIE_SPEC): This.
8820 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
8821 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8822 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
8823 FPIE2_OR_FPIC2_SPEC.
8824 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
8825 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
8826 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
8827 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8828 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8829 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
8830 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
8831 * config/m32r/m32r.h (ASM_SPEC): Likewise.
8832 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
8833 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8834 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
8835 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
8836 * config/sparc/linux.h (ASM_SPEC): Likewise.
8837 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8838 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
8839 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
8840 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8841 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8842 * config/sparc/sparc.h (ASM_SPEC): Likewise.
8843 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
8844 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
8845 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
8846 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
8847 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
8848 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
8849 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
8850 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
8851 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
8852 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
8853 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
8854 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
8855 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8856 * config/vax/linux.h (ASM_SPEC): Likewise.
8857 * doc/install.texi: Document --enable-default-pie.
8858 * doc/invoke.texi: Document -no-pie.
8859 * config.in: Regenerated.
8860 * configure: Likewise.
8861
8862 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8863
8864 PR rtl-optimization/66168
8865 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
8866 can_move_invariant_reg.
8867
8868 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
8869
8870 PR target/66148
8871 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
8872 REG_EQUAL note when doing insert.
8873
8874 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
8875 instead of "%d" for 'o' operand.
8876
8877 2015-05-27 Nathan Sidwell <nathan@acm.org>
8878
8879 PR c++/66270
8880 * tree.c (build_pointer_type_for_mode): Canonical type does not
8881 inherit can_alias_all.
8882 (build_reference_type_for_mode): Likewise.
8883
8884 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
8885
8886 * expr.h (array_at_struct_end_p): Move to...
8887 (array_ref_element_size): Likewise.
8888 (component_ref_field_offset): Likewise.
8889 * tree.h (array_ref_element_size): ...here.
8890 (array_at_struct_end_p): Likewise.
8891 (component_ref_field_offset): Likewise.
8892 * expr.c (array_ref_element_size): Move to...
8893 (array_ref_low_bound): Likewise.
8894 (array_at_struct_end_p): Likewise.
8895 (array_ref_up_bound): Likewise.
8896 (component_ref_field_offset): Likewise.
8897 * tree.c (array_ref_element_size): ...here.
8898 (array_ref_low_bound): Likewise.
8899 (array_ref_up_bound): Likewise.
8900 (array_at_struct_end_p): Likewise.
8901 (component_ref_field_offset): Likewise.
8902
8903 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
8904 Szabolcs Nagy <szabolcs.nagy@arm.com>
8905
8906 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
8907
8908 2015-05-27 Jason Merrill <jason@redhat.com>
8909
8910 PR bootstrap/66304
8911 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
8912 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
8913 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
8914
8915 2015-05-22 Aditya Kumar <hiraditya@msn.com>
8916
8917 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
8918 is true.
8919
8920 * statistics.c (statistics_fini_pass): Print pass name.
8921
8922 2015-05-27 Richard Biener <rguenther@suse.de>
8923
8924 PR tree-optimization/66272
8925 Revert parts of
8926 2014-08-15 Richard Biener <rguenther@suse.de>
8927
8928 PR tree-optimization/62031
8929 * tree-data-ref.c (dr_analyze_indices): Do not set
8930 DR_UNCONSTRAINED_BASE.
8931 (dr_may_alias_p): All indirect accesses have to go the
8932 formerly DR_UNCONSTRAINED_BASE path.
8933 * tree-data-ref.h (struct indices): Remove
8934 unconstrained_base member.
8935 (DR_UNCONSTRAINED_BASE): Remove.
8936
8937 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
8938
8939 * dwarf2out.c: Remove block_map.
8940 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
8941 (gen_lexical_block_die): Same.
8942 (dwarf2out_function_decl): Remove block_map use.
8943 (dwarf2out_c_finalize): Same.
8944 * tree-core.h (struct tree_block): Add die field.
8945 * tree.h (BLOCK_DIE): New.
8946
8947 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8948
8949 PR target/65358
8950 * expr.c (memory_load_overlap): New function.
8951 (emit_push_insn): When pushing partial args to the stack would
8952 clobber the register part load the overlapping part into a pseudo
8953 and put it into the hard reg after pushing. Change return type
8954 to bool. Add bool argument.
8955 * expr.h (emit_push_insn): Change return type to bool.
8956 Add bool argument.
8957 * calls.c (expand_call): Cancel sibcall optimization when encountering
8958 partial argument on targets with ARGS_GROW_DOWNWARD and
8959 !STACK_GROWS_DOWNWARD.
8960 (emit_library_call_value_1): Update callsite of emit_push_insn.
8961 (store_one_arg): Likewise.
8962
8963 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
8964
8965 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
8966
8967 2015-05-27 Martin Liska <mliska@suse.cz>
8968
8969 * Makefile.in: Add additional dependencies related to memory report
8970 enhancement.
8971 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
8972 * bitmap.c (struct bitmap_descriptor_d): Remove.
8973 (struct loc): Likewise.
8974 (struct bitmap_desc_hasher): Likewise.
8975 (bitmap_desc_hasher::hash): Likewise.
8976 (bitmap_desc_hasher::equal): Likewise.
8977 (get_bitmap_descriptor): Likewise.
8978 (bitmap_register): User new memory descriptor API.
8979 (register_overhead): Likewise.
8980 (bitmap_find_bit): Register nsearches and search_iter statistics.
8981 (struct bitmap_output_info): Remove.
8982 (print_statistics): Likewise.
8983 (dump_bitmap_statistics): Use new memory descriptor.
8984 * bitmap.h (struct bitmap_usage): New class.
8985 * genmatch.c: Extend header file inclusion.
8986 * genpreds.c: Likewise.
8987 * ggc-common.c (struct ggc_usage): New class.
8988 (struct ggc_loc_desc_hasher): Remove.
8989 (ggc_loc_desc_hasher::hash): Likewise.
8990 (ggc_loc_desc_hasher::equal): Likewise.
8991 (struct ggc_ptr_hash_entry): Likewise.
8992 (struct ptr_hash_hasher): Likewise.
8993 (ptr_hash_hasher::hash): Likewise.
8994 (ptr_hash_hasher::equal): Likewise.
8995 (make_loc_descriptor): Likewise.
8996 (ggc_prune_ptr): Likewise.
8997 (dump_ggc_loc_statistics): Use new memory descriptor.
8998 (ggc_record_overhead): Likewise.
8999 (ggc_free_overhead): Likewise.
9000 (final_cmp_statistic): Remove.
9001 (cmp_statistic): Likewise.
9002 (ggc_add_statistics): Liekwise.
9003 (ggc_prune_overhead_list): Likewise.
9004 * hash-map-traits.h: New file.
9005 * hash-map.h (struct default_hashmap_traits): Move the traits to a
9006 separate header file.
9007 * hash-set.h: Pass memory statistics info to ctor.
9008 * hash-table.c (void dump_hash_table_loc_statistics): New function.
9009 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9010 (hash_table::~hash_table): Register memory release operation.
9011 (hash_table::alloc_entries): Handle memory allocation operation.
9012 (hash_table::expand): Likewise.
9013 * inchash.c (iterative_hash_hashval_t): Move implementation to header
9014 file.
9015 (iterative_hash_host_wide_int): Likewise.
9016 * inchash.h (class hash): Likewise.
9017 * mem-stats-traits.h: New file.
9018 * mem-stats.h: New file.
9019 (mem_location): Add new class.
9020 (mem_usage): Likewise.
9021 (mem_alloc_description): Likewise.
9022 * sese.c: Add new header file inclusision.
9023 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9024 and hash_set.
9025 * tree-sra.c: Add new header file inclusision.
9026 * vec.c (struct vec_descriptor): Remove.
9027 (hash_descriptor): Likewise.
9028 (struct vec_usage): Likewise.
9029 (struct ptr_hash_entry): Likewise.
9030 (hash_ptr): Likewise.
9031 (eq_ptr): Likewise.
9032 (vec_prefix::register_overhead): Use new memory descriptor API.
9033 (vec_prefix::release_overhead): Likewise.
9034 (add_statistics): Remove.
9035 (dump_vec_loc_statistics): Use new memory descriptor API.
9036 * vec.h (struct vec_prefix): Likewise.
9037 (va_heap::reserve): Likewise.
9038 (va_heap::release): Likewise.
9039 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9040
9041 2015-05-27 Richard Biener <rguenther@suse.de>
9042
9043 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9044 earlier and remove ??? comment.
9045 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9046 and got called from loop analysis bail out. Always pass the SLP
9047 node to the vectorizable_* functions.
9048 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9049 the premature SLP check here.
9050 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9051 detected SLP stmts.
9052 (vect_detect_hybrid_slp_1): Likewise.
9053
9054 2015-05-26 Jeff Law <law@redhat.com>
9055
9056 * combine.c (find_split_point): Verify that the shift count is a
9057 constant when choosing (plus (ashift ...)) as a split point.
9058
9059 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9060 No functional changes.
9061
9062 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
9063
9064 * ipa-polymorphic-call.c
9065 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9066 case when call target is already known.
9067
9068 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
9069
9070 PR target/65979
9071 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9072 take into account the case that operands[1] and operands[2]
9073 are the same register.
9074
9075 2015-05-26 Michael Matz <matz@suse.de>
9076
9077 PR middle-end/66251
9078
9079 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9080 stores.
9081 (vect_create_vectorized_demotion_stmts): Always set
9082 STMT_VINFO_VEC_STMT, also with SLP.
9083 (vectorizable_store): Handle strided group stores.
9084
9085 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9086
9087 PR target/66049
9088 * config/aarch64/aarch64.md
9089 (*adds_shift_imm_<mode>): New pattern.
9090 (*subs_shift_imm_<mode>): Likewise.
9091 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9092 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9093 (*add_uxt<mode>_shift2): Likewise.
9094 (*add_uxtsi_shift2_uxtw): Likewise.
9095 (*sub_uxt<mode>_shift2): Likewise.
9096 (*sub_uxtsi_shift2_uxtw): Likewise.
9097
9098 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
9099
9100 * config/rs6000/constraints.md (Y, U): Use match_test.
9101
9102 2015-05-26 Christian Bruel <christian.bruel@st.com>
9103
9104 PR target/52144
9105 * config/arm/arm.c (arm_option_check_internal)
9106 (arm_option_params_internal): Check opts->target_flags to set macros.
9107 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9108 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9109 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9110 (builtin_define): Replaced with def_or_undef_macro.
9111 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9112 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9113 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9114 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9115 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9116 (TARGET_ARM_FEATURE_LDREX_P)
9117 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9118 * config/arm/arm-c.c (def_or_undef_macro): New function.
9119 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9120
9121 2015-05-26 Christian Bruel <christian.bruel@st.com>
9122
9123 * c-common.h (builtin_define_with_int_value)
9124 (builtin_define_type_sizeof): Declare.
9125 * c-cppbuiltin.c (builtin_define_with_int_value)
9126 (builtin_define_type_sizeof): Externalize.
9127 (builtin_define_std): Cleanup declaration.
9128 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9129 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9130 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9131 (builtin_define, builtin_assert): New macros.
9132
9133 2015-05-26 Richard Biener <rguenther@suse.de>
9134
9135 PR tree-optimization/66142
9136 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9137 MEM_REFs for the same base address.
9138
9139 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9140
9141 PR ipa/66181
9142 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9143
9144 2015-05-26 Jason Merrill <jason@redhat.com>
9145
9146 * configure.ac: Set CXXFLAGS for ISL test.
9147 * configure: Regenerate.
9148
9149 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
9150 strstr and basename.
9151 * configure: Regenerate.
9152
9153 2015-05-26 Richard Biener <rguenther@suse.de>
9154
9155 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9156 X % C -> X & (C - 1) for C being a power-of two to ...
9157 * match.pd: ... patterns.
9158
9159 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
9160
9161 * match.pd (swapped_tcc_comparison): New operator list.
9162 (-A CMP -B): New simplification.
9163 * fold-const.c (fold_comparison): Remove corresponding code.
9164
9165 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9166
9167 * caller-save.c (init_caller_save): Base temporary register numbers
9168 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9169 * cfgloopanal.c (init_set_costs): Likewise.
9170 * dojump.c (prefer_and_bit_test): Likewise.
9171 * expr.c (init_expr_target): Likewise.
9172 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9173 * lower-subreg.c (init_lower_subreg): Likewise.
9174 * postreload.c (reload_cse_regs_1): Likewise.
9175
9176 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9177
9178 * gensupport.h (compute_test_codes): Declare.
9179 * gensupport.c (compute_predicate_codes): Rename to...
9180 (compute_test_codes): ...this. Generalize error message.
9181 (process_define_predicate): Update accordingly.
9182 * genpreds.c (compute_maybe_allows): Delete.
9183 (add_constraint): Use compute_test_codes to determine whether
9184 something can accept a SUBREG, REG or MEM.
9185
9186 2015-05-26 Torvald Riegel <triegel@redhat.com>
9187
9188 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9189 'memory model' to align with C++11; fix description of memory orders;
9190 fix a few typos.
9191
9192 2015-05-26 Richard Biener <rguenther@suse.de>
9193
9194 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9195 (vect_analyze_loop_operations): ... here. Remove slp parameter,
9196 detect whether we apply SLP. Remove call to
9197 vect_update_slp_costs_according_to_vf.
9198 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9199 vect_update_slp_costs_according_to_vf from here. Dispatch
9200 to vect_slp_analyze_operations to analyze SLP stmts.
9201 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9202 unused bb_vec_info parameter, adjust assert.
9203 (vect_slp_analyze_operations): Pass in the slp instance tree
9204 instead of bb_vec_info.
9205 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9206 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9207
9208 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9209
9210 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9211 Q_REGS. Expand comment.
9212 (REG_CLASS_NAMES): Ditto.
9213 (REG_CLASS_CONTENTS): Ditto.
9214
9215 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
9216
9217 PR target/66274
9218 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9219 when LEGACY_INT_REGNO_P is processed.
9220
9221 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9222
9223 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9224
9225 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9226
9227 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9228 register if not marked dead/unused, before return.
9229
9230 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9231
9232 PR lto/66180
9233 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9234 is set; check for assembler name at LTO time.
9235 (type_in_anonymous_namespace): Remove hacks, check that all
9236 anonymous types are called "<anon>"
9237 (odr_type_p): Simplify; add check for "<anon>"
9238 (odr_subtypes_equivalent): Add odr_type_p check.
9239 * tree.c (need_assembler_name_p): Even anonymous namespace needs
9240 assembler name.
9241
9242 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9243
9244 * ipa-utils.h (method_class_type): Remove.
9245 * cgraphunit.c (walk_polymorphic_call_targets): Use
9246 TYPE_METHOD_BASETYPE.
9247 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9248 on main variants only.
9249 (method_class_type): Remove.
9250 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9251 (build_type_inheritance_graph): Likewise.
9252 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9253 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9254 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9255
9256 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9257
9258 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9259 is_typedef_decl, typedef_variant_p): Constify.
9260 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9261 is_typedef_decl, typedef_variant_p): Constify.
9262
9263 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9264
9265 * defaults.h (gen_tablejump): New function.
9266 (HAVE_tablejump): Add default value.
9267 * expr.c: Adjust.
9268 * stmt.c: Likewise.
9269
9270 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9271
9272 * defaults.h (gen_store_multiple): New function.
9273 (HAVE_store_multiple): Add default value.
9274 * expr.c (move_block_from_reg): Adjust.
9275
9276 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9277
9278 * defaults.h (gen_load_multiple): New function.
9279 (HAVE_load_multiple): Add default value.
9280 * expr.c (move_block_to_reg): Adjust.
9281
9282 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9283
9284 * defaults.h (gen_mem_signal_fence): New function.
9285 (HAVE_mem_signal_fence): Add default value.
9286 * optabs.c: Adjust.
9287
9288 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9289
9290 * defaults.h (gen_memory_barrier): New function.
9291 (HAVE_memory_barrier): Add default value.
9292 * optabs.c: Adjust.
9293
9294 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9295
9296 * defaults.h (gen_mem_thread_fence): New function.
9297 (HAVE_mem_thread_fence): Add default definition.
9298 * optabs.c: Adjust.
9299
9300 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9301
9302 * combine.c (find_split_point): Check the value of HAVE_lo_sum
9303 instead of if it is defined.
9304 (combine_simplify_rtx): Likewise.
9305 * lra-constraints.c (process_address_1): Likewise.
9306 * config/darwin.c: Adjust.
9307 * genconfig.c (main): Always define HAVE_lo_sum.
9308
9309 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9310
9311 * genmatch.c (parser::parse_operation): Reject expanding
9312 operator-list inside 'for'.
9313
9314 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9315
9316 * genmatch.c (parser::parse_for): Reject iterator if used as
9317 operator-list.
9318
9319 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9320
9321 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9322 after end of id-list.
9323
9324 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9325
9326 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9327 we do not try to compute canonical type for type that does not need
9328 alias set.
9329 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9330 FUNCITON_TYPE.
9331 * tree.h (type_with_alias_set_p): New.
9332
9333 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9334
9335 * tree.c (gimple_canonical_types_compatible_p): Do not compare
9336 function attributes.
9337 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9338
9339 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
9340
9341 * Makefile.in (check_gcc_parallelize): Delete.
9342 (lang_checks_parallelized): Update comment.
9343
9344 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
9345
9346 PR rtl-optimization/66237
9347 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9348 location of an "as_a" cast.
9349
9350 2015-05-22 Jeff Law <law@redhat.com>
9351
9352 * config/pa/pa.md (non-canonical shift-add insns): Remove.
9353 (peepholes with non-canonical RTL sources): Remove.
9354 (peepholes for indexed stores of FP regs in integer modes): Match and
9355 generate canonical RTL.
9356
9357 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9358
9359 PR tree-optimization/63387
9360 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9361 ((x ord x) & (y ord y) -> (x ord y),
9362 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9363 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9364 vectors like scalars.
9365
9366 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9367
9368 * convert.c (convert_to_integer, convert_to_vector): Include the
9369 types in the error message.
9370
9371 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9372
9373 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9374 simplifications.
9375
9376 2015-05-22 Jeff Law <law@redhat.com>
9377
9378 * config/pa/pa.md (integer_indexed_store splitters): Use
9379 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
9380 insns -- adjusting the constant 2nd operand accordingly.
9381
9382 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9383 (plus (ashift X log2) Y) if it is a split point.
9384
9385 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9386 out of hppa_legitimize_address to handle both forms of a multiply
9387 by 2, 4 or 8.
9388 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9389 Always generate the ASHIFT variant as the result is not directly
9390 used in a MEM. Update comments and refactor slightly to improve
9391 readability.
9392
9393 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9394
9395 PR target/65491
9396 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9397 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
9398 (aarch64_composite_type_p): Return false if given type and mode are
9399 for a short vector.
9400
9401 2015-05-22 Richard Biener <rguenther@suse.de>
9402
9403 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9404 member.
9405 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9406 patterns when determining whether SLP is pure.
9407 (vect_is_slp_reduction): Remove check for pattern stmts.
9408 (vect_is_simple_reduction_1): Remove dead code.
9409 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9410 (vect_get_and_check_slp_defs): Pass in the stmt number.
9411 Allow the first def in a reduction to be not a pattern stmt when
9412 the rest of the stmts def are patterns.
9413 (vect_build_slp_tree_1): Allow tcc_expression codes like
9414 SAD_EXPR and DOT_PROD_EXPR.
9415 (vect_build_slp_tree): Adjust.
9416 (vect_analyze_slp): Refactor and move BB vect error message ...
9417 (vect_slp_analyze_bb_1): ... here.
9418
9419 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
9420
9421 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9422 for CSWTCH temporary.
9423
9424 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9425
9426 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9427 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
9428 unknown unspecs.
9429
9430 2015-05-22 Richard Biener <rguenther@suse.de>
9431
9432 PR tree-optimization/66251
9433 * tree-vect-stmts.c (vectorizable_conversion): Properly
9434 set STMT_VINFO_VEC_STMT even for the SLP case.
9435
9436 2015-05-22 Marek Polacek <polacek@redhat.com>
9437
9438 * doc/extend.texi: Use @pxref instead of @xref.
9439
9440 2015-05-22 hiraditya <hiraditya@msn.com>
9441
9442 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9443 redundant if.
9444
9445 2015-05-22 Richard Biener <rguenther@suse.de>
9446
9447 PR tree-optimization/65701
9448 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9449 Move peeling cost models into one place. Peel for alignment
9450 for single loads only if an aligned load is cheaper than
9451 an unaligned load.
9452
9453 2015-05-22 Marek Polacek <polacek@redhat.com>
9454
9455 PR c/47043
9456 * doc/extend.texi (Enumerator Attributes): New section.
9457 Document syntax of enumerator attributes.
9458
9459 2015-05-22 Richard Biener <rguenther@suse.de>
9460
9461 * tree-vect-loop.c (get_reduction_op): New function.
9462 (vect_model_reduction_cost): Use it, add reduc_index parameter.
9463 Make ready for BB reductions.
9464 (vect_create_epilog_for_reduction): Use get_reduction_op.
9465 (vectorizable_reduction): Init reduc_index to a valid value.
9466 Adjust vect_model_reduction_cost call.
9467 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9468 operand for reduction defaults. Add SAD_EXPR support.
9469 Assert we have a neutral op for SLP reductions.
9470 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9471 walking pattern stmt ops only recurse to SSA names.
9472
9473 2015-05-22 Richard Biener <rguenther@suse.de>
9474
9475 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9476 assert with guard, remove check on detected reduction.
9477 (vect_recog_sad_pattern): Likewise.
9478 (vect_recog_widen_sum_pattern): Likewise.
9479
9480 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9481
9482 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9483 __always_inline__ attribute.
9484 (vaesdq_u8): Likewise.
9485 (vaesmcq_u8): Likewise.
9486 (vaesimcq_u8): Likewise.
9487 (vsha1cq_u32): Likewise.
9488 (vsha1mq_u32): Likewise.
9489 (vsha1pq_u32): Likewise.
9490 (vsha1h_u32): Likewise.
9491 (vsha1su0q_u32): Likewise.
9492 (vsha1su1q_u32): Likewise.
9493 (vsha256hq_u32): Likewise.
9494 (vsha256h2q_u32): Likewise.
9495 (vsha256su0q_u32): Likewise.
9496 (vsha256su1q_u32): Likewise.
9497 (vmull_p64): Likewise.
9498 (vmull_high_p64): Likewise.
9499
9500 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9501
9502 * final.c (final_scan_insn): Don't check HAVE_peephole with the
9503 preprocessor.
9504 * output.h: Likewise.
9505 * genconfig.c (main): Alwways define HAVE_peephole.
9506 * genpeep.c: Don't emit checks of HAVE_peephole.
9507
9508 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9509
9510 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9511 check HAVE_conditional_move with the preprocessor.
9512
9513 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9514
9515 * genconfig.c (main): Always define HAVE_conditional_move.
9516 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9517 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9518 is defined.
9519
9520 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9521
9522 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9523 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9524 and FRAME_POINTER_REGNUM with the preprocessor.
9525
9526 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9527
9528 * defaults.h: Add default for STACK_PUSH_CODE.
9529 * expr.c: Don't redefine STACK_PUSH_CODE.
9530 * recog.c: Likewise.
9531
9532 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9533
9534 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9535 sched-deps.c: Use if instead of preprocessor checks with
9536 STACK_GROWS_DOWNWARD.
9537
9538 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9539
9540 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9541 is defined.
9542 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9543 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9544 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9545 * doc/tm.texi: Regenerate.
9546
9547 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
9548
9549 PR target/66232
9550 * config/i386/constraints.md (Bg): New constraint for GOT memory
9551 operand.
9552 * config/i386/i386.md (*call_got_x32): New pattern.
9553 (*call_value_got_x32): Likewise.
9554 * config/i386/predicates.md (GOT_memory_operand): New predicate.
9555
9556 2015-05-21 Jakub Jelinek <jakub@redhat.com>
9557
9558 PR tree-optimization/66233
9559 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9560 Simplify.
9561
9562 2015-05-21 Jeff Law <law@redhat.com>
9563
9564 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9565 than MULT for shadd sequences.
9566
9567 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
9568
9569 * alias.c (alias_stats): New static var.
9570 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9571 (dump_alias_stats_in_alias_c): New function.
9572 * alias.h (dump_alias_stats_in_alias_c): Declare.
9573 * tree-ssa-alias.c (dump_alias_stats): Call it.
9574
9575 2015-05-08 Michael Matz <matz@suse.de>
9576
9577 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9578 to strided_p.
9579 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9580 (STMT_VINFO_STRIDED_P): ... this.
9581 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9582 (vect_verify_datarefs_alignment): Likewise.
9583 (vect_enhance_data_refs_alignment): Likewise.
9584 (vect_analyze_data_ref_access): Likewise.
9585 (vect_analyze_data_refs): Accept strided stores.
9586 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9587 (vect_model_load_cost): Adjust for macro rename.
9588 (vectorizable_mask_load_store): Likewise.
9589 (vectorizable_load): Likewise.
9590 (vectorizable_store): Open code strided stores.
9591
9592 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9593
9594 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9595 Document sqrt_insn.
9596
9597 2015-05-21 Richard Biener <rguenther@suse.de>
9598
9599 PR c++/66211
9600 * match.pd: Guard pattern optimzing (int)(float)int
9601 conversions to apply only on GIMPLE.
9602
9603 2015-05-21 Jeff Law <law@redhat.com>
9604
9605 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9606 multiply-accumulate/shift-add insn generation.
9607
9608 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
9609
9610 PR target/54236
9611 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9612 operands[1] are the same.
9613
9614 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9615
9616 PR middle-end/66221
9617 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9618 build_distinct_type_copy to copy bounds.
9619
9620 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
9621
9622 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9623 Change to unsigned int.
9624
9625 2015-05-20 Jeff Law <law@redhat.com>
9626
9627 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9628 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9629 (pa_shadd_constant_p): Allow constants for shadd insns rather
9630 than valid scaling constants for memory addresses.
9631 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9632 * config/pa/predicates.md (mem_shadd_operand): New predicate.
9633 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9634 (shift-add insns using ASHIFT): New patterns.
9635
9636 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
9637
9638 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9639 feasible.
9640 (fix_up_fall_thru_edges): Likewise.
9641 (fix_crossing_conditional_branches): Likewise. Promote jump targets
9642 from to rtx_insn to rtx_code_label where feasible.
9643 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9644 gen_move_insn (returned type changed to rtx_insn).
9645 * builtins.c (expand_errno_check): Fix arguments of
9646 do_compare_rtx_and_jump (now expects rtx_code_label).
9647 (expand_builtin_acc_on_device): Likewise.
9648 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9649 invert_jump (now exprects rtx_jump_insn).
9650 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9651 (construct_init_block): Use rtx_code_label.
9652 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9653 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9654 calling redirect_jump.
9655 (patch_jump_insn): Likewise.
9656 (redirect_branch_edge): Likewise.
9657 (force_nonfallthru_and_redirect): Likewise.
9658 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9659 when suitable.
9660 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9661 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9662 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9663 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9664 to store the value retured by gen_label_rtx.
9665 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9666 rtx_jump_insn.
9667 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9668 (split_branches): Fix calls of redirect_jump.
9669 * dojump.c (jumpifnot): Promote argument type from rtx to
9670 rtx_code_label.
9671 (jumpifnot_1): Likewise.
9672 (jumpif): Likewise.
9673 (jumpif_1): Likewise.
9674 (do_jump_1): Likewise.
9675 (do_jump): Likewise. Use rtx_code_label when feasible.
9676 (do_jump_by_parts_greater_rtx): Likewise.
9677 (do_jump_by_parts_zero_rtx): Likewise.
9678 (do_jump_by_parts_equality_rtx): Likewise.
9679 (do_compare_rtx_and_jump): Likewise.
9680 * dojump.h: Update function prototypes.
9681 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9682 returns rtx_insn).
9683 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9684 rtx_jump_insn.
9685 (emit_label_before): Likewise.
9686 (emit_jump_insn_after_noloc): Likewise.
9687 (emit_jump_insn_after_setloc): Likewise.
9688 (emit_jump_insn_after): Likewise
9689 (emit_jump_insn_before_setloc): Likewise.
9690 (emit_jump_insn_before): Likewise.
9691 (emit_label_before): Promote return type to rtx_code_label.
9692 (emit_label): Likewise.
9693 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9694 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9695 gen_move_insn.
9696 (emit_stack_restore): Likewise.
9697 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9698 (do_cmp_and_jump): Likewise.
9699 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9700 from rtx to rtx_code_label.
9701 (gen_move_insn_uncast): New function.
9702 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9703 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9704 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9705 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9706 invert_jump_1 and redirect_jump_1.
9707 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
9708 do_compare_rtx_and_jump.
9709 (expand_addsub_overflow): Likewise.
9710 (expand_neg_overflow): Likewise.
9711 (expand_mul_overflow): Likewise.
9712 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
9713 return value of gen_move_insn.
9714 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
9715 * loop-doloop.c (add_test): Use rtx_code_label.
9716 (doloop_modify): Likewise.
9717 (doloop_optimize): Likewise.
9718 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
9719 * lra-constraints.c (emit_spill_move): Remove cast of value returned
9720 by gen_move_insn.
9721 (inherit_reload_reg): Add cast when calling dump_insn_slim.
9722 (split_reg): Likewise.
9723 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
9724 gen_move_insn.
9725 * optabs.c (expand_binop_directly): Remove casts of values returned by
9726 maybe_gen_insn.
9727 (expand_unop_direct): Likewise.
9728 (expand_abs): Likewise.
9729 (maybe_emit_unop_insn): Likewise.
9730 (maybe_gen_insn): Promote return type to rtx_insn.
9731 * optabs.h: Update prototype of maybe_gen_insn.
9732 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
9733 redundant cast.
9734 * recog.c (struct peep2_insn_data): Promote type of insn field to
9735 rtx_insn.
9736 (peep2_reinit_state): Use NULL instead of NULL_RTX.
9737 (peep2_attempt): Remove casts of insn in peep2_insn_data.
9738 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
9739 * recog.h (struct insn_gen_fn): Promote return types of function
9740 pointers and operator ().from rtx to rtx_insn.
9741 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
9742 (fill_eager_delay_slots): Likewise.
9743 (relax_delay_slots): Likewise.
9744 (make_return_insns): Likewise.
9745 (dbr_schedule): Likewise.
9746 (optimize_skips): Likewise.
9747 (reorg_redirect_jump): Likewise.
9748 (fill_slots_from_thread): Likewise.
9749 * reorg.h: Update prototypes.
9750 * resource.c (find_dead_or_set_registers): Use dyn_cast to
9751 rtx_jump_insn instead of check. Use it's jump_target method.
9752 * rtl.h (rtx_jump_insn::jump_label): Define new method.
9753 (rtx_jump_insn::jump_target): Define new method.
9754 (rtx_jump_insn::set_jump_target): Define new method.
9755 * rtlanal.c (tablejump_p): Promote type of one local variable.
9756 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
9757 (sched_analyze_insn): Likewise.
9758 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
9759 (print_insn): Likewise.
9760 * stmt.c (label_rtx): Promote return type to rtx_insn.
9761 (force_label_rtx): Likewise.
9762 (jump_target_rtx): Define new function.
9763 (expand_label): Use it, get rid of one cast.
9764 (expand_naked_return): Promote rtx to rtx_code_label.
9765 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
9766 (expand_case): Use rtx_code_label instread of rtx where feasible.
9767 (expand_sjlj_dispatch_table): Likewise.
9768 (emit_case_nodes): Likewise.
9769 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
9770 * store-motion.c (insert_store): Make use of new return type of
9771 gen_move_insn and remove a cast.
9772 (replace_store_insn): Likewise.
9773
9774 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
9775
9776 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
9777 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
9778
9779 2015-05-20 Jeff Law <law@redhat.com>
9780
9781 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
9782 dispose of the jump thread path when the jump threading
9783 opportunity is cancelled.
9784
9785 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9786
9787 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
9788 when printing the caret character.
9789
9790 2015-05-20 Marek Polacek <polacek@redhat.com>
9791
9792 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
9793
9794 2015-05-20 Marek Polacek <polacek@redhat.com>
9795
9796 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
9797 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
9798 * gimple-fold.c (canonicalize_bool): Likewise.
9799 (same_bool_result_p): Likewise.
9800 * tree-if-conv.c (parse_predicate): Likewise.
9801
9802 2015-05-20 Marek Polacek <polacek@redhat.com>
9803
9804 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
9805 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
9806
9807 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9808
9809 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
9810 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
9811 values.
9812
9813 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
9814
9815 * config/mips/mips.h (micromips_globals): Declare.
9816
9817 2015-05-20 David Malcolm <dmalcolm@redhat.com>
9818
9819 * timevar.def (TV_INITIALIZE_RTL): New.
9820 * toplev.c (initialize_rtl): Use an auto_timevar to account this
9821 function's time to TV_INITIALIZE_RTL.
9822
9823 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
9824
9825 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
9826 gimple_build_nop calls.
9827 (chkp_find_bounds_for_elem): Likewise.
9828 (chkp_get_zero_bounds): Likewise.
9829 (chkp_get_none_bounds): Likewise.
9830 (chkp_get_bounds_by_definition): Likewise.
9831 (chkp_generate_extern_var_bounds): Likewise.
9832 (chkp_get_bounds_for_decl_addr): Likewise.
9833 (chkp_get_bounds_for_string_cst): Likewise.
9834
9835 2015-05-20 Bin Cheng <bin.cheng@arm.com>
9836
9837 PR tree-optimization/65447
9838 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
9839 (dump_use, dump_uses): Support to dump sub use.
9840 (record_use): New parameters to support sub use. Remove call to
9841 dump_use.
9842 (record_sub_use, record_group_use): New functions.
9843 (compute_max_addr_offset, split_all_small_groups): New functions.
9844 (group_address_uses, rewrite_use_address): New functions.
9845 (strip_offset): New declaration.
9846 (find_interesting_uses_address): Call record_group_use.
9847 (add_candidate): New assertion.
9848 (infinite_cost_p): Move definition forward.
9849 (add_costs): Check INFTY cost and return immediately.
9850 (get_computation_cost_at): Clear setup cost and dependent bitmap
9851 for sub uses.
9852 (determine_use_iv_cost_address): Compute cost for sub uses.
9853 (rewrite_use_address_1): Rename from old rewrite_use_address.
9854 (free_loop_data): Free sub uses.
9855 (tree_ssa_iv_optimize_loop): Call group_address_uses.
9856
9857 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9858 Jim Wilson <jim.wilson@linaro.org>
9859
9860 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
9861 new fields loadv and storev.
9862 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
9863 Initialize loadv and storev.
9864 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
9865 (cortexa53_extra_costs): Likewise.
9866 (cortexa57_extra_costs): Likewise.
9867 (xgene1_extra_costs): Likewise.
9868 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
9869 rtx_costs.
9870
9871 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9872
9873 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
9874 storev.
9875 (cortexa8_extra_costs): Likewise.
9876 (cortexa5_extra_costs): Likewise.
9877 (cortexa7_extra_costs): Likewise.
9878 (cortexa12_extra_costs): Likewise.
9879 (cortexa15_extra_costs): Likewise.
9880 (v7m_extra_costs): Likewise.
9881
9882 2015-05-20 Jeff Law <law@redhat.com>
9883
9884 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
9885 instead of open-coded version. Also delete the jump thread created
9886 within this function.
9887
9888 2015-05-20 Alan Modra <amodra@gmail.com>
9889
9890 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
9891 stack adjusting insn. Formatting.
9892 (rs6000_emit_prologue): Track stack adjusting insn, and use of
9893 r12. If possible, emit first -fsplit-stack arg pointer insn
9894 before stack adjust. Don't use r12 to save cr if split-stack.
9895
9896 2015-05-20 Alan Modra <amodra@gmail.com>
9897
9898 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
9899 Define.
9900 (rs6000_supports_split_stack): New function.
9901 * gcc/config/rs6000/rs6000.c (machine_function): Add
9902 split_stack_arg_pointer.
9903 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
9904 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
9905 rather than virtual_incoming_args_rtx.
9906 (rs6000_va_start): Likewise.
9907 (split_stack_arg_pointer_used_p): New function.
9908 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
9909 (morestack_ref): New var.
9910 (gen_add3_const, rs6000_expand_split_stack_prologue,
9911 rs6000_internal_arg_pointer, rs6000_live_on_entry,
9912 rs6000_split_stack_space_check): New functions.
9913 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
9914 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
9915 (UNSPECV_SPLIT_STACK_RETURN): Define.
9916 (split_stack_prologue, load_split_stack_limit,
9917 load_split_stack_limit_di, load_split_stack_limit_si,
9918 split_stack_return, split_stack_space_check): New expands and insns.
9919 * gcc/config/rs6000/rs6000-protos.h
9920 (rs6000_expand_split_stack_prologue): Declare.
9921 (rs6000_split_stack_space_check): Declare.
9922
9923 2015-05-20 Alan Modra <amodra@gmail.com>
9924
9925 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
9926 (direct_return): Test vrsave_size rather than vrsave_mask.
9927 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
9928 (rs6000_emit_epilogue): Likewise.
9929
9930 2015-05-20 Alan Modra <amodra@gmail.com>
9931
9932 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
9933 when not saving registers.
9934 (debug_stack_info): Adjust to omit printing unused offsets,
9935 as before.
9936 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
9937 expression.
9938
9939 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9940
9941 PR c++/65835
9942 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
9943 value_type to const char *.
9944
9945 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
9946
9947 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
9948 to build a biarch toolchain again.
9949
9950 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
9951
9952 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
9953 or implicit declarations.
9954 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
9955 into it.
9956 (get_odr_type): Check type has linkage before adding bases.
9957 (register_odr_type): Check that type has linkage before adding it.
9958 (type_known_to_have_no_deriavations_p): Rename to ..
9959 (type_known_to_have_no_derivations_p): This one.
9960 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
9961 (type_known_to_have_no_derivations_p): This one.
9962 * ipa-polymorphic-call.c
9963 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
9964 type has linkage.
9965
9966 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
9967
9968 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
9969 (layout_type): Use RECORD_OR_UNION_TYPE_P.
9970
9971 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9972
9973 * config/s390/s390.c (s390_vector_bool_type_p): New function.
9974 (s390_invalid_binary_op): New function.
9975 (TARGET_INVALID_BINARY_OP): Define macro.
9976
9977 2015-05-19 David Sherwood <david.sherwood@arm.com>
9978
9979 * loop-invariant.c (create_new_invariant): Don't calculate address cost
9980 if mode is not a scalar integer.
9981 (get_inv_cost): Increase computational cost for unused invariants.
9982
9983 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9984
9985 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
9986 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
9987 * config/s390/s390-builtin-types.def: New file.
9988 * config/s390/s390-builtins.def: New file.
9989 * config/s390/s390-builtins.h: New file.
9990 * config/s390/s390-c.c: New file.
9991 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
9992 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
9993 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
9994 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
9995 prototypes.
9996 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
9997 Include.
9998 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
9999 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10000 variable definitions.
10001 (s390_const_operand_ok): New function.
10002 (s390_expand_builtin): Rewrite.
10003 (s390_init_builtins): New function.
10004 (s390_handle_vectorbool_attribute): New function.
10005 (s390_attribute_table): Add s390_vector_bool attribute.
10006 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10007 (s390_branch_condition_mask): Generate masks for new modes.
10008 (s390_expand_vec_compare_cc): New function.
10009 (s390_mangle_type): Add mangling for vector bool types.
10010 (enum s390_builtin): Remove.
10011 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10012 efpc builtins.
10013 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10014 s390_cpu_cpp_builtins.
10015 (REGISTER_TARGET_PRAGMAS): New macro.
10016 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10017 (insn_cmp mode attribute): Add new CC modes.
10018 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10019 (lcbb): New pattern definition.
10020 * config/s390/s390intrin.h: Include vecintrin.h.
10021 * config/s390/t-s390: New file.
10022 * config/s390/vecintrin.h: New file.
10023 * config/s390/vector.md: Include vx-builtins.md.
10024 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10025 support.
10026
10027 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10028
10029 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10030 CCVFHE.
10031 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10032 (s390_select_ccmode): Likewise.
10033 (s390_canonicalize_comparison): Swap operands if necessary.
10034 (s390_expand_vec_compare_scalar): Expand DFmode compare using
10035 single element vector instructions.
10036 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10037 (s390_branch_condition_mask): Generate CC masks for the new modes.
10038 * config/s390/s390.md (v0, vf, vd): New mode attributes.
10039 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10040 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10041 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10042 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10043 (*extend<DSF:mode><BFP:mode>2): New insn definition.
10044 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10045 (extend<DSF:mode><BFP:mode>2): Turn into expander.
10046 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10047 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10048 (sqrt<mode>2): Add vector instruction.
10049
10050 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10051
10052 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10053 constraints.
10054 * config/s390/predicates.md (const0_operand, constm1_operand)
10055 (constable_operand): Accept vector operands.
10056 * config/s390/s390-modes.def: Add supported vector modes.
10057 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10058 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10059 (s390_bytemask_vector_p, s390_expand_vec_strlen)
10060 (s390_expand_vec_compare, s390_expand_vcond)
10061 (s390_expand_vec_init): Add prototypes.
10062 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10063 (s390_vector_mode_supported_p): New function.
10064 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10065 (s390_contiguous_bitmask_vector_p): New function.
10066 (s390_bytemask_vector_p): New function.
10067 (s390_split_ok_p): Vector regs don't work either.
10068 (regclass_map): Add VEC_REGS.
10069 (s390_legitimate_constant_p): Handle vector constants.
10070 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10071 (legitimate_reload_vector_constant_p): New function.
10072 (s390_preferred_reload_class): Handle CONST_VECTOR.
10073 (s390_reload_symref_address): Likewise.
10074 (s390_secondary_reload): Vector memory instructions only support
10075 short displacements. Rename reload*_nonoffmem* to reload*_la*.
10076 (s390_emit_ccraw_jump): New function.
10077 (s390_expand_vec_strlen): New function.
10078 (s390_expand_vec_compare): New function.
10079 (s390_expand_vcond): New function.
10080 (s390_expand_vec_init): New function.
10081 (s390_dwarf_frame_reg_mode): New function.
10082 (print_operand): Handle addresses with 'O' and 'R' constraints.
10083 (NR_C_MODES, constant_modes): Add vector modes.
10084 (s390_output_pool_entry): Handle vector constants.
10085 (s390_hard_regno_mode_ok): Handle vector registers.
10086 (s390_class_max_nregs): Likewise.
10087 (s390_cannot_change_mode_class): New function.
10088 (s390_invalid_arg_for_unprototyped_fn): New function.
10089 (s390_function_arg_vector): New function.
10090 (s390_function_arg_float): Remove size variable.
10091 (s390_pass_by_reference): Handle vector arguments.
10092 (s390_function_arg_advance): Likewise.
10093 (s390_function_arg): Likewise.
10094 (s390_return_in_memory): Vector values are returned in a VR if
10095 possible.
10096 (s390_function_and_libcall_value): Handle vector arguments.
10097 (s390_gimplify_va_arg): Likewise.
10098 (s390_call_saved_register_used): Consider the arguments named.
10099 (s390_conditional_register_usage): Disable v16-v31 for non-vec
10100 targets.
10101 (s390_preferred_simd_mode): New function.
10102 (s390_support_vector_misalignment): New function.
10103 (s390_vector_alignment): New function.
10104 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10105 (TARGET_VECTOR_MODE_SUPPORTED_P)
10106 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10107 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10108 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10109 (TARGET_VECTOR_ALIGNMENT): Define target macro.
10110 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10111 (FIRST_PSEUDO_REGISTER): Increase value.
10112 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10113 (VECTOR_REG_P): Define macros.
10114 (FIXED_REGISTERS, CALL_USED_REGISTERS)
10115 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10116 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10117 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10118 Add vector registers.
10119 (CANNOT_CHANGE_MODE_CLASS): Call C function.
10120 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10121 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10122 memory.
10123 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10124 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10125 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10126 (VR*_REGNUM): New constants.
10127 (ALL): New mode iterator.
10128 (INTALL): Remove mode iterator.
10129 Include vector.md.
10130 (movti): Implement TImode moves for VRs.
10131 Disable TImode splitter for VR targets.
10132 Implement splitting TImode GPR<->VR moves.
10133 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10134 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10135 reload<mode>_la_in, reload<mode>_la_out.
10136 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10137 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10138 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10139 (mov<mode> SF SD): Prefer lder, lde for loading.
10140 Add lrl and strl instructions.
10141 Add vector instructions.
10142 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10143 Call s390_expand_vec_strlen on z13.
10144 (*cc_to_int): Change predicate to nonimmediate_operand.
10145 (addti3): Rename to *addti3. New expander.
10146 (subti3): Rename to *subti3. New expander.
10147 * config/s390/vector.md: New file.
10148
10149 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10150
10151 * common/config/s390/s390-common.c (processor_flags_table): Add
10152 z13.
10153 * config.gcc: Add z13.
10154 * config/s390/s390-opts.h (enum processor_type): Add
10155 PROCESSOR_2964_Z13.
10156 * config/s390/s390.c (s390_adjust_priority): Check for
10157 PROCESSOR_2964_Z13.
10158 (s390_reorg): Likewise.
10159 (s390_sched_reorder): Likewise.
10160 (s390_sched_variable_issue): Likewise.
10161 (s390_loop_unroll_adjust): Likewise.
10162 (s390_option_override): Likewise. Default to -mvx when available.
10163 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10164 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10165 (TARGET_VX_ABI): Define macros.
10166 macros.
10167 (TARGET_DEFAULT): Add MASK_OPT_VX.
10168 * config/s390/s390.md ("cpu" attribute): Add z13.
10169 ("cpu_facility" attribute): Add vec.
10170 * config/s390/s390.opt (processor_type): Add z13.
10171 (mvx): New options.
10172 * doc/invoke.texi: Add z13 option for -march.
10173
10174 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10175
10176 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10177 mode check to make sure that only scalar integer values are
10178 accepted.
10179
10180 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10181
10182 * tree.c (verify_type_variant): Fix #undef.
10183 (gimple_canonical_types_compatible_p): Move here from lto.c
10184 (verify_type): Verify TYPE_CANONICAL compatibility.
10185 * tree.h (gimple_canonical_types_compatible_p): Declare.
10186
10187 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10188
10189 PR middle-end/66199
10190 * tree.h (OMP_TEAMS_COMBINED): Define.
10191 * gimplify.c (enum gimplify_omp_var_data): Add
10192 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10193 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10194 (omp_notice_variable): Accept both ORT_TEAMS
10195 and ORT_COMBINED_TEAMS. Don't recurse if
10196 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10197 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10198 GOVD_FIRSTPRIVATE.
10199 (omp_no_lastprivate): New function.
10200 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10201 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10202 notice_outer and set appropriate bits, otherwise make
10203 sure default(none) combined constructs won't complain.
10204 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10205 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10206 omp_no_lastprivate either remove the clause or turn it
10207 into OMP_CLAUSE_PRIVATE.
10208 (gimplify_omp_for): Fix up handling of implicit
10209 lastprivate or linear iterators.
10210 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10211 ORT_COMBINED_TEAMS.
10212 * omp-low.c (lower_omp_for_lastprivate): For combined
10213 for simd use fd.loop.n2 from the for rather than simd.
10214
10215 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10216
10217 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10218 instead of gen_rtx_raw_REG.
10219 (cris_expand_epilogue): Likewise.
10220 * config/microblaze/microblaze.c (microblaze_classify_address):
10221 Likewise.
10222 * config/sparc/sparc.md: Likewise.
10223
10224 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
10225
10226 * config/alpha/alpha.c (alpha_legitimize_reload_address)
10227 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10228 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10229 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10230 Use CASE_CONST_SCALAR_INT.
10231 (print_operand) <case 'M'>: Use mode_width_operand to check the
10232 value of the constant.
10233 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10234 * config/alpha/predicates.md (input_operand): Use general_operand
10235 instead of match_code as operand check.
10236 (symbolic_operand): Use match_code with subexpression digits.
10237 * config/alpha/constraints.md (Q): Ditto.
10238
10239 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10240
10241 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10242
10243 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10244
10245 * config/s390/s390.c (s390_secondary_reload): Fix check for
10246 load/store relative.
10247
10248 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10249
10250 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
10251 alternative_mask to uint64_t.
10252
10253 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10254
10255 PR tree-optimization/66187
10256 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10257 Pass TYPE_SIGN to tree_int_cst_min_precision. If
10258 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10259
10260 2015-05-19 David Malcolm <dmalcolm@redhat.com>
10261
10262 * diagnostic.c (diagnostic_report_current_module): Strengthen
10263 local "new_map" from const line_map * to
10264 const line_map_ordinary *.
10265 * genmatch.c (error_cb): Likewise for local "map".
10266 (output_line_directive): Likewise for local "map".
10267 * input.c (expand_location_1): Likewise for local "map".
10268 Pass NULL rather than &map to
10269 linemap_unwind_to_first_non_reserved_loc, since the value is never
10270 read from there, and the value written back not read from here.
10271 (is_location_from_builtin_token): Strengthen local "map" from
10272 const line_map * to const line_map_ordinary *.
10273 (dump_location_info): Strengthen locals "map" from
10274 line_map *, one to const line_map_ordinary *, the other
10275 to const line_map_macro *.
10276 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10277 const line_map * to const line_map_macro *.
10278 (maybe_unwind_expanded_macro_loc): Add a call to
10279 linemap_check_macro when writing to the "map" field of the
10280 loc_map_pair.
10281 Introduce local const line_map_ordinary * "ord_map", using it in
10282 place of "map" in the part of the function where we know we have
10283 an ordinary map. Strengthen local "m" from const line_map * to
10284 const line_map_ordinary *.
10285
10286 2015-05-19 Nick Clifton <nickc@redhat.com>
10287
10288 PR target/66156
10289 * config/msp430/msp430.md (zero_extendhisi2): Add support for
10290 separate source and destination registers.
10291
10292 2015-05-19 Richard Biener <rguenther@suse.de>
10293
10294 PR tree-optimization/66165
10295 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10296 for no load permutation.
10297
10298 PR tree-optimization/66185
10299 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10300 when building the SLP node from scalars.
10301
10302 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10303 Tristan Gingold <gingold@adacore.com>
10304
10305 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10306 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10307 (expand_stack_restore): Call record_new_stack_level.
10308 (expand_stack_save): Do not call do_pending_stack_adjust.
10309 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10310 * calls.c (expand_call): Call record_new_stack_level for alloca.
10311 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10312 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10313 (update_sjlj_context): New global function.
10314 * except.h (update_sjlj_context): Declare.
10315 * explow.c (record_new_stack_level): New global function.
10316 (allocate_dynamic_stack_space): Call record_new_stack_level.
10317 * explow.h (record_new_stack_level): Declare.
10318 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10319 * cfgrtl.c (duplicate_insn_chain): Likewise.
10320
10321 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10322
10323 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10324 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10325 STACK_GROWS_DOWNWARD as normal if.
10326 (expand_call): Likewise.
10327
10328 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
10329
10330 PR target/54236
10331 * config/sh/sh.md (*round_int_even): New insn_and_split and
10332 accompanying new unnamed split.
10333
10334 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10335
10336 * bitmap.c (bitmap_set_range): Handle count==1 specially.
10337 (bitmap_clear_range): Likewise.
10338 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10339 bitmap_set_range unconditionally.
10340 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10341 * df-scan.c (df_mark_reg): Likewise.
10342 * haifa-sched.c (setup_ref_regs): Likewise.
10343 * sched-rgn.c (update_live_1): Likewise.
10344
10345 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10346
10347 * regs.h (END_HARD_REGNO): Delete.
10348 (END_REGNO): Move to...
10349 * rtl.h: ...here.
10350 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10351 * caller-save.c (mark_set_regs): Likewise.
10352 * combine.c (move_deaths, distribute_notes): Likewise.
10353 * cse.c (invalidate, invalidate_for_call): Likewise.
10354 * df-scan.c (df_ref_record): Likewise.
10355 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10356 (record_last_reg_set_info): Likewise.
10357 * reg-stack.c (convert_regs_exit): Likewise.
10358 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10359 * resource.c (update_live_status): Likewise.
10360 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10361
10362 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10363
10364 * rtl.h (reg_info): Add an nregs field.
10365 (REG_NREGS): Use it.
10366 (SET_REGNO_RAW): Delete.
10367 (set_regno_raw): New function.
10368 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10369 (END_REGNO): Redefine in terms of REG_NREGS.
10370 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10371 SET_REGNO_RAW.
10372 * emit-rtl.c (set_mode_and_regno): Likewise.
10373 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10374 instead of SET_REGNO_RAW.
10375
10376 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10377
10378 * rtl.h (PUT_MODE_RAW): New macro.
10379 (PUT_REG_NOTE_KIND): Use it.
10380 (set_mode_and_regno): Declare.
10381 (gen_raw_REG): Change regno to "unsigned int".
10382 (gen_rtx_REG): Change "unsigned" to "unsigned int".
10383 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10384 use set_mode_and_regno to change the mode of registers.
10385 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10386 * emit-rtl.c (set_mode_and_regno): New function.
10387 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
10388 * caller-save.c (reg_save_code): Use set_mode_and_regno.
10389 * expr.c (init_expr_target): Likewise.
10390 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10391 * postreload.c (reload_cse_simplify_operands): Likewise.
10392
10393 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10394
10395 * caller-save.c (init_caller_save): Use word_mode and
10396 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10397 * expr.c (init_expr_target): Likewise.
10398 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10399 * postreload.c (reload_cse_regs_1): Likewise.
10400
10401 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10402
10403 * rtl.def (REG): Change format to "r".
10404 * rtl.h (rtunion): Remove rt_reg.
10405 (reg_info): New structure.
10406 (rtx_def): Add reg field to main union.
10407 (X0REGATTR): Delete.
10408 (REG_CHECK): New macro.
10409 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10410 * rtl.c (rtx_format): Document "r".
10411 (rtx_code_size): Handle REG specially.
10412 * gengenrtl.c (special_format): Return true for formats
10413 that include 'r'.
10414 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10415 Deal with REG_ATTRS after the field loop.
10416 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10417 * expmed.c (init_expmed): Call gen_raw_REG instead of
10418 gen_rtx_raw_REG.
10419 * expr.c (init_expr_target): Likewise.
10420 * regcprop.c (maybe_mode_change): Likewise.
10421 * varasm.c (make_decl_rtl): Likewise.
10422 * final.c (leaf_renumber_regs_insn): Return early after
10423 handling REGs.
10424 * genemit.c (gen_exp): Handle 'r' fields.
10425 * genpeep.c (match_rtx): Likewise.
10426 * gensupport.c (subst_pattern_match): Likewise.
10427 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10428 (alter_constraints, subst_dup): Likewise.
10429 * read-rtl.c (read_rtx_code): Likewise.
10430 * print-rtl.c (print_rtx): Likewise.
10431 * genrecog.c (find_operand, find_matching_operand): Likewise.
10432 (validate_pattern, match_pattern_2): Likewise.
10433 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10434 (rtx_test::regno_field): New function.
10435 (operator ==, safe_to_hoist_p, transition_parameter_type)
10436 (parameter_type_string, print_parameter_value)
10437 (print_nonbool_test, print_test): Handle new enum values.
10438 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10439 * lra-constraints.c (operands_match_p): Likewise.
10440
10441 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10442
10443 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10444 Change type of new_regno to unsigned int.
10445 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10446 new_regno to unsigned int.
10447 (df_ref_change_reg_with_loc): Remove old_regno parameter.
10448 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
10449 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10450 (SET_REGNO_RAW): Add space after ",".
10451
10452 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10453
10454 * rtl.h (REG_NREGS): New macro
10455 * alias.c (record_set): Use it.
10456 * cfgcleanup.c (mark_effect): Likewise.
10457 * combine.c (likely_spilled_retval_1): Likewise.
10458 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10459 (move_deaths, distribute_notes): Likewise.
10460 * cselib.c (cselib_record_set): Likewise.
10461 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10462 * df-scan.c (df_mark_reg): Likewise.
10463 * dse.c (look_for_hardregs): Likewise.
10464 * dwarf2out.c (reg_loc_descriptor): Likewise.
10465 (multiple_reg_loc_descriptor): Likewise.
10466 * expr.c (write_complex_part, read_complex_part): Likewise.
10467 (emit_move_complex): Likewise.
10468 * haifa-sched.c (setup_ref_regs): Likewise.
10469 * ira-lives.c (mark_hard_reg_live): Likewise.
10470 * lra.c (lra_set_insn_recog_data): Likewise.
10471 * mode-switching.c (create_pre_exit): Likewise.
10472 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10473 (reload_combine_recognize_pattern): Likewise.
10474 (reload_combine_note_use, move2add_record_mode): Likewise.
10475 (reload_cse_move2add): Likewise.
10476 * reg-stack.c (subst_stack_regs_pat): Likewise.
10477 * regcprop.c (kill_value, copy_value): Likewise.
10478 (copyprop_hardreg_forward_1): Likewise.
10479 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10480 (build_def_use): Likewise.
10481 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10482 (deps_analyze_insn): Likewise.
10483 * sched-rgn.c (check_live_1, update_live_1): Likewise.
10484 * sel-sched.c (count_occurrences_equiv): Likewise.
10485 * valtrack.c (dead_debug_insert_temp): Likewise.
10486
10487 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10488
10489 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10490 * dse.c (note_add_store): Likewise.
10491 * ira-lives.c (mark_hard_reg_dead): Likewise.
10492 * loop-invariant.c (mark_reg_store): Likewise.
10493 (mark_reg_death): Likewise.
10494 * postreload.c (reload_combine): Likewise.
10495 (reload_combine_note_store): Likewise.
10496 (reload_combine_note_use): Likewise.
10497 * recog.c (peep2_reg_dead_p): Likewise.
10498
10499 2015-05-19 Alan Modra <amodra@gmail.com>
10500
10501 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10502 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10503 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10504 unused predicates.
10505 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10506 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
10507 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10508 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10509
10510 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
10511
10512 * config/mips/mips.md (JOIN_MODE): New mode iterator.
10513 (join2_load_Store<JOIN_MODE:mode>): New pattern.
10514 (join2_loadhi): Likewise.
10515 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10516 load-load and store-stores.
10517 * config/mips/mips.opt (mload-store-pairs): New option.
10518 (TARGET_LOAD_STORE_PAIRS): New macro.
10519 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10520 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10521 * config/mips/mips.c (mips_load_store_bonding_p): New function.
10522
10523 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
10524
10525 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10526 explicit swaps.
10527 * dojump.c (do_compare_rtx_and_jump): Likewise.
10528 * expmed.c (emit_store_flag_1): Likewise.
10529 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10530 * final.c (sprint_ul): Use std::reverse for reversing a string.
10531 * fold-const.c (extract_muldiv_1): Use std::swap.
10532 * genmodes.c (emit_mode_int_n): Likewise.
10533 * ifcvt.c (dead_or_predicable): Likewise.
10534 * ira-build.c (ira_merge_live_ranges): Likewise.
10535 (swap_allocno_copy_ends_if_necessary): Likewise.
10536 * ira.c (ira_setup_alts): Likewise.
10537 * loop-iv.c (iv_analyze_expr): Likewise.
10538 (implies_p): Likewise.
10539 (canon_condition): Likewise.
10540 * lra-constraints.c (swap_operands): Likewise.
10541 * lra-lives.c (lra_merge_live_ranges): Likewise.
10542 * omega.c (swap): Remove.
10543 (bswap): Remove.
10544 (omega_unprotect_1): Use std::swap.
10545 (omega_solve_geq): Likewise.
10546 * optabs.c (expand_binop_directly): Likewise.
10547 (expand_binop): Likewise.
10548 (emit_conditional_move): Likewise.
10549 (emit_conditional_add): Likewise.
10550 * postreload.c (reload_cse_simplify_operands): Likewise.
10551 * reg-stack.c (emit_swap_insn): Likewise.
10552 (swap_to_top): Likewise.
10553 (compare_for_stack_reg): Likewise.
10554 (subst_asm_stack_regs): Likewise.
10555 * reload.c (find_reloads): Likewise.
10556 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10557 * sel-sched.c (invoke_reorder_hooks): Likewise.
10558 (create_block_for_bookkeeping): Likewise.
10559 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10560 (lambda_matrix_right_hermite): Use std::swap.
10561 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10562 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10563 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10564 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10565 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10566 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10567 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10568 * tree-vrp.c (compare_ranges): Likewise.
10569 * var-tracking.c (add_with_sets): Likewise.
10570 (vt_find_locations): Likewise.
10571
10572 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
10573
10574 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10575 pie executables.
10576 (FBSD_ENDFILE_SPEC): Likewise.
10577 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10578 config/freebsd-spec.h.
10579 (ENDFILE_SPEC): Likewise.
10580
10581 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
10582 Richard Henderson <rth@redhat.com>
10583
10584 PR target/57032
10585 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10586 Check for a memory location that is not a reference (using an AND)
10587 to an unaligned location here.
10588 * config/alpha/predicates.md (normal_memory_operand): Remove.
10589
10590 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
10591
10592 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10593 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10594
10595 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
10596
10597 * config/mips/mips.c (micromips_globals): New variable.
10598 (mips_set_compression_mode): Save and reinitialize target-dependent
10599 state for microMIPS.
10600
10601 2015-05-18 Martin Liska <mliska@suse.cz>
10602
10603 * dbgcnt.def: Add new counter.
10604 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10605
10606 2015-05-18 Martin Liska <mliska@suse.cz>
10607
10608 * dbgcnt.def: Sort counters.
10609 * opts.c (common_handle_option): Do not compile if
10610 -fdbg-cnt-list is enabled.
10611
10612 2015-05-18 Tom de Vries <tom@codesourcery.com>
10613
10614 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10615 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
10616 address operator to va_list operand.
10617 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10618 unconditionally.
10619 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10620 operand.
10621 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10622 * config/s390/s390.c (s390_gimplify_va_arg): Same.
10623 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10624
10625 2015-05-18 Tom de Vries <tom@codesourcery.com>
10626
10627 * tree-ssa-tail-merge.c: Fix whitespace.
10628
10629 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
10630
10631 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10632 cortex-a17, and cortex-a17.cortex-a7.
10633
10634 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
10635
10636 PR target/54236
10637 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10638
10639 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
10640
10641 PR target/66174
10642 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10643 QImode inner modes for TARGET_AVX512BW. Force mask operand
10644 to a register for AVX512F modes.
10645
10646 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10647
10648 * toplev.c (emit_debug_global_declarations): Do not output debug info
10649 when doing slim LTO objects.
10650
10651 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10652
10653 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10654 odr_types_equivalent_p): Declare.
10655 (odr_type_p): Use gcc_checking_assert.
10656 (type_in_anonymous_namespace_p) Declare.
10657 (type_with_linkage_p): Declare.
10658 * common.opt (Wlto-type-mismatch): New warning.
10659 * ipa-devirt.c (compound_type_base): New function.
10660 (odr_or_derived_type_p): New function.
10661 (odr_types_equivalent_p): New function.
10662 (add_type_duplicate): Simplify.
10663 (type_with_linkage_p): Add hack to prevent false positives on C types
10664 (type_in_anonymous_namespace_p): Likewise.
10665 * tree.c (need_assembler_name_p): Use type_with_linkage.
10666 * tree.h (type_in_anonymous_namespace_p): Remove.
10667 * doc/invoke.texi (-Wlto-type-mismatch): Document
10668
10669 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10670
10671 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10672 (verify_type): Verify STRING_FLAG.
10673
10674 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10675
10676 PR fortran/44054
10677 * tree-pretty-print.c (percent_K_format): Replace locus pointer
10678 with accessor function.
10679 * tree-diagnostic.c (diagnostic_report_current_function): Use
10680 diagnostic_location function.
10681 (maybe_unwind_expanded_macro_loc): Likewise.
10682 (virt_loc_aware_diagnostic_finalizer): Likewise.
10683 (default_tree_printer): Replace locus pointer with accessor function.
10684 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10685 (diagnostic_set_info_translated): Initialize second location.
10686 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10687 (diagnostic_show_locus): Handle two locations. Call
10688 diagnostic_print_caret_line.
10689 (diagnostic_print_caret_line): New.
10690 (default_diagnostic_starter): Use diagnostic_location function.
10691 (diagnostic_report_diagnostic): Use diagnostic_location function.
10692 (verbatim): Do not set text.locus.
10693 * diagnostic.h (struct diagnostic_info): Remove location field.
10694 (struct diagnostic_context): Make caret_chars an array of two.
10695 (diagnostic_location): New inline.
10696 (diagnostic_expand_location): Handle two locations.
10697 (diagnostic_same_line): New inline.
10698 (diagnostic_print_caret_line): Declare.
10699 (CARET_LINE_MARGIN): New constant.
10700 * pretty-print.c (pp_printf): Do not set text.locus.
10701 (pp_verbatim): Do not set text.locus.
10702 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10703 (struct text_info): Replace locus pointer with locations
10704 array. Add accessor functions.
10705
10706 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
10707 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10708
10709 PR target/65768
10710 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
10711 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
10712 large constants in register instead of splitting them.
10713
10714 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
10715
10716 PR target/66140
10717 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
10718 replacements in memory addresses.
10719 (get_unaligned_address): Ditto.
10720
10721 2015-05-16 James Bowman <james.bowman@ftdichip.com>
10722
10723 * config/ft32/*: New files for FT32 port.
10724 * doc/install.texi: Add FT32 information.
10725 * doc/invoke.texi: Add FT32 information.
10726 * doc/md.texi: Add FT32 information.
10727 * doc/contrib.texi: Self added.
10728
10729 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
10730
10731 PR tree-optimization/64454
10732 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
10733 (-1 - A -> ~A): Remove unnecessary condition.
10734
10735 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10736
10737 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
10738 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10739 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
10740
10741 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
10742
10743 * ipa-chkp.h (chkp_wrap_function): New.
10744 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
10745 (chkp_wrap_function_name): New.
10746 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
10747 to get wrapper name.
10748 * lto-cgraph.c: Include ipa-chkp.h.
10749 (input_cgraph_1): Avoid alias chain for wrappers.
10750
10751 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
10752
10753 PR middle-end/66134
10754 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
10755 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
10756
10757 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10758
10759 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
10760 (AARCH64_FL_SLOWMUL): Delete.
10761 (AARCH64_FL_CRC): Redefine to 1<<3.
10762 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
10763
10764 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10765
10766 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
10767 casting.
10768
10769 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
10770
10771 * config/alpha/alpha.md (extendqidi2): Use general_operand
10772 instead of some_operand for operand[1] predicate.
10773 (extendhidi2): Ditto.
10774 (cbranchdi4): Use general_operand instead of some_operand
10775 for operand[1] and operands[2] predicates.
10776 (cstoredi4): Ditto.
10777 * config/alpha/predicates.md (some_operand): Remove unused predicate.
10778 (some_ni_operand): Ditto.
10779
10780 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
10781
10782 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
10783 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
10784 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
10785 low part of the constant using alpha_emit_set_const_1.
10786 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
10787
10788 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
10789
10790 * varasm.c (output_constant_pool_1): Pass down alignment from
10791 constant pool entry's descriptor to output_constant_pool_2.
10792 (output_object_block): Add comment prior to call to
10793 output_constant_pool_1.
10794
10795 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
10796
10797 PR rtl-optimization/65862
10798 * target.def (ira_change_pseudo_allocno_class): New hook.
10799 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
10800 value of the hook.
10801 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
10802 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
10803 hook.
10804 * ira-costs.c (find_costs_and_classes): Call the hook and change
10805 classes when it is necessary.
10806 * doc/tm.texi: Update.
10807
10808 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
10809
10810 * config/i386/i386.md (sibcall_memory): Check that register with
10811 callee address is not also used as one of the arguments, instead
10812 of checking that it is not live after the sibcall.
10813 (sibcall_pop_memory): Ditto.
10814 (sibcall_value_memory): Ditto.
10815 (sibcall_value_pop_memory): Ditto.
10816
10817 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
10818
10819 * generic-match-head.c (types_match): Handle non-types.
10820 * gimple-match-head.c (types_match): Likewise.
10821 * match.pd: Remove unnecessary TREE_TYPE for types_match.
10822
10823 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
10824
10825 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
10826 (csneg3<mode>_insn): Enable expansion of pattern.
10827
10828 2015-05-14 Nick Clifton <nickc@redhat.com>
10829
10830 * config/rl78/rl78.c (rl78_select_section): Select the correct
10831 default section based upon the category of the decl.
10832
10833 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
10834
10835 PR rtl-optimization/30967
10836 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
10837 destination mode for the cost of scc patterns.
10838
10839 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
10840
10841 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
10842 using SWIM248 mode iterator.
10843 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
10844 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
10845 for operand[2] constraint.
10846 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
10847
10848 2015-05-13 Jakub Jelinek <jakub@redhat.com>
10849
10850 PR middle-end/66133
10851 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
10852 make sure it is never noreturn, even when the task body does not
10853 return.
10854 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
10855 right before GIMPLE_OMP_RETURN.
10856 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
10857 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
10858 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
10859
10860 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10861
10862 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
10863 * tree-ssa-math-opts.c: Include params.h
10864 (pow_synth_sqrt_info): New struct.
10865 (representable_as_half_series_p): New function.
10866 (get_fn_chain): Likewise.
10867 (print_nested_fn): Likewise.
10868 (dump_fractional_sqrt_sequence): Likewise.
10869 (dump_integer_part): Likewise.
10870 (expand_pow_as_sqrts): Likewise.
10871 (gimple_expand_builtin_pow): Use above to attempt to expand
10872 pow as series of square roots. Removed now unused variables.
10873
10874 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
10875
10876 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
10877 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
10878 Remove *p0 and *p1 arguments. Rewrite function.
10879 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
10880 (alpha_split_const_mov): Update calls to alpha_extract_integer and
10881 alpha_emit_set_long_const.
10882 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
10883 (alpha_output_mi_thunk_osf): Ditto.
10884 * config/alpha/alpha.md (movti): Do not check operands[1]
10885 for CONST_DOUBLE.
10886
10887 2015-05-13 Richard Biener <rguenther@suse.de>
10888
10889 PR tree-optimization/66129
10890 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
10891 commutative.
10892 (vect_schedule_slp_instance): Fix typo.
10893
10894 2015-05-13 David Malcolm <dmalcolm@redhat.com>
10895
10896 * common.opt (fdump-internal-locations): New option.
10897 * input.c: Include diagnostic-core.h.
10898 (get_end_location): New function.
10899 (write_digit): New function.
10900 (write_digit_row): New function.
10901 (dump_location_range): New function.
10902 (dump_labelled_location_range): New function.
10903 (dump_location_info): New function.
10904 * input.h (dump_location_info): New prototype.
10905 * toplev.c (compile_file): Handle flag_dump_locations.
10906
10907 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
10908
10909 * gimple-expr.h (is_gimple_constant): Reorder.
10910 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
10911
10912 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
10913
10914 * combine.c (simplify_set): When generating a CC set, if the
10915 source already is in the correct mode, do not wrap it in a
10916 compare. Simplify the rest of that code.
10917
10918 2015-05-13 Richard Biener <rguenther@suse.de>
10919
10920 PR tree-optimization/66123
10921 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
10922 a taken edge.
10923
10924 2015-05-13 Richard Biener <rguenther@suse.de>
10925
10926 PR middle-end/66110
10927 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
10928 specially.
10929 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
10930
10931 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
10932
10933 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
10934 * aclocal.m4: Regenerated with automake-1.11.6.
10935
10936 2015-05-13 Tom de Vries <tom@codesourcery.com>
10937
10938 PR tree-optimization/66010
10939 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
10940 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
10941 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
10942 and rval based on do_deref.
10943
10944 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
10945
10946 PR target/65103
10947 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
10948 link time constants into adress expressions and therefore set
10949 their cost to 0.
10950
10951 2015-05-13 Jakub Jelinek <jakub@redhat.com>
10952
10953 PR target/66112
10954 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
10955 Use SWI248 iterator instead of SWI.
10956 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
10957 Use eq_attr "alternative" "0" instead of match_test in
10958 length_immediate attribute computation.
10959 (*mulvhi4, *mulvhi4_1): New define_insns.
10960
10961 PR target/66112
10962 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
10963 SIGNED to get precision of non-negative value.
10964
10965 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
10966
10967 PR target/66048
10968 * function.c (diddle_return_value_1): Process bounds first.
10969 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
10970 register.
10971
10972 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
10973
10974 PR rtl-optimization/64616
10975 * loop-invariant.c (can_move_invariant_reg): New.
10976 (move_invariant_reg): Call above new function to decide whether
10977 instruction can just be moved, skipping creation of temporary
10978 register.
10979
10980 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
10981
10982 PR target/pr66047.c
10983 * i386.c (ix86_function_sseregparm): Only return -1 if local function
10984 with implied regparm is called from -mno-sse function.
10985 (init_cumulative_args): Output error if ix86_function_sseregparm
10986 return -1 and SSE register would be needed.
10987 (function_arg_advance_32): Likewise.
10988 (function_arg_32): Likewise.
10989 * i386.h (ix86_args): Add decl field.
10990
10991 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
10992
10993 PR ipa/65873
10994 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
10995 inlines across optimization boundary.
10996
10997 2015-05-12 Jason Merrill <jason@redhat.com>
10998
10999 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11000 string literal and macro name.
11001
11002 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
11003
11004 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11005 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11006 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11007
11008 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11009
11010 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11011 (-Wmisleading-indentation): New option.
11012 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11013
11014 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
11015
11016 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11017 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11018 (alpha_extract_integer): Ditto.
11019 (alpha_legitimate_constant_p): Ditto.
11020 (alpha_split_tmode_pair): Ditto.
11021 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11022 (alpha_expand_mov): Ditto.
11023 (print_operand): Remove handling of 'H' modifier.
11024 <case 'm'>: Remove CONST_DOUBLE handling.
11025 (summarize_insn): Handle CONST_WIDE_INT.
11026 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11027 (anddi3): Ditto.
11028 (movti): Handle CONST_WIDE_INT.
11029 * config/alpha/constraints.md ('H'): Remove constraint definition.
11030 ('G'): Do not match MODE_FLOAT class.
11031 * config/alpha/predicates.md (const0_operand): Also match
11032 const_wide_int.
11033 (non_add_const_operand): Ditto.
11034 (non_zero_const_operand): Ditto.
11035 (some_operand): Ditto.
11036 (input_operand): Ditto. Handle CONST_WIDE_INT.
11037 (and_operand): Do not match const_double.
11038 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11039
11040 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
11041
11042 PR target/65697
11043 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11044 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11045 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11046 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11047 is_mm_seq_cst, is_mm_sync): New accessor functions.
11048 * builtins.c (expand_builtin_sync_operation,
11049 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11050 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11051 (get_memmodel, expand_builtin_atomic_compare_exchange,
11052 expand_builtin_atomic_load, expand_builtin_atomic_store,
11053 expand_builtin_atomic_clear): Use new accessor routines.
11054 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11055 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11056 (maybe_emit_sync_lock_test_and_set): Use new accessors and
11057 MEMMODEL_SYNC_ACQUIRE.
11058 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11059 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11060 expand_atomic_store): Use new accessors.
11061 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11062 * tsan.c (instrument_builtin_call): Update check for memory model beyond
11063 final enum to use MEMMODEL_LAST.
11064 * c-family/c-common.c: Use new accessor for memmodel_base.
11065 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11066 accessors.
11067 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11068 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11069 mem_thread_fence, *dmb): Likewise.
11070 * config/alpha/alpha.c (alpha_split_compare_and_swap,
11071 alpha_split_compare_and_swap_12): Likewise.
11072 * config/arm/arm.c (arm_expand_compare_and_swap,
11073 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11074 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11075 atomic_loaddi): Likewise.
11076 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11077 Likewise.
11078 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11079 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11080 use new accessors.
11081 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11082 atomic_store<mode>, atomic_compare_and_swap<mode>,
11083 atomic_exchange<mode>): Use new accessors.
11084 * config/mips/mips.c (mips_process_sync_loop): Likewise.
11085 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11086 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11087 rs6000_post_atomic_barrier): Add new cases.
11088 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11089 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11090 (atomic_load<mode>): Add new cases and use new accessors.
11091 (store_quadpti): Add new cases.
11092 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11093 accessors.
11094 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11095 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11096 model, not 8.
11097
11098 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11099
11100 * ipa-devirt.c (type_with_linkage_p): New function.
11101 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11102 type has linkage.
11103 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11104 (can_be_name_hashed_p): Simplify.
11105 (hash_odr_name): Check that type has linkage before checking if it is
11106 anonymous.
11107 (types_same_for_odr): Likewise.
11108 (odr_name_hasher::equal): Likewise.
11109 (odr_subtypes_equivalent_p): Likewise.
11110 (warn_types_mismatch): Likewise.
11111 (get_odr_type): Likewise.
11112 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11113 * ipa-utils.h (odr_type_p): Move offline.
11114 * tree.c (need_assembler_name_p): Fix handling of types
11115 without linkages.
11116 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11117
11118 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11119
11120 * timevar.c (timevar_enable): Delete in favor of...
11121 (g_timer): New global.
11122 (struct timevar_def): Move to timevar.h inside class timer.
11123 (struct timevar_stack_def): Likewise.
11124 (timevars): Delete global in favor of field "m_timevars" within
11125 class timer in timevar.h
11126 (stack): Likewise, in favor of field "m_stack".
11127 (unused_stack_instances): Likewise, in favor of field
11128 "m_unused_stack_instances".
11129 (start_time): Likewise, in favor of field "m_start_time".
11130 (get_time): Eliminate check for timevar_enable.
11131 (timer::timer): New function, built from part of timevar_init.
11132 (timevar_init): Rewrite idempotency test from using
11133 "timevar_enable" bool to using dynamic allocation of "g_timer".
11134 Move rest of implementation into timer's constructor.
11135 (timevar_push_1): Rename to...
11136 (timer::push): ...this, adding "m_" prefixes to variables that
11137 are now fields of timer.
11138 (timevar_pop_1): Likewise, rename to...
11139 (timer::pop): ...this, and add "m_" prefixes.
11140 (timevar_start): Replace test for "timevar_enable" with one for
11141 "g_timer", and move bulk of implementation to...
11142 (timer::start): ...here, adding "m_" prefixes.
11143 (timevar_stop): Likewise, from here...
11144 (timer::stop): ...to here.
11145 (timevar_cond_start): Likewise, from here...
11146 (timer::cond_start): ...to here.
11147 (timevar_cond_stop): Likewise, from here...
11148 (timer::cond_stop): ...to here.
11149 (validate_phases): Rename to...
11150 (timer::validate_phases): ...this, and add "m_" prefixes. Make
11151 locals "total" and "tv" const.
11152 (timevar_print): Rename to...
11153 (timer::print): ...this, and add "m_" prefixes. Make locals
11154 "total" and "tv" const. Eliminate test for timevar_enable.
11155 * timevar.h (timevar_enable): Eliminate.
11156 (g_timer): New declaration.
11157 (timevar_push_1): Eliminate.
11158 (timevar_pop_1): Eliminate.
11159 (timevar_print): Eliminate.
11160 (class timer): New class.
11161 (timevar_push): Rewrite to use g_timer.
11162 (timevar_pop): Likewise.
11163 * toplev.c (toplev::~toplev): Likewise.
11164
11165 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
11166
11167 * arm-protos.h (arm_sched_autopref): Delete.
11168 (tune_params): Re-organize, use enums for flag values.
11169 (FUSE_OPS): New macro.
11170 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11171 (ARM_PREFETCH_BENEFICIAL): Likewise.
11172 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11173 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11174 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11175 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11176 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11177 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
11178 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11179 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11180 format.
11181 (arm_option_override, thumb2_reorg, arm_print_tune_info)
11182 (aarch_macro_fusion_pair_p): Update uses of current_tune.
11183 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11184
11185 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
11186
11187 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11188 "break".
11189
11190 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
11191 Sandra Loosemore <sandra@codesourcery.com>
11192
11193 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11194 value.
11195 (REG_CLASS_NAMES): Add "IJMP_REGS".
11196 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11197 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11198 use new "c" register constraint.
11199 * config/nios2/constraint.md (c): New register constraint
11200 corresponding to IJMP_REGS.
11201
11202 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11203
11204 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11205 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11206 define_splits): Delete, revamp, transmogrify into ...
11207 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11208 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11209 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11210 New.
11211
11212 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11213
11214 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11215 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11216
11217 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11218
11219 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11220 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11221 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11222 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11223 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11224 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11225 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11226 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11227 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11228 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11229 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11230 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11231 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11232 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11233 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11234 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11235 and 30 corresponding splitters): Delete.
11236
11237 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11238
11239 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11240 zero_extract.
11241
11242 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11243
11244 * combine.c (recog_for_combine_1): New function, factored out
11245 from recog_for_combine.
11246 (change_zero_ext): New function.
11247 (recog_for_combine): If recog fails, try again with the pattern
11248 modified by change_zero_ext; if that still fails, restore the
11249 pattern.
11250
11251 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11252
11253 * combine.c (get_undo_marker): New function.
11254 (undo_to_marker): New function, largely factored out from ...
11255 (undo_all): ... this. Adjust.
11256
11257 2015-05-12 Richard Biener <rguenther@suse.de>
11258
11259 PR tree-optimization/66101
11260 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11261 fixup if we turn a loop exit edge to a fallthru edge.
11262
11263 2015-05-12 Richard Biener <rguenther@suse.de>
11264
11265 PR tree-optimization/37021
11266 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11267 (SLP_TREE_TWO_OPERATORS): New define.
11268 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11269 SLP_TREE_TWO_OPERATORS.
11270 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11271 SLP node.
11272 (vect_build_slp_tree): Adjust.
11273 (vect_analyze_slp_cost_1): Likewise.
11274 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11275 emitting two vector stmts and mixing the results.
11276
11277 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11278
11279 * call.c (print_z_candidates): Remove dead code.
11280
11281 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11282
11283 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11284 and zEC12_simple_fp.
11285 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11286 to 1.
11287
11288 2015-05-12 Tom de Vries <tom@codesourcery.com>
11289
11290 PR tree-optimization/66010
11291 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11292 ifn_va_arg.
11293 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11294 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
11295 va_lists are passed, and remove corresponding handling.
11296 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
11297 do_deref argument to ifn_va_arg.
11298 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11299 ifn_va_arg.
11300
11301 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11302
11303 PR target/65955
11304 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11305 REG before taking its REGNO.
11306
11307 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11308
11309 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11310 rsp->sign_bit_copies and rsp->nonzero_bits into ...
11311 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
11312 present to get more accurate information about the number of sign bit
11313 copies and non zero bits.
11314
11315 2015-05-12 Richard Biener <rguenther@suse.de>
11316
11317 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11318 do not allow unrolling.
11319
11320 2015-05-11 Richard Henderson <rth@redhat.com>
11321
11322 * config/i386/i386-modes.def (CCP): New.
11323 * config/i386/i386.c (put_condition_code): Handle it.
11324 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11325
11326 2015-05-11 Richard Henderson <rth@redhat.com>
11327
11328 * target.def (md_asm_clobbers): Replace with...
11329 (md_asm_adjust): this.
11330 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11331 (TARGET_MD_ASM_ADJUST): New.
11332 * tm.texi: Rebuild.
11333 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11334 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11335 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11336
11337 * cfgexpand.c (check_operand_nalternatives): Accept vector of
11338 constraints instead of lists of outputs and inputs.
11339 (expand_asm_stmt): Save and restore input_location around the
11340 body of the function. Move asm data into vectors instead of
11341 building tree lists. Generate cleanup sequences as needed,
11342 rather than waiting til the end. Use new md_asm_adjust hook.
11343
11344 * config/vxworks.c: Include vec.h before target.h.
11345 * gimple.c: Likewise.
11346 * incpath.c: Likewise.
11347 * mode-switching.c: Likewise.
11348
11349 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11350 (cris_md_asm_adjust): this.
11351 (TARGET_MD_ASM_CLOBBERS): Remove.
11352 (TARGET_MD_ASM_ADJUST): New.
11353 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11354 (ix86_md_asm_adjust): this.
11355 (TARGET_MD_ASM_CLOBBERS): Remove.
11356 (TARGET_MD_ASM_ADJUST): New.
11357 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11358 (mn10300_md_asm_adjust): this.
11359 (TARGET_MD_ASM_CLOBBERS): Remove.
11360 (TARGET_MD_ASM_ADJUST): New.
11361 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11362 (rs6000_md_asm_adjust): this.
11363 (TARGET_MD_ASM_CLOBBERS): Remove.
11364 (TARGET_MD_ASM_ADJUST): New.
11365 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11366 (visium_md_asm_adjust): this.
11367 (TARGET_MD_ASM_CLOBBERS): Remove.
11368 (TARGET_MD_ASM_ADJUST): New.
11369
11370 2015-05-11 Richard Henderson <rth@redhat.com>
11371
11372 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11373 if noutputs is zero.
11374 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11375
11376 * cfgexpand.c (expand_asm_operands): Merge into...
11377 (expand_asm_stmt): ... here.
11378
11379 * cfgexpand.c (expand_asm_operands): Don't call
11380 resolve_asm_operand_names.
11381 * stmt.c (resolve_asm_operand_names): Clarify block comment.
11382
11383 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
11384
11385 * dwarf2out.c (gen_member_die): Sanity check that we access
11386 TYPE_MAIN_VARIANT for TYPE_METHODS.
11387 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11388 checking TYPE_METHODS.
11389 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11390 if non-null.
11391 (build_distinct_type_copy): Clear TYPE_METHODS.
11392 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11393 (verify_type): Allow TYPE_METHODS to be error_mark_node.
11394 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11395
11396 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
11397
11398 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11399 (emit_pattern_before_setloc): Likewise.
11400
11401 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11402
11403 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11404 for define_peephole2s.
11405 (get_peephole2_pattern): New function.
11406 (main): Use it. Call validate_pattern.
11407
11408 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11409
11410 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11411 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11412 (Last callee saved reg is different for AVR_TINY architecture)
11413
11414 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11415
11416 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11417 when looking for memory references.
11418
11419 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11420
11421 PR target/65753
11422 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11423 via function pointers.
11424
11425 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11426
11427 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11428 indirect call by forcing address into a pseudo with -fno-plt.
11429 * common.opt (flag_plt): New option.
11430 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11431 ([-fno-plt]): Document.
11432
11433 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
11434
11435 PR bootstrap/66105
11436 * config/rs6000/option-defaults.h: Add space between string literal
11437 and macro name.
11438
11439 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11440
11441 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11442 accross ARM targets.
11443
11444 2015-05-11 Christian Bruel <christian.bruel@st.com>
11445
11446 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11447 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11448
11449 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11450
11451 PR rtl-optimization/66076
11452 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11453 Don't grow the heap array if it is already big enough from a
11454 previous iteration.
11455
11456 2015-05-11 Christian Bruel <christian.bruel@st.com>
11457
11458 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11459 (is_called_in_ARM_mode): Remove.
11460 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11461 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11462 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11463 arm_declare_function_name.
11464
11465 2015-05-11 Christian Bruel <christian.bruel@st.com>
11466
11467 * config/arm/arm.c (arm_option_override): Reoganized and split into :
11468 (arm_option_params_internal); New function.
11469 (arm_option_check_internal): New function.
11470 (arm_option_override_internal): New function.
11471 (thumb_code, thumb1_code): Remove.
11472 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11473 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11474 (thumb_code, thumb1_code): Remove.
11475 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11476
11477 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11478
11479 * config/alpha/alpha.c (alpha_emit_set_const_1)
11480 (alpha_emit_set_long_const, alpha_extract_integer)
11481 (alpha_legitimate_constant_p, alpha_split_const_mov)
11482 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11483 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11484 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11485 HOST_WIDE_INT_1U.
11486 * config/alpha/predicates.md (mode_mask_operand): Do not match
11487 const_double RTX.
11488 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11489 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11490 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11491 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11492 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11493
11494 2015-05-11 Jakub Jelinek <jakub@redhat.com>
11495
11496 PR target/65780
11497 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11498 default_binds_local_p_2.
11499 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11500 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11501
11502 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11503
11504 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11505
11506 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11507
11508 Patch by Richard Biener
11509 * coverage.c (coverage_obj_init): Delay building of type variant
11510 until the type is finished.
11511
11512 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11513
11514 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11515 mismatch between C and C++ type; compoare correctly ARG_TYPES
11516 for non-prototypes and output correctly parameter index for METHOD_TYPE.
11517 (odr_types_equivalent_p): Fix wording of warning about attributes;
11518 it is OK to match prototype and non-prototype.
11519
11520 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11521
11522 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11523 TYPE_ARG_TYPES list.
11524 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11525 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11526
11527 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11528
11529 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11530 * tree.h (is_lang_specific): Constify.
11531
11532 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
11533
11534 PR tree-optimization/64454
11535 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11536 Rewrite.
11537
11538 2015-05-08 Jason Merrill <jason@redhat.com>
11539
11540 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11541 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11542 config/darwin.h, config/darwin9.h, config/elfos.h,
11543 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11544 config/microblaze/microblaze.h, config/mips/mips.h,
11545 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11546 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11547 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11548 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11549 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11550 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11551 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11552 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11553 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11554 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11555 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11556 between string literal and macro name.
11557
11558 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11559
11560 * jump.c: Change argument types to rtx_insn *.
11561 * rtl.h: Adjust.
11562
11563 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11564
11565 * lra-constraints.c: Change argument type to rtx_insn *.
11566
11567 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11568
11569 * df-problems.c: Change argument type to rtx_insn *.
11570
11571 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11572
11573 * combine.c: Change argument type to rtx_insn *.
11574
11575 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11576
11577 * rtl.h: Adjust.
11578 * rtlanal.c: Change argument type to rtx_insn *.
11579
11580 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11581
11582 * sched-deps.c: Change argument types to rtx_insn *.
11583 * sched-int.h: Adjust.
11584
11585 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11586
11587 * dwarf2cfi.c: Change argument type to rtx_insn *.
11588
11589 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11590
11591 * ira.c (decrease_live_ranges_number): Changetype of local
11592 variable to rtx_insn *.
11593 * recog.c: Change argument types to rtx_insn *.
11594 * recog.h: Adjust.
11595
11596 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11597
11598 * reorg.c: Change argument types to rtx_insn *.
11599
11600 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11601
11602 * ira-color.c: Change argument types to rtx_insn *.
11603 * lra-eliminations.c: Likewise.
11604 * ira.h: Adjust.
11605
11606 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11607
11608 * gcse.c: Change argument types to rtx_insn *.
11609
11610 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11611
11612 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11613
11614 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11615
11616 * emit-rtl.c (emit_debug_insn_before): Change argument type to
11617 rtx_insn *.
11618 * rtl.h: Adjust.
11619
11620 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11621
11622 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11623 * rtl.h: Adjust.
11624
11625 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11626
11627 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11628 * rtl.h: Adjust.
11629
11630 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11631
11632 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11633 * rtl.h: Adjust.
11634
11635 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11636
11637 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11638 * rtl.h: Adjust.
11639
11640 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11641
11642 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11643 to rtx_insn *.
11644 * rtl.h: Adjust.
11645
11646 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11647
11648 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11649 to rtx_insn *.
11650 * rtl.h: Likewise.
11651
11652 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11653
11654 * except.c (can_nonlocal_goto): Change type of argument to
11655 rtx_insn *.
11656 * rtl.h: Adjust.
11657
11658 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11659
11660 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11661 * rtl.h: Adjust.
11662
11663 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11664
11665 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11666 * cfgrtl.c (can_delete_label_p): Adjust.
11667 * rtl.h: likewise.
11668
11669 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11670
11671 * reorg.c (stop_search_p): Change argument to rtx_insn *.
11672
11673 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11674
11675 * except.c (make_reg_eh_region_note): Change argument to
11676 rtx_insn *.
11677 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11678 * except.h: Adjust.
11679
11680 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11681
11682 * mode-switching.c (commit_mode_sets): Change type of local
11683 variable from rtx to rtx_insn *.
11684
11685 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
11686
11687 * doc/install.texi (--enable-languages): Add missing jit and lto info.
11688 Add ^ to grep command.
11689 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11690 arg to last gimple_simplify declaration. Add missing gimple_build
11691 declaration for built-in function case with four tree args.
11692
11693 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
11694 Szabolcs Nagy <szabolcs.nagy@arm.com>
11695
11696 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11697 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11698 (GNU_USER_DYNAMIC_LINKERN32): Update.
11699
11700 2015-05-08 Richard Biener <rguenther@suse.de>
11701
11702 PR tree-optimization/66036
11703 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11704 Handle strided group loads.
11705 (vect_verify_datarefs_alignment): Likewise.
11706 (vect_enhance_data_refs_alignment): Likewise.
11707 (vect_analyze_group_access): Likewise.
11708 (vect_analyze_data_ref_access): Likewise.
11709 (vect_analyze_data_ref_accesses): Likewise.
11710 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
11711 (vectorizable_load): Likewise.
11712
11713 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
11714
11715 * config/rs6000/rs6000.md: Require operand inequality in one
11716 of the peepholes.
11717
11718 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
11719 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11720
11721 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
11722 from (set ...).
11723 * config/rx/rx.md (movdi, movdf): Likewise.
11724 Likewise for define_peephole2s.
11725
11726 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11727
11728 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
11729 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
11730 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
11731 vtst_u64): Rewrite using gcc vector extensions.
11732
11733 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11734
11735 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
11736 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
11737
11738 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
11739
11740 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
11741
11742 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
11743
11744 * config/glibc-stdint.h (OPTION_MUSL): Define.
11745 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
11746 Change the definition based on OPTION_MUSL for 64 bit targets.
11747 * config/linux.h (OPTION_MUSL): Redefine.
11748 * config/alpha/linux.h (OPTION_MUSL): Redefine.
11749 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
11750 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
11751
11752 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
11753 Szabolcs Nagy <szabolcs.nagy@arm.com>
11754
11755 * config.gcc (LIBC_MUSL): New tm_defines macro.
11756 * config/linux.h (OPTION_MUSL): Define.
11757 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
11758 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
11759 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11760 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11761 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11762 * config/linux.opt (mmusl): New option.
11763 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
11764 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11765 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11766 * configure: Regenerate.
11767
11768 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
11769 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11770
11771 PR target/48904
11772 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
11773 * config/i386/knetbsd-gnu64.h: New file.
11774
11775 2015-05-08 Marek Polacek <polacek@redhat.com>
11776
11777 PR c/64918
11778 * doc/invoke.texi: Document -Woverride-init-side-effects.
11779
11780 2015-05-07 Marek Polacek <polacek@redhat.com>
11781
11782 PR c/65179
11783 * doc/invoke.texi: Document -Wshift-negative-value.
11784
11785 2015-05-06 Aditya Kumar <hiraditya@msn.com>
11786
11787 * gcov-tool.c (do_merge): Refactore to remove int ret.
11788 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
11789 !type == FUNC to type != FUNC.
11790 * reload.h (struct target_reload): Changee to type of
11791 x_spill_indirect_levels from bool to unsigned char.
11792
11793 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
11794
11795 * rtl.h (always_void_p): New function.
11796 * gengenrtl.c (always_void_p): Likewise.
11797 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
11798 with code foo are always VOIDmode.
11799 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
11800 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
11801 compare-elim.c, config/aarch64/aarch64.c,
11802 config/aarch64/aarch64.md, config/alpha/alpha.c,
11803 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
11804 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
11805 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
11806 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
11807 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
11808 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
11809 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
11810 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
11811 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
11812 config/ia64/vect.md, config/iq2000/iq2000.c,
11813 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
11814 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
11815 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
11816 config/mep/mep.c, config/microblaze/microblaze.c,
11817 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
11818 config/mn10300/mn10300.c, config/msp430/msp430.c,
11819 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
11820 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
11821 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
11822 config/rs6000/altivec.md, config/rs6000/rs6000.c,
11823 config/rs6000/rs6000.md, config/rs6000/vector.md,
11824 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
11825 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
11826 config/sh/sh.md, config/sh/sh_treg_combine.cc,
11827 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
11828 config/spu/spu.md, config/stormy16/stormy16.c,
11829 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
11830 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
11831 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
11832 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
11833 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
11834 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
11835 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
11836 var-tracking.c: Update calls accordingly.
11837
11838 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11839
11840 PR middle-end/192
11841 PR middle-end/54303
11842 * varasm.c (function_mergeable_rodata_prefix): New function.
11843 (mergeable_string_section): Use it.
11844 (mergeable_constant_section): Use it.
11845
11846 2015-05-07 Jeff Law <law@redhat.com>
11847
11848 PR target/39726
11849 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11850 simplifier to narrow arithmetic.
11851 * generic-match-head.c: (types_match, single_use): New functions.
11852 * gimple-match-head.c: (types_match, single_use): New functions.
11853
11854 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11855
11856 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
11857 rtx type.
11858
11859 2015-05-07 Richard Biener <rguenther@suse.de>
11860
11861 PR tree-optimization/66002
11862 * passes.def: Schedule another pass_merge_phi after ifcombine, right
11863 before phiopt.
11864
11865 2015-05-07 Marek Polacek <polacek@redhat.com>
11866 Martin Uecker <uecker@eecs.berkeley.edu>
11867
11868 * doc/invoke.texi: Document -fsanitize=bounds-strict.
11869 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
11870 into SANITIZE_NONDEFAULT.
11871 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
11872
11873 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
11874
11875 PR target/66015
11876 * config/alpha/alpha.c (alpha_override_options_after_change): New.
11877 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
11878 (alpha_override_options): Move align_loops, align_jumps and
11879 align_functions handling into alpha_override_options_after_change.
11880
11881 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
11882 Chris Jones <chrisj@nvidia.com>
11883 Joshua Conner <jconner@nvidia.com>
11884
11885 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
11886 linking of crtfastmath.o.
11887 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
11888
11889 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11890
11891 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
11892 (cstore<mode>4_unsigned_imm): New expander.
11893 (cstore<mode>4): Remove empty constraint strings. Use the new
11894 expanders.
11895
11896 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
11897
11898 PR target/64208
11899 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
11900 alternatives.
11901
11902 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11903
11904 * config/aarch64/geniterators.sh: Use standard BRE in sed.
11905
11906 2015-05-06 Alan Modra <amodra@gmail.com>
11907
11908 PR target/66033
11909 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
11910 (UNSPEC_NOP): Define.
11911 (reload_vsx_from_gpr<mode>): Add missing DONE.
11912 (reload_gpr_from_vsx<mode>): Likewise.
11913 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
11914 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
11915
11916 2015-05-06 Christian Bruel <christian.bruel@st.com>
11917
11918 PR target/66015
11919 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
11920 align_jumps, align_functions into aarch64_override_options_after_change.
11921
11922 2015-05-06 Richard Biener <rguenther@suse.de>
11923
11924 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
11925 vect_transform_slp_perm_load to check if we support a permutation
11926 for basic-block vectorization.
11927
11928 2015-05-06 Nick Clifton <nickc@redhat.com>
11929
11930 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
11931 used, even if it is not being used as a frame pointer.
11932
11933 2015-05-05 Jason Merrill <jason@redhat.com>
11934
11935 * dwarf2out.c (gen_member_die): Don't emit anything for an
11936 anonymous class constructor.
11937
11938 2015-05-05 David Malcolm <dmalcolm@redhat.com>
11939
11940 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
11941 that it reflects the block structure.
11942 (afdo_propagate_edge): Likewise.
11943 (afdo_calculate_branch_prob): Likewise.
11944 (afdo_annotate_cfg): Likewise.
11945 * cfgcleanup.c (equal_different_set_p): Likewise.
11946 (try_crossjump_to_edge): Likewise.
11947 * cgraph.c (cgraph_node::verify_node): Likewise.
11948 * cgraphunit.c (expand_all_functions): Likewise.
11949 * config/i386/i386.c (ix86_expand_copysign): Likewise.
11950 (exact_dependency_1): Likewise.
11951 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
11952 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
11953 * gensupport.c (process_define_subst): Likewise.
11954 * lto-wrapper.c (merge_and_complain): Likewise.
11955 * tree-if-conv.c (if_convertible_bb_p): Likewise.
11956 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
11957 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
11958 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11959 * tree-vect-loop.c (vectorizable_reduction): Likewise.
11960 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
11961 * tree-vect-stmts.c (vectorizable_shift): Likewise.
11962 * tree-vrp.c (vrp_finalize): Likewise.
11963 * tree.c (variably_modified_type_p): Likewise.
11964
11965 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
11966
11967 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
11968 on darwin12 and later.
11969 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
11970 file to pass -rdynamic on darwin12 and later.
11971 * config/darwin.opt (rdynamic): Add.
11972
11973 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
11974
11975 * doc/extend.texi (C Extensions): Update menu for moved Variable
11976 Attributes and Type Attributes sections.
11977
11978 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
11979
11980 PR target/65990
11981 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
11982 if rep_8byte stringop strategy was specified for 32-bit target.
11983
11984 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
11985
11986 PR target/65915
11987 * config/i386/i386.md (vector convert to float spltiter): Check for
11988 xmm16+, when splitting scalar float conversion.
11989 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
11990
11991 2015-05-05 Nick Clifton <nickc@redhat.com>
11992
11993 * config/msp430/msp430-opts.h (enum msp430_regions): New.
11994 * config/msp430/msp430.c (msp430_override_options): Complain if
11995 -mcode-region or -mdata-region is used on a non MSP430X.
11996 (msp430_section_attr): New function. Checks lower, upper and
11997 either attributes.
11998 (msp430_attribute_table): Add lower, upper and either.
11999 (gen_prefix): New function. Generates a prefix for a section
12000 name.
12001 (msp430_select_section): New function - handles the choice of
12002 section for an object. Takes into account memory region
12003 attributes and options.
12004 (msp430_function_section): Use gen_prefix.
12005 (TARGET_SECTION_TYPE_FLAGS): Define.
12006 (msp430_section_type_flags): New function.
12007 (TARGET_ASM_UNIQUE_SECTION): Define.
12008 (msp430_unique_section): New function.
12009 (msp430_output_aligned_decl_common): New function.
12010 (msp430_do_not_relax_short_jumps): New function.
12011 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12012 Define.
12013 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12014 * config/msp430/msp430-protos.h
12015 (msp430_do_not_relax_short_jumps): New prototype.
12016 (msp430_output_aligned_decl_common): New prototype.
12017 * config/msp430/msp430.md (length): New attribute.
12018 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12019 then use a long code sequence for short jumps.
12020 * config/msp430/msp430.opt (mcode-region): New.
12021 (mdata-region): New.
12022 * doc/invoke.texi: Document new options.
12023 * doc/extend.texi: Document new attributes.
12024
12025 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12026
12027 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12028 (tune_params): Add field branch_costs.
12029 (aarch64_branch_cost): Declare.
12030 * gcc/config/aarch64.c (generic_branch_cost): New.
12031 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12032 (cortexa53_tunings): Likewise.
12033 (cortexa57_tunings): Likewise.
12034 (thunderx_tunings): Likewise.
12035 (xgene1_tunings): Likewise.
12036 (aarch64_branch_cost): Define.
12037 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12038
12039 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12040
12041 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12042 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12043 * config/i386/i386.md: Ditto.
12044 * config/i386/winnt.c: Ditto.
12045
12046 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12047
12048 * doc/extend.texi (__atomic Builtins): Move implementation details
12049 to the end of the description, rewrite opening paragraphs, state
12050 difference with __sync builtins, state C11/C++11 assumptions,
12051 weaken itemized descriptions, add explanation of memory model
12052 behaviour, expand description of compare-exchange, simplify text.
12053
12054 2015-05-05 Renlin Li <renlin.li@arm.com>
12055
12056 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12057
12058 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
12059
12060 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12061 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12062 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12063 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12064 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12065 * configure: Regenerate.
12066 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12067 * doc/install.texi (aarch64*-*-*): Document new
12068 --enable-fix-cortex-a53-843419 option.
12069 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12070 and -mno-fix-cortex-a53-843419 options.
12071
12072 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12073
12074 PR target/65871
12075 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12076
12077 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
12078
12079 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12080 fix overactive TYPE_MIN_VALUE check and add FIXME for type
12081 compatibility problems.
12082
12083 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12084
12085 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12086 constraints.
12087 (cbranchsi4_reg): New.
12088 * config/microblaze/microblaze.c
12089 (microblaze_expand_conditional_branch_reg): New.
12090 * config/microblaze/microblaze-protos.h
12091 (microblaze_expand_conditional_branch_reg): New prototype.
12092
12093 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12094
12095 * config/microblaze/microblaze.md (peephole2): New.
12096
12097 2015-05-04 Jeff Law <law@redhat.com>
12098
12099 Revert:
12100 2015-05-04 Jeff Law <law@redhat.com>
12101
12102 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12103 simplifier to narrow arithmetic.
12104 * generic-match-head.c: (types_match, single_use): New functions.
12105 * gimple-match-head.c: (types_match, single_use): New functions.
12106
12107 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12108
12109 PR target/65987
12110 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12111 (split_branches): Likewise.
12112
12113 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
12114
12115 * common.opt (fdelete-null-pointer-checks): Init to -1.
12116 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12117 override flag_delete_null_pointer_checks default.
12118 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12119 behavior re address zero. Better document target-specific behavior.
12120 (-fisolate-errneous-paths-dereference): Mention relationship to
12121 -fdelete-null-pointer-checks.
12122
12123 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12124
12125 PR tree-optimization/65984
12126 * ubsan.c: Include tree-cfg.h.
12127 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12128 stmt_could_throw_p test, rename can_throw variable to ends_bb.
12129
12130 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12131
12132 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12133 to CONST_DOUBLE_P predicate.
12134 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12135 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12136 allow only operands that satisfy standard_sse_constant_p predicate.
12137 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12138 to CONST_DOUBLE_P predicate.
12139
12140 2015-05-04 Jeff Law <law@redhat.com>
12141
12142 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12143 simplifier to narrow arithmetic.
12144 * generic-match-head.c: (types_match, single_use): New functions.
12145 * gimple-match-head.c: (types_match, single_use): New functions.
12146
12147 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
12148
12149 * config/arm/arm.c: Restore bootstrap.
12150
12151 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12152
12153 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12154 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12155 as CONST_WIDE_INT, not CONST_DOUBLE.
12156 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12157 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12158 (ix86_find_base_term): Do not check for CONST_DOUBLE.
12159 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12160 (ix86_build_signbit_mask): Rewrite using wide ints.
12161 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12162 (ix86_rtx_costs): Handle CONST_WIDE_INT.
12163 (find_constant): Ditto.
12164 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12165 using gen_int_mode.
12166 * config/i386/predicates.md (x86_64_immediate_operand)
12167 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12168 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12169 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12170 (const0_operand): Also match const_wide_int.
12171 (constm1_operand): Ditto.
12172 (const1_operand): Ditto.
12173
12174 2015-05-04 Richard Biener <rguenther@suse.de>
12175
12176 PR tree-optimization/65965
12177 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12178 store groups at gaps.
12179
12180 2015-05-04 Richard Biener <rguenther@suse.de>
12181
12182 PR tree-optimization/65935
12183 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12184 then make sure to apply that swapping to the IL.
12185
12186 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12187
12188 * Makefile.in (PATCHLEVEL_c): New variable.
12189 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12190 expand the same way as if DEVPHASE_c was non-empty.
12191
12192 2015-05-04 Kai Tietz <ktietz@redhat.com>
12193
12194 PR target/65559
12195 * lto-wrapper.c (run_gcc): Open filename
12196 in binary-mode.
12197
12198 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
12199
12200 * doc/extend.texi (Variable Attributes, Type Attributes): Move
12201 sections up in file, to immediately after the Function Attributes
12202 section.
12203
12204 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
12205
12206 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12207
12208 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12209
12210 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12211 (insert_partition_copy_on_edge): Adjust.
12212 (insert_rtx_to_part_on_edge): Likewise.
12213 (insert_part_to_rtx_on_edge): Likewise.
12214
12215 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12216
12217 * function.c (set_return_jump_label): Change type of argument to
12218 rtx_insn *.
12219 * function.h (set_return_jump_label): Adjust.
12220
12221 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12222
12223 * reload.h (struct reg_equivs_t): Change type of init to
12224 rtx_insn *.
12225 * ira.c (fix_reg_equiv_init): Adjust.
12226 * reload1.c (eliminate_regs_1): Likewise.
12227 (init_eliminable_invariants): Likewise.
12228
12229 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12230
12231 * cselib.c (fp_setter_insn): Take a rtx_insn *.
12232 * cselib.h (fp_setter_insn): Adjust.
12233
12234 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12235
12236 * recog.c (struct validate_replace_src_data): Change type of
12237 insn field to rtx_insn *.
12238 (validate_replace_src_group): Change type of argument to rtx_insn *.
12239 * recog.h (validate_replace_src_group): Adjust.
12240
12241 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12242
12243 * haifa-sched.c: Change the type of some variables to rtx_insn *.
12244 * sched-deps.c: Likewise.
12245 * sched-int.h: Likewise.
12246 * sched-rgn.c: Likewise.
12247 * sel-sched.c: Likewise.
12248
12249 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12250
12251 to rtx_insn *.
12252 * config/i386/i386.c: Change the type of some arguments to
12253 rtx_insn *.
12254 * config/arm/arm.c: Likewise.
12255
12256 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12257
12258 * lra-constraints.c: Change type of some arguments to rtx_insn *.
12259
12260 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12261
12262 * regcprop.c (kill_autoinc_value): Change type of argument to
12263 rtx_insn *.
12264
12265 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12266
12267 * genrecog.c (print_subroutine): Adjust.
12268 * recog.c (get_bool_attr_mask_uncached): Likewise.
12269 * recog.h (struct recog_data_d): Change the type of insn to
12270 rtx_insn *.
12271
12272 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12273
12274 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12275
12276 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12277
12278 * df-problems.c (df_set_note): Change type of argument to
12279 rtx_insn *.
12280
12281 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12282
12283 * builtins.c (expand_builtin_trap): Change type of local
12284 variable to rtx_insn *.
12285 (add_sched_insns_for_speculation): Likewise.
12286 (ix86_emit_save_regs): Likewise.
12287 (get_scratch_register_on_entry): Likewise.
12288 (ix86_emit_restore_reg_using_pop): Likewise.
12289 (ix86_emit_leave): Likewise.
12290 (ix86_emit_restore_regs_using_mov): Likewise.
12291 (ix86_expand_epilogue): Likewise.
12292 Likewise.
12293 (rl78_alloc_physical_registers_umul): Likewise.
12294 * cselib.c (discard_useless_locs): Likewise.
12295 (cselib_invalidate_regno): Likewise.
12296 (cselib_invalidate_mem): Likewise.
12297 * function.c (expand_function_start): Likewise.
12298 (emit_use_return_register_into_block): Likewise.
12299 * gcse.c: Likewise.
12300 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12301 * ifcvt.c (noce_get_alt_condition): Likewise.
12302 * loop-doloop.c (doloop_condition_get): Likewise.
12303 * lra-constraints.c (inherit_in_ebb): Likewise.
12304 * modulo-sched.c (sms_schedule_by_order): Likewise.
12305 * recog.c (next_insn_tests_no_inequality): Likewise.
12306 * reorg.c (emit_delay_sequence): Likewise.
12307 (update_reg_dead_notes): Likewise.
12308 (fix_reg_dead_note): Likewise.
12309 (fill_slots_from_thread): Likewise.
12310 (delete_computation): Likewise.
12311
12312 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
12313
12314 * doc/extend.texi (Variable Attributes): Add menu and proper
12315 @nodes to subsections. Move Microsoft Windows attributes to
12316 their own subsection.
12317 (Type Attributes): Reorganize introduction to remove duplicate
12318 list of attributes. Add menu and proper @nodes to subsections.
12319 Alphabetize the main table of common attributes.
12320
12321 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
12322
12323 * match.pd: New simplification patterns.
12324 (x + (x & 1)) -> ((x + 1) & ~1)
12325 (x & ~(x & y)) -> ((x & ~y))
12326 (x | ~(x | y)) -> ((x | ~y))
12327
12328 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12329
12330 * target.def (attribute_table): Mention that struct attribute_spec
12331 is defined in tree-core.h rather than tree.h
12332 * doc/tm.texi: Regenerate.
12333
12334 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
12335
12336 * genrecog.c (test): Rename to rtx_test. Update rest of file
12337 accordingly.
12338
12339 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
12340
12341 PR translation/65959
12342 * params.h (DEFPARAM): Rename msgid to nocmsgid.
12343
12344 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12345
12346 * gcc/config/aarch64/aarch64-protos.h (tune_params):
12347 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12348 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12349 Return value depending on target.
12350 (generic_tunings): Initialize new target settings.
12351 (cortexa53_tunings): Likewise.
12352 (cortexa57_tunings): Likewise.
12353 (thunderx_tunings): Likewise.
12354 (xgene1_tunings): Likewise.
12355
12356 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12357
12358 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12359 Make Cortex-A53 shift costs more accurate.
12360
12361 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12362
12363 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12364 UNSIGNED_FLOAT.
12365
12366 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12367
12368 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12369 Calculate cost of op0 and op1 in PLUS and MINUS cases.
12370
12371 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12372
12373 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12374 Add cost of op0 in the compare-with-fpzero case.
12375
12376 2015-04-30 David Malcolm <dmalcolm@redhat.com>
12377
12378 * builtins.c (fold_builtin_1): Remove spurious second
12379 semicolon.
12380 * cgraph.h (symtab_node::get_availability): Likewise.
12381 * opts.c (common_handle_option): Remove spurious second semicolon.
12382 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12383 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12384
12385 2015-04-30 Caroline Tice <cmtice@google.com>
12386
12387 PR gcov-profile/65929
12388 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12389 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12390 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12391 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12392 * doc/tm.texi: Regenerate.
12393 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
12394 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12395 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
12396 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12397
12398 2015-04-30 Marek Polacek <polacek@redhat.com>
12399
12400 * varasm.c (handle_cache_entry): Fix logic.
12401
12402 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12403
12404 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12405 (*extrsi5_insn_uxtw_alt): Likewise.
12406 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12407 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12408 operations.
12409
12410 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12411
12412 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12413 fabd in ABS case.
12414
12415 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12416
12417 * config/aarch64/aarch64.md
12418 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12419 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12420 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12421 appropriately. Handle alternative EON form.
12422
12423 2015-04-30 Renlin Li <renlin.li@arm.com>
12424
12425 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12426 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12427
12428 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12429
12430 PR ipa/65873
12431 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12432 -fstrict-aliasing boundaries.
12433
12434 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12435
12436 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12437 and [SU]MNEGL patterns.
12438
12439 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12440
12441 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12442 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12443 combined arithmetic-shift ops. Properly handle all shift and extend
12444 operations that can occur in combination with PLUS/MINUS.
12445 Rename maybe_fma to compound_p.
12446 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12447 arithmetic and shift operations.
12448
12449 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12450
12451 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12452 rather than arith_shift cost when costing ADD/MINUS of an
12453 extended value.
12454
12455 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12456
12457 PR lto/65948
12458 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12459 to itself.
12460
12461 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
12462
12463 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12464 are for the same position.
12465
12466 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
12467
12468 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
12469 vectorize_loops.
12470 (vectorize_loops): Use it.
12471
12472 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12473
12474 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12475 for aggregate types.
12476 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12477 type to be non_ODR.
12478 * tree.c (need_assembler_name_p): Compute mangled name for
12479 non-fundamental types and integer types.
12480
12481 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
12482
12483 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12484 manual swaps.
12485 * expr.c (expand_expr_real_2): Likewise.
12486
12487 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12488
12489 * tree.c (build_common_builtin_nodes): Do not build
12490 __builtin_alloca_with_align as equivalent of library alloca.
12491
12492 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12493
12494 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12495 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12496 bugus variants.
12497 * tree.c: Include print-tree.h and ipa-utils.h
12498 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12499 (free_lang_data_in_cgraph): Call verify_type.
12500 (verify_type_variant): New function.
12501 (verify_type): New function.
12502 * tree.h (verify_type): Declare.
12503
12504 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
12505
12506 * config/mips/mips-cpus.def: (mips4): Change default processor
12507 from PROCESSOR_R8000 to PROCESSOR_R10000.
12508
12509 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
12510
12511 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12512 la/jalr instead of jal.
12513
12514 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
12515
12516 PR target/65871
12517 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12518 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12519 (setcc+movzbl peephole2): Check also clobbered reg.
12520 (setcc+andl peephole2): Ditto.
12521
12522 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12523
12524 PR libgomp/65099
12525 * config/nvptx/mkoffload.c (target_ilp32): New variable.
12526 (main): Set it depending on "-foffload-abi=[...]".
12527 (compile_native, main): Use it to pass "-m32" or "-m64" to the
12528 compiler.
12529
12530 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12531
12532 PR target/65770
12533 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12534 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12535 Flip lane index back at assembly time for bigendian.
12536
12537 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12538
12539 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12540 * gimplify.c (gimplify_omp_workshare): Use it.
12541
12542 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12543
12544 * Makefile.in (build/genrecog.o): Depend on inchash.h.
12545 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12546 build/inchash.o
12547 * genrecog.c: Rewrite most of the code except for the third page.
12548
12549 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12550
12551 * inchash.h, inchash.c: Include bconfig.h for build objects.
12552 * Makefile.in (build/inchash.o): New rule.
12553
12554 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
12555
12556 PR target/65924
12557 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12558 number in type attribute expression.
12559
12560 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12561
12562 * loop-iv.c (canon_condition): Generalize to all types of integer
12563 constant.
12564
12565 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
12566
12567 * gimple-walk.c: Prune duplicate or unneeded includes.
12568 (walk_gimple_asm): Only call parse_input_constraint or
12569 parse_output_constraint if their findings are used.
12570 Honour parse_input_constraint and parse_output_constraint
12571 result.
12572
12573 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12574
12575 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12576
12577 2015-04-29 Tom de Vries <tom@codesourcery.com>
12578
12579 PR tree-optimization/65893
12580 * passes.def (pass_all_optimizations): Move pass_stdarg to after
12581 pass_dce.
12582
12583 2015-04-29 Richard Biener <rguenther@suse.de>
12584
12585 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12586 compute GROUP_SIZE for basic-block SLP.
12587 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12588 take into account gaps.
12589 (vect_get_mask_element): Properly reject references to previous
12590 vectors.
12591 (vect_transform_slp_perm_load): Likewise.
12592
12593 2015-04-29 Christian Bruel <christian.bruel@st.com>
12594
12595 PR target/64835
12596 * config/i386/i386.c (ix86_default_align): New function.
12597 (ix86_override_options_after_change): Call ix86_default_align.
12598 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12599 (ix86_override_options_after_change): New function.
12600
12601 2015-04-28 Jeff Law <law@redhat.com>
12602
12603 * tree-ssa-dom.c (record_equality); Fix comment typos.
12604
12605 2015-04-28 Tom de Vries <tom@codesourcery.com>
12606
12607 PR tree-optimization/65887
12608 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12609
12610 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
12611
12612 * doc/extend.texi (Declaring Attributes of Functions): Split into
12613 subsections by target. Alphabetize the table of common attributes.
12614 Rewrite some of the introductory text to reflect the new structure.
12615 Update some cross-references to point to the new subsections.
12616 (Attribute Syntax): Put paragraph about "__" naming here. Remove
12617 duplicate copies in the discussion of function, label, and type
12618 attributes.
12619
12620 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
12621
12622 PR bootstrap/65910
12623 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12624
12625 2015-04-28 Jason Merrill <jason@redhat.com>
12626
12627 PR c++/65734
12628 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12629 (finalize_type_size): Respect TYPE_USER_ALIGN.
12630 (layout_type) [ARRAY_TYPE]: Likewise.
12631
12632 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
12633
12634 * config/arm/arm.md (*arm_movt): Fix type attribute.
12635 (*cmpsi_shiftsi): Likewise.
12636 (*cmpsi_shiftsi_swp): Likewise.
12637 (*movsicc_insn): Likewise.
12638 (*cond_move): Likewise.
12639 (*if_plus_move): Likewise.
12640 (*if_move_plus): Likewise.
12641 (*if_arith_move): Likewise.
12642 (*if_move_arith): Likewise.
12643 (*if_shift_move): Likewise.
12644 (*if_move_shift): Likewise.
12645 (*arm_movtas_ze): Likewise.
12646 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12647 redundancy and type attribute.
12648 (*thumb2_movsi_insn): Fix type attribute.
12649 (*thumb2_addsi_short): Likewise.
12650 (thumb2_addsi3_compare0): Likewise.
12651 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12652 attributes accordingly.
12653
12654 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12655
12656 PR other/65911
12657 * function.c (pad_to_arg_alignment): Add parentheses.
12658
12659 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
12660
12661 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12662 libgcc/config/frv/elf-lib.h.
12663
12664 2015-04-28 Tom de Vries <tom@codesourcery.com>
12665
12666 * tree-call-cdce.c: Fix example in header comment.
12667
12668 2015-04-28 Richard Biener <rguenther@suse.de>
12669
12670 PR tree-optimization/62283
12671 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12672 fails fatally and we are vectorizing a basic-block simply
12673 cause the child to be constructed piecewise.
12674 (vect_analyze_slp_cost_1): Adjust.
12675 (vect_detect_hybrid_slp_stmts): Likewise.
12676 (vect_bb_slp_scalar_cost): Likewise.
12677 (vect_get_constant_vectors): For piecewise constructed
12678 constants place them after the last def.
12679 (vect_get_slp_defs): Adjust.
12680 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12681 externals for basic-block vectorization.
12682
12683 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12684
12685 PR target/63503
12686 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12687 aarch64-*-*.
12688 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12689 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12690 (AARCH64_TUNE_FMA_STEERING): Likewise.
12691 * config/aarch64/aarch64-cores.def: Set
12692 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12693 FMUL/FMADD instructions.
12694 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12695 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
12696 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12697 * config/aarch64/cortex-a57-fma-steering.h: New file.
12698 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12699
12700 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
12701
12702 * gensupport.c (std_preds): Add missing codes to address_operand entry.
12703
12704 2015-04-28 Richard Biener <rguenther@suse.de>
12705
12706 PR tree-optimization/65851
12707 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
12708 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
12709 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
12710 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
12711 (ccp_visit_phi_node): Adjust.
12712 (evaluate_stmt): For simplifications to SSA names return its
12713 lattice value if that isn't VARYING. Return immediately when
12714 simplified to a constant.
12715 (visit_assignment): Adjust.
12716 (ccp_visit_stmt): Likewise.
12717
12718 2015-04-28 Tom de Vries <tom@codesourcery.com>
12719
12720 PR tree-optimization/65818
12721 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
12722 evaluated.
12723
12724 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12725
12726 * calls.c (save_fixed_argument_area): Don't check
12727 ARGS_GROW_DOWNWARD with the preprocessor.
12728 (restore_fixed_argument_area): Likewise.
12729 (mem_overlaps_already_clobbered_arg_p): Likewise.
12730 (check_sibcall_argument_overlap): Likewise.
12731 (expand_call): Likewise.
12732 (emit_library_call_value_1): Likewise.
12733 (store_one_arg): Likewise.
12734 * function.c (assign_parms): Likewise.
12735 (locate_and_pad_parm): Likewise.
12736 (pad_to_arg_alignment): Likewise.
12737 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12738
12739 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12740
12741 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
12742 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
12743 * calls.c (save_fixed_argument_area): Don't chekc if
12744 ARGS_GROW_DOWNWARD is defined.
12745 (restore_fixed_argument_area): Likewise.
12746 (mem_overlaps_already_clobbered_arg_p): Likewise.
12747 (check_sibcall_argument_overlap): Likewise.
12748 (expand_call): Likewise.
12749 (emit_library_call_value_1): Likewise.
12750 (store_one_arg): Likewise.
12751 * function.c (assign_parms): Likewise.
12752 (locate_and_pad_parm): Likewise.
12753 (pad_to_arg_alignment): Likewise.
12754 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12755
12756 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12757
12758 * defaults.h (gen_epilogue): New function.
12759 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
12760 defined.
12761 * cfgrtl.c (cfg_layout_finalize): Likewise.
12762 * df-scan.c: Likewise.
12763 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12764 (reposition_prologue_and_epilogue_notes): Likewise.
12765 * reorg.c (find_end_label): Likewise.
12766 * toplev.c: Likewise.
12767
12768 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12769
12770 * bb-reorder.c (HAVE_return): Don't check if its undefined.
12771 * defaults.h (gen_simple_return): New function.
12772 (gen_simple_return): Likewise.
12773 (HAVE_return): Add default definition to false.
12774 (HAVE_simple_return): Likewise.
12775 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
12776 HAVE_return and HAVE_simple_return are defined.
12777 * function.c (gen_return_pattern): Likewise.
12778 (convert_jumps_to_returns): Likewise.
12779 (thread_prologue_and_epilogue_insns): Likewise.
12780 * reorg.c (find_end_label): Likewise.
12781 (dbr_schedule): Likewise.
12782 * shrink-wrap.c: Likewise.
12783 * shrink-wrap.h: Likewise.
12784
12785 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12786
12787 * defaults.h (EPILOGUE_USES): Add default definition of false.
12788 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
12789 * resource.c (init_resource_info): Likewise.
12790
12791 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12792
12793 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
12794 to false.
12795 * dwarf2out.c (field_byte_offset): REmove check if
12796 PCC_BITFIELD_TYPE_MATTERS is defined.
12797 * stor-layout.c (layout_decl): Likewise.
12798 (update_alignment_for_field): Likewise.
12799 (place_field): Likewise.
12800
12801 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12802
12803 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
12804 true.
12805 * regrename.c (check_new_reg_p): Remove check if
12806 HARD_REGNO_RENAME_OK is defined.
12807 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
12808
12809 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12810
12811 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
12812 * cse.c (fold_rtx): Likewise.
12813 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
12814 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
12815 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
12816 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
12817 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
12818 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
12819 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
12820 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
12821 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
12822 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
12823 * Likewise.
12824 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
12825 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
12826 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
12827 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
12828 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
12829 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
12830 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
12831 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
12832 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
12833 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
12834 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
12835 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
12836 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
12837 * doc/tm.texi: Regenerate.
12838 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
12839 either true or false.
12840
12841 2015-04-27 Jeff Law <law@redhat.com>
12842
12843 PR tree-optimization/65217
12844 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
12845 of them has a single use, make sure it is the LHS of the implied
12846 copy.
12847
12848 2015-04-28 Alan Modra <amodra@gmail.com>
12849
12850 PR target/65810
12851 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
12852 (offsettable_ok_by_alignment): Use minimum of decl and toc
12853 pointer alignment. Replace dead code with assertion.
12854 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
12855 case if size exceeds toc pointer alignment.
12856 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
12857 (rs6000_emit_move): Likewise.
12858 * configure.ac: Add linker toc pointer alignment check.
12859 * configure: Regenerate.
12860 * config.in: Regenerate.
12861
12862 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
12863
12864 * config.gcc: Add h8300-*-linux.
12865 * config/h8300/linux.h: New.
12866 * config/h8300/t-linux: New.
12867 * config/h8300/h8300.c (h8300_option_override): Normal mode
12868 is not supported for h8300-*-linux.
12869 (h8300_file_start): Target priority change.
12870 (get_shift_alg): Likewise.
12871 (h8300_shift_need_scratch_p): Likewise.
12872 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12873 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
12874
12875 2015-04-27 Caroline Tice <cmtice@google.com>
12876
12877 * final.c (final_scan_insn): Output cold_function_name as function
12878 type.
12879 * varasm.c (cold_function_name): Make global.
12880 (assemble_start_function): Re-set cold_function_name.
12881 (assemble_end_function): Output cold partition size.
12882 * varasm.h (cold_function_name): Declare global.
12883
12884 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
12885
12886 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
12887 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
12888 constraint.
12889 (*movxi_internal_avx512f): Ditto.
12890 (define_split): Check for xmm16+, when splitting scalar float_extend.
12891 (*extendsfdf2_mixed): Use "v" constraint.
12892 (define_split): Check for xmm16+, when splitting scalar float_truncate.
12893 (*truncdfsf_fast_sse): Use "v" constraint.
12894 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
12895 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
12896 (define_peephole2): Check for xmm16+, when converting scalar
12897 float_truncate.
12898 (define_peephole2): Check for xmm16+, when converting scalar
12899 float_extend.
12900 (*fop_<mode>_comm_mixed): Use "v" constraint.
12901 (*fop_<mode>_comm_sse): Ditto.
12902 (*fop_<mode>_1_mixed): Ditto.
12903 (*sqrt<mode>2_sse): Ditto.
12904 (*ieee_s<ieee_maxmin><mode>3): Ditto.
12905
12906 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12907
12908 * combine.c (simplify_if_then_else): Use std::swap instead
12909 of manually swapping.
12910 (known_cond): Likewise.
12911 (simplify_comparison): Likewise.
12912
12913 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
12914
12915 PR target/64579
12916 * config/rs6000/htm.md: Remove all define_expands.
12917 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
12918 UNSPECV_HTM_TABORTWCI): Remove.
12919 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
12920 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
12921 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
12922 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
12923 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
12924 tabortwci_internal): Remove define_insns.
12925 (tabort<wd>c, tabort<wd>ci): New define_insns.
12926 (tabort): Use gpc_reg_operand.
12927 (tcheck): Remove operand.
12928 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
12929 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
12930 expected value.
12931 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
12932 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
12933 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
12934 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
12935 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
12936 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
12937 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
12938 (tcheck): Remove builtin argument.
12939 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
12940 not TARGET_64BIT.
12941 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
12942 tabortdc and tabortdci builtins when not in 64-bit mode.
12943 Modify code to handle the loss of the HTM define_expands.
12944 Emit code to copy the CR register to TARGET.
12945 (htm_init_builtins): Modify code to handle the loss of the HTM
12946 define_expands.
12947 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
12948 (RS6000_BTC_64BIT): Likewise.
12949 (RS6000_BTC_CR): New macro.
12950 * doc/extend.texi: Update documentation for htm builtins.
12951
12952 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12953
12954 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
12955 of manually swapping.
12956 (simplify_associative_operation): Likewise.
12957 (simplify_binary_operation): Likewise.
12958 (simplify_plus_minus): Likewise.
12959 (simplify_relational_operation): Likewise.
12960 (simplify_ternary_operation): Likewise.
12961
12962 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
12963
12964 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
12965 (xs_hi_nonmemory_operand): Remove error.
12966 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
12967 general_operand rather than xs_hi_general_operand.
12968
12969 2015-04-27 Richard Biener <rguenther@suse.de>
12970
12971 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
12972 (record_equivalences_from_stmt): Valueize rhs.
12973 (record_equality): Canonicalize x and y order via
12974 tree_swap_operands_p. Do not swap operands for same loop depth.
12975
12976 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
12977
12978 PR target/65296
12979 PR target/65895
12980 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
12981 Add hint how to use own spec file.
12982
12983 2015-04-27 Jakub Jelinek <jakub@redhat.com>
12984
12985 PR tree-optimization/65875
12986 * tree-vrp.c (update_value_range): If in is_new case setting
12987 old_vr to VR_VARYING, also set new_vr to it. Remove
12988 old_vr->type == VR_VARYING test.
12989 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
12990 SSA_PROP_INTERESTING if update_value_range returned true,
12991 but new range is VR_VARYING.
12992
12993 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
12994
12995 * combine.c (sign_extend_short_imm): New.
12996 (set_nonzero_bits_and_sign_copies): Use above new function for sign
12997 extension of src short immediate.
12998 (reg_nonzero_bits_for_combine): Likewise for tem.
12999
13000 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13001
13002 * stor-layout.c (self_referential_component_ref_p): New predicate.
13003 (copy_self_referential_tree_r): Use it.
13004 (self_referential_size): Punt for simple operations directly involving
13005 self-referential component references.
13006 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13007
13008 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13009
13010 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13011
13012 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13013
13014 * vec.h (vec): Make splice arguments const. Update definitions
13015 accordingly.
13016
13017 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
13018
13019 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13020 alternatives.
13021
13022 2015-04-26 Tom de Vries <tom@codesourcery.com>
13023
13024 PR tree-optimization/65826
13025 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13026
13027 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
13028
13029 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13030 (*madd3<mode>): Ditto.
13031 (*msub4<mode>): Ditto.
13032 (*msub3<mode>): Ditto.
13033 (*nmadd4<mode>): Ditto.
13034 (*nmadd3<mode>): Ditto.
13035 (*nmadd4<mode>_fastmath): Ditto.
13036 (*nmadd3<mode>_fastmath): Ditto.
13037 (*nmsub4<mode>): Ditto.
13038 (*nmsub3<mode>): Ditto.
13039 (*nmsub4<mode>_fastmath): Ditto.
13040 (*nmsub3<mode>_fastmath): Ditto.
13041
13042 2015-04-24 Jason Merrill <jason@redhat.com>
13043
13044 PR c++/50800
13045 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13046 down when building TYPE_CANONICAL.
13047 (build_pointer_type_for_mode): Likewise.
13048
13049 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
13050
13051 * genrecog.c (validate_pattern): Check matching constraint refers
13052 to a lower numbered operand.
13053
13054 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13055
13056 PR target/65849
13057 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13058 save to independent variables use the Save attribute. This will
13059 allow these options to be modified with the #pragma/attribute
13060 target support.
13061 (-mallow-movmisalign): Likewise.
13062 (-mallow-df-permute): Likewise.
13063 (-msched-groups): Likewise.
13064 (-malways-hint): Likewise.
13065 (-malign-branch-targets): Likewise.
13066 (-mvectorize-builtins): Likewise.
13067 (-msave-toc-indirect): Likewise.
13068
13069 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13070 can be set via the #pragma/attribute target support.
13071 (rs6000_opt_vars): Likewise.
13072 (rs6000_inner_target_options): If VSX was set, also set
13073 -mno-avoid-indexed-addresses.
13074
13075 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13076
13077 * config/arm/iterators.md (shiftable_ops): Rename to...
13078 (SHIFTABLE_OPS): ... This. Update use in comments.
13079 (ior_xor): Rename to...
13080 (IOR_XOR): ... This.
13081 (vqh_ops): Rename to...
13082 (VQH_OPS): ... This.
13083 (vqhs_ops): Rename to...
13084 (VQHS_OPS): ... This.
13085 (rshifts): Rename to...
13086 (RSHIFTS): ... This.
13087 (returns): Rename to...
13088 (RETURNS): ... This.
13089 * config/arm/arm.md: Update uses of the above.
13090 * config/arm/neon.md: Likewise.
13091
13092 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13093
13094 * config.host (case ${host}): Add aarch64*-*-linux case.
13095 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13096 fields to all the cores.
13097 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13098 Add MCPU_MTUNE_NATIVE_SPECS.
13099 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13100 field to all extensions.
13101 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13102 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13103 Adjust definition of AARCH64_OPT_EXTENSION.
13104 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13105 (MCPU_MTUNE_NATIVE_SPECS): Define.
13106 * config/aarch64/driver-aarch64.c: New file.
13107 * config/aarch64/x-arch64: New file.
13108 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13109 -mtune and -march.
13110
13111 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13112 Wei Mi <wmi@google.com>
13113
13114 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13115 * config/i386/i386.c (extract_base_offset_in_addr): New function.
13116 (ix86_operands_ok_for_move_multiple): Ditto.
13117 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13118 (movlpd/movhpd to movupd peephole2): Ditto.
13119
13120 2015-04-24 Marek Polacek <polacek@redhat.com>
13121
13122 PR c/61534
13123 * input.h (from_macro_expansion_at): Define.
13124
13125 PR c/63357
13126 * doc/invoke.texi: Update description of -Wlogical-op.
13127
13128 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13129
13130 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13131 ternary operator in fprintf and harmonize spacing.
13132
13133 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13134
13135 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13136 Mark operand1 commutative.
13137
13138 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13139
13140 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13141 input operands in memory.
13142 (*vec_concatv2si_sse4_1): Ditto.
13143 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13144 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13145 register_operand.
13146 (vec_extract_hi_v32hi): Ditto.
13147 (vec_extract_hi_v64hi): Ditto.
13148 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13149
13150 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13151 Steven Bosscher <steven@gcc.gnu.org>
13152
13153 PR rtl-optimization/34503
13154 * cprop.c (cprop_reg_p): New.
13155 (hash_scan_set): Use above function to check if register can be
13156 propagated.
13157 (find_avail_set): Return up to two sets, one whose source is a
13158 register and one whose source is a constant. Sets are returned in an
13159 array passed as parameter rather than as a return value.
13160 (cprop_insn): Use a do while loop rather than a goto. Try each of the
13161 sets returned by find_avail_set, starting with the one whose source is
13162 a constant. Use cprop_reg_p to check if register can be propagated.
13163 (do_local_cprop): Use cprop_reg_p to check if register can be
13164 propagated.
13165 (implicit_set_cond_p): Likewise.
13166
13167 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13168
13169 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13170 (sem_function::equals): IGNORED_NODES parameter is now unused;
13171 update call of equals_private.
13172 (sem_function::equals_private): Do not call equals_wpa; skip
13173 gimple body matching if there is no body.
13174 (sem_function::init): Add logic to hash tthunk info.
13175 (sem_function::parse): Also parse thunks.
13176 * ipa-icf.h (equals_private): Update declaration.
13177
13178 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13179
13180 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13181 asterisk from name so this can be generated directly.
13182 (*altivec_stvx_<mode>_internal): Likewise.
13183 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13184 that this is never called during or after reload/lra.
13185 (rs6000_frame_related): Remove split_reg
13186 argument and logic that references it.
13187 (emit_frame_save): Remove last parameter from call to
13188 rs6000_frame_related.
13189 (rs6000_emit_prologue): Remove last parameter from eight calls to
13190 rs6000_frame_related. Force generation of stvx instruction for
13191 Altivec register saves. Remove split_reg handling, which is no
13192 longer needed.
13193 (rs6000_emit_epilogue): Force generation of lvx instruction for
13194 Altivec register restores.
13195
13196 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13197
13198 * config/rs6000/rs6000.opt (mcrypto): Change option description to
13199 match category changes in ISA 2.07B.
13200
13201 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13202
13203 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13204 iterators.
13205 (cmp_op, cmp_type): New code attributes.
13206 (NEON_VCMP, NEON_VACMP): New int iterators.
13207 (cmp_op_unsp): New int attribute.
13208 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13209 (neon_vceq<mode>): Delete.
13210 (neon_vc<cmp_op><mode>_insn): New pattern.
13211 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13212 (neon_vcgeu<mode>): Delete.
13213 (neon_vcle<mode>): Likewise.
13214 (neon_vclt<mode>: Likewise.
13215 (neon_vcage<mode>): Likewise.
13216 (neon_vcagt<mode>): Likewise.
13217 (neon_vca<cmp_op><mode>): New define_expand.
13218 (neon_vca<cmp_op><mode>_insn): New pattern.
13219 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13220
13221 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13222
13223 * tree.h (attribute_value_equal): Declare.
13224 * tree.c (attribute_value_equal): Export.
13225
13226 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13227
13228 * ipa-icf.c (sem_item::compare_attributes): New function.
13229 (sem_item::compare_referenced_symbol_properties): Compare variable
13230 attributes.
13231 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13232 (sem_function::param_used_p): New function.
13233 (sem_function::equals_wpa): Fix attribute comparsion; match
13234 parameter type codes; do not compare paremter flags when
13235 they are not used; compare edge flags; compare indirect calls.
13236 (sem_item::update_hash_by_addr_refs): Hash reference type.
13237 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13238 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13239 reference use type.
13240 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13241 * ipa-icf.h (compare_attributes, param_used_p): Declare.
13242
13243 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13244
13245 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13246 cleanup.
13247 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13248 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13249 (sem_item::compare_referenced_symbol_properties): New.
13250 (sem_item::hash_referenced_symbol_properties): New.
13251 (sem_item::compare_cgraph_references): Rename to ...
13252 (sem_item::compare_symbol_references): ... this one; use
13253 compare_referenced_symbol_properties.
13254 (sem_function::equals_wpa): Do not compare
13255 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13256 DECL_IS_OPERATOR_NEW; compare pointer sizes.
13257 (sem_item::update_hash_by_addr_refs): Call
13258 hash_referenced_symbol_properties.
13259 (sem_item::update_hash_by_local_refs): Cleanup.
13260 (sem_function::merge): Do not mix up symbol properties.
13261 (sem_variable::equals_wpa): Use compare_symbol_references.
13262 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13263 (sem_item::hash_referenced_symbol_properties): New.
13264 (sem_item::compare_symbol_references): New.
13265 (sem_item::compare_cgraph_references): Remove.
13266
13267 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
13268
13269 PR target/26702
13270 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13271 Emit size of local.
13272
13273 2015-04-23 Nick Clifton <nickc@redhat.com>
13274
13275 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13276 ATTRIBUTE_UNUSED to x parameter.
13277 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13278
13279 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13280
13281 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13282 TARGET_CRYPTO to TARGET_P8_VECTOR>
13283 (crypto_vpermxor_<mode>): Likewise.
13284 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13285 (BU_CRYPTO_3A): Likewise.
13286 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13287 (BU_CRYPTO_OVERLOAD_3A): New #define.
13288 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13289 (VPMSUMH): Likewise.
13290 (VPMSUMW): Likewise.
13291 (VPMSUMD): Likewise.
13292 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13293 (VPERMXOR_V4SI): Likewise.
13294 (VPERMXOR_V8HI): Likewise.
13295 (VPERMXOR_V16QI): Likewise.
13296 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13297 BU_CRYPTO_OVERLOAD_2A.
13298 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13299 BU_CRYPTO_OVERLOAD_3A.
13300 * config/rs6000/rs6000.opt (mcrypto): Change description of
13301 option.
13302
13303 2015-04-23 Richard Biener <rguenther@suse.de>
13304
13305 * passes.def: Remove copy propagation passes run directly after CCP.
13306 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13307 SSA names.
13308 (ccp_visit_phi_node): Rework to handle first executable edge
13309 specially.
13310
13311 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
13312
13313 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13314 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13315 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13316 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13317 (thumb_legimitimize_reload_address): Remove.
13318 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13319 Remove.
13320 (thumb_legimitimize_reload_address): Remove.
13321
13322 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13323
13324 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13325
13326 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13327
13328 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13329 MAX_LDM_STM_OPS.
13330 (store_multiple): Likewise.
13331
13332 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13333
13334 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13335 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13336 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13337 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13338 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13339 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13340 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13341 Specify issue_rate value.
13342 (arm_issue_rate): Look up issue rate from tuning structs. Remove
13343 large switch statement.
13344 (arm_marvell_pj4_tune): New struct.
13345 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13346 struct.
13347
13348 2015-04-23 Richard Biener <rguenther@suse.de>
13349
13350 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13351 (vect_find_last_store_in_slp_instance): Rename to ...
13352 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13353 (vect_analyze_slp_cost_1): Use vector_load for constant defs
13354 and vec_construct for external defs when estimating prologue cost.
13355 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13356 Compute costs here only when vectorizing loops.
13357 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13358 have been determined.
13359 (vect_schedule_slp_instance): Simplify vectorized code placement
13360 and prepare for in-BB external defs.
13361 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13362 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13363 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13364 guard.
13365 (vect_model_load_cost): Likewise.
13366 (vectorizable_store): Instead add it here.
13367 (vectorizable_load): Likewise.
13368 (vect_is_simple_use): Dump def type textually.
13369
13370 2015-04-23 Richard Biener <rguenther@suse.de>
13371
13372 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13373 * cfgloop.c (verify_loop_structure): Verify the root loop node.
13374 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13375 instead of get_eh_region_from_lp_number.
13376 * loop-init.c (fix_loop_structure): If we removed a loop, reset
13377 the SCEV cache.
13378
13379 2015-04-23 Anton Blanchard <anton@samba.org>
13380
13381 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13382 need for -mprofile-kernel to save LR to stack.
13383
13384 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13385
13386 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13387 adjustments.
13388 (insn_is_swappable_p): Return 1 for a convert from double to
13389 single precision when all of its uses are splats of BE element
13390 zero.
13391
13392 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13393
13394 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13395
13396 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13397
13398 PR target/65456
13399 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
13400 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13401 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13402 option.
13403 (rs6000_builtin_mask_for_load): Return 0 for targets with
13404 efficient unaligned VSX accesses so that the vectorizer will use
13405 direct unaligned loads.
13406 (rs6000_builtin_support_vector_misalignment): Always return true
13407 for targets with efficient unaligned VSX accesses.
13408 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13409 stores on targets with efficient unaligned VSX accesses is almost
13410 always the same as the cost of an aligned load or store, so model
13411 it that way.
13412 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13413 unaligned vectors if we have efficient unaligned VSX accesses.
13414 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13415 undocumented option.
13416
13417 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13418
13419 Revert:
13420 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13421
13422 * config.gcc (LIBC_MUSL): New tm_defines macro.
13423 * config/linux.h (OPTION_MUSL): Define.
13424 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13425 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13426 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13427
13428 * config/linux.opt (mmusl): New option.
13429 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13430 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13431
13432 * configure: Regenerate.
13433
13434 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13435
13436 * config.gcc (LIBC_MUSL): New tm_defines macro.
13437 * config/linux.h (OPTION_MUSL): Define.
13438 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13439 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13440 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13441
13442 * config/linux.opt (mmusl): New option.
13443 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13444 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13445
13446 * configure: Regenerate.
13447
13448 2015-04-22 Yury Gribov <y.gribov@samsung.com>
13449
13450 * doc/invoke.texi (-fsanitize-sections): Update description.
13451 * asan.c (set_sanitized_sections): Parse incoming arg.
13452 (section_sanitized_p): Support wildcards.
13453
13454 2015-04-22 Tom de Vries <tom@codesourcery.com>
13455
13456 PR tree-optimization/65823
13457 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13458 equality between ap_copy and ap.
13459
13460 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13461
13462 PR target/47098
13463 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13464
13465 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13466
13467 PR target/47122
13468 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13469
13470 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13471
13472 PR target/55144
13473 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13474 remove already contained t-files.
13475
13476 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13477
13478 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13479 Remove unneeded forward declarations.
13480 (suitable_for_tail_call_opt_p): Commentary typo fix.
13481
13482 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13483
13484 * varasm.c (emit_bss): Remove redundant guard.
13485
13486 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13487
13488 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13489
13490 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13491
13492 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13493
13494 2015-04-22 Hale Wang <hale.wang@arm.com>
13495 Terry Guo <terry.guo@arm.com>
13496
13497 PR rtl-optimization/64818
13498 * combine.c (can_combine_p): Don't combine user-specified
13499 register if it is in an asm input.
13500
13501 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
13502
13503 PR ipa/65076
13504 * passes.def (early_optimizations): Add pass_dse.
13505
13506 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13507
13508 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13509 * reorg.c (redundant_insn): Remove ifdef
13510 INSN_REFERENCES_ARE_DELAYED.
13511 * resource.c (mark_referenced_resources): Likewise.
13512
13513 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13514
13515 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13516 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13517 * resource.c (mark_set_resources): Likewise.
13518
13519 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13520
13521 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13522 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13523 (flow_find_head_matching_sequence): Likewise.
13524 (try_head_merge_bb): Likewise.
13525 * combine.c (can_combine_p): Likewise.
13526 (try_combine): Likewise.
13527 (distribute_notes): Likewise.
13528 * df-problems.c (can_move_insns_across): Likewise.
13529 * final.c (final): Likewise.
13530 * gcse.c (insert_insn_end_basic_block): Likewise.
13531 * ira.c (find_moveable_pseudos): Likewise.
13532 * reorg.c (try_merge_delay_insns): Likewise.
13533 (fill_simple_delay_slots): Likewise.
13534 (fill_slots_from_thread): Likewise.
13535 * sched-deps.c (sched_analyze_2): Likewise.
13536
13537 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13538
13539 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13540 PIC_OFFSET_TABLE_REGNUM.
13541
13542 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13543
13544 * alias.c (init_alias_target): Remove ifdef
13545 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13546 * df-scan.c (df_insn_refs_collect): Likewise.
13547 (df_get_regular_block_artificial_uses): Likewise.
13548 (df_get_eh_block_artificial_uses): Likewise.
13549 (df_get_entry_block_def_set): Likewise.
13550 (df_get_exit_block_use_set): Likewise.
13551 * emit-rtl.c (gen_rtx_REG): Likewise.
13552 * ira.c (ira_setup_eliminable_regset): Likewise.
13553 * reginfo.c (init_reg_sets_1): Likewise.
13554 * regrename.c (rename_chains): Likewise.
13555 * reload1.c (reload): Likewise.
13556 (eliminate_regs_in_insn): Likewise.
13557 * resource.c (mark_referenced_resources): Likewise.
13558 (init_resource_info): Likewise.
13559
13560 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13561
13562 * defaults.h (MASK_RETURN_ADDR): New definition.
13563 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13564 MASK_RETURN_ADDR.
13565
13566 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13567
13568 * defaults.h (RETURN_ADDR_OFFSET): New definition.
13569 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13570 RETURN_ADDR_OFFSET.
13571 (expand_builtin_frob_return_addr): Likewise.
13572
13573 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13574
13575 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13576 (try_redirect_by_replacing_jump): Likewise.
13577 (rtl_tidy_fallthru_edge): Likewise.
13578 * combine.c (insn_a_feeds_b): Likewise.
13579 (find_split_point): Likewise.
13580 (simplify_set): Likewise.
13581 * cprop.c (cprop_jump): Likewise.
13582 * cse.c (cse_extended_basic_block): Likewise.
13583 * df-problems.c (can_move_insns_across): Likewise.
13584 * function.c (emit_use_return_register_into_block): Likewise.
13585 * haifa-sched.c (sched_init): Likewise.
13586 * ira.c (find_moveable_pseudos): Likewise.
13587 * loop-invariant.c (find_invariant_insn): Likewise.
13588 * lra-constraints.c (curr_insn_transform): Likewise.
13589 * postreload.c (reload_combine_recognize_const_pattern):
13590 * Likewise.
13591 * reload.c (find_reloads): Likewise.
13592 * reorg.c (delete_scheduled_jump): Likewise.
13593 (steal_delay_list_from_target): Likewise.
13594 (steal_delay_list_from_fallthrough): Likewise.
13595 (redundant_insn): Likewise.
13596 (fill_simple_delay_slots): Likewise.
13597 (fill_slots_from_thread): Likewise.
13598 (delete_computation): Likewise.
13599 * sched-rgn.c (add_branch_dependences): Likewise.
13600
13601 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13602
13603 * genconfig.c (main): Always define HAVE_cc0.
13604 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13605 HAVE_cc0.
13606 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13607 (flow_find_head_matching_sequence): Likewise.
13608 (try_head_merge_bb): Likewise.
13609 * cfgrtl.c (rtl_merge_blocks): Likewise.
13610 (try_redirect_by_replacing_jump): Likewise.
13611 (rtl_tidy_fallthru_edge): Likewise.
13612 * combine.c (do_SUBST_MODE): Likewise.
13613 (insn_a_feeds_b): Likewise.
13614 (combine_instructions): Likewise.
13615 (can_combine_p): Likewise.
13616 (try_combine): Likewise.
13617 (find_split_point): Likewise.
13618 (subst): Likewise.
13619 (simplify_set): Likewise.
13620 (distribute_notes): Likewise.
13621 * cprop.c (cprop_jump): Likewise.
13622 * cse.c (cse_extended_basic_block): Likewise.
13623 * df-problems.c (can_move_insns_across): Likewise.
13624 * final.c (final): Likewise.
13625 (final_scan_insn): Likewise.
13626 * function.c (emit_use_return_register_into_block): Likewise.
13627 * gcse.c (insert_insn_end_basic_block): Likewise.
13628 * haifa-sched.c (sched_init): Likewise.
13629 * ira.c (find_moveable_pseudos): Likewise.
13630 * loop-invariant.c (find_invariant_insn): Likewise.
13631 * lra-constraints.c (curr_insn_transform): Likewise.
13632 * optabs.c (prepare_cmp_insn): Likewise.
13633 * postreload.c (reload_combine_recognize_const_pattern):
13634 * Likewise.
13635 * reload.c (find_reloads): Likewise.
13636 (find_reloads_address_1): Likewise.
13637 * reorg.c (delete_scheduled_jump): Likewise.
13638 (steal_delay_list_from_target): Likewise.
13639 (steal_delay_list_from_fallthrough): Likewise.
13640 (try_merge_delay_insns): Likewise.
13641 (redundant_insn): Likewise.
13642 (fill_simple_delay_slots): Likewise.
13643 (fill_slots_from_thread): Likewise.
13644 (delete_computation): Likewise.
13645 (relax_delay_slots): Likewise.
13646 * sched-deps.c (sched_analyze_2): Likewise.
13647 * sched-rgn.c (add_branch_dependences): Likewise.
13648
13649 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13650
13651 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13652 that is trivially ded on non cc0 targets.
13653 (simplify_set): Likewise.
13654 (mark_used_regs_combine): Likewise.
13655 * cse.c (new_basic_block): Likewise.
13656 (fold_rtx): Likewise.
13657 (cse_insn): Likewise.
13658 (cse_extended_basic_block): Likewise.
13659 (set_live_p): Likewise.
13660 * rtlanal.c (canonicalize_condition): Likewise.
13661 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13662
13663 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13664
13665 * conditions.h: Define macros even if HAVE_cc0 is undefined.
13666 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13667 * final.c: Likewise.
13668 * jump.c: Likewise.
13669 * recog.c: Likewise.
13670 * recog.h: Declare functions even when HAVE_cc0 is undefined.
13671 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13672
13673 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13674
13675 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13676 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13677 * builtins.c (expand_builtin): Remove check if
13678 EH_RETURN_DATA_REGNO is defined.
13679 * df-scan.c (df_bb_refs_collect): Likewise.
13680 (df_get_exit_block_use_set): Likewise.
13681 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13682 * ira-lives.c (process_bb_node_lives): Likewise.
13683 * lra-lives.c (process_bb_lives): Likewise.
13684
13685 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
13686
13687 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13688 FIRST_PSEUDO_REG): New.
13689 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13690 (ARG_POINTER_REGNUM): Define to ARGP_REG.
13691 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13692 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13693 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13694 (FIRST_INT_REG): New.
13695 (LAST_INT_REG): New.
13696 (FIRST_*_REG): Define using *_REG.
13697 (LAST_*_REG): Ditto.
13698 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13699 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13700 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13701
13702 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13703
13704 * expmed.c: (synth_mult): Only assume overlapping
13705 shift with previous steps in alg_sub_t_m2 case.
13706
13707 2015-04-21 Richard Biener <rguenther@suse.de>
13708
13709 PR tree-optimization/65650
13710 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
13711 transitions involving copies.
13712 (set_lattice_value): Adjust for copy lattice state.
13713 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
13714 if that doesn't dominate the merge point.
13715 (bit_value_unop): Adjust what we treat as varying mask.
13716 (bit_value_binop): Likewise.
13717 (bit_value_assume_aligned): Likewise.
13718 (evaluate_stmt): When we simplified to a SSA name record a copy
13719 instead of dropping to varying.
13720 (visit_assignment): Simplify.
13721
13722 * gimple-match.h (gimple_simplify): Add another callback.
13723 * gimple-fold.c (fold_stmt_1): Adjust caller.
13724 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
13725 for the 2nd callback.
13726 * gimple-match-head.c (gimple_simplify): Add a callback that is
13727 used to valueize the stmt operands and use it that way.
13728
13729 2015-04-21 Richard Biener <rguenther@suse.de>
13730
13731 PR tree-optimization/65788
13732 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
13733
13734 2015-04-21 Richard Biener <rguenther@suse.de>
13735
13736 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
13737 vec_construct cost by vec_stmt_cost.
13738
13739 2015-04-21 Richard Biener <rguenther@suse.de>
13740
13741 * cfghooks.h (create_basic_block): Replace with two overloads
13742 for RTL and GIMPLE.
13743 (split_block): Likewise.
13744 * cfghooks.c (split_block): Rename to ...
13745 (split_block_1): ... this.
13746 (split_block): Add two type-safe overloads for RTL and GIMPLE.
13747 (split_block_after_labels): Call split_block_1.
13748 (create_basic_block): Rename to ...
13749 (create_basic_block_1): ... this.
13750 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
13751 (create_empty_bb): Call create_basic_block_1.
13752 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
13753 split_block_after_labels.
13754 * omp-low.c (expand_parallel_call): Likewise.
13755 (expand_omp_target): Likewise.
13756 (simd_clone_adjust): Likewise.
13757 * tree-chkp.c (chkp_get_entry_block): Likewise.
13758 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
13759 create_basic_block overload.
13760 (cgraph_node::expand_thunk): Likewise.
13761 * tree-cfg.c (make_blocks): Likewise.
13762 (handle_abnormal_edges): Likewise.
13763 * tree-inline.c (copy_bb): Likewise.
13764
13765 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13766
13767 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
13768 New pattern.
13769 (*xor_one_cmplsidi3_ze): Likewise.
13770
13771 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13772
13773 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
13774 use df_remove_problem rather than manually removing problems, leaving
13775 holes in df->problems_in_order[].
13776
13777 2015-04-21 Tom de Vries <tom@codesourcery.com>
13778
13779 PR tree-optimization/65802
13780 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
13781
13782 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13783
13784 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
13785 Increase to 128.
13786 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
13787 at '.'. Assert that there's enough space for everything.
13788
13789 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
13790
13791 PR tree-optimization/64950
13792 Revert:
13793 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
13794
13795 PR target/41089
13796 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
13797 as volatile.
13798
13799 2015-04-20 Shiva Chen <shiva0217@gmail.com>
13800
13801 PR rtl-optimization/64916
13802 * cfgcleanup.c (values_equal_p): New function.
13803 (can_replace_by): Use it.
13804
13805 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
13806
13807 PR c++/65801
13808 * doc/invoke.texi ([-Wnarrowing]): Update.
13809
13810 2015-04-20 Jeff Law <law@redhat.com>
13811
13812 PR tree-optimization/65658
13813 * tree-ssa-threadupdate.c (redirection_block_p): Remove
13814 redundant test for GIMPLE_ASSIGN in last change.
13815
13816 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
13817
13818 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
13819 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
13820 (legitimize_tls_address): Ditto.
13821 (ix86_expand_move): Ditto.
13822 (ix86_expand_binary_operator): Remove reload_in_progress checks.
13823 (ix86_expand_unary_operator): Ditto.
13824 * config/i386/predicates.md (index_register_operand): Ditto.
13825
13826 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
13827
13828 * reorg.c (try_merge_delay_insns): Improve correctness checking
13829 for targets with multiple delay slots.
13830
13831 2015-04-20 Jeff Law <law@redhat.com>
13832
13833 PR tree-optimization/65658
13834 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
13835 statements too.
13836
13837 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
13838
13839 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
13840 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
13841 Delete.
13842
13843 2015-04-20 Jakub Jelinek <jakub@redhat.com>
13844
13845 PR debug/65807
13846 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
13847
13848 2015-04-20 Richard Biener <rguenther@suse.de>
13849
13850 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
13851 * gimple-fold.c (gimple_build_valueize): New function.
13852 (gimple_build): Always use gimple_build_valueize as valueize hook.
13853
13854 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
13855
13856 PR target/64134
13857 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
13858 and overwrite variable parts if <= 1/2 the elements are variable.
13859
13860 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
13861
13862 PR rtl-optimization/65805
13863 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
13864 Don't use difference of offset and previous offset if
13865 update_sp_offset is non-zero.
13866 (eliminate_regs_in_insn): Ditto.
13867 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
13868 lra_eliminate_regs_1 call.
13869 * lra-constraints.c (get_equiv_with_elimination): Ditto.
13870
13871 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
13872
13873 * hash-table.h: Remove version of hash_table that stored value_type *.
13874 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
13875 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
13876 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
13877 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
13878 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
13879 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
13880 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13881 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
13882 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
13883 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
13884 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
13885 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
13886 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
13887 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13888 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
13889 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
13890
13891 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13892 Jakub Jelinek <jakub@redhat.com>
13893
13894 PR target/65787
13895 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
13896 subsequent SH_NONE operand does not overwrite an existing *special
13897 value.
13898 (adjust_extract): Handle case where a vec_extract operation is
13899 wrapped in a PARALLEL.
13900
13901 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
13902
13903 PR target/65780
13904 * config/i386/i386.c (ix86_binds_local_p): Define only if
13905 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
13906
13907 2015-04-17 Jeff Law <law@redhat.com>
13908
13909 PR tree-optimization/47679
13910 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
13911 * tree-ssa-scopedtables.c: New file.
13912 * tree-ssa-scopedtables.h: New file.
13913 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
13914 (const_and_copies): Change name/type.
13915 (record_const_or_copy): Move into tree-ssa-scopedtables.c
13916 (record_const_or_copy_1): Similarly.
13917 (restore_vars_to_original_value): Similarly.
13918 (pass_dominator::execute): Create and destroy const_and_copies table.
13919 (thread_across_edge): Update passing of const_and_copies.
13920 (record_temporary_equivalence): Use method calls rather than
13921 manipulating const_and_copies directly.
13922 (record_equality, cprop_into_successor_phis): Similarly.
13923 (dom_opt_dom_walker::before_dom_children): Similarly.
13924 (dom_opt_dom_walker::after_dom_children): Similarly.
13925 (eliminate_redundant_computations): Similarly.
13926 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
13927 (record_temporary_equivalence): Likewise.
13928 (invalidate_equivalences): Likewise.
13929 (record_temporary_equivalences_from_phis): Update due to type
13930 change of const_and_copies. Use method calls rather than
13931 manipulating the stack directly.
13932 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
13933 (thread_through_normal_block, thread_across_edge): Likewise.
13934 (thread_across_edge): Likewise.
13935 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13936 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
13937 of equiv_stack.
13938 (identify_jump_threads): Update due to type change of equiv_stack.
13939 (finalize_jump_threads): Delete the equiv_stack when complete.
13940
13941 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
13942
13943 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13944 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
13945 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
13946
13947 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
13948
13949 PR target/65535
13950 * config.gcc: Exit with a comment when we do not have a major version
13951 number for the FreeBSD target.
13952
13953 2015-04-17 Jakub Jelinek <jakub@redhat.com>
13954
13955 PR target/65689
13956 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
13957 maybe_allows_mem bitfields.
13958 (maybe_allows_none_start, maybe_allows_none_end,
13959 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
13960 maybe_allows_mem_end): New variables.
13961 (compute_maybe_allows): New function.
13962 (add_constraint): Use it to initialize maybe_allows_reg and
13963 maybe_allows_mem fields.
13964 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
13965 is_address constraints such that those that allow neither mem nor
13966 reg come first, then those that only allow reg but not mem, then
13967 those that only allow mem but not reg, then the rest.
13968 (write_allows_reg_mem_function): New function.
13969 (write_tm_preds_h): Call it.
13970 * stmt.c (parse_output_constraint, parse_input_constraint): Use
13971 the generated insn_extra_constraint_allows_reg_mem function
13972 instead of always setting *allows_reg = true; *allows_mem = true;
13973 for unknown extra constraints.
13974
13975 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
13976
13977 PR target/65780
13978 * output.h (default_binds_local_p_3): New.
13979 * varasm.c (default_binds_local_p_3): Make it public. Take an
13980 argument to indicate if common symbol may be local. If common
13981 symbol may be local, treat non-external variable as defined
13982 locally.
13983 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
13984 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
13985 * config/i386/i386.c (ix86_binds_local_p): New.
13986 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
13987 ix86_binds_local_p.
13988
13989 2015-04-17 Jakub Jelinek <jakub@redhat.com>
13990
13991 PR debug/65771
13992 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
13993 trying mem_loc_descriptor on XEXP (rtl, 0).
13994
13995 2015-04-17 Martin Liska <mliska@suse.cz>
13996
13997 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
13998 Release symbol_compare_collection.
13999 * ipa-reference.c: Add TODO that a vector should be released.
14000
14001 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14002
14003 PR target/65296
14004 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14005 to new AVR-LibC file layout (bug #44574).
14006 (*avrlibc_devicelib): Same.
14007 * config/avr/avr-mcus.def: Adjust comments.
14008 * config/avr/avr.opt (nodevicelib): Adjust help.
14009
14010 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
14011
14012 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14013
14014 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
14015
14016 PR c++/64527
14017 * gimplify.c (gimplify_init_constructor): Always emit a
14018 side-effecting constructor.
14019
14020 2015-04-17 Tom de Vries <tom@codesourcery.com>
14021
14022 PR tree-optimization/64950
14023 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14024 in cfun->curr_properties.
14025 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14026 if we generate an IFN_VA_ARG.
14027 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14028 function if PROP_gimple_lva is not set in src function.
14029
14030 2015-04-17 Tom de Vries <tom@codesourcery.com>
14031 Michael Matz <matz@suse.de>
14032
14033 PR tree-optimization/64950
14034 * gimple-iterator.c (update_modified_stmts): Remove static.
14035 * gimple-iterator.h (update_modified_stmts): Declare.
14036 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14037 (gimplify_va_arg_internal): New function.
14038 (gimplify_va_arg_expr): Use IFN_VA_ARG.
14039 * gimplify.h (gimplify_va_arg_internal): Declare.
14040 * internal-fn.c (expand_VA_ARG): New unreachable function.
14041 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14042 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14043 (expand_ifn_va_arg): New function.
14044 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14045 (pass_stdarg::execute): Call expand_ifn_va_arg.
14046 (pass_data_lower_vaarg): New pass_data.
14047 (pass_lower_vaarg): New gimple_opt_pass.
14048 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14049 (make_pass_lower_vaarg): New function.
14050 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14051 properties_required field.
14052 * passes.def (all_passes): Add pass_lower_vaarg.
14053 * tree-pass.h (PROP_gimple_lva): Add define.
14054 (make_pass_lower_vaarg): Declare.
14055
14056 2015-04-17 Tom de Vries <tom@codesourcery.com>
14057
14058 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14059 * calls.c (call_expr_flags): Same.
14060
14061 2015-04-17 Tom de Vries <tom@codesourcery.com>
14062
14063 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14064 (pass_stdarg::execute): ... here.
14065
14066 2015-04-17 Tom de Vries <tom@codesourcery.com>
14067 Michael Matz <matz@suse.de>
14068
14069 * tree-cfg.c (make_blocks_1): Factor out of ...
14070 (make_blocks): ... here.
14071 (make_edges_bb): Factor out of ...
14072 (make_edges): ... here.
14073 (gimple_find_sub_bbs): New function.
14074 * tree-cfg.h (gimple_find_sub_bbs): Declare.
14075
14076 2015-04-17 Tom de Vries <tom@codesourcery.com>
14077
14078 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14079
14080 2015-04-17 Yury Gribov <y.gribov@samsung.com>
14081
14082 * asan.c (set_sanitized_sections): New function.
14083 (section_sanitized_p): Ditto.
14084 (asan_protect_global): Optionally sanitize user-defined
14085 sections.
14086 * asan.h (set_sanitized_sections): Declare new function.
14087 * common.opt (fsanitize-sections): New option.
14088 * doc/invoke.texi (-fsanitize-sections): Document new option.
14089 * opts-global.c (handle_common_deferred_options): Handle new
14090 option.
14091
14092 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14093
14094 PR debug/65771
14095 * dwarf2out.c (loc_list_from_tree): Return NULL
14096 for DEBUG_EXPR_DECL.
14097
14098 2015-04-17 Christian Bruel <christian.bruel@st.com>
14099
14100 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14101 same attributes.
14102
14103 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14104
14105 * ira-color.c (setup_left_conflict_sizes_p): Do not process
14106 node itself when computing left conflict subnode size.
14107
14108 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14109
14110 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14111 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14112 *fop_<mode>_1_sse using enabled attribute. Use
14113 register_mixssei387nonimm_operand operand 1 predicate. Change
14114 alternative 3 constraints from "x" to "v".
14115
14116 2015-04-16 Richard Biener <rguenther@suse.de>
14117
14118 PR tree-optimization/65774
14119 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14120 bit-value tracking on.
14121
14122 2015-04-16 Richard Biener <rguenther@suse.de>
14123
14124 PR tree-optimization/64277
14125 * tree-vrp.c (check_array_ref): Fix anti-range handling,
14126 simplify upper bound handling.
14127 (search_for_addr_array): Simplify.
14128 (check_array_bounds): Handle ADDR_EXPRs here.
14129 (check_all_array_refs): Simplify.
14130
14131 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14132
14133 * config/i386/i386.c (print_reg): Rewrite function.
14134
14135 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14136
14137 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14138 Invert the condition.
14139
14140 2015-04-16 Renlin Li <renlin.li@arm.com>
14141
14142 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14143 simplifications for UNSIGNED_FLOAT.
14144
14145 2015-04-16 Nick Clifton <nickc@redhat.com>
14146
14147 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14148 MUL_UNINIT.
14149 (enum rl78_cpu_type): New.
14150 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14151 (umulhi3_shift_virt): Remove m constraint from operand 1.
14152 (umulqihi3_virt): Likewise.
14153 * config/rl78/rl78.c (rl78_option_override): Add code to process
14154 -mcpu and -mmul options.
14155 (rl78_alloc_physical_registers): Add code to handle divhi and
14156 divsi valloc attributes.
14157 (set_origin): Likewise.
14158 * config/rl78/rl78.h (RL78_MUL_G14): Define.
14159 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14160 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14161 __RL78_Gxx__.
14162 (ASM_SPEC): Pass -mcpu on to assembler.
14163 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14164 (mulqi3_rl78): Likewise.
14165 (mulhi3_g13): Likewise.
14166 (mulhi3): Generate the G13 or G14 versions of the insn directly.
14167 (mulsi3): Likewise.
14168 (mulhi3_g14): Add clobbers of AX and BC.
14169 (mulsi3_g14): Likewise.
14170 (mulsi3_g13): Likewise.
14171 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14172 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14173 * config/rl78/rl78.opt (mmul): Initialise value to
14174 RL78_MUL_UNINIT.
14175 (mcpu): New option.
14176 (m13, m14, mrl78): New option aliases.
14177 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14178 (MULTILIB_DIRNAMES): Add g13 and g14.
14179 * doc/invoke.texi: Document -mcpu and -mmul options.
14180
14181 2015-04-16 Richard Biener <rguenther@suse.de>
14182
14183 * tree-ssa-ccp.c (likely_value): See if we have operands that
14184 are marked as never simulate again and return CONSTANT in this
14185 case.
14186 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14187 not have any operands that will be simulated again as
14188 not being simulated again.
14189
14190 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
14191
14192 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14193 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14194 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14195 attribute.
14196 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14197 enabled attribute.
14198 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14199 *float<SWI48:mode><MODEF:mode>2_sse.
14200 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14201 enabled attribute.
14202 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14203 enabled attribute.
14204
14205 2015-04-15 Tom de Vries <tom@codesourcery.com>
14206
14207 PR other/65487
14208 * function.c (push_dummy_function): New function.
14209 (init_dummy_function_start): Use push_dummy_function.
14210 (pop_dummy_function): New function. Factored out of ...
14211 (expand_dummy_function_end): ... here.
14212 * function.h (push_dummy_function, pop_dummy_function): Declare.
14213 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14214 pop_dummy_function.
14215 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14216
14217 2015-04-15 Jeff Law <law@redhat.com>
14218
14219 PR tree-optimization/47679
14220 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14221 need for forward declaration in upcoming changes.
14222 (record_conditions, record_edge_info): Likewise.
14223
14224 PR rtl-optimization/42522
14225 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14226 SIGN_EXTRACT as a whole object rather than simplifying
14227 its operand.
14228
14229 2015-04-15 Jakub Jelinek <jakub@redhat.com>
14230
14231 PR ipa/65765
14232 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14233 and GIMPLE_PREDICT use break instead of return true. For
14234 GIMPLE_EH_DISPATCH, compare dispatch region.
14235
14236 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
14237
14238 * doc/extend.texi (__sync Builtins): Simplify some text. Update
14239 details about the implementation. Make clear preference for
14240 __atomic builtins. Reduce possibility of future change.
14241
14242 2015-04-15 Nick Clifton <nickc@redhat.com>
14243
14244 * config/rx/rx.opt (mallow-string-insns): New option.
14245 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14246 builtin if string instructions are denied.
14247 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14248 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14249 appropriate.
14250 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14251 * config/rx/rx.md (movstr): Enable pattern only if string
14252 instructions are allowed.
14253 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14254 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14255 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14256 (MULTILIB_DIRNAMES): Add no-strings.
14257 * doc/invoke.texi: Document -mno-allow-string-insns.
14258
14259 2015-04-15 Alan Modra <amodra@gmail.com>
14260
14261 PR target/65408
14262 PR target/58744
14263 PR middle-end/36043
14264 * calls.c (load_register_parameters): Don't load past end of
14265 mem unless suitably aligned.
14266
14267 2015-04-15 Nick Clifton <nickc@redhat.com>
14268
14269 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14270 decrement instruction as being frame related.
14271 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14272 based addresses.
14273 If zero extending a function address enclose the operation in
14274 %code(...).
14275 (rl78_preferred_reload_class): New function.
14276 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14277 * config/rl78/rl78.md: Remove useless constraints in expanders.
14278 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14279 (mulhi3_rl78): Likewise.
14280 (mulhi3_g13): Likewise.
14281 (mulsi3_rl78): Likewise.
14282 (es_addr): Move to before the multiply patterns.
14283
14284 2015-04-15 Alan Modra <amodra@gmail.com>
14285
14286 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14287 and sequence_stack. Add seq.
14288 (seq_stack): Delete.
14289 * function.c (prepare_function_start): Don't access x_last_insn.
14290 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14291 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14292 * emit_rtl.c (start_sequence, push_topmost_sequence,
14293 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14294 sequence accessors.
14295 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14296 remove_insn): Likewise. Simplify.
14297 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14298 and pop_topmost_sequence.
14299 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
14300 debug insns.
14301 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14302
14303 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
14304
14305 PR target/65729
14306 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14307 the assertiion.
14308
14309 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14310
14311 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14312 (LEGACY_INT_REGNO_P): Ditto.
14313 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14314 (ANY_MASK_REG_P): Remove.
14315 (BND_REG_P): Rename from ANY_BND_REG_P.
14316 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14317 legacy integer registers. Do not handle MMX_REG_P in a special way.
14318 Merge 64byte and 32byte SSE handling.
14319
14320 2015-04-14 Nick Clifton <nickc@redhat.com>
14321
14322 * expr.c (expand_assignment): Force an address offset computation
14323 into a register before changing its mode.
14324 (expand_expr_real_1): Likewise.
14325
14326 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
14327
14328 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14329 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14330 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14331 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14332 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14333 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14334 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14335 and __aarch64_vget_lane_any.
14336
14337 2015-04-14 Jakub Jelinek <jakub@redhat.com>
14338
14339 PR rtl-optimization/65761
14340 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14341 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14342
14343 2015-04-14 Richard Biener <rguenther@suse.de>
14344
14345 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14346 (graphite_can_represent_scev): Use POINTER_TYPE_P.
14347
14348 2015-04-14 Richard Biener <rguenther@suse.de>
14349
14350 PR tree-optimization/65758
14351 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14352 against -1.
14353 (ccp_lattice_meet): Likewise.
14354 (bit_value_unop): Likewise.
14355 (bit_value_binop): Likewise.
14356 (bit_value_assume_aligned): Likewise.
14357
14358 2015-04-14 Christian Bruel <christian.bruel@st.com>
14359
14360 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14361 function.
14362
14363 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
14364
14365 PR tree-optimization/63387
14366 * match.pd ((x unord x) | (y unord y) -> (x unord y),
14367 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14368
14369 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14370
14371 * config/i386/predicates.md (any_QIreg_operand): Rename from
14372 q_regs_operand. Do not process subregs.
14373 (QIreg_operand): Use QI_REGNO_P predicate.
14374 (ext_QIreg_operand): Ditto.
14375 (ext_register_operand): Ditto.
14376 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14377 (AND splitters): Ditto.
14378 (AND with -65536 splitter): Add SWI48 mode for operand 0.
14379 (AND with -256 splitter): Use any_QIreg_operand predicate and
14380 SWI248 mode for operand 0.
14381 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14382 mode for operand 0.
14383 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14384
14385 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
14386
14387 * doc/plugins.texi: Rewrite first introductory paragraph.
14388
14389 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14390
14391 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14392 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14393
14394 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14395
14396 * ipa-profie.c (ipa_profile): Check number of parameters
14397 and possible polymorphic call targets before
14398 devirtualizing.
14399
14400 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
14401
14402 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14403 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14404
14405 2015-04-13 Richard Biener <rguenther@suse.de>
14406
14407 PR tree-optimization/65204
14408 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14409 takens for bit-CCP.
14410
14411 2015-04-13 Richard Biener <rguenther@suse.de>
14412
14413 PR target/65660
14414 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14415 and cond_not_taken_branch_cost to 4 and 2.
14416 (bdver2_cost): Likewise.
14417 (bdver3_cost): Likewise.
14418 (bdver4_cost): Likewise.
14419
14420 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14421
14422 * hash-table.h (hash_table constructor): Add mem stats.
14423 (alloc_entries): Likewise.
14424
14425 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14426
14427 * ipa-cp.c (ipcp_driver): Relase prev_edge.
14428 * passes.c (execute_one_pass): Only add transform if pass has one.
14429
14430 2015-04-12 Joseph Myers <joseph@codesourcery.com>
14431
14432 * config/i386/i386.c (ix86_option_override_internal): Don't set
14433 -fprefetch-loop-arrays if optimizing for size.
14434
14435 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14436 Gerald Pfeifer <gerald@pfeifer.com>
14437
14438 * doc/contrib.texi (Contributors): Add Martin Jambor and
14439 Michael Matz.
14440
14441 2015-04-12 Jakub Jelinek <jakub@redhat.com>
14442
14443 * BASE-VER: Set to 6.0.0.
14444
14445 PR tree-optimization/65747
14446 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14447 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14448
14449 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14450
14451 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14452 sentence. Improve grammar.
14453
14454 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14455
14456 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14457
14458 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14459
14460 PR ipa/65743
14461 * ipa-inline-transform.c (speculation_removed): Remove static var.
14462 (check_speculations): New function.
14463 (clone_inlined_nodes): Do not check spculations.
14464 (inline_call): Call check_speculations.
14465 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14466 consider non-invariants.
14467
14468 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14469 Martin Liska <mliska@suse.cz>
14470
14471 PR ipa/65722
14472 * ipa-icf.c (sem_item::compare_cgraph_references): function and
14473 variable can not match.
14474 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14475 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14476
14477 2015-04-11 Jakub Jelinek <jakub@redhat.com>
14478
14479 PR tree-optimization/65735
14480 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14481 Remove visited_phis argument, add visited_bbs, avoid recursing into the
14482 same bb rather than just into the same phi node.
14483 (thread_through_normal_block): Adjust caller.
14484
14485 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14486
14487 * doc/contrib.texi (Contributors): Add Ira Rosen.
14488
14489 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
14490
14491 * gcov.c (find_source): Fix miswording in error message.
14492 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14493 (ix86_expand_sse_comi_round): Fix typo in error message.
14494
14495 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14496
14497 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14498
14499 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
14500
14501 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14502
14503 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14504
14505 PR target/65710
14506 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14507 Print bad_spills_num and insn_pseudos_num.
14508
14509 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14510
14511 PR target/65694
14512 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14513 when creating +1 values for SImode.
14514
14515 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14516
14517 PR target/65729
14518 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14519 assert.
14520
14521 2015-04-10 Jakub Jelinek <jakub@redhat.com>
14522 Iain Sandoe <iain@codesourcery.com>
14523
14524 PR target/65351
14525 * configure: Regenerate.
14526
14527 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14528
14529 PR target/65671
14530 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14531
14532 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
14533
14534 * doc/contrib.texi (Contributors): Add John Marino.
14535
14536 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14537
14538 PR tree-optimization/65709
14539 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14540 TREE_TYPE (TREE_TYPE (t)).
14541
14542 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
14543
14544 PR target/65710
14545 * lra-int.h (lra_bad_spill_regno_start): New.
14546 * lra.c (lra_bad_spill_regno_start): New.
14547 (lra): Set up lra_bad_spill_regno_start. Set up
14548 lra_constraint_new_regno_start unconditionally.
14549 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14550 spill preferences.
14551
14552 2015-04-09 Marek Polacek <polacek@redhat.com>
14553 Jakub Jelinek <jakub@redhat.com>
14554
14555 PR middle-end/65554
14556 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14557 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14558 of STRIP_NOPS.
14559
14560 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
14561
14562 PR rtl-optimization/65693
14563 * combine.c (is_parallel_of_n_reg_sets): Move outside of
14564 #ifndef HAVE_cc0.
14565
14566 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
14567
14568 PR target/65296
14569 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14570 device specs file if "device-specs%s" didn't resolve to a path.
14571
14572 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14573
14574 PR target/65676
14575 * config/i386/i386.c (fixup_modeless_constant): New.
14576 (ix86_expand_args_builtin): Fixup modeless constant operand.
14577 (ix86_expand_round_builtin): Ditto.
14578 (ix86_expand_special_args_builtin): Ditto.
14579 (ix86_expand_builtin): Ditto.
14580
14581 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14582
14583 PR target/65693
14584 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14585 any pow2 integer in between 2 and 0x80000000U inclusive.
14586
14587 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
14588
14589 PR rtl-optimization/65693
14590 * combine.c (is_parallel_of_n_reg_sets): Change first argument
14591 from an rtx_insn * to an rtx.
14592 (try_combine): Adjust both callers. Use it once more.
14593
14594 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14595
14596 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14597 (chkp_make_static_const_bounds): Search existing
14598 symbol by assembler name. Use make_decl_one_only.
14599 (chkp_get_zero_bounds_var): Remove node search which
14600 is now performed in chkp_make_static_const_bounds.
14601 (chkp_get_none_bounds_var): Likewise.
14602
14603 2015-04-08 Michael Witten <mfwitten@gmail.com>
14604
14605 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14606 to an example.
14607
14608 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14609
14610 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14611
14612 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14613
14614 * doc/extend.texi (__sync Builtins): Fix grammar.
14615
14616 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14617
14618 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14619
14620 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14621
14622 * varasm.c (emit_local): Move definition of align.
14623
14624 2015-04-08 Julian Brown <julian@codesourcery.com>
14625
14626 * config/nvptx/mkoffload.c (process): Support variable mapping.
14627
14628 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
14629
14630 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14631 alpha_links **.
14632 (alpha_write_one_linkage): Correct typo.
14633
14634 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14635
14636 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14637
14638 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14639
14640 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14641
14642 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14643
14644 * tree-chkp.h (chkp_insert_retbnd_call): New.
14645 * tree-chkp.c (chkp_insert_retbnd_call): New.
14646 * ipa-split.c (insert_bndret_call_after): Remove.
14647 (split_function): Use chkp_insert_retbnd_call.
14648 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14649 bounds for instrumented functions.
14650
14651 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
14652
14653 PR ipa/65540
14654 * calls.c (initialize_argument_information): When producing tail
14655 call also turn SSA_NAMES passed by references to original PARM_DECLs
14656
14657 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
14658
14659 PR target/65648
14660 * lra-remat.c (do_remat): Process input and non-input insn
14661 registers separately.
14662
14663 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14664
14665 PR debug/65678
14666 * valtrack.c (debug_lowpart_subreg): New function.
14667 (dead_debug_insert_temp): Use it.
14668
14669 PR middle-end/65680
14670 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14671 into signed HOST_WIDE_INT the same as negative bit_offset.
14672
14673 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
14674
14675 * ipa-comdats.c (ipa_comdats): Visit all thunks
14676 to set proper comdat group.
14677
14678 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14679
14680 PR target/65489
14681 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14682 on constants for NEON VSTRUCT modes.
14683
14684 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14685 Iain Sandoe <iain@codesourcery.com>
14686
14687 PR target/65351
14688 * configure: Regenerate.
14689
14690 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14691
14692 PR target/65614
14693 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14694 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14695 that LFD is used to load double constants instead of LFS. Add
14696 defaults for all costs structures. Add comments for missing
14697 initialization fields.
14698 (size32_cost): Likewise.
14699 (size64_cost): Likewise.
14700 (rs64a_cost): Likewise.
14701 (mpccore_cost): Likewise.
14702 (ppc403_cost): Likewise.
14703 (ppc405_cost): Likewise.
14704 (ppc440_cost): Likewise.
14705 (ppc476_cost): Likewise.
14706 (ppc601_cost): Likewise.
14707 (ppc603_cost): Likewise.
14708 (ppc604_cost): Likewise.
14709 (ppc604e_cost): Likewise.
14710 (ppc620_cost): Likewise.
14711 (ppc630_cost): Likewise.
14712 (ppccell_cost): Likewise.
14713 (ppc750_cost): Likewise.
14714 (ppc7450_cost): Likewise.
14715 (ppc8540_cost): Likewise.
14716 (ppce300c2c3_cost): Likewise.
14717 (ppce500mc_cost): Likewise.
14718 (ppce500mc64_cost): Likewise.
14719 (ppce5500_cost): Likewise.
14720 (ppce6500_cost): Likewise.
14721 (titan_cost): Likewise.
14722 (power4_cost): Likewise.
14723 (power6_cost): Likewise.
14724 (power7_cost): Likewise.
14725 (power8_cost): Likewise.
14726 (ppca2_cost): Likewise.
14727 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
14728
14729 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
14730 instead of XXLOR to copy SFmode to clear out dirty bits created
14731 when SFmode denormals are generated.
14732 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
14733 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
14734
14735 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
14736
14737 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
14738 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
14739 * config/aarch64/aarch64-tune.md: Regenerate.
14740
14741 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
14742
14743 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
14744 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
14745 * config/arm/arm-cores.def (exynos-m1): New core.
14746 * config/arm/arm-tune.md: Regenerate.
14747 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
14748 * config/arm/bpabi.h: Likewise.
14749
14750 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
14751
14752 * ipa-cp (set_single_call_flag): Remove too
14753 restrictive assert.
14754
14755 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14756
14757 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
14758 GOMP_offload_unregister from the destructor.
14759
14760 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
14761
14762 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
14763 flags for instrumentation thunk.
14764 (chkp_produce_thunks): Likewise.
14765
14766 2015-04-05 Martin Liska <mliska@suse.cz>
14767
14768 PR ipa/65665
14769 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
14770 has computed data structure.
14771 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14772
14773 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
14774
14775 * invoke.texi (inline-unit-growth): Increase growth to 20%
14776 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
14777
14778 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
14779
14780 PR target/65647
14781 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
14782 value checking.
14783 (lra_rematerialization_iter): New.
14784 * lra.c (lra): Initialize lra_rematerialization_iter.
14785 Stop updating lra_constraint_new_regno_start after switching of
14786 inheritance and rematerialization.
14787 * lra-remat.c (lra_rematerialization_iter): New.
14788 (lra_remat): Add printing pass iteration. Do rematerialization
14789 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
14790
14791 2015-04-04 Richard Biener <rguenther@suse.de>
14792
14793 PR tree-optimization/64909
14794 PR tree-optimization/65660
14795 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
14796 to take a cost vector for scalar iteration cost.
14797 (vect_get_single_scalar_iteration_cost): Likewise.
14798 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
14799 Compute the scalar iteration cost into a cost vector.
14800 (vect_get_known_peeling_cost): Use the scalar cost vector to
14801 account for the cost of the peeled iterations.
14802 (vect_estimate_min_profitable_iters): Likewise.
14803 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
14804 Likewise.
14805
14806 2015-04-04 Alan Modra <amodra@gmail.com>
14807
14808 PR target/65576
14809 PR target/65240
14810 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
14811 0.0 constant unless TARGET_VSX.
14812 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
14813 alternative.
14814
14815 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
14816
14817 PR ipa/65654
14818 * ipa-inline-transform.c (inline_call): Skip sanity check to work
14819 around the ICE
14820
14821 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
14822
14823 PR ipa/65655
14824 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
14825 speculative indirect edges to avoid ordering issue.
14826
14827 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
14828
14829 PR ipa/65076
14830 * ipa-inline.c (edge_badness): Add combined size to the denominator.
14831
14832 2015-04-03 Jakub Jelinek <jakub@redhat.com>
14833
14834 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
14835 TYPE_ARTIFICIAL on the .omp_data* types.
14836
14837 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14838
14839 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
14840 instrumentation thunks.
14841
14842 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14843
14844 * config/i386/i386.c (ix86_expand_call): Avoid nested
14845 PARALLEL in returned call value.
14846
14847 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14848
14849 * lto-cgraph.c (input_cgraph_1): Always link instrumented
14850 assembler name with original one.
14851
14852 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
14853
14854 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
14855
14856 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
14857
14858 Revert parts of r216820.
14859 * config/i386/i386.md (movqi_internal): Correct type calculation
14860 for alternatives 3 and 5.
14861
14862 2015-04-02 Jakub Jelinek <jakub@redhat.com>
14863
14864 PR preprocessor/61977
14865 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
14866 predefine __vector/__bool/__pixel macros nor context sensitive
14867 macros for CLK_ASM.
14868 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
14869
14870 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
14871
14872 * config/pa/pa.c (pa_output_move_double): Directly handle register
14873 indexed memory operand. Simplify handling of scaled register indexed
14874 memory operands.
14875
14876 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
14877
14878 PR driver/65444
14879 * config/i386/linux-common.h (MPX_SPEC): New.
14880 (CHKP_SPEC): Add MPX_SPEC.
14881 * doc/invoke.texi (-fcheck-pointer-boudns): Document
14882 possible issues with '-z bndplt' support in linker.
14883
14884 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
14885
14886 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
14887 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
14888 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
14889 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
14890 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
14891
14892 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
14893
14894 * config/i386/sync.md (UNSPEC_MOVA): Remove.
14895 (atomic_load<mode>): Change operand 0 predicate to
14896 nonimmediate_operand and fix up the destination when needed.
14897 Use UNSPEC_LDA.
14898 (atomic_loaddi_fpu): Use UNSPEC_LDA.
14899 (atomic_store<mode>): Change operand 1 predicate to
14900 nonimmendate_operand and move the source to register when needed.
14901 Use UNSPEC_STA.
14902 (atomic_store<mode>_1): Use UNSPEC_STA.
14903 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
14904 Fix moves from memory operand. Use UNSPEC_STA.
14905
14906 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
14907
14908 * expmed.c (strict_volatile_bitfield_p): Check that the access will
14909 not cross a MODESIZE boundary.
14910 (store_bit_field, extract_bit_field): Added assertions in the
14911 strict volatile bitfields code path.
14912
14913 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
14914
14915 PR target/65624
14916 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
14917 Increase args array size by one to avoid buffer overflow.
14918
14919 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
14920
14921 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14922 split_part.
14923 * ipa-inline.c (edge_badness): Add wrapper penalty.
14924 (sum_callers): Move up.
14925 (inline_small_functions): Set single_caller.
14926 * ipa-inline.h (inline_summary): Add single_caller.
14927 * ipa-split.c (split_function): Set split_part.
14928 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
14929 * cgraph.h (cgraph_node): Add split_part.
14930
14931 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
14932
14933 PR target/58945
14934 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14935 Do not split operands 0 and operands 2 to halfmode.
14936 (atomic_compare_and_swap<mode>): Update for
14937 atomic_compare_and_swap<dwi>_doubleword changes.
14938
14939 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
14940
14941 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
14942 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
14943 no caching is done.
14944
14945 2015-03-31 Martin Liska <mliska@suse.cz>
14946
14947 PR ipa/65557
14948 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
14949 has already filled up function summary.
14950 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14951
14952 2015-03-31 Richard Biener <rguenther@suse.de>
14953
14954 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
14955 of types.
14956
14957 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
14958
14959 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
14960 nested functions.
14961 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
14962 (s390_asm_output_function_label): Adapt to new signature of
14963 s390_function_num_hotpatch_hw
14964 Optimise the code generating assembler output.
14965 Add comments to assembler file.
14966
14967 2015-03-31 Richard Biener <rguenther@suse.de>
14968
14969 PR middle-end/65626
14970 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
14971 of the noreturn call so it is last and cleanup_control_flow_bb
14972 can do the CFG part.
14973
14974 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
14975
14976 PR target/65531
14977 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
14978 same_comdat_group for external symbols.
14979 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
14980 infinite same_comdat_group traversal loop.
14981
14982 2015-03-31 Jakub Jelinek <jakub@redhat.com>
14983
14984 PR plugins/61176
14985 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
14986 automatically to $headers.
14987
14988 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14989
14990 PR ipa/65610
14991 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
14992 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
14993 function.
14994 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
14995 Use it.
14996 * ipa-prop.c (param_type_may_change_p): Likewise.
14997 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
14998 (remove_unused_scope_block_p): Add in_ctor_dtor_block
14999 argument. Before inlining, preserve
15000 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15001 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
15002 recursive calls.
15003 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15004
15005 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15006
15007 PR ipa/65076
15008 * ipa-inline.c (edge_badness): Base denominator on callee's
15009 grwoth squared.
15010
15011 2015-03-27 Martin Jambor <mjambor@suse.cz>
15012
15013 PR ipa/65478
15014 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15015 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15016 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15017 node_calling_single_call.
15018 * ipa-cp.c (count_callers): New function.
15019 (set_single_call_flag): Likewise.
15020 (initialize_node_lattices): Count callers and set single_flag_call if
15021 necessary.
15022 (incorporate_penalties): New function.
15023 (good_cloning_opportunity_p): Use it, dump new flags.
15024 (propagate_constants_topo): Set node_within_scc flag if appropriate.
15025 * doc/invoke.texi (ipa-cp-recursion-penalty,
15026 ipa-cp-single-call-pentalty): Document.
15027
15028 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15029
15030 PR ipa/65588
15031 * symtab.c (symtab_node::get_partitioning_class): Register vars
15032 are duplicated.
15033 * varpool.c (symbol_table::output_variables) Do not assemble unefined
15034 decls for non-symbols.
15035
15036 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
15037
15038 PR target/65248
15039 * output.h (default_binds_local_p_2): New.
15040 * varasm.c (default_binds_local_p_2): Renamed to ...
15041 (default_binds_local_p_3): This. Don't return true on protected
15042 data symbol if protected data may be external.
15043 (default_binds_local_p): Use default_binds_local_p_3.
15044 (default_binds_local_p_1): Likewise.
15045 (default_binds_local_p_2): New.
15046 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15047 default_binds_local_p_2 if TARGET_MACHO is undefined.
15048
15049 2015-03-27 Jakub Jelinek <jakub@redhat.com>
15050
15051 PR target/65593
15052 * config/i386/i386.c (legitimize_pic_address): If base
15053 is SYMBOL_REF or LABEL_REF using %rip addressing, force
15054 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15055
15056 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15057
15058 PR target/65531
15059 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15060 comdat groups.
15061
15062 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15063
15064 PR ipa/65600
15065 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15066 of optimized out indirect call.
15067 (redirect_to_unreachable): Always build symbol table node for
15068 BUILT_IN_UNREACHABLE
15069
15070 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
15071
15072 PR target/65407
15073 * ira-costs.c (record_reg_classes): Process all constraint string
15074 containing 0-9.
15075
15076 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
15077
15078 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15079 memory_operand.
15080
15081 PR target/65052
15082 * config/c6x/constraints.md (S3): New constraint.
15083 * config/c6x/c6x.md (real_jump): Use it.
15084
15085 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15086
15087 PR middle-end/65595
15088 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15089 do redirection if the call is not optimized out.
15090
15091 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
15092
15093 PR target/65495
15094 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15095 (fchkp-check-incomplete-type): Add LTO.
15096 (fchkp-zero-input-bounds-for-main): Likewise.
15097 (fchkp-first-field-has-own-bounds): Likewise.
15098 (fchkp-narrow-bounds): Likewise.
15099 (fchkp-narrow-to-innermost-array): Likewise.
15100 (fchkp-use-static-bounds): Likewise.
15101 (fchkp-use-static-const-bounds): Likewise.
15102 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15103
15104 2015-03-27 Marek Polacek <polacek@redhat.com>
15105
15106 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15107
15108 2015-03-27 Marek Polacek <polacek@redhat.com>
15109
15110 PR sanitizer/65583
15111 * ubsan.c (ubsan_create_edge): New function.
15112 (instrument_bool_enum_load): Call it.
15113 (instrument_nonnull_arg): Likewise.
15114 (instrument_nonnull_return): Likewise.
15115 (instrument_object_size): Likewise.
15116
15117 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15118
15119 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15120 auto_vec.
15121
15122 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15123
15124 PR lto/65536
15125 * lto-streamer.h (class lto_location_cache): New.
15126 (struct data_in): Add location_cache.
15127 (lto_input_location): Update prototype.
15128 (stream_input_location_now): New.
15129 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15130 pointer to location.
15131 (stream_input_location): Update.
15132 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15133 (warn_odr): Apply location cache before warning.
15134 (lto_input_location): Update prototype.
15135 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15136 Use stream_input_location_now.
15137 * lto-streamer-in.c (lto_location_cache::current_cache): New static
15138 variable.
15139 (lto_location_cache::cmp_loc): New function.
15140 (lto_location_cache::apply_location_cache): New function.
15141 (lto_location_cache::accept_location_cache): New function.
15142 (lto_location_cache::revert_location_cache): New function.
15143 (lto_location_cache::input_location): New function.
15144 (lto_input_location): Do location caching.
15145 (stream_input_location_now): New function.
15146 (input_eh_region, input_struct_function_base): Use
15147 stream_input_location_now.
15148 (lto_data_in_create): use new.
15149 (lto_data_in_delete): Use delete.
15150 * tree-streamer-in.c (unpack_ts_block_value_fields,
15151 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15152 lto_input_ts_exp_tree_pointers): Update for cached location api.
15153
15154 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15155
15156 PR ipa/65076
15157 * passes.def: Add pass_nothrow.
15158 * ipa-pure-const.c: (pass_data_nothrow): New.
15159 (pass_nothrow): New.
15160 (pass_nothrow::execute): New.
15161 (make_pass_nothrow): New.
15162 * tree-pass.h (make_pass_nothrow): Declare.
15163
15164 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15165
15166 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15167 edge to change by speculation resolution or redirection.
15168 (edge_set_predicate): Likewise.
15169 (inline_summary_t::duplicate): Likewise.
15170 (remap_edge_summaries): Likewise.
15171
15172 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15173
15174 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15175 New macros.
15176 (can_inline_edge_p): Relax option matching for always inline functions.
15177
15178 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
15179
15180 PR target/65561
15181 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15182 Check operand 4 and operand 0 for equality.
15183 (avx512f_vextract<shuffletype>32x4_1_maskm):
15184 Check operand 6 and operand 0 for equality.
15185 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15186 for equality.
15187 (vec_extract_hi_<mode>_maskm): Ditto.
15188
15189 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15190
15191 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15192 dead calls back to live.
15193 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15194 cross check to ...
15195 (cgraph_node::verify_node): ... here; verify only callee edges,
15196 not caller.
15197 * cif-code.def (CILK_SPAWN): New code.
15198
15199 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15200
15201 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15202 (edge_set_predicate): Use it to mark unreachable edges.
15203 (inline_summary_t::duplicate): Remove unnecesary code.
15204 (remap_edge_summaries): Likewise.
15205 (dump_inline_summary): Report contains_cilk_spawn.
15206 (compute_inline_parameters): Compute contains_cilk_spawn.
15207 (inline_read_section, inline_write_summary): Stream
15208 contains_cilk_spawn.
15209 * ipa-inline.c (can_inline_edge_p): Do not touch
15210 DECL_STRUCT_FUNCTION that may not be available;
15211 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15212 remove check for callee_fun->can_throw_non_call_exceptions and
15213 replace it by optimization attribute check; check for flag_exceptions.
15214 * ipa-inline-transform.c (inline_call): Maintain
15215 DECL_FUNCTION_PERSONALITY
15216 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15217
15218 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15219
15220 PR tree-optimization/65551
15221 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15222 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15223
15224 2015-03-26 Richard Biener <rguenther@suse.de>
15225
15226 PR middle-end/65555
15227 * tree-cfg.c (verify_gimple_call): Do not require a call to
15228 have no LHS if it wasn't recognized as control altering yet.
15229
15230 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15231
15232 PR tree-optimization/64715
15233 * passes.def: Add another instance of pass_object_sizes before ccp1.
15234 * tree-object-size.c (pass_object_sizes::execute): In
15235 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15236 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15237 __bos result and the computed constant. Remove redundant
15238 checks, obsoleted by gimple_call_builtin_p test.
15239
15240 * var-tracking.c (variable_tracking_main_1): Don't track
15241 variables for targetm.no_register_allocation targets.
15242
15243 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
15244
15245 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15246 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15247
15248 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15249
15250 PR target/65569
15251 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15252 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
15253 0.0 is correctly setup.
15254 (extenddftf2_internal): Likewise.
15255
15256 2015-03-25 Sebastian Pop <s.pop@samsung.com>
15257
15258 PR tree-optimization/65177
15259 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15260 (bb_in_bbs): New.
15261 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
15262 edges not adjacent on the path to the original code.
15263
15264 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
15265
15266 PR bootstrap/65537
15267 * doc/install.texi (Building a native compiler): Document new
15268 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
15269 configuration assumes that the host supports the linker plugin.
15270
15271 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
15272
15273 PR target/65508
15274 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15275 chain for generated call.
15276
15277 2015-03-25 Richard Biener <rguenther@suse.de>
15278
15279 * passes.c (pass_manager::execute_early_local_passes): Guard
15280 execution of pass_chkp_instrumentation_passes with
15281 flag_check_pointer_bounds.
15282 (pass_chkp_instrumentation_passes::gate): Likewise.
15283
15284 2015-03-25 Martin Liska <mliska@suse.cz>
15285
15286 PR tree-optimization/65538
15287 * symbol-summary.h (function_summary::~function_summary):
15288 Relese memory for allocated summaries.
15289 (function_summary::release): New function.
15290
15291 2015-03-25 Jakub Jelinek <jakub@redhat.com>
15292
15293 PR lto/65515
15294 * lto-streamer-out.c (DFS::worklist): New struct.
15295 (DFS::worklist_vec): New data member.
15296 (DFS::next_dfs_num): Remove.
15297 (DFS::DFS): Rewritten using worklist instead of recursion,
15298 using most of code from DFS::DFS_write_tree.
15299 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15300 pass it to DFS_write_tree calls.
15301 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15302 quick initial checks push it into worklist_vec and return.
15303
15304 2015-03-25 Richard Biener <rguenther@suse.de>
15305
15306 PR middle-end/65519
15307 * genmatch.c (expr::gen_transform): Re-write to avoid
15308 using gimple_build.
15309
15310 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15311
15312 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15313
15314 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15315
15316 * config/arm/arm.opt (print_tune_info): New option.
15317 * config/arm/arm.c (arm_print_tune_info): New function.
15318 (arm_file_start): Call arm_print_tune_info.
15319 * config/arm/arm-protos.h (struct tune_params): Add comment.
15320 * doc/invoke.texi (@item -mprint-tune-info): New item.
15321 (-mtune): mention it in ARM Option Summary.
15322
15323 2015-03-25 DJ Delorie <dj@redhat.com>
15324
15325 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15326 correct clause.
15327
15328 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
15329 Martin Liska <mliska@suse.cz>
15330
15331 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15332 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15333 (sem_item::add_type): New function.
15334 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15335 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15336 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15337 (sem_function::equals_wpa): Fix typo.
15338 * ipa-icf.h (sem_item::add_type): New function.
15339 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15340 order.
15341
15342 2015-03-24 Jakub Jelinek <jakub@redhat.com>
15343
15344 PR tree-optimization/65533
15345 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15346 with swapped operands, call vect_free_slp_tree on
15347 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15348 vector.
15349
15350 2015-03-24 Richard Biener <rguenther@suse.de>
15351
15352 PR middle-end/65517
15353 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15354 for fixup if necessary.
15355
15356 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
15357
15358 * doc/extend.texi (Function Attributes): Add @cindex entries
15359 for all attributes and regularize their format. Delete text
15360 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
15361 information about "eightbit_data", "tiny_data", and "model"
15362 variable attributes to the Variable Attributes section. Fix
15363 some obvious typos and copy-editing issues.
15364 (Variable Attributes, Type Attributes): Likewise add/fix
15365 @cindex entries for all attributes.
15366
15367 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15368
15369 PR target/65523
15370 * tree-chkp.c (chkp_build_returned_bound): Ignore
15371 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15372
15373 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
15374
15375 PR target/65505
15376 * config/sh/predicates.md (simple_mem_operand,
15377 displacement_mem_operand): Add test for reg.
15378 (short_displacement_mem_operand): Test for displacement_mem_operand
15379 before invoking sh_disp_addr_displacement.
15380 * config/sh/constraints.md (Sdd, Sra): Simplify.
15381 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15382 Remove redundant displacement_mem_operand tests.
15383
15384 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
15385
15386 PR target/65296
15387 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15388 the same -mmcu=MCU more than once.
15389
15390 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15391
15392 PR bootstrap/65522
15393 * ipa-devirt.c: Remove duplicate demangle.h include.
15394
15395 PR target/65504
15396 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15397 on the pseudo.
15398 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15399 REG_POINTER on *destptr after adjusting it for prologue size.
15400
15401 PR ipa/65521
15402 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15403 ultimate_alias_target ()->order ints instead of
15404 ultimate_alias_target () pointers.
15405
15406 2015-03-23 Richard Biener <rguenther@suse.de>
15407
15408 PR tree-optimization/65518
15409 * tree-vect-stmts.c (vectorizable_load): Reject single-element
15410 interleaving cases we generate absymal code for.
15411
15412 2015-03-23 Richard Biener <rguenther@suse.de>
15413
15414 PR tree-optimization/65494
15415 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15416 matches here.
15417 (vect_analyze_slp_instance): But do that here, always and once.
15418
15419 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15420
15421 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15422 adding T or multiplying by T+1 and subracting T.
15423
15424 2015-03-22 Jeff Law <law@redhat.com>
15425
15426 PR rtl-optimization/64317
15427 * Makefile.in (OBJS): Add gcse-common.c
15428 * gcse.c: Include gcse-common.h
15429 (struct modify_pair_s): Move structure definition to gcse-common.h
15430 (compute_transp): Move function to gcse-common.c.
15431 (canon_list_insert): Similarly.
15432 (record_last_mem_set_info): Break out some code and put it into
15433 gcse-common.c. Call into the new common code.
15434 (compute_local_properties): Pass additional arguments to compute_transp.
15435 * postreload-gcse.c: Include gcse-common.h and df.h
15436 (modify_mem_list_set, blocks_with_calls): New variables.
15437 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15438 (get_bb_avail_insn): Pass in the expression index too.
15439 (alloc_mem): Allocate memory for the new bitmaps and lists.
15440 (free_mem): Free memory for the new bitmaps and lists.
15441 (insert_expr_in_table): Record a bitmap index for each entry we
15442 add to the table.
15443 (record_last_mem_set_info): Call into common code in gcse-common.c.
15444 (get_bb_avail_insn): If no available insn was found in the requested
15445 BB. If BB has a single predecessor, see if the expression is
15446 transparent in BB and available in that single predecessor.
15447 (compute_expr_transp): New wrapper for compute_transp.
15448 (eliminate_partially_redundant_load): Pass expression's bitmap_index
15449 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
15450 (gcse_after_reload_main): If there are elements in the hash table,
15451 then compute transparency for all the elements in the hash table.
15452 * gcse-common.h: New file.
15453 * gcse-common.c: New file.
15454
15455 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
15456
15457 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15458 as an adjective.
15459 (System Headers): Likewise.
15460 (Ifdef): Likewise.
15461 (Traditional macros): Likewise.
15462 (Invocation): Likewise.
15463 (Option Index): Likewise.
15464 * doc/cppopts.texi (-M): Likewise.
15465 (-finput-charset): Likewise.
15466 (--help): Likewise.
15467 * doc.invoke.texi (AVR Options): Likewise.
15468 (V850 Options): Likewise.
15469
15470 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
15471
15472 PR ipa/65475
15473 * ipa-devirt.c: Include demangle.h
15474 (odr_type_d): Add field rtti_broken.
15475 (odr_subtypes_equivalent_p): Do not require name to match.
15476 (compare_virtual_tables): Fix typo; if type already has ODR violation,
15477 bypass the tests; be ready for function referneces in vtables that are
15478 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15479 (warn_odr): Give up for nameless types.
15480 (warn_types_mismatch): Report mismatch in mangled names;
15481 report mismatch in anonymous namespaces; look into component types to
15482 give useful error; report when mismatch is dragged in from other ODR
15483 type.
15484 (odr_types_equivalent_p): Match types for being polymorphic; avoid
15485 duplicated diagnostics.
15486 (add_type_duplicate): Reorder checks so more informative ones come
15487 first; fix typo; do not output "the extra base is defined here" when
15488 we did not warn.
15489 (BINFO_N_BASE_BINFOS): Relax sanity check.
15490
15491 2015-03-22 Martin Liska <mliska@suse.cz>
15492 Jakub Jelinek <jakub@redhat.com>
15493
15494 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15495 masks that can potentially include a builtin.
15496 (ix86_add_new_builtins): Introduce fast filter for isa values
15497 that cannot trigger builtin inclusion.
15498
15499 2015-03-22 Martin Liska <mliska@suse.cz>
15500
15501 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15502 (sem_item::update_hash_by_local_refs): Likewise.
15503 (sem_variable::get_hash): Empty line is fixed.
15504 (sem_item_optimizer::execute): Include adding of hash references.
15505 (sem_item_optimizer::update_hash_by_addr_refs): New function.
15506 (sem_item_optimizer::build_hash_based_classes): Use local hash.
15507 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15508 (sem_item::update_hash_by_local_refs): Likewise.
15509
15510 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15511
15512 PR ipa/65502
15513 * ipa-comdats.c (enqueue_references): Walk through thunks.
15514 (ipa_comdats): Likewise.
15515 (set_comdat_group_1): New function.
15516
15517 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15518
15519 PR ipa/65475
15520 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15521 non-polymorphic
15522
15523 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
15524 Gerald Pfeifer <gerald@pfeifer.com>
15525
15526 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15527
15528 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15529 Sandra Loosemore <sandra@codesourcery.com>
15530
15531 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15532 function parameter declaration.
15533 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15534 Update arguments to nios2_adjust_call_address().
15535 (sibcall_internal): Rename from *sibcall.
15536 (sibcall_value_internal): Rename from *sibcall_value.
15537 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15538 (nios2_large_got_address): Add target temp reg parameter.
15539 (nios2_got_address): Adjust call to nios2_large_got_address, add
15540 force_reg around it.
15541 (nios2_load_pic_address): Add target temp reg parameter, replace call
15542 to nios2_got_address with corresponding code.
15543 (nios2_legitimize_constant_address): Update call to
15544 nios2_load_pic_address.
15545 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15546 to use temp reg for PIC loading purposes.
15547 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15548 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15549 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15550
15551 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15552
15553 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15554 usage of "the @option{...}".
15555 (-Wopenmp-simd): Likewise.
15556 (-fsanitize-recover): Likewise.
15557 (-fsanitize-undefined-trap-on-error): Likewise.
15558 (-flto): Likewise.
15559 (tracer-dynamic-coverage-feedback): Likewise.
15560 (reorder-block-duplicate-feedback): Likewise.
15561 (loop-unroll-jam-size): Likewise.
15562 (-B): Likewise.
15563 (-I-): Likewise.
15564 (-mabs=legacy): Likewise.
15565 (-mupper-regs-df): Likewise.
15566 (-mupper-regs-sf): Likewise.
15567 (-mpointers-to-nested-functions): Likewise.
15568
15569 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15570
15571 * doc/extend.texi (Cilk Plus Builtins): Add markup.
15572
15573 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15574
15575 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15576 additional index entries and cross-references.
15577 (-fchkp-check-incomplete-type): Likewise.
15578 (-fchkp-first-field-has-own-bounds): Likewise.
15579 (-fchkp-narrow-to-innermost-array): Likewise.
15580 (-fchkp-use-fast-string-functions): Likewise.
15581 (-fchkp-use-nochk-string-functions): Likewise.
15582 (-fchkp-use-static-const-bounds): Likewise.
15583 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15584 (-fchkp-instrument-marked-only): Likewise.
15585 (-fchkp-use-wrappers): Likewise.
15586 (-static-libmpx): Likewise.
15587 (-static-libmpxwrappers): Likewise.
15588 * doc/extend.texi (bnd_legacy): Likewise.
15589 (bnd_instrument): Likewise.
15590 (bnd_variable_size): Likewise.
15591 (Pointer Bounds Checker builtins): Likewise.
15592
15593 2015-03-21 Tom de Vries <tom@codesourcery.com>
15594
15595 PR tree-optimization/65458
15596 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15597 * cgraph.h (cgraph_node): Add parallelized_function field.
15598 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15599 (input_overwrite_node): Read parallelized_function field.
15600 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15601 parallelized_function on cgraph_node for child_fn.
15602 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15603 Remove include of gt-tree-parloops.h.
15604 (parallelized_functions): Remove static variable.
15605 (parallelized_function_p): Rewrite using parallelized_function field of
15606 cgraph_node.
15607 (create_loop_fn): Remove adding to parallelized_functions.
15608 * Makefile.in (GTFILES): Remove tree-parloops.c
15609
15610 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
15611
15612 PR rtl-optimization/64366
15613 * lra.c (lra_update_insn_regno_info): Consider regs in
15614 CALL_INSN_FUNCTION_USAGE memory.
15615
15616 2015-03-20 Richard Biener <rguenther@suse.de>
15617
15618 PR middle-end/64715
15619 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15620 for type comparison and gcc_checking_assert.
15621 (chrec_fold_plus_poly_poly): Likewise.
15622 (chrec_fold_multiply_poly_poly): Likewise.
15623 (chrec_convert_1): Likewise.
15624 * gimplify.c (gimplify_expr): Remove premature folding of
15625 &X + CST to &MEM[&X, CST].
15626
15627 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15628
15629 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15630 already is final.
15631 (ipa_inline): Recompute inline_failed codes.
15632 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15633 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15634 CIF_FINAL_ERROR.
15635
15636 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
15637
15638 PR rtl-optimization/60851
15639 * recog.c (constrain_operands): Accept a pseudo register before reload
15640 for LRA enabled targets.
15641
15642 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15643
15644 PR target/65240
15645 * config/rs6000/predicates.md (easy_fp_constant): Remove special
15646 -ffast-math handling that kept non-0 constants live in the RTL
15647 until reload. Remove logic testing the number of instructions it
15648 took to create a constant in a GPR that was never used, due to a
15649 test for soft-float earlier.
15650 (memory_fp_constant): Delete, no longer used.
15651
15652 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15653 alternatives for loading non-0 constants into GPRs for hard
15654 floating point that is no longer needed due to changes in
15655 easy_fp_constant. Add support for loading 0.0 into GPRs.
15656 (mov<mode>_hardfloat32): Likewise.
15657 (mov<mode>_hardfloat64): Likewise.
15658 (mov<mode>_64bit_dm): Likewise.
15659 (movtd_64bit_nodm): Likewise.
15660 (pre-reload move FP constant define_split): Delete define_split,
15661 since it is no longer used.
15662 (extenddftf2_internal): Remove GHF constraints that are not valid
15663 for extenddftf2.
15664
15665 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
15666
15667 PR rtl-optimization/63491
15668 * lra-constraints.c (check_and_process_move): Use src instead of
15669 sreg. Remove some dead code.
15670
15671 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
15672
15673 PR ipa/65380
15674 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15675 (sem_variable::merge): Likewise.
15676
15677 2015-03-19 Martin Liska <mliska@suse.cz>
15678
15679 PR ipa/65465
15680 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15681 all fields of cgraph_thunk_info.
15682
15683 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
15684
15685 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15686 clone instrumented thunks.
15687
15688 2015-03-19 Richard Biener <rguenther@suse.de>
15689
15690 Revert
15691 2015-03-10 Richard Biener <rguenther@suse.de>
15692
15693 PR middle-end/63155
15694 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15695 * tree-ssa-coalesce.c: Include timevar.h.
15696 (attempt_coalesce): Handle graph being NULL.
15697 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15698 Split out abnormal coalescing to ...
15699 (perform_abnormal_coalescing): ... this function.
15700 (coalesce_ssa_name): Perform abnormal coalescing without computing
15701 live/conflict.
15702 (verify_ssa_coalescing_worker): New function.
15703 (verify_ssa_coalescing): Likewise.
15704
15705 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
15706 Jakub Jelinek <jakub@redhat.com>
15707
15708 PR sanitizer/65400
15709 * tsan.c (instrument_gimple): Clear tail call flag on
15710 calls.
15711
15712 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15713
15714 PR sanitizer/65400
15715 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
15716 call in the return bb.
15717 (find_split_points): Add RETURN_BB argument, don't call
15718 find_return_bb.
15719 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
15720 if true append TSAN_FUNC_EXIT internal call after the call to
15721 the split off function.
15722 (execute_split_functions): Call find_return_bb here.
15723 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
15724 Adjust find_split_points and split_function calls.
15725
15726 2015-03-18 DJ Delorie <dj@redhat.com>
15727
15728 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
15729 (iorqi3_virt): Likewise.
15730
15731 2015-03-18 Tom de Vries <tom@codesourcery.com>
15732
15733 * tree-parloops.c (parallelize_loops): Make static.
15734 * tree-parloops.h (parallelize_loops): Remove extern declaration.
15735
15736 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
15737
15738 PR middle-end/64491
15739 Revert:
15740 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
15741
15742 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
15743 condition would be removed due to undefined behaviour.
15744
15745 2015-03-18 Martin Liska <mliska@suse.cz>
15746
15747 PR ipa/65432
15748 * cgraph.c (cgraph_node::get_create): Remove unnecessary
15749 xstrdup_for_dump wrapper.
15750 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
15751 sem_item::name.
15752 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
15753 with xstrdup_for_dump.
15754 (sem_variable::equals): Likewise.
15755 (sem_item_optimizer::read_section): Use symtab_node::name instead of
15756 sem_item::name.
15757 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
15758 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
15759 symtab_node::asm_name with xstrdup_for_dump.
15760 (congruence_class::dump): Use symtab_node::name instead of
15761 sem_item::name.
15762 * ipa-icf.h (symtab_node::name): Remove.
15763 (symtab_node::asm_name): Likewise.
15764
15765 2015-03-18 Jakub Jelinek <jakub@redhat.com>
15766
15767 PR tree-optimization/65450
15768 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
15769 function.
15770 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
15771 it instead of duplicate_ssa_name_ptr_info.
15772
15773 PR target/65222
15774 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
15775
15776 2015-03-18 Richard Biener <rguenther@suse.de>
15777
15778 * tree-data-ref.h (struct access_matrix): Remove.
15779 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
15780 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
15781 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
15782 (am_vector_index_for_loop): Likewise.
15783 (struct data_reference): Remove access_matrix member.
15784 (DR_ACCESS_MATRIX): Remove.
15785 (lambda_vector_new): Add comment.
15786 (lambda_matrix_new): Use XOBNEWVEC.
15787
15788 2015-03-18 Richard Biener <rguenther@suse.de>
15789
15790 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
15791 (pass_ch::execute): Cleanup the CFG only if we did sth.
15792 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
15793
15794 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15795
15796 * expmed.c (synth_mult): Use std::swap instead of manually
15797 swapping algorithms.
15798
15799 2015-03-18 Jakub Jelinek <jakub@redhat.com>
15800
15801 PR target/65078
15802 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
15803
15804 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
15805
15806 PR target/65296
15807 * config/avr/avr.opt (-nodevicelib): New option.
15808 * doc/invoke.texi (AVR Options): Document it.
15809 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
15810 libgcc.a, libc.a, libm.a.
15811 * config/avr/specs.h: Same.
15812 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
15813 which don't (directly) depend on the device. Print more help.
15814 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
15815 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
15816 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
15817 case of an error.
15818 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
15819 for specs file name.
15820 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
15821 * config/avr/avr-mcus.def: Adjust initializers and comments.
15822
15823 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
15824
15825 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
15826 DECL_ONE_ONLY to check if decl is one only.
15827 * ipa-split.c (consider_split): Limit splitt of one only functions.
15828
15829 2015-03-16 Jakub Jelinek <jakub@redhat.com>
15830
15831 PR tree-optimization/65427
15832 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
15833 functions.
15834 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
15835
15836 2015-03-16 Marek Polacek <polacek@redhat.com>
15837
15838 * cgraph.h (add_new_static_var): Remove declaration.
15839 * varpool.c (add_new_static_var): Remove function.
15840
15841 2015-03-16 Jakub Jelinek <jakub@redhat.com>
15842
15843 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
15844 instead of vec<tree> * with vec_alloc and release for args.
15845 Adjust all users.
15846
15847 PR middle-end/65431
15848 * omp-low.c (delete_omp_context): Only splay_tree_delete
15849 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
15850 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
15851
15852 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
15853
15854 PR sanitizer/64820
15855 * cfgexpand.c (align_base): New function.
15856 (alloc_stack_frame_space): Call it.
15857 (expand_stack_vars): Align prev_frame to be sure
15858 data->asan_vec elements aligned properly.
15859
15860 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
15861
15862 PR middle-end/65409
15863 * expr.c (store_field): Do not do a direct block copy if the source is
15864 a PARALLEL with BLKmode.
15865
15866 2015-03-16 Tom de Vries <tom@codesourcery.com>
15867
15868 PR middle-end/65414
15869 Revert:
15870 2015-03-12 Tom de Vries <tom@codesourcery.com>
15871
15872 PR rtl-optimization/64895
15873 * lra-lives.c (check_pseudos_live_through_calls): Use
15874 actual_call_used_reg_set instead of call_used_reg_set, if available.
15875
15876 2015-03-16 Alan Modra <amodra@gmail.com>
15877
15878 PR target/63150
15879 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
15880 Modify Z->r bswapdi splitter to use dest in place of scratch.
15881 In r->Z and Z->r bswapdi splitter rename word_high, word_low
15882 to word1, word2 and rearrange logic to suit.
15883 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
15884 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
15885 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
15886 Add one '?' on r->r. Modify Z->r splitter to avoid need for
15887 early clobber.
15888
15889 2015-03-14 Jakub Jelinek <jakub@redhat.com>
15890
15891 PR tree-optimization/65369
15892 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
15893 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
15894 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
15895
15896 PR tree-optimization/65418
15897 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
15898 are casts in the first PLUS_EXPR operand, ensure tbias and
15899 *totallowp are in the inner type.
15900
15901 PR rtl-optimization/65401
15902 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
15903 argument. If true, adjust_address_nv of x with big-endian
15904 correction for the mode widening to GET_MODE (y).
15905 (make_field_assignment): Don't do MEM mode widening here.
15906 Use MEM_P instead of GET_CODE == MEM.
15907
15908 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15909
15910 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
15911 the external decls.
15912
15913 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15914
15915 PR target/64600
15916 * config/arm/arm.c (arm_gen_constant, AND case): Use
15917 ARM_SIGN_EXTEND when constructing AND mask.
15918
15919 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15920
15921 * graph.c (print_graph_cfg): Make function names visible and append
15922 parenthesis to it. Also make groups of basic blocks belonging to the
15923 same function visible.
15924
15925 2015-03-12 Richard Biener <rguenther@suse.de>
15926
15927 PR middle-end/44563
15928 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
15929 to avoid quadratic behavior with inline expansion splitting blocks.
15930 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
15931 with the successor if the predecessor will be merged with it.
15932 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
15933 entry block with its successor.
15934
15935 2015-03-13 Richard Biener <rguenther@suse.de>
15936
15937 PR middle-end/44563
15938 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
15939 (cleanup_tree_cfg_1): Do not call it.
15940 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
15941 (fixup_noreturn_call): Mark the stmt as control altering.
15942 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
15943 here.
15944 (pass_data_fixup_cfg): Produce a dump file.
15945 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
15946 (need_noreturn_fixup): New global.
15947 (pass_dominator::execute): Fixup queued noreturn calls.
15948 (optimize_stmt): Queue calls that became noreturn for fixup.
15949 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
15950 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
15951 (el_to_fixup): New global.
15952 (eliminate_dom_walker::before_dom_childre): Queue calls that
15953 became noreturn for fixup.
15954 (eliminate): Fixup queued noreturn calls.
15955 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
15956 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
15957 (substitute_and_fold_dom_walker::before_dom_children): Queue
15958 alls that became noreturn for fixup.
15959 (substitute_and_fold): Fixup queued noreturn calls.
15960
15961 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
15962
15963 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
15964 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
15965 are building; for methods check ODR type of class they belong to if
15966 they may lead to a polymorphic call.
15967 (sem_function::compare_polymorphic_p): Be bit smarter about testing
15968 when function may lead to a polymorphic call.
15969 (sem_function::compare_type_list): Remove.
15970 (sem_variable::equals): Update use of compatible_types_p.
15971 (sem_variable::parse_tree_refs): Remove.
15972 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
15973 cdtor.
15974 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
15975 matching here.
15976 (func_checker::compatible_polymorphic_types_p): Break out from ...
15977 (unc_checker::compatible_types_p): ... here.
15978 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
15979 Declare.
15980 (unc_checker::compatible_types_p): Update.
15981 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
15982 Remove.
15983
15984 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15985
15986 PR rtl-optimization/65235
15987 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
15988 When first element of vec_concat is const_int, calculate its size
15989 using second element.
15990
15991 2015-03-12 Richard Biener <rguenther@suse.de>
15992
15993 PR middle-end/65270
15994 * fold-const.c (operand_equal_p): Fix ordering of resetting
15995 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
15996
15997 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
15998
15999 * config/s390/s390.c (s390_reorg): Move code to output nops after label
16000 to s390_reorg ().
16001 (s390_asm_output_function_label): Likewise.
16002 * config/s390/s390.c (s390_asm_output_function_label):
16003 Fix function label alignment with -mhtopatch.
16004 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16005 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16006 ("nop_2_byte"): New define_insn.
16007 ("nop_4_byte"): Likewise.
16008 ("nop_6_byte"): Likewise.
16009 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16010 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16011
16012 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16013
16014 PR target/65103
16015 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16016 register.
16017
16018 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16019
16020 PR target/65044
16021 * toplev.c (process_options): Restrict Pointer Bounds Checker
16022 usage with Address Sanitizer.
16023
16024 2015-03-12 Richard Biener <rguenther@suse.de>
16025
16026 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16027 to split on.
16028 * omp-low.c (expand_omp_taskreg): Split block before removing
16029 the stmt.
16030 (expand_omp_target): Likewise.
16031 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16032 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16033 stmt to split_block.
16034
16035 2015-03-12 Tom de Vries <tom@codesourcery.com>
16036
16037 PR rtl-optimization/64895
16038 * lra-lives.c (check_pseudos_live_through_calls): Use
16039 actual_call_used_reg_set instead of call_used_reg_set, if available.
16040
16041 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16042
16043 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16044 (cgraph_node::remove): Likewise.
16045 (cgraph_node::get_untransformed_body): Likewise.
16046 * varpool.c (varpool_node::remove): Likewise.
16047 (varpool_node::get_constructor): Add sanity check.
16048
16049 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
16050
16051 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16052 old GCC versions.
16053 (-fabi-compat-version): Likewise.
16054 (-ffriend-injection): Likewise.
16055 (-Wdeclaration-after-statement): Likewise.
16056 (-fomit-frame-pointer): Likewise.
16057 (-ftree-coalesce-inlined-vars): Likewise.
16058 (-fvisibility=): Likewise.
16059 * doc/extend.texi (Typeof): Likewise.
16060 (Zero Length): Likewise.
16061 (Escaped Newlines): Likewise.
16062 (Compound Literals): Likewise.
16063 (Function Attributes): Likewise.
16064 (Label Attributes): Likewise.
16065 (Type Attributes): Likewise.
16066 (Function Names): Likewise.
16067 (Other Builtins): Likewise.
16068 (Function Specific Option Pragmas): Likewise.
16069 (C++ Interface): Likewise.
16070
16071 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
16072
16073 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16074
16075 2015-03-11 Marek Polacek <polacek@redhat.com>
16076
16077 PR tree-optimization/65388
16078 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16079
16080 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16081
16082 PR target/65296
16083 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16084 * configure: Regenerate.
16085 * config.in: Regenerate.
16086 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16087 [-mn-flash]: Document it.
16088 [__AVR_ARCH__]: Document avrtiny.
16089
16090 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16091 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16092 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16093
16094 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16095
16096 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16097
16098 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16099
16100 PR target/65242
16101 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16102 allow reloads of PLUS in floating point/VSX registers.
16103
16104 2015-03-11 Junmo Park <junmoz.park@samsung.com>
16105
16106 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16107 crypto_sha256_fast.
16108 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16109
16110 2015-03-11 Richard Biener <rguenther@suse.de>
16111
16112 PR tree-optimization/65310
16113 * tree-sra.c (build_ref_for_offset): Also preserve larger
16114 alignment.
16115
16116 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
16117
16118 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16119
16120 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16121
16122 PR target/65368
16123 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16124 new define_expand.
16125 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16126
16127 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16128
16129 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16130 (sem_function::equals_wpa): ... here.
16131
16132 2015-03-10 Marek Polacek <polacek@redhat.com>
16133 Jakub Jelinek <jakub@redhat.com>
16134
16135 PR sanitizer/65367
16136 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16137 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
16138 separately.
16139
16140 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16141
16142 PR target/65286
16143 * config/rs6000/t-linux: For powerpc64* target set
16144 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16145
16146 2015-03-10 Richard Biener <rguenther@suse.de>
16147
16148 PR middle-end/44563
16149 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16150 for redirect_all_calls.
16151
16152 2015-03-10 Marek Polacek <polacek@redhat.com>
16153
16154 * gdbinit.in (pcfun): Define and document.
16155
16156 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
16157
16158 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16159 of libgomp-plugin.h.
16160 (find_target_compiler): Support a case when the path to gcc is
16161 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16162 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16163 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16164 libgomp-plugin.h.
16165 (main): Use GCC_INSTALL_NAME as target_driver_name.
16166 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16167 define.
16168 (mkoffload.o): Remove obsolete include path and defines.
16169 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16170
16171 2015-03-10 Richard Biener <rguenther@suse.de>
16172
16173 PR middle-end/63155
16174 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16175 * tree-ssa-coalesce.c: Include timevar.h.
16176 (attempt_coalesce): Handle graph being NULL.
16177 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16178 Split out abnormal coalescing to ...
16179 (perform_abnormal_coalescing): ... this function.
16180 (coalesce_ssa_name): Perform abnormal coalescing without computing
16181 live/conflict.
16182 (verify_ssa_coalescing_worker): New function.
16183 (verify_ssa_coalescing): Likewise.
16184
16185 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16186
16187 PR target/65296
16188 * config.gcc (extra_options) [avr]: Remove.
16189 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16190 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16191 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16192
16193 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16194 (-mmcu=): Add Var and MissingArgError properties.
16195 (-march=): Remove.
16196 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16197 * config/avr/t-multilib: Regenerate.
16198 * config/avr/specs.h: New file.
16199 * config/avr/driver-avr.c: New file.
16200 * config/avr/genopt.sh: Remove file.
16201 * config/avr/avr-tables.opt: Remove file.
16202 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16203 * config/avr/avr-c.c: Same.
16204 * avr-arch.h: Same.
16205 (avr_current_device): Remove proto.
16206 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16207 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16208 (EXTRA_SPEC_FUNCTIONS): Define.
16209 (avr_devicespecs_file): New specs function proto.
16210 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16211 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16212 (avr_current_device): Remove definition and usage.
16213 (avr_set_core_architecture): New static function.
16214 (avr_option_override): Use it.
16215 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16216 (mcu_name): New static array.
16217 (comparator, avr_archs_str, avr_mcus_str): New static functions.
16218 (avr_inform_devices, avr_inform_core_architectures): New functions.
16219 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16220 (avrlibc.h) [WITH_AVRLIBC]: Include.
16221 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16222 (print_mcu): Rewrite from scratch.
16223 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16224 Forward to avr-specific specs defined in device-specs file.
16225 * config/avr/t-avr (driver-avr.o): New rule.
16226 (avr-devices.o): Depend on avr-arch.h.
16227 (avr-mcus): No more depend on avr-tables.opt.
16228 (avr-tables.opt): Remove rule.
16229 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16230
16231 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16232
16233 * c-family/c.opt (fchkp-use-wrappers): New.
16234 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16235 (chkp_wrap_function): New.
16236 (chkp_build_instrumented_fndecl): Support wrapped
16237 functions.
16238 * doc/invoke.texi (-fcheck-pointer-bounds): New.
16239 (-fchkp-check-incomplete-type): New.
16240 (-fchkp-first-field-has-own-bounds): New.
16241 (-fchkp-narrow-bounds): New.
16242 (-fchkp-narrow-to-innermost-array): New.
16243 (-fchkp-optimize): New.
16244 (-fchkp-use-fast-string-functions): New.
16245 (-fchkp-use-nochk-string-functions): New.
16246 (-fchkp-use-static-bounds): New.
16247 (-fchkp-use-static-const-bounds): New.
16248 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16249 (-fchkp-check-read): New.
16250 (-fchkp-check-write): New.
16251 (-fchkp-store-bounds): New.
16252 (-fchkp-instrument-calls): New.
16253 (-fchkp-instrument-marked-only): New.
16254 (-fchkp-use-wrappers): New.
16255 (-static-libmpx): New.
16256 (-static-libmpxwrappers): New.
16257
16258 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16259
16260 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16261 (CHKP_SPEC): Add wrappers library.
16262 * c-family/c.opt (static-libmpxwrappers): New.
16263
16264 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16265
16266 * config/i386/linux-common.h (LIBMPX_LIBS): New.
16267 (LIBMPX_SPEC): New.
16268 (CHKP_SPEC): New.
16269 * gcc.c (CHKP_SPEC): New.
16270 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16271 * c-family/c.opt (static-libmpx): New.
16272
16273 2015-03-10 Richard Biener <rguenther@suse.de>
16274
16275 PR middle-end/44563
16276 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16277 for compare_type.
16278 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16279 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16280 (cgraph_add_edge_to_call_site_hash): Likewise.
16281 (cgraph_node::get_edge): Likewise.
16282 (cgraph_edge::set_call_stmt): Likewise.
16283 (cgraph_edge::remove_caller): Likewise.
16284
16285 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
16286
16287 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16288 (callee_saved_gpr_regs_size): ... this.
16289 (callee_saved_regs_first_regno): Rename to ...
16290 (callee_saved_first_gpr_regno): ... this.
16291 (callee_saved_regs_last_regno) Rename to ...
16292 (callee_saved_last_gpr_regno): ... this.
16293 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16294 variables.
16295 (nds32_initial_elimination_offset): Likewise.
16296 (nds32_expand_prologue): Likewise.
16297 (nds32_expand_epilogue): Likewise.
16298 (nds32_expand_prologue_v3push): Likewise.
16299 (nds32_expand_epilogue_v3pop): Likewise.
16300 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16301 Adjust renamed variables.
16302 (nds32_output_stack_pop): Likewise.
16303
16304 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
16305
16306 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16307 code in comment.
16308
16309 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16310
16311 PR rtl-optimization/65321
16312 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16313 than shift mode.
16314 * var-tracking.c (use_narrower_mode): Likewise.
16315
16316 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16317
16318 PR tree-optimization/65355
16319 * varasm.c (notice_global_symbol): Do not produce RTL.
16320 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16321 anchor.
16322 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16323 check for section anchors.
16324
16325 2015-03-10 Alan Modra <amodra@gmail.com>
16326
16327 PR target/65286
16328 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16329 to be single-arch by default. Set cpu_is_64bit for powerpc64
16330 given --with-cpu=native.
16331 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16332 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16333 and powerpc64le.
16334 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16335 rs6000_isa_flags rather than TARGET_64BIT.
16336
16337 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
16338 Kaz Kojima <kkojima@gcc.gnu.org>
16339
16340 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16341
16342 2015-03-09 Jakub Jelinek <jakub@redhat.com>
16343
16344 PR lto/65361
16345 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16346 on a TREE_BINFO, instead use BINFO_TYPE.
16347
16348 2015-03-09 Richard Biener <rguenther@suse.de>
16349
16350 PR middle-end/65270
16351 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16352 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16353 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
16354 of that. When comparing dereferences compare alignment.
16355 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16356
16357 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16358
16359 * ipa-inline-analysis.c (check_callers): Check
16360 node->can_remove_if_no_direct_calls_and_refs_p.
16361 (growth_likely_positive): Reorganize to call
16362 can_remove_if_no_direct_calls_p later.
16363 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16364 will_be_removed_from_program_if_no_direct_calls_p): Add
16365 will_inline parameter.
16366 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16367 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16368 Handle inliner case correctly.
16369
16370 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16371
16372 PR tree-optimization/63743
16373 * cfgexpand.c (reorder_operands): Also reorder if only second operand
16374 had its definition forwarded by TER.
16375
16376 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16377
16378 PR lto/65316
16379 * ipa-utils.h (types_odr_comparable): Add strict argument.
16380 * ipa-devirt.c: Fix whitespace;
16381 (odr_hasher): Remove.
16382 (odr_name_hasher, odr_vtable_hasher): New hashers.
16383 (can_be_name_hashed_p): New predicate.
16384 (hash_type_name): remove.
16385 (hash_odr_name): New.
16386 (odr_name_hasher::hash): new.
16387 (can_be_vtable_hashed_p): New.
16388 (hash_odr_vtable): New.
16389 (odr_vtable_hasher::hash): New.
16390 (types_same_for_odr): Add strict parameter.
16391 (types_odr_comparable): Likewise.
16392 (odr_name_hasher::equal): New.
16393 (odr_vtable_hasher::equal): New.
16394 (odr_name_hasher::remove): New.
16395 (odr_hash_type): Change to hash_table<odr_name_hasher>.
16396 (odr_vtable_hash_type): New.
16397 (odr_vtable_hash): New.
16398 (odr_subtypes_equivalent_p): Do strict comparsion.
16399 (add_type_duplicate): Merge type names; cleanup; avoid type
16400 duplicates.
16401 (register_odr_type): Initialize vtable hash.
16402 (build_type_inheritance_graph): Likewise
16403 (get_odr_type): Reorg to use two hashes.
16404 (dump_possible_polymorphic_call_targets): Move sanity check after debug
16405 output.
16406 (ipa_devirt): Dump type_inheritance_graph.
16407 (types_same_for_odr): Add strict mode.
16408
16409 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16410
16411 PR ipa/65334
16412 * cgraph.h (symtab_node): Add definition_alignment,
16413 can_increase_alignment_p and increase_alignment.
16414 * symtab.c (symtab_node::can_increase_alignment_p,
16415 increase_alignment_1, symtab_node::increase_alignment,
16416 symtab_node::definition_alignment): New.
16417 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16418 can_increase_alignment_p.
16419 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16420 * tree-vect-stmts.c (ensure_base_align): Likewise.
16421 * varasm.c (function_section_1): Use definition_alignment.
16422 (assemble_start_function): Likewise.
16423 (emit_local): likewise.
16424 (build_constant_desc): Likewsie.
16425 (output_constant_def_contents): Likewise.
16426 (place_block_symbol): Likewise.
16427 (output_object_block): Likewise.
16428
16429 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16430
16431 PR ipa/65316
16432 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16433 when outputting debug.
16434
16435 2015-03-07 Marek Polacek <polacek@redhat.com>
16436 Martin Uecker <uecker@eecs.berkeley.edu>
16437
16438 PR sanitizer/65280
16439 * doc/invoke.texi: Update description of -fsanitize=bounds.
16440
16441 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
16442
16443 * tree-ssa-phiopt.c (neg_replacement): Remove.
16444 (tree_ssa_phiopt_worker): Remove negate optimization.
16445
16446 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16447
16448 PR ipa/65302
16449 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16450
16451 2015-03-06 Richard Biener <rguenther@suse.de>
16452
16453 PR middle-end/64928
16454 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16455 and liveout_obstack members.
16456 (calculate_live_on_exit): Remove.
16457 (calculate_live_ranges): Change declaration.
16458 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16459 (new_tree_live_info): Adjust.
16460 (calculate_live_ranges): Delete livein when not wanted.
16461 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16462 Deal with partly deleted live info.
16463 (loe_visit_block): Remove temporary bitmap by using
16464 bitmap_ior_and_compl_into.
16465 (live_worklist): Adjust accordingly.
16466 (calculate_live_on_exit): Make static.
16467 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16468 we do not need livein.
16469
16470 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
16471
16472 * real.c (real_from_string): Fix typo in assertion.
16473
16474 2015-03-06 Alex Velenko <alex.velenko@arm.com>
16475
16476 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16477 the patch.
16478
16479 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16480
16481 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16482
16483 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
16484
16485 PR target/64342
16486 * lra-assigns.c (find_hard_regno_for): Rename to
16487 find_hard_regno_for_1. Add a new parameter.
16488 (find_hard_regno_for): New function using find_hard_regno_for_1.
16489
16490 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16491
16492 PR rtl-optimization/65067
16493 * expmed.c (store_bit_field, extract_bit_field): Reworked the
16494 strict volatile bitfield handling.
16495
16496 2015-03-05 Martin Liska <mliska@suse.cz>
16497
16498 PR ipa/65318
16499 * ipa-icf.c (sem_variable::equals): Compare variables types.
16500
16501 2015-03-05 Richard Henderson <rth@redhat.com>
16502
16503 PR target/65121
16504 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16505 correctly check weak symbol binding.
16506
16507 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
16508
16509 PR middle-end/65315
16510 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16511 needed alignment.
16512
16513 2015-03-05 Martin Liska <mliska@suse.cz>
16514
16515 * ipa-inline.c (inline_small_functions): Set default value to
16516 prevent warning during bootstrap.
16517 * tree.h: Add pragma guard that ignores false positives during
16518 bootstrap.
16519
16520 2015-03-05 Richard Biener <rguenther@suse.de>
16521
16522 PR tree-optimization/65310
16523 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16524 Properly preserve alignment of the base of the access.
16525
16526 2015-03-05 Richard Biener <rguenther@suse.de>
16527
16528 PR ipa/65270
16529 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16530 Compare dependence info.
16531
16532 2015-03-05 Richard Biener <rguenther@suse.de>
16533
16534 PR middle-end/65233
16535 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16536 tree-into-ssa.h.
16537 (walk_ssa_copies): Revert last chage. Instead do not walk
16538 SSA names registered for SSA update.
16539
16540 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16541
16542 PR ipa/65270
16543 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16544 vtable references for their containing type.
16545 (sem_function::equals_wpa): Compare TYPE_RESTRICT
16546 and type attributes.
16547
16548 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
16549
16550 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16551 before negating it.
16552 * stor-layout.c (finalize_record_size): Revert latest change.
16553
16554 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
16555
16556 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16557
16558 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16559
16560 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16561 for correct comdat handling.
16562 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16563 Likewise.
16564 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16565 (used_from_object_file_p_worker): Remove.
16566 (cgraph_node::only_called_directly_or_alised): Add
16567 used_from_object_file_p.
16568 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16569 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16570 can_remove_if_no_direct_calls_and_refs_p.
16571
16572 2015-03-04 Nick Clifton <nickc@redhat.com>
16573
16574 * config/rl78/rl78.h (enum reg_class): Remove real registers from
16575 General register class.
16576 * config/rl78/rl78-real.md: Replace general register constraints
16577 with real+virtual register constraints.
16578
16579 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16580
16581 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16582 from checking for -mhtm option.
16583
16584 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16585
16586 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16587 (struct ipa_sra_check_caller_data): Add has_thunk field.
16588 (ipa_sra_check_caller): Check for thunk.
16589 (ipa_sra_preliminary_function_checks): Give up on function with
16590 thunks.
16591 (ipa_early_sra): Use call_for_symbol_and_aliases.
16592
16593 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
16594
16595 PR target/65249
16596 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16597 called for __stack_chk_guard symbol.
16598
16599 2015-03-03 DJ Delorie <dj@redhat.com>
16600
16601 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16602 inc/dec.
16603 (*addhi3_real): Likewise.
16604 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16605 pattern to match incrementing memory.
16606 * config/rl78/predicates.md (rl78_1_2_operand): New.
16607 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16608 it's the same and only mem.
16609 (rl78_alloc_physical_registers_op2): If there's effectively only
16610 one MEM, transcode it into HL.
16611 (rl78_far_p): Reject addresses that aren't legitimate.
16612
16613 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16614
16615 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16616 negating it.
16617
16618 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16619
16620 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16621
16622 Implement call0 ABI for xtensa
16623 * config/xtensa/constraints.md ("a" constraint): Include stack
16624 pointer in case of call0 ABI.
16625 ("q" constraint): Make empty in case of call0 ABI.
16626 ("D" constraint): Include stack pointer in case of call0 ABI.
16627 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16628 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16629 prototypes.
16630 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16631 variable.
16632 (xtensa_regno_to_class): Make it a local variable in the
16633 function xtensa_regno_to_class.
16634 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16635 macro, function prototype and implementation.
16636 (reg_nonleaf_alloc_order): Make it a local variable in the
16637 function order_regs_for_local_alloc.
16638 (xtensa_conditional_register_usage): New function.
16639 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16640 (xtensa_valid_move): Allow direct moves to stack pointer
16641 register in call0 ABI.
16642 (xtensa_setup_frame_addresses): Only spill register windows in
16643 windowed ABI.
16644 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16645 call0 ABI respectively.
16646 (xtensa_function_arg_1): Only mark a7 register for copying in
16647 windowed ABI.
16648 (xtensa_call_save_reg): New function.
16649 (compute_frame_size): Add space for callee saved register
16650 storage to the frame size in call0 ABI.
16651 (xtensa_expand_prologue): Generate code to set up stack frame
16652 and save callee-saved registers in call0 ABI.
16653 (xtensa_expand_epilogue): New function.
16654 (xtensa_set_return_address): New function.
16655 (xtensa_return_addr): Calculate return address in call0 ABI.
16656 (xtensa_builtin_saveregs): Only mark a7 register for copying and
16657 emit copying code in windowed ABI.
16658 (order_regs_for_local_alloc): Add preferred register allocation
16659 order for non-leaf function in call0 ABI.
16660 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16661 (xtensa_asm_trampoline_template): Add trampoline generation for
16662 call0 ABI.
16663 (xtensa_trampoline_init): Add trampoline initialization for
16664 call0 ABI.
16665 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16666 functions.
16667 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16668 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16669 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16670 ABI call-used registers.
16671 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16672 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16673 call0 ABI.
16674 (REG_CLASS_CONTENTS): Include all registers into the preferred
16675 reload registers set, adjust the set in the
16676 xtensa_conditional_register_usage.
16677 (xtensa_regno_to_class): Drop variable declaration.
16678 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16679 function.
16680 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16681 respectively.
16682 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16683 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16684 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16685 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16686 location in call0 ABI.
16687 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16688 stack adjustment size when handling exception.
16689 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16690 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16691 definitions.
16692 ("return" pattern): Generate ret.n/ret in call0 ABI.
16693 ("epilogue" pattern): Expand epilogue.
16694 ("nonlocal_goto" pattern): Use default in call0 ABI.
16695 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16696 emit eh_set_a0_* depending on ABI.
16697 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16698 ("eh_set_a0_call0", "blockage"): New patterns.
16699
16700 2015-03-03 Martin Liska <mliska@suse.cz>
16701
16702 PR ipa/65287
16703 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16704
16705 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16706
16707 PR 65138/target
16708 * config/rs6000/rs6000-tables.opt: Regenerate table.
16709
16710 2015-03-03 Renlin Li <renlin.li@arm.com>
16711
16712 * doc/md.texi (@item ^): Change ? into ^.
16713
16714 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
16715
16716 * doc/tm.texi: Regenerated.
16717
16718 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16719
16720 * builtins.c (expand_builtin_return_addr): Add
16721 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
16722 surrounding #ifdef.
16723 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
16724 definition to 1.
16725 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
16726 Likewise.
16727 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
16728 undefined.
16729 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
16730 paragraph.
16731
16732 2015-03-03 Martin Jambor <mjambor@suse.cz>
16733 Eric Botcazou <ebotcazou@adacore.com>
16734
16735 * tree-sra.c (ipa_sra_check_caller_data): New type.
16736 (has_caller_p): Removed.
16737 (ipa_sra_check_caller): New function.
16738 (ipa_sra_preliminary_function_checks): Use it.
16739
16740 2015-03-03 Martin Liska <mliska@suse.cz>
16741
16742 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
16743 instead of if branch.
16744
16745 2015-03-03 Martin Liska <mliska@suse.cz>
16746
16747 PR ipa/65282
16748 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
16749
16750 2015-03-23 Jeff Law <law@redhat.com>
16751
16752 PR tree-optimization/65241
16753 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
16754 hash table if INSERT is true.
16755
16756 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
16757
16758 PR target/65296
16759 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
16760
16761 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
16762
16763 PR target/64331
16764 * config/avr/avr.c (context.h, tree-pass.h): Include them.
16765 (avr_pass_data_recompute_notes): New static variable.
16766 (avr_pass_recompute_notes): New class.
16767 (avr_register_passes): New static function.
16768 (avr_option_override): Call it.
16769
16770 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
16771
16772 Fix various problems with specs file generation.
16773
16774 PR target/65296
16775 * config.gcc (extra_gcc_objs) [avr]: Remove.
16776 * config/avr/driver-avr.c: Remove file.
16777 * config/avr/t-avr (driver-avr.o): Remove rule.
16778 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
16779 INCLUDES to build. Depend on TM_H.
16780 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
16781 build warnings. Fix non-matching types and non-existing %-codes.
16782 (tm.h): Include.
16783 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
16784 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
16785 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
16786 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
16787 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
16788 (LIBGCC_SPEC): Remove definitions.
16789
16790 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16791
16792 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
16793 to create a register in testing mode.
16794
16795 2015-03-03 Martin Liska <mliska@suse.cz>
16796 Jan Hubicka <hubicka@ucw.cz>
16797
16798 PR ipa/65263
16799 * cgraph.c (cgraph_node::has_thunk_p): New function.
16800 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
16801 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
16802 (sem_function::merge): Assert is changed.
16803
16804 2015-03-03 Martin Liska <mliska@suse.cz>
16805 Martin Jambor <mjambor@suse.cz>
16806
16807 PR ipa/65087
16808 * ipa-icf.c (sem_item_optimizer::execute): Change function
16809 return value to boolean.
16810 (sem_item_optimizer::merge_classes): Likewise.
16811 (ipa_icf_driver): Return TODO_remove_functions in case there's
16812 a merge operation processed.
16813 * ipa-icf.h: Change function return value to boolean.
16814
16815 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16816
16817 PR 65138/target
16818 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
16819 processor type for 64-bit little endian PowerPC.
16820
16821 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16822 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
16823 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
16824 printing built-in mask so it does not pass NULL pointers.
16825
16826 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
16827 -mcpu=powerpc64le.
16828
16829 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
16830
16831 PR target/58158
16832 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
16833 !ISA_HAS_FP_CONDMOVE.
16834
16835 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
16836
16837 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
16838 reload_completed.
16839
16840 2015-03-02 Ulrich Drepper <drepper@gmail.com>
16841
16842 * doc/invoke.texi (Options for Code Generation Conventions):
16843 Fix URL of DSO paper.
16844
16845 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
16846
16847 PR ipa/65130
16848 * ipa-inline.c (check_callers): Looks for recursion.
16849 (inline_to_all_callers): Give up on uninlinable or recursive edges.
16850 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
16851 summary of inline clones.
16852 (do_estimate_growth_1): Fix recursion check.
16853
16854 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
16855
16856 PR ipa/64988
16857 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
16858 comdat groups.
16859
16860 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
16861 Aldy Hernandez <aldyh@redhat.com>
16862
16863 PR lto/65276
16864 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
16865 when checking TYPE_BINFO.
16866
16867 2015-03-02 Richard Biener <rguenther@suse.de>
16868
16869 PR ipa/65270
16870 * ipa-icf-gimple.c: Include builtins.h.
16871 (func_checker::compare_memory_operand): Compare base alignment.
16872
16873 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
16874
16875 PR target/65184
16876 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
16877 are never passed by reference.
16878
16879 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
16880
16881 PR target/65183
16882 * tree-chkp.c (chkp_check_lower): Don't check against
16883 zero bounds for already instrumented functions.
16884 (chkp_check_upper): Likewise.
16885 (chkp_fini): Clean pass local data to avoid wrong reusage.
16886
16887 2015-02-28 Martin Liska <mliska@suse.cz>
16888 Jan Hubicka <hubicka@ucw.cz>
16889
16890 * ipa-icf.c (sem_variable::equals): Improve debug output;
16891 get variable constructor.
16892 (sem_variable::parse): Do not filter out too early; give up on
16893 volatile and register vars.
16894 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
16895 variables.
16896 * ipa-icf.h (sem_variable::init): Do not set ctor.
16897 (sem_variable::ctor): Remove.
16898
16899 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
16900
16901 PR middle-end/65233
16902 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
16903
16904 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16905
16906 * ipa-icf.c: Include stor-layout.h
16907 (sem_function::compare_cgraph_references): Rename to ...
16908 (sem_item::compare_cgraph_references): ... this one.
16909 (sem_variable::equals_wpa): New function
16910 (sem_variable::equals): Do not check stuff already verified by
16911 equals_wpa.
16912 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
16913 * ipa-icf.h (sem_item): Add compare_cgraph_references.
16914 (sem_function): Remove compare_cgraph_references.
16915 (sem_variable): Turns equals_wpa into non-inline.
16916
16917 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16918
16919 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
16920 (sem_item::add_expr): New function.
16921 (sem_function::hash_stmt): Handle operands of most statements.
16922 (sem_variable::get_hash): Hash the actual constructor.
16923 * ipa-icf.h (sem_item): Add add_expr.
16924 (sem_function): Update prototype of hash_stmt
16925
16926 2015-02-28 Martin Liska <mliska@suse.cz>
16927 Jan Hubicka <hubicka@ucw.cz>
16928
16929 PR ipa/65245
16930 * ipa-icf-gimple.c (func_checker::compare_function_decl):
16931 Remove.
16932 (func_checker::compare_variable_decl): Skip symtab vars.
16933 (func_checker::compare_cst_or_decl): Update.
16934 * ipa-icf.c (sem_function::parse): Do not consider aliases.
16935 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
16936 use correct symtab predicates.
16937 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
16938 (sem_variable::parse): Update comment.
16939 (sem_item_optimizer::build_graph): Consider ultimate aliases
16940 for references.
16941
16942 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16943
16944 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
16945 of OBJ_TYPE_REF.
16946
16947 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16948
16949 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
16950 (sem_variable::merge) Likewise.
16951
16952 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16953
16954 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
16955 target; also match flag_ipa_devirt.
16956
16957 2015-03-01 Martin Liska <mliska@suse.cz>
16958 Jan Hubicka <hubicka@ucw.cz>
16959
16960 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
16961 Validate variable alignment.
16962 * ipa-icf.c (sem_function::equals_private): Be more precise
16963 about non-common function attributes.
16964 (sem_variable::equals): Likewise.
16965
16966 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16967
16968 PR ipa/65237
16969 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
16970 across COMDAT group boundary.
16971
16972 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16973
16974 PR ipa/65232
16975 * ipa-icf.c (clear_decl_rtl): New function.
16976 (sem_function::merge): Clear RTL before forming alias.
16977 (sem_variable::merge): Clear RTL before forming alias.
16978
16979 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
16980
16981 PR ipa/65236
16982 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
16983
16984 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
16985
16986 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
16987 to neon_to_gp<q>.
16988
16989 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
16990
16991 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
16992 a typo in the description.
16993
16994 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
16995
16996 PR target/64317
16997 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
16998 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
16999 * lra-constraints.c: Include "params.h".
17000 (EBB_PROBABILITY_CUTOFF): Use
17001 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17002 (lra_inheritance): Use '<' instead of '<=' for
17003 EBB_PROBABILITY_CUTOFF.
17004 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17005 Document change.
17006
17007 2015-02-27 Martin Liska <mliska@suse.cz>
17008
17009 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17010 vector length condition.
17011
17012 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
17013
17014 * doc/extend.texi (x86 transactional memory intrinsics):
17015 Reorganize discussion of _xbegin. Clarify that the return
17016 value is a bit mask. Expand example and move to end of section.
17017
17018 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17019 Aldy Hernandez <aldyh@redhat.com>
17020
17021 PR rtl-optimization/65220
17022 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17023
17024 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17025
17026 PR target/65032
17027 * lra-remat.c (update_scratch_ops): New.
17028 (do_remat): Call it.
17029 * lra.c (lra_register_new_scratch_op): New. Take code from ...
17030 (remove_scratches): ... here.
17031 * lra-int.h (lra_register_new_scratch_op): New prototype.
17032
17033 2015-02-27 Marek Polacek <polacek@redhat.com>
17034
17035 PR c/65040
17036 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17037 -Wformat-signedness anymore.
17038
17039 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17040
17041 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17042 function.
17043 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17044
17045 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17046
17047 * config/s390/s390.c (enum s390_builtin):
17048 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17049 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17050 (s390_init_builtins): Generate new builtin functions.
17051 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17052 (s390_sfpc, s390_efpc): New pattern definitions.
17053
17054 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17055
17056 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17057 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17058 (s390_builtin_decls): New array.
17059 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17060 (s390_builtin_decl): New function.
17061 (TARGET_BUILTIN_DECL): Define macro.
17062
17063 2015-02-27 Richard Biener <rguenther@suse.de>
17064
17065 PR middle-end/63175
17066 * builtins.c (get_object_alignment_2): Make sure to re-apply
17067 the ANDed mask after recursing to its operand gets us a new
17068 misalignment bit position.
17069
17070 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
17071 Martin Liska <mliska@suse.cz>
17072
17073 PR bootstrap/65150
17074 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17075 Use address_matters_p.
17076 (redirect_all_callers, set_addressable): New functions.
17077 (sem_function::merge): Reorganize and fix merging issues.
17078 (sem_variable::merge): Likewise.
17079 (sem_variable::compare_sections): Remove.
17080 * common.opt (fmerge-all-constants, fmerge-constants): Remove
17081 Optimization flag.
17082 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17083 redirect them.
17084 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17085 decl is used.
17086 (address_matters_1): New function.
17087 (symtab_node::address_matters_p): New function.
17088 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17089 check for merged flag.
17090 * cgraph.h (address_matters_p): Declare.
17091 (symtab_node::address_taken_from_non_vtable_p): Remove.
17092 (symtab_node::address_can_be_compared_p): New method.
17093 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17094 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17095 Remove.
17096 (comdat_can_be_unshared_p_1) Use address_matters_p.
17097 (update_vtable_references): Fix formating.
17098 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17099 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17100 * cgraphclones.c: Preserve merged and icf_merged flags.
17101
17102 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
17103
17104 * doc/extend.texi (Function Attributes): Fix spelling and typos.
17105 (Label Attributes): Likewise.
17106 (Cilk Plus Builtins): Likewise.
17107 (ARC SIMD Built-in Functions): Likewise.
17108 (ARM C Language Extensions (ACLE)): Likewise.
17109 (PowerPC Built-in Functions): Likewise.
17110 (PowerPC Hardware Transactional Memory Built-in Functions):
17111 Likewise.
17112
17113 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17114
17115 PR tree-optimization/65216
17116 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17117 new stmt and new SSA_NAME for lhs whenever the arguments have
17118 changed and weren't just swapped. Fix comment typo.
17119
17120 PR tree-optimization/65215
17121 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17122 for PDP endian targets.
17123 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17124 Fix up formatting issues.
17125 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
17126 size is smaller than the original, adjust MEM_REF offset by the
17127 difference of sizes. Use is_gimple_mem_ref_addr instead of
17128 is_gimple_min_invariant test to avoid adding address temporaries.
17129
17130 2015-02-26 Martin Liska <mliska@suse.cz>
17131 Jan Hubicka <hubicka@ucw.cz>
17132
17133 PR ipa/64693
17134 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17135 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17136 (sem_item_optimizer::process_cong_reduction): Include division by
17137 sensitive references.
17138 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17139 * ipa-ref.c (ipa_ref::address_matters_p): New function.
17140 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17141
17142 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
17143
17144 PR target/65192
17145 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17146 Remove.
17147 * config/avr/avr.c: Same.
17148 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17149 Refuse any constant address not in 0..0xbf.
17150 * config/avr/avr.md (*mov<mode>, *movsf): Remove
17151 tiny_valid_direct_memory_access_range from insn conditions.
17152 (mov<mode>): Don't special-case expansion of avrtiny addresses.
17153
17154 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17155
17156 PR target/61142
17157 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17158 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17159 * config/sh/predicates.md (const_logical_operand): New predicate.
17160 * config/sh/sh.md: Add new peephole2 patterns.
17161
17162 2015-02-26 Marek Polacek <polacek@redhat.com>
17163
17164 PR ipa/65008
17165 * ipa-inline.c (early_inliner): Recompute inline parameters.
17166
17167 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17168
17169 PR target/65171
17170 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17171 instructions with TImode operands are included in the analysis.
17172
17173 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17174
17175 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17176 of an EDGE_FSM_THREAD.
17177
17178 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
17179
17180 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17181
17182 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
17183
17184 PR debug/46102
17185 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17186
17187 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17188
17189 PR tree-optimization/65048
17190 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17191 (thread_through_all_blocks): Call valid_jump_thread_path.
17192 Remove invalid FSM jump-thread paths.
17193
17194 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17195
17196 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17197 (ipa_write_optimization_summaries): Likewise.
17198 * tree-streamer.h: Include data-streamer.h.
17199 (streamer_mode_table): Declare extern variable.
17200 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17201 * lto-streamer-out.c (lto_output_init_mode_table,
17202 lto_write_mode_table): New functions.
17203 (produce_asm_for_decls): Call lto_write_mode_table when streaming
17204 offloading LTO.
17205 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17206 (lto_create_simple_input_block): Add mode_table argument to the
17207 lto_input_block constructors.
17208 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17209 Likewise.
17210 * data-streamer-in.c (string_for_index): Likewise.
17211 * ipa-inline-analysis.c (inline_read_section): Likewise.
17212 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17213 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17214 * lto-streamer-in.c (lto_read_body_or_constructor,
17215 lto_input_toplevel_asms): Likewise.
17216 (lto_input_mode_table): New function.
17217 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17218 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17219 Use bp_pack_machine_mode.
17220 * real.h (struct real_format): Add name field.
17221 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17222 (class lto_input_block): Add mode_table member.
17223 (lto_input_block::lto_input_block): Add mode_table_ argument,
17224 initialize mode_table.
17225 (struct lto_file_decl_data): Add mode_table field.
17226 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17227 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17228 unpack_ts_decl_common_value_fields,
17229 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17230 * tree-streamer.c (streamer_mode_table): New variable.
17231 * real.c (ieee_single_format, mips_single_format,
17232 motorola_single_format, spu_single_format, ieee_double_format,
17233 mips_double_format, motorola_double_format,
17234 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17235 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17236 ibm_extended_format, mips_extended_format, ieee_quad_format,
17237 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17238 decimal_single_format, decimal_double_format, decimal_quad_format,
17239 ieee_half_format, arm_half_format, real_internal_format): Add name
17240 field.
17241 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17242
17243 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
17244
17245 PR target/65161
17246 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17247 reordering for selective scheduling.
17248
17249 2015-02-26 Terry Guo <terry.guo@arm.com>
17250
17251 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17252 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17253 (arm_arch_no_volatile_ce): Declare new global variable.
17254 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17255 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17256 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17257 (TARGET_NO_VOLATILE_CE): New macro.
17258 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17259 volatile memory access in IT block
17260
17261 2015-02-25 Kai Tietz <ktietz@redhat.com>
17262
17263 PR tree-optimization/61917
17264 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17265 that reduc_def_stmt is null.
17266
17267 2015-02-25 Martin Liska <mliska@suse.cz>
17268
17269 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17270 hard register variables.
17271
17272 2015-02-25 Kai Tietz <ktietz@redhat.com>
17273
17274 PR target/64212
17275 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17276 (symtab::noninterposable_alias): Likewise.
17277
17278 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
17279
17280 PR target/65167
17281 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17282 bounds registers.
17283 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17284
17285 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
17286
17287 PR target/64997
17288 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17289 as split condition; force split via '#' in output pattern.
17290
17291 2015-02-25 Richard Biener <rguenther@suse.de>
17292 Kai Tietz <ktietz@redhat.com>
17293
17294 PR tree-optimization/61917
17295 * tree-vect-loop.c (vectorizable_reduction): Allow
17296 vect_internal_def without reduction to exit graceful.
17297
17298 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17299
17300 PR target/65196
17301 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17302 only with NONDEBUG_INSN_P.
17303
17304 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17305
17306 Use variadic macros with avr-log.c.
17307
17308 * config/avr/avr-protos.h (avr_vdump): New prototype.
17309 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17310 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17311 * config/avr/avr-log.c: Adjust comments.
17312 (avr_vdump): New function.
17313 (avr_vadump): Pass caller as 2nd argument instead of format string.
17314 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17315 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17316
17317 2015-02-25 Jakub Jelinek <jakub@redhat.com>
17318
17319 PR lto/64374
17320 * target.def (target_option_stream_in): New target hook.
17321 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17322 targetm.target_option.post_stream_in if non-NULL.
17323 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17324 * doc/tm.texi: Updated.
17325 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17326 function.
17327 (TARGET_OPTION_POST_STREAM_IN): Redefine.
17328
17329 2015-02-24 Jeff Law <law@redhat.com>
17330
17331 PR target/65117
17332 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17333 of operand 0 and operand 2.
17334 (zero_cost_loop_end, loop_end): Similarly.
17335
17336 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
17337
17338 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17339 CXX_MEM_STAT_INFO.
17340
17341 2015-02-24 DJ Delorie <dj@redhat.com>
17342
17343 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17344 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17345 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17346 instead of hardcoding SImode.
17347
17348 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
17349
17350 * omp-low.c (create_omp_child_function): Tag entrypoint
17351 functions with a special attribute.
17352
17353 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17354
17355 PR target/65058
17356 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17357
17358 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
17359
17360 PR rtl-optimization/65123
17361 * lra-remat.c (operand_to_remat): Check hard regs in insn
17362 definition too.
17363
17364 2015-02-24 Nick Clifton <nickc@redhat.com>
17365
17366 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17367 to the assembler.
17368
17369 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
17370
17371 PR libgomp/64625
17372 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17373 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17374 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17375 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17376 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17377 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17378 (BUILT_IN_GOACC_PARALLEL): Specify as
17379 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17380 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17381 * builtin-types.def
17382 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17383 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17384 Remove function types.
17385 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17386 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17387 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17388 New function types.
17389
17390 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
17391
17392 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17393
17394 2015-02-24 Jakub Jelinek <jakub@redhat.com>
17395
17396 PR tree-optimization/65170
17397 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17398 if val[1] < 0, clear also val[2] and return 3.
17399
17400 2015-02-24 Alan Modra <amodra@gmail.com>
17401
17402 PR target/65172
17403 * config/rs6000/rs6000.c (get_memref_parts): Only return true
17404 when *base is a reg. Handle nested plus addresses. Simplify
17405 pre_modify test.
17406
17407 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
17408
17409 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17410 use natural alignment when optimizing for size.
17411
17412 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
17413
17414 PR target/65153
17415 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17416 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17417 * config/sh/sh.c (replace_n_hard_rtx): Remove.
17418
17419 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
17420
17421 PR fortran/63427
17422 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17423 too big for a wide_int. Implement missing wrapping operation.
17424
17425 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
17426
17427 PR target/65163
17428 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17429 instead of const_int 4294901760.
17430
17431 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
17432
17433 * config/avr/t-avr: Fix typo in comment.
17434
17435 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
17436
17437 * doc/rtl.texi (fma): Clarify documentation.
17438
17439 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
17440
17441 PR debug/58123
17442 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17443 over input_location.
17444
17445 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17446
17447 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17448 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17449 restrict alignments to absolute_biggest_alignment.
17450 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17451 Define.
17452 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17453 * doc/tm.texi: Regenerate.
17454 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17455
17456 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
17457
17458 PR target/64172
17459 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17460
17461 2015-02-20 Richard Biener <rguenther@suse.de>
17462
17463 PR tree-optimization/65136
17464 * tree-ssa-propagate.c: Include cfgloop.h.
17465 (replace_phi_args_in): Avoid replacing loop latch edge PHI
17466 arguments with constants.
17467
17468 2015-02-20 Jakub Jelinek <jakub@redhat.com>
17469 Martin Liska <mliska@suse.cz>
17470
17471 PR target/63892
17472 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17473 don't try to create_thunk if stdarg_p. If
17474 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17475 redirect_callers if possible.
17476 (sem_item_optimizer::execute): Call unregister_hooks here...
17477 (ipa_icf_driver): ... instead of here.
17478
17479 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17480
17481 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17482 Mark operand 0 as earlyclobber in 2nd alternative.
17483 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17484 Write negated shift amount into QI lowpart operand 0 and use it
17485 in the shift step.
17486 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17487
17488 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17489
17490 * cgraph.h (clone_function_name_1): Declare.
17491 * cgraphclones.c (clone_function_name_1): New function.
17492 (clone_function_name): Use it.
17493 * lto-partition.c: Include "stringpool.h".
17494 (must_not_rename, maybe_rewrite_identifier)
17495 (validize_symbol_for_target): New static functions.
17496 (privatize_symbol_name): Use must_not_rename.
17497 (promote_symbol): Call validize_symbol_for_target.
17498 (lto_promote_cross_file_statics): Likewise.
17499 (lto_promote_statics_nonwpa): Likewise.
17500
17501 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
17502
17503 PR target/64452
17504 * config/avr/avr.md (pushhi_insn): New insn.
17505 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17506
17507 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17508 Jakub Jelinek <jakub@redhat.com>
17509
17510 * tree-streamer.c (preload_common_nodes): Don't preload
17511 TI_VA_LIST* for offloading.
17512 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17513 in_lto_p.
17514
17515 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
17516
17517 * config/pa/pa.c (pa_emit_move_sequence): Always force
17518 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
17519 note on insn.
17520
17521 * config/pa/pa.c (pa_reloc_rw_mask): New function.
17522 (TARGET_ASM_RELOC_RW_MASK): Define.
17523 (pa_cannot_force_const_mem): Revert previous change.
17524
17525 2015-02-19 Martin Jambor <mjmabor@suse.cz>
17526 Jan Hubicka <hubicka@ucw.cz>
17527
17528 PR ipa/65028
17529 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17530 across jump functions.
17531
17532 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
17533
17534 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17535
17536 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
17537
17538 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17539
17540 2015-02-19 Richard Henderson <rth@redhat.com>
17541
17542 PR middle-end/65074
17543 * varasm.c (default_binds_local_p_2): Don't test node->definition;
17544 test DECL_EXTERNAL independent of symtab_node.
17545
17546 2015-02-19 Jakub Jelinek <jakub@redhat.com>
17547
17548 PR lto/65012
17549 * varpool.c (varpool_node::get_constructor): Return early
17550 if this->lto_file_data is NULL.
17551
17552 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17553
17554 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17555 (rank_for_schedule_debug): Update.
17556 (ready_sort): Make static. Move sorting logic to ...
17557 (ready_sort_debug, ready_sort_real): New static functions.
17558 (schedule_block): Sort both debug insns and real insns in preparation
17559 for ready list trimming. Improve debug output.
17560 * sched-int.h (ready_sort): Remove global declaration.
17561
17562 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
17563
17564 * ipa-icf.c (sem_function::equals_private): Adjust.
17565 (sem_function::bb_dict_test): Take a vec<int> * instead of
17566 auto_vec<int>.
17567 * ipa-icf.h (bb_dict_test): Likewise.
17568
17569 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17570
17571 PR gcov-profile/64634
17572 * tree-eh.c (frob_into_branch_around): Fix up typos
17573 in function comment.
17574 (lower_catch): Put eh_seq resulting from EH lowering of
17575 the cleanup sequence after the cleanup rather than before it.
17576
17577 2015-02-18 Tom de Vries <tom@codesourcery.com>
17578
17579 * common.opt (fstdarg-opt): New option.
17580 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17581 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17582 (@item -fstdarg-opt): New item.
17583
17584 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
17585
17586 PR target/65064
17587 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17588 for common symbols.
17589
17590 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17591
17592 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17593 insn-modes.h.
17594 (ALL_HOST_OBJS): Add mkoffload.o.
17595 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17596
17597 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
17598
17599 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17600 (compare_virtual_tables): Be smarter about skipping typeinfos;
17601 do sane output on virtual table table mismatch.
17602 (warn_odr): Be ready for forward declarations of enums;
17603 output sane info on base mismatch and virtual table mismatch.
17604 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17605 when only one type is polymorphic.
17606 (get_odr_type): Fix hashtable corruption.
17607 (dump_odr_type): Dump mangled names.
17608
17609 2015-02-18 Richard Biener <rguenther@suse.de>
17610
17611 PR tree-optimization/65063
17612 * tree-predcom.c (determine_unroll_factor): Return 1 if we
17613 have replaced looparound PHIs.
17614
17615 2015-02-18 Martin Liska <mliska@suse.cz>
17616
17617 * lto-streamer.c (lto_streamer_init): Encapsulate
17618 streamer_check_handled_ts_structures with checking macro.
17619
17620 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17621
17622 PR ipa/65087
17623 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17624 section if !implicit_section.
17625 (cgraph_node::create_version_clone_with_body): Likewise.
17626 * trans-mem.c (ipa_tm_create_version): Likewise.
17627
17628 2015-02-18 Richard Biener <rguenther@suse.de>
17629
17630 PR tree-optimization/62217
17631 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17632 into BIVs.
17633
17634 2015-02-18 Marek Polacek <polacek@redhat.com>
17635
17636 PR sanitizer/65081
17637 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17638 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17639 is in range [-16K, -1]. Don't issue run-time error if
17640 (ptr > ptr + offset).
17641
17642 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
17643
17644 * doc/install.texi (nvptx-*-none): New section.
17645 * doc/invoke.texi (Nvidia PTX Options): Likewise.
17646 * config/nvptx/nvptx.opt: Update.
17647
17648 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17649 (access_check): New functions, copied from
17650 config/i386/intelmic-mkoffload.c.
17651 (main): For non-installed testing, look in all COMPILER_PATHs for
17652 GCC_INSTALL_NAME.
17653
17654 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17655
17656 2015-02-18 Andrew Pinski <apinski@cavium.com>
17657 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17658
17659 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17660 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17661
17662 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17663
17664 * ipa-visibility.c (function_and_variable_visibility): Only
17665 check locality if node is not already local.
17666 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17667 call_for_symbol_and_aliases instead of
17668 call_for_symbol_thunks_and_aliases.
17669 (ipa_inline): Likewise.
17670 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17671 first walk aliases.
17672 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17673 call_for_symbol_and_aliases.
17674 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17675 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17676 (ipa_propagate_frequency): Update.
17677 (ipa_profile): Add opt_for_fn gueards.
17678
17679 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17680
17681 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17682 * doc/invoke.texi (SH options): Document it.
17683 * config/sh/sh.c (sh_insn_length_adjustment): Check
17684 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17685
17686 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
17687
17688 * common.opt (fipa-cp-alignment): New.
17689 * ipa-cp.c (ipcp_store_alignment_results): Check
17690 flag_ipa_cp_alignment.
17691 * opts.c (default_options_table): Enable -fipa-cp-alignment for
17692 -O2.
17693 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17694 * doc/invoke.texi: Document -fipa-cp-alignment.
17695
17696 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17697
17698 PR target/64793
17699 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17700 to nil. Adjust comments.
17701
17702 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17703
17704 * ipa-visibility.c (function_and_variable_visibility): Only
17705 check locality if node is not already local.
17706 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17707 call_for_symbol_and_aliases instead of
17708 call_for_symbol_thunks_and_aliases.
17709 (ipa_inline): Likewise.
17710 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17711 first walk aliases.
17712 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17713 call_for_symbol_and_aliases.
17714 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17715 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17716 (ipa_propagate_frequency): Update.
17717 (ipa_profile): Add opt_for_fn guards.
17718
17719 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
17720
17721 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
17722 skipping of "strange" tokens.
17723
17724 2015-02-17 Jeff Law <law@redhat.com>
17725
17726 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
17727 obsolete comment.
17728
17729 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
17730
17731 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
17732 as forcing a HARD_DEP between instructions, thereby
17733 disallowing rewriting to break dependencies.
17734
17735 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
17736
17737 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
17738 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
17739 variables in boundary that have no inlitalizer encoded and are
17740 not aliases.
17741 * varasm.c (default_binds_local_p_2): External definitions do not
17742 count as definitions here.
17743
17744 2015-02-16 Jeff Law <law@redhat.com>
17745
17746 PR tree-optimization/64823
17747 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
17748 statements.
17749 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17750 threading through blocks with PHIs, but no statements.
17751 (thread_through_normal_block): Distinguish between blocks where
17752 we did not process all the statements and blocks with no statements.
17753
17754 2015-02-16 Jakub Jelinek <jakub@redhat.com>
17755 James Greenhalgh <james.greenhalgh@arm.com>
17756
17757 PR ipa/64963
17758 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
17759 section if not linkonce. Fix up formatting.
17760 (cgraph_node::create_version_clone_with_body): Copy section.
17761 * trans-mem.c (ipa_tm_create_version): Likewise.
17762
17763 2015-02-16 Richard Biener <rguenther@suse.de>
17764
17765 PR tree-optimization/65077
17766 * tree-ssa-structalias.c (get_constraint_for_1): Handle
17767 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
17768 (find_func_aliases): Allow float values to carry pointers again.
17769
17770 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
17771
17772 * doc/install.texi (Specific): Reorder targets list to put
17773 aarch64 in alphabetical order. Add a link to aarch64*-*-*
17774 from the top menu.
17775
17776 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17777 David Edelsohn <dje.gcc@gmail.com>
17778
17779 PR target/65058
17780 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
17781 mapping class to external variable or function reference.
17782 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
17783 mapping class.
17784
17785 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
17786
17787 PR target/53348
17788 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
17789 ASM_WEAKEN_DECL if defined.
17790
17791 2015-02-16 Richard Biener <rguenther@suse.de>
17792
17793 PR lto/65015
17794 * varasm.c (default_file_start): For LTO produced units
17795 emit <artificial> as file directive.
17796
17797 2015-02-16 Richard Biener <rguenther@suse.de>
17798
17799 PR tree-optimization/63593
17800 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
17801 stmts and releasing SSA names until...
17802 (execute_pred_commoning): ... after processing all chains.
17803
17804 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
17805
17806 PR ipa/65059
17807 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
17808 external functions.
17809
17810 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
17811
17812 * doc/bugreport.texi: Adjust section titles throughout the file
17813 to use "Title Case".
17814 * doc/extend.texi: Likewise.
17815 * doc/gcov.texi: Likewise.
17816 * doc/implement-c.texi: Likewise.
17817 * doc/implement-cxx.texi: Likewise.
17818 * doc/invoke.texi: Likewise.
17819 * doc/objc.texi: Likewise.
17820 * doc/standards.texi: Likewise.
17821 * doc/trouble.texi: Likewise.
17822
17823 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
17824
17825 * cgraph.h (symtab_node::has_aliases_p): Simplify.
17826 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
17827 * tree.c (lookup_binfo_at_offset): Make static.
17828 (get_binfo_at_offset): Do not shadow offset; add explanatory
17829 comment.
17830
17831 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
17832
17833 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
17834 for all floading point loads and stores except those using a register
17835 index address.
17836 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
17837 to a register.
17838
17839 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
17840
17841 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
17842 (do_estimate_growth_1): Record if any uninlinable edge was seen.
17843 (estimate_growth): Handle uninlinable edges correctly.
17844 (check_callers): New.
17845 (growth_likely_positive): Handle aliases correctly.
17846
17847 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
17848
17849 * ipa-chkp.c: Use iterate_direct_aliases.
17850 * symtab.c (resolution_used_from_other_file_p): Move inline.
17851 (symtab_node::create_reference): Fix formating.
17852 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17853 (symtab_node::iterate_reference): Move inline.
17854 (symtab_node::iterate_referring): Move inline.
17855 (symtab_node::iterate_direct_aliases): Move inline.
17856 (symtab_node::used_from_object_file_p_worker): Inline into ...
17857 (symtab_node::used_from_object_file_p): ... this one; move inline.
17858 (symtab_node::call_for_symbol_and_aliases): Move inline;
17859 use iterate_direct_aliases.
17860 (symtab_node::call_for_symbol_and_aliases_1): New method.
17861 (cgraph_node::call_for_symbol_and_aliases): Move inline;
17862 use iterate_direct_aliases.
17863 (cgraph_node::call_for_symbol_and_aliases_1): New method.
17864 (varpool_node::call_for_node_and_aliases): Rename to ...
17865 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
17866 use iterate_direct_aliases.
17867 (varpool_node::call_for_symbol_and_aliases_1): New method.
17868 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
17869 (ipa_discover_readonly_nonaddressable_var): Update.
17870 * ipa-devirt.c: Fix formating.
17871 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
17872 Move inline.
17873 (cgraph_node::call_for_symbol_and_aliases): Move inline.
17874 (cgraph_node::call_for_symbol_and_aliases_1): New function..
17875 * cgraph.h (used_from_object_file_p_worker): Remove.
17876 (resolution_used_from_other_file_p): Move inline.
17877 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17878 (symtab_node::iterate_reference): Move inline.
17879 (symtab_node::iterate_referring): Move inline.
17880 (symtab_node::iterate_direct_aliases): Move inline.
17881 (symtab_node::used_from_object_file_p_worker): Inline into ...
17882 (symtab_node::used_from_object_file_p): Move inline.
17883 * tree-emutls.c (ipa_lower_emutls): Update.
17884 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
17885 (varpool_node::call_for_node_and_aliases): Remove.
17886
17887 2015-02-14 Jakub Jelinek <jakub@redhat.com>
17888
17889 PR tree-optimization/62209
17890 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
17891 op == range->exp, insert seq and gimplified code after labels
17892 instead of after the phi.
17893
17894 2015-02-13 Jeff Law <law@redhat.com>
17895
17896 PR bootstrap/65060
17897 Revert my change for tree-optimization/64823.
17898
17899 2015-02-13 Jakub Jelinek <jakub@redhat.com>
17900
17901 PR tree-optimization/65053
17902 * tree-ssa-phiopt.c (value_replacement): When moving assign before
17903 cond, either reset VR on lhs or set it to phi result VR.
17904
17905 2015-02-13 Jeff Law <law@redhat.com>
17906
17907 PR tree-optimization/64823
17908 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
17909 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17910 threading through blocks with PHIs, but no statements.
17911 (thread_through_normal_block): Distinguish between blocks where
17912 we did not process all the statements and blocks with no statements.
17913
17914 PR rtl-optimization/47477
17915 * match.pd (convert (plus/minus (convert @0) (convert @1): New
17916 simplifier to narrow arithmetic.
17917
17918 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
17919
17920 PR ipa/65028
17921 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
17922 polymorphic call info when type is not known to be preserved.
17923
17924 2015-02-13 Maritn Jambor <mjambor@suse.cz>
17925
17926 PR ipa/65028
17927 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
17928 (inline_call): Use it.
17929
17930 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
17931
17932 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
17933 GOMP_DEVICE_NVIDIA_PTX.
17934
17935 2015-02-13 Jakub Jelinek <jakub@redhat.com>
17936
17937 PR ipa/65034
17938 * stmt.c (emit_case_nodes): Use void_type_node instead of
17939 NULL_TREE as LABEL_DECL type.
17940
17941 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
17942
17943 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
17944 constraints.
17945 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
17946 symbolic references to data to be forced to constant memory on the
17947 SOM target.
17948
17949 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
17950
17951 PR tree-optimization/65002
17952 * tree-cfg.c (pass_data_fixup_cfg): Don't update
17953 SSA on start.
17954 * tree-sra.c (some_callers_have_no_vuse_p): New.
17955 (ipa_early_sra): Reject functions whose callers
17956 assume function is read only.
17957
17958 2015-02-13 Richard Biener <rguenther@suse.de>
17959
17960 PR lto/65015
17961 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
17962 for LTO produced CUs.
17963
17964 2015-02-13 Bin Cheng <bin.cheng@arm.com>
17965
17966 PR tree-optimization/64705
17967 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
17968 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
17969 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
17970 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
17971 expand_simple_operations.
17972
17973 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
17974 Richard Henderson <rth@redhat.com>
17975
17976 PR rtl/32219
17977 * cgraphunit.c (cgraph_node::finalize_function): Set definition
17978 before notice_global_symbol.
17979 (varpool_node::finalize_decl): Likewise.
17980 * varasm.c (default_binds_local_p_2): Rename from
17981 default_binds_local_p_1, add weak_dominate argument. Use direct
17982 returns instead of assigning to local variable. Unify varpool and
17983 cgraph paths via symtab_node. Reject undef weak variables before
17984 testing visibility. Reorder tests for simplicity.
17985 (default_binds_local_p): Use default_binds_local_p_2.
17986 (default_binds_local_p_1): Likewise.
17987 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
17988 via symtab_node.
17989 (default_elf_asm_output_external): Emit visibility when specified.
17990
17991 2015-02-13 Alan Modra <amodra@gmail.com>
17992
17993 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
17994 code setting up r11 for out-of-line fp restore.
17995
17996 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
17997
17998 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
17999 (muser-mode): Likewise.
18000
18001 2015-02-13 Alan Modra <amodra@gmail.com>
18002
18003 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18004 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18005
18006 2015-02-12 David Howells <dhowells@redhat.com>
18007
18008 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18009 warning.
18010 * tree-ssa-uninit.c (dump_predicates): Likewise.
18011 * opts.c (print_filtered_help): Likewise.
18012
18013 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18014
18015 * dwarf2out.c (output_die): Use "%s", name instead of name to
18016 avoid -Wformat-security warning.
18017
18018 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18019 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18020 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18021 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18022
18023 2015-02-12 Jason Merrill <jason@redhat.com>
18024
18025 * common.opt (-flifetime-dse): New.
18026
18027 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18028
18029 PR sanitizer/65019
18030 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18031
18032 PR tree-optimization/65014
18033 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18034 use original second operand of arg0 or arg1 instead of
18035 that adjusted by STRIP_NOPS.
18036
18037 2015-02-11 Jeff Law <law@redhat.com>
18038
18039 PR target/63347
18040 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18041 that needs to be queued, just queue it for a single cycle.
18042
18043 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
18044
18045 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18046 bodies of thunks; comment on why.
18047 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18048 symbols are extern.
18049
18050 2015-02-11 Richard Henderson <rth@redhat.com>
18051
18052 PR sanitize/65000
18053 * tree-eh.c (mark_reachable_handlers): Mark source and destination
18054 regions of __builtin_eh_copy_values.
18055
18056 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18057
18058 PR middle-end/65003
18059 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18060 ultimate alias is MEM with SYMBOL_REF satisfying
18061 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
18062 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18063
18064 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
18065
18066 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18067 "diagnostic-core.h".
18068 (main): Initialize progname, and call diagnostic_initialize.
18069
18070 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18071 instead of __OPENMP_TARGET__.
18072
18073 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18074 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18075 hard-coding PTX_ID.
18076
18077 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
18078
18079 * doc/sourcebuild.texi (pie_enabled): Document.
18080
18081 2015-02-11 Martin Liska <mliska@suse.cz>
18082
18083 PR ipa/64813
18084 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18085 a return value for call to a function that is noreturn.
18086
18087 2015-02-11 Richard Biener <rguenther@suse.de>
18088
18089 PR lto/65015
18090 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18091 and -fresolution.
18092
18093 2015-02-11 Andrew Pinski <apinski@cavium.com>
18094
18095 PR target/64893
18096 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18097 Change the first argument type to size_type_node and add another
18098 size_type_node.
18099 (aarch64_simd_expand_builtin): Handle the new argument to
18100 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18101 print an out when the first two arguments are not
18102 nonzero integer constants.
18103 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18104 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18105
18106 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18107
18108 PR target/61925
18109 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18110 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18111 (ix86_set_current_function): Rewritten.
18112 (ix86_add_new_builtins): Temporarily clear current_target_pragma
18113 when creating builtin fndecls.
18114
18115 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18116
18117 PR ipa/65005
18118 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18119 function.
18120 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18121 have no comdat group.
18122 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18123 (lto_output_varpool_node): Always output alias info.
18124 (output_refs): Output refs of boundary aliases, too.
18125 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18126 (output_symtab): Output call eges in thunks in boundary.
18127 (get_alias_symbol): Remove.
18128 (input_node, input_varpool_node): Do not special case weakrefs.
18129 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18130 alias and thunks targets in the boundary; do not take removed symbols
18131 from their comdat groups.
18132 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18133 (cgraph_node::global_info): Remove.
18134 (cgraph_node::rtl_info): Look through aliases and thunks.
18135 * cgrpah.h (global_info): Remove.
18136 (non_local_p): Remove.
18137
18138 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18139 Sandra Loosemore <sandra@codesourcery.com>
18140
18141 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18142 to inline asm. List dialects in proper order.
18143
18144 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18145 Sandra Loosemore <sandra@codesourcery.com>
18146
18147 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18148
18149 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18150
18151 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18152 modified) reference to Solaris.
18153
18154 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
18155
18156 * doc/extend.texi (Extended Asm): Fix typos.
18157
18158 2015-02-10 Jakub Jelinek <jakub@redhat.com>
18159
18160 PR sanitizer/65004
18161 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18162
18163 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
18164
18165 PR target/64661
18166 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18167 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18168 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18169 * config/sh/constraints.md (Ara, Add): New constraints.
18170 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18171 predicates.
18172 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18173 atomic_mem_operand_0. Don't use force_reg on the memory address.
18174 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18175 Sra constraint. Convert to insn_and_split. Add workaround for
18176 PR 64974.
18177 (atomic_compare_and_swap<mode>_hard): Copy to
18178 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
18179 Use atomic_mem_operand_0 predicate.
18180 (atomic_compare_and_swap<mode>_soft_gusa,
18181 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18182 AraAdd constraints.
18183 (atomic_compare_and_swap<mode>_soft_tcb,
18184 atomic_compare_and_swap<mode>_soft_imask,
18185 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18186 atomic_mem_operand_0 predicate and SraSdd constraints.
18187 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18188 constraint.
18189 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18190 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
18191 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18192 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
18193 force_reg on the memory address.
18194 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18195 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18196 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18197 atomic_mem_operand_1 predicate and Sra constraint.
18198 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18199 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18200 Use atomic_mem_operand_1 predicate.
18201 (atomic_<fetchop_name><mode>_hard): Copy to
18202 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18203 Use atomic_mem_operand_1 predicate.
18204 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18205 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18206 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
18207 insn_and_split. Use atomic_mem_operand_1 predicate.
18208 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18209 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
18210 Use atomic_mem_operand_1 predicate.
18211 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18212 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18213 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18214 in generated insn with original mem operand before emitting the insn.
18215 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18216 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18217 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18218 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18219 Use atomic_mem_operand_1 predicate and AraAdd constraints.
18220 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18221 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18222 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18223 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18224 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18225 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18226 atomic_not_fetch<mode>_soft_tcb,
18227 atomic_<fetchop_name>_fetch<mode>_soft_imask,
18228 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18229 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18230 Use atomic_mem_operand_1 predicate and SraSdd constraints.
18231
18232 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
18233
18234 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18235 and 3 earlyclobber operands.
18236
18237 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18238
18239 * common.opt (fstack-reuse): Mark as optimization.
18240
18241 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18242
18243 PR ipa/64982
18244 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18245
18246 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
18247
18248 PR tree-optimization/64326
18249 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18250
18251 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
18252
18253 PR gcov-profile/61889
18254 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18255
18256 2015-02-10 Richard Biener <rguenther@suse.de>
18257
18258 PR tree-optimization/64995
18259 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18260 value we use is final.
18261 (visit_reference_op_store): Always valueize op.
18262 (visit_use): Properly valueize vuses.
18263
18264 2015-02-10 Richard Biener <rguenther@suse.de>
18265
18266 PR tree-optimization/64909
18267 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18268 pass a scalar-stmt count estimate to the cost model.
18269 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18270
18271 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
18272
18273 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18274 enabled by default together with var-tracking.
18275
18276 2015-02-10 Nick Clifton <nickc@redhat.com>
18277
18278 * config/rl78/rl78.c: Remove DIV attribute code accidentally
18279 included in previous rl78 commit.
18280
18281 2015-02-10 Richard Biener <rguenther@suse.de>
18282
18283 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18284 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18285 return the bitpack.
18286
18287 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18288
18289 PR gcov-profile/61889
18290 * config.in: regenerate.
18291 * configure.in: Likewise.
18292 * configure.ac: Check for ftw.h.
18293 * gcov-tool.c: Check for ftw.h before using nftw.
18294
18295 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18296
18297 PR lto/64076
18298 * ipa-visibility.c (update_visibility_by_resolution_info): Only
18299 assert when not in lto mode.
18300
18301 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18302
18303 * ira-color.c (setup_left_conflict_sizes_p): Simplify
18304 initialization/assignment of conflict_size.
18305
18306 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
18307
18308 PR ipa/64978
18309 * ipa-cp.c (gather_caller_stats): Skip thunks.
18310 (propagate_constants_topo): Skip aliases.
18311
18312 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18313
18314 PR target/64761
18315 * config/sh/sh.c (sh_option_override): Don't change
18316 -freorder-blocks-and-partition to -freorder-blocks even when
18317 unwinding is enabled.
18318 (sh_can_follow_jump): Return false if the followee jump is
18319 a crossing jump when -freorder-blocks-and-partition is specified.
18320 * config/sh/sh.md (*jump_compact_crossing): New insn.
18321
18322 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
18323 Kaz Kojima <kkojima@gcc.gnu.org>
18324
18325 PR target/64761
18326 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18327 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18328 (sh_can_redirect_branch): Rename to ...
18329 (sh_can_follow_jump): ... this. Constify argument types.
18330 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18331 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18332 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18333 * doc/tm.texi: Regenerate.
18334
18335 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18336
18337 PR sanitizer/64981
18338 * builtins.c (expand_builtin): Call targetm.expand_builtin
18339 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18340
18341 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18342
18343 PR ipa/61548
18344 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18345
18346 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18347
18348 PR ipa/63566
18349 * ipa-icf.c (set_local): New function.
18350 (sem_function::merge): Use it.
18351
18352 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18353
18354 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18355 (add_type_duplicate): Fix comparison of BINFOs.
18356
18357 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18358
18359 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18360 on getting VOID pointer.
18361
18362 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18363
18364 PR target/64979
18365 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18366 va_list escapes.
18367
18368 2015-02-09 Richard Biener <rguenther@suse.de>
18369
18370 * genmatch.c (replace_id): Copy expr_type.
18371
18372 2015-02-09 Richard Biener <rguenther@suse.de>
18373
18374 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18375 (streamer_write_tree_bitfields): Declare.
18376 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18377 properly unpack padding.
18378 (unpack_value_fields): Inline ...
18379 (streamer_read_tree_bitfields): ... here.
18380 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18381 and properly add padding bits.
18382 (streamer_pack_tree_bitfields): Fold into ...
18383 (streamer_write_tree_bitfields): ... this new function,
18384 exposing the bitpack object.
18385 * lto-streamer-out.c (lto_write_tree_1): Call
18386 streamer_write_tree_bitfields.
18387
18388 2015-02-09 Richard Biener <rguenther@suse.de>
18389
18390 PR tree-optimization/54000
18391 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18392 (struct ivopts_data): Add loop_loc member.
18393 (tree_ssa_iv_optimize_loop): Dump loop location.
18394 (create_new_ivs): Likewise, also dump number of IVs generated.
18395
18396 2015-02-09 Martin Liska <mliska@suse.cz>
18397
18398 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18399 just if not yet registered.
18400 (ipa_icf_generate_summary): Register callgraph hooks.
18401
18402 2015-02-08 Andrew Pinski <apinski@cavium.com>
18403
18404 * config/aarch64/aarch64.c (gty_dummy): Delete.
18405
18406 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18407
18408 PR ipa/63566
18409 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18410 (cgraph_node::local_p): Remove thunk related FIXME.
18411
18412 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18413
18414 PR ipa/63566
18415 * i386.c (ix86_function_regparm): Look through aliases to see if callee
18416 is local and optimized.
18417 (ix86_function_sseregparm): Likewise; also use target's SSE math
18418 settings; error out instead of silently generating wrong code
18419 on mismatches.
18420 (init_cumulative_args): Look through aliases.
18421
18422 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18423
18424 PR ipa/63566
18425 * ipa-split.c (execute_split_functions): Split if function has aliases.
18426
18427 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18428
18429 PR ipa/63566
18430 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18431 aliases before trying to expand it.
18432 (cgraph_node::expand_thunk): Fix formating.
18433
18434 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
18435
18436 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18437 (Using Assembly Language with C): Expand introduction.
18438 (Basic Asm): Copy-edit. Add more information about uses of
18439 basic asm.
18440 (Extended Asm): Copy-edit. Document new escape syntax and
18441 %l[label] syntax.
18442 (Global Reg Vars): Copy-edit.
18443 (Local Reg Vars): Likewise.
18444
18445 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
18446
18447 PR debug/2714
18448 PR bootstrap/64256
18449 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18450 (DBX_CONTIN_CHAR): Define.
18451
18452 2015-02-06 Sebastian Pop <s.pop@samsung.com>
18453 Brian Rzycki <b.rzycki@samsung.com>
18454
18455 PR tree-optimization/64878
18456 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18457 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18458 Stop recursion at loop phi nodes after having visited a loop phi node.
18459
18460 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18461
18462 * toplev.c (process_options): Change flag_ipa_ra before creating
18463 optimization_{default,current}_node.
18464
18465 PR ipa/64896
18466 * cgraphunit.c (cgraph_node::expand_thunk): If
18467 restype is not is_gimple_reg_type nor the thunk_fndecl
18468 returns aggregate_value_p, set restmp to a temporary variable
18469 instead of resdecl.
18470
18471 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
18472
18473 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18474
18475 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18476
18477 PR target/64205
18478 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18479 add a general secondary reload handler for SDmode, unless we have
18480 both read/write support for SDmode.
18481
18482 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18483
18484 PR middle-end/64937
18485 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18486 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18487 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18488 1 before, push it to abstract_vec.
18489 (dwarf2out_abstract_function): Adjust caller. Don't call
18490 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18491 DECL_ABSTRACT_P flags for all abstract_vec elts.
18492
18493 2015-02-06 Renlin Li <renlin.li@arm.com>
18494
18495 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18496 complex gimple.
18497 * tree-ssa.c (execute_update_addresses_taken): Likewise.
18498
18499 2015-02-06 Jeff Law <law@redhat.com>
18500
18501 PR target/64889
18502 * config/h8300/h8300.c (push): New argument "in_prologue".
18503 Pass "in_prologue" along to "F".
18504 (h8300_push_pop): Corresponding changes.
18505 (h8300_expand_prologue): Likewise.
18506 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
18507
18508 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18509
18510 PR rtl-optimization/64957
18511 PR debug/64817
18512 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18513 IOR rather than for AND.
18514
18515 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
18516
18517 PR target/62631
18518 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18519 of shift-add and (add + shift) operations. Rename local variable.
18520
18521 2015-02-05 Jeff Law <law@redhat.com>
18522
18523 PR target/17306
18524 * config/h8300/constraints.md (U): Correctly dectect
18525 "eightbit_data" memory addresses.
18526 * config/h8300/h8300.c (eightbit_constant_address_p): Also
18527 handle (const (plus (symbol_ref (x)))) where x is declared
18528 as an 8-bit data memory address.
18529 * config/h8300/h8300.md (call, call_value): Correctly detect
18530 "funcvec" functions.
18531
18532 PR target/43264
18533 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18534 24 to 28 bits for the H8/300.
18535
18536 2015-02-06 Alan Modra <amodra@gmail.com>
18537
18538 PR target/64876
18539 * config/rs6000/rs6000.c (chain_already_loaded): New function.
18540 (rs6000_call_aix): Use it.
18541
18542 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
18543
18544 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18545 check.
18546
18547 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
18548
18549 * config/h8300/constraints.md ("U" constraint): Use strict
18550 variant of REG_OK_FOR_BASE_P after reload has started.
18551
18552 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
18553
18554 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18555 define to zero if !TARGET_NEON.
18556 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18557
18558 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18559 Trevor Saunders <tsaunders@mozilla.com>
18560
18561 PR ipa/61548
18562 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18563
18564 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18565
18566 PR ipa/61548
18567 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18568 when removing varpool nodes.
18569
18570 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18571
18572 PR ipa/61548
18573 * varpool.c (varpool_node::remove): Fix order of variables.
18574
18575 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18576
18577 PR ipa/64686
18578 * ipa-inline.c (inline_small_functions): Fix ordering issue between
18579 speculation resolution and key updates.
18580
18581 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18582
18583 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18584 about not letting any speculative edges unupdated.
18585
18586 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18587
18588 PR gcov/64123
18589 * gcov-io.c (gcov_var): Export.
18590
18591 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18592
18593 PR middle-end/64922
18594 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18595 edges that become speculative.
18596
18597 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18598
18599 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18600 or DW_LANG_Fortran08.
18601 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18602 DW_LANG_Fortran08.
18603 (gen_compile_unit_die): Handle "GNU Fortran2003" and
18604 "GNU Fortran2008" language strings.
18605 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18606 * langhooks.h (lang_GNU_Fortran): New prototype.
18607 * langhooks.c (lang_GNU_Fortran): New function.
18608 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18609 lang_GNU_Fortran.
18610
18611 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18612
18613 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18614 (RTX_OK_FOR_OLO10_P): Likewise.
18615
18616 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18617
18618 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18619
18620 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18621
18622 PR middle-end/64922
18623 * gimple.c: Include gimple-ssa.h.
18624 (maybe_remove_unused_call_args): New function.
18625 * gimple.h (maybe_remove_unused_call_args): Declare.
18626 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18627 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18628 * gimple-fold.c (gimple_fold_call): Likewise.
18629
18630 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
18631
18632 PR rtl-optimization/64905
18633 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18634 pointer alignment if it isn't needed.
18635
18636 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18637
18638 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18639 cortex-a72.cortex-a53.
18640 * config/aarch64/aarch64-tune.md: Regenerate.
18641 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18642
18643 2015-02-04 Nick Clifton <nickc@redhat.com>
18644
18645 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18646 inside a MEM.
18647
18648 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18649
18650 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18651 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18652 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18653 of DEF_BUILTIN.
18654 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18655 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18656 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18657 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18658 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18659 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18660 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18661 * tree-core.h (enum built_in_function): In between
18662 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18663 for builtins that use DEF_BUILTIN_CHKP macro.
18664
18665 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
18666
18667 PR debug/64817
18668 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18669 operands for tcc_comparison exprs. Fix typos.
18670
18671 PR debug/64817
18672 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18673 of two XORs that have an intervening AND or IOR.
18674
18675 PR debug/64817
18676 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18677 simplification of XOR of AND to not allocate new rtx before
18678 committing to a simplification.
18679
18680 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18681
18682 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18683 manual swaps in all peepholes.
18684
18685 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18686
18687 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18688 of manual swapping implementation.
18689 (aarch64_expand_vec_perm_const_1): Likewise.
18690
18691 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
18692
18693 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18694 (generic_addrcost_table): Remove NAMED_PARAM.
18695 (cortexa57_addrcost_table): Likewise.
18696 (xgene1_addrcost_table): Likewise.
18697 (generic_regmove_table): Likewise.
18698 (cortexa53_regmove_table): Likewise.
18699 (xgene1_regmove_table): Likewise.
18700 (generic_vector_table): Likewise.
18701 (cortexa57_vector_table): Likewise.
18702 (xgene1_vector_table): Likewise.
18703 (generic_tunings): Likewise.
18704 (cortexa53_tunings): Likewise.
18705 (cortexa57_tunings): Likewise.
18706 (xgene1_tunings): Likewise.
18707
18708 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18709
18710 * config/arm/arm-cores.def: Add cortex-a72 and
18711 cortex-a72.cortex-a53.
18712 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
18713 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
18714 * config/arm/arm-tune.md: Regenerate.
18715 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
18716 "cortex-a72.cortex-a53".
18717 * doc/invoke.texi (ARM Options/-mtune): Likewise.
18718
18719 2015-02-04 Nick Clifton <nickc@redhat.com>
18720
18721 PR target/64408
18722 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
18723 of accepted codes.
18724 (nonimmediate_di_operand): Likewise.
18725
18726 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
18727 prefixes of known F5 using MSP430 MCUs.
18728
18729 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18730
18731 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
18732 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
18733 instead of __builtin_sqrt.
18734
18735 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
18736
18737 * varasm.c (do_assemble_alias): Follow transparent alias
18738 chain for target.
18739 (default_assemble_visibility): Follow transparent alias
18740 chain for decl name.
18741
18742 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18743
18744 PR middle-end/62103
18745 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
18746 to compute size of referenced value in the constant case.
18747
18748 2015-02-03 Jakub Jelinek <jakub@redhat.com>
18749
18750 PR rtl-optimization/64756
18751 * cse.c (invalidate_dest): New function.
18752 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
18753 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
18754 invalidate and do not record it.
18755
18756 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
18757
18758 PR target/64660
18759 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
18760 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
18761 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
18762 atomic_nand<mode>_soft_tcb): New insns.
18763 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
18764 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
18765 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
18766 Split into atomic_not_fetchsi_hard if operands[0] is unused.
18767 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
18768 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18769 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
18770 atomic_not<mode>_hard if operands[0] is unused.
18771 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
18772 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
18773 if operands[0] is unused.
18774 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
18775 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
18776 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
18777 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18778 unused.
18779 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
18780 into atomic_not<mode>_soft_tcb if operands[0] is unused.
18781 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
18782 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
18783 if operands[0] is unused.
18784 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
18785 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
18786 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
18787 atomic_nand_fetchsi_hard if operands[0] is unused.
18788 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
18789 atomic_nand<mode>_hard if operands[0] is unused.
18790 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
18791 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
18792 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
18793 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
18794 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
18795 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
18796 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
18797 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
18798 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
18799 atomic_not<mode>_hard if operands[0] is unused.
18800 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
18801 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
18802 unused.
18803 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
18804 into atomic_not<mode>_soft_tcb if operands[0] is unused.
18805 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
18806 atomic_nand<mode>_hard if operands[0] is unused.
18807 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
18808 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
18809
18810 2015-02-03 David Malcolm <dmalcolm@redhat.com>
18811
18812 PR jit/64810
18813 * Makefile.in (GCC_OBJS): Add gcc-main.o.
18814 * gcc-main.c: New file, containing "main" taken from gcc.c.
18815 * gcc.c (do_self_spec): Free decoded_options.
18816 (class driver): Move declaration to gcc.h.
18817 (main): Move declaration and implementation to new file
18818 gcc-main.c.
18819 (driver_get_configure_time_options): New function.
18820 * gcc.h (class driver): Move this declaration here, from
18821 gcc.c.
18822 (driver_get_configure_time_options): New declaration.
18823
18824 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
18825
18826 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
18827 cross-module inlining.
18828 * cgraph.h (cgraph_node): Add flag merged.
18829 * ipa-icf.c (sem_function::merge): Maintain it.
18830
18831 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
18832
18833 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
18834 instead of OBJECT_P.
18835
18836 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
18837
18838 PR target/62631
18839 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
18840 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
18841 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
18842 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
18843
18844 2015-02-03 Jakub Jelinek <jakub@redhat.com>
18845
18846 PR other/63504
18847 * combine.c (reg_n_sets_max): New variable.
18848 (can_change_dest_mode, reg_nonzero_bits_for_combine,
18849 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
18850 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
18851 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
18852 (rest_of_handle_combine): Initialize reg_n_sets_max.
18853
18854 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
18855
18856 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
18857 if some always_inline was inlined, apply changes before inlining
18858 heuristically.
18859
18860 2015-02-02 David Malcolm <dmalcolm@redhat.com>
18861
18862 PR jit/64810
18863 * config/arm/arm.c (arm_option_override): Set
18864 arm_selected_arch/cpu/tune to NULL on entry.
18865
18866 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
18867 Andrew Pinski <pinskia@gcc.gnu.org>
18868 Jakub Jelinek <jakub@gcc.gnu.org>
18869
18870 PR target/64231
18871 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
18872 integer typing for small model. Use IN_RANGE.
18873
18874 2015-02-02 Richard Biener <rguenther@suse.de>
18875
18876 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
18877 * tree-vrp.c (vrp_valueize_1): Likewise.
18878
18879 2015-02-02 Alan Modra <amodra@gmail.com>
18880
18881 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
18882 than mem for toc_restore.
18883 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
18884 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
18885 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
18886
18887 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
18888
18889 PR target/64047
18890 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
18891 explicit default options.
18892
18893 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
18894
18895 PR ipa/64872
18896 * ipa-utils.c (ipa_merge_profiles): Add release argument.
18897 * ipa-icf.c (sem_function::merge): Do not release body when merging.
18898 * ipa-utils.h (ipa_merge_profiles): Update prototype.
18899
18900 2015-02-01 Jakub Jelinek <jakub@redhat.com>
18901
18902 PR debug/64817
18903 * cfgexpand.c (deep_ter_debug_map): New variable.
18904 (avoid_deep_ter_for_debug): New function.
18905 (expand_debug_expr): If TERed SSA_NAME is in
18906 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
18907 instead of trying to expand SSA_NAME's def stmt.
18908 (expand_debug_locations): When expanding debug bind
18909 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
18910 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
18911 value.
18912 (pass_expand::execute): Call avoid_deep_ter_for_debug on
18913 all debug bind stmts. Delete deep_ter_debug_map after
18914 expand_debug_location if non-NULL and clear it.
18915
18916 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
18917
18918 PR target/64851
18919 * config/sh/sync.md (atomic_fetch_notsi_hard,
18920 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
18921 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
18922 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
18923 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
18924 atomic_not_fetch<mode>_soft_imask): New insns.
18925
18926 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18927
18928 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
18929 (rank_for_schedule_debug): Split from ...
18930 (rank_for_schedule): ... this.
18931 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
18932 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
18933
18934 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
18935
18936 * doc/md.texi (Machine Constraints): Alphabetize table by target.
18937 * doc/extend.texi (x86 Variable Attributes): Move section to
18938 correct alphabetization after renaming.
18939 (x86 Type Attributes): Likewise.
18940 (Target Builtins): Re-alphabetize menu.
18941 (x86 Built-in Functions): Move section to correct alphabetization
18942 after renaming.
18943 (x86 transactional memory intrinsics): Likewise.
18944 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
18945 and x86 Windows Options in table and menu.
18946 (x86 Options): Move section to correct alphabetization after
18947 renaming.
18948 (x86 Windows Options): Likewise.
18949
18950 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
18951
18952 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
18953 preferred names of the architecture and its 32- and 64-bit
18954 variants.
18955 * doc/invoke.texi: Likewise.
18956 * doc/md.texi: Likewise.
18957
18958 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
18959
18960 PR target/64882
18961 * config/i386/predicates.md (address_no_seg_operand): Reject
18962 non-CONST_INT_P operands in invalid mode.
18963
18964 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
18965
18966 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
18967 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
18968 * config/i386/predicates.md (address_no_seg_operand): Call
18969 address_operand with VOIDmode.
18970 (vsib_address_operand): Ditto.
18971 (address_mpx_no_base_operand): Ditto.
18972 (address_mpx_no_index_operand): Ditto.
18973
18974 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
18975
18976 PR target/64688
18977 * lra-constraints.c (original_subreg_reg_mode): New.
18978 (simplify_operand_subreg): Try to simplify subreg of const. Use
18979 original_subreg_reg_mode for it.
18980 (swap_operands): Update original_subreg_reg_mode.
18981 (curr_insn_transform): Set up original_subreg_reg_mode.
18982
18983 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
18984
18985 PR target/64617
18986 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
18987 function.
18988 (process_alt_operands): Use it.
18989 (curr_insn_transform): Check the optional reload pseudo class is
18990 ok for the mode.
18991
18992 2015-01-30 Joseph Myers <joseph@codesourcery.com>
18993
18994 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
18995 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
18996 prototype.
18997 * toplev.h (init_asm_output): Update comment on use of
18998 UNKNOWN_LOCATION with fatal_error.
18999 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19000 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19001 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19002 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19003 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19004 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19005 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19006 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19007 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19008 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19009 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19010 fatal_error changed to pass input_location as first argument.
19011
19012 2015-01-30 Martin Liska <mliska@suse.cz>
19013
19014 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19015 in #pragma GCC diagnostic guards.
19016
19017 2015-01-30 Richard Biener <rguenther@suse.de>
19018
19019 PR tree-optimization/64829
19020 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19021 not add a widening conversion pattern but hand off extra
19022 widenings to callers.
19023 (vect_recog_widen_mult_pattern): Handle extra widening produced
19024 by vect_handle_widen_op_by_const.
19025 (vect_recog_widen_shift_pattern): Likewise.
19026 (vect_pattern_recog_1): Remove excess vertical space in dumping.
19027 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19028 (vect_init_vector_1): Likewise.
19029 (vect_get_vec_def_for_operand): Likewise.
19030 (vect_finish_stmt_generation): Likewise.
19031 (vectorizable_load): Likewise.
19032 (vect_analyze_stmt): Likewise.
19033 (vect_is_simple_use): Likewise.
19034
19035 2015-01-29 Jeff Law <law@redhat.com>
19036
19037 * combine.c (try_combine): Fix typo in comment.
19038
19039 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
19040
19041 PR target/64580
19042 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19043 (rs6000_stack_info): Add assert.
19044 (rs6000_output_savres_externs): New function, split off from...
19045 (rs6000_output_function_prologue): ... here. Do not call it for
19046 thunks.
19047
19048 2015-01-29 Jeff Law <law@redhat.com>
19049
19050 PR target/15184
19051 * combine.c (try_combine): If I0 is a memory load and I3 a store
19052 to a related address, increase the "goodness" of doing a 4-insn
19053 combination with I0-I3.
19054 (make_field_assignment): Handle SUBREGs in the ior+and case.
19055
19056 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19057
19058 PR tree-optimization/64746
19059 * tree-if-conv.c (mask_exists): New function.
19060 (predicate_mem_writes): Save created mask with given size for further
19061 use.
19062 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19063 (ifcvt_repair_bool_pattern): Collect all statements that are root
19064 of bool pattern and use iterative algorithm to remove multiple uses
19065 of predicates, display number of required iterations.
19066
19067 2015-01-29 Richard Biener <rguenther@suse.de>
19068
19069 PR tree-optimization/64853
19070 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19071 stmt will get simulated again.
19072 * tree-ssa-ccp.c (valueize_op_1): Likewise.
19073
19074 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19075
19076 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19077 return_in_pc. Remove redundant assignments.
19078 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19079 (arm_expand_epilogue): Don't compare boolean with true in if condition.
19080
19081 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
19082
19083 * config/i386/i386.c (ix86_mode_after): Make static.
19084
19085 2015-01-29 Richard Biener <rguenther@suse.de>
19086
19087 PR tree-optimization/64844
19088 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19089 dump cost model analysis.
19090 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19091 Do not register adjusted load/store costs here.
19092
19093 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19094 Uros Bizjak <ubizjak@gmail.com>
19095
19096 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19097 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19098 using x86_use_pseudo_pic_reg.
19099 * config/i386/i386.c (ix86_conditional_register_usage): Remove
19100 support for fixed PIC register.
19101 (ix86_use_pseudo_pic_reg): Not static any more.
19102
19103 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19104
19105 PR middle-end/64805
19106 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19107 to avoid error in cgraph node verification.
19108
19109 2015-01-29 Marek Polacek <polacek@redhat.com>
19110
19111 * doc/standards.texi: Reflect that the default for C is gnu11.
19112
19113 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
19114
19115 PR target/64761
19116 * reorg.c (switch_text_sections_between_p): New function.
19117 (relax_delay_slots): Call it when testing if the jump insn
19118 is removable. Use targetm.can_follow_jump when testing if
19119 the conditional branch can follow an unconditional jump.
19120
19121 2015-01-27 Caroline Tice <cmtice@google.com>
19122
19123 Committing VTV Cywin/Ming patch for Patrick Wollgast
19124 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19125 if -fvtable-verify=preinit/std is used.
19126 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19127 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19128 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19129 if -fvtable-verify=preinit/std is used.
19130 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19131 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19132 if -fvtable-verify=preinit/std is used.
19133 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19134 * config/i386/mingw32.h (LIB_SPEC): Likewise.
19135 * varasm.c (assemble_variable): Add code to properly set the comdat
19136 section and name for the .vtable_map_vars section in case the
19137 target is PE or COFF.
19138
19139 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19140
19141 PR ipa/64801
19142 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19143 make sane BB profile.
19144 (cgraph_node::expand_thunk): Make sane BB profile.
19145 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19146 * cgraph.h (init_lowered_empty_function): Update prototype.
19147 * config/i386/i386.c (make_resolver_func): Update call.
19148 * predict.c (gate): Disable branch prediction pass if
19149 profile is already there.
19150
19151 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19152
19153 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19154 * opth-gen.awk: Likewise.
19155 * common.opt: Mark flag_fp_contract_mode as Optimization.
19156
19157 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
19158
19159 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19160 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19161
19162 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
19163
19164 PR target/64659
19165 * config/sh/predicates.md (atomic_arith_operand,
19166 atomic_logical_operand): Remove.
19167 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19168 (atomic_arith_operand_0): New predicate.
19169 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19170 Use atomic_arith_operand_0 for input values.
19171 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19172 atomic_compare_and_swap<mode>_soft_gusa,
19173 atomic_compare_and_swap<mode>_soft_tcb,
19174 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19175 arith_reg_operand instead of register_operand.
19176 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
19177 atomic_arith_operand_0 for newval input.
19178 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19179 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19180 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19181 arith_reg_operand instead of register_operand.
19182 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19183 fetchop_predicate_1, fetchop_constraint_1_llcs,
19184 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19185 fetchop_constraint_1_imask): New code iterator attributes.
19186 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19187 register_operand. Use fetchop_predicate_1.
19188 (atomic_fetch_<fetchop_name>si_hard,
19189 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19190 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19191 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19192 and arith_reg_operand instead of register_operand. Use
19193 fetchop_predicate_1, fetchop_constraint_1_gusa.
19194 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19195 and arith_reg_operand instead of register_operand. Use
19196 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
19197 to allow R0 usage.
19198 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19199 and arith_reg_operand instead of register_operand. Use
19200 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
19201 to allow R0 usage.
19202 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19203 register_operand. Use atomic_logical_operand_1.
19204 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19205 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19206 arith_reg_operand instead of register_operand.
19207 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19208 Use arith_reg_dest and arith_reg_operand instead of register_operand.
19209 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
19210 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19211 register_operand. Use fetchop_predicate_1.
19212 (atomic_<fetchop_name>_fetchsi_hard,
19213 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19214 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19215 fetchop_constraint_1_llcs.
19216 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19217 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19218 fetchop_constraint_1_gusa.
19219 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19220 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19221 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
19222 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19223 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19224 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
19225 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19226 register_operand. Use atomic_logical_operand_1.
19227 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19228 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19229 arith_reg_operand instead of register_operand.
19230 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19231 arith_reg_operand instead of register_operand. Use logical_operand
19232 and K08. Adjust asm sequence to allow R0 usage.
19233 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19234 arith_reg_operand instead of register_operand. Use logical_operand
19235 and K08.
19236
19237 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19238
19239 PR other/63504
19240 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19241 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19242 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19243 only get_full_len HOST_WIDE_INTs from get_val () array rather than
19244 all bits in *val_wide.
19245
19246 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
19247
19248 * varpool.c (tls_model_names): Fix names.
19249 (varpool_node::dump): Dump tls- prefix for tls models.
19250
19251 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
19252 Bernd Schmidt <bernds@codesourcery.com>
19253 Nathan Sidwell <nathan@codesourcery.com>
19254
19255 * config/nvptx/mkoffload.c: New file.
19256 * config/nvptx/t-nvptx: Add build rules for it.
19257 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19258 (extra_programs): Add mkoffload.
19259 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19260 function.
19261 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19262
19263 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
19264
19265 PR middle-end/64809
19266 * cfgexpand.c (reorder_operands): Skip debug gimples.
19267
19268 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
19269
19270 PR tree-optimization/64277
19271 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19272 range info when possible to refine estimation.
19273
19274 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19275
19276 PR tree-optimization/64718
19277 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19278 be a 16bit unsigned integer when n->range is 16.
19279 (bswap_replace): Convert src to that type if necessary for all bswap
19280 sizes. Fix rotation right notation in nearby comment. Use bswap_type
19281 set in pass_optimize_bswap::execute ().
19282
19283 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
19284
19285 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19286 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19287 integer and floating point variants.
19288 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19289
19290 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
19291
19292 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19293 for all vector modes.
19294
19295 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19296
19297 PR bootstrap/64612
19298 * doc/sourcebuild.texi (comdat_group): Document.
19299
19300 2015-01-28 Terry Guo <terry.guo@arm.com>
19301
19302 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19303
19304 2015-01-27 David Malcolm <dmalcolm@redhat.com>
19305
19306 * toplev.c (print_version): Add param "show_global_state", and
19307 only print GGC and plugin information if it is true.
19308 (init_asm_output): Pass in "true" for the new param when calling
19309 print_version.
19310 (process_options): Likewise.
19311 (toplev::main): Likewise.
19312 * toplev.h (print_version): Add new param to decl.
19313
19314 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19315
19316 PR ipa/60871
19317 PR ipa/64139
19318 * tree.c (lookup_binfo_at_offset): New function.
19319 (get_binfo_at_offset): Use it.
19320
19321 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19322
19323 PR ipa/64282
19324 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19325 on vtable being vtable.
19326
19327 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19328
19329 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19330 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19331 -mhotpatch= option.
19332 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19333 -mno-hotpatch options. Change syntax of -mhotpatch= option.
19334 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19335 Renamed.
19336 (s390_hotpatch_trampoline_halfwords_max): Renamed.
19337 (s390_hotpatch_hw_max): New name.
19338 (s390_hotpatch_trampoline_halfwords): Renamed.
19339 (s390_hotpatch_hw_before_label): New name.
19340 (get_hotpatch_attribute): Removed.
19341 (s390_hotpatch_hw_after_label): New name.
19342 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19343 attribute.
19344 (s390_attribute_table): Ditto.
19345 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19346 (s390_function_num_hotpatch_hw): New name.
19347 Remove special handling of inline functions and hotpatching.
19348 Return number of nops before and after the function label.
19349 (s390_can_inline_p): Removed.
19350 (s390_asm_output_function_label): Emit a configurable number of nops
19351 after the function label.
19352 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19353 (TARGET_CAN_INLINE_P) Removed.
19354 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19355
19356 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19357 Jiong Wang <jiong.wang@arm.com>
19358
19359 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19360 of scratch reg.
19361 (cb<optab><mode>1): Likewise.
19362 * config/aarch64/iterators.md (bcond): New define_code_attr.
19363
19364 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19365
19366 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19367 memory accesses.
19368
19369 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19370
19371 * config/s390/s390.c (s390_register_move_cost): Increase costs for
19372 FPR->GPR moves.
19373
19374 2015-01-27 Richard Biener <rguenther@suse.de>
19375
19376 * tree-vrp.c (update_value_range): Intersect the range with
19377 old recorded SSA name range information.
19378
19379 2015-01-27 Nick Clifton <nickc@redhat.com>
19380
19381 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19382 BC, DE and HL registers directly, not via AX.
19383 When decrementing the stack pointer by a large amount, transfer SP
19384 into AX and perform the subtraction there.
19385 (rl78_expand_epilogue): Perform the inverse of the above
19386 enhancements.
19387
19388 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19389
19390 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19391
19392 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19393 Yury Gribov <y.gribov@samsung.com>
19394
19395 PR ubsan/64741
19396 * ubsan.c (ubsan_source_location): Refactor code.
19397 (ubsan_type_descriptor): Update type size. Refactor code.
19398
19399 2015-01-27 Richard Biener <rguenther@suse.de>
19400
19401 PR tree-optimization/56273
19402 PR tree-optimization/59124
19403 PR tree-optimization/64277
19404 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19405 from the first VRP pass.
19406
19407 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19408
19409 PR ipa/64776
19410 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19411 handle the first argument in the same loop as all the other arguments.
19412
19413 PR rtl-optimization/61058
19414 * jump.c (cleanup_barriers): Update basic block boundaries
19415 if BLOCK_FOR_INSN is non-NULL on PREV.
19416
19417 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
19418
19419 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19420 bounds narrowing, already instrumented calls and calls to
19421 not instrumentable functions.
19422
19423 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19424
19425 PR tree-optimization/64807
19426 * wide-int.cc (wi::divmod_internal): Clear
19427 b_dividend[dividend_blocks_needed].
19428
19429 2015-01-26 DJ Delorie <dj@redhat.com>
19430
19431 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19432 volatile memory references.
19433
19434 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
19435
19436 PR target/49263
19437 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19438 remove_insn.
19439 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19440 shifts if it already fits into K08.
19441
19442 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19443
19444 PR ipa/64730
19445 * ipa-inline.c (inline_small_functions): Print "unknown" even
19446 if edge->call_stmt is non-NULL, but has builtins or unknown
19447 location.
19448
19449 PR middle-end/64421
19450 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19451 with asterisk, skip the first character.
19452
19453 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19454
19455 PR target/64806
19456 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19457 order change.
19458
19459 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
19460
19461 PR target/64795
19462 * config/i386/i386.md (*movdi_internal): Also check operand 0
19463 to determine TYPE_LEA operand.
19464 (*movsi_internal): Ditto.
19465
19466 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19467
19468 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19469 OPTION_MASK_QUAD_MEMORY_ATOMIC.
19470
19471 2015-01-26 Renlin Li <renlin.li@arm.com>
19472
19473 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19474 the comment.
19475 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19476 for higher part.
19477
19478 2015-01-26 Richard Biener <rguenther@suse.de>
19479
19480 PR middle-end/64764
19481 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19482 combining two BIT_AND_EXPR predicates.
19483
19484 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19485
19486 PR bootstrap/64754
19487 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19488
19489 2015-01-26 Terry Guo <terry.guo@arm.com>
19490
19491 * config/arm/arm.c (arm_file_start): Update the assignment of
19492 Tag_ABI_HardFP_use.
19493
19494 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
19495
19496 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19497 pipeline model.
19498 config/arm/arm.md: Include the new Cortex-A57 model.
19499 (generic_sched): Don't use generic_sched when tuning for
19500 Cortex-A57.
19501
19502 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
19503 Uros Bizjak <ubizjak@gmail.com>
19504
19505 * config/i386/i386.c (get_builtin_code_for_version): Add
19506 support for BMI and BMI2 multiversion functions.
19507
19508 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19509
19510 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19511 (extract_bit_field): Likewise.
19512 (extract_low_bits): Likewise.
19513 (expand_mult): Likewise.
19514 (expand_mult_highpart_adjust): Likewise.
19515
19516 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
19517
19518 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19519 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19520 * config/i386/i386.c (processor_model): Add
19521 M_INTEL_COREI7_BROADWELL.
19522 (arch_names_table): Add "broadwell".
19523
19524 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
19525
19526 PR target/49263
19527 PR target/53987
19528 PR target/64345
19529 PR target/59533
19530 PR target/52933
19531 PR target/54236
19532 PR target/51244
19533 * config/sh/sh-protos.h
19534 (sh_extending_set_of_reg::can_use_as_unextended_reg,
19535 sh_extending_set_of_reg::use_as_unextended_reg,
19536 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19537 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19538 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19539 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19540 (sh_treg_insns): New class.
19541 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19542 (scope_counter): New class.
19543 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19544 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19545 sh_extending_set_of_reg::can_use_as_unextended_reg,
19546 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19547 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19548 sh_split_treg_set_expr): New functions.
19549 (addsubcosts): Handle treg_set_expr.
19550 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19551 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19552 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19553 (sh_insn_operands_modified_between_p): Make non-static.
19554 * config/sh/predicates.md (zero_extend_movu_operand): Allow
19555 simple_mem_operand in addition to displacement_mem_operand.
19556 (zero_extend_operand): Don't allow zero_extend_movu_operand.
19557 (treg_set_expr, treg_set_expr_not_const01,
19558 arith_reg_or_treg_set_expr): New predicates.
19559 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19560 arith_or_int_operand instead of logical_operand. Convert to
19561 insn_and_split. Try to optimize constant operand in splitter.
19562 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
19563 (*tstqi_t_zero): Delete.
19564 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19565 (tstsi_t_and_not): Delete.
19566 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19567 Convert to insn_and_split.
19568 (unnamed split, tstsi_t_zero_extract_xor,
19569 tstsi_t_zero_extract_subreg_xor_little,
19570 tstsi_t_zero_extract_subreg_xor_big): Delete.
19571 (*tstsi_t_shift_mask): New insn_and_split.
19572 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19573 to recombine with surrounding insns when splitting.
19574 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19575 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19576 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19577 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19578 (*cbranch_div0s: Delete.
19579 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19580 Try to recombine with surrounding insns when splitting. Add operand
19581 order variants.
19582 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19583 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19584 *addc_r_r_msb, *addc_2r_msb): Delete.
19585 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
19586 order variant.
19587 (*addc_negreg_t): New insn_and_split.
19588 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19589 Try to recombine with surrounding insns when splitting.
19590 Add operand order variants.
19591 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19592 insn_and_split patterns.
19593 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
19594 surrounding insns when splitting.
19595 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19596 (*rotcl): Likewise. Add zero_extract variant.
19597 (*ashrsi2_31): New insn_and_split.
19598 (*negc): Convert to insn_and_split. Use treg_set_expr.
19599 (*zero_extend<mode>si2_disp_mem): Update comment.
19600 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19601 condition.
19602 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
19603 with surrounding insns when splitting.
19604 (any_treg_expr_to_reg): New insn_and_split.
19605 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19606 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19607 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19608 *zero_extract_2): New single bit zero extract patterns.
19609 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19610 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19611 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19612 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19613 set destination.
19614 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19615 register_operand for set source.
19616
19617 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
19618
19619 * i386.opt (prefetch_sse): New targetsave.
19620 * i386.c (ix86_function_specific_save): Save prefetch_sse.
19621 (ix86_function_specific_restore): Restore prefetch_sse and initialize
19622 ix86_cost/ix86_tune_cost.
19623
19624 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19625
19626 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19627 Support the JIT by using 0 as the language type.
19628
19629 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
19630
19631 PR target/64317
19632 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
19633 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19634 (mark_regno_live, process_bb_lives): Pass new parameter value to
19635 make_hard_regno_born.
19636
19637 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19638
19639 PR rtl-optimization/63637
19640 PR rtl-optimization/60663
19641 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19642 if elt->cost is MAX_COST for ASM_OPERANDS.
19643 (find_sets_in_insn): Fix up comment typo.
19644 (cse_insn): Don't set src_volatile for all non-volatile
19645 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19646 or with "memory" clobber. Set elt->cost to MAX_COST
19647 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
19648 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19649
19650 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19651
19652 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19653 alternative 1.
19654
19655 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19656
19657 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19658 libgcc/config/i386/elf-lib.h.
19659
19660 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19661
19662 PR driver/64737
19663 * gcc.c (print_configuration): Don't print a blank line at the end
19664 here...
19665 (run_attempt): ... but here unstead.
19666
19667 PR middle-end/64734
19668 * omp-low.c (scan_sharing_clauses): Don't ignore
19669 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19670 on target data/update constructs.
19671
19672 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19673
19674 PR target/50928
19675 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19676 (DEBUG_RELOAD): Removed define.
19677 (m32c_limit_reload_class): Enable traces with if DEBUG0.
19678 (m32c_function_arg): Added a type cast.
19679 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19680 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19681 * config/m32c/bitops.md (andqi3_16): Likewise.
19682 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19683 (push_a01_l): Likewise.
19684
19685 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19686
19687 PR jit/64721
19688 * main.c (main): Construct toplev instances with init_signals=true.
19689 * toplev.c (general_init): Add param "init_signals", and use it to
19690 conditionalize the calls to signal and host_hooks.extra_signals.
19691 (toplev::toplev): Add param "init_signals".
19692 (toplev::main): When invoking general_init, pass m_init_signals
19693 to control whether signal-handlers are installed.
19694 * toplev.h (toplev::toplev): Add param "init_signals".
19695 (toplev::m_init_signals): New field.
19696
19697 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19698
19699 PR jit/64722
19700 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19701 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19702 latter may be affected by the former (e.g. on i686).
19703
19704 2015-01-23 Martin Liska <mliska@suse.cz>
19705
19706 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19707 false positive during profiledbootstrap.
19708
19709 2015-01-23 Tom de Vries <tom@codesourcery.com>
19710
19711 PR libgomp/64672
19712 * lto-opts.c (lto_write_options): Output non-explicit conservative
19713 -fno-openacc.
19714 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
19715 (append_compiler_options): Pass -fopenacc through.
19716
19717 2015-01-23 Tom de Vries <tom@codesourcery.com>
19718
19719 PR libgomp/64707
19720 * lto-opts.c (lto_write_options): Output non-explicit conservative
19721 -fno-openmp.
19722 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
19723 (append_compiler_options): Pass -fopenmp through.
19724
19725 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19726
19727 PR debug/64511
19728 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
19729 GTY markup.
19730
19731 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
19732 * diagnostic.def (DK_ICE_NOBT): New kind.
19733 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
19734 like DK_ICE, but never print backtrace.
19735 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
19736 (internal_error_no_backtrace): New function.
19737 * gcc.c (execute): Use internal_error_no_backtrace instead of
19738 internal_error.
19739
19740 2015-01-22 Jeff Law <law@redhat.com>
19741
19742 PR target/52076
19743 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
19744 improve code density for small immediate to memory case.
19745 (insv): Better handle bitfield assignments when the field is
19746 being set to all ones.
19747 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
19748 operand predicate.
19749
19750 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19751 Jakub Jelinek <jakub@redhat.com>
19752
19753 PR middle-end/64729
19754 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
19755 for !TARGET_LIBC_PROVIDES_SSP version and
19756 -fstack-protector-{all,strong,explicit} otherwise.
19757 * config/freebsd.h (LINK_SSP_SPEC): Handle
19758 -fstack-protector-{strong,explicit}.
19759
19760 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
19761 H.J. Lu <hongjiu.lu@intel.com>
19762
19763 PR ipa/64694
19764 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
19765 heap.
19766
19767 2015-01-22 Wei Mi <wmi@google.com>
19768
19769 PR rtl-optimization/64557
19770 * dse.c (record_store): Call get_addr for mem_addr.
19771 (check_mem_read_rtx): Likewise.
19772
19773 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
19774
19775 * fold-const.c (const_binop): Add early return for non-tcc_binary.
19776
19777 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
19778
19779 * toplev.c (init_local_tick): Process the failure when read
19780 fails for random_seed.
19781
19782 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
19783 'pretty_name' to avoid memory overflow.
19784
19785 2015-01-22 Richard Biener <rguenther@suse.de>
19786
19787 PR middle-end/64728
19788 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
19789 abnormal coalescing on undefined SSA names.
19790
19791 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
19792
19793 PR target/64688
19794 PR target/64477
19795 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
19796 for alternative 3.
19797 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
19798
19799 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
19800
19801 PR middle-end/63325
19802 * fold-const.c (fold_checksum_tree): Don't include value of
19803 expr->decl_with_vis.symtab_node in the checksum.
19804
19805 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19806
19807 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
19808
19809 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
19810
19811 PR driver/64690
19812 * gcc.c (insert_comments): New function.
19813 (try_generate_repro): Call it.
19814 (append_text): Removed.
19815
19816 2015-01-22 Richard Biener <rguenther@suse.de>
19817
19818 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
19819 with IL incompatible options. Properly honor user optimize
19820 attributes.
19821
19822 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
19823
19824 PR rtl-optimization/64682
19825 * combine.c (distribute_notes): When moving a death note for
19826 a register that is set in the new I2, make sure to put it
19827 before that new I2.
19828
19829 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
19830
19831 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
19832 not TARGET_DEFAULT.
19833
19834 2015-01-21 Jakub Jelinek <jakub@redhat.com>
19835
19836 PR debug/64511
19837 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
19838 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
19839 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
19840
19841 PR sanitizer/64706
19842 * doc/invoke.texi (-fsanitize=vptr): Document.
19843
19844 PR rtl-optimization/62078
19845 * dse.c: Include cfgcleanup.h.
19846 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
19847 anything call purge_all_dead_edges and cleanup_cfg at the end
19848 of the pass.
19849
19850 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
19851
19852 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
19853 edges.
19854
19855 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19856
19857 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
19858 decl attribute.
19859
19860 2015-01-21 David Sherwood <david.sherwood@arm.com>
19861 Tejas Belagod <Tejas.Belagod@arm.com>
19862
19863 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
19864 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
19865 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
19866 Removed.
19867
19868 2015-01-21 David Sherwood <david.sherwood@arm.com>
19869 Tejas Belagod <Tejas.Belagod@arm.com>
19870
19871 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
19872 (aarch64_reverse_mask): New decls.
19873 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
19874 (insn_count): New mode_attr.
19875 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
19876 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
19877 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
19878 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
19879 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
19880 (aarch64_simd_st4): New patterns.
19881 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
19882 (aarch64_reverse_mask): New functions.
19883
19884 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
19885
19886 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
19887 Declare.
19888 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
19889 addressing modes for BE.
19890 (aarch64_print_operand): Add 'R' specifier.
19891 (aarch64_simd_disambiguate_copy): Delete.
19892 (aarch64_simd_emit_reg_reg_move): New function.
19893 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
19894 in define_splits for structural moves.
19895 (mov<mode>): Use less restrictive predicates.
19896 (*aarch64_mov<mode>): Simplify and only allow for LE.
19897 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
19898
19899 2015-01-21 Alan Hayward <alan.hayward@arm.com>
19900
19901 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
19902
19903 2015-01-21 Richard Henderson <rth@redhat.com>
19904
19905 PR target/64669
19906 * ccmp.c (used_in_cond_stmt_p): Remove.
19907 (expand_ccmp_expr): Don't use it.
19908
19909 2015-01-21 Nick Clifton <nickc@redhat.com>
19910
19911 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
19912 PARALLELs.
19913
19914 2015-01-21 Richard Biener <rguenther@suse.de>
19915
19916 PR middle-end/64313
19917 * tree-core.h (builtin_info, builtin_info_type): Turn from
19918 an object with two arrays into an array of an object with
19919 decl and two flags, implicit_p and declared_p.
19920 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
19921 set_builtin_decl, set_builtin_decl_implicit_p,
19922 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
19923 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
19924 * builtins.c (builtin_info): Adjust.
19925 * gimplify.c (gimplify_addr_expr): References to builtins
19926 that have been declared by the user makes them eligible for
19927 use by the compiler. Call set_builtin_decl_implicit_p on them.
19928
19929 2015-01-20 Jeff Law <law@redhat.com>
19930
19931 PR target/59946
19932 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
19933 allow pc-relative addresses in operand predicates or constraints.
19934
19935 2015-01-21 Bin Cheng <bin.cheng@arm.com>
19936
19937 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
19938 neon on aarch32 processors for stringops.
19939
19940 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
19941
19942 PR ipa/63576
19943 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
19944
19945 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
19946
19947 PR lto/45375
19948 * ipa-inline.c: Include lto-streamer.h
19949 (report_inline_failed_reason): Output source file differences and
19950 flags on optimization/target node mismatch.
19951 (can_inline_edge_p): Consider caller to be the outer inline function;
19952 be less restrictive about matching opimize and optimize_size attributes.
19953 (inline_account_function_p): Break out from ...
19954 (inline_small_functions): ... here.
19955 * ipa-inline-transform.c (clone_inlined_nodes): Use
19956 inline_account_function_p.
19957 (inline_call): Use optimize attribution; use inline_account_function_p.
19958 (inline_transform): Use opt_for_fn.
19959 * ipa-inline.h (inline_account_function_p): Declare.
19960
19961 2015-01-20 Jakub Jelinek <jakub@redhat.com>
19962
19963 PR debug/64663
19964 * dwarf2out.c (decl_piece_node): Don't put bitsize into
19965 mode if bitsize <= 0.
19966 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
19967 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
19968 sizes and positions.
19969
19970 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
19971
19972 * config/nios2/nios2.c (nios2_asm_file_end): Implement
19973 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
19974 needed.
19975 (TARGET_ASM_FILE_END): Define.
19976
19977 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19978
19979 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
19980 (struct tune_params): Use the enum.
19981 * arm.c (arm_*_tune): Update.
19982 (arm_option_override): Update.
19983
19984 2015-01-20 Richard Biener <rguenther@suse.de>
19985
19986 PR ipa/64684
19987 * ipa-reference.c (add_static_var): Inline ...
19988 (analyze_function): ... here after splitting out from ...
19989 (is_proper_for_analysis): ... this.
19990
19991 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
19992
19993 PR target/64149
19994 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
19995 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
19996 replace the conditional with it's true branch.
19997 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
19998 (arm_lra_p): Remove.
19999
20000 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
20001
20002 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20003
20004 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20005
20006 * config/tilegx/mul-tables.c: Move symtab.h include after
20007 coretypes.h include.
20008 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20009 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20010 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20011 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20012 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20013
20014 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
20015
20016 PR bootstrap/64676
20017 Revert:
20018 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20019
20020 PR rtl-optimization/64081
20021 * loop-iv.c (def_pred_latch_p): New function.
20022 (latch_dominating_def): Allow specific cases with non-single
20023 definitions.
20024 (iv_get_reaching_def): Likewise.
20025 (check_complex_exit_p): New function.
20026 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20027 with exits not executing on any iteration.
20028
20029 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20030
20031 PR lto/45375
20032 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20033 to set branch cost.
20034
20035 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20036
20037 PR lto/45375
20038 * i386.c (gate): Check flag_expensive_optimizations and
20039 optimize_size.
20040 (ix86_option_override_internal): Drop optimize_size condition
20041 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20042 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20043 MASK_PREFER_AVX128.
20044 (ix86_avx256_split_vector_move_misalign,
20045 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20046 * sse.md (all uses of TARGET_PREFER_AVX128): Add
20047 optimize_insn_for_speed_p check.
20048
20049 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20050
20051 * config/mips/mips.h (FP_ASM_SPEC): New define.
20052 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20053 instead.
20054
20055 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
20056
20057 PR target/53988
20058 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20059 nullptr for insn when reaching the first insn.
20060 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20061 (sh_insn_operands_modified_between_p): Add nullptr check.
20062 (sh_find_extending_set_of_reg): Fix log message. Don't accept
20063 sign extending mem load if the insn contains any UNSPEC or
20064 UNSPEC_VOLATILE.
20065
20066 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20067
20068 * params.def (inline-unit-growth): Drop to 15%.
20069 * invoke.texi (inline-unit-growth): Document change.
20070
20071 2015-01-19 Martin Liska <mliska@suse.cz>
20072
20073 PR ipa/64668
20074 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20075 function for second argument of OBJ_TYPE_REF.
20076
20077 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20078
20079 PR ipa/64218
20080 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20081 whether function is an alias.
20082
20083 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20084
20085 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20086 cases.
20087
20088 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
20089
20090 PR rtl-optimization/64671
20091 * lra-remat.c (operand_to_remat): Don't consider jump and call
20092 insns.
20093
20094 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
20095
20096 PR target/59828
20097 * config/rs6000/default64.h: Include rs6000-cpus.def.
20098 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20099 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20100 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20101 and POWER8.
20102 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20103 POWER8.
20104 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20105 pseudo-op to specify assembler dialect.
20106
20107 2015-01-19 Martin Liska <mliska@suse.cz>
20108
20109 PR ipa/64664
20110 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20111 Handle safe potentially removed nodes during filtering.
20112
20113 2015-01-19 Martin Liska <mliska@suse.cz>
20114
20115 * doc/extend.texi (no_icf): Add new attribute description.
20116 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20117 where the pass attempts to merge a function with no_icf attribute.
20118
20119 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20120
20121 PR target/64532
20122 * doc/md.texi (ARM Options): Document register constraints.
20123
20124 2015-01-19 Jiong Wang <jiong.wang@arm.com>
20125 Andrew Pinski <apinski@cavium.com>
20126
20127 PR target/64304
20128 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20129 (ashl<mode>3): Don't expand if operands[2] is not constant.
20130
20131 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20132
20133 PR target/64448
20134 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20135 Match xor-and-xor RTL pattern.
20136
20137 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20138
20139 PR rtl-optimization/64081
20140 * loop-iv.c (def_pred_latch_p): New function.
20141 (latch_dominating_def): Allow specific cases with non-single
20142 definitions.
20143 (iv_get_reaching_def): Likewise.
20144 (check_complex_exit_p): New function.
20145 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20146 with exits not executing on any iteration.
20147
20148 2015-01-19 Jakub Jelinek <jakub@redhat.com>
20149
20150 * common.opt (fgraphite): Fix a typo.
20151
20152 2015-01-19 Felix Yang <felix.yang@huawei.com>
20153
20154 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20155 pattern.
20156 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20157 uminp, smax_nanp, smin_nanp): New builtins.
20158 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20159 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20160 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20161 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20162 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20163 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20164 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20165 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20166 vpminnms_f32): Rewrite using builtin functions.
20167
20168 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
20169
20170 PR libgomp/64625
20171 * omp-low.c (offload_symbol_decl): Remove variable.
20172 (get_offload_symbol_decl): Remove function.
20173 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20174 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20175 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20176 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20177 BUILT_IN_GOACC_UPDATE don't pass it at all.
20178
20179 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20180
20181 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20182 callers.
20183
20184 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20185
20186 * ipa-chkp.c (chkp_produce_thunks): Add early param
20187 to split thunks production into two passes. Keep
20188 'always_inline' function bodies after the first pass.
20189 (pass_data_ipa_chkp_early_produce_thunks): New.
20190 (pass_ipa_chkp_early_produce_thunks): New.
20191 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20192 chkp_produce_thunks signature.
20193 (make_pass_ipa_chkp_early_produce_thunks): New.
20194 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20195 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20196 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20197
20198 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20199
20200 * cgraph.c (cgraph_node::dump): Dump profile flags.
20201
20202 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
20203
20204 PR target/64652
20205 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20206 reg appear first in the parallel.
20207
20208 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20209
20210 * ipa-reference.c (set_reference_optimization_summary,
20211 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20212 disabled.
20213 (ignore_module_statics): New static var.
20214 (propagate_bits): If ipa-reference is disabled, do not look into local
20215 properties.
20216 (analyze_function): Disable analysis when ipa_reference is disabled.
20217 (generate_summary): Do not dump when reference is disabled;
20218 collect vars accessed from functions with ipa-reference disabled.
20219 (get_read_write_all_from_node): When ipa-reference is disabled, use the
20220 node flags.
20221 (gate): Enable for LTO.
20222 (ignore_edge_p): New function.
20223 (propagate): Skip functions w/o ipa-reference analysis.
20224 * optc-save-gen.awk: Handle optimize_debug correctly.
20225 * opth-gen.awk: Likewise.
20226 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20227 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20228 fira-share-save-slots, fira-share-spill-slots,
20229 fmodulo-sched-allow-regmoves, fpartial-inlining,
20230 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20231 ftracer, ftree-parallelize-loops, fassociative-math,
20232 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20233 Optimization
20234 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20235 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20236 Optimization.
20237 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20238 Fix for IPA.
20239
20240 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20241
20242 PR ipa/64378
20243 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20244 flag correctly.
20245 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20246
20247 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
20248
20249 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20250 Remove duplicate option listings.
20251
20252 2015-01-18 Felix Yang <felix.yang@huawei.com>
20253
20254 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20255 (autofdo_source_profile::get_callsite_total_count,
20256 function_instance::get_function_instance_by_decl,
20257 string_table::get_index, string_table::get_index_by_decl,
20258 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20259 Fix comment typos. Reformatting and minor code rearrangement.
20260
20261 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20262
20263 * config/rs6000/rs6000.md (probe_stack): Delete.
20264 (probe_stack_address): New.
20265
20266 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20267
20268 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20269 to test for 32-bit ABIs, not !TARGET_POWERPC64.
20270
20271 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20272
20273 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20274 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
20275 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
20276 snafu.
20277 (rs6000_libcall_value): Use the new function.
20278
20279 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
20280
20281 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20282
20283 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
20284
20285 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20286 implement a more precise life analysis for it during backward scan.
20287
20288 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
20289
20290 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20291
20292 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
20293
20294 PR rtl-optimization/52773
20295 * calls.c (emit_library_call_value): When pushing arguments use
20296 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20297 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
20298 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20299
20300 2015-01-17 Jeff Law <law@redhat.com>
20301
20302 PR rtl-optimization/32790
20303 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20304 not ZERO_EXTEND in SET_DESTs.
20305
20306 2015-01-17 Alan Modra <amodra@gmail.com>
20307
20308 * cprop.c (do_local_cprop): Revert last change.
20309
20310 2015-01-16 DJ Delorie <dj@redhat.com>
20311 Nick Clifton <nickc@redhat.com>
20312
20313 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20314 (addhi3_real): Likewise. Fix [HL+0] syntax.
20315 (subqi3_real): Likewise.
20316 (subhi3_real): Likewise.
20317 (cbranchqi4_real): Likewise. Allow saddr,#imm.
20318 (cbranchhi4_real): Likewise.
20319 (cbranchhi4_real_inverted): Likewise.
20320 (cbranchsi4_real_lt): Likewise.
20321 (cbranchsi4_real_ge): Likewise.
20322 (cbranchsi4_real_ge): Likewise.
20323 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20324 (sub<mode>3_virt): Likewise.
20325 (cbranchqi4_virt): Likewise.
20326 (cbranchhi4_virt): Likewise.
20327 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20328 always use '[reg+imm]' even when imm is zero.
20329 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20330 (rl78_general_operand): New.
20331 (rl78_nonimmediate_operand): New.
20332 (rl78_nonfar_operand): Use them.
20333 (rl78_nonfar_nonimm_operand): Likewise.
20334 (rl78_stack_based_mem): Fix.
20335 * config/rl78/constraints.md (Ibqi): New.
20336 (IBqi): New.
20337 (Wsa): New.
20338 (Wsf): New.
20339 (Cs1): Fix.
20340 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20341 (iorqi3): Likewise.
20342 (xorqi3): Likewise.
20343 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20344
20345 * config/rl78/constrains (Qs8): New constraint.
20346 * config/rl78/rl78.c (rl78_flags_already_set): New function.
20347 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20348 * config/rl78/rl78-real.md (update_Z): New attribute.
20349 Update patterns to set it.
20350 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20351 shorter compare and branch sequence can be used.
20352 (cbranchhi4_real): Likewise.
20353 (cbranchhi4_real_inverted): Likewise.
20354
20355 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20356 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20357 address space.
20358 * config/rl78/rl78.c (rl78_get_name_encoding): New.
20359 (rl78_option_override): Allow -mes0 only if C.
20360 (characterize_address): Support subregs of symbol_refs.
20361 (rl78_addr_space_address_mode): Move. Add __near.
20362 (rl78_far_p): Likewise.
20363 (rl78_addr_space_pointer_mode): Likewise.
20364 (rl78_as_legitimate_address): Likewise.
20365 (rl78_addr_space_subset_p): Likewise.
20366 (rl78_addr_space_convert): Likewise.
20367 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20368 symbols with -mes0.
20369 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
20370 addressing.
20371 (rl78_alloc_physical_registers_op1): Change logic to prefer
20372 symbol[BC] addressing.
20373 (frodata_section): New.
20374 (rl78_asm_init_sections): Initialize it.
20375 (rl78_select_section): Put __far readonly symbols in .frodata.
20376 (rl78_make_type_far): New.
20377 (rl78_insert_attributes): Force all readonly symbols to be
20378 __far when -mes0.
20379 (rl78_asm_out_integer): New.
20380 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20381 * config/rl78/rl78.opt (-mes0): New.
20382
20383 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20384 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20385 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20386 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20387 (rl78_saddr_p): New.
20388 (rl78_output_aligned_common): New.
20389 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20390 (rl78_handle_saddr_attribute): New.
20391 (rl78_handle_naked_attribute): New.
20392 (rl78_attribute_table): Add saddr.
20393 (rl78_print_operand_1): Don't print '!' on saddr operands.
20394 (rl78_print_operand_1): Strip encodings.
20395 (rl78_sfr_p): New.
20396 (rl78_strip_name_encoding): New.
20397 (rl78_attrlist_to_encoding): New.
20398 (rl78_encode_section_info): New.
20399 (rl78_asm_init_sections): New.
20400 (rl78_select_section): New.
20401 (rl78_output_labelref): New.
20402 (rl78_output_aligned_common): New.
20403 (rl78_asm_out_integer): New.
20404 (rl78_asm_ctor_dtor): New.
20405 (rl78_asm_constructor): New.
20406 (rl78_asm_destructor): New.
20407
20408 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20409 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20410 (transcode_memory_rtx): Update.
20411 (rl78_expand_epilogue): Use A_REG instead of 0.
20412
20413 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20414
20415 * config/arm/arm-protos.h (struct tune_params): New field
20416 sched_autopref_queue_depth.
20417 * config/arm/arm.c (sched-int.h): Include header.
20418 (arm_first_cycle_multipass_dfa_lookahead_guard,)
20419 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20420 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20421 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20422 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20423 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20424 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20425 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20426 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
20427 * config/arm/t-arm (arm.o): Update.
20428 * haifa-sched.c (update_insn_after_change): Update.
20429 (rank_for_schedule): Use auto-prefetcher model, if requested.
20430 (autopref_multipass_init): New static function.
20431 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20432 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20433 variable for debug dumps.
20434 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20435 (autopref_multipass_dfa_lookahead_guard): New global function that
20436 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20437 (init_h_i_d): Update.
20438 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20439 * sched-int.h (enum autopref_multipass_data_status): New const enum.
20440 (autopref_multipass_data_): Structure for auto-prefetcher data.
20441 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20442 (struct _haifa_insn_data:autopref_multipass_data): New field.
20443 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20444 (autopref_multipass_dfa_lookahead_guard): Declare.
20445
20446 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20447
20448 * rtlanal.c (get_base_term): Handle SCRATCH.
20449
20450 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20451
20452 * config/aarch64/aarch64.c
20453 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20454 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20455 * config/arm/arm.c
20456 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20457 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20458
20459 2015-01-17 Alan Modra <amodra@gmail.com>
20460
20461 * cprop.c (do_local_cprop): Disallow replacement of fixed
20462 hard registers.
20463
20464 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20465
20466 PR target/62066
20467 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20468 early return 0.
20469
20470 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20471
20472 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20473 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20474
20475 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20476
20477 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20478 * config/arm/thumb1.md: ... Here.
20479
20480 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20481
20482 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20483 TImode for TARGET_32BIT.
20484
20485 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20486
20487 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20488 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20489 as ...
20490 (rs6000_abi_word_mode): New function.
20491
20492 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20493
20494 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20495 instead of UNITS_PER_WORD to describe the size of stack slots.
20496
20497 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20498
20499 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20500 as rs6000_promote_function_mode. Move comment to there.
20501 (rs6000_promote_function_mode): New function.
20502
20503 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20504
20505 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20506 -mpowerpc64 is active.
20507
20508 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20509
20510 PR middle-end/64353
20511 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20512 virtuals on start.
20513
20514 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20515
20516 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20517 introduced in revision 219724.
20518
20519 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20520 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20521
20522 PR target/64263
20523 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20524 destination is not a GP reg.
20525 (*movdi_aarch64): Likewise.
20526
20527 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
20528
20529 PR target/64623
20530 * config/rs6000/default64.h: Revert ISA change.
20531
20532 2015-01-16 Richard Biener <rguenther@suse.de>
20533
20534 PR middle-end/64614
20535 * tree-ssa-uninit.c: Include tree-cfg.h.
20536 (MAX_SWITCH_CASES): New define.
20537 (convert_control_dep_chain_into_preds): Handle switch statements.
20538 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20539 (normalize_one_pred_1): Do not split bit-manipulations.
20540 Record (x & CST).
20541
20542 2015-01-16 Richard Biener <rguenther@suse.de>
20543
20544 PR tree-optimization/64568
20545 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20546 complex load rewriting for TARGET_MEM_REFs.
20547
20548 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
20549
20550 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20551
20552 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
20553
20554 PR target/64149
20555 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20556 variable.
20557 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20558 (aarch64_lra_p): Remove.
20559
20560 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20561
20562 PR target/64363
20563 * ipa-chkp.h (chkp_instrumentable_p): New.
20564 * ipa-chkp.c: Include tree-inline.h.
20565 (chkp_instrumentable_p): New.
20566 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20567 Fix processing of not instrumentable functions.
20568 (chkp_versioning): Use chkp_instrumentable_p. Warn about
20569 not instrumentable functions.
20570 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20571 chkp_instrumentable_p.
20572 * tree-inline.h (copy_forbidden): New.
20573 * tree-inline.c (copy_forbidden): Not static anymore.
20574
20575 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20576
20577 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20578 ptr1, ptr2 unused.
20579
20580 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20581
20582 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20583 type OP_OUT to OP_INOUT.
20584
20585 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20586
20587 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20588 (high x) y) to y if x and y have the same base.
20589
20590 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20591
20592 * config/arm/cortex-a57.md: New.
20593 * config/aarch64/aarch64.md: Include it.
20594 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20595 * config/aarch64/aarch64-tune.md: Regenerate.
20596
20597 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
20598
20599 PR target/64015
20600 * ccmp.c (expand_ccmp_next): New function.
20601 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20602 and compare insn sequence.
20603 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20604 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20605 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20606 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20607 (*ccmp_ior): Changed to ccmp_ior<mode>.
20608 (cmp<mode>): New pattern.
20609 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20610 parameters.
20611 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20612
20613 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
20614
20615 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20616 _mm256_bsrli_epi128): New.
20617 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20618
20619 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20620
20621 * expmed.c (store_bit_field_using_insv): Improve warning message.
20622 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20623
20624 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20625
20626 PR rtl-optimization/64011
20627 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20628 there is partial overflow.
20629
20630 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20631
20632 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20633 prototype.
20634 (nds32_expand_epilogue_v3pop): Likewise.
20635 * config/nds32/nds32.md (sibcall): Define this for sibling call
20636 optimization.
20637 (sibcall_register): Likewise.
20638 (sibcall_immediate): Likewise.
20639 (sibcall_value): Likewise.
20640 (sibcall_value_register): Likewise.
20641 (sibcall_value_immediate): Likewise.
20642 (sibcall_epilogue): Likewise.
20643 (epilogue): Pass false to indicate this is not a sibcall epilogue.
20644 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20645 (nds32_expand_epilogue_v3pop): Likewise.
20646
20647 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20648
20649 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20650 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20651 (return_internal): New.
20652 (return): Define this named pattern.
20653 (simple_return): Define this named pattern.
20654 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20655 pattern instead of unspec_volatile_func_return.
20656 (nds32_expand_epilogue_v3pop): Likewise.
20657 (nds32_can_use_return_insn): New function.
20658
20659 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20660
20661 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20662 * config/nds32/nds32.md (pop25return): New.
20663 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20664 pop25return pattern.
20665
20666 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20667
20668 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20669 -mforbid-fp-as-gp, and -mex9 options.
20670
20671 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20672
20673 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20674 remove -mgp-direct option.
20675
20676 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20677
20678 * doc/invoke.texi (--param early-inlining-insns): Update default value.
20679 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20680
20681 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20682
20683 * ipa-inline.c (inline_small_functions): Work around hints
20684 cache issue.
20685
20686 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
20687
20688 PR target/59710
20689 * doc/invoke.texi (Option Summary): Document new Nios II
20690 -mgpopt= syntax.
20691 (Nios II Options): Likewise.
20692 * config/nios2/nios2.opt: Add -mgpopt= option support.
20693 Modify existing -mgpopt and -mno-gpopt options to be aliases.
20694 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20695 * config/nios2/nios2.c (nios2_option_override): Adjust
20696 -mgpopt defaulting.
20697 (nios2_in_small_data_p): Return true for explicit small data
20698 sections even with -G0.
20699 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20700 option choices.
20701
20702 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20703
20704 PR ipa/64612
20705 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20706 of comdat locals.
20707 (inline_call): Fix removal of aliases.
20708
20709 2015-01-15 Jakub Jelinek <jakub@redhat.com>
20710
20711 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
20712 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
20713 * opts.c (common_handle_option): Add -fsanitize=vptr.
20714 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
20715 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
20716 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
20717 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
20718 (ubsan_expand_vptr_ifn): New prototype.
20719 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
20720 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
20721 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
20722 expand_LOOP_VECTORIZED): Make argument nameless, remove
20723 ATTRIBUTE_UNUSED.
20724 (expand_UBSAN_VPTR): New function.
20725 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
20726 in fn spec.
20727 (UBSAN_VPTR): New internal function.
20728 * sanopt.c (tree_map_traits): Renamed to ...
20729 (sanopt_tree_map_traits): ... this.
20730 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
20731 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
20732 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
20733 (maybe_optimize_ubsan_vptr_ifn): New function.
20734 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
20735 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
20736 -fsanitize=vptr.
20737 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
20738 internal calls like pure functions for aliasing, even when they
20739 have other side-effects that prevent making them ECF_PURE.
20740 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
20741 (ubsan_expand_vptr_ifn): New function.
20742
20743 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
20744
20745 PR rtl-optimization/64110
20746 * stmt.c (parse_output_constraint): Process '^' and '$'.
20747 (parse_input_constraint): Ditto.
20748 * lra-constraints.c (process_alt_operands): Process the new
20749 constraints.
20750 * ira-costs.c (record_reg_classes): Process the new constraint
20751 '^'.
20752 * genoutput.c (indep_constraints): Add '^' and '$'.
20753 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
20754 * doc/md.texi: Add description of the new constraints.
20755
20756 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
20757 Bernd Schmidt <bernds@codesourcery.com>
20758 Cesar Philippidis <cesar@codesourcery.com>
20759 James Norris <jnorris@codesourcery.com>
20760 Tom de Vries <tom@codesourcery.com>
20761 Ilmir Usmanov <i.usmanov@samsung.com>
20762 Dmitry Bocharnikov <dmitry.b@samsung.com>
20763 Evgeny Gavrin <e.gavrin@samsung.com>
20764 Jakub Jelinek <jakub@redhat.com>
20765
20766 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
20767 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20768 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20769 New function types.
20770 * builtins.c: Include "gomp-constants.h".
20771 (expand_builtin_acc_on_device): New function.
20772 (expand_builtin, is_inexpensive_builtin): Handle
20773 BUILT_IN_ACC_ON_DEVICE.
20774 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
20775 New macros.
20776 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
20777 flag_openmp.
20778 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
20779 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
20780 i386/intelmic-offload.h.
20781 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
20782 to libgomp and its dependencies.
20783 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
20784 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20785 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20786 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20787 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20788 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20789 * doc/generic.texi: Update for OpenACC changes.
20790 * doc/gimple.texi: Likewise.
20791 * doc/invoke.texi: Likewise.
20792 * doc/sourcebuild.texi: Likewise.
20793 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
20794 GF_OMP_FOR_KIND_OACC_LOOP.
20795 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
20796 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
20797 GF_OMP_TARGET_KIND_OACC_UPDATE,
20798 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
20799 Dump more data.
20800 * gimple.c: Update comments for OpenACC changes.
20801 * gimple.def: Likewise.
20802 * gimple.h: Likewise.
20803 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
20804 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20805 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
20806 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
20807 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
20808 appropriate place.
20809 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
20810 * gimplify.c: Include "gomp-constants.h".
20811 Update comments for OpenACC changes.
20812 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
20813 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
20814 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
20815 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
20816 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
20817 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
20818 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
20819 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20820 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20821 OMP_CLAUSE_SEQ.
20822 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
20823 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
20824 OMP_CLAUSE_SET_MAP_KIND.
20825 (gimplify_oacc_cache): New function.
20826 (gimplify_omp_for): Handle OACC_LOOP.
20827 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
20828 OACC_DATA.
20829 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
20830 OACC_EXIT_DATA, OACC_UPDATE.
20831 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
20832 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
20833 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
20834 (gimplify_body): Consider flag_openacc next to flag_openmp.
20835 * lto-streamer-out.c: Include "gomp-constants.h".
20836 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
20837 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
20838 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
20839 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
20840 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
20841 (BUILT_IN_ACC_ON_DEVICE): New builtins.
20842 * omp-low.c: Include "gomp-constants.h".
20843 Update comments for OpenACC changes.
20844 (struct omp_context): Add reduction_map, gwv_below, gwv_this
20845 members.
20846 (extract_omp_for_data, use_pointer_for_field, install_var_field)
20847 (new_omp_context, delete_omp_context, scan_sharing_clauses)
20848 (create_omp_child_function, scan_omp_for, scan_omp_target)
20849 (check_omp_nesting_restrictions, lower_reduction_clauses)
20850 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
20851 Update for OpenACC changes.
20852 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
20853 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
20854 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
20855 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20856 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
20857 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
20858 OMP_CLAUSE_MAP_*.
20859 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
20860 Handle GF_OMP_FOR_KIND_OACC_LOOP.
20861 (expand_omp_target, lower_omp_target): Handle
20862 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20863 GF_OMP_TARGET_KIND_OACC_UPDATE,
20864 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
20865 GF_OMP_TARGET_KIND_OACC_DATA.
20866 (pass_expand_omp::execute, execute_lower_omp)
20867 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
20868 flag_openmp.
20869 (offload_symbol_decl): New variable.
20870 (oacc_get_reduction_array_id, oacc_max_threads)
20871 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
20872 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
20873 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
20874 (oacc_gimple_assign, oacc_initialize_reduction_data)
20875 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
20876 functions.
20877 (is_targetreg_ctx): Remove function.
20878 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
20879 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
20880 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
20881 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
20882 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
20883 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
20884 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
20885 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
20886 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
20887 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
20888 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
20889 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
20890 * tree-core.h: Update comments for OpenACC changes.
20891 (enum omp_clause_map_kind): Remove.
20892 (struct tree_omp_clause): Change type of map_kind member from enum
20893 omp_clause_map_kind to unsigned char.
20894 * tree-inline.c: Update comments for OpenACC changes.
20895 * tree-nested.c: Likewise. Include "gomp-constants.h".
20896 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
20897 (convert_tramp_reference_stmt, convert_gimple_call): Update for
20898 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
20899 OMP_CLAUSE_SET_MAP_KIND.
20900 * tree-pretty-print.c: Include "gomp-constants.h".
20901 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
20902 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
20903 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
20904 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
20905 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
20906 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
20907 instead of OMP_CLAUSE_MAP_*.
20908 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
20909 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
20910 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
20911 * tree-streamer-in.c: Include "gomp-constants.h".
20912 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
20913 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
20914 * tree-streamer-out.c: Include "gomp-constants.h".
20915 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
20916 OMP_CLAUSE_MAP_*.
20917 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
20918 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
20919 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
20920 * tree.c (omp_clause_num_ops): Update accordingly.
20921 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
20922 Likewise.
20923 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
20924 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
20925 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
20926 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
20927 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
20928 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
20929 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
20930 (OMP_CLAUSE_SET_MAP_KIND): New macro.
20931 * varpool.c (varpool_node::get_create): Consider flag_openacc next
20932 to flag_openmp.
20933 * config/i386/intelmic-offload.h: New file.
20934 * config/nvptx/offload.h: Likewise.
20935
20936 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20937
20938 * explow.h: Remove duplicate contents.
20939 * dojump.h: Likewise.
20940
20941 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
20942
20943 * arm.c (arm_xgene_tune): Add default initializer for instruction
20944 fusion.
20945
20946 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20947
20948 PR ipa/64068
20949 PR ipa/64559
20950 * ipa.c (symbol_table::remove_unreachable_nodes):
20951 Do not put abstract origins into boundary.
20952
20953 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
20954
20955 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
20956 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
20957
20958 2015-01-15 Steve Ellcey <sellcey@mips.com>
20959
20960 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
20961 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
20962 builtins.def, and chkp-builtins.def.
20963
20964 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
20965
20966 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
20967 ISA 2.7 (POWER8).
20968
20969 2015-01-15 Richard Biener <rguenther@suse.de>
20970
20971 PR tree-optimization/61743
20972 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
20973 information on PHIs for some simple cases.
20974
20975 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20976
20977 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
20978 Include xgene1.md.
20979 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
20980 * config/arm/arm-cores.def (xgene1): New entry.
20981 * config/arm/arm-tables.opt: Regenerate.
20982 * config/arm/arm-tune.md: Regenerate.
20983 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
20984
20985 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
20986
20987 * tree-if-conv.c: Include hash-map.h.
20988 (aggressive_if_conv): New variable.
20989 (fold_build_cond_expr): Add simplification of non-zero condition.
20990 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
20991 destination block is not always executed.
20992 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
20993 than two predecessors if AGGRESSIVE_IF_CONV is true.
20994 (if_convertible_stmt_p): Fix commentary.
20995 (all_preds_critical_p): New function.
20996 (has_pred_critical_p): New function.
20997 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
20998 BB can have more than two predecessors and all incoming edges can be
20999 critical.
21000 (predicate_bbs): Skip predication for loop exit block, use build2_loc
21001 to compute predicate for true edge.
21002 (find_phi_replacement_condition): Delete this function.
21003 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21004 Allow interchange PHI arguments if EXTENDED is false.
21005 Change check that block containing reduction statement candidate
21006 is predecessor of phi-block since phi may have more than two arguments.
21007 (phi_args_hash_traits): New helper structure.
21008 (struct phi_args_hash_traits): New type.
21009 (phi_args_hash_traits::hash): New function.
21010 (phi_args_hash_traits::equal_keys): New function.
21011 (gen_phi_arg_condition): New function.
21012 (predicate_scalar_phi): Add handling of phi nodes with more than two
21013 arguments, delete COND and TRUE_BB arguments, insert body of
21014 find_phi_replacement_condition to predicate ordinary phi nodes.
21015 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21016 delete call of find_phi_replacement_condition and invoke
21017 predicate_scalar_phi with two arguments.
21018 (insert_gimplified_predicates): Add assert that non-predicated block
21019 don't have statements to insert.
21020 (ifcvt_split_critical_edges): New function.
21021 (ifcvt_split_def_stmt): Likewise.
21022 (ifcvt_walk_pattern_tree): Likewise.
21023 (stmt_is_root_of_bool_pattern): Likewise.
21024 (ifcvt_repair_bool_pattern): Likewise.
21025 (ifcvt_local_dce): Likewise.
21026 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21027 is copy of inner or outer loop force_vectorize field, invoke
21028 ifcvt_split_critical_edges, ifcvt_local_dce and
21029 ifcvt_repair_bool_pattern for aggressive if-conversion.
21030
21031 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
21032
21033 * config/aarch64/aarch64.md: Include xgene1.md.
21034 * config/aarch64/xgene1.md: New file.
21035
21036 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21037
21038 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21039 xgene1 (APM XGene-1) core definition.
21040 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21041 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21042 * doc/invoke.texi: Document -mcpu=xgene1.
21043
21044 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21045
21046 * dojump.h: New header file.
21047 * explow.h: Likewise.
21048 * expr.h: Remove includes.
21049 Move expmed.c prototypes to expmed.h.
21050 Move dojump.c prototypes to dojump.h.
21051 Move alias.c prototypes to alias.h.
21052 Move explow.c prototypes to explow.h.
21053 Move calls.c prototypes to calls.h.
21054 Move emit-rtl.c prototypes to emit-rtl.h.
21055 Move varasm.c prototypes to varasm.h.
21056 Move stmt.c prototypes to stmt.h.
21057 (saved_pending_stack_adjust): Move to dojump.h.
21058 (adjust_address): Move to explow.h.
21059 (adjust_address_nv): Move to emit-rtl.h.
21060 (adjust_bitfield_address): Likewise.
21061 (adjust_bitfield_address_size): Likewise.
21062 (adjust_bitfield_address_nv): Likewise.
21063 (adjust_automodify_address_nv): Likewise.
21064 * explow.c (expr_size): Move to expr.c.
21065 (int_expr_size): Likewise.
21066 (tree_expr_size): Likewise.
21067 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21068 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21069 * genemit.c (main): Generate includes statistics.h, real.h,
21070 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21071 stmt.h.
21072 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21073 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21074 explow.h, emit-rtl.h, stmt.h.
21075 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21076 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21077 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21078 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21079 emit-rtl.h, varasm.h, stmt.h.
21080 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21081 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21082 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21083 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21084 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21085 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21086 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21087 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21088 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21089 tm.h tree.h varasm.h vec.h wide-int.h.
21090 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21091 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21092 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21093 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21094 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21095 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21096 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21097 * loop-iv.c: Likewise.
21098 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21099 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21100 statistics.h stmt.h tree.h varasm.h wide-int.h.
21101 * lra-constraints.c: Likewise.
21102 * lra-eliminations.c: Likewise.
21103 * lra-lives.c: Likewise.
21104 * lra-remat.c: Likewise.
21105 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21106 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21107 statistics.h stmt.h tree.h varasm.h wide-int.h.
21108 * hw-doloop.c: Likewise.
21109 * ira-color.c: Likewise.
21110 * ira-emit.c: Likewise.
21111 * loop-doloop.c: Likewise.
21112 * loop-invariant.c: Likewise.
21113 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21114 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21115 statistics.h stmt.h tree.h varasm.h wide-int.h.
21116 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21117 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21118 statistics.h stmt.h tree.h varasm.h wide-int.h.
21119 * combine-stack-adj.c: Likewise.
21120 * cse.c: Likewise.
21121 * ddg.c: Likewise.
21122 * ifcvt.c: Likewise.
21123 * ira-costs.c: Likewise.
21124 * jump.c: Likewise.
21125 * lra-coalesce.c: Likewise.
21126 * lra-spills.c: Likewise.
21127 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21128 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21129 stmt.h varasm.h wide-int.h.
21130 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21131 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21132 varasm.h.
21133 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21134 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21135 statistics.h stmt.h varasm.h wide-int.h.
21136 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21137 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21138 varasm.h wide-int.h.
21139 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21140 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21141 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21142 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21143 statistics.h stmt.h.
21144 * config/tilepro/tilepro.c: Likewise.
21145 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21146 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21147 * config/pdp11/pdp11.c: Likewise.
21148 * config/xtensa/xtensa.c: Likewise.
21149 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21150 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21151 varasm.h.
21152 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21153 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21154 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21155 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21156 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21157 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21158 * rtl-chkp.c: Likewise.
21159 * tree-chkp-opt.c: Likewise.
21160 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21161 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21162 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21163 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21164 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21165 statistics.h stmt.h.
21166 * tree-vect-data-refs.c: Likewise.
21167 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21168 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21169 rtl.h statistics.h stmt.h varasm.h.
21170 * internal-fn.c: Likewise.
21171 * ipa-icf-gimple.c: Likewise.
21172 * lto-section-out.c: Likewise.
21173 * tree-data-ref.c: Likewise.
21174 * tree-nested.c: Likewise.
21175 * tree-outof-ssa.c: Likewise.
21176 * tree-predcom.c: Likewise.
21177 * tree-pretty-print.c: Likewise.
21178 * tree-scalar-evolution.c: Likewise.
21179 * tree-ssa-strlen.c: Likewise.
21180 * tree-vect-loop.c: Likewise.
21181 * tree-vect-patterns.c: Likewise.
21182 * tree-vect-slp.c: Likewise.
21183 * tree-vect-stmts.c: Likewise.
21184 * tsan.c: Likewise.
21185 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21186 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21187 stmt.h.
21188 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21189 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21190 statistics.h stmt.h varasm.h.
21191 * loop-unroll.c: Likewise.
21192 * ubsan.c: Likewise.
21193 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21194 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21195 stmt.h varasm.h.
21196 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21197 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21198 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21199 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21200 statistics.h stmt.h.
21201 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21202 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21203 statistics.h stmt.h varasm.h.
21204 * gimple-match-head.c: Likewise.
21205 * lto-cgraph.c: Likewise.
21206 * lto-section-in.c: Likewise.
21207 * lto-streamer-in.c: Likewise.
21208 * lto-streamer-out.c: Likewise.
21209 * tree-affine.c: Likewise.
21210 * tree-cfg.c: Likewise.
21211 * tree-cfgcleanup.c: Likewise.
21212 * tree-if-conv.c: Likewise.
21213 * tree-into-ssa.c: Likewise.
21214 * tree-ssa-alias.c: Likewise.
21215 * tree-ssa-copyrename.c: Likewise.
21216 * tree-ssa-dse.c: Likewise.
21217 * tree-ssa-forwprop.c: Likewise.
21218 * tree-ssa-live.c: Likewise.
21219 * tree-ssa-math-opts.c: Likewise.
21220 * tree-ssa-pre.c: Likewise.
21221 * tree-ssa-sccvn.c: Likewise.
21222 * tree-tailcall.c: Likewise.
21223 * tree-vect-generic.c: Likewise.
21224 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21225 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21226 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21227 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21228 * varasm.c: Likewise.
21229 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21230 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21231 varasm.h.
21232 * init-regs.c: Likewise.
21233 * ira.c: Likewise.
21234 * omp-low.c: Likewise.
21235 * stack-ptr-mod.c: Likewise.
21236 * tree-ssa-reassoc.c: Likewise.
21237 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21238 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21239 varasm.h.
21240 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21241 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21242 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21243 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21244 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21245 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21246 * tree-ssa-phiopt.c: Likewise.
21247 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21248 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21249 * config/fr30/fr30.c: Likewise.
21250 * config/frv/frv.c: Likewise.
21251 * expr.c: Likewise.
21252 * final.c: Likewise.
21253 * optabs.c: Likewise.
21254 * passes.c: Likewise.
21255 * simplify-rtx.c: Likewise.
21256 * stmt.c: Likewise.
21257 * toplev.c: Likewise.
21258 * var-tracking.c: Likewise.
21259 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21260 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21261 * lower-subreg.c: Likewise.
21262 * postreload-gcse.c: Likewise.
21263 * ree.c: Likewise.
21264 * reginfo.c: Likewise.
21265 * store-motion.c: Likewise.
21266 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21267 fixed-value.h hashtab.h real.h stmt.h varasm.h.
21268 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21269 fixed-value.h hashtab.h statistics.h stmt.h.
21270 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21271 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21272 * except.c: Likewise.
21273 * explow.c: Likewise.
21274 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21275 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21276 varasm.h.
21277 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21278 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21279 * tree-ssa-structalias.c: Likewise.
21280 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21281 fixed-value.h insn-config.h real.h statistics.h.
21282 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21283 fixed-value.h insn-config.h real.h statistics.h stmt.h.
21284 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21285 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21286 * cfgbuild.c: Likewise.
21287 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21288 fixed-value.h real.h rtl.h statistics.h stmt.h.
21289 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21290 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21291 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21292 fixed-value.h real.h statistics.h stmt.h.
21293 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21294 fixed-value.h real.h statistics.h stmt.h varasm.h.
21295 * cprop.c: Likewise.
21296 * modulo-sched.c: Likewise.
21297 * postreload.c: Likewise.
21298 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21299 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21300 statistics.h stmt.h varasm.h.
21301 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21302 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21303 rtl.h statistics.h stmt.h varasm.h.
21304 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21305 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21306 varasm.h.
21307 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21308 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21309 varasm.h.
21310 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21311 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21312 varasm.h.
21313 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21314 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21315 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21316 function.h real.h statistics.h stmt.h varasm.h.
21317 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21318 insn-config.h real.h statistics.h stmt.h.
21319 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21320 statistics.h stmt.h.
21321 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21322 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21323 statistics.h stmt.h varasm.h.
21324 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21325 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21326 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21327 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21328 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21329 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21330 statistics.h stmt.h varasm.h.
21331 * ipa-polymorphic-call.c: Likewise.
21332 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21333 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21334 statistics.h stmt.h.
21335 * config/c6x/c6x.c: Likewise.
21336 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21337 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21338 statistics.h stmt.h varasm.h.
21339 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21340 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21341 stmt.h varasm.h.
21342 * ipa-split.c: Likewise.
21343 * tree-eh.c: Likewise.
21344 * tree-ssa-dce.c: Likewise.
21345 * tree-ssa-loop-niter.c: Likewise.
21346 * tree-vrp.c: Likewise.
21347 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21348 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21349 stmt.h.
21350 * config/nds32/nds32-fp-as-gp.c: Likewise.
21351 * config/nds32/nds32-intrinsic.c: Likewise.
21352 * config/nds32/nds32-isr.c: Likewise.
21353 * config/nds32/nds32-md-auxiliary.c: Likewise.
21354 * config/nds32/nds32-memory-manipulation.c: Likewise.
21355 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21356 * config/nds32/nds32-predicates.c: Likewise.
21357 * config/nds32/nds32.c: Likewise.
21358 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21359 fixed-value.h hashtab.h real.h statistics.h.
21360 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21361 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21362 * config/arm/arm.c: Likewise.
21363 * config/avr/avr.c: Likewise.
21364 * config/bfin/bfin.c: Likewise.
21365 * config/h8300/h8300.c: Likewise.
21366 * config/i386/i386.c: Likewise.
21367 * config/ia64/ia64.c: Likewise.
21368 * config/iq2000/iq2000.c: Likewise.
21369 * config/m32c/m32c.c: Likewise.
21370 * config/m32r/m32r.c: Likewise.
21371 * config/m68k/m68k.c: Likewise.
21372 * config/mcore/mcore.c: Likewise.
21373 * config/mep/mep.c: Likewise.
21374 * config/mips/mips.c: Likewise.
21375 * config/mn10300/mn10300.c: Likewise.
21376 * config/moxie/moxie.c: Likewise.
21377 * config/pa/pa.c: Likewise.
21378 * config/rl78/rl78.c: Likewise.
21379 * config/rx/rx.c: Likewise.
21380 * config/s390/s390.c: Likewise.
21381 * config/sh/sh.c: Likewise.
21382 * config/sparc/sparc.c: Likewise.
21383 * config/spu/spu.c: Likewise.
21384 * config/stormy16/stormy16.c: Likewise.
21385 * config/v850/v850.c: Likewise.
21386 * config/vax/vax.c: Likewise.
21387 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21388 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21389 * config/msp430/msp430.c: Likewise.
21390 * predict.c: Likewise.
21391 * value-prof.c: Likewise.
21392 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21393 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21394 * config/microblaze/microblaze.c: Likewise.
21395 * config/nios2/nios2.c: Likewise.
21396 * config/rs6000/rs6000.c: Likewise.
21397 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21398 insn-config.h real.h rtl.h statistics.h stmt.h.
21399 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21400 insn-config.h real.h statistics.h stmt.h.
21401 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21402 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21403 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21404 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21405 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21406 fixed-value.h real.h statistics.h stmt.h.
21407 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21408 fixed-value.h statistics.h stmt.h.
21409 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21410 stmt.h.
21411
21412 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21413
21414 * gengtype.c (create_user_defined_type): Workaround
21415 -Wmaybe-uninitialized false positives.
21416 * cse.c (fold_rtx): Likewise.
21417 * loop-invariant.c (gain_for_invariant): Likewise.
21418
21419 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
21420
21421 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21422 set the memory attributes in all cases but clear MEM_EXPR if need be.
21423
21424 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21425
21426 PR tree-optimization/64434
21427 * cfgexpand.c (reorder_operands): New function.
21428 (expand_gimple_basic_block): Insert call of reorder_operands if
21429 optimized is true.
21430
21431 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
21432
21433 * config/mips/micromips.md (*swp): Remove explicit parallel.
21434 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21435 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21436 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21437 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21438 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21439 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21440 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21441 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21442 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21443 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21444 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21445 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21446 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21447 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21448 (mips_wrdsp): Likewise.
21449 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21450 parallel.
21451 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21452 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21453 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21454 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21455 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21456 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21457 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21458 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21459 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21460
21461 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21462
21463 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21464 (mips_print_operand): Support 'y' to print exact log2 in decimal
21465 of a const_int.
21466 * config/mips/mips.h (ISA_HAS_LSA): New define.
21467 (ISA_HAS_DLSA): Likewise.
21468 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21469 * config/mips/predicates.md (const_immlsa_operand): New predicate.
21470
21471 2015-01-15 Martin Liska <mliska@suse.cz>
21472
21473 PR target/64377
21474 * optc-save-gen.awk: Add support for array types.
21475
21476 2015-01-15 Richard Biener <rguenther@suse.de>
21477
21478 PR middle-end/64365
21479 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21480 for MEM_REF access functions with the same base can never partially
21481 overlap.
21482
21483 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
21484
21485 * common.opt: New option -fstack-protector-explicit.
21486 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21487 (stack_protect_decl_phase): Handle stack_protect attribute for
21488 explicit stack protection requests.
21489 (expand_used_vars): Similarly.
21490 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21491 * doc/extend.texi: Add documentation for "stack_protect" attribute.
21492 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21493
21494 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
21495
21496 PR target/53988
21497 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21498 reg-reg copies.
21499 (sh_extending_set_of_reg): New struct.
21500 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21501 sh_remove_reg_dead_or_unused_notes): New Declarations.
21502 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21503 sh_find_extending_set_of_reg, sh_split_tst_subregs,
21504 sh_extending_set_of_reg::use_as_extended_reg): New functions.
21505 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21506 convert to insn_and_split and use new function sh_split_tst_subregs.
21507
21508 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
21509
21510 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21511 option.
21512 (Optimization Options): Move -fuse-ld documentation to...
21513 (Link Options): ...here.
21514
21515 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21516
21517 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21518 offsets.
21519 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21520 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21521 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21522 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21523 instead of ZR for the memory operand of LL/SC.
21524 (compare_and_swap_12, sync_add<mode>): Likewise.
21525 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21526 (sync_new_<optab>_12, sync_nand_12): Likewise.
21527 (sync_old_nand_12, sync_new_nand_12): Likewise.
21528 (sync_sub<mode>, sync_old_add<mode>): Likewise.
21529 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21530 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21531 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21532 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21533 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21534 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21535 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21536 * doc/md.texi (ZC): Update description.
21537
21538 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21539
21540 * builtins.c (expand_builtin_atomic_exchange): Remove error when
21541 memory model is CONSUME.
21542 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21543 expand_builtin_atomic_store): Change invalid memory model errors to
21544 warnings.
21545 (expand_builtin_atomic_clear): Change invalid model errors to warnings
21546 and issue warning for CONSUME.
21547
21548 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
21549
21550 * lto-cgraph: Update function comments for
21551 lto_symtab_encoder_encode_*.
21552
21553 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21554
21555 * Makefile.in (site.exp): Do not set ENABLE_LTO.
21556
21557 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21558
21559 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21560 * lto-cgraph.c (select_what_to_stream): Remove argument, use
21561 lto_stream_offload_p instead.
21562 * lto-streamer.h (select_what_to_stream): Remove argument.
21563 * passes.c (ipa_write_summaries): Likewise.
21564 * tree-pass.h (ipa_write_summaries): Likewise.
21565
21566 2015-01-14 Richard Biener <rguenther@suse.de>
21567
21568 PR tree-optimization/59354
21569 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21570 groups larger than the slp group size as having gaps.
21571
21572 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21573
21574 PR middle-end/59448
21575 * builtins.c (get_memmodel): Promote consume to acquire always.
21576
21577 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21578
21579 PR target/64386
21580 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21581 V32HImode.
21582
21583 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21584
21585 PR target/64393
21586 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21587 Enable AVX512BW.
21588 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21589 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21590 AVX512VBMI, as it implies AVX512BW.
21591
21592 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21593
21594 PR target/64387
21595 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21596 (vec_unpacks_hi_v16sf): Ditto.
21597
21598 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21599
21600 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21601 is not available.
21602
21603 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21604
21605 * doc/invoke.texi (mapcs): Mention deprecation.
21606 (mapcs-frame): Likewise.
21607
21608 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
21609
21610 PR target/64453
21611 * config/arm/arm.c (callee_saved_reg_p): Define.
21612 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21613 register is callee saved instead of !call_used_regs[reg].
21614 (thumb1_compute_save_reg_mask): Likewise.
21615
21616 2015-01-14 Hale Wang <hale.wang@arm.com>
21617
21618 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21619 Cortex-M7.
21620
21621 2015-01-14 Richard Biener <rguenther@suse.de>
21622
21623 PR lto/64415
21624 * tree-inline.c (insert_debug_decl_map): Check destination
21625 function MAY_HAVE_DEBUG_STMTS.
21626 (insert_init_debug_bind): Likewise.
21627 (insert_init_stmt): Remove redundant check.
21628 (remap_gimple_stmt): Drop debug stmts if the destination
21629 function has var-tracking assignments disabled.
21630
21631 2015-01-14 Martin Liska <mliska@suse.cz>
21632
21633 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21634 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21635
21636 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21637
21638 PR target/64460
21639 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21640 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21641
21642 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21643
21644 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21645 level from an ARCH; do not inject the default.
21646 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21647 MIPS_ISA_LEVEL_SPEC.
21648 (MIPS_ISA_NAN2008_SPEC): Update comment.
21649 (BASE_DRIVER_SELF_SPECS): Likewise.
21650 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21651 MIPS_DEFAULT_ISA_LEVEL_SPEC.
21652 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21653 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21654 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21655
21656 2015-01-14 Richard Biener <rguenther@suse.de>
21657
21658 PR tree-optimization/64493
21659 PR tree-optimization/64495
21660 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21661 assign the proper vectorized PHI to the inner loop exit PHIs.
21662
21663 2015-01-14 Joey Ye <joey.ye@arm.com>
21664
21665 * config/arm/arm.c (arm_compute_save_reg_mask):
21666 Do not save lr in case of tail call.
21667 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21668
21669 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
21670
21671 * tree-vrp.c (check_array_ref): Emit more warnings
21672 for warn_array_bounds >= 2.
21673 * common.opt: New option -Warray-bounds=.
21674 * doc/invoke.texi: Document -Warray-bounds=.
21675
21676 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
21677
21678 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21679 (mforbid-fp-as-gp): Remove.
21680 (mex9): Remove.
21681 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21682 (nds32_symbol_load_store_p): Remove.
21683 (nds32_fp_as_gp_check_available): Clean up implementation.
21684 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21685 cases.
21686 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21687 fp-as-gp and ex9 cases.
21688
21689 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21690
21691 * tree-profile.c (init_ic_make_global_vars): Drop workaround
21692 for bintuils bug 14342.
21693 (init_ic_make_global_vars): Likewise.
21694 (gimple_init_edge_profiler): Likewise.
21695 (gimple_gen_ic_func_profiler): Likewise.
21696
21697 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21698
21699 * ipa-inline.c (inline_small_functions): Swap the operands in
21700 enum.
21701
21702 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21703
21704 PR ipa/64481
21705 * ipa-inline-analysis.c (node_growth_cache): Remove.
21706 (initialize_growth_caches): Do not initialize it.
21707 (free_growth_caches): Do not free it.
21708 (do_estimate_growth): Rename to ...
21709 (estimate_growth): ... this one; drop growth cache code.
21710 (growth_likely_positive): Always go the heuristics way.
21711 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
21712 (reset_edge_caches): Do not reset node growth.
21713 (heap_edge_removal_hook): Do not maintain cache.
21714 (inline_small_functions): Likewise; strenghten sanity check.
21715 (ipa_inline): Do not maintain caches.
21716 * ipa-inline.h (node_growth_cache): Remove.
21717 (do_estimate_growth): Remove to ...
21718 (estimate_growth): this one; remove inline version.
21719 (reset_node_growth_cache): Remove.
21720
21721 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21722
21723 PR ipa/64565
21724 * ipa-inline.c (inline_small_functions): Update callee keys after
21725 resolving speculation
21726 (inline_small_functions): Always check monotonicity of the queue.
21727
21728 2015-01-13 Marek Polacek <polacek@redhat.com>
21729
21730 PR middle-end/64391
21731 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
21732
21733 2015-01-13 Jakub Jelinek <jakub@redhat.com>
21734
21735 PR rtl-optimization/64286
21736 * ree.c (combine_reaching_defs): Move part of comment earlier,
21737 remove !SCALAR_INT_MODE_P check.
21738 (add_removable_extension): Don't add vector mode
21739 extensions if all uses of the source register aren't the same
21740 vector extensions.
21741
21742 2015-01-13 Renlin Li <renlin.li@arm.com>
21743
21744 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
21745 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
21746
21747 2015-01-13 Martin Liska <mliska@suse.cz>
21748
21749 * ipa-icf.c (sem_function::equals_private): Call new functions
21750 cl_target_option_print_diff and cl_optimization_print_diff.
21751 * optc-save-gen.awk (cl_target_option_print_diff): New function.
21752 (cl_optimization_print_diff): Likewise.
21753 * opth-gen.awk: Likewise.
21754
21755 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
21756
21757 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
21758 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
21759 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
21760 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
21761 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
21762 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
21763
21764 2015-01-13 Andrew Pinski <apinski@cavium.com>
21765
21766 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
21767 instead of src mode.
21768
21769 2015-01-13 Richard Biener <rguenther@suse.de>
21770
21771 PR lto/64373
21772 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
21773 DECL_CONTEXT.
21774
21775 2015-01-13 Andrew Pinski <apinski@cavium.com>
21776
21777 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
21778 volatile mems.
21779 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
21780
21781 2015-01-13 Jakub Jelinek <jakub@redhat.com>
21782
21783 PR middle-end/63974
21784 * cfgexpand.c (expand_computed_goto): Don't call
21785 convert_memory_address here.
21786
21787 2015-01-13 Richard Biener <rguenther@suse.de>
21788
21789 PR tree-optimization/64406
21790 * tree-loop-distibution.c (pass_loop_distribution::execute):
21791 Reset the SCEV hashtable if we distributed anything.
21792
21793 2015-01-13 Richard Biener <rguenther@suse.de>
21794
21795 PR tree-optimization/64404
21796 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
21797 SLP types for CSEd loads.
21798
21799 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21800
21801 PR tree-optimization/64436
21802 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
21803 merge of two symbolic numbers for a bitwise OR to ...
21804 (perform_symbolic_merge): This. Also fix computation of the range and
21805 end of the symbolic number corresponding to the result of a bitwise OR.
21806
21807 2015-01-13 Richard Biener <rguenther@suse.de>
21808
21809 PR tree-optimization/64568
21810 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
21811 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
21812
21813 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21814
21815 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
21816 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
21817
21818 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21819
21820 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
21821 target-specific symbol_ref flag.
21822 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
21823 resides in rodata section.
21824 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
21825 (nds32_encode_section_info): New function.
21826
21827 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21828
21829 * config/nds32/nds32.md (call): Use pseudo instruction bal which
21830 clobbers TA_REGNUM if large code model is specified.
21831 (call_register): Likewise.
21832 (call_immediate): Likewise.
21833 (call_value): Likewise.
21834 (call_value_register): Likewise.
21835 (call_value_immediate): Likewise.
21836
21837 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21838
21839 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
21840 (TARGET_CMODEL_MEDIUM): New macro.
21841 (TARGET_CMODEL_LARGE): New macro.
21842 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
21843 code model setting in assembly code.
21844
21845 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21846
21847 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21848 Remove MASK_GP_DIRECT flag.
21849 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
21850 one of the multilib default options.
21851 * config/nds32/nds32.opt (mgp-direct): Remove.
21852 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
21853 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
21854
21855 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
21856
21857 * config/nds32/nds32.opt (mcmodel): Add new option.
21858 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
21859 to describe code model.
21860
21861 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
21862
21863 PR target/64479
21864 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
21865
21866 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
21867
21868 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
21869 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
21870 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
21871 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
21872 __builtin_sh_set_fpscr.
21873
21874 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
21875
21876 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
21877 after a funtion name just to indicate it is a function.
21878 ([-fsanitize-undefined-trap-on-error]): Likewise.
21879 ([-fdbg-cnt=]): Likewise.
21880 ([-mmemcpy]): Likewise.
21881 ([-mflush-func]): Likewise.
21882 ([-msynci]): Likewise.
21883
21884 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
21885
21886 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
21887 example.
21888
21889 2015-01-12 Jakub Jelinek <jakub@redhat.com>
21890
21891 PR tree-optimization/64563
21892 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
21893 instead of != VR_VARYING.
21894
21895 PR target/64513
21896 * config/i386/i386.c (ix86_expand_prologue): Add
21897 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
21898
21899 PR tree-optimization/64454
21900 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
21901 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
21902 for signed or [0, op1 - 1] for unsigned modulo.
21903 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
21904 even if op1 does not satisfy integer_pow2p.
21905
21906 PR other/64370
21907 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
21908
21909 2015-01-12 Jeff Law <law@redhat.com>
21910
21911 PR target/64461
21912 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
21913 (trunchiqi2, truncsihi2): Similarly.
21914
21915 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
21916 rather than calling F.
21917
21918 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
21919
21920 * tsan.c (instrument_expr): Use force_gimple_operand.
21921 Use may_be_nonaddressable_p instead of is_gimple_addressable.
21922
21923 2015-01-12 Richard Biener <rguenther@suse.de>
21924
21925 PR tree-optimization/64530
21926 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
21927 back dr1.
21928
21929 2015-01-12 Richard Biener <rguenther@suse.de>
21930
21931 PR middle-end/64357
21932 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
21933 latches properly.
21934
21935 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21936
21937 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
21938 Cortex-A17 tuning parameters.
21939 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
21940
21941 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21942
21943 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
21944 * config/arm/arm.c (arm_macro_fusion_p): New function.
21945 (arm_macro_fusion_pair_p): Likewise.
21946 (TARGET_SCHED_MACRO_FUSION_P): Define.
21947 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
21948 (ARM_FUSE_NOTHING): Likewise.
21949 (ARM_FUSE_MOVW_MOVT): Likewise.
21950 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
21951 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
21952 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
21953 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
21954 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
21955 arm_cortex_a5_tune): Specify fuseable_ops value.
21956
21957 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
21958
21959 PR bootstrap/64561
21960 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
21961 test for PIE with copy reloc.
21962 * configure: Regenerated.
21963
21964 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21965
21966 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
21967 in gen_rtx_REG.
21968 (arm_tls_descseq_addr): Likewise.
21969 (arm_gen_movmemqi): Likewise.
21970 (arm_expand_epilogue_apcs_frame): Likewise.
21971 (arm_expand_epilogue): Likewise.
21972 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
21973 in gen_rtx_REG.
21974
21975 2015-01-12 Martin Liska <mliska@suse.cz>
21976
21977 PR ipa/64550
21978 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
21979 volatility for correct operands.
21980
21981 2015-01-12 Martin Liska <mliska@suse.cz>
21982
21983 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
21984 indication that a function is not leaf.
21985 (sem_function::compare_polymorphic_p): Likewise.
21986
21987 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21988
21989 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
21990 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
21991 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
21992 fold-const.h, tree-check.h.
21993
21994 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
21995
21996 PR ipa/63967
21997 PR ipa/64425
21998 * ipa-inline.c (compute_uninlined_call_time,
21999 compute_inlined_call_time): Use counts for extra precision when
22000 needed possible.
22001 (big_speedup_p): Fix formating.
22002 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22003 (relative_time_benefit): Remove.
22004 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22005 merge guessed and read profile paths.
22006 (inline_small_functions): Count only !optimize_size functions into
22007 initial size; be more lax about sanity check when profile is used;
22008 be sure to update inlined function profile when profile is read.
22009
22010 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22011
22012 PR ipa/63470
22013 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22014 cost when edge becomes direct.
22015 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22016 is resolved or when introducing new speculation.
22017
22018 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
22019
22020 PR ipa/64551
22021 PR ipa/64552
22022 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22023 '||' to fix typo issue.
22024
22025 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22026 accept and return NULL.
22027
22028 2015-01-12 Martin Liska <mliska@suse.cz>
22029
22030 * cgraph.c (cgraph_edge::remove_callee): Move function to header
22031 file for being inlined.
22032 (cgraph_set_edge_callee): Delete.
22033 (cgraph_edge::redirect_callee): Move function to header file
22034 for being inlined.
22035 (cgraph_edge::make_direct): Use new function.
22036 (cgraph_edge::dump_edge_flags): New function created from
22037 static dump_edge_flags function.
22038 (cgraph_node::dump): Use new function.
22039 (cgraph_edge::verify_count_and_frequency): New function created
22040 from verify_edge_count_and_frequency.
22041 (cgraph_edge::verify_corresponds_to_fndecl): New function created
22042 from verify_edge_corresponds_to_fndecl.
22043 (verify_edge_corresponds_to_fndecl): Delete.
22044 (cgraph_node::verify_node): Use new function.
22045 * cgraph.h (cgraph_edge::set_callee): New function.
22046 (cgraph_edge::dump_edge_flags): Likewise.
22047 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22048
22049 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
22050
22051 * ipa-utils.c (estimate_function_body_sizes): Do not
22052 free node params when called late with early=true.
22053
22054 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
22055
22056 * doc/md.texi (Instruction Patterns): Rewrite text for
22057 clarity.
22058 (Example): Likewise.
22059
22060 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
22061
22062 * doc/invoke.texi (Option Summary): Break long lines.
22063 [(-fdiagnostics-color)]: Put long literal in @smallexample
22064 instead of inline.
22065 [(-fsanitize-recover)]: Likewise.
22066 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22067 [(-ffast-math)]: Likewise.
22068 [(--param max-inline-insns-recursive)]: Likewise.
22069 [(--param max-inline-recursive-depth)]: Likewise.
22070 [(-mno-text-section-literals)]: Likewise.
22071
22072 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
22073
22074 * doc/install.texi: Update for libgomp being renamed from "GNU
22075 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22076 Runtime Library".
22077 * doc/sourcebuild.texi: Likewise.
22078
22079 2015-01-10 Anthony Green <green@moxielogic.com>
22080
22081 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22082 mul.x availability for moxiebox configuration.
22083
22084 2015-01-09 Anthony Green <green@moxielogic.com>
22085
22086 * config/moxie/moxie.md: Tabify assembly output.
22087
22088 2015-01-09 Anthony Green <green@moxielogic.com>
22089
22090 * config/moxie/moxie.md (CC_REG): Correct register definition.
22091
22092 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
22093
22094 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22095 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
22096 of log files.
22097
22098 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22099
22100 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22101
22102 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
22103 Jakub Jelinek <jakub@redhat.com>
22104
22105 PR middle-end/64412
22106 * lto-streamer.h (lto_stream_offload_p): New declaration.
22107 * lto-streamer.c (lto_stream_offload_p): New variable.
22108 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22109 at the same time as section_name_prefix.
22110 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22111 if lto_stream_offload_p.
22112 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22113 stream TREE_TARGET_OPTION if lto_stream_offload_p.
22114 (write_ts_function_decl_tree_pointers): Don't
22115 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22116 * tree-streamer-in.c (unpack_value_fields): Don't stream
22117 TREE_TARGET_OPTION in if ACCEL_COMPILER.
22118 (lto_input_ts_function_decl_tree_pointers): Don't stream
22119 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22120 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22121 instead of section_name_prefix string comparisons.
22122
22123 2015-01-09 Jakub Jelinek <jakub@redhat.com>
22124
22125 PR rtl-optimization/64536
22126 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22127 tablejumps.
22128
22129 2015-01-09 Michael Collison <michael.collison@linaro.org>
22130
22131 PR tree-optimization/64322
22132 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22133 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22134
22135 2015-01-09 Tom de Vries <tom@codesourcery.com>
22136
22137 PR rtl-optimization/64539
22138 * regcprop.c (kill_clobbered_values): Factor out of ...
22139 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
22140 instead of note_stores with kill_clobbered_value.
22141
22142 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22143
22144 * ginclude/unwind-arm-common.h: Revert previous commit.
22145
22146 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22147
22148 * config.gcc (arm*-*-freebsd*): New configuration.
22149 * config/arm/freebsd.h: New file.
22150 * config.host: Add extra components for arm*-*-freebsd*.
22151 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22152 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22153
22154 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22155
22156 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22157 for -mcpu=e6500.
22158 * config/rs6000/t-rtems: Add e6500 multilibs.
22159
22160 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22161
22162 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22163 MPC8540.
22164
22165 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22166
22167 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22168 MULTILIB_EXCEPTIONS.
22169
22170 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22171
22172 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22173 MULTILIB_EXCEPTIONS.
22174
22175 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22176
22177 * config/arm/t-rtems-eabi: Rename to...
22178 * config/arm/t-rtems: ...this.
22179 * config/arm/rtems-eabi.h: Rename to...
22180 * config/arm/rtems.h: ...this.
22181 * config.gcc (arm*-*-rtems*): Reflect changes above.
22182
22183 2015-01-09 Richard Biener <rguenther@suse.de>
22184
22185 PR tree-optimization/64410
22186 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22187 on the LHS.
22188 (execute_update_addresses_taken): Deal with that.
22189 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22190 loads/stores for complex variables.
22191
22192 2015-01-09 Martin Liska <mliska@suse.cz>
22193
22194 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22195 name comparison.
22196 (func_checker::compare_memory_operand): New function.
22197 (func_checker::compare_operand): Split case to newly
22198 added functions.
22199 (func_checker::compare_cst_or_decl): New function.
22200 (func_checker::compare_gimple_call): Identify
22201 memory operands.
22202 (func_checker::compare_gimple_assign): Likewise.
22203 * ipa-icf-gimple.h: New function.
22204
22205 2015-01-09 Martin Liska <mliska@suse.cz>
22206
22207 PR ipa/64503
22208 * sreal.c (sreal::dump): Change unsigned format to signed for
22209 m_exp value.
22210 (sreal::to_double): Replace exp2 with scalbln.
22211
22212 2015-01-09 Martin Liska <mliska@suse.cz>
22213
22214 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22215 * ipa-icf.c (sem_function::equals_private): Add support for target and
22216 (sem_item_optimizer::merge_classes): Remove redundant function
22217 optimization flags comparison.
22218 * tree.h (target_opts_for_fn): New function.
22219
22220 2015-01-09 Tom de Vries <tom@codesourcery.com>
22221
22222 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22223
22224 2015-01-09 Kito Cheng <kito@0xlab.org>
22225
22226 PR rtl-optimization/64348
22227 * lra-constraints.c (split_reg): Fix caller-save store/restore
22228 instruction generation.
22229
22230 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
22231
22232 PR gcov-profile/61790
22233 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22234 long long. Fallback to int64_t if host doesn't have long long and
22235 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
22236
22237 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22238
22239 PR tree-optimization/63989
22240 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22241 from 1000 to 10000.
22242 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22243 (get_stridx): If we don't have a record for certain SSA_NAME,
22244 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22245 constant offset, call get_stridx_plus_constant.
22246 (get_stridx_plus_constant): New function.
22247 (zero_length_string): Don't use get_stridx here.
22248
22249 PR target/55023
22250 PR middle-end/64388
22251 * dse.c (struct insn_info): Mention frame_read set also
22252 before reload for tail calls on some targets.
22253 (scan_insn): Revert 2014-12-22 change. Set frame_read
22254 also before reload for tail calls if
22255 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
22256 instead of add_non_frame_wild_read for non-const/memset
22257 tail calls after reload.
22258
22259 2015-01-08 Jason Merrill <jason@redhat.com>
22260
22261 * ubsan.c (do_ubsan_in_current_function): New.
22262 (pass_ubsan::gate): Use it.
22263 * ubsan.h: Declare it.
22264 * convert.c (convert_to_integer): Use it.
22265
22266 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22267
22268 PR target/64338
22269 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22270 compare_code when it is unconditionally overwritten afterwards.
22271 Use ix86_reverse_condition instead of reverse_condition. Don't
22272 change code if *reverse_condition* returned UNKNOWN and don't
22273 swap ct/cf and negate diff in that case.
22274
22275 2015-01-08 Mike Stump <mikestump@comcast.net>
22276
22277 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22278 (pass_tsan_O0::gate): Likewise.
22279 * extend.texi (Function Attributes): Add no_sanitize_thread
22280 documentation.
22281
22282 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
22283
22284 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22285 for registering builtins.
22286 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22287 add -fopenmp to the argv_obstack used when invoking
22288 compile_for_target.
22289
22290 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22291 add "-m32" or "-m64" to argv_obstack.
22292 (generate_host_descr_file): Likewise, when invoking host_compiler.
22293 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22294 ld.
22295
22296 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22297
22298 * config/sh/sh-mem.cc: Use constant as second operand when emitting
22299 tstsi_t insns.
22300
22301 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22302
22303 PR target/55212
22304 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22305 constant load if constant operand fits into I08.
22306
22307 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22308
22309 PR sanitizer/64336
22310 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22311 and TREE_THIS_VOLATILE for MEM_REFs.
22312 (build5_stat): Fix up initialization of TREE_READONLY and
22313 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22314
22315 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22316
22317 PR target/64533
22318 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22319 of r for the second alternative of the destination operand.
22320
22321 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
22322
22323 PR target/36557
22324 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22325
22326 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22327
22328 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22329 keywords.
22330 ([-fivar-visibility], [-fvisibility]): Likewise.
22331
22332 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22333
22334 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22335 the file where @code, @command, etc is more appropriate.
22336
22337 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
22338
22339 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22340 of -mrecip= documentation.
22341
22342 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22343
22344 PR target/64505
22345 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22346 correct reload handler if -m32 -mpowerpc64 is used.
22347
22348 2015-01-06 Tom de Vries <tom@codesourcery.com>
22349
22350 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22351
22352 2015-01-08 Christian Bruel <christian.bruel@st.com>
22353
22354 PR target/64507
22355 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22356
22357 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22358
22359 PR tree-optimization/63259
22360 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22361 if optab exists for 16bit byteswap.
22362
22363 2015-01-06 Jakub Jelinek <jakub@redhat.com>
22364
22365 * opts.c (common_handle_option): Add support for
22366 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22367 * doc/invoke.texi: Document -fno-sanitize=all,
22368 -f{,no-}sanitize-recover=all. Document that
22369 -fsanitize=float-cast-overflow is not enabled
22370 by -fsanitize=undefined. Fix up documentation
22371 of -f{,no-}sanitize-recover.
22372
22373 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
22374
22375 * config.gcc: Add Visium support.
22376 * configure.ac: Likewise.
22377 * configure: Regenerate.
22378 * doc/extend.texi (interrupt attribute): Add Visium.
22379 * doc/invoke.texi: Document Visium options.
22380 * doc/install.texi: Document Visium target.
22381 * doc/md.texi: Document Visium constraints.
22382 * common/config/visium: New directory.
22383 * config/visium: Likewise.
22384
22385 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22386
22387 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22388 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22389
22390 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22391
22392 * combine.c (combine_validate_cost): Do not count the cost of a
22393 split I2 twice. Do not display it twice in the dump, either.
22394
22395 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22396
22397 Revert parts of r219199.
22398 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22399 <inttypes.h>.
22400 ([-Wtraditional]): Restore markup on <limits.h>.
22401
22402 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
22403
22404 PR c++/31397
22405 * doc/invoke.texi: Document -Wsuggest-override.
22406
22407 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
22408
22409 PR rtl-optimization/64287
22410 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22411 (process_options): Disable flag_ipa_ra if profiling.
22412
22413 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
22414
22415 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22416
22417 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
22418
22419 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22420 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22421 put under #if TARGET_LOOPS guard.
22422
22423 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
22424
22425 * config/i386/i386.c (output_387_binary_op): Use std::swap.
22426
22427 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
22428
22429 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22430 * rtl.h (refers_to_regno_p): Add overload.
22431 * cse.c: Use it.
22432 * bt-load.c: Likewise.
22433 * combine.c: Likewise.
22434 * df-scan.c: Likewise.
22435 * sched-deps.c: Likewise.
22436 * config/s390/s390.c: Likewise.
22437 * config/m32r/m32r.c: Likewise.
22438 * config/rs6000/spe.md: Likewise.
22439 * config/rs6000/rs6000.c: Likewise.
22440 * config/pa/pa.c: Likewise.
22441 * config/stormy16/stormy16.c: Likewise.
22442 * config/cris/cris.c: Likewise.
22443 * config/arc/arc.md: Likewise.
22444 * config/arc/arc.c: Likewise.
22445 * config/sh/sh.md: Likewise.
22446 * config/sh/sh.c: Likewise.
22447 * config/frv/frv.c: Likewise.
22448
22449 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22450
22451 PR sanitizer/64265
22452 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22453 call as cleanup of the whole body.
22454 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22455 * tsan.c (replace_func_exit): New function.
22456 (instrument_func_exit): Moved earlier.
22457 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22458 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22459 been found.
22460 (tsan_pass): Don't call instrument_func_exit.
22461 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22462 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22463 inlining.
22464
22465 PR sanitizer/64344
22466 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22467 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22468 it to libubsan handler instead of EXPR. Fold comparisons earlier,
22469 if the result is integer_zerop, return NULL_TREE.
22470 * convert.c (convert_to_integer): Pass expr as ARG.
22471
22472 PR tree-optimization/64465
22473 * tree-inline.c (redirect_all_calls): During inlining
22474 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22475 changed the stmt to a non-throwing call.
22476
22477 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22478
22479 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22480 etc markup throughout the file.
22481
22482 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22483
22484 Enable experimental TSAN support for Ada.
22485 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22486
22487 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22488
22489 PR tree-optimization/64494
22490 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22491 clear SSA_NAME_ANTI_RANGE_P flag.
22492
22493 2015-01-05 Marek Polacek <polacek@redhat.com>
22494
22495 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22496
22497 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22498
22499 Update copyright years.
22500
22501 * gcc.c (process_command): Update copyright notice dates.
22502 * gcov-dump.c: Ditto.
22503 * gcov.c: Ditto.
22504 * doc/cpp.texi: Bump @copying's copyright year.
22505 * doc/cppinternals.texi: Ditto.
22506 * doc/gcc.texi: Ditto.
22507 * doc/gccint.texi: Ditto.
22508 * doc/gcov.texi: Ditto.
22509 * doc/install.texi: Ditto.
22510 * doc/invoke.texi: Ditto.
22511
22512 * auto-profile.c, auto-profile.h: Fix up Copyright line.
22513
22514 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
22515
22516 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22517 verb tense, etc.
22518 ([-fvtable-verify], [-fvtv-debug]): Likewise.
22519 ([-Wabi]): Likewise.
22520 ([-fmessage-length]): Likewise.
22521 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22522 ([-Wno-discarded-qualifiers]): Likewise.
22523 ([-Wnodiscarded-array-qualifiers]): Likewise.
22524 ([-Wno-virtual-move-assign]): Likewise.
22525 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22526 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22527 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22528 ([-fsanitize-undefined-trap-on-error]): Likewise.
22529 ([-floop-interchange]): Likewise.
22530 ([-ftree-coalesce-inlined-vars]): Likewise.
22531 ([-fvect-cost-model]): Likewise.
22532 ([-flto]): Likewise.
22533 ([--param]): Likewise.
22534 (Spec Files): Likewise.
22535 ([-mstrict-align]): Likewise.
22536 ([-mfix-cortex-a53-835769]): Likewise.
22537 ([-march], [-mtune]): Likewise.
22538 ([-mpic-register]): Likewise.
22539 ([-munaligned-access]): Likewise.
22540 ([-msp8]): Likewise.
22541 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22542 (AVR Built-in Macros): Likewise.
22543 ([-mpreferred-stack-boundary]): Likewise.
22544 ([-mtune-crtl]): Likewise.
22545 ([-mashf]): Likewise.
22546 ([-mmcu=]): Likewise.
22547 ([-minrt]): Likewise.
22548 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22549 ([-mupper-regs]): Likewise.
22550 ([-matomic-model]): Likewise.
22551 ([-mdiv]): Likewise.
22552 ([-mzdcbranch]): Likewise.
22553 ([-mdisable-callt]): Likewise.
22554 ([-msoft-float]): Likewise.
22555 ([-m8byte-align]): Likewise.
22556 ([-fstack-reuse]): Likewise.
22557
22558 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22559
22560 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22561 Fix markup, light copy-editing.
22562 ([-fauto-profile]): Rewrite to fix formatting and content
22563 problems.
22564
22565 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22566
22567 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22568 Copy-edit description.
22569 ([-fisolate-erroneous-paths-attribute]): Likewise.
22570 * common.opt (fisolate-erroneous-paths-dereference):
22571 Copy-edit description.
22572 (fisolate-erroneous-paths-attribute): Likewise.
22573
22574 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22575
22576 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22577 tidy grammar.
22578
22579 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22580
22581 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22582 ([-fvtv-debug]): Likewise.
22583 ([-Wc++-compat]): Likewise.
22584 ([-Wc++11-compat]): Likewise.
22585 ([-Wc++14-compat]): Likewise.
22586 ([-Wno-sized-deallocation]): Likewise.
22587 ([-femit-class-debug-always]): Likewise.
22588 ([-femit-struct-debug-detailed]): Likewise.
22589 ([-fno-keep-inline-dllexport]): Likewise.
22590 ([-fira-algorithm]): Likewise.
22591 ([-fira-region]): Likewise.
22592 ([-flra-remat]): Likewise.
22593 ([-fipa-ra]): Likewise.
22594 ([-fhoist-adjacent-loads]): Likewise.
22595 ([-fisolate-erroneous-paths-dereference]): Likewise.
22596 ([-fisolate-erroneous-paths-attribute]): Likewise.
22597 ([-ftree-switch-conversion]): Likewise.
22598 ([-ftree-tail-merge]): Likewise.
22599 ([-ftree-loop-if-convert]): Likewise.
22600 ([-ftree-loop-if-convert-stores]): Likewise.
22601 ([-ftree-loop-distribution]): Likewise.
22602 ([-ftree-loop-distribute-patterns]): Likewise.
22603 ([-flto-compression-level]): Likewise.
22604 ([-flto-report]): Likewise.
22605 ([-flto-report-wpa]): Likewise.
22606 ([-fuse-linker-plugin]): Likewise.
22607 ([-mfix-cortex-a53-835769]): Likewise.
22608 ([-mno-fix-cortex-a53-835769]): Likewise.
22609 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22610 explicit listing; add a note to the discussion indicating they
22611 exist. Reorder table to group similar options. Add missing
22612 @opindex entries. Add @need commands throughout the table to
22613 allow it to be split across multiple pages.
22614 ([-m8bit-idiv]): Fix @opindex.
22615 ([-mavx256-split-unaligned-load]): Likewise.
22616 ([-mavx256-split-unaligned-store]): Likewise.
22617 ([-mstack-protector-guard]): Likewise.
22618 ([-mcpu=]): Likewise.
22619 ([-mcpu]): Likewise.
22620 ([-mpointer-size=]): Likewise.
22621
22622 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
22623
22624 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22625 instead of `m' constraint. Likewise for unnamed movb comparison
22626 patterns using reg_before_reload_operand predicate.
22627 * config/pa/predicates.md (reg_before_reload_operand): Tighten
22628 predicate to reject register index and LO_SUM DLT memory forms
22629 after reload.
22630
22631 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22632
22633 * doc/invoke.texi (Option Summary): Fix spelling of
22634 -fdevirtualize-at-ltrans.
22635 ([-fdevirtualize]): Fix markup.
22636 ([-fdevirtualize-speculatively]): Fix typo.
22637 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
22638 implementor-speaky.
22639 * common.opt (fdevirtualize-at-ltrans): Likewise.
22640 * ipa-devirt.c: Fix typos in comments throughout the file.
22641 (ipa_devirt): Fix typos in format strings for dump output.
22642
22643 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22644
22645 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22646 discussion of defaults, light copy-editing.
22647
22648 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22649
22650 * tsan.c (instrument_expr): corrected previous checkin.
22651
22652 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22653
22654 Instrument bit field and unaligned accesses for TSAN.
22655 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22656 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22657 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22658 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22659 unaligned memory regions.
22660
22661 2015-01-01 Anthony Green <green@moxielogic.com>
22662
22663 * config/moxie/predicates.md (moxie_general_movsrc_operand):
22664 Restrict move source register offsets to 16 bits.
22665 \f
22666 Copyright (C) 2015 Free Software Foundation, Inc.
22667
22668 Copying and distribution of this file, with or without modification,
22669 are permitted in any medium without royalty provided the copyright
22670 notice and this notice are preserved.