1 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6 for table jump at the end of a basic block using tablejump_p.
7 * targhooks.c (default_invalid_within_doloop): Likewise.
8 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9 target hook implementation that is identical to the default hook.
10 (rs6000_invalid_within_doloop): Remove.
12 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
13 unused variable from tablejump_p call.
15 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
16 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
17 (INSN_DELETED_P): Likewise.
18 (emit_jump_table_data): New prototype.
19 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
21 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
22 * sched-vis.c (print_insn): Likewise.
23 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
24 insn for compatibility with back ends that use next_active_insn to
25 identify jump table data.
26 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
27 (remove_insn): Likewise.
28 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31 (emit_jump_table_data): New function.
33 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
34 basic block, a JUMP_TABLE_DATA never is.
35 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
36 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
37 off from code handling real insns.
38 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
39 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
40 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
41 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
42 is not a NONDEBUG_INSN_P.
43 * ira-costs.c (scan_one_insn): Likewise.
44 * jump.c (mark_all_labels): Likewise.
45 (mark_jump_label_1): Likewise.
46 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
47 * lra.c (get_insn_freq): Expect all insns reaching here to be in
49 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
50 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
51 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
52 JUMP_TABLE_DATA_P insns.
53 (calculate_elim_costs_all_insns): Likewise.
54 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
55 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
56 (delete_output_reload): Code style fixups.
57 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
58 insn flags on this non-insn.
59 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
60 as scheduling barriers, for pre-change compatibility.
61 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
62 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
64 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
65 redundant JUMP_TABLE_DATA_P test.
66 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
67 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
68 (frv_for_each_packet): Likewise.
69 * config/i386/i386.c (min_insn_size): Likewise.
70 (ix86_avoid_jump_mispredicts): Likewise.
71 * config/m32r/m32r.c (m32r_is_insn): Likewise.
72 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
73 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
74 (mips16_insn_length): Robustify.
75 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
76 (mips16_split_long_branches): Likewise.
77 * config/pa/pa.c (pa_combine_instructions): Likewise.
78 * config/rs6000/rs6000.c (get_next_active_insn): Treat
79 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
80 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
81 as contributing to pool range lengths.
82 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
83 Remove redundant JUMP_TABLE_DATA_P test.
84 (sh_loop_align): Likewise.
85 (split_branches): Likewise.
86 (sh_insn_length_adjustment): Likewise.
87 * config/spu/spu.c (get_branch_target): Likewise.
89 2013-03-29 Jan Hubicka <jh@suse.cz>
91 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
92 gcov streaming; stream hot bb threshold to ltrans.
93 * predict.c (get_hot_bb_threshold): Break out from ....
94 (maybe_hot_count_p): ... here.
95 (set_hot_bb_threshold): New function.
96 * lto-section-in.c (lto_section_name): Add profile.
97 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
98 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
100 (histogram_entry): New structure.
101 (histogram, histogram_pool): New global vars.
102 (histogram_hash): New structure.
103 (histogram_hash::hash): New method.
104 (histogram_hash::equal): Likewise.
105 (account_time_size): New function.
106 (cmp_counts): New function.
107 (dump_histogram): New function.
108 (ipa_profile_generate_summary): New function.
109 (ipa_profile_write_summary): New function.
110 (ipa_profile_read_summary): New function.
111 (ipa_profile): Decide on threshold.
112 (pass_ipa_profile): Add ipa_profile_write_summary and ipa_profile_read_summary.
113 * Makefile.in (ipa.o): Update dependencies.
114 * lto-streamer.h (LTO_section_ipa_profile): New section.
116 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
118 * tree.h (VAR_P): New.
120 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
123 * doc/invoke.texi ([-fwhole-program]): Fix typo.
125 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
127 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
128 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
129 (control_flow_insn_p): Likewise.
130 * cfgrtl.c (duplicate_insn_chain): Likewise.
131 * final.c (get_attr_length_1): Likewise.
132 (shorten_branches): Likewise.
133 (final_scan_insn): Likewise.
134 * function.c (instantiate_virtual_regs): Likewise.
135 * gcse.c (insert_insn_end_basic_block): Likewise.
136 * ira-costs.c (scan_one_insn): Likewise.
137 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
138 * lra.c (check_rtl): Likewise.
139 * reload1.c (elimination_costs_in_insn): Likewise.
140 * reorg.c (follow_jumps): Likewise.
142 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
143 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
144 (thumb_far_jump_used_p): Likewise.
145 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
146 (workaround_speculation): Likewise.
147 (add_sched_insns_for_speculation): Likewise.
148 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
149 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
150 (frv_for_each_packet): Likewise.
151 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
152 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
153 (final_emit_insn_group_barriers): Likewise.
154 * config/m32r/m32r.c (m32r_is_insn): Likewise.
155 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
156 (mips16_insn_length): Likewise.
157 * config/pa/pa.c (pa_reorg): Likewise.
158 (pa_combine_instructions): Likewise.
159 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
160 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
161 (sh_reorg): Likewise.
162 (split_branches): Likewise.
163 * config/spu/spu.c (get_branch_target): Likewise.
165 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
168 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
170 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
171 Fix declaration name.
173 2013-03-28 Lawrence Crowl <crowl@google.com>
175 * graphds.h (struct graph.indicies): Remove unused.
176 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
177 (SCOP_ORIGINAL_PDDRS): Remove unused.
178 * sese.h (extern insert_loop_close_phis): Removed unused.
179 (extern insert_guard_phis): Removed unused.
180 (extern ivtype_map_elt_info): Removed unused.
181 (new_ivtype_map_elt): Removed unused.
182 * sese.c (ivtype_map_elt_info): Removed unused.
184 2013-03-28 Lawrence Crowl <crowl@google.com>
186 * Makefile.in: Add several missing include dependences.
188 (test-dump.o): New. This object is not added to any executable,
189 but is present for ad-hoc testing.
191 (debug (const bitmap_head_def &)): New.
192 (debug (const bitmap_head_def *)): New.
194 (extern debug (const bitmap_head_def &)): New.
195 (extern debug (const bitmap_head_def *)): New.
197 (debug (edge_def &)): New.
198 (debug (edge_def *)): New.
200 (debug (basic_block_def &)): New.
201 (debug (basic_block_def *)): New.
203 (dump_node (const_tree, int, FILE *)): Correct source file.
205 (debug (die_struct &)): New.
206 (debug (die_struct *)): New.
208 (extern debug (die_struct &)): New.
209 (extern debug (die_struct *)): New.
210 * gimple-pretty-print.c
211 (debug (gimple_statement_d &)): New.
212 (debug (gimple_statement_d *)): New.
213 * gimple-pretty-print.h
214 (extern debug (gimple_statement_d &)): New.
215 (extern debug (gimple_statement_d *)): New.
217 (debug (ira_allocno_copy &)): New.
218 (debug (ira_allocno_copy *)): New.
219 (debug (ira_allocno &)): New.
220 (debug (ira_allocno *)): New.
222 (extern debug (ira_allocno_copy &)): New.
223 (extern debug (ira_allocno_copy *)): New.
224 (extern debug (ira_allocno &)): New.
225 (extern debug (ira_allocno *)): New.
227 (debug (live_range &)): New.
228 (debug (live_range *)): New.
230 (debug (lra_live_range &)): New.
231 (debug (lra_live_range *)): New.
233 (debug (lra_live_range &)): New.
234 (debug (lra_live_range *)): New.
236 (debug (omega_pb_d &)): New.
237 (debug (omega_pb_d *)): New.
239 (extern debug (omega_pb_d &)): New.
240 (extern debug (omega_pb_d *)): New.
242 (debug (const rtx_def &)): New.
243 (debug (const rtx_def *)): New.
245 (debug_tree (tree): Move within file.
246 (debug_raw (const tree_node &)): New.
247 (debug_raw (const tree_node *)): New.
248 (dump_tree_via_hooks (const tree_node *, int)): New.
249 (debug (const tree_node &)): New.
250 (debug (const tree_node *)): New.
251 (debug_verbose (const tree_node &)): New.
252 (debug_verbose (const tree_node *)): New.
253 (debug_head (const tree_node &)): New.
254 (debug_head (const tree_node *)): New.
255 (debug_body (const tree_node &)): New.
256 (debug_body (const tree_node *)): New.
257 (debug_vec_tree (tree): Move and reimplement in terms of dump.
258 (debug (vec<tree, va_gc> &)): New.
259 (debug (vec<tree, va_gc> *)): New.
261 (extern debug (const rtx_def &)): New.
262 (extern debug (const rtx_def *)): New.
264 (debug_raw (simple_bitmap_def &)): New.
265 (debug_raw (simple_bitmap_def *)): New.
266 (debug (simple_bitmap_def &)): New.
267 (debug (simple_bitmap_def *)): New.
269 (extern debug (simple_bitmap_def &)): New.
270 (extern debug (simple_bitmap_def *)): New.
271 (extern debug_raw (simple_bitmap_def &)): New.
272 (extern debug_raw (simple_bitmap_def *)): New.
274 (debug (vinsn_def &)): New.
275 (debug (vinsn_def *)): New.
276 (debug_verbose (vinsn_def &)): New.
277 (debug_verbose (vinsn_def *)): New.
278 (debug (expr_def &)): New.
279 (debug (expr_def *)): New.
280 (debug_verbose (expr_def &)): New.
281 (debug_verbose (expr_def *)): New.
282 (debug (vec<rtx> &)): New.
283 (debug (vec<rtx> *)): New.
285 (extern debug (vinsn_def &)): New.
286 (extern debug (vinsn_def *)): New.
287 (extern debug_verbose (vinsn_def &)): New.
288 (extern debug_verbose (vinsn_def *)): New.
289 (extern debug (expr_def &)): New.
290 (extern debug (expr_def *)): New.
291 (extern debug_verbose (expr_def &)): New.
292 (extern debug_verbose (expr_def *)): New.
293 (extern debug (vec<rtx> &)): New.
294 (extern debug (vec<rtx> *)): New.
296 (_list_iter_cond_expr): Make inline instead of static.
298 (debug (sreal &)): New.
299 (debug (sreal *)): New.
301 (extern debug (sreal &)): New.
302 (extern debug (sreal *)): New.
304 (extern debug_raw (const tree_node &)): New.
305 (extern debug_raw (const tree_node *)): New.
306 (extern debug (const tree_node &)): New.
307 (extern debug (const tree_node *)): New.
308 (extern debug_verbose (const tree_node &)): New.
309 (extern debug_verbose (const tree_node *)): New.
310 (extern debug_head (const tree_node &)): New.
311 (extern debug_head (const tree_node *)): New.
312 (extern debug_body (const tree_node &)): New.
313 (extern debug_body (const tree_node *)): New.
314 (extern debug (vec<tree, va_gc> &)): New.
315 (extern debug (vec<tree, va_gc> *)): New.
317 (debug (struct loop &)): New.
318 (debug (struct loop *)): New.
319 (debug_verbose (struct loop &)): New.
320 (debug_verbose (struct loop *)): New.
321 * tree-dump.c: Add header dependence.
323 (extern debug (struct loop &)): New.
324 (extern debug (struct loop *)): New.
325 (extern debug_verbose (struct loop &)): New.
326 (extern debug_verbose (struct loop *)): New.
328 (debug (data_reference &)): New.
329 (debug (data_reference *)): New.
330 (debug (vec<data_reference_p> &)): New.
331 (debug (vec<data_reference_p> *)): New.
332 (debug (vec<ddr_p> &)): New.
333 (debug (vec<ddr_p> *)): New.
335 (extern debug (data_reference &)): New.
336 (extern debug (data_reference *)): New.
337 (extern debug (vec<data_reference_p> &)): New.
338 (extern debug (vec<data_reference_p> *)): New.
339 (extern debug (vec<ddr_p> &)): New.
340 (extern debug (vec<ddr_p> *)): New.
342 (debug (pt_solution &)): New.
343 (debug (pt_solution *)): New.
345 (extern debug (pt_solution &)): New.
346 (extern debug (pt_solution *)): New.
348 (debug (_var_map &)): New.
349 (debug (_var_map *)): New.
350 (debug (tree_live_info_d &)): New.
351 (debug (tree_live_info_d *)): New.
353 (extern debug (_var_map &)): New.
354 (extern debug (_var_map *)): New.
355 (extern debug (tree_live_info_d &)): New.
356 (extern debug (tree_live_info_d *)): New.
358 2013-03-28 Jan Hubicka <jh@suse.cz>
360 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
362 2013-03-28 Ian Bolton <ian.bolton@arm.com>
364 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
365 record only when desired or required.
367 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
369 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
370 *vec_extractv2di_1_rex64. Use x64 isa attribute.
372 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
374 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
375 (*andsi3_compare0_uxtw): New pattern.
376 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
377 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
379 2013-03-28 Jan Hubicka <jh@suse.cz>
381 * data-streamer-in.c (streamer_read_gcov_count): New function.
382 * gimple-streamer-out.c: Include value-prof.h.
383 (output_gimple_stmt): Output histogram.
384 (output_bb): Use streamer_write_gcov_count.
385 * value-prof.c: Include data-streamer.h
386 (dump_histogram_value): Add HIST_TYPE_MAX.
387 (stream_out_histogram_value): New function.
388 (stream_in_histogram_value): New function.
389 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
390 (stream_out_histogram_value, stream_in_histogram_value): Declare.
391 * data-streamer-out.c (streamer_write_gcov_count): New function.
392 (streamer_write_gcov_count_stream): New function.
393 * lto-cgraph.c (lto_output_edge): Update counter streaming.
394 (lto_output_node): Likewise.
395 (input_node, input_edge): Likewise.
396 * lto-streamer-out.c (output_cfg): Update streaming.
397 * lto-streamer-in.c (input_cfg): Likewise.
398 * data-streamer.h (streamer_write_gcov_count,
399 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
400 * gimple-streamer-in.c: Include value-prof.h
401 (input_gimple_stmt): Input histograms.
402 (input_bb): Update profile streaming.
404 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
406 * genmodes.c (emit_max_int): New function.
407 (emit_insn_modes_h): Added call to emit_max_function.
408 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
410 * machmode.def: Fixed comment.
412 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
414 * combine.c (try_combine): Removed useless assert.
415 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
417 2013-03-28 Marek Polacek <polacek@redhat.com>
418 Richard Biener <rguenther@suse.de>
420 PR tree-optimization/56695
421 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
422 build signed result of a vector comparison.
423 * tree-cfg.c (verify_gimple_comparison): Check that a result
424 of a vector comparison has signed type.
426 2013-03-28 Richard Biener <rguenther@suse.de>
428 PR tree-optimization/37021
429 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
430 do not restrict gaps between groups.
431 * tree-vect-stmts.c (vectorizable_load): Properly account for
432 a gap between groups.
434 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
436 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
437 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
440 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
442 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
443 * doc/extend.texi (Named Address Spaces): Ditto.
444 (Variable Attributes): Ditto.
446 2013-03-27 Kai Tietz <ktietz@redhat.com>
448 * config.build: Add support for cygwin x64 target.
449 * config.gcc: Likewise.
450 * config.host: Likewise.
451 * configure.ac: Likewise
452 * configure: Regenerated.
454 2013-03-27 Kai Tietz <ktietz@redhat.com>
456 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
457 * config/i386/t-cygwin-w64: New file.
458 * config/i386/cygwin-w64.h: New file.
459 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
460 and add support for x64-cygwin target.
461 (CPP_SPEC): Likewise.
462 (CXX_WRAP_SPEC_LIST): Undefine before define.
463 (LIBGCJ_SONAME): Use 15 as version.
465 2013-03-27 Richard Biener <rguenther@suse.de>
467 PR tree-optimization/56716
468 * tree-ssa-structalias.c (perform_var_substitution): Adjust
469 dumping for ref nodes.
471 2013-03-27 Martin Jambor <mjambor@suse.cz>
473 PR tree-optimization/55334
474 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
475 restricted pointers to arrays.
477 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
479 * Makefile.in (.SUFFIXES): Add .cc.
480 (.c.o): Apply same recipe for implicit rule .cc.o.
482 2013-03-27 Richard Biener <rguenther@suse.de>
484 PR tree-optimization/37021
485 * tree-vect-data-refs.c (vect_check_strided_load): Allow
486 REALPART/IMAGPART_EXPRs around the supported refs.
487 * tree-ssa-structalias.c (find_func_aliases): Assume that
488 floating-point values are not used to transfer pointers.
490 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
492 * target.def (TARGET_HAS_IFUNC_P): New target hook.
493 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
494 * doc/tm.texi: Regenerate.
495 * targhooks.h (default_has_ifunc_p): New.
496 * targhooks.c (default_has_ifunc_p): Ditto.
497 * config/linux-protos.h: New file.
498 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
499 this hook for linux which disables support of indirect functions in
501 * config/linux-android.c: New file.
502 * config/t-linux-android.c: Ditto.
503 * config.gcc: Added new object file linux-android.o.
504 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
505 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
506 * varasm.c (do_assemble_alias): Likewise.
507 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
508 doesn't support indirect functions.
509 * configure: Regenerate.
511 2013-03-27 Bin Cheng <bin.cheng@arm.com>
514 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
515 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
518 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
520 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
522 2013-03-27 Terry Guo <terry.guo@arm.com>
524 * config/arm/arm-cores.def: Added core cortex-r7.
525 * config/arm/arm-tune.md: Regenerated.
526 * config/arm/arm-tables.opt: Regenerated.
527 * doc/invoke.texi: Added entry for core cortex-r7.
529 2013-03-27 Walter Lee <walt@tilera.com>
531 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
532 double-decrement of next_scratch_regno.
534 2013-03-27 Walter Lee <walt@tilera.com>
536 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
538 (insn_v1mulus): Ditto.
539 (insn_v2muls): Ditto.
541 2013-03-27 Walter Lee <walt@tilera.com>
543 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
545 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
547 2013-03-27 Walter Lee <walt@tilera.com>
549 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
551 (*sibcall_value): Ditto.
553 2013-03-27 Walter Lee <walt@tilera.com>
555 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
556 (insn_mnz_v8qi): ... this ...
557 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
559 (insn_v<n>mnz): Replaced by ...
560 (insn_v1mnz): ... this ...
561 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
563 (insn_mz_<mode>): Replaced by ...
564 (insn_mz_v8qi): ... this ...
565 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
567 (insn_v<n>mz): Replaced by ...
568 (insn_v1mz): ... this ...
569 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
572 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
574 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
576 2013-03-26 Roland McGrath <mcgrathr@google.com>
578 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
579 than fprintf with a non-constant, non-format string.
581 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
583 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
584 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
586 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
587 attribute. Use general_x64nomem_operand as operand 1 predicate.
588 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
589 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
590 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
591 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
592 (mov<mode>_insv_1): Remove expander. Merge insn with
593 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
594 Use general_x64nomem_operand as operand 1 predicate.
595 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
596 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
597 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
598 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
599 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
600 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
601 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
602 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
603 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
604 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
605 (general_x64nomem_operand): Ditto.
607 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
609 * config/rtems.opt: Add -pthread option.
611 2013-03-26 Richard Biener <rguenther@suse.de>
613 * alias.c (find_base_term): Avoid redundant and not used recursion.
614 (base_alias_check): Get the initial base term from the caller.
615 (true_dependence_1): Compute and pass base terms to base_alias_check.
616 (write_dependence_p): Likewise.
617 (may_alias_p): Likewise.
619 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
621 * config/aarch64/aarch64.c (aarch64_classify_address): Support
622 PC-relative load in SI modes and above only.
624 2013-03-26 Xinyu Qi <xyqi@marvell.com>
626 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
627 * config/arm/iwmmxt.md (WCGR0): Update.
628 (WCGR1, WCGR2, WCGR3): Likewise.
630 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
632 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
633 Use x64 and nox64 isa attributes.
635 2013-03-26 Richard Biener <rguenther@suse.de>
637 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
638 alignment computations and rely on get_object_alignment_1
639 for the !TYPE_P case.
640 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
642 2013-03-26 Walter Lee <walt@tilera.com>
644 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
645 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
647 2013-03-25 Jeff Law <law@redhat.com>
648 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
649 check for INTEGRAL_TYPE_P that was missing due to checking in
650 wrong version of prior patch.
652 2013-03-25 Walter Lee <walt@tilera.com>
654 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
655 TILEGX_INSN_SHUFFLEBYTES1.
656 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
658 (tilegx_builtins): Ditto.
659 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
661 2013-03-25 Walter Lee <walt@tilera.com>
663 * config/tilegx/tilegx.md (floatsisf2): New pattern.
664 (floatunssisf2): New pattern.
665 (floatsidf2): New pattern.
666 (floatunssidf2): New pattern.
668 2013-03-25 Walter Lee <walt@tilera.com>
670 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
671 tests for constraint J, K, N, P.
673 2013-03-25 Walter Lee <walt@tilera.com>
675 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
676 Use indirect/pcrel encoding.
677 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
680 2013-03-25 Steve Ellcey <sellcey@mips.com>
682 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
683 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
684 * config/mips/mips.c (mips_option_override): Set IMADD default.
685 * config/mips/mips.h (PTF_AVOID_IMADD): New.
686 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
687 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
688 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
689 * doc/invoke.texi (-mimadd/-mno-imadd): New.
691 2013-03-25 Jeff Law <law@redhat.com>
693 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
694 slightly to avoid creating and folding useless trees. Simplify
695 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
697 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
699 * config/i386/i386.md (*zero_extendsidi2): Merge with
700 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
701 * config/i386/predicates.md (x86_64_zext_operand): Rename from
702 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
703 targets. Clarify comment.
705 2013-03-25 Martin Jambor <mjambor@suse.cz>
707 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
708 pass-through jump functions differently.
709 (ipa_read_jump_function): Likewise. Also use setter functions to set
712 2013-03-25 Martin Jambor <mjambor@suse.cz>
714 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
715 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
717 (ipa_get_indirect_edge_target): New function.
718 (devirtualization_time_bonus): New parameter known_aggs, pass it to
719 ipa_get_indirect_edge_target. Update all callers.
720 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
721 ipa_get_indirect_edge_target_1 instead of calling
722 ipa_get_indirect_edge_target.
723 (create_specialized_node): Pass aggvlas to
724 ipcp_discover_new_direct_edges.
726 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
728 * config/arm/arm.md (f_sels, f_seld): New types.
729 (*cmov<mode>): New pattern.
730 * config/arm/predicates.md (arm_vsel_comparison_operator): New
733 2013-03-25 Kai Tietz <ktietz@redhat.com>
735 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
736 POSIX-printf for mingw-hosted builds.
738 2013-03-25 Richard Biener <rguenther@suse.de>
741 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
742 must-not-throw stmt location.
744 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
746 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
747 Emit load-acquire versions when acq is true.
748 (arm_emit_store_exclusive): Add rel parameter.
749 Emit store-release versions when rel is true.
750 (arm_split_compare_and_swap): Use acquire-release instructions
752 of barriers when appropriate.
753 (arm_split_atomic_op): Likewise.
754 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
755 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
756 (VUNSPEC_SLX): Likewise.
757 (VUNSPEC_LDA): Likewise.
758 (VUNSPEC_STL): Likewise.
759 * config/arm/sync.md (atomic_load<mode>): New pattern.
760 (atomic_store<mode>): Likewise.
761 (arm_load_acquire_exclusive<mode>): Likewise.
762 (arm_load_acquire_exclusivesi): Likewise.
763 (arm_load_acquire_exclusivedi): Likewise.
764 (arm_store_release_exclusive<mode>): Likewise.
766 2013-03-25 Catherine Moore <clm@codesourcery.com>
768 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
769 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
770 * config/mip/predicates.md (lwsp_swsp_operand,
771 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
772 sb16_operand, db4_operand, db7_operand, ib3_operand,
773 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
774 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
775 andi16_operand): New predicates.
776 * config/mips/mips.md (compression): New attribute.
777 (enabled): New attribute.
778 (length): Consider compression in computing length.
779 (shift_compression): New code attribute.
780 (*add<mode>3): New operands. Record compression.
781 (sub<mode>3): Likewise.
782 (one_cmpl<mode>2): Likewise.
783 (*and<mode>3): Likewise.
784 (*ior<mode>3): Likewise.
785 (unnamed pattern for xor): Likewise.
786 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
787 (*<optab><mode>3): Likewise.
788 (*mov<mode>_internal: Likewise.
789 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
790 (mips_unsigned_immediate_p): New.
791 (umips_lwsp_swsp_address_p): New.
792 (m16_based_address_p): New.
793 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
794 (mips_unsigned_immediate_p): New prototype.
795 (lwsp_swsp_address_p): New prototype.
796 (m16_based_address_p): New prototype.
797 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
798 (mips_signed_immediate_p): New function.
799 (m16_based_address_p): New function.
800 (lwsp_swsp_address_p): New function.
801 (mips_print_operand_punctuation): Recognize short delay slot insns
802 for microMIPS.add<mode>3"
804 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
807 * config/arm/iterators.md (v_cmp_result): New mode attribute.
808 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
810 2013-03-25 Richard Biener <rguenther@suse.de>
812 PR tree-optimization/56689
813 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
816 2013-03-25 Richard Biener <rguenther@suse.de>
818 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
820 (memory_references): Likewise.
821 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
822 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
823 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
824 (gather_mem_refs_in_loops): Fold into ...
825 (analyze_memory_references): ... this. Move initialization
826 to tree_ssa_lim_initialize.
827 (fill_always_executed_in): Rename to ...
828 (fill_always_executed_in_1): ... this.
829 (fill_always_executed_in): Move contains_call computation to
830 this new function from ...
831 (tree_ssa_lim_initialize): ... here.
832 (tree_ssa_lim): Call fill_always_executed_in.
834 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
836 * postreload.c (reload_combine): Fix code detecting returns.
838 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
840 * function.c (emit_use_return_register_into_block): On cc0 targets,
841 do not emit the sequence between cc0 setter and user.
843 2013-03-25 Kai Tietz <ktietz@redhat.com>
845 * config/i386/predicates.md (local_symbolic_operand): Interpret
846 dll-imported symbols as none-local.
848 2013-03-25 Richard Biener <rguenther@suse.de>
850 * tree-ssa-loop-im.c (struct depend): Remove.
851 (struct lim_aux_data): Make depends a vec of gimples.
852 (free_lim_aux_data): Adjust.
853 (add_dependency): Likewise.
854 (set_level): Likewise.
856 2013-03-25 Richard Biener <rguenther@suse.de>
859 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
860 the pointer returned by calls with ECF_MALLOC set.
862 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
864 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
866 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
868 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
869 using MMXMODE mode iterator.
870 (*move<mode>_internal): Merge with *movv2sf_internal and
871 *movv2sf_internal_rex64 using MMXMODE mode iterator.
873 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
875 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
876 (record_last_mem_set_info): Likewise.
878 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
879 of XNEWVEC followed by memset.
880 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
882 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
884 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
885 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
886 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
887 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
888 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
889 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
890 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
891 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
892 BARRIER_P instead of GET_CODE.
894 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
896 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
897 inaccuracy in the probing code.
899 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
900 (ctrapdi4): Likewise.
902 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
904 * calls.c (expand_call): Add missing guard to code handling return
905 of non-BLKmode structures in MSB.
906 * function.c (expand_function_end): Likewise.
908 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
910 * combine.c (try_combine): Adjust comment. Do not add the set of
911 insn #0 if the destination indirectly is set or dies in insn #2.
912 Tidy up code to distribute a new note.
914 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
916 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
917 also for alternatives 16 and 17.
919 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
921 * config/i386/sse.md (*mov<mode>_internal): Merge with
922 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
923 Emit insn template depending on type attribute. Use
924 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
925 movd instead of movq mnemonic for interunit moves. Rewrite mode
926 attribute calculation. Remove unit attribute calculation.
927 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
928 Set prefix_data16 attribute for DImode ssemov types.
929 Use Ym instead of y for SSE-MMX conversion alternatives.
930 Reorder operand constraints.
932 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
934 * df.h (df_insn_delete): Adjust prototype.
935 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
936 and let it decide whether mark the basic block dirty.
937 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
938 * df-scan.c (df_insn_info_delete): New helper function, split
939 off from df_insn_delete.
940 (df_scan_free_bb_info): Use it.
941 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
943 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
944 that the insn is actually an insn and it has a non-NULL basic block.
945 Do not mark basic block dirty if only deleting a DEBUG_INSN.
947 2013-03-22 Richard Biener <rguenther@suse.de>
949 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
951 (mem_ref_alloc): Do not allocate them.
952 (refs_independent_p): Do not query or maintain a cache.
954 2013-03-22 Richard Biener <rguenther@suse.de>
956 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
957 (gather_mem_refs_in_loops): Do not compute it.
958 (analyze_memory_references): Do not allocate it.
959 (tree_ssa_lim_finalize): Do not free it.
960 (for_all_locs_in_loop): Do not query all_refs_in_loop.
962 2013-03-22 Richard Biener <rguenther@suse.de>
964 * is-a.h (as_a): Use gcc_checking_assert.
966 2013-03-22 Ian Bolton <ian.bolton@arm.com>
968 * config/aarch64/aarch64.c (aarch64_print_operand): New
969 format specifier for printing a constant in hex.
970 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
971 format specifier for printing second operand.
973 2013-03-22 Richard Biener <rguenther@suse.de>
975 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
977 (gather_mem_refs_in_loops): Perform store accumulation here.
978 (create_vop_ref_mapping_loop): Remove.
979 (create_vop_ref_mapping): Likewise.
980 (analyze_memory_references): Initialize refs_stored_in_loop.
981 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
982 (record_indep_loop): Remove.
983 (record_dep_loop): New function.
984 (ref_indep_loop_p_1): Adjust to only walk over references
985 in the loop, not its subloops.
986 (ref_indep_loop_p): Rename to ...
987 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
988 maintaining a more fine-grained cache.
989 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
990 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
992 2013-03-22 Richard Biener <rguenther@suse.de>
994 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
995 (struct mem_ref): Make accesses_in_loop a vec of a vec of
996 aggregate mem_ref_loc.
997 (free_mem_ref_locs): Inline into ...
998 (memref_free): ... this and adjust.
999 (mem_ref_alloc): Adjust.
1000 (mem_ref_locs_alloc): Remove.
1001 (record_mem_ref_loc): Adjust.
1002 (get_all_locs_in_loop): Rewrite into ...
1003 (for_all_locs_in_loop): ... this iterator.
1004 (rewrite_mem_ref_loc): New functor.
1005 (rewrite_mem_refs): Use for_all_locs_in_loop.
1006 (sm_set_flag_if_changed): New functor.
1007 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
1008 (ref_always_accessed): New functor.
1009 (ref_always_accessed_p): Use for_all_locs_in_loop.
1011 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1013 * tree-pass.h (PROP_gimple_lvec): New.
1014 * passes.c (dump_properties): Handle PROP_gimple_lvec.
1015 (init_optimization_passes): Move pass_lower_vector.
1016 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
1018 (pass_lower_vector): Provide PROP_gimple_lvec.
1019 (pass_lower_vector_ssa): Likewise.
1020 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
1022 2013-03-21 Mark Wielaard <mjw@redhat.com>
1024 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1026 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
1028 * config/i386/i386.md (*movdi_internal): Disparage slightly
1029 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
1030 conversion alternatives.
1032 2013-03-21 Jakub Jelinek <jakub@redhat.com>
1035 * diagnostic.def (DK_WERROR): New kind.
1036 * diagnostic.h (werrorcount): Define.
1037 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
1038 promoted to DK_ERROR, increment DK_WERROR counter instead of
1040 * toplev.c (toplev_main): Call print_ignored_options even if
1041 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
1042 even if just werrorcount is non-zero.
1045 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
1047 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
1048 (string_cst_pool_decl): New function.
1049 (optimize_one_addr_into_implicit_ptr): New function.
1050 (resolve_addr_in_expr): Optimize DWARF location expression
1051 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
1052 which doesn't live in memory, but has DW_AT_location or
1053 DW_AT_const_value, or refers to a string literal, into
1054 DW_OP_GNU_implicit_pointer.
1055 (optimize_location_into_implicit_ptr): New function.
1056 (resolve_addr): If removing DW_AT_location of a variable because
1057 it was DW_OP_addr of address of the variable, but the variable doesn't
1058 live in memory, try to emit const value attribute for the initializer.
1060 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1062 * tree.h (VECTOR_TYPE_P): New macro.
1063 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
1065 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
1066 VEC_COND_EXPR cannot be lvalues.
1067 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
1069 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1071 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
1072 Restrict the transformation to equal modes.
1074 2013-03-21 Richard Biener <rguenther@suse.de>
1076 PR tree-optimization/39326
1077 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
1078 (MEM_ANALYZABLE): Adjust.
1079 (record_mem_ref_loc): Move bitmap ops ...
1080 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
1081 unanalyzable refs, do not record locations for it.
1082 (analyze_memory_references): Allocate ref zero as shared
1084 (refs_independent_p): Do not test for unanalyzed mems here.
1085 (ref_indep_loop_p_1): Special-case disambiguation against
1087 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
1089 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
1091 * config/arm/arm-protos.h (tune_params): Add
1092 prefer_neon_for_64bits field.
1093 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
1094 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
1095 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1096 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1097 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
1098 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1099 (arm_option_override): Handle -mneon-for-64bits new option.
1100 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
1101 (prefer_neon_for_64bits): Declare new variable.
1102 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
1103 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
1104 (arch_enabled): Handle new arch types. Remove support for onlya8
1106 (one_cmpldi2): Use new arch names.
1107 (zero_extend<mode>di2, extend<mode>di2): Ditto.
1108 * config/arm/arm.opt (mneon-for-64bits): Add option.
1109 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
1110 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
1111 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
1113 * doc/invoke.texi (-mneon-for-64bits): Document.
1115 2013-03-21 Richard Biener <rguenther@suse.de>
1117 PR tree-optimization/39326
1118 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
1119 (sort_bbs_in_loop_postorder_cmp): New function.
1120 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
1122 2013-03-21 Richard Biener <rguenther@suse.de>
1124 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
1125 (vect_insert_into_interleaving_chain): Likewise.
1126 (vect_drs_dependent_in_basic_block): Inline ...
1127 (vect_slp_analyze_data_ref_dependence): ... here. New function,
1129 (vect_analyze_data_ref_dependence): ... here. Simplify.
1130 (vect_check_interleaving): Simplify.
1131 (vect_analyze_data_ref_dependences): Likewise. Split out ...
1132 (vect_slp_analyze_data_ref_dependences): ... this new function.
1133 (dr_group_sort_cmp): New function.
1134 (vect_analyze_data_ref_accesses): Compute data-reference groups
1135 here instead of in vect_analyze_data_ref_dependence. Use
1136 a more efficient algorithm.
1137 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
1138 vect_slp_analyze_data_ref_dependences. Call
1139 vect_analyze_data_ref_accesses earlier.
1140 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1141 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
1142 (vect_slp_analyze_data_ref_dependences): New prototype.
1144 2013-03-21 Richard Biener <rguenther@suse.de>
1146 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
1147 ref is stored in the loop.
1148 (find_refs_for_sm): Walk only over all stores.
1149 (store_motion_loop): Allocate from lim_bitmap_obstack.
1150 (store_motion): Likewise.
1152 2013-03-21 Richard Biener <rguenther@suse.de>
1154 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
1155 Update virtual SSA form.
1157 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1159 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
1160 * configure: Regenerate.
1161 * config.in: Regenerate.
1162 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
1163 if !HAVE_LD_EH_FRAME_CIEV3.
1165 2013-03-21 Richard Biener <rguenther@suse.de>
1167 * tree-cfg.c (verify_expr_no_block): New function.
1168 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
1169 nor DECL_VALUE_EXPR have locations with associated blocks.
1170 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
1171 (clear_unused_block_pointer): Remove code dealing with
1172 blocks in DECL_DEBUG_EXPR locations.
1174 2013-03-21 Richard Biener <rguenther@suse.de>
1176 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
1177 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
1178 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
1179 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
1180 instead of DECL_DEBUG_EXPR_IS_FROM.
1181 * gimplify.c (gimplify_modify_expr): Likewise.
1182 * tree-cfg.c (verify_expr_location_1): Likewise.
1183 * tree-complex.c (create_one_component_var): Likewise.
1184 * tree-sra.c (create_access_replacement): Likewise.
1185 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
1186 (clear_unused_block_pointer): Likewise.
1187 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1188 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1189 * var-tracking.c (var_debug_decl): Likewise.
1190 (track_expr_p): Likewise.
1191 * tree-inline.c (add_local_variables): Likewise. Set
1192 DECL_HAS_DEBUG_EXPR_P after copying it.
1193 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1194 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1196 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
1199 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
1200 * configure: Regenerate.
1201 * config.in: Regenerate.
1202 * config/i386/i386.md (*movdf_internal): Use
1203 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1204 movd instead of movq mnemonic for interunit moves.
1205 (*movdi_internal): Ditto.
1207 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1209 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
1210 (abd<mode>_3): New pattern.
1211 (aba<mode>_3): New pattern.
1212 (fabd<mode>_3): New pattern.
1214 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1216 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
1217 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
1218 occurrence of REGISTER_PREFIX as its empty string.
1220 2013-03-20 Jeff Law <law@redhat.com>
1222 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
1223 addititional equivalences for equality comparisons between an SSA_NAME
1224 and a constant where the SSA_NAME was set from a widening conversion.
1226 2013-03-20 Walter Lee <walt@tilera.com>
1228 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1230 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1232 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
1233 depending on type attribute.
1234 (*movti_internal): Ditto.
1235 (*movtf_internal): Ditto.
1236 (*movxf_internal): Ditto.
1237 (*movdf_internal): Ditto.
1238 (*movsf_internal): Ditto.
1240 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1242 * config/i386/i386.md (*movti_internal): Set prefix attribute to
1243 maybe_vex for sselog1 and ssemov types.
1244 (*movdi_internal): Reorder operand constraints.
1245 (*movsi_internal): Ditto. Set prefix attribute to
1246 maybe_vex for sselog1 and ssemov types.
1247 (*movtf_internal): Set prefix attribute to maybe_vex
1248 for sselog1 and ssemov types.
1249 (*movdf_internal): Ditto. Set prefix_data16 attribute for
1250 DImode ssemov types. Reorder operand constraints.
1251 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
1252 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
1253 attribute for SImode ssemov types. Reorder operand constraints.
1255 2013-03-20 Martin Jambor <mjambor@suse.cz>
1257 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
1258 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
1260 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
1262 * config/rs6000/predicates.md (indexed_address, update_address_mem
1263 update_indexed_address_mem): New predicates.
1264 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
1265 attribute for load/store instructions.
1266 * config/rs6000/dfp.md (movsd_store): Likewise.
1267 (movsd_load): Likewise.
1268 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
1269 (unnamed HI->DI extend define_insn): Likewise.
1270 (unnamed SI->DI extend define_insn): Likewise.
1271 (unnamed QI->SI extend define_insn): Likewise.
1272 (unnamed QI->HI extend define_insn): Likewise.
1273 (unnamed HI->SI extend define_insn): Likewise.
1274 (unnamed HI->SI extend define_insn): Likewise.
1275 (extendsfdf2_fpr): Likewise.
1276 (movsi_internal1): Likewise.
1277 (movsi_internal1_single): Likewise.
1278 (movhi_internal): Likewise.
1279 (movqi_internal): Likewise.
1280 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
1281 attribute for load/store instructions.
1282 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
1284 (mov<mode>_softfloat): Likewise.
1285 (mov<mode>_hardfloat32): Likewise.
1286 (mov<mode>_hardfloat64): Likewise.
1287 (mov<mode>_softfloat64): Likewise.
1288 (movdi_internal32): Likewise.
1289 (movdi_internal64): Likewise.
1290 (probe_stack_<mode>): Likewise.
1292 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1294 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
1295 floating point, and decimal floating point to reload iterator.
1297 * config/rs6000/constraints.md (wl constraint): New constraints to
1298 return FLOAT_REGS if certain options are used to reduce the number
1299 of separate patterns that exist in the file.
1300 (wx constraint): Likewise.
1301 (wz constraint): Likewise.
1303 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1304 -mdebug=reg, print wg, wl, wx, and wz constraints.
1305 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1306 Initialize the reload functions for 64-bit binary/decimal floating
1308 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1309 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1310 create the buffer on the stack to overcome not having a 32-bit
1312 (rs6000_emit_move): Likewise.
1313 (rs6000_secondary_memory_needed_rtx): Likewise.
1314 (rs6000_alloc_sdmode_stack_slot): Likewise.
1315 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1316 via xxlxor, just like DFmode 0.0.
1318 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
1319 define as 1 if we are running on a power7 or newer.
1320 (enum r6000_reg_class_enum): Add new constraints.
1322 * config/rs6000/dfp.md (movsd): Delete, combine with binary
1323 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1324 with other moves by using conditional constraits (wg). Use LFIWZX
1325 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
1326 (movsd splitter): Likewise.
1327 (movsd_hardfloat): Likewise.
1328 (movsd_softfloat): Likewise.
1330 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
1331 binary and decimal floating point moves.
1332 (fmove_ok): New attributes to combine binary and decimal floating
1333 point moves, and to combine power6x (mfpgpr) moves along normal
1335 (real_value_to_target): Likewise.
1342 (movsf): Combine binary and decimal floating point moves. Combine
1343 power6x (mfpgpr) moves with other moves by using conditional
1344 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
1345 (mov<mode> for SFmode/SDmode); Likewise.
1346 (SFmode/SDmode splitters): Likewise.
1347 (movsf_hardfloat): Likewise.
1348 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
1349 (movsf_softfloat): Likewise.
1350 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
1352 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
1353 wx and wz constraints.
1355 * config/rs6000/constraints.md (wg constraint): New constraint to
1356 return FLOAT_REGS if -mmfpgpr (power6x) was used.
1358 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
1361 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1362 -mdebug=reg, print wg, wl, wx, and wz constraints.
1363 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1364 Initialize the reload functions for 64-bit binary/decimal floating
1366 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1367 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1368 create the buffer on the stack to overcome not having a 32-bit
1370 (rs6000_emit_move): Likewise.
1371 (rs6000_secondary_memory_needed_rtx): Likewise.
1372 (rs6000_alloc_sdmode_stack_slot): Likewise.
1373 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1374 via xxlxor, just like DFmode 0.0.
1376 * config/rs6000/dfp.md (movdd): Delete, combine with binary
1377 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1378 with other moves by using conditional constraits (wg). Use LFIWZX
1379 and STFIWX for loading SDmode on power7.
1380 (movdd splitters): Likewise.
1381 (movdd_hardfloat32): Likewise.
1382 (movdd_softfloat32): Likewise.
1383 (movdd_hardfloat64_mfpgpr): Likewise.
1384 (movdd_hardfloat64): Likewise.
1385 (movdd_softfloat64): Likewise.
1387 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
1388 64-bit binary and decimal floating point moves.
1389 (FMOVE64X): Likewise.
1390 (movdf): Combine 64-bit binary and decimal floating point moves.
1391 Combine power6x (mfpgpr) moves with other moves by using
1392 conditional constraits (wg).
1393 (mov<mode> for DFmode/DDmode): Likewise.
1394 (DFmode/DDmode splitters): Likewise.
1395 (movdf_hardfloat32): Likewise.
1396 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
1397 (movdf_softfloat32): Likewise.
1398 (movdf_hardfloat64_mfpgpr): Likewise.
1399 (movdf_hardfloat64): Likewise.
1400 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
1401 (movdf_softfloat64): Likewise.
1402 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
1403 (reload_<mode>_load): Move to later in the file so they aren't in
1404 the middle of the floating point move insns.
1405 (reload_<mode>_store): Likewise.
1407 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
1410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
1411 constraint if -mdebug=reg.
1412 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
1413 Enable using dd reload support if needed.
1415 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
1416 binary and decimal floating point moves in rs6000.md.
1417 (movtd_internal): Likewise.
1419 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
1420 decimal floating point moves.
1422 (movtf_internal): Likewise.
1423 (mov<mode>_internal, TDmode/TFmode): Likewise.
1424 (movtf_softfloat): Likewise.
1425 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
1427 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
1428 movdi_internal64, using wg constraint for move direct operations.
1429 (movdi_internal64): Likewise.
1431 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
1432 MODES_TIEABLE_P for selected modes. Print the numerical value of
1433 the various virtual registers. Use GPR/FPR first/last values,
1434 instead of hard coding the register numbers. Print which modes
1435 have reload functions registered.
1436 (rs6000_option_override_internal): If -mdebug=reg, trace the options
1437 settings before/after setting cpu, target and subtarget settings.
1438 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
1439 and for secondary reload failures in rs6000_secondary_reload_inner.
1440 (rs6000_secondary_reload_fail): Likewise.
1441 (rs6000_secondary_reload_inner): Likewise.
1443 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
1444 macros for first/last GPR and FPR registers.
1445 (LAST_GPR_REGNO): Likewise.
1446 (FIRST_FPR_REGNO): Likewise.
1447 (LAST_FPR_REGNO): Likewise.
1449 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
1450 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
1451 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
1452 (vcond<mode><mode>): Likewise.
1453 (vcondu<mode><mode>): Likewise.
1454 (vector_gtu<mode>): Likewise.
1455 (vector_gte<mode>): Likewise.
1456 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
1457 to prevent the compiler from converting DImode operations to TImode.
1458 (ior<mode>3): Likewise.
1459 (and<mode>3): Likewise.
1460 (one_cmpl<mode>2): Likewise.
1461 (nor<mode>3): Likewise.
1462 (andc<mode>3): Likewise.
1464 * config/rs6000/constraints.md (wt constraint): New constraint
1465 that returns VSX_REGS if TImode is allowed in VSX registers.
1467 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1470 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1471 similar to TImode, but it is restricted to being in the GPRs.
1473 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1474 TImode to occupy a single VSX register.
1476 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1477 -mvsx-timode for power7/power8.
1478 (power7 cpu): Likewise.
1479 (power8 cpu): Likewise.
1481 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1482 sure that TFmode/TDmode take up two registers if they are ever
1483 allowed in the upper VSX registers.
1484 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1486 (rs6000_init_hard_regno_mode_ok): Likewise.
1487 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1488 constraint. Print if LRA is turned on.
1489 (rs6000_option_override_internal): Give an error if -mvsx-timode
1490 and VSX is not enabled.
1491 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1492 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1493 to reg+offset addressing. Use PTImode when checking offset
1494 addresses for validity.
1495 (reg_offset_addressing_ok_p): Likewise.
1496 (rs6000_legitimate_offset_address_p): Likewise.
1497 (rs6000_legitimize_address): Likewise.
1498 (rs6000_legitimize_reload_address): Likewise.
1499 (rs6000_legitimate_address_p): Likewise.
1500 (rs6000_eliminate_indexed_memrefs): Likewise.
1501 (rs6000_emit_move): Likewise.
1502 (rs6000_secondary_reload): Likewise.
1503 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1504 reloads to fpr registers to continue to use reg+offset addressing,
1505 but 64-bit reloads to altivec registers need reg+reg addressing.
1506 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1507 it. Treat LO_SUM like a PLUS operation.
1508 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1509 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1510 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1511 registers to share a register with a smaller sized type, since VSX
1512 puts scalars in the upper 64-bits.
1513 (print_operand): Add support for PTImode.
1514 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1515 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1516 registers, but don't have arithmetic support.
1517 (rs6000_memory_move_cost): Add test for VSX.
1518 (rs6000_opt_masks): Add -mvsx-timode.
1520 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1523 (VSr): Use wt constraint for TImode.
1524 (VSv): Drop TImode support.
1525 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1526 (vsx_movti_64bit): Likewise.
1527 (vsx_movti_32bit): Likewise.
1528 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1529 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1530 one '?' on the appropriate output constraint. Do not allow TImode
1531 logical operations on 32-bit systems.
1532 (vsx_ior<mode>3): Likewise.
1533 (vsx_xor<mode>3): Likewise.
1534 (vsx_one_cmpl<mode>2): Likewise.
1535 (vsx_nor<mode>3): Likewise.
1536 (vsx_andc<mode>3): Likewise.
1537 (vsx_concat_<mode>): Likewise.
1538 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1540 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1541 OPTION_MASK_VSX_TIMODE.
1542 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1543 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1545 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1546 (TI2 iterator): New iterator for TImode, PTImode.
1547 (wd mode attribute): Add values for vector types.
1548 (movti_string): Replace TI move operations with operations for TImode
1549 and PTImode. Add support for TImode being allowed in VSX registers.
1550 (mov<mode>_string, TImode/PTImode): Likewise.
1551 (movti_ppc64): Likewise.
1552 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1553 (TI mode splitters): Likewise.
1555 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1558 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
1560 PR tree-optimization/56355
1561 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1562 Also handle integers with undefined overflow.
1564 2013-03-20 Catherine Moore <clm@codesourcery.com>
1565 Maciej W. Rozycki <macro@codesourcery.com>
1566 Tom de Vries <tom@codesourcery.com>
1567 Nathan Sidwell <nathan@codesourcery.com>
1568 Iain Sandoe <iain@codesourcery.com>
1569 Nathan Froyd <froydnj@codesourcery.com>
1570 Chao-ying Fu <fu@mips.com>
1572 * doc/extend.texi: (micromips, nomicromips, nocompression):
1573 Document new function attributes.
1574 * doc/invoke.texi (minterlink-compressed, mmicromips,
1575 m14k, m14ke, m14kec): Document new options.
1576 (minterlink-mips16): Update documentation.
1577 * doc/md.texi (ZC, ZD): Document new constraints.
1578 * configure.ac (gcc_cv_as_micromips): Check if linker
1579 supports the .set micromips directive.
1580 * configure: Regenerate.
1581 * config.in: Regenerate.
1582 * config/mips/mips-tables.opt: Regenerate.
1583 * config/mips/micromips.md: New file.
1584 * constraints.md (ZC, ZD): New constraints.
1585 * config/mips/predicates.md (movep_src_register): New predicate.
1586 (movep_src_operand): New predicate.
1587 (non_volatile_mem_operand): New predicate.
1588 * config/mips/mips.md (multimem): New type.
1589 (length): Differentiate between 17-bit and 18-bit branch offsets.
1590 (MOVEP1, MOVEP2): New mode iterator.
1591 (mov_<load>l): Use ZC constraint.
1592 (mov_<load>r): Likewise.
1593 (mov_<store>l): Likewise.
1594 (mov_<store>r): Likewise.
1595 (*branch_equality<mode>_inverted): Add microMIPS support.
1596 (*branch_equality<mode>): Likewise.
1597 (*jump_absolute): Likewise.
1598 (indirect_jump_<mode>): Likewise.
1599 (tablejump_<mode>): Likewise.
1600 (<optab>_internal): Likewise.
1601 (sibcall_internal): Likewise.
1602 (sibcall_value_internal): Likewise.
1603 (prefetch): Use constraint ZD.
1604 * config/mips/mips.opt (minterlink-compressed): New option.
1605 (minterlink-mips16): Now an alias for minterlink-compressed.
1606 (mmicromips): New option.
1607 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1608 (compare_and_swap_12): Likewise.
1609 (sync_add<mode>): Likewise.
1610 (sync_<optab>_12): Likewise.
1611 (sync_old_<optab>_12): Likewise.
1612 (sync_new_<optab>_12): Likewise.
1613 (sync_nand_12): Likewise.
1614 (sync_old_nand_12): Likewise.
1615 (sync_new_nand_12): Likewise.
1616 (sync_sub<mode>): Likewise.
1617 (sync_old_add<mode>): Likewise.
1618 (sync_old_sub<mode>): Likewise.
1619 (sync_new_add<mode>): Likewise.
1620 (sync_new_sub<mode>): Likewise.
1621 (sync_<optab><mode>): Likewise.
1622 (sync_old_<optab><mode>): Likewise.
1623 (sync_new_<optab><mode>): Likewise.
1624 (sync_nand<mode>): Likewise.
1625 (sync_old_nand<mode>): Likewise.
1626 (sync_new_nand<mode>): Likewise.
1627 (sync_lock_test_and_set<mode>): Likewise.
1628 (test_and_set_12): Likewise.
1629 (atomic_compare_and_swap<mode>): Likewise.
1630 (atomic_exchange<mode>_llsc): Likewise.
1631 (atomic_fetch_add<mode>_llsc): Likewise.
1632 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1633 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1634 (umips_save_restore_pattern_p): Likewise.
1635 (umips_load_store_pair_p): Likewise.
1636 (umips_output_load_store_pair): Likewise.
1637 (umips_movep_target_p): Likewise.
1638 (umips_12bit_offset_address_p): Likewise.
1639 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1640 (mips_base_mips16): Rename this...
1641 (mips_base_compression_flags): ...to this. Update all uses.
1642 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1643 (mips_mips16_decl_p): Delete.
1644 (mips_nomips16_decl_p): Delete.
1645 (mips_get_compress_on_flags): New function.
1646 (mips_get_compress_off_flags): New function.
1647 (mips_get_compress_mode): New function.
1648 (mips_get_compress_on_name): New function.
1649 (mips_get_compress_off_name): New function.
1650 (mips_insert_attributes): Support multiple compression types.
1651 (mips_merge_decl_attributes): Likewise.
1652 (umips_12bit_offset_address_p): New function.
1653 (mips_start_function_definition): Emit .set micromips directive.
1654 (mips_call_may_need_jalx_p): New function.
1655 (mips_function_ok_for_sibcall): Add microMIPS support.
1656 (mips_print_operand_punctuation): Support short delay slots and
1658 (umips_swm_mask, umips_swm_encoding): New.
1659 (umips_build_save_restore): New function.
1660 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1661 (was_mips16_p): Remove.
1662 (old_compression_mode): New.
1663 (mips_set_compression_mode): New function.
1664 (mips_set_current_function): Add microMIPS support.
1665 (mips_option_override): Likewise.
1666 (umips_save_restore_pattern_p): New function.
1667 (umips_output_save_restore): New function.
1668 (umips_load_store_pair_p_1): New function.
1669 (umips_load_store_pair_p): New function.
1670 (umips_output_load_store_pair_1): New function.
1671 (umips_output_load_store_pair): New function.
1672 (umips_movep_target_p) New function.
1673 (mips_prepare_pch_save): Add microMIPS support.
1674 * config/mips/mips.h (TARGET_COMPRESSION): New.
1675 (TARGET_CPU_CPP_BUILTINS): Update macro
1676 to use new compression flags and to support microMIPS.
1677 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1678 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1679 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1680 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1681 (ASM_SPEC): Support mmicromips and mno-micromips.
1682 (M16STORE_REG_P): New macro.
1683 (MIPS_CALL): Support TARGET_MICROMIPS.
1684 (MICROMIPS_J): New macro.
1685 (mips_base_mips16): Rename this...
1686 (mips_base_compression_flags): ...to this.
1687 (UMIPS_12BIT_OFFSET_P): New macro.
1688 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1689 (MULTILIB_DIRNAMES): Likewise.
1690 2013-03-20 Richard Biener <rguenther@suse.de>
1692 PR tree-optimization/56661
1693 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1694 the result does not have to be distinct.
1696 2013-03-20 Richard Biener <rguenther@suse.de>
1698 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1701 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1702 Steven Bosscher <steven@gcc.gnu.org>
1704 PR rtl-optimization/56605
1705 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1707 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1710 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1711 that require movd instead of movq.
1713 2013-03-20 Richard Biener <rguenther@suse.de>
1715 * tree-ssa-structalias.c (struct variable_info): Add pointer
1716 to the first field of an aggregate with sub-vars. Make
1717 this and the pointer to the next subfield its ID.
1718 (vi_next): New function.
1719 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1720 storedanything_id, integer_id): Increment by one.
1721 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1722 get_call_clobber_vi): Adjust.
1723 (solution_set_expand): Simplify and speedup.
1724 (solution_set_add): Inline into ...
1725 (set_union_with_increment): ... this. Adjust accordingly.
1726 (do_sd_constraint): Likewise.
1727 (do_ds_constraint): Likewise.
1728 (do_complex_constraint): Simplify.
1729 (build_pred_graph): Adjust.
1730 (solve_graph): Likewise. Simplify and speedup.
1731 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1732 get_constraint_for_component_ref, get_constraint_for_1,
1733 first_vi_for_offset, first_or_preceding_vi_for_offset,
1734 create_function_info_for, create_variable_info_for_1,
1735 create_variable_info_for, intra_create_variable_infos): Adjust.
1736 (init_base_vars): Push NULL for ID zero.
1737 (compute_points_to_sets): Adjust.
1739 2013-03-20 Richard Biener <rguenther@suse.de>
1741 * cfgloop.c (verify_loop_structure): Streamline and avoid
1742 ICEing on corrupt loop tree.
1743 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1746 2013-03-20 Richard Biener <rguenther@suse.de>
1748 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1749 check whether an SSA update is needed.
1751 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1753 * config/mips/constraints.md (T): Rename to...
1757 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1758 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1760 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1762 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1763 (*subsi3_carryin_uxtw): Likewise.
1765 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1767 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1768 (*rorsi3_insn_uxtw): Likewise.
1770 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1772 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1773 (*extrsi5_insn_uxtw): Likewise.
1775 2013-03-19 Richard Biener <rguenther@suse.de>
1777 PR tree-optimization/56273
1778 * passes.c (init_optimization_passes): Move second VRP after DOM.
1780 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1782 * config/i386/i386.md (*movti_internal): Merge from
1783 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1784 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1785 nox64 isa attributes.
1787 2013-03-18 Richard Biener <rguenther@suse.de>
1789 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1791 (merge_node_constraints): Likewise.
1792 (build_succ_graph): Likewise.
1793 (valid_graph_edge): Inline into single caller.
1794 (unify_nodes): Likewise. Use bitmap_set_bit return value
1796 (scc_visit): Fix formatting and variable use.
1797 (do_sd_constraint): Use gcc_checking_assert.
1798 (do_ds_constraint): Likewise.
1799 (do_complex_constraint): Likewise.
1800 (condense_visit): Likewise. Cleanup.
1801 (dump_pred_graph): New function.
1802 (perform_var_substitution): Dump the pred-graph before
1803 variable substitution.
1804 (find_equivalent_node): Use gcc_checking_assert.
1805 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1807 2013-03-18 Richard Biener <rguenther@suse.de>
1809 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1810 Remove cond_expr_stmt_list argument and do not gimplify the
1812 (vect_loop_versioning): Adjust.
1813 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1814 Cleanup to use less temporaries.
1815 (vect_create_data_ref_ptr): Cleanup.
1817 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1819 PR tree-optimization/56635
1820 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1821 require types_compatible_p types.
1823 2013-03-18 Nick Clifton <nickc@redhat.com>
1825 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1828 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1829 Add missing line to comment describing function.
1831 2013-03-18 Richard Biener <rguenther@suse.de>
1833 PR tree-optimization/56210
1834 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1835 Handle string / character search functions.
1836 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1838 2013-03-18 Richard Biener <rguenther@suse.de>
1841 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1842 and implement properly.
1843 * gimple.h (gimple_cond_single_var_p): Remove.
1845 2013-03-18 Richard Biener <rguenther@suse.de>
1847 * tree-data-ref.h (find_data_references_in_loop): Declare.
1848 * tree-data-ref.c (get_references_in_stmt): Use a stack
1849 vector pre-allocated in the callers.
1850 (find_data_references_in_stmt): Adjust.
1851 (graphite_find_data_references_in_stmt): Likewise.
1852 (create_rdg_vertices): Likewise.
1853 (find_data_references_in_loop): Export.
1854 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1855 Compute dependences here...
1856 (vect_analyze_data_refs): ...not here. When we encounter
1857 a non-vectorizable data reference in basic-block vectorization
1858 truncate the data reference vector. Do not bother to
1859 fixup data-dependence information for gather loads.
1860 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1861 of data references, as reported.
1863 2013-03-18 Richard Biener <rguenther@suse.de>
1865 PR tree-optimization/3713
1866 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1867 has_constants and expr.
1868 (stmt_has_constants): Properly valueize SSA names when deciding
1869 whether the stmt has constants.
1871 2013-03-18 Richard Biener <rguenther@suse.de>
1873 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1874 whole function when there is nothing to do.
1875 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1876 * tree-vectorizer.c (vectorize_loops): Update virtual and
1877 loop-closed SSA once.
1878 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1880 2013-03-18 Richard Biener <rguenther@suse.de>
1883 * domwalk.c (bb_postorder): New global static.
1884 (cmp_bb_postorder): New function.
1885 (walk_dominator_tree): Replace scheme imposing an order for
1886 visiting dominator sons by one sorting them at the time they
1887 are pushed on the stack.
1889 2013-03-18 Richard Biener <rguenther@suse.de>
1891 PR tree-optimization/39326
1892 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1893 (struct mem_ref): Replace mem member with ao_ref typed member.
1894 (MEM_ANALYZABLE): Adjust.
1895 (memref_eq): Likewise.
1896 (mem_ref_alloc): Likewise.
1897 (gather_mem_refs_stmt): Likewise.
1898 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1899 (execute_sm_if_changed_flag_set): Adjust.
1900 (execute_sm): Likewise.
1901 (ref_always_accessed_p): Likewise.
1902 (refs_independent_p): Likewise.
1903 (can_sm_ref_p): Likewise.
1905 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1908 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1909 return 1 even for !unsignedp.
1911 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1913 * config/i386/i386.md (isa): Add x64 and nox64.
1914 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1915 (*pushtf): Enable *roF alternative for x64 isa only.
1916 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1917 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1918 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1919 (*movtf_internal): Merge from *movtf_internal_rex64 and
1920 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1921 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1922 nox64 isa attributes.
1923 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1924 nox64 isa attributes.
1925 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1927 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1929 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1931 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1934 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1935 class names. Remove trailing comma after "ALL_REGS".
1937 2013-03-16 Jan Hubicka <jh@suse.cz>
1939 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1940 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1941 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1942 of cgraph_get_create_node.
1943 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1945 2013-03-16 Jason Merrill <jason@redhat.com>
1948 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1949 with DW_AT_default_value.
1951 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1953 * BASE-VER: Set to 4.9.0.
1955 2013-03-14 Andi Kleen <ak@linux.intel.com>
1958 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1959 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1960 Document _x* TSX intrinsics.
1962 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1963 David Holsgrove <david.holsgrove@xilinx.com>
1965 * configure.ac: Add MicroBlaze TLS support detection.
1966 * configure: Regenerate.
1967 * config/microblaze/microblaze-protos.h
1968 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1969 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1970 * config/microblaze/microblaze.c (microblaze_address_type): Add
1971 ADDRESS_TLS and tls_reloc address types.
1972 (microblaze_address_info): Add tls_reloc.
1973 (TARGET_HAVE_TLS): Define.
1974 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1975 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1976 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1977 load_tls_operand, microblaze_call_tls_get_addr,
1978 microblaze_legitimize_tls_address): New functions.
1979 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1980 (get_base_reg): Use microblaze_tls_symbol_p.
1981 (microblaze_classify_address): Handle TLS.
1982 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1983 label_mentioned_p and microblaze_tls_referenced_p.
1984 (microblaze_legitimize_address): Handle TLS.
1985 (microblaze_address_insns): Handle ADDRESS_TLS.
1986 (pic_address_needs_scratch): Handle TLS.
1987 (print_operand_address): Handle TLS.
1988 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1989 (microblaze_expand_move): Handle TLS.
1990 (microblaze_legitimate_constant_p): Check
1991 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1992 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1993 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1994 (PIC_OFFSET_TABLE_REGNUM): Set.
1995 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1996 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1997 (addsi3, movsi_internal2, movdf_internal): Update constraints
1998 * config/microblaze/predicates.md (arith_plus_operand): Define
1999 (move_operand): Redefine as move_src_operand,
2000 check microblaze_tls_referenced_p.
2002 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2004 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2005 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2007 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2009 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2012 2013-03-14 Jakub Jelinek <jakub@redhat.com>
2014 PR tree-optimization/53265
2015 * common.opt (Waggressive-loop-optimizations): New option.
2016 * tree-ssa-loop-niter.c: Include tree-pass.h.
2017 (do_warn_aggressive_loop_optimizations): New function.
2018 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
2019 if number_of_latch_executions returned constant.
2020 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2021 early. If number_of_latch_executions returned constant, set
2022 nb_iterations_upper_bound back to it.
2023 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2025 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2026 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2028 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2029 (MULTILIB_OSDIRNAMES): Set.
2030 * genmultilib: If defaultosdirname doesn't start with :: , set
2031 defaultosdirname2 instead, clear it and emit two . multilib_raw
2032 entries instead of just one.
2034 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
2036 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2037 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2038 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2039 (SUBTARGET_OVERRIDE_OPTIONS): New.
2041 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
2044 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2045 (musermode): Convert to Var(TARGET_USERMODE).
2046 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2047 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2048 * config/sh/sh.c (sh_option_override): Use
2049 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2050 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2052 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2054 (udivsi3_i4_single, divsi3_i4_single): Use
2055 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2057 2013-03-13 Dave Korn <dave.korn.cygwin@....>
2059 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2062 2013-03-13 Richard Biener <rguenther@suse.de>
2064 PR tree-optimization/56608
2065 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2066 calls when vectorizing basic-blocks.
2068 2013-03-13 Jakub Jelinek <jakub@redhat.com>
2071 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2074 2013-03-12 Jakub Jelinek <jakub@redhat.com>
2076 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2078 2013-03-11 Jan Hubicka <jh@suse.cz>
2081 * lto-streamer-out.c (output_symbol_p): Skip references from
2082 constructors of external variables.
2084 2013-03-11 Jan Hubicka <jh@suse.cz>
2087 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2089 * emit-rtl.c (verify_rtx_sharing): Likewise.
2090 (copy_insn_1): Likewise.
2091 * rtl.c (copy_rtx): Likewise.
2093 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
2096 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2097 output_operand_lossage message.
2099 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
2102 * arm.c (shift_op): Validate RTL pattern on the fly.
2103 (arm_print_operand, case 'S'): Don't use shift_operator to validate
2106 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2109 * config/pa/pa.md (call_value): Check for calls to powf and direct to
2110 new call patterns that clobber %fr12.
2111 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
2112 split and postreload patterns.
2113 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
2114 registers %fr12 and %fr12R as call used.
2116 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
2118 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
2119 (canon_address, record_store, replace_read, check_mem_read_rtx,
2120 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
2121 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
2122 rest_of_handle_dse): Likewise.
2124 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2127 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
2129 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
2130 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
2131 (save_optabs_if_changed): Replace with...
2132 (init_tree_optimization_optabs): ...this.
2133 * optabs.c (save_optabs_if_changed): Rename to...
2134 (init_tree_optimization_optabs): ...this. Take the optimization node
2135 as argument. Do nothing if the base optabs are already correct.
2136 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
2137 to recompute optabs.
2138 * function.h (function): Remove optabs field.
2139 * function.c (invoke_set_current_function_hook): Call
2140 init_tree_optimization_optabs. Use the result to initialize
2143 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
2145 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
2146 if GTMA_HAS_NO_INSTRUMENTATION.
2147 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
2148 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
2149 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
2150 * gimple-pretty-print.c (dump_gimple_transaction): Handle
2151 GTMA_HAS_NO_INSTRUMENTATION.
2153 2013-03-08 Jakub Jelinek <jakub@redhat.com>
2155 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
2158 2013-03-08 Marek Polacek <polacek@redhat.com>
2159 Jakub Jelinek <jakub@redhat.com>
2161 PR tree-optimization/56478
2162 * predict.c (is_comparison_with_loop_invariant_p): Change the
2163 type of loop_step to tree.
2164 (predict_loops): Adjust.
2165 (predict_iv_comparison): Perform the computations on double_ints.
2167 2013-03-08 Richard Biener <rguenther@suse.de>
2169 PR tree-optimization/56570
2170 * tree-cfg.c (verify_expr_location_1): Verify locations for
2172 * tree-sra.c (create_access_replacement): Strip locations
2173 from DECL_DEBUG_EXPRs.
2175 2013-03-08 Richard Biener <rguenther@suse.de>
2177 * tree-inline.c (expand_call_inline): Do not associate
2178 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
2179 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
2181 2013-03-08 Richard Biener <rguenther@suse.de>
2183 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
2184 or block changes with -Og. Fix for location / block encoding
2185 changes and PHI arguments with locations.
2187 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
2189 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
2191 (struct output_info): Likewise.
2192 (register_overhead): Remove bad gcc_assert.
2193 (bitmap_find_bit): If there is only a single bitmap element, do not
2194 count a miss as a search.
2195 (print_statistics): Update for counter type changes.
2196 (dump_bitmap_statistics): Likewise. Print headers such that they
2197 are properly lined up with the printed counters.
2199 2013-03-07 Jakub Jelinek <jakub@redhat.com>
2201 PR tree-optimization/56559
2202 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
2203 check that it has only a single use.
2205 2013-03-07 Richard Biener <rguenther@suse.de>
2207 * doc/invoke.texi (fwhole-program): Discourage use in combination
2210 2013-03-06 Jakub Jelinek <jakub@redhat.com>
2212 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
2214 PR tree-optimization/56539
2215 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
2216 instead of GSI_CONTINUE_LINKING as last argument to
2217 force_gimple_operand_gsi. Adjust function comment.
2219 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
2223 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
2224 promoted mode, convert the result back to the original mode.
2226 2013-03-06 Richard Biener <rguenther@suse.de>
2229 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
2230 (insert_updated_phi_nodes_compare_uids): New function.
2231 (update_ssa): Sort symbols_to_rename after UID before
2232 traversing it to insert PHI nodes.
2234 2013-03-06 Richard Biener <rguenther@suse.de>
2237 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2238 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2241 2013-02-13 Richard Biener <rguenther@suse.de>
2244 * varasm.c (output_constant_def_1): Get the decl representing
2245 the constant as argument.
2246 (output_constant_def): Wrap output_constant_def_1.
2247 (make_decl_rtl): Use output_constant_def_1 with the decl
2248 representing the constant.
2249 (build_constant_desc): Optionally re-use a decl already
2250 representing the constant.
2251 (tree_output_constant_def): Adjust.
2253 2013-03-06 Joey Ye <joey.ye@arm.com>
2256 * gcc.c (convert_white_space): New function.
2257 (main): Handles white space in function name.
2259 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2262 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2263 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
2264 to SH_DIV_CALL_TABLE for TARGET_SH2.
2265 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2267 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2270 2013-03-05 Sterling Augustine <saugustine@google.com>
2271 Cary Coutant <ccoutant@google.com>
2274 * dwarf2out.c (resolve_addr): Don't call
2275 remove_loc_list_addr_table_entries a second time for the same
2278 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2281 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2282 (avoid_complex_debug_insns): New function.
2283 (expand_debug_locations): Call it.
2285 PR rtl-optimization/56484
2286 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2287 lifetimes of hard registers on small register class machines.
2289 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2291 * config/microblaze/microblaze-protos.h: Rename
2292 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
2293 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
2295 (microblaze_fast_interrupt_function_p): New function.
2296 (microblaze_is_interrupt_handler): Rename to
2297 microblaze_is_interrupt_variant and add fast_interrupt check.
2298 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2299 (save_restore_insns): Likewise.
2300 (compute_frame_size): Likewise.
2301 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2302 (microblaze_globalize_label): Likewise.
2303 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2304 * config/microblaze/microblaze.md: Use wrapper
2305 microblaze_is_interrupt_variant.
2307 2013-03-05 Kai Tietz <ktietz@redhat.com>
2309 * sdbout.c (sdbout_one_type): Switch to current function's section
2310 supporting cold/hot.
2312 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2314 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2317 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2320 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2321 if VALGRIND_GET_VBITS is defined, temporarily make object
2322 memory all defined, and restore previous valgrind addressability
2323 and definability afterwards. Free this_object at the end.
2326 * lra.c (lra): Call lra_clear_live_ranges if live_p,
2327 right before calling lra_create_live_ranges, also call it
2328 when clearing live_p. Only call lra_clear_live_ranges
2329 at the end if live_p.
2332 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2334 2013-03-05 Richard Biener <rguenther@suse.de>
2336 PR tree-optimization/56521
2337 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2340 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
2343 * except.h (remove_unreachable_eh_regions): New prototype.
2344 * except.c (remove_eh_handler_splicer): New function, split out
2345 of remove_eh_handler.
2346 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
2347 warning about running it on many EH regions one at a time.
2348 (remove_unreachable_eh_regions_worker): New function, walk the
2349 EH tree in depth-first order and remove non-marked regions.
2350 (remove_unreachable_eh_regions): New function.
2351 * tree-eh.c (mark_reachable_handlers): New function, split out
2352 from remove_unreachable_handlers.
2353 (remove_unreachable_handlers): Use mark_reachable_handlers and
2354 remove_unreachable_eh_regions.
2355 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2356 and remove_unreachable_eh_regions.
2358 2013-03-05 Richard Biener <rguenther@suse.de>
2361 * loop-init.c (fix_loop_structure): Remove loops in two stages,
2362 not freeing them until the end.
2364 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2366 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2368 2013-03-05 Richard Biener <rguenther@suse.de>
2370 PR tree-optimization/56270
2371 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2372 of loads after scheduling an SLP instance.
2374 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2376 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2378 (check_gcc_parallelize): Run guality.exp as a separate job from
2379 vect.exp with unsorted.exp and $(dg_target_exps) separately from
2380 struct-layout-1.exp with stackalign.exp.
2382 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2385 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2386 load_index sbitmap even if some bit in it isn't set.
2389 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2390 (discover_iteration_bound_by_body_walk): Change queues to
2391 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
2392 spelling in comment. Call safe_push on queues[bound_index] directly.
2393 Release queues[queue_index] in every iteration unconditionally.
2394 Release bounds vector.
2397 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2398 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2399 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2402 2013-03-05 Richard Biener <rguenther@suse.de>
2405 * tree-inline.c (remap_blocks_to_null): New function.
2406 (expand_call_inline): When expanding a call stmt without
2407 an associated block inline remap all callee blocks to NULL.
2409 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2411 PR rtl-optimization/56494
2412 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2413 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2414 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2417 * sel-sched-ir.c (free_sched_pools): Release
2418 succs_info_pool.stack[succs_info_pool.max_top] vectors too
2419 if succs_info_pool.max_top isn't -1.
2422 * opts.c (opts_obstack, opts_concat): Moved to...
2423 * opts-common.c (opts_obstack, opts_concat): ... here.
2425 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2428 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2430 2013-03-04 Martin Jambor <mjambor@suse.cz>
2432 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2433 all appropriate places.
2435 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
2437 PR tree-optimization/56424
2438 * ipa-split.c (split_function): Do not set the RSO flag if result is
2439 not by reference and its type is a register type.
2441 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
2443 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
2444 (microblaze_legitimate_pic_operand): Likewise
2445 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
2446 new function microblaze_legitimate_pic_operand
2447 * config/microblaze/microblaze-protos.h
2448 (microblaze_legitimate_pic_operand): Declare.
2450 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2452 * config/microblaze/predicates.md (call_insn_simple_operand):
2453 New predicate for supported rtx code types.
2454 * config/microblaze/microblaze.md (call_internal1): Use
2455 call_insn_simple_operand predicate.
2457 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2460 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2461 partitions.ordered_remove.
2464 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2465 vec_oprnds0.create (1) for modifier == NONE.
2468 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2469 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2470 vec_oprnds1 right before pushing anything to it for
2474 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2475 set nbbs to 0 instead of having separate code path.
2476 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2477 instead of false as last argument if returning NULL.
2479 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2481 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2482 the attribute is now called "target" instead of "option".
2483 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2484 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2485 attribute/pragma name for TARGET_OPTION_VALID_P and
2486 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2487 * doc/tm.texi: Regenerated.
2489 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2491 * config/microblaze/microblaze.c:
2492 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2493 * config/microblaze/microblaze.h: Add -mxl-reorder to
2495 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2496 instructions emitted if TARGET_REORDER.
2497 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2498 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2501 2013-03-01 Xinliang David Li <davidxl@google.com>
2503 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2506 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2510 vector even when returning true. Fix up function comment formatting.
2513 * ira-build.c (ira_loop_nodes_count): New variable.
2514 (create_loop_tree_nodes): Initialize it.
2515 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2518 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2519 method on dr_chain and result_chain.
2520 * tree-vect-stmts.c (vectorizable_store): Only call
2521 result_chain.create if j == 0.
2524 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2525 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2526 before overwriting it.
2528 2013-03-01 Tobias Burnus <burnus@net-b.de>
2530 * doc/extended.texi (C Extensions): Change order in @menu
2532 (Other MIPS Built-in Functions): Move last MIPS entry before
2533 "picoChip Built-in Functions".
2534 (SH Built-in Functions): Move after RX Built-in Functions.
2535 * doc/gcc.texi (Introduction): Change order in @menu
2537 * doc/md.texi (Constraints): Ditto.
2538 * gty.texi (Type Information): Ditto.
2539 (User-provided marking routines for template types): Make
2541 * doc/invoke.texi (AArch64 Options): Move before
2542 "Adapteva Epiphany Options".
2544 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2545 Jakub Jelinek <jakub@redhat.com>
2548 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2549 no_address_safety_analysis attribute.
2550 * doc/extend.texi (no_address_safety_attribute): Rename to
2551 no_sanitize_address attribute, mention no_address_safety_analysis
2552 attribute as deprecated alias.
2554 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2557 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2558 type to vec<vec<tree> > *.
2559 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2560 to be vec<tree> instead of vec<tree> *, set vec_defs
2561 to vNULL and call vec_defs.create (number_of_vects), adjust other
2563 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2564 vectorizable_condition): Adjust vect_get_slp_defs callers.
2566 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2568 * config/aarch64/aarch64.c
2569 (aarch64_float_const_representable): Remove unused variable.
2571 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2573 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2575 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2577 * config/aarch64/aarch64-builtins.c
2578 (aarch64_init_simd_builtins): Make static.
2580 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2582 * config/aarch64/aarch64.c
2583 (aarch64_simd_make_constant): Make static.
2585 2013-02-28 Martin Jambor <mjambor@suse.cz>
2587 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2588 with no initialization to the RHS of debug statements.
2590 2013-02-28 Martin Jambor <mjambor@suse.cz>
2592 PR tree-optimization/56294
2593 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2595 (get_access_replacement): Do not call create_access_replacement.
2596 Assert a replacement exists.
2597 (get_repl_default_def_ssa_name): Create the replacement declaration
2600 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2602 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2605 2013-02-28 Marek Polacek <polacek@redhat.com>
2607 PR rtl-optimization/56466
2608 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2609 if we're changing a loop.
2610 (peel_loops_completely): Likewise.
2612 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2615 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2617 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2620 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2621 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2622 INTX_FTYPE_FX, FX_FTYPE_INTX.
2623 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2625 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2627 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2628 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2629 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2630 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2631 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2632 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2633 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2634 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2635 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2636 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2637 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2638 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2639 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2640 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2641 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2642 (avrxmega6): Increase max flash segments from 5 to 6.
2643 * config/avr/t-multilib: Regenerate.
2644 * config/avr/avr-tables.opt: Regenerate.
2645 * doc/avr-mmcu.texi: Regenerate.
2647 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2649 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2650 (avr_device_to_arch): Rename to avr_device_to_ld.
2651 (avr_device_to_as): New prototype.
2652 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2653 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2654 * config/avr/driver-avr.c (avr_device_to_as): New.
2655 (avr_device_to_arch): Rename to avr_device_to_ld.
2657 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2660 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2661 method on dr_chain and result_chain.
2664 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2665 pointer_set_destroy on not_executed_last_iteration.
2668 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2671 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2672 FOR_EACH_DEFINED_FUNCTION when freeing state.
2675 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2677 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2681 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2682 known_aggs[i].items and release known_aggs vector.
2685 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2687 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2689 * config/microblaze/microblaze.c (microblaze_emit_compare):
2690 Use xor for EQ/NE comparisions.
2691 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2692 (cbranchsf4): Adjust operator to comparison_operator.
2694 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2697 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2699 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2700 vec_safe_push, always update *slot.
2701 (redirect_edge_var_map_clear): Use vec_free.
2702 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2703 (free_var_map_entry): Use vec_free.
2704 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2705 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2707 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2710 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2711 when the may_trap_p bit of the exprs being merged differs.
2712 Reorder tests for speculativeness in the logical and operator.
2714 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2716 * incpath.c (add_standard_paths): Use reconcat instead of concat
2717 where appropriate and avoid leaking memory.
2719 * opts.h: Include obstack.h.
2720 (opts_concat): New prototype.
2721 (opts_obstack): New declaration.
2722 * opts.c (opts_concat): New function.
2723 (opts_obstack): New variable.
2724 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2725 (finish_options): Use opts_concat instead of concat
2726 and XOBNEWVEC instead of XNEWVEC.
2727 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2728 generate_option): Likewise.
2729 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2730 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2733 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2734 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2736 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2739 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2741 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2743 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2744 (arm_block_move_unaligned_straight): Likewise.
2745 (arm_adjust_block_mem): Likewise.
2747 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2750 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2751 temp, cond and label.
2752 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2755 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2756 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2759 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2760 of prologue/epilogue functions.
2763 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2764 Remove unused variable cfa_offset.
2765 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2768 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2769 type promotion to unsigned.
2772 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2773 for HOST_WIDE_INT of 32 bit / same size as int.
2774 (arm_block_move_unaligned_straight): Likewise.
2775 (arm_adjust_block_mem): Likewise.
2778 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2781 2013-02-26 Marek Polacek <polacek@redhat.com>
2783 PR tree-optimization/56426
2784 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2786 2013-02-26 Richard Biener <rguenther@suse.de>
2789 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2790 unused variable loops.
2792 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2794 PR tree-optimization/56448
2795 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2796 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2797 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2798 later operands of the references, or even first operand for
2799 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2801 PR tree-optimization/56443
2802 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2803 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2804 to type_for_mode langhook.
2806 2013-02-25 Matt Turner <mattst88@gmail.com>
2808 * doc/invoke.texi: Document r4700.
2810 2013-02-25 Richard Biener <rguenther@suse.de>
2812 PR tree-optimization/56175
2813 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2815 (simplify_bitwise_binary): ... here. Also guard the conversion
2816 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2818 2013-02-25 Catherine Moore <clm@codesourcery.com>
2821 2013-02-24 Catherine Moore <clm@codesourcery.com>
2822 Maciej W. Rozycki <macro@codesourcery.com>
2823 Tom de Vries <tom@codesourcery.com>
2824 Nathan Sidwell <nathan@codesourcery.com>
2825 Iain Sandoe <iain@codesourcery.com>
2826 Nathan Froyd <froydnj@codesourcery.com>
2827 Chao-ying Fu <fu@mips.com>
2829 * doc/extend.texi: (micromips, nomicromips, nocompression):
2830 Document new function attributes.
2831 * doc/invoke.texi (minterlink-compressed, mmicromips,
2832 m14k, m14ke, m14kec): Document new options.
2833 (minterlink-mips16): Update documentation.
2834 * doc/md.texi (ZC, ZD): Document new constraints.
2835 * configure.ac (gcc_cv_as_micromips): Check if linker
2836 supports the .set micromips directive.
2837 * configure: Regenerate.
2838 * config.in: Regenerate.
2839 * config/mips/mips-tables.opt: Regenerate.
2840 * config/mips/micromips.md: New file.
2841 * constraints.md (ZC, AD): New constraints.
2842 * config/mips/predicates.md (movep_src_register): New predicate.
2843 (movep_src_operand): New predicate.
2844 (non_volatile_mem_operand): New predicate.
2845 * config/mips/mips.md (multimem): New type.
2846 (length): Differentiate between 17-bit and 18-bit branch offsets.
2847 (MOVEP1, MOVEP2): New mode iterator.
2848 (mov_<load>l): Use ZC constraint.
2849 (mov_<load>r): Likewise.
2850 (mov_<store>l): Likewise.
2851 (mov_<store>r): Likewise.
2852 (*branch_equality<mode>_inverted): Add microMIPS support.
2853 (*branch_equality<mode>): Likewise.
2854 (*jump_absolute): Likewise.
2855 (indirect_jump_<mode>): Likewise.
2856 (tablejump_<mode>): Likewise.
2857 (<optab>_internal): Likewise.
2858 (sibcall_internal): Likewise.
2859 (sibcall_value_internal): Likewise.
2860 (prefetch): Use constraint ZD.
2861 * config/mips/mips.opt (minterlink-compressed): New option.
2862 (minterlink-mips16): Now an alias for minterlink-compressed.
2863 (mmicromips): New option.
2864 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2865 (compare_and_swap_12): Likewise.
2866 (sync_add<mode>): Likewise.
2867 (sync_<optab>_12): Likewise.
2868 (sync_old_<optab>_12): Likewise.
2869 (sync_new_<optab>_12): Likewise.
2870 (sync_nand_12): Likewise.
2871 (sync_old_nand_12): Likewise.
2872 (sync_new_nand_12): Likewise.
2873 (sync_sub<mode>): Likewise.
2874 (sync_old_add<mode>): Likewise.
2875 (sync_old_sub<mode>): Likewise.
2876 (sync_new_add<mode>): Likewise.
2877 (sync_new_sub<mode>): Likewise.
2878 (sync_<optab><mode>): Likewise.
2879 (sync_old_<optab><mode>): Likewise.
2880 (sync_new_<optab><mode>): Likewise.
2881 (sync_nand<mode>): Likewise.
2882 (sync_old_nand<mode>): Likewise.
2883 (sync_new_nand<mode>): Likewise.
2884 (sync_lock_test_and_set<mode>): Likewise.
2885 (test_and_set_12): Likewise.
2886 (atomic_compare_and_swap<mode>): Likewise.
2887 (atomic_exchange<mode>_llsc): Likewise.
2888 (atomic_fetch_add<mode>_llsc): Likewise.
2889 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2890 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2891 (umips_save_restore_pattern_p): Likewise.
2892 (umips_load_store_pair_p): Likewise.
2893 (umips_output_load_store_pair): Likewise.
2894 (umips_movep_target_p): Likewise.
2895 (umips_12bit_offset_address_p): Likewise.
2896 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2897 (mips_base_mips16): Rename this...
2898 (mips_base_compression_flags): ...to this. Update all uses.
2899 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2900 (mips_mips16_decl_p): Delete.
2901 (mips_nomips16_decl_p): Delete.
2902 (mips_get_compress_on_flags): New function.
2903 (mips_get_compress_off_flags): New function.
2904 (mips_get_compress_mode): New function.
2905 (mips_get_compress_on_name): New function.
2906 (mips_get_compress_off_name): New function.
2907 (mips_insert_attributes): Support multiple compression types.
2908 (mips_merge_decl_attributes): Likewise.
2909 (umips_12bit_offset_address_p): New function.
2910 (mips_start_function_definition): Emit .set micromips directive.
2911 (mips_call_may_need_jalx_p): New function.
2912 (mips_function_ok_for_sibcall): Add microMIPS support.
2913 (mips_print_operand_punctuation): Support short delay slots and
2915 (umips_swm_mask, umips_swm_encoding): New.
2916 (umips_build_save_restore): New function.
2917 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2918 (was_mips16_p): Remove.
2919 (old_compression_mode): New.
2920 (mips_set_compression_mode): New function.
2921 (mips_set_current_function): Add microMIPS support.
2922 (mips_option_override): Likewise.
2923 (umips_save_restore_pattern_p): New function.
2924 (umips_output_save_restore): New function.
2925 (umips_load_store_pair_p_1): New function.
2926 (umips_load_store_pair_p): New function.
2927 (umips_output_load_store_pair_1): New function.
2928 (umips_output_load_store_pair): New function.
2929 (umips_movep_target_p) New function.
2930 (mips_prepare_pch_save): Add microMIPS support.
2931 * config/mips/mips.h (TARGET_COMPRESSION): New.
2932 (TARGET_CPU_CPP_BUILTINS): Update macro
2933 to use new compression flags and to support microMIPS.
2934 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2935 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2936 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2937 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2938 (ASM_SPEC): Support mmicromips and mno-micromips.
2939 (M16STORE_REG_P): New macro.
2940 (MIPS_CALL): Support TARGET_MICROMIPS.
2941 (MICROMIPS_J): New macro.
2942 (mips_base_mips16): Rename this...
2943 (mips_base_compression_flags): ...to this.
2944 (UMIPS_12BIT_OFFSET_P): New macro.
2945 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2946 (MULTILIB_DIRNAMES): Likewise.
2948 2013-02-25 Tom de Vries <tom@codesourcery.com>
2950 PR rtl-optimization/56131
2951 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2952 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2953 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2955 2013-02-25 Tobias Burnus <burnus@net-b.de>
2957 * doc/invoke.texi (-fsanitize=): Move from optimization
2958 to debugging options.
2960 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2962 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2964 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2965 Alexander Monakov <amonakov@ispras.ru>
2968 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2969 flush pending lists also on non-jumps. Adjust comment.
2971 2013-02-24 Catherine Moore <clm@codesourcery.com>
2972 Maciej W. Rozycki <macro@codesourcery.com>
2973 Tom de Vries <tom@codesourcery.com>
2974 Nathan Sidwell <nathan@codesourcery.com>
2975 Iain Sandoe <iain@codesourcery.com>
2976 Nathan Froyd <froydnj@codesourcery.com>
2977 Chao-ying Fu <fu@mips.com>
2979 * doc/extend.texi: (micromips, nomicromips, nocompression):
2980 Document new function attributes.
2981 * doc/invoke.texi (minterlink-compressed, mmicromips,
2982 m14k, m14ke, m14kec): Document new options.
2983 (minterlink-mips16): Update documentation.
2984 * doc/md.texi (ZC, ZD): Document new constraints.
2985 * configure.ac (gcc_cv_as_micromips): Check if linker
2986 supports the .set micromips directive.
2987 * configure: Regenerate.
2988 * config.in: Regenerate.
2989 * config/mips/mips-tables.opt: Regenerate.
2990 * config/mips/micromips.md: New file.
2991 * constraints.md (ZC, AD): New constraints.
2992 * config/mips/predicates.md (movep_src_register): New predicate.
2993 (movep_src_operand): New predicate.
2994 (non_volatile_mem_operand): New predicate.
2995 * config/mips/mips.md (multimem): New type.
2996 (length): Differentiate between 17-bit and 18-bit branch offsets.
2997 (MOVEP1, MOVEP2): New mode iterator.
2998 (mov_<load>l): Use ZC constraint.
2999 (mov_<load>r): Likewise.
3000 (mov_<store>l): Likewise.
3001 (mov_<store>r): Likewise.
3002 (*branch_equality<mode>_inverted): Add microMIPS support.
3003 (*branch_equality<mode>): Likewise.
3004 (*jump_absolute): Likewise.
3005 (indirect_jump_<mode>): Likewise.
3006 (tablejump_<mode>): Likewise.
3007 (<optab>_internal): Likewise.
3008 (sibcall_internal): Likewise.
3009 (sibcall_value_internal): Likewise.
3010 (prefetch): Use constraint ZD.
3011 * config/mips/mips.opt (minterlink-compressed): New option.
3012 (minterlink-mips16): Now an alias for minterlink-compressed.
3013 (mmicromips): New option.
3014 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3015 (compare_and_swap_12): Likewise.
3016 (sync_add<mode>): Likewise.
3017 (sync_<optab>_12): Likewise.
3018 (sync_old_<optab>_12): Likewise.
3019 (sync_new_<optab>_12): Likewise.
3020 (sync_nand_12): Likewise.
3021 (sync_old_nand_12): Likewise.
3022 (sync_new_nand_12): Likewise.
3023 (sync_sub<mode>): Likewise.
3024 (sync_old_add<mode>): Likewise.
3025 (sync_old_sub<mode>): Likewise.
3026 (sync_new_add<mode>): Likewise.
3027 (sync_new_sub<mode>): Likewise.
3028 (sync_<optab><mode>): Likewise.
3029 (sync_old_<optab><mode>): Likewise.
3030 (sync_new_<optab><mode>): Likewise.
3031 (sync_nand<mode>): Likewise.
3032 (sync_old_nand<mode>): Likewise.
3033 (sync_new_nand<mode>): Likewise.
3034 (sync_lock_test_and_set<mode>): Likewise.
3035 (test_and_set_12): Likewise.
3036 (atomic_compare_and_swap<mode>): Likewise.
3037 (atomic_exchange<mode>_llsc): Likewise.
3038 (atomic_fetch_add<mode>_llsc): Likewise.
3039 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3040 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3041 (umips_save_restore_pattern_p): Likewise.
3042 (umips_load_store_pair_p): Likewise.
3043 (umips_output_load_store_pair): Likewise.
3044 (umips_movep_target_p): Likewise.
3045 (umips_12bit_offset_address_p): Likewise.
3046 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3047 (mips_base_mips16): Rename this...
3048 (mips_base_compression_flags): ...to this. Update all uses.
3049 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3050 (mips_mips16_decl_p): Delete.
3051 (mips_nomips16_decl_p): Delete.
3052 (mips_get_compress_on_flags): New function.
3053 (mips_get_compress_off_flags): New function.
3054 (mips_get_compress_mode): New function.
3055 (mips_get_compress_on_name): New function.
3056 (mips_get_compress_off_name): New function.
3057 (mips_insert_attributes): Support multiple compression types.
3058 (mips_merge_decl_attributes): Likewise.
3059 (umips_12bit_offset_address_p): New function.
3060 (mips_start_function_definition): Emit .set micromips directive.
3061 (mips_call_may_need_jalx_p): New function.
3062 (mips_function_ok_for_sibcall): Add microMIPS support.
3063 (mips_print_operand_punctuation): Support short delay slots and
3065 (umips_swm_mask, umips_swm_encoding): New.
3066 (umips_build_save_restore): New function.
3067 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3068 (was_mips16_p): Remove.
3069 (old_compression_mode): New.
3070 (mips_set_compression_mode): New function.
3071 (mips_set_current_function): Add microMIPS support.
3072 (mips_option_override): Likewise.
3073 (umips_save_restore_pattern_p): New function.
3074 (umips_output_save_restore): New function.
3075 (umips_load_store_pair_p_1): New function.
3076 (umips_load_store_pair_p): New function.
3077 (umips_output_load_store_pair_1): New function.
3078 (umips_output_load_store_pair): New function.
3079 (umips_movep_target_p) New function.
3080 (mips_prepare_pch_save): Add microMIPS support.
3081 * config/mips/mips.h (TARGET_COMPRESSION): New.
3082 (TARGET_CPU_CPP_BUILTINS): Update macro
3083 to use new compression flags and to support microMIPS.
3084 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3085 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3086 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3087 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3088 (ASM_SPEC): Support mmicromips and mno-micromips.
3089 (M16STORE_REG_P): New macro.
3090 (MIPS_CALL): Support TARGET_MICROMIPS.
3091 (MICROMIPS_J): New macro.
3092 (mips_base_mips16): Rename this...
3093 (mips_base_compression_flags): ...to this.
3094 (UMIPS_12BIT_OFFSET_P): New macro.
3095 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3096 (MULTILIB_DIRNAMES): Likewise.
3098 2013-02-24 Jakub Jelinek <jakub@redhat.com>
3101 * target-globals.c (save_target_globals): For init_reg_sets and
3102 target_reinit remporarily set this_fn_optabs to this_target_optabs.
3104 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
3106 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
3107 * config/aarch64/t-aarch64
3108 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
3110 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
3113 * lra-constraints.c (process_alt_operands): Reload operand
3114 conflicting with earlier clobber only if no more other conflicting
3117 2013-02-22 Jakub Jelinek <jakub@redhat.com>
3120 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
3121 if not linking a shared library.
3123 2013-02-22 Seth LaForge <sethml@google.com>
3125 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
3127 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
3129 * config/arm/arm.md (split for extendsidi): Update condition.
3130 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
3131 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
3132 (qhs_zextenddi_cstr): Likewise.
3134 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3137 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
3138 avoid signed wrapping.
3139 (expand_mult): Handle properly multiplication by
3140 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
3141 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
3142 in the compiler if coeff is HOST_WIDE_INT_MIN.
3143 (expand_divmod): Don't make ext_op1 static, change it's type to
3144 uhwi. Avoid undefined behavior in -INTVAL (op1).
3146 PR rtl-optimization/50339
3147 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
3149 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
3150 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
3151 into splitting_ashiftrt field.
3152 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
3154 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
3157 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
3160 * trans-mem.c (execute_tm_mark): Do not expand transactions that
3161 are sure to go irrevocable.
3163 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
3165 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
3166 scalars are valid operands.
3168 2013-02-21 Martin Jambor <mjambor@suse.cz>
3170 PR tree-optimization/56310
3171 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
3172 only matching indices and non-negative final offsets.
3173 (intersect_aggregates_with_edge): Pass src_idx to
3174 agg_replacements_to_vector. Pass src_idx insstead of index to
3175 intersect_with_agg_replacements.
3177 2013-02-21 Martin Jambor <mjambor@suse.cz>
3179 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
3180 instead of hard-wired defaults.
3182 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
3184 * doc/invoke.texi (MIPS Options): Update documentation of the
3185 floating-point multiply-accumulate instruction restrictions.
3187 2013-02-21 Kostya Serebryany <kcc@google.com>
3189 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
3190 asan_shadow_offset on x86_64 linux.
3192 2013-02-21 Richard Biener <rguenther@suse.de>
3194 PR tree-optimization/56415
3196 2013-02-11 Richard Biener <rguenther@suse.de>
3198 PR tree-optimization/56273
3199 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3202 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3205 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
3209 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
3210 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
3212 2013-02-20 Jan Hubicka <jh@suse.cz>
3214 PR tree-optimization/56265
3215 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
3216 when target is referenced for first time.
3218 2013-02-20 Richard Biener <rguenther@suse.de>
3220 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
3221 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
3222 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3223 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
3224 not return anything.
3225 (rename_ssa_copies): Do not remove unused locals.
3226 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
3227 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
3228 * passes.c (execute_function_todo): Do not schedule unused locals
3229 removal if cleanup_tree_cfg did something.
3230 * tree-ssa-live.c (remove_unused_locals): Dump statistics
3231 about the number of removed locals.
3233 2013-02-20 Richard Biener <rguenther@suse.de>
3235 PR tree-optimization/56398
3236 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
3238 2013-02-20 Martin Jambor <mjambor@suse.cz>
3240 PR tree-optimization/55334
3241 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3242 restricted pointers to arrays.
3244 2013-02-20 Richard Biener <rguenther@suse.de>
3245 Jakub Jelinek <jakub@redhat.com>
3247 PR tree-optimization/56396
3248 * tree-ssa-ccp.c (n_const_val): New static variable.
3249 (get_value): Return NULL for SSA names we don't have a lattice
3251 (ccp_initialize): Initialize n_const_val.
3252 * tree-ssa-copy.c (n_copy_of): New static variable.
3253 (init_copy_prop): Initialize n_copy_of.
3254 (get_value): Return NULL_TREE for SSA names we don't have a
3257 2013-02-20 Martin Jambor <mjambor@suse.cz>
3259 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3261 2013-02-20 Richard Biener <rguenther@suse.de>
3263 * genpreds.c (write_lookup_constraint): Do not compare first
3264 letter of the constraint again.
3266 2013-02-20 Richard Biener <rguenther@suse.de>
3268 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3270 (get_use_iv_cost): Terminate hashtable walk when coming across
3273 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
3275 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3276 reassociation for avx2 targets.
3278 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3280 * config/microblaze/microblaze.c: microblaze_has_clz = 0
3281 Add version check for v8.10.a to enable microblaze_has_clz
3282 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
3283 version and TARGET_PATTERN_COMPARE check
3284 * config/microblaze/microblaze.md: New clzsi2 instruction
3286 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3288 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
3289 function before branching.
3291 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3293 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3295 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3297 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3300 * sel-sched.c: Include ira.h.
3301 (implicit_clobber_conflict_p): New function.
3302 (moveup_expr): Use it.
3303 * Makefile.in (sel-sched.o): Depend on ira.h.
3305 2013-02-19 Richard Biener <rguenther@suse.de>
3307 PR tree-optimization/56384
3308 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3309 (vn_hash_type): Split out from ...
3310 (vn_hash_constant_with_type): ... here.
3311 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3312 (vn_phi_eq): Compare types from vn_phi_s structure.
3313 (vn_phi_lookup): Populate vn_phi_s type.
3314 (vn_phi_insert): Likewise.
3316 2013-02-19 Jakub Jelinek <jakub@redhat.com>
3318 PR tree-optimization/56350
3319 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3320 if haven't found reduction or nested cycle operand, rather than
3321 asserting we must find it.
3323 PR tree-optimization/56381
3324 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3327 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3328 Jakub Jelinek <jakub@redhat.com>
3331 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3332 (swap_optab_enable): Same.
3333 (init_all_optabs): Use argument instead of global.
3334 * tree.h (struct tree_optimization_option): New field target_optabs.
3335 * expr.h (init_all_optabs): Add argument to prototype.
3336 (TREE_OPTIMIZATION_OPTABS): New.
3337 (save_optabs_if_changed): Protoize.
3338 * optabs.h: Declare this_fn_optabs.
3339 * optabs.c (save_optabs_if_changed): New.
3340 Declare this_fn_optabs.
3341 (init_optabs): Add argument to init_all_optabs() call.
3342 * function.c (invoke_set_current_function_hook): Handle per
3344 * function.h (struct function): New field optabs.
3345 * config/mips/mips.c (mips_set_mips16_mode): Handle when
3346 optimization_current_node has changed.
3347 * target-globals.h (save_target_globals_default_opts): Protoize.
3348 * target-globals.c (save_target_globals_default_opts): New.
3350 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3353 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3354 registers %fr12 and %fr12R as call used.
3357 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
3358 and HImode, require all displacements to be an integer multiple of
3360 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3361 only allow QImode and HImode when reload is in progress and strict is
3362 true. Likewise for symbolic addresses. Use base14_operand to check
3363 displacements in REG+BASE addresses.
3365 2013-02-18 Richard Biener <rguenther@suse.de>
3367 PR tree-optimization/56366
3368 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3369 handle sign-conversion of outer-loop initial induction value.
3371 2013-02-18 Richard Biener <rguenther@suse.de>
3374 * cfghooks.c (merge_blocks): If we merge a latch into another
3375 block adjust references to it.
3376 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3377 (verify_loop_structure): Verify that a recorded latch is in fact
3380 2013-02-18 Richard Biener <rguenther@suse.de>
3382 PR tree-optimization/56321
3383 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3384 order SSA name release and virtual operand unlinking.
3386 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3388 * config/microblaze/microblaze.md (save_stack_block): Define.
3389 (restore_stack_block): Likewise.
3391 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3393 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3394 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3395 * config/microblaze/microblaze.c (microblaze_option_override):
3396 Bail out early for PIC modes when target does not support PIC.
3398 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3400 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
3401 Replace with a microblaze version.
3402 (microblaze_trampoline_init): Adapt for microblaze.
3403 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
3406 2013-02-16 Jakub Jelinek <jakub@redhat.com>
3407 Dodji Seketeli <dodji@redhat.com>
3410 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
3411 (instrument_mem_region_access): Do not forget to always put
3412 instrumentation of the of 'base' and 'base + len' in a "if (len !=
3413 0) statement, even for cases where either 'base' or 'base + len'
3414 are not instrumented -- because they have been previously
3415 instrumented. Simplify the logic by putting all the statements
3416 instrument 'base + len' inside a sequence, and then insert that
3417 sequence right before the current insertion point. Then, to
3418 instrument 'base + len', just get an iterator on that statement.
3419 And do not forget to update the pointer to iterator the function
3420 received as argument.
3422 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
3424 PR rtl-optimization/56348
3425 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3427 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
3429 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3430 (clean_graph_dump_file): Pass base to start_graph_dump.
3432 2013-02-14 Richard Henderson <rth@redhat.com>
3435 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3437 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
3439 * collect2-aix.h: Define F_LOADONLY.
3441 2013-02-14 Richard Biener <rguenther@suse.de>
3444 * varasm.c (output_constant_def_1): Get the decl representing
3445 the constant as argument.
3446 (output_constant_def): Wrap output_constant_def_1.
3447 (make_decl_rtl): Use output_constant_def_1 with the decl
3448 representing the constant.
3449 (build_constant_desc): Optionally re-use a decl already
3450 representing the constant.
3451 (tree_output_constant_def): Adjust.
3453 2013-02-14 Dodji Seketeli <dodji@redhat.com>
3456 * asan.c (instrument_builtin_call): Really put the length of the
3457 second source argument into src1_len.
3459 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3461 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3462 argument. If it is false, don't create edge from then_bb to
3464 (insert_if_then_before_iter): Pass true to it.
3465 (build_check_stmt): Pass false to it.
3466 (transform_statements): Flush hash table only on extended basic
3467 block boundaries, rather than at the beginning of every bb.
3468 Don't flush hash table on nonfreeing_call_p calls.
3469 * tree-flow.h (nonfreeing_call_p): New prototype.
3470 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3472 2013-02-13 David S. Miller <davem@davemloft.net>
3474 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3476 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3479 * ira.c (max_regno_before_ira): Move from ...
3481 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3484 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3486 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3488 2013-02-13 Richard Biener <rguenther@suse.de>
3491 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3492 globals in MEM_REFs.
3494 2013-02-13 Richard Biener <rguenther@suse.de>
3496 * loop-init.c (loop_optimizer_init): Clear loop state when
3497 re-initializing preserved loops.
3498 * loop-unswitch.c (unswitch_single_loop): Return whether
3499 we unswitched the loop. Do not verify loop state here.
3500 (unswitch_loops): When we unswitched a loop discover new loops.
3502 2013-02-13 Kostya Serebryany <kcc@google.com>
3504 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3506 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3508 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3510 Avoid instrumenting duplicated memory access in the same basic block
3511 * Makefile.in (asan.o): Add new dependency on hash-table.h
3512 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3513 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3514 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3515 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3516 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3517 (get_mem_ref_of_assignment): New functions.
3518 (get_mem_refs_of_builtin_call): Extract from
3519 instrument_builtin_call and tweak a little bit to make it fit with
3521 (instrument_builtin_call): Use the new
3522 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3523 of is_gimple_builtin_call.
3524 (instrument_derefs, instrument_mem_region_access): Insert the
3525 instrumented memory reference into the hash table.
3526 (maybe_instrument_assignment): Renamed instrument_assignment into
3527 this, and change it to advance the iterator when instrumentation
3528 actually happened and return true in that case. This makes it
3529 homogeneous with maybe_instrument_assignment, and thus give a
3530 chance to callers to be more 'regular'.
3531 (transform_statements): Clear the memory reference hash table
3532 whenever we enter a new BB, when we cross a function call, or when
3533 we are done transforming statements. Use
3534 maybe_instrument_assignment instead of instrumentation. No more
3535 need to special case maybe_instrument_assignment and advance the
3536 iterator after calling it; it's now handled just like
3537 maybe_instrument_call. Update comment.
3539 2013-02-13 Richard Biener <rguenther@suse.de>
3541 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3542 Fix loop discovery code.
3544 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3547 * lra-constraints.c (process_alt_operands): Match early clobber
3548 operand with itself. Check conflicts with earlyclobber only if
3549 the operand is not reloaded. Prefer to reload conflicting operand
3550 if earlyclobber and matching operands are the same.
3552 2013-02-12 Richard Biener <rguenther@suse.de>
3555 * lto-streamer-out.c (write_symbol): Do not output symbols
3556 for hard register variables.
3558 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3561 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3562 (umulsidi3_insn, mulsidi3_insn): New insns.
3564 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3566 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3567 (struct tune_params): Add vec_costs field.
3568 * config/arm/arm.c (arm_builtin_vectorization_cost)
3569 (arm_add_stmt_cost): New functions.
3570 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3571 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3572 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3573 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3574 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3575 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3576 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3578 2013-02-12 Richard Biener <rguenther@suse.de>
3581 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3582 decls again if possible.
3584 2013-02-12 Richard Biener <rguenther@suse.de>
3587 * tree-ssa.c (verify_ssa_name): Fix check, move
3588 SSA_NAME_IN_FREE_LIST check up.
3590 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3591 Steven Bosscher <steven@gcc.gnu.org>
3593 PR rtl-optimization/56151
3594 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3595 equal to op0 or op1, and last_insn pattern is CODE operation
3596 with MEM dest and one of the operands matches that MEM.
3598 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3600 * doc/extend.texi: Document Function Multiversioning and "default"
3601 parameter string to target attribute.
3602 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3603 target attribute parameter is "default".
3604 (ix86_compare_version_priority): Remove checks for target attribute.
3605 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3606 Remove check for target attribute equal to NULL. Add assert.
3607 (ix86_generate_version_dispatcher_body): Change error to sorry.
3609 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3610 Jack Howarth <howarth@bromo.med.uc.edu>
3611 Patrick Marlier <patrick.marlier@gmail.com>
3614 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3615 define ENDFILE_SPEC as TM_DESTRUCTOR.
3616 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3618 2013-02-11 Alexander Potapenko <glider@google.com>
3619 Jack Howarth <howarth@bromo.med.uc.edu>
3620 Jakub Jelinek <jakub@redhat.com>
3623 * config/darwin.c (cdtor_record): Rename ctor_record.
3624 (sort_cdtor_records): Rename sort_ctor_records.
3625 (finalize_dtors): New routine to sort destructors by
3626 priority before use in assemble_integer.
3627 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3629 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3631 PR rtl-optimization/56275
3632 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3633 offset is non-negative and less than cmode size before
3634 calling simplify_subreg.
3636 2013-02-11 Richard Biener <rguenther@suse.de>
3638 PR tree-optimization/56264
3639 * cfgloop.h (fix_loop_structure): Adjust prototype.
3640 * loop-init.c (fix_loop_structure): Return the number of
3641 newly discovered loops.
3642 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3643 are discovered, do a full loop-closed SSA rewrite.
3645 2013-02-11 Richard Biener <rguenther@suse.de>
3647 PR tree-optimization/56273
3648 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3650 (check_array_ref): Fix missing newline in dumps.
3651 (search_for_addr_array): Likewise.
3653 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3655 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3657 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3660 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3662 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3664 PR rtl-optimization/56246
3665 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3667 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3668 constraints are satisfied.
3670 2013-02-08 Jeff Law <law@redhat.com>
3673 * emit-rtl.c (reg_is_parm_p): New function.
3674 * regs.h (reg_is_parm_p): New prototype.
3675 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3676 callee-clobbered registers.
3678 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3681 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3682 If there is no implicit builtin declaration, just return NULL.
3684 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3686 * config/i386/sse.md (FMAMODEM): New mode iterator.
3687 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3688 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3690 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3692 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3693 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3694 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3696 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3698 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3699 (microblaze*-*-elf): Likewise.
3700 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3702 * config/microblaze/microblaze-c.c: Add builtin defines for
3703 _LITTLE_ENDIAN and _BIG_ENDIAN.
3704 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3705 add to TARGET_DEFAULT flags.
3706 Expand ASM_SPEC and LINK_SPEC.
3707 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3708 * config/microblaze/microblaze.md: Update extendsidi2 and
3709 movdi_internal instructions to use low-order / high-order reg
3711 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3712 options and inversemask / mask of LITTLE_ENDIAN.
3713 * config/microblaze/t-microblaze: Expand multilib options to
3714 include mlittle-endian (le) and update exceptions patterns.
3716 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3718 PR rtl-optimization/56195
3719 * lra-constraints.c (get_reload_reg): Don't reuse regs
3720 if they have smaller mode than requested, if they have
3721 wider mode than requested, try to return a SUBREG.
3723 PR tree-optimization/56250
3724 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3725 if type is unsigned and code isn't MULT_EXPR.
3727 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3729 PR tree-optimization/56064
3730 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3731 bits according to mode.
3732 * fixed-value.h (fixed_from_double_int)
3733 (const_fixed_from_double_int): Adjust comments.
3735 2013-02-08 Richard Biener <rguenther@suse.de>
3738 * lto-streamer.h (struct data_in): Remove current_file, current_line
3739 and current_col members.
3740 * lto-streamer-out.c (lto_output_location): Stream changed bits
3741 en-block for efficiency.
3742 * lto-streamer-in.c (clear_line_info): Remove.
3743 (lto_input_location): Cache current file, line and column
3744 globally via local statics. Read changed bits en-block.
3745 (input_function): Do not call clear_line_info.
3746 (lto_read_body): Likewise.
3747 (lto_input_toplevel_asms): Likewise.
3749 2013-02-08 Michael Matz <matz@suse.de>
3751 PR tree-optimization/52448
3752 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3753 (nt_call_phase): New static.
3754 (add_or_mark_expr): Only mark accesses with newer phase than any
3756 (nonfreeing_call_p): New.
3757 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3758 (nt_fini_block): Keep blocks marked as visited.
3759 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3761 2013-02-08 Richard Biener <rguenther@suse.de>
3763 * ira.c (ira): Free broken dominator information.
3765 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3767 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3769 2013-02-08 Marek Polacek <polacek@redhat.com>
3771 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3773 2013-02-08 Richard Biener <rguenther@suse.de>
3776 * cfgloop.h (flow_loops_find): Adjust.
3777 (bb_loop_header_p): Declare.
3778 * cfgloop.c (bb_loop_header_p): New function split out from ...
3779 (flow_loops_find): ... here. Adjust function signature,
3780 support incremental loop structure update.
3781 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3782 * cfgloopmanip.c (fix_loop_structure): Move ...
3783 * loop-init.c (fix_loop_structure): ... here.
3784 (apply_loop_flags): Split out from ...
3785 (loop_optimizer_init): ... here.
3786 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3787 in incremental mode, only remove dead loops here.
3789 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3792 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3793 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3794 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3795 (*round<mode>3.libgcc): New insns for fixed-modes.
3796 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3797 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3798 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3799 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3800 implementations. Define to __builtin_avr_absFX,
3801 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3802 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3803 __builtin_avr_countlsFX, respectively.
3804 * config/avr/avr-c.c (target.h): Include it.
3805 (enum avr_builtin_id): New enum.
3806 (avr_resolve_overloaded_builtin): New static function.
3807 (avr_register_target_pragmas): Use it to set
3808 targetm.resolve_overloaded_builtin.
3809 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3810 tree nodes used by DEF_BUILTIN.
3811 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3812 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3813 <AVR_BUILTIN_xxBITS>: Same.
3815 2013-02-08 Richard Biener <rguenther@suse.de>
3817 * cfgloop.c (verify_loop_structure): Properly handle
3818 a loop exiting to another loop header.
3819 * ira-int.h (ira_loops): Remove.
3820 * ira.c (ira_loops): Remove.
3821 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3822 (do_reload): Use loop_optimizer_finalize.
3823 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3824 number_of_loops to access the loop tree.
3825 (more_one_region_p): Likewise.
3826 (finish_loop_tree_nodes): Likewise.
3827 (rebuild_regno_allocno_maps): Likewise.
3828 (mark_loops_for_removal): Likewise.
3829 (mark_all_loops_for_removal): Likewise.
3830 (remove_unnecessary_regions): Likewise.
3831 (ira_build): Likewise.
3832 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3834 2013-02-08 Richard Biener <rguenther@suse.de>
3836 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3837 * ipa-pure-const.c (analyze_function): Avoid calling
3838 mark_irreducible_loops twice.
3839 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3841 2013-02-07 David S. Miller <davem@davemloft.net>
3843 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3845 * var-tracking.c (vt_add_function_parameter): Test the presence of
3846 HAVE_window_save properly and do not remap argument registers when
3847 we have a leaf function.
3849 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3852 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3854 * config/i386/i386.c (ix86_print_operand): Ditto.
3856 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3858 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3860 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3862 PR rtl-optimization/56225
3863 * lra-constraints.c (process_alt_operands): Check that reload hard
3864 reg can hold value for strict_low_part.
3866 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3869 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3870 dwarf2out_end_function.
3871 (in_first_function_p, maybe_at_text_label_p,
3872 first_loclabel_num_not_at_text_label): New variables.
3873 (dwarf2out_var_location): In the first function find out
3874 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3875 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3878 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3880 PR rtl-optimization/56178
3881 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3882 SUBREG of a register. Tidy up related block of code.
3883 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3884 note if the source is a register or a SUBREG of a register.
3886 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3889 * config/rs6000/rs6000.md (ptrm): New mode attr.
3890 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3891 call_value_indirect_aix<pttrsize>,
3892 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3895 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3897 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3898 if -bnortl. Convert to strcmp and strncmp.
3900 2013-02-07 Alan Modra <amodra@gmail.com>
3903 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3904 addresses won't wrap when offsetting.
3905 (rs6000_secondary_reload): Provide secondary reloads needed for
3906 wrapping LO_SUM addresses.
3908 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3910 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3911 MACH, just __MACH__.
3913 2013-02-06 Richard Biener <rguenther@suse.de>
3915 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3916 instead of calling fix_loop_structure.
3918 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3921 * omp-low.c (use_pointer_for_field): Return false if
3922 lower_send_shared_vars doesn't generate any copy-out code.
3924 2013-02-06 Tom de Vries <tom@codesourcery.com>
3926 PR rtl-optimization/56131
3927 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3928 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3929 of the label is NULL. Add comment.
3931 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3933 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3936 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3937 (STATIC_LIBTSAN_LIBS): Likewise.
3938 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3939 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3940 is defined, don't add anything else beyond that.
3941 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3942 (LINK_COMMAND_SPEC): Use them.
3944 PR tree-optimization/56205
3945 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3946 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3947 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3949 2013-02-05 Richard Biener <rguenther@suse.de>
3951 PR tree-optimization/53342
3952 PR tree-optimization/53185
3953 * tree-vectorizer.h (vect_check_strided_load): Remove.
3954 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3955 not disallow peeling for vectorized strided loads.
3956 (vect_check_strided_load): Make static and simplify.
3957 (vect_analyze_data_refs): Adjust.
3958 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3959 correctly when vectorizing strided loads.
3961 2013-02-05 Richard Biener <rguenther@suse.de>
3963 * doc/install.texi: Refer to ISL, not PPL.
3965 2013-02-05 Jan Hubicka <jh@suse.cz>
3967 PR tree-optimization/55789
3968 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3970 2013-02-05 Jan Hubicka <jh@suse.cz>
3972 PR tree-optimization/55789
3973 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3974 the dead call anyway.
3976 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3979 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3981 2013-02-04 Alexander Potapenko <glider@google.com>
3982 Jack Howarth <howarth@bromo.med.uc.edu>
3983 Jakub Jelinek <jakub@redhat.com>
3986 * config/darwin.c (sort_ctor_records): Stabilized qsort
3987 on constructor priority by using original position.
3988 (finalize_ctors): New routine to sort constructors by
3989 priority before use in assemble_integer.
3990 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3992 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3995 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3996 about visibility on artificial decls.
3997 * config/sol2.c (solaris_assemble_visibility): Likewise.
3999 2013-02-04 Kai Tietz <ktietz@redhat.com>
4002 * config/i386/i386.c (function_value_ms_64): Add additional valtype
4003 argument and improve checking of return-argument types for 16-byte
4005 (ix86_function_value_1): Add additional valtype argument on call
4006 of function_value_64.
4007 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4008 handling infunction_value_64 function.
4010 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4012 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
4014 2013-02-04 Richard Biener <rguenther@suse.de>
4016 PR tree-optimization/56188
4017 * tree-ssa-structalias.c (label_visit): Consider case with
4018 initially non-empty points-to set.
4019 (perform_var_substitution): Dump node mapping and clean up.
4021 2013-02-04 Richard Guenther <rguenther@suse.de>
4024 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4025 node prevail as last resort.
4026 (lto_symtab_merge_decls): Remove guard on LTRANS here.
4027 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
4029 2013-02-04 Richard Biener <rguenther@suse.de>
4031 PR tree-optimization/56113
4032 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4034 (equiv_class_lookup_or_add): ... this.
4035 (label_visit): Adjust and fix error in previous patch.
4036 (perform_var_substitution): Adjust.
4038 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
4040 * config/sh/divtab.c: Fix formatting and comments throughout the file.
4041 * config/sh/sh4-300.md: Likewise.
4042 * config/sh/sh4a.md: Likewise.
4043 * config/sh/constraints.md: Likewise.
4044 * config/sh/sh.md: Likewise.
4045 * config/sh/netbsd-elf.h: Likewise.
4046 * config/sh/predicates.md: Likewise.
4047 * config/sh/sh-protos.h: Likewise.
4048 * config/sh/ushmedia.h: Likewise.
4049 * config/sh/linux.h: Likewise.
4050 * config/sh/sh.c: Likewise.
4051 * config/sh/superh.h: Likewise.
4052 * config/sh/elf.h: Likewise.
4053 * config/sh/sh4.md: Likewise.
4054 * config/sh/sh.h: Likewise.
4056 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4058 * config/pa/constraints.md: Adjust unused letters. Change "T"
4059 constraint to match_test floating_point_store_memory_operand().
4060 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4061 (base14_operand): New.
4062 (floating_point_store_memory_operand): New.
4063 (integer_store_memory_operand): Revise to use base14_operand and
4064 reg_plus_base_memory_operand.
4065 (move_dest_operand): Allow symbolic_memory_operands.
4066 (symbolic_memory_operand): Check for LO_SOM.
4067 (symbolic_operand): Change default case to break.
4068 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4069 CONST_DOUBLE values to be reloaded by putting them into memory when
4070 the destination is a floating point register.
4071 (movdf): Remove code to handle CONST_DOUBLE.
4073 (reload_indf_r1): New.
4074 (reload_insf_r1): New.
4075 Consistently use "Q" and "T" constraints with integer and floating
4076 point move instructions, respectively.
4077 (movdi): Remove FAIL.
4078 Change predicate for source operand unamed DImode move from
4079 general_operand to move_src_operand.
4080 (umulsidi3): Change predicate for destination operand to
4082 Likewise for similar unamed patterns.
4083 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
4084 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
4085 (hppa_legitimize_address): Simplify mask calculation.
4086 (pa_emit_move_sequence): Revised handling of secondary reloads from
4087 REG+D addresses for floating point loads and stores. Directly handle
4088 loading CONST0_RTX (mode) to a floating point register.
4089 (pa_secondary_reload): Handle reloading DF and SFmode constant values
4090 to floating point registers. Don't restrict secondary reloads to
4091 floating point registers to integer modes. Revise some comments and
4093 (TARGET_LEGITIMATE_ADDRESS_P): Define.
4094 (pa_legitimate_address_p): New.
4095 (pa_legitimize_reload_address): New.
4096 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4097 (STRICT_REG_OK_FOR_BASE_P): New.
4098 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
4099 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4101 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
4102 Andrew Dixie <andrewd@gentrack.com>
4104 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4107 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4109 * expmed.c (extract_bit_field_1): Pass the full width of the
4110 structure to get_best_reg_extraction_insn.
4112 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4115 * configure.ac (use_cxa_atexit): Add AIX.
4116 * configure: Regenerate.
4118 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
4120 2013-02-01 Jakub Jelinek <jakub@redhat.com>
4123 * final.c (need_profile_function): New variable.
4124 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
4125 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
4126 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
4127 notes, targetm.asm_out.function_prologue doesn't emit anything,
4128 HAVE_prologue and profiler should be emitted before prologue,
4129 set need_profile_function instead of emitting it.
4130 (final_scan_insn): If need_profile_function, emit
4131 profile_function on the first NOTE_INSN_BASIC_BLOCK or
4132 NOTE_INSN_FUNCTION_BEG note.
4134 2013-02-01 Richard Henderson <rth@redhat.com>
4136 * config/rs6000/rs6000.md (smulditi3): New.
4139 * config/alpha/alpha.md (umulditi3): New.
4141 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4143 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
4144 (ASM_OUTPUT_ALIGNED_LOCAL): New.
4146 2013-02-01 Richard Biener <rguenther@suse.de>
4148 PR tree-optimization/56113
4149 * tree-ssa-structalias.c (label_visit): Reduce work for
4150 single-predecessor nodes.
4152 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
4154 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
4155 range isn't testing for zero.
4157 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
4160 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
4162 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
4163 Nick Clifton <nickc@redhat.com>
4165 * config/v850/constraints.md (Q): Define as a memory constraint.
4166 * config/v850/predicates.md (label_ref_operand): New predicate.
4167 (e3v5_shift_operand): New predicate.
4168 (ior_operator): New predicate.
4169 * config/v850/t-v850: Add e3v5 multilib.
4170 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
4171 (v850_gen_movdi): Prototype.
4172 * config/v850/v850.c: Add support for e3v5 architecture.
4173 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
4175 (construct_save_jarl): Add e3v5 long JARL support.
4176 (v850_adjust_insn_length): New function. Adjust length of call
4177 insns when using e3v5 instructions.
4178 (v850_gen_movdi): New function: Generate instructions to move a
4180 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
4181 (CPP_SPEC): Define __v850e3v5__ as appropriate.
4182 (TARGET_USE_FPU): Enable for e3v5.
4183 (CONST_OK_FOR_W): New macro.
4184 (ADJUST_INSN_LENGTH): Define.
4185 * config/v850/v850.md (UNSPEC_LOOP): Define.
4186 (attr cpu): Add v850e3v5.
4187 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
4188 (movdi): New pattern.
4189 (movdi_internal): New pattern.
4190 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
4191 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
4192 (cstoresf4): Likewise.
4193 (cstoredf4): Likewise.
4194 (insv): New pattern.
4195 (rotlso3_a): New pattern.
4196 (rotlsi3_b): New pattern
4197 (rotlsi3_v850e3v5): New pattern.
4198 (doloop_begin): New pattern.
4199 (fix_loop_counter): New pattern.
4200 (doloop_end): New pattern.
4201 (branch_normal): Add e3v5 long branch support.
4202 (branch_invert): Likewise.
4203 (branch_z_normal): Likewise.
4204 (branch_z_invert): Likewise.
4205 (branch_nz_normal): Likewise.
4206 (branch_nz_invert): Likewise.
4207 (call_internal_short): Add e3v5 register-indirect JARL support.
4208 (call_internal_long): Likewise.
4209 (call_value_internal_short): Likewise.
4210 (call_value_internal_long): Likewise.
4211 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
4212 (mloop): New option.
4213 * config.gcc: Add support for configuring v840e3v5 target.
4214 * doc/invoke.texi: Document new v850 specific command line options.
4216 2013-01-31 Paul Koning <ni1d@arrl.net>
4220 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
4221 children if parent is a class.
4222 (prune_unused_types_prune): Don't add DW_AT_declaration.
4224 2013-01-31 Richard Biener <rguenther@suse.de>
4226 PR tree-optimization/56157
4227 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
4228 match up operand with SLP child.
4230 2013-01-31 Jason Merrill <jason@redhat.com>
4233 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4234 parameters the first time.
4235 (gen_scheduled_generic_parms_dies): Check completeness here.
4237 2013-01-31 Richard Biener <rguenther@suse.de>
4240 * common.opt (faggressive-loop-optimizations): New flag,
4242 * doc/invoke.texi (faggressive-loop-optimizations): Document.
4243 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4244 infer_loop_bounds_from_undefined by it.
4246 2013-01-31 Richard Biener <rguenther@suse.de>
4248 PR tree-optimization/56150
4249 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4250 visit virtual operands.
4251 (find_uses_to_rename_bb): Likewise.
4253 2013-01-31 Richard Biener <rguenther@suse.de>
4255 PR tree-optimization/56150
4256 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4257 mixed store non-store stmts.
4259 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4262 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4263 LIBASAN_EARLY_SPEC is defined.
4264 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4265 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4267 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4270 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4271 invalid args instead of ICEing on it.
4272 (ix86_valid_target_attribute_tree): Return error_mark_node if
4273 ix86_valid_target_attribute_inner_p failed.
4274 (ix86_valid_target_attribute_p): Return false only if
4275 ix86_valid_target_attribute_tree returned error_mark_node. Allow
4276 target("default") attribute.
4277 (sorted_attr_string): Change argument from const char * to tree,
4278 merge in all target attribute arguments rather than just one.
4279 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
4280 instead of free. Avoid using strcat.
4281 (ix86_mangle_function_version_assembler_name): Mangle
4282 target("default") as if no target attribute is present. Adjust
4283 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
4284 instead of xmalloc and XDELETEVEC instead of free.
4285 (ix86_function_versions): Don't return true if one of the decls
4286 doesn't have target attribute. If they don't and one of the decls
4287 is DECL_FUNCTION_VERSIONED, report an error. Adjust
4288 sorted_attr_string caller. Use XDELETEVEC instead of free.
4289 (ix86_supports_function_versions): Remove.
4290 (make_name): Fix up formatting.
4291 (make_dispatcher_decl): Remove resolver_name and its initialization.
4292 Avoid leaking memory.
4293 (is_function_default_version): Return true if there is
4294 target("default") attribute rather than no target attribute at all.
4295 (make_resolver_func): Avoid leaking memory.
4296 (ix86_generate_version_dispatcher_body): Likewise.
4297 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4298 * target.def (supports_function_versions): Remove.
4299 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4300 * doc/tm.texi: Regenerated.
4302 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
4304 PR rtl-optimization/56144
4305 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4306 for values with side effects.
4308 2013-01-30 Richard Biener <rguenther@suse.de>
4310 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4311 (sparseset_pop): Likewise.
4312 * cfganal.c (compute_idf): Likewise. Increase work-stack size
4313 to be able to use quick_push in the worker loop.
4315 2013-01-30 Marek Polacek <polacek@redhat.com>
4317 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4319 2013-01-30 Richard Biener <rguenther@suse.de>
4322 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
4324 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
4326 PR tree-optimization/56064
4327 * fixed-value.c (fixed_from_double_int): New function.
4328 * fixed-value.h (fixed_from_double_int): New prototype.
4329 (const_fixed_from_double_int): New static inline function.
4330 * fold-const.c (native_interpret_fixed): New static function.
4331 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4332 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4333 (native_encode_fixed): New static function.
4334 (native_encode_expr) <FIXED_CST>: Use it.
4335 (native_interpret_int): Move double_int worker code to...
4336 * double-int.c (double_int::from_buffer): ...this new static method.
4337 * double-int.h (double_int::from_buffer): Prototype it.
4339 2013-01-30 Richard Biener <rguenther@suse.de>
4341 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4342 New pointer-map and obstack.
4343 (init_alias_vars): Allocate pointer-map and obstack.
4344 (delete_points_to_sets): Free them.
4345 (find_what_var_points_to): Cache result.
4346 (find_what_p_points_to): Adjust for changed interface of
4347 find_what_var_points_to.
4348 (compute_points_to_sets): Likewise.
4349 (ipa_pta_execute): Likewise.
4351 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4353 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4354 * configure: Regenerate.
4355 * config.in: Regenerate.
4356 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4357 #nobits/#progbits if supported.
4359 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
4362 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4363 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4364 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4366 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4368 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4369 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
4371 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4373 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4374 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
4376 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4378 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4380 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4381 * config/arm/cortex-a7.md: New bypasses using
4382 arm_mac_accumulator_is_result.
4384 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4386 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
4387 (cortex_a7_neon_mla): Likewise.
4388 (cortex_a7_fpfmad): New reservation.
4389 (cortex_a7_fpmacs): Use ffmas and update required units.
4390 (cortex_a7_fpmuld): Update required units and latency.
4391 (cortex_a7_fpmacd): Likewise.
4392 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4393 (cortex_a7_neon). Likewise.
4394 (bypass) Update participating units.
4396 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4398 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4399 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4401 * config/arm/vfp11.md (vfp_farith): Use ffmas.
4402 (vfp_fmul): Use ffmad.
4403 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4404 (cortex_r4_fmacd): Use ffmad.
4405 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4406 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
4407 (cortex_a9_fmacd): Use ffmad.
4408 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4409 (cortex_a8_vfp_macd): Use ffmad.
4410 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4411 (cortex_a5_fpmacd): Use ffmad.
4412 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4413 (cortex_a15_vfp_macd): Use ffmad.
4414 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
4416 2013-01-29 Jason Merrill <jason@redhat.com>
4419 * varasm.c (default_assemble_visibility): Don't warn about
4420 visibility on artificial decls.
4422 2013-01-29 Richard Biener <rguenther@suse.de>
4424 PR tree-optimization/56113
4425 * tree-ssa-structalias.c (equiv_class_lookup): Also return
4427 (label_visit): Free duplicate bitmaps and record the leader instead.
4428 (perform_var_substitution): Adjust.
4430 2013-01-29 Richard Biener <rguenther@suse.de>
4432 PR tree-optimization/55270
4433 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4434 the CFG, schedule loops for fixup.
4436 2013-01-29 Nick Clifton <nickc@redhat.com>
4438 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4441 2013-01-28 Leif Ekblad <leif@rdos.net>
4443 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4444 * config/i386/i386.h (TARGET_RDOS): New macro.
4445 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4446 * config/i386/i386.c (ix86_option_override_internal): For 64bit
4447 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4448 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4449 DEFAULT_LARGE_SECTION_THRESHOLD.
4450 * config/i386/i386.md (R14_REG, R15_REG): New constants.
4451 * config/i386/rdos.h: New file.
4452 * config/i386/rdos64.h: New file.
4454 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
4457 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4460 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4462 PR rtl-optimization/56117
4463 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4464 call cselib_lookup_from_insn on the MEM before calling
4465 add_insn_mem_dependence.
4467 2013-01-28 Richard Biener <rguenther@suse.de>
4469 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4470 to a stmt that didn't have one.
4471 (copy_phis_for_bb): Likewise for PHI arguments.
4472 (copy_debug_stmt): Likewise for debug stmts.
4474 2013-01-28 Richard Biener <rguenther@suse.de>
4476 PR tree-optimization/56034
4477 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4478 (partition_builtin_p): Adjust.
4479 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4480 it is the last partition.
4481 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4482 up the vertex for the definition.
4483 (classify_partition): Classify whether a partition is a
4484 PKIND_REDUCTION, thus has uses outside of the loop.
4485 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4486 Merge all PKIND_REDUCTION partitions into the last partition.
4487 (tree_loop_distribution): Seed partitions from reductions as well.
4489 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4491 PR tree-optimization/56125
4492 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4493 pow(x,c) into sqrt(x) * powi(x, n/2) or
4494 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4495 optimizing for size.
4496 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4497 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4500 PR tree-optimization/56094
4501 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4502 to UNKNOWN_LOCATION while gimplifying expr.
4504 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4507 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4508 operand 0 in movabs insn template for -masm=intel asm alternative.
4509 (*movabs<mode>_2): Ditto for operand 1.
4511 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4514 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4517 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4519 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4522 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4524 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4525 Undef to avoid warning.
4527 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4529 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4530 * configure: Regenerate.
4532 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4534 PR tree-optimization/56098
4535 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4536 for stmts with volatile ops.
4537 (cond_store_replacement): Don't optimize if assign has volatile ops.
4538 (cond_if_else_store_replacement_1): Don't optimize if either
4539 then_assign or else_assign have volatile ops.
4540 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4543 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4545 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4547 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4549 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4550 missing ':' in asm example.
4552 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4554 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4555 entries into lane and laneq entries.
4556 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4557 Remove AdvSIMD scalar modes.
4558 (aarch64_sq<r>dmulh_laneq<mode>): New.
4559 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4561 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4562 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4563 * config/aarch64/iterators.md (VCOND): New.
4566 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4569 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4570 Add NULL LIBNAME argument to existing definitions.
4571 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4572 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4573 * config/avr/avr.c (DEF_BUILTIN): Same.
4574 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4575 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4576 implementation is available (DECL_ASSEMBLER_NAME is set).
4577 (avr_fold_absfx): New static function.
4578 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4579 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4580 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4582 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4583 (abshk, absk, abslk, absllk): Provide as static inline functions.
4585 2013-01-25 Marek Polacek <polacek@redhat.com>
4587 PR tree-optimization/56035
4588 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4590 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4592 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4593 (*movtf_internal_rex64): Add (!o,C) alternative
4594 (*movxf_internal_rex64): Ditto.
4595 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4597 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4599 * doc/invoke.texi: fix typo.
4600 * doc/objc.texi: fix typo.
4602 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4604 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4605 for the first two alternatives.
4607 2013-01-24 Diego Novillo <dnovillo@google.com>
4609 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4610 (ggc-zone.o): Remove.
4611 * configure.ac: Remove option --with-gc.
4612 * configure: Re-generate.
4613 * doc/install.texi: Remove documentation for --with-gc.
4614 * gengtype.c (write_enum_defn): Remove. Update all users.
4615 (write_Types_process_field): Remove generation of gt_e_* argument.
4616 (output_type_enum): Remove. Update all users.
4617 (write_enum_defn): Remove. Update all users.
4618 (enum alloc_zone): Remove. Update all users.
4619 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4620 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4622 (struct ptr_data): Remove field TYPE. Update all users.
4623 (gt_pch_note_object): Remove argument TYPE. Update all users.
4624 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4626 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4627 (struct alloc_zone): Remove.
4628 (ggc_internal_alloc_zone_stat): Remove.
4629 (ggc_internal_cleared_alloc_zone_stat): Remove.
4630 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4631 (ggc_pch_count_object): Remove last argument. Update all users.
4632 (ggc_pch_alloc_object): Remove last argument. Update all users.
4633 (struct alloc_zone): Remove.
4634 * ggc-zone.c: Remove.
4635 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4636 (struct alloc_zone): Remove.
4637 (ggc_alloc_typed_stat): Remove.
4638 (ggc_alloc_typed): Remove.
4639 (ggc_splay_alloc): Remove first argument.
4640 (rtl_zone): Remove. Update all users.
4641 (tree_zone): Remove. Update all users.
4642 (tree_id_zone): Remove. Update all users.
4643 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4644 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4645 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4646 * tree-ssanames.c: Remove references to zone allocator in comments.
4648 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4650 * config/avr/avr.c (avr_out_fract): Make register numbers that
4651 might be outside of source operand signed.
4653 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4655 * config/i386/constraints.md (Yf): New constraint.
4656 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4657 of f constraint to conditionaly disable x87 register preferences.
4658 (*movdf_internal): Ditto.
4659 (*movsf_internal): Ditto.
4661 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4664 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4665 that have operands with impossible constraints.
4666 Add a FIXME for a speed-up opportunity.
4667 * lra-constraints.c (process_alt_operands): Verify that a class
4668 selected from constraints on asms is valid for the operand mode.
4669 (curr_insn_transform): Remove incorrect comment.
4671 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4673 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4674 TOC operand is a valid symbol ref in the constant pool.
4676 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4678 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4680 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4683 * config/avr/stdfix.h: New file.
4684 * t-avr (stdfix-gcc.h): New rule to build it.
4685 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4687 2013-01-23 Kostya Serebryany <kcc@google.com>
4689 * config/darwin.h: remove dependency on
4690 CoreFoundation (asan on Mac OS).
4692 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4695 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4696 instead of cmpdi_operand for first comparison operand.
4697 Don't assert that comparison operands aren't both constants.
4699 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4701 * doc/install.texi (Downloading the Source): Update references to
4702 downloading separate components.
4704 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4706 * doc/extend.texi (__int128): Improve grammar.
4708 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4711 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4712 alternative to (o,r).
4713 (*movdi_internal_rex64): Remove (!o,n) alternative.
4714 (DImode immediate->memory splitter): Remove.
4715 (DImode immediate->memory peephole2): Remove.
4716 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4717 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4718 alternative to (!o,*r).
4719 (*movtf_internal_sse): New pattern.
4720 (*movxf_internal_rex64): New pattern.
4721 (*movxf_internal): Disable for TARGET_64BIT.
4722 (*movdf_internal_rex64): Remove (!o,F) alternative.
4724 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4727 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4728 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4729 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4730 stmt locations where LOCATION_LOCUS of the stmt location is
4731 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4734 * config/i386/i386.md (UNSPEC_STOS): New.
4735 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4736 *strsetqi_1): Add UNSPEC_STOS.
4738 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4741 * doc/invoke.texi: Remove left over -Wsynth example.
4743 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4745 PR tree-optimization/56051
4746 * fold-const.c (fold_binary_loc): Don't fold
4747 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4748 a narrowing conversion, or widening conversion from signed
4751 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4753 PR rtl-optimization/56023
4754 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4755 dependent on debug instruction.
4757 2013-01-21 Martin Jambor <mjambor@suse.cz>
4760 * function.c (allocate_struct_function): Call
4761 invoke_set_current_function_hook earlier.
4763 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4765 * reload1.c (init_reload): Only initialize reload_obstack
4766 during the first call.
4768 2013-01-21 Marek Polacek <polacek@redhat.com>
4770 * cfgloop.c (verify_loop_structure): Fix up grammar.
4772 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4774 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4775 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4777 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4780 * config/arm/marvell-pj4.md: Update copyright year.
4781 Fix up use of alu to alu_reg and simple_alu_imm.
4783 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4785 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4787 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4790 * lra-constraints.c (curr_insn_transform): Don't reuse original
4791 insn for secondary memory move when memory mode should be different.
4793 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4795 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4796 atomic_storedi_1): New patterns.
4798 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4800 btver2 pipeline descriptions.
4801 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4803 * config/i386/i386.md (btver2_decode): New type attributes.
4804 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4806 * config/i386/btver2.md: New file describing btver2 pipelines.
4808 2013-01-19 Andrew Pinski <apinski@cavium.com>
4810 PR tree-optimization/52631
4811 * tree-ssa-sccvn (visit_use): Before looking up the original
4812 statement, try looking up the simplified expression.
4814 2013-01-19 Anthony Green <green@moxielogic.com>
4816 * config/moxie/moxie.c (moxie_expand_prologue): Set
4817 current_function_static_stack_size.
4819 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4821 PR tree-optimization/56029
4822 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4823 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4825 2013-01-18 Sharad Singhai <singhai@google.com>
4827 PR tree-optimization/55995
4828 * dumpfile.c (dump_loc): Print location only if available.
4829 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4831 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4834 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4835 secondary memory move.
4836 (inherit_reload_reg): Use rclass instead of cl for
4837 check_secondary_memory_needed_p.
4839 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4842 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4843 the case where writing real complex part of target modifies op1.
4845 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4847 * config/aarch64/aarch64-simd.md
4848 (aarch64_vcond_internal<mode>): Handle unordered cases.
4849 * config/aarch64/iterators.md (v_cmp_result): New.
4851 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4852 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4854 * config/arm/marvell-pj4.md: New file.
4855 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4856 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4857 (generic_vfp): Likewise.
4858 * config/arm/arm-cores.def: Add marvell-pj4.
4859 * config/arm/arm-tune.md: Regenerate.
4860 * config/arm/arm-tables.opt: Regenerate.
4861 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4862 * doc/invoke.texi: Document marvell-pj4.
4864 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4866 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4868 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4873 * var-tracking.c (negative_power_of_two_p): New.
4874 (global_get_addr_cache, local_get_addr_cache): New.
4875 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4876 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4878 (vt_stack_offset_p): Remove.
4879 (vt_canon_true_dep): Always canonicalize loc's address.
4880 (clobber_overlapping_mems): Make sure we have a MEM.
4881 (local_get_addr_clear_given_value): New.
4882 (val_reset): Clear local cached entries.
4883 (compute_bb_dataflow): Create and release the local cache.
4884 Disable duplicate MEMs clobbering.
4885 (emit_notes_in_bb): Clobber MEMs likewise.
4886 (vt_emit_notes): Create and release the local cache.
4887 (vt_initialize, vt_finalize): Create and release the global
4888 cache, respectively.
4889 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4891 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4894 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4895 not found in the symtab.
4897 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4900 PR rtl-optimization/55547
4901 PR rtl-optimization/53827
4904 * alias.c (offset_overlap_p): New, factored out of...
4905 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4906 the conservative special case for symbolic constants. Don't
4907 adjust zero sizes on alignment.
4909 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4911 PR rtl-optimization/52573
4912 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4913 REG_UNUSED for the same register.
4915 2013-01-17 Richard Biener <rguenther@suse.de>
4916 Marek Polacek <polacek@redhat.com>
4918 PR rtl-optimization/55833
4919 * loop-unswitch.c (unswitch_loops): Move loop verification...
4920 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4921 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4922 Set it to true when we're removing a loop from hierarchy tree in
4923 an irreducible region.
4924 (fix_bb_placements): Adjust caller.
4925 (fix_loop_placements): Likewise.
4927 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4929 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4930 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4931 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4932 Remove ID. Adjust comments.
4933 * config/avr/avr-c.c (avr_builtin_name): Remove.
4934 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4935 * config/avr/avr.c (avr_tolower): New static function.
4936 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4937 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4938 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4941 2013-01-17 Jan Hubicka <jh@suse.cz>
4943 PR tree-optimization/55273
4944 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4946 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4949 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4950 store through atomic_store<mode>_1.
4951 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4953 2013-01-17 Martin Jambor <mjambor@suse.cz>
4955 PR tree-optimizations/55264
4956 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4957 for virtual methods.
4958 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4959 virtual methods before inlining is over.
4960 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4962 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4965 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4967 PR rtl-optimization/56005
4968 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4969 pending reads for prefetch.
4971 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4973 * config/aarch64/aarch64.md
4974 (*cstoresi_neg_uxtw): New pattern.
4975 (*cmovsi_insn_uxtw): New pattern.
4976 (*<optab>si3_uxtw): New pattern.
4977 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4978 (*<optab>si3_insn_uxtw): New pattern.
4979 (*bswapsi2_uxtw): New pattern.
4981 2013-01-16 Richard Biener <rguenther@suse.de>
4983 * tree-inline.c (tree_function_versioning): Remove set but
4984 never used variable.
4986 2013-01-16 Richard Biener <rguenther@suse.de>
4988 PR tree-optimization/55964
4989 * tree-flow.h (rename_variables_in_loop): Remove.
4990 (rename_variables_in_bb): Likewise.
4991 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4992 (copy_loop_before): Adjust and delete update-ssa status.
4993 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4994 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4995 (rename_variables_in_loop): Remove.
4996 (slpeel_update_phis_for_duplicate_loop): Likewise.
4997 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4998 use available cfg machinery instead of duplicating it.
4999 Update PHI nodes and perform poor-mans SSA update here.
5000 (slpeel_tree_peel_loop_to_edge): Adjust.
5002 2013-01-16 Richard Biener <rguenther@suse.de>
5004 PR tree-optimization/54767
5005 PR tree-optimization/53465
5006 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5007 (vrp_visit_phi_node): For PHI arguments coming via backedges
5008 drop all symbolical range information.
5009 (execute_vrp): Compute backedges.
5011 2013-01-16 Richard Biener <rguenther@suse.de>
5013 * doc/install.texi: Update CLooG and ISL requirements to
5016 2013-01-16 Christian Bruel <christian.bruel@st.com>
5019 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5020 (broken_move): Handle UNSPECV_SP_SWITCH_B.
5021 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5023 2013-01-16 DJ Delorie <dj@redhat.com>
5025 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5026 (UNSPECV_SP_SWITCH_E): New.
5027 (sp_switch_1): Change to an unspec.
5028 (sp_switch_2): Change to an unspec. Don't use post-inc when we
5031 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
5033 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5034 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5035 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5036 (expand_mem_thread_fence): Ditto.
5037 (expand_mem_signal_fence): Ditto.
5038 (expand_atomic_load): Ditto.
5039 (expand_atomic_store): Ditto.
5041 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
5043 PR rtl-optimization/55547
5044 PR rtl-optimization/53827
5047 * alias.c (memrefs_conflict_p): Set sizes to negative after
5050 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5053 * function.c (thread_prologue_and_epilogue_insns): Always
5054 add crtl->drap_reg to set_up_by_prologue.set, even if
5055 stack_realign_drap is false.
5057 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5059 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5060 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5061 *call): Fix indention.
5063 2013-01-15 Tom de Vries <tom@codesourcery.com>
5066 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5069 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
5071 PR rtl-optimization/55153
5072 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5074 2013-01-15 Martin Jambor <mjambor@suse.cz>
5076 PR tree-optimization/55920
5077 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5078 accesses as grp_to_be_debug_replaced.
5080 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5082 PR tree-optimization/55920
5083 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
5084 there is non-useless type conversion needed from debug rhs to lhs,
5085 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
5087 2013-01-15 Joseph Myers <joseph@codesourcery.com>
5088 Mikael Pettersson <mikpe@it.uu.se>
5091 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5093 (ASM_OUTPUT_CASE_LABEL): Remove.
5094 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5095 * final.c (shorten_branches): Update alignment of labels before
5096 jump tables if CASE_VECTOR_SHORTEN_MODE.
5098 2013-01-15 Richard Biener <rguenther@suse.de>
5101 * system.h: Do not include gmp.h for building host tools.
5103 2013-01-15 Richard Biener <rguenther@suse.de>
5106 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
5107 account for bitpos when computing alignment.
5109 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
5111 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
5112 (ix86_target_macros_internal): Likewise.
5114 * config/i386/i386.c (m_CORE2I7): Removed.
5115 (m_CORE_HASWELL): New macro.
5116 (m_CORE_ALL): Likewise.
5117 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
5118 (initial_ix86_arch_features): Likewise.
5119 (processor_target_table): Initializations for Core avx2.
5120 (cpu_names): New names "core-avx2".
5121 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
5122 PROCESSOR_CORE_HASWELL.
5123 (ix86_issue_rate): New case.
5124 (ia32_multipass_dfa_lookahead): Likewise.
5125 (ix86_sched_init_global): Likewise.
5127 * config/i386/i386.h (TARGET_HASWELL): New macro.
5128 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
5129 (processor_type): New PROCESSOR_HASWELL.
5131 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5133 PR tree-optimization/55955
5134 * tree-vect-loop.c (vectorizable_reduction): Give up early on
5135 *SHIFT_EXPR and *ROTATE_EXPR codes.
5137 PR tree-optimization/48766
5138 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
5139 -ftrapv disable -fwrapv.
5141 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5144 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
5145 etc. to 1 and not to __flash.
5146 Use LL suffix for __INT24_MAX__ with -mint8.
5147 Use ULL suffix for __UINT24_MAX__ with -mint8.
5149 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5151 * config/avr/avr-arch.h
5152 (struct base_arch_s): Use typedef avr_arch_t instead.
5153 (struct arch_info_s): Use typedef avr_arch_info_t instead.
5154 (struct mcu_type_s): Use typedef avr_mcu_t instead.
5155 * config/avr/avr.c: Same.
5156 * config/avr/avr-devices.c: Same.
5157 * config/avr/driver-avr.c: Same.
5158 * config/avr/gen-avr-mmcu-texi.c: Same.
5159 * config/avr/avr-mcus.def: Adjust comment.
5161 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
5163 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
5164 * config/aarch64/iterators.md (VALLDI): New.
5166 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
5167 Andi Kleen <ak@linux.intel.com>
5170 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
5171 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
5174 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5176 * config/avr/avr-stdint.h: Remove trailing blanks.
5177 * config/avr/avr-log.h: Same.
5178 * config/avr/avr-arch.h: Same.
5179 * config/avr/avr-devices.c: Same.
5180 * config/avr/avr-dimode.md: Same.
5181 * config/avr/predicates.md: Same.
5182 * config/avr/avr-c.c: Same. And fix typo.
5184 * config/avr/avr-protos.h: Same. And:
5185 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
5186 (init_cumulative_args): Rename to avr_init_cumulative_args.
5187 (expand_prologue): Rename to avr_expand_prologue.
5188 (expand_epilogue): Rename to avr_expand_epilogue.
5189 (adjust_insn_length): Rename to avr_adjust_insn_length.
5190 (notice_update_cc): Rename to avr_notice_update_cc.
5191 (final_prescan_insn): Rename to avr_final_prescan_insn.
5192 * config/avr/avr.c: Same.
5193 * config/avr/avr.h: Same.
5194 * config/avr/avr.md: Remove trailing blanks.
5195 (prologue): Use avr_expand_prologue.
5196 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
5198 2013-01-14 Richard Biener <rguenther@suse.de>
5200 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
5201 verify_location, collect_subblocks): New functions.
5202 (verify_gimple_in_cfg): Verify that locations only reference
5203 BLOCKs in the functions BLOCK tree.
5205 2013-01-14 Richard Biener <rguenther@suse.de>
5207 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
5209 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
5211 (insert_out_of_ssa_copy_on_edge): Likewise.
5212 (rewrite_close_phi_out_of_ssa): Likewise.
5213 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
5215 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
5216 propagated constants.
5217 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
5220 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5222 * config/avr/avr-modes.def: Add GPL copyright notice.
5224 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
5226 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
5227 MEMMODEL_MASK to determine memory model.
5228 (atomic_store<mode>): Ditto from operands[2].
5229 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
5231 2013-01-13 Jakub Jelinek <jakub@redhat.com>
5234 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
5235 (fold_gimple_assign): Don't call unshare_expr here.
5236 (fold_ctor_reference): Call unshare_expr.
5238 2013-01-13 Terry Guo <terry.guo@arm.com>
5240 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5241 * doc/fragments.texi: Document MULTILIB_REUSE.
5242 * gcc.c (multilib_reuse): New internal spec.
5243 (set_multilib_dir): Also search multilib from multilib_reuse.
5244 * genmultilib (tmpmultilib3): Refactor code.
5245 (tmpmultilib4): Ditto.
5246 (multilib_reuse): New multilib argument.
5248 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
5250 * Makefile.in: Update copyright.
5252 2013-01-12 Tom de Vries <tom@codesourcery.com>
5255 * calls.c (expand_call): Check if arg_nr is valid.
5257 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5259 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5260 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5261 documentation. Add missing '__' in front of
5262 __builtin_ia32_packssdw256.
5264 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5267 * config/s390/s390.c (s390_preferred_reload_class): Do not return
5268 NO_REGS for larl operands.
5269 (s390_reload_larl_operand): Use s390_load_address instead of
5272 2013-01-11 Richard Biener <rguenther@suse.de>
5274 * tree-cfg.c (verify_node_sharing_1): Split out from ...
5275 (verify_node_sharing): ... here.
5276 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5278 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
5280 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5281 Substitute TREECHECKING.
5282 * configure: Regenerate.
5283 * Makefile.in (TREECHECKING): New.
5285 2013-01-11 Richard Guenther <rguenther@suse.de>
5287 PR tree-optimization/44061
5288 * tree-vrp.c (extract_range_basic): Compute zero as
5289 value-range for __builtin_constant_p of function parameters.
5291 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
5293 Update copyright years.
5295 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
5297 PR rtl-optimization/55672
5298 * lra-eliminations.c (mark_not_eliminable): Permit addition with
5299 const to be eliminable.
5301 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
5303 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5304 * configure: Regenerate.
5306 2013-01-10 Richard Biener <rguenther@suse.de>
5308 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
5310 2013-01-10 Richard Biener <rguenther@suse.de>
5313 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5314 locations for virtual PHI arguments.
5315 (rewrite_update_phi_arguments): Likewise.
5317 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
5319 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5322 2013-01-10 Jakub Jelinek <jakub@redhat.com>
5324 PR tree-optimization/55921
5325 * tree-complex.c (expand_complex_asm): New function.
5326 (expand_complex_operations_1): Call it for GIMPLE_ASM.
5328 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5331 * config/s390/s390.c (s390_symref_operand_p)
5332 (s390_loadrelative_operand_p): Merge the two functions.
5333 (s390_check_qrst_address, print_operand_address): Add parameters
5334 to s390_loadrelative_operand_p invokation.
5335 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5336 (s390_reload_larl_operand, s390_secondary_reload): Use
5337 s390_loadrelative_operand_p instead of s390_symref_operand_p.
5338 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5340 2013-01-09 Mike Stump <mikestump@comcast.net>
5342 * dse.c (record_store): Remove unnecessary assert.
5344 2013-01-09 Jan Hubicka <jh@suse.cz>
5346 PR tree-optimization/55569
5347 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5348 * cfgloop.h (scale_loop_profile): Likewise.
5350 2013-01-09 Jan Hubicka <jh@suse.cz>
5353 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5355 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5357 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5360 * expr.h (maybe_emit_group_store): Declare.
5361 * expr.c (maybe_emit_group_store): New function.
5362 * builtins.c (expand_builtin_int_roundingfn): Call it.
5363 (expand_builtin_int_roundingfn_2): Likewise.
5365 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
5367 PR rtl-optimization/55829
5368 * lra-constraints.c (match_reload): Add code for absent output.
5369 (curr_insn_transform): Add code for reloads of matched inputs
5372 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
5374 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5375 attribute of movddup insn to DF.
5376 (*vec_interleave_lowv2df): Ditto.
5377 (vec_dupv2df): Ditto.
5379 2013-01-09 Jan Hubicka <jh@suse.cz>
5381 PR tree-optimiation/55875
5382 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5383 EVERY_ITERATION parameter.
5384 (number_of_iterations_exit): Check if exit is executed every iteration.
5385 (idx_infer_loop_bounds): Similarly here.
5386 (n_of_executions_at_most): Simplify
5387 to only test for cases where statement is dominated by the
5388 particular bound; handle correctly the "postdominance" test.
5389 (scev_probably_wraps_p): Use max loop iterations info
5390 as a global bound first.
5392 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
5393 Nick Clifton <nickc@redhat.com>
5395 * config/v850/v850.md (cbranchsf4): New pattern.
5396 (cstoresf4): New pattern.
5397 (cbranchdf4): New pattern.
5398 (cstoredf4): New pattern.
5399 (movsicc): Disallow floating point comparisons.
5400 (cmpsf_le_insn): Fix order of operators.
5401 (cmpsf_lt_insn): Likewise.
5402 (cmpsf_eq_insn): Likewise.
5403 (cmpdf_le_insn): Likewise.
5404 (cmpdf_lt_insn): Likewise.
5405 (cmpdf_eq_insn): Likewise.
5406 (cmpsf_ge_insn): Use LE comparison.
5407 (cmpdf_ge_insn): Likewise.
5408 (cmpsf_gt_insn): Use LT comparison.
5409 (cmpdf_gt_insn): Likewise.
5410 (cmpsf_ne_insn): Delete pattern.
5411 (cmpdf_ne_insn): Delete pattern.
5412 * config/v850/v850.c (v850_gen_float_compare): Use
5413 gen_cmpdf_eq_insn for NE comparison.
5414 (v850_float_z_comparison_operator)
5415 (v850_float_nz_comparison_operator): Move from here ...
5416 * config/v850/predicates.md: ... to here. Move GT and GE
5417 comparisons into v850_float_z_comparison_operator.
5418 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5420 (v850_float_nz_comparison_operator): Likewise.
5422 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5424 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5425 with calls to gen_insvsi/gen_insvdi.
5427 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5429 * config/i386/i386.c (initial_ix86_tune_features): Set up
5430 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5432 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
5433 Jakub Jelinek <jakub@redhat.com>
5435 PR tree-optimization/48189
5436 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5437 If nitercst is 0, don't predict the exit edge.
5439 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5441 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5442 in asm_fprintf with reg_names.
5443 (aarch64_print_operand_address): Likewise.
5444 (aarch64_return_addr): Likewise.
5445 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5447 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5449 * config/pa/pa.h (VAL_U6_BITS_P): Define.
5450 (INT_U6_BITS): Likewise.
5451 * config/pa/predicates.md (uint6_operand): New predicate.
5452 (shift5_operand, shift6_operand): Likewise.
5453 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5455 (lshrdi3): Use shift6_operand.
5456 (shrpsi4, shrpdi4): New insn patterns.
5457 (extzv): Delete expander.
5458 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
5459 predicates in unamed zero extract patterns. Tighten common constraint.
5460 (extv): Delete expander.
5461 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
5462 predicates in unamed sign extract patterns. Tighten common constraint.
5463 (insv): Delete expander.
5464 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5465 predicates in unamed insert patterns. Tighten common constraint.
5466 Change uint32_operand predicate to uint6_operand predicate in unamed
5467 DImode pattern to insert constant values of type 1...1xxxx.
5469 2013-01-04 Jan Hubicka <jh@suse.cz>
5471 PR tree-optimization/55823
5472 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5475 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5476 Uros Bizjak <ubizjak@gmail.com>
5478 PR rtl-optimization/55845
5479 * df-problems.c (can_move_insns_across): Stop scanning at
5480 volatile_insn_p source instruction or give up if
5481 across_from .. across_to range contains any volatile_insn_p
5484 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5486 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5487 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5489 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5490 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5492 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5495 * asan.c (asan_clear_shadow): New function.
5496 (asan_emit_stack_protection): Use it.
5498 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5500 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5501 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5502 with tab instead of space.
5504 2013-01-08 Nick Clifton <nickc@redhat.com>
5506 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5507 register bank 0 at the start of an interrupt handler.
5508 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5511 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5513 * config/aarch64/aarch64-simd.md
5514 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5515 (aarch64_simd_bsl): Likewise.
5516 (aarch64_vcond_internal<mode>): Likewise.
5517 (vcond<mode><mode>): Likewise.
5518 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5519 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5521 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5523 * config/aarch64/aarch64-builtins.c
5524 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5526 2013-01-08 Martin Jambor <mjambor@suse.cz>
5529 * tree-sra.c (analyze_access_subtree): Return true also after
5530 potentially creating a debug-only replacement.
5532 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5535 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5537 PR tree-optimization/54120
5538 * tree-vrp.c (range_fits_type_p): Don't allow
5539 src_precision < precision from signed vr to unsigned_p
5540 if vr->min or vr->max is negative.
5541 (simplify_float_conversion_using_ranges): Test can_float_p
5542 against CODE_FOR_nothing.
5544 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5545 Richard Biener <rguenther@suse.de>
5548 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5549 types instead of just INTEGER_TYPE types.
5551 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5553 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5556 2013-01-07 Steve Ellcey <sellcey@mips.com>
5559 * config/mips/mips.opt: Change mad to mmad to match documentation.
5561 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5564 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5567 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5570 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5571 (avr_addrspace_t): Add .section_name field.
5572 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5574 (avr_addrspace): Same. Initialize .section_name. Remove last
5575 NULL entry. Put __memx into .progmemx.data.
5576 (progmem_section_prefix): Remove.
5577 (avr_asm_init_sections): No need to initialize progmem_section.
5578 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5579 section name prefix.
5580 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5581 retrieve the progmem section.
5582 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5583 boundary to run over avr_addrspace[].
5584 (avr_register_target_pragmas): Ditto.
5586 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5588 * varasm.c (output_constant_def_contents): For asan_protect_global
5589 protected strings, adjust DECL_ALIGN if needed, before testing for
5591 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5592 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5594 (output_object_block): For asan protected decls, emit asan padding
5595 after their contents.
5596 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5597 (asan_finish_file): Test it here instead.
5599 2013-01-07 Nick Clifton <nickc@redhat.com>
5600 Matthias Klose <doko@debian.org>
5601 Doug Kwan <dougkwan@google.com>
5602 H.J. Lu <hongjiu.lu@intel.com>
5605 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5607 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5609 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5611 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5613 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5615 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5618 * doc/install.texi (Cross-Compiler-Specific Options): Document
5621 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5623 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5624 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5625 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5626 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5627 vqmovun_high_s64): Fix source operand number and update copyright.
5629 2013-01-07 Richard Biener <rguenther@suse.de>
5632 * gimple.h (gimple_call_builtin_p): New overload.
5633 * gimple.c (validate_call): New function.
5634 (gimple_call_builtin_p): Likewise.
5635 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5636 Use gimple_call_builtin_p.
5637 (find_func_clobbers): Likewise.
5638 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5639 (strlen_optimize_stmt): Likewise.
5641 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5643 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5644 (vld1q_dup_*): Likewise.
5646 (vld1q_*): Likewise.
5647 (vld1_lane_*): Likewise.
5648 (vld1q_lane_*): Likewise.
5650 2013-01-07 Richard Biener <rguenther@suse.de>
5652 * lto-streamer.h (LTO_minor_version): Bump to 2.
5654 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5656 * config/aarch64/aarch64-protos.h
5657 (aarch64_const_double_zero_rtx_p): Rename to...
5658 (aarch64_float_const_zero_rtx_p): ...this.
5659 (aarch64_float_const_representable_p): New.
5660 (aarch64_output_simd_mov_immediate): Likewise.
5661 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5662 move immediate case.
5663 * config/aarch64/aarch64.c
5664 (aarch64_const_double_zero_rtx_p): Rename to...
5665 (aarch64_float_const_zero_rtx_p): ...this.
5666 (aarch64_print_operand): Allow printing of new constants.
5667 (aarch64_valid_floating_const): New.
5668 (aarch64_legitimate_constant_p): Check for valid floating-point
5670 (aarch64_simd_valid_immediate): Likewise.
5671 (aarch64_vect_float_const_representable_p): New.
5672 (aarch64_float_const_representable_p): Likewise.
5673 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5674 (aarch64_output_simd_mov_immediate): New.
5675 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5676 (*movdf_aarch64): Likewise.
5677 * config/aarch64/constraints.md (Ufc): New.
5678 (Y): call aarch64_float_const_zero_rtx.
5679 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5681 2013-01-07 Richard Biener <rguenther@suse.de>
5683 PR tree-optimization/55888
5684 PR tree-optimization/55862
5685 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5686 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5687 not if it is contained therein.
5689 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5691 * config/avr/t-avr: Typo.
5693 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5696 * config/avr/t-avr: Don't automatically rebuild
5697 $(srcdir)/config/avr/t-multilib
5698 $(srcdir)/config/avr/avr-tables.opt
5699 $(srcdir)/doc/avr-mmcu.texi
5700 (avr-mcus): New phony target to build them on request.
5701 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5702 * avr/avr-mcus.def: Adjust comments.
5704 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5706 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5708 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5710 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5712 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5714 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5716 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5718 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5719 to generate profiling.
5720 * config/rs6000/aix64.h (LIB_SPEC): Same.
5722 2013-01-04 Andrew Pinski <apinski@cavium.com>
5724 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5726 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5728 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5730 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5732 (ix86_expand_move): Ditto.
5733 (ix86_zero_extend_to_Pmode): Ditto.
5734 (ix86_expand_call): Ditto.
5735 (ix86_expand_special_args_builtin): Ditto.
5736 (ix86_expand_builtin): Ditto.
5738 2013-01-04 Richard Biener <rguenther@suse.de>
5740 PR tree-optimization/55862
5741 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5742 translating them through PHI nodes.
5744 2013-01-04 Martin Jambor <mjambor@suse.cz>
5746 PR tree-optimization/55755
5747 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5748 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5750 2013-01-04 Marek Polacek <polacek@redhat.com>
5753 * opts.c (default_options_optimization): Clarify error message.
5755 2013-01-04 Richard Biener <rguenther@suse.de>
5758 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5761 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5764 * config/pa/pa.md (movsi): Revert previous change.
5765 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5768 2013-01-03 Richard Henderson <rth@redhat.com>
5770 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5771 after eliminating TLS symbols.
5773 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5776 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5777 * graphite-poly.c (debug_gmp_value): Likewise.
5779 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5782 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5783 selected code model, define __code_mode_small__, __code_model_medium__,
5784 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5785 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5786 xchg temporary register with %k. Declare temporary register as
5788 [__x86_64__]: For medium and large code models, preserve %rbx register.
5790 2013-01-03 Richard Biener <rguenther@suse.de>
5792 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5793 (dump_subscript): Adjust.
5794 (finalize_ddr_dependent): Do not dump redundant info.
5795 (analyze_siv_subscript): Adjust.
5796 (subscript_dependence_tester): Likewise.
5797 (compute_affine_dependence): Likewise.
5799 2013-01-03 Richard Biener <rguenther@suse.de>
5802 2013-01-03 Richard Biener <rguenther@suse.de>
5804 PR tree-optimization/55857
5805 * tree-vect-stmts.c (vectorizable_load): Do not setup
5806 re-alignment for invariant loads.
5808 2013-01-02 Richard Biener <rguenther@suse.de>
5810 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5811 invariant load do not generate a vector load from the scalar location.
5813 2013-01-03 Richard Biener <rguenther@suse.de>
5815 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5816 for not vectorizing.
5817 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5818 not build INDIRECT_REFs, call get_name once only.
5819 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5820 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5822 2013-01-03 Richard Biener <rguenther@suse.de>
5824 PR tree-optimization/55857
5825 * tree-vect-stmts.c (vectorizable_load): Do not setup
5826 re-alignment for invariant loads.
5828 2013-01-03 Richard Biener <rguenther@suse.de>
5831 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5832 prefer a built-in decl.
5834 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5836 * gcc.c (process_command): Update copyright notice dates.
5837 * gcov.c (print_version): Likewise.
5838 * gcov-dump.c (print_version): Likewise.
5840 PR rtl-optimization/55838
5841 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5842 iv0.step, iv1.step and step.
5844 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5845 Marc Glisse <marc.glisse@inria.fr>
5847 PR tree-optimization/55832
5848 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5849 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5850 integer_{one,zero}_node.
5852 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5855 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5856 * var-tracking.c (reverse_op): Don't add reverse ops to
5857 VALUEs that have already
5858 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5860 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5862 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5864 2013-01-02 Teresa Johnson <tejohnson@google.com>
5866 * dumpfile.c (dump_loc): Print filename with location.
5867 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5868 new location_t parameter to emit complete unroll message with
5870 (canonicalize_loop_induction_variables): Compute loops location
5871 and pass to try_unroll_loop_completely.
5872 * loop-unroll.c (report_unroll_peel): New function.
5873 (peel_loops_completely): Use new dump format with location
5874 for main dumpfile message, and invoke report_unroll_peel on success.
5875 (decide_unrolling_and_peeling): Ditto.
5876 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5877 by report_unroll_peel.
5878 (decide_peel_completely): Ditto.
5879 (decide_unroll_constant_iterations): Ditto.
5880 (decide_unroll_runtime_iterations): Ditto.
5881 (decide_peel_simple): Ditto.
5882 (decide_unroll_stupid): Ditto.
5883 * cfgloop.c (get_loop_location): New function.
5884 * cfgloop.h (get_loop_location): Declare.
5886 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5888 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5891 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5894 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5895 BLKmode objects when EXPAND_MEMORY is specified.
5897 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5899 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5901 (fold_builtin_cpu): Do not share cpu model decls across statements.
5903 2013-01-02 Jason Merrill <jason@redhat.com>
5906 * tree.c (build_array_type_1): Revert earlier change.
5908 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5910 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5912 * config/aarch64/aarch64-tune.md: Re-generate.
5914 2013-01-02 Richard Biener <rguenther@suse.de>
5916 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5917 invariant load do not generate a vector load from the scalar location.
5919 2013-01-02 Richard Biener <rguenther@suse.de>
5922 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5923 * configure: Regenerate.
5925 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5927 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5928 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5929 (expand_builtin_int_roundingfn_2): Keep the original target around
5930 for the fallback case.
5932 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5934 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5935 to be clear for sign changes.
5937 2013-01-01 Jan Hubicka <jh@suse.cz>
5939 * ipa-inline-analysis.c: Fix formatting.
5941 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5943 PR tree-optimization/55831
5944 * tree-vect-loop.c (get_initial_def_for_induction): Use
5945 gsi_after_labels instead of gsi_start_bb.
5947 Copyright (C) 2013 Free Software Foundation, Inc.
5949 Copying and distribution of this file, with or without modification,
5950 are permitted in any medium without royalty provided the copyright
5951 notice and this notice are preserved.