1 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
3 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5 2013-04-02 Richard Biener <rguenther@suse.de>
7 PR tree-optimization/56778
8 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9 Runtime alias tests are not supported for gather loads.
10 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
11 stmts referenced from SSA operands before updating SSA form.
13 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
17 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
18 * config/arm/cortex-a53.md: New file.
19 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
20 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
21 * config/arm/arm.c (arm_issue_rate): Likewise.
22 * config/arm/arm-tune.md: Regenerate
23 * config/arm/arm-tables.opt: Regenerate.
24 * config/arm/arm-cores.def: Add cortex-a53.
26 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
28 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
34 scalar load/store operations using B/H registers.
35 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
37 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
39 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
41 * config/aarch64/aarch64.c
42 (aarch64_simd_scalar_immediate_valid_for_move): New.
43 * config/aarch64/aarch64-protos.h
44 (aarch64_simd_scalar_immediate_valid_for_move): New.
45 * config/aarch64/constraints.md (Dh, Dq): New.
46 * config/aarch64/iterators.md (hq): New.
48 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
50 * reorg.c (get_branch_condition): Deal with conditional returns.
51 (fill_simple_delay_slots): Remove dead code dealing with jumps.
53 2013-04-01 Wei Mi <wmi@google.com>
55 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
56 Truncate operand 2 using %b asm operand modifier.
57 (*<shift_insn><mode>3_mask): Ditto.
58 (*<rotate_insn><mode>3_mask): Ditto.
60 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
63 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
65 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
67 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
69 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
71 2013-03-30 Lawrence Crowl <crowl@google.com>
73 * dse.c (clear_alias_sets): Remove never set.
74 (disqualified_clear_alias_sets): Remove never set.
75 (clear_alias_mode_pool): Remove never set.
76 (dse_step0): Remove condition that is never true.
77 (canon_address): Remove condition that is never true.
78 (dse_step7): Remove condition that is never true.
79 (rest_of_handle_dse): Remove condition that is never true.
80 (rest_of_handle_dse::did_global): Remove never read from above.
81 (dse_step2_spill): Remove never called from above.
82 (dse_step5_spill): Remove never called from above.
84 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
86 * doc/md.texi (Standard Names) <casesi>: Update documentation for
87 JUMP_TABLE_DATA changes.
88 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
89 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
90 (Insns) <jump_table_data>: New entry.
91 * doc/tm.texi: Regenerate.
93 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
95 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
96 for table jump at the end of a basic block using tablejump_p.
97 * targhooks.c (default_invalid_within_doloop): Likewise.
98 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
99 target hook implementation that is identical to the default hook.
100 (rs6000_invalid_within_doloop): Remove.
102 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
103 unused variable from tablejump_p call.
105 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
106 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
107 (INSN_DELETED_P): Likewise.
108 (emit_jump_table_data): New prototype.
109 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
111 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
112 * sched-vis.c (print_insn): Likewise.
113 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
114 insn for compatibility with back ends that use next_active_insn to
115 identify jump table data.
116 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
117 (remove_insn): Likewise.
118 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
120 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
121 (emit_jump_table_data): New function.
123 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
124 basic block, a JUMP_TABLE_DATA never is.
125 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
126 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
127 off from code handling real insns.
128 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
129 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
130 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
131 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
132 is not a NONDEBUG_INSN_P.
133 * ira-costs.c (scan_one_insn): Likewise.
134 * jump.c (mark_all_labels): Likewise.
135 (mark_jump_label_1): Likewise.
136 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
137 * lra.c (get_insn_freq): Expect all insns reaching here to be in
139 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
140 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
141 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
142 JUMP_TABLE_DATA_P insns.
143 (calculate_elim_costs_all_insns): Likewise.
144 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
145 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
146 (delete_output_reload): Code style fixups.
147 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
148 insn flags on this non-insn.
149 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
150 as scheduling barriers, for pre-change compatibility.
151 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
152 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
154 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
155 redundant JUMP_TABLE_DATA_P test.
156 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
157 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
158 (frv_for_each_packet): Likewise.
159 * config/i386/i386.c (min_insn_size): Likewise.
160 (ix86_avoid_jump_mispredicts): Likewise.
161 * config/m32r/m32r.c (m32r_is_insn): Likewise.
162 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
163 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
164 (mips16_insn_length): Robustify.
165 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
166 (mips16_split_long_branches): Likewise.
167 * config/pa/pa.c (pa_combine_instructions): Likewise.
168 * config/rs6000/rs6000.c (get_next_active_insn): Treat
169 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
170 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
171 as contributing to pool range lengths.
172 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
173 Remove redundant JUMP_TABLE_DATA_P test.
174 (sh_loop_align): Likewise.
175 (split_branches): Likewise.
176 (sh_insn_length_adjustment): Likewise.
177 * config/spu/spu.c (get_branch_target): Likewise.
179 2013-03-29 Jan Hubicka <jh@suse.cz>
181 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
182 gcov streaming; stream hot bb threshold to ltrans.
183 * predict.c (get_hot_bb_threshold): Break out from ....
184 (maybe_hot_count_p): ... here.
185 (set_hot_bb_threshold): New function.
186 * lto-section-in.c (lto_section_name): Add profile.
187 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
188 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
190 (histogram_entry): New structure.
191 (histogram, histogram_pool): New global vars.
192 (histogram_hash): New structure.
193 (histogram_hash::hash): New method.
194 (histogram_hash::equal): Likewise.
195 (account_time_size): New function.
196 (cmp_counts): New function.
197 (dump_histogram): New function.
198 (ipa_profile_generate_summary): New function.
199 (ipa_profile_write_summary): New function.
200 (ipa_profile_read_summary): New function.
201 (ipa_profile): Decide on threshold.
202 (pass_ipa_profile): Add ipa_profile_write_summary and ipa_profile_read_summary.
203 * Makefile.in (ipa.o): Update dependencies.
204 * lto-streamer.h (LTO_section_ipa_profile): New section.
206 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
208 * tree.h (VAR_P): New.
210 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
213 * doc/invoke.texi ([-fwhole-program]): Fix typo.
215 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
217 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
218 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
219 (control_flow_insn_p): Likewise.
220 * cfgrtl.c (duplicate_insn_chain): Likewise.
221 * final.c (get_attr_length_1): Likewise.
222 (shorten_branches): Likewise.
223 (final_scan_insn): Likewise.
224 * function.c (instantiate_virtual_regs): Likewise.
225 * gcse.c (insert_insn_end_basic_block): Likewise.
226 * ira-costs.c (scan_one_insn): Likewise.
227 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
228 * lra.c (check_rtl): Likewise.
229 * reload1.c (elimination_costs_in_insn): Likewise.
230 * reorg.c (follow_jumps): Likewise.
232 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
233 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
234 (thumb_far_jump_used_p): Likewise.
235 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
236 (workaround_speculation): Likewise.
237 (add_sched_insns_for_speculation): Likewise.
238 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
239 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
240 (frv_for_each_packet): Likewise.
241 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
242 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
243 (final_emit_insn_group_barriers): Likewise.
244 * config/m32r/m32r.c (m32r_is_insn): Likewise.
245 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
246 (mips16_insn_length): Likewise.
247 * config/pa/pa.c (pa_reorg): Likewise.
248 (pa_combine_instructions): Likewise.
249 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
250 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
251 (sh_reorg): Likewise.
252 (split_branches): Likewise.
253 * config/spu/spu.c (get_branch_target): Likewise.
255 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
258 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
260 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
261 Fix declaration name.
263 2013-03-28 Lawrence Crowl <crowl@google.com>
265 * graphds.h (struct graph.indicies): Remove unused.
266 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
267 (SCOP_ORIGINAL_PDDRS): Remove unused.
268 * sese.h (extern insert_loop_close_phis): Removed unused.
269 (extern insert_guard_phis): Removed unused.
270 (extern ivtype_map_elt_info): Removed unused.
271 (new_ivtype_map_elt): Removed unused.
272 * sese.c (ivtype_map_elt_info): Removed unused.
274 2013-03-28 Lawrence Crowl <crowl@google.com>
276 * Makefile.in: Add several missing include dependences.
278 (test-dump.o): New. This object is not added to any executable,
279 but is present for ad-hoc testing.
281 (debug (const bitmap_head_def &)): New.
282 (debug (const bitmap_head_def *)): New.
284 (extern debug (const bitmap_head_def &)): New.
285 (extern debug (const bitmap_head_def *)): New.
287 (debug (edge_def &)): New.
288 (debug (edge_def *)): New.
290 (debug (basic_block_def &)): New.
291 (debug (basic_block_def *)): New.
293 (dump_node (const_tree, int, FILE *)): Correct source file.
295 (debug (die_struct &)): New.
296 (debug (die_struct *)): New.
298 (extern debug (die_struct &)): New.
299 (extern debug (die_struct *)): New.
300 * gimple-pretty-print.c
301 (debug (gimple_statement_d &)): New.
302 (debug (gimple_statement_d *)): New.
303 * gimple-pretty-print.h
304 (extern debug (gimple_statement_d &)): New.
305 (extern debug (gimple_statement_d *)): New.
307 (debug (ira_allocno_copy &)): New.
308 (debug (ira_allocno_copy *)): New.
309 (debug (ira_allocno &)): New.
310 (debug (ira_allocno *)): New.
312 (extern debug (ira_allocno_copy &)): New.
313 (extern debug (ira_allocno_copy *)): New.
314 (extern debug (ira_allocno &)): New.
315 (extern debug (ira_allocno *)): New.
317 (debug (live_range &)): New.
318 (debug (live_range *)): New.
320 (debug (lra_live_range &)): New.
321 (debug (lra_live_range *)): New.
323 (debug (lra_live_range &)): New.
324 (debug (lra_live_range *)): New.
326 (debug (omega_pb_d &)): New.
327 (debug (omega_pb_d *)): New.
329 (extern debug (omega_pb_d &)): New.
330 (extern debug (omega_pb_d *)): New.
332 (debug (const rtx_def &)): New.
333 (debug (const rtx_def *)): New.
335 (debug_tree (tree): Move within file.
336 (debug_raw (const tree_node &)): New.
337 (debug_raw (const tree_node *)): New.
338 (dump_tree_via_hooks (const tree_node *, int)): New.
339 (debug (const tree_node &)): New.
340 (debug (const tree_node *)): New.
341 (debug_verbose (const tree_node &)): New.
342 (debug_verbose (const tree_node *)): New.
343 (debug_head (const tree_node &)): New.
344 (debug_head (const tree_node *)): New.
345 (debug_body (const tree_node &)): New.
346 (debug_body (const tree_node *)): New.
347 (debug_vec_tree (tree): Move and reimplement in terms of dump.
348 (debug (vec<tree, va_gc> &)): New.
349 (debug (vec<tree, va_gc> *)): New.
351 (extern debug (const rtx_def &)): New.
352 (extern debug (const rtx_def *)): New.
354 (debug_raw (simple_bitmap_def &)): New.
355 (debug_raw (simple_bitmap_def *)): New.
356 (debug (simple_bitmap_def &)): New.
357 (debug (simple_bitmap_def *)): New.
359 (extern debug (simple_bitmap_def &)): New.
360 (extern debug (simple_bitmap_def *)): New.
361 (extern debug_raw (simple_bitmap_def &)): New.
362 (extern debug_raw (simple_bitmap_def *)): New.
364 (debug (vinsn_def &)): New.
365 (debug (vinsn_def *)): New.
366 (debug_verbose (vinsn_def &)): New.
367 (debug_verbose (vinsn_def *)): New.
368 (debug (expr_def &)): New.
369 (debug (expr_def *)): New.
370 (debug_verbose (expr_def &)): New.
371 (debug_verbose (expr_def *)): New.
372 (debug (vec<rtx> &)): New.
373 (debug (vec<rtx> *)): New.
375 (extern debug (vinsn_def &)): New.
376 (extern debug (vinsn_def *)): New.
377 (extern debug_verbose (vinsn_def &)): New.
378 (extern debug_verbose (vinsn_def *)): New.
379 (extern debug (expr_def &)): New.
380 (extern debug (expr_def *)): New.
381 (extern debug_verbose (expr_def &)): New.
382 (extern debug_verbose (expr_def *)): New.
383 (extern debug (vec<rtx> &)): New.
384 (extern debug (vec<rtx> *)): New.
386 (_list_iter_cond_expr): Make inline instead of static.
388 (debug (sreal &)): New.
389 (debug (sreal *)): New.
391 (extern debug (sreal &)): New.
392 (extern debug (sreal *)): New.
394 (extern debug_raw (const tree_node &)): New.
395 (extern debug_raw (const tree_node *)): New.
396 (extern debug (const tree_node &)): New.
397 (extern debug (const tree_node *)): New.
398 (extern debug_verbose (const tree_node &)): New.
399 (extern debug_verbose (const tree_node *)): New.
400 (extern debug_head (const tree_node &)): New.
401 (extern debug_head (const tree_node *)): New.
402 (extern debug_body (const tree_node &)): New.
403 (extern debug_body (const tree_node *)): New.
404 (extern debug (vec<tree, va_gc> &)): New.
405 (extern debug (vec<tree, va_gc> *)): New.
407 (debug (struct loop &)): New.
408 (debug (struct loop *)): New.
409 (debug_verbose (struct loop &)): New.
410 (debug_verbose (struct loop *)): New.
411 * tree-dump.c: Add header dependence.
413 (extern debug (struct loop &)): New.
414 (extern debug (struct loop *)): New.
415 (extern debug_verbose (struct loop &)): New.
416 (extern debug_verbose (struct loop *)): New.
418 (debug (data_reference &)): New.
419 (debug (data_reference *)): New.
420 (debug (vec<data_reference_p> &)): New.
421 (debug (vec<data_reference_p> *)): New.
422 (debug (vec<ddr_p> &)): New.
423 (debug (vec<ddr_p> *)): New.
425 (extern debug (data_reference &)): New.
426 (extern debug (data_reference *)): New.
427 (extern debug (vec<data_reference_p> &)): New.
428 (extern debug (vec<data_reference_p> *)): New.
429 (extern debug (vec<ddr_p> &)): New.
430 (extern debug (vec<ddr_p> *)): New.
432 (debug (pt_solution &)): New.
433 (debug (pt_solution *)): New.
435 (extern debug (pt_solution &)): New.
436 (extern debug (pt_solution *)): New.
438 (debug (_var_map &)): New.
439 (debug (_var_map *)): New.
440 (debug (tree_live_info_d &)): New.
441 (debug (tree_live_info_d *)): New.
443 (extern debug (_var_map &)): New.
444 (extern debug (_var_map *)): New.
445 (extern debug (tree_live_info_d &)): New.
446 (extern debug (tree_live_info_d *)): New.
448 2013-03-28 Jan Hubicka <jh@suse.cz>
450 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
452 2013-03-28 Ian Bolton <ian.bolton@arm.com>
454 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
455 record only when desired or required.
457 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
459 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
460 *vec_extractv2di_1_rex64. Use x64 isa attribute.
462 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
464 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
465 (*andsi3_compare0_uxtw): New pattern.
466 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
467 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
469 2013-03-28 Jan Hubicka <jh@suse.cz>
471 * data-streamer-in.c (streamer_read_gcov_count): New function.
472 * gimple-streamer-out.c: Include value-prof.h.
473 (output_gimple_stmt): Output histogram.
474 (output_bb): Use streamer_write_gcov_count.
475 * value-prof.c: Include data-streamer.h
476 (dump_histogram_value): Add HIST_TYPE_MAX.
477 (stream_out_histogram_value): New function.
478 (stream_in_histogram_value): New function.
479 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
480 (stream_out_histogram_value, stream_in_histogram_value): Declare.
481 * data-streamer-out.c (streamer_write_gcov_count): New function.
482 (streamer_write_gcov_count_stream): New function.
483 * lto-cgraph.c (lto_output_edge): Update counter streaming.
484 (lto_output_node): Likewise.
485 (input_node, input_edge): Likewise.
486 * lto-streamer-out.c (output_cfg): Update streaming.
487 * lto-streamer-in.c (input_cfg): Likewise.
488 * data-streamer.h (streamer_write_gcov_count,
489 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
490 * gimple-streamer-in.c: Include value-prof.h
491 (input_gimple_stmt): Input histograms.
492 (input_bb): Update profile streaming.
494 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
496 * genmodes.c (emit_max_int): New function.
497 (emit_insn_modes_h): Added call to emit_max_function.
498 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
500 * machmode.def: Fixed comment.
502 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
504 * combine.c (try_combine): Removed useless assert.
505 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
507 2013-03-28 Marek Polacek <polacek@redhat.com>
508 Richard Biener <rguenther@suse.de>
510 PR tree-optimization/56695
511 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
512 build signed result of a vector comparison.
513 * tree-cfg.c (verify_gimple_comparison): Check that a result
514 of a vector comparison has signed type.
516 2013-03-28 Richard Biener <rguenther@suse.de>
518 PR tree-optimization/37021
519 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
520 do not restrict gaps between groups.
521 * tree-vect-stmts.c (vectorizable_load): Properly account for
522 a gap between groups.
524 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
526 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
527 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
530 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
532 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
533 * doc/extend.texi (Named Address Spaces): Ditto.
534 (Variable Attributes): Ditto.
536 2013-03-27 Kai Tietz <ktietz@redhat.com>
538 * config.build: Add support for cygwin x64 target.
539 * config.gcc: Likewise.
540 * config.host: Likewise.
541 * configure.ac: Likewise
542 * configure: Regenerated.
544 2013-03-27 Kai Tietz <ktietz@redhat.com>
546 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
547 * config/i386/t-cygwin-w64: New file.
548 * config/i386/cygwin-w64.h: New file.
549 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
550 and add support for x64-cygwin target.
551 (CPP_SPEC): Likewise.
552 (CXX_WRAP_SPEC_LIST): Undefine before define.
553 (LIBGCJ_SONAME): Use 15 as version.
555 2013-03-27 Richard Biener <rguenther@suse.de>
557 PR tree-optimization/56716
558 * tree-ssa-structalias.c (perform_var_substitution): Adjust
559 dumping for ref nodes.
561 2013-03-27 Martin Jambor <mjambor@suse.cz>
563 PR tree-optimization/55334
564 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
565 restricted pointers to arrays.
567 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
569 * Makefile.in (.SUFFIXES): Add .cc.
570 (.c.o): Apply same recipe for implicit rule .cc.o.
572 2013-03-27 Richard Biener <rguenther@suse.de>
574 PR tree-optimization/37021
575 * tree-vect-data-refs.c (vect_check_strided_load): Allow
576 REALPART/IMAGPART_EXPRs around the supported refs.
577 * tree-ssa-structalias.c (find_func_aliases): Assume that
578 floating-point values are not used to transfer pointers.
580 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
582 * target.def (TARGET_HAS_IFUNC_P): New target hook.
583 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
584 * doc/tm.texi: Regenerate.
585 * targhooks.h (default_has_ifunc_p): New.
586 * targhooks.c (default_has_ifunc_p): Ditto.
587 * config/linux-protos.h: New file.
588 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
589 this hook for linux which disables support of indirect functions in
591 * config/linux-android.c: New file.
592 * config/t-linux-android.c: Ditto.
593 * config.gcc: Added new object file linux-android.o.
594 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
595 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
596 * varasm.c (do_assemble_alias): Likewise.
597 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
598 doesn't support indirect functions.
599 * configure: Regenerate.
601 2013-03-27 Bin Cheng <bin.cheng@arm.com>
604 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
605 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
608 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
610 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
612 2013-03-27 Terry Guo <terry.guo@arm.com>
614 * config/arm/arm-cores.def: Added core cortex-r7.
615 * config/arm/arm-tune.md: Regenerated.
616 * config/arm/arm-tables.opt: Regenerated.
617 * doc/invoke.texi: Added entry for core cortex-r7.
619 2013-03-27 Walter Lee <walt@tilera.com>
621 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
622 double-decrement of next_scratch_regno.
624 2013-03-27 Walter Lee <walt@tilera.com>
626 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
628 (insn_v1mulus): Ditto.
629 (insn_v2muls): Ditto.
631 2013-03-27 Walter Lee <walt@tilera.com>
633 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
635 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
637 2013-03-27 Walter Lee <walt@tilera.com>
639 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
641 (*sibcall_value): Ditto.
643 2013-03-27 Walter Lee <walt@tilera.com>
645 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
646 (insn_mnz_v8qi): ... this ...
647 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
649 (insn_v<n>mnz): Replaced by ...
650 (insn_v1mnz): ... this ...
651 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
653 (insn_mz_<mode>): Replaced by ...
654 (insn_mz_v8qi): ... this ...
655 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
657 (insn_v<n>mz): Replaced by ...
658 (insn_v1mz): ... this ...
659 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
662 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
664 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
666 2013-03-26 Roland McGrath <mcgrathr@google.com>
668 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
669 than fprintf with a non-constant, non-format string.
671 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
673 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
674 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
676 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
677 attribute. Use general_x64nomem_operand as operand 1 predicate.
678 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
679 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
680 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
681 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
682 (mov<mode>_insv_1): Remove expander. Merge insn with
683 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
684 Use general_x64nomem_operand as operand 1 predicate.
685 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
686 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
687 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
688 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
689 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
690 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
691 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
692 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
693 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
694 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
695 (general_x64nomem_operand): Ditto.
697 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
699 * config/rtems.opt: Add -pthread option.
701 2013-03-26 Richard Biener <rguenther@suse.de>
703 * alias.c (find_base_term): Avoid redundant and not used recursion.
704 (base_alias_check): Get the initial base term from the caller.
705 (true_dependence_1): Compute and pass base terms to base_alias_check.
706 (write_dependence_p): Likewise.
707 (may_alias_p): Likewise.
709 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
711 * config/aarch64/aarch64.c (aarch64_classify_address): Support
712 PC-relative load in SI modes and above only.
714 2013-03-26 Xinyu Qi <xyqi@marvell.com>
716 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
717 * config/arm/iwmmxt.md (WCGR0): Update.
718 (WCGR1, WCGR2, WCGR3): Likewise.
720 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
722 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
723 Use x64 and nox64 isa attributes.
725 2013-03-26 Richard Biener <rguenther@suse.de>
727 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
728 alignment computations and rely on get_object_alignment_1
729 for the !TYPE_P case.
730 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
732 2013-03-26 Walter Lee <walt@tilera.com>
734 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
735 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
737 2013-03-25 Jeff Law <law@redhat.com>
738 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
739 check for INTEGRAL_TYPE_P that was missing due to checking in
740 wrong version of prior patch.
742 2013-03-25 Walter Lee <walt@tilera.com>
744 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
745 TILEGX_INSN_SHUFFLEBYTES1.
746 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
748 (tilegx_builtins): Ditto.
749 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
751 2013-03-25 Walter Lee <walt@tilera.com>
753 * config/tilegx/tilegx.md (floatsisf2): New pattern.
754 (floatunssisf2): New pattern.
755 (floatsidf2): New pattern.
756 (floatunssidf2): New pattern.
758 2013-03-25 Walter Lee <walt@tilera.com>
760 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
761 tests for constraint J, K, N, P.
763 2013-03-25 Walter Lee <walt@tilera.com>
765 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
766 Use indirect/pcrel encoding.
767 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
770 2013-03-25 Steve Ellcey <sellcey@mips.com>
772 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
773 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
774 * config/mips/mips.c (mips_option_override): Set IMADD default.
775 * config/mips/mips.h (PTF_AVOID_IMADD): New.
776 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
777 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
778 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
779 * doc/invoke.texi (-mimadd/-mno-imadd): New.
781 2013-03-25 Jeff Law <law@redhat.com>
783 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
784 slightly to avoid creating and folding useless trees. Simplify
785 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
787 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
789 * config/i386/i386.md (*zero_extendsidi2): Merge with
790 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
791 * config/i386/predicates.md (x86_64_zext_operand): Rename from
792 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
793 targets. Clarify comment.
795 2013-03-25 Martin Jambor <mjambor@suse.cz>
797 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
798 pass-through jump functions differently.
799 (ipa_read_jump_function): Likewise. Also use setter functions to set
802 2013-03-25 Martin Jambor <mjambor@suse.cz>
804 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
805 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
807 (ipa_get_indirect_edge_target): New function.
808 (devirtualization_time_bonus): New parameter known_aggs, pass it to
809 ipa_get_indirect_edge_target. Update all callers.
810 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
811 ipa_get_indirect_edge_target_1 instead of calling
812 ipa_get_indirect_edge_target.
813 (create_specialized_node): Pass aggvlas to
814 ipcp_discover_new_direct_edges.
816 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
818 * config/arm/arm.md (f_sels, f_seld): New types.
819 (*cmov<mode>): New pattern.
820 * config/arm/predicates.md (arm_vsel_comparison_operator): New
823 2013-03-25 Kai Tietz <ktietz@redhat.com>
825 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
826 POSIX-printf for mingw-hosted builds.
828 2013-03-25 Richard Biener <rguenther@suse.de>
831 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
832 must-not-throw stmt location.
834 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
836 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
837 Emit load-acquire versions when acq is true.
838 (arm_emit_store_exclusive): Add rel parameter.
839 Emit store-release versions when rel is true.
840 (arm_split_compare_and_swap): Use acquire-release instructions
842 of barriers when appropriate.
843 (arm_split_atomic_op): Likewise.
844 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
845 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
846 (VUNSPEC_SLX): Likewise.
847 (VUNSPEC_LDA): Likewise.
848 (VUNSPEC_STL): Likewise.
849 * config/arm/sync.md (atomic_load<mode>): New pattern.
850 (atomic_store<mode>): Likewise.
851 (arm_load_acquire_exclusive<mode>): Likewise.
852 (arm_load_acquire_exclusivesi): Likewise.
853 (arm_load_acquire_exclusivedi): Likewise.
854 (arm_store_release_exclusive<mode>): Likewise.
856 2013-03-25 Catherine Moore <clm@codesourcery.com>
858 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
859 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
860 * config/mip/predicates.md (lwsp_swsp_operand,
861 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
862 sb16_operand, db4_operand, db7_operand, ib3_operand,
863 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
864 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
865 andi16_operand): New predicates.
866 * config/mips/mips.md (compression): New attribute.
867 (enabled): New attribute.
868 (length): Consider compression in computing length.
869 (shift_compression): New code attribute.
870 (*add<mode>3): New operands. Record compression.
871 (sub<mode>3): Likewise.
872 (one_cmpl<mode>2): Likewise.
873 (*and<mode>3): Likewise.
874 (*ior<mode>3): Likewise.
875 (unnamed pattern for xor): Likewise.
876 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
877 (*<optab><mode>3): Likewise.
878 (*mov<mode>_internal: Likewise.
879 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
880 (mips_unsigned_immediate_p): New.
881 (umips_lwsp_swsp_address_p): New.
882 (m16_based_address_p): New.
883 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
884 (mips_unsigned_immediate_p): New prototype.
885 (lwsp_swsp_address_p): New prototype.
886 (m16_based_address_p): New prototype.
887 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
888 (mips_signed_immediate_p): New function.
889 (m16_based_address_p): New function.
890 (lwsp_swsp_address_p): New function.
891 (mips_print_operand_punctuation): Recognize short delay slot insns
892 for microMIPS.add<mode>3"
894 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
897 * config/arm/iterators.md (v_cmp_result): New mode attribute.
898 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
900 2013-03-25 Richard Biener <rguenther@suse.de>
902 PR tree-optimization/56689
903 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
906 2013-03-25 Richard Biener <rguenther@suse.de>
908 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
910 (memory_references): Likewise.
911 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
912 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
913 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
914 (gather_mem_refs_in_loops): Fold into ...
915 (analyze_memory_references): ... this. Move initialization
916 to tree_ssa_lim_initialize.
917 (fill_always_executed_in): Rename to ...
918 (fill_always_executed_in_1): ... this.
919 (fill_always_executed_in): Move contains_call computation to
920 this new function from ...
921 (tree_ssa_lim_initialize): ... here.
922 (tree_ssa_lim): Call fill_always_executed_in.
924 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
926 * postreload.c (reload_combine): Fix code detecting returns.
928 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
930 * function.c (emit_use_return_register_into_block): On cc0 targets,
931 do not emit the sequence between cc0 setter and user.
933 2013-03-25 Kai Tietz <ktietz@redhat.com>
935 * config/i386/predicates.md (local_symbolic_operand): Interpret
936 dll-imported symbols as none-local.
938 2013-03-25 Richard Biener <rguenther@suse.de>
940 * tree-ssa-loop-im.c (struct depend): Remove.
941 (struct lim_aux_data): Make depends a vec of gimples.
942 (free_lim_aux_data): Adjust.
943 (add_dependency): Likewise.
944 (set_level): Likewise.
946 2013-03-25 Richard Biener <rguenther@suse.de>
949 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
950 the pointer returned by calls with ECF_MALLOC set.
952 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
954 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
956 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
958 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
959 using MMXMODE mode iterator.
960 (*move<mode>_internal): Merge with *movv2sf_internal and
961 *movv2sf_internal_rex64 using MMXMODE mode iterator.
963 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
965 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
966 (record_last_mem_set_info): Likewise.
968 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
969 of XNEWVEC followed by memset.
970 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
972 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
974 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
975 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
976 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
977 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
978 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
979 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
980 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
981 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
982 BARRIER_P instead of GET_CODE.
984 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
986 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
987 inaccuracy in the probing code.
989 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
990 (ctrapdi4): Likewise.
992 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
994 * calls.c (expand_call): Add missing guard to code handling return
995 of non-BLKmode structures in MSB.
996 * function.c (expand_function_end): Likewise.
998 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1000 * combine.c (try_combine): Adjust comment. Do not add the set of
1001 insn #0 if the destination indirectly is set or dies in insn #2.
1002 Tidy up code to distribute a new note.
1004 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
1006 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
1007 also for alternatives 16 and 17.
1009 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
1011 * config/i386/sse.md (*mov<mode>_internal): Merge with
1012 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
1013 Emit insn template depending on type attribute. Use
1014 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1015 movd instead of movq mnemonic for interunit moves. Rewrite mode
1016 attribute calculation. Remove unit attribute calculation.
1017 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
1018 Set prefix_data16 attribute for DImode ssemov types.
1019 Use Ym instead of y for SSE-MMX conversion alternatives.
1020 Reorder operand constraints.
1022 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
1024 * df.h (df_insn_delete): Adjust prototype.
1025 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
1026 and let it decide whether mark the basic block dirty.
1027 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
1028 * df-scan.c (df_insn_info_delete): New helper function, split
1029 off from df_insn_delete.
1030 (df_scan_free_bb_info): Use it.
1031 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
1033 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
1034 that the insn is actually an insn and it has a non-NULL basic block.
1035 Do not mark basic block dirty if only deleting a DEBUG_INSN.
1037 2013-03-22 Richard Biener <rguenther@suse.de>
1039 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
1041 (mem_ref_alloc): Do not allocate them.
1042 (refs_independent_p): Do not query or maintain a cache.
1044 2013-03-22 Richard Biener <rguenther@suse.de>
1046 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
1047 (gather_mem_refs_in_loops): Do not compute it.
1048 (analyze_memory_references): Do not allocate it.
1049 (tree_ssa_lim_finalize): Do not free it.
1050 (for_all_locs_in_loop): Do not query all_refs_in_loop.
1052 2013-03-22 Richard Biener <rguenther@suse.de>
1054 * is-a.h (as_a): Use gcc_checking_assert.
1056 2013-03-22 Ian Bolton <ian.bolton@arm.com>
1058 * config/aarch64/aarch64.c (aarch64_print_operand): New
1059 format specifier for printing a constant in hex.
1060 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1061 format specifier for printing second operand.
1063 2013-03-22 Richard Biener <rguenther@suse.de>
1065 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
1067 (gather_mem_refs_in_loops): Perform store accumulation here.
1068 (create_vop_ref_mapping_loop): Remove.
1069 (create_vop_ref_mapping): Likewise.
1070 (analyze_memory_references): Initialize refs_stored_in_loop.
1071 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
1072 (record_indep_loop): Remove.
1073 (record_dep_loop): New function.
1074 (ref_indep_loop_p_1): Adjust to only walk over references
1075 in the loop, not its subloops.
1076 (ref_indep_loop_p): Rename to ...
1077 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
1078 maintaining a more fine-grained cache.
1079 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
1080 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
1082 2013-03-22 Richard Biener <rguenther@suse.de>
1084 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
1085 (struct mem_ref): Make accesses_in_loop a vec of a vec of
1086 aggregate mem_ref_loc.
1087 (free_mem_ref_locs): Inline into ...
1088 (memref_free): ... this and adjust.
1089 (mem_ref_alloc): Adjust.
1090 (mem_ref_locs_alloc): Remove.
1091 (record_mem_ref_loc): Adjust.
1092 (get_all_locs_in_loop): Rewrite into ...
1093 (for_all_locs_in_loop): ... this iterator.
1094 (rewrite_mem_ref_loc): New functor.
1095 (rewrite_mem_refs): Use for_all_locs_in_loop.
1096 (sm_set_flag_if_changed): New functor.
1097 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
1098 (ref_always_accessed): New functor.
1099 (ref_always_accessed_p): Use for_all_locs_in_loop.
1101 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1103 * tree-pass.h (PROP_gimple_lvec): New.
1104 * passes.c (dump_properties): Handle PROP_gimple_lvec.
1105 (init_optimization_passes): Move pass_lower_vector.
1106 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
1108 (pass_lower_vector): Provide PROP_gimple_lvec.
1109 (pass_lower_vector_ssa): Likewise.
1110 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
1112 2013-03-21 Mark Wielaard <mjw@redhat.com>
1114 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1116 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
1118 * config/i386/i386.md (*movdi_internal): Disparage slightly
1119 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
1120 conversion alternatives.
1122 2013-03-21 Jakub Jelinek <jakub@redhat.com>
1125 * diagnostic.def (DK_WERROR): New kind.
1126 * diagnostic.h (werrorcount): Define.
1127 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
1128 promoted to DK_ERROR, increment DK_WERROR counter instead of
1130 * toplev.c (toplev_main): Call print_ignored_options even if
1131 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
1132 even if just werrorcount is non-zero.
1135 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
1137 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
1138 (string_cst_pool_decl): New function.
1139 (optimize_one_addr_into_implicit_ptr): New function.
1140 (resolve_addr_in_expr): Optimize DWARF location expression
1141 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
1142 which doesn't live in memory, but has DW_AT_location or
1143 DW_AT_const_value, or refers to a string literal, into
1144 DW_OP_GNU_implicit_pointer.
1145 (optimize_location_into_implicit_ptr): New function.
1146 (resolve_addr): If removing DW_AT_location of a variable because
1147 it was DW_OP_addr of address of the variable, but the variable doesn't
1148 live in memory, try to emit const value attribute for the initializer.
1150 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1152 * tree.h (VECTOR_TYPE_P): New macro.
1153 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
1155 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
1156 VEC_COND_EXPR cannot be lvalues.
1157 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
1159 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1161 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
1162 Restrict the transformation to equal modes.
1164 2013-03-21 Richard Biener <rguenther@suse.de>
1166 PR tree-optimization/39326
1167 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
1168 (MEM_ANALYZABLE): Adjust.
1169 (record_mem_ref_loc): Move bitmap ops ...
1170 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
1171 unanalyzable refs, do not record locations for it.
1172 (analyze_memory_references): Allocate ref zero as shared
1174 (refs_independent_p): Do not test for unanalyzed mems here.
1175 (ref_indep_loop_p_1): Special-case disambiguation against
1177 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
1179 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
1181 * config/arm/arm-protos.h (tune_params): Add
1182 prefer_neon_for_64bits field.
1183 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
1184 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
1185 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1186 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1187 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
1188 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1189 (arm_option_override): Handle -mneon-for-64bits new option.
1190 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
1191 (prefer_neon_for_64bits): Declare new variable.
1192 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
1193 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
1194 (arch_enabled): Handle new arch types. Remove support for onlya8
1196 (one_cmpldi2): Use new arch names.
1197 (zero_extend<mode>di2, extend<mode>di2): Ditto.
1198 * config/arm/arm.opt (mneon-for-64bits): Add option.
1199 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
1200 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
1201 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
1203 * doc/invoke.texi (-mneon-for-64bits): Document.
1205 2013-03-21 Richard Biener <rguenther@suse.de>
1207 PR tree-optimization/39326
1208 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
1209 (sort_bbs_in_loop_postorder_cmp): New function.
1210 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
1212 2013-03-21 Richard Biener <rguenther@suse.de>
1214 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
1215 (vect_insert_into_interleaving_chain): Likewise.
1216 (vect_drs_dependent_in_basic_block): Inline ...
1217 (vect_slp_analyze_data_ref_dependence): ... here. New function,
1219 (vect_analyze_data_ref_dependence): ... here. Simplify.
1220 (vect_check_interleaving): Simplify.
1221 (vect_analyze_data_ref_dependences): Likewise. Split out ...
1222 (vect_slp_analyze_data_ref_dependences): ... this new function.
1223 (dr_group_sort_cmp): New function.
1224 (vect_analyze_data_ref_accesses): Compute data-reference groups
1225 here instead of in vect_analyze_data_ref_dependence. Use
1226 a more efficient algorithm.
1227 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
1228 vect_slp_analyze_data_ref_dependences. Call
1229 vect_analyze_data_ref_accesses earlier.
1230 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1231 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
1232 (vect_slp_analyze_data_ref_dependences): New prototype.
1234 2013-03-21 Richard Biener <rguenther@suse.de>
1236 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
1237 ref is stored in the loop.
1238 (find_refs_for_sm): Walk only over all stores.
1239 (store_motion_loop): Allocate from lim_bitmap_obstack.
1240 (store_motion): Likewise.
1242 2013-03-21 Richard Biener <rguenther@suse.de>
1244 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
1245 Update virtual SSA form.
1247 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1249 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
1250 * configure: Regenerate.
1251 * config.in: Regenerate.
1252 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
1253 if !HAVE_LD_EH_FRAME_CIEV3.
1255 2013-03-21 Richard Biener <rguenther@suse.de>
1257 * tree-cfg.c (verify_expr_no_block): New function.
1258 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
1259 nor DECL_VALUE_EXPR have locations with associated blocks.
1260 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
1261 (clear_unused_block_pointer): Remove code dealing with
1262 blocks in DECL_DEBUG_EXPR locations.
1264 2013-03-21 Richard Biener <rguenther@suse.de>
1266 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
1267 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
1268 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
1269 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
1270 instead of DECL_DEBUG_EXPR_IS_FROM.
1271 * gimplify.c (gimplify_modify_expr): Likewise.
1272 * tree-cfg.c (verify_expr_location_1): Likewise.
1273 * tree-complex.c (create_one_component_var): Likewise.
1274 * tree-sra.c (create_access_replacement): Likewise.
1275 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
1276 (clear_unused_block_pointer): Likewise.
1277 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1278 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1279 * var-tracking.c (var_debug_decl): Likewise.
1280 (track_expr_p): Likewise.
1281 * tree-inline.c (add_local_variables): Likewise. Set
1282 DECL_HAS_DEBUG_EXPR_P after copying it.
1283 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1284 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1286 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
1289 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
1290 * configure: Regenerate.
1291 * config.in: Regenerate.
1292 * config/i386/i386.md (*movdf_internal): Use
1293 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1294 movd instead of movq mnemonic for interunit moves.
1295 (*movdi_internal): Ditto.
1297 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1299 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
1300 (abd<mode>_3): New pattern.
1301 (aba<mode>_3): New pattern.
1302 (fabd<mode>_3): New pattern.
1304 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1306 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
1307 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
1308 occurrence of REGISTER_PREFIX as its empty string.
1310 2013-03-20 Jeff Law <law@redhat.com>
1312 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
1313 addititional equivalences for equality comparisons between an SSA_NAME
1314 and a constant where the SSA_NAME was set from a widening conversion.
1316 2013-03-20 Walter Lee <walt@tilera.com>
1318 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1320 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1322 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
1323 depending on type attribute.
1324 (*movti_internal): Ditto.
1325 (*movtf_internal): Ditto.
1326 (*movxf_internal): Ditto.
1327 (*movdf_internal): Ditto.
1328 (*movsf_internal): Ditto.
1330 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1332 * config/i386/i386.md (*movti_internal): Set prefix attribute to
1333 maybe_vex for sselog1 and ssemov types.
1334 (*movdi_internal): Reorder operand constraints.
1335 (*movsi_internal): Ditto. Set prefix attribute to
1336 maybe_vex for sselog1 and ssemov types.
1337 (*movtf_internal): Set prefix attribute to maybe_vex
1338 for sselog1 and ssemov types.
1339 (*movdf_internal): Ditto. Set prefix_data16 attribute for
1340 DImode ssemov types. Reorder operand constraints.
1341 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
1342 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
1343 attribute for SImode ssemov types. Reorder operand constraints.
1345 2013-03-20 Martin Jambor <mjambor@suse.cz>
1347 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
1348 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
1350 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
1352 * config/rs6000/predicates.md (indexed_address, update_address_mem
1353 update_indexed_address_mem): New predicates.
1354 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
1355 attribute for load/store instructions.
1356 * config/rs6000/dfp.md (movsd_store): Likewise.
1357 (movsd_load): Likewise.
1358 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
1359 (unnamed HI->DI extend define_insn): Likewise.
1360 (unnamed SI->DI extend define_insn): Likewise.
1361 (unnamed QI->SI extend define_insn): Likewise.
1362 (unnamed QI->HI extend define_insn): Likewise.
1363 (unnamed HI->SI extend define_insn): Likewise.
1364 (unnamed HI->SI extend define_insn): Likewise.
1365 (extendsfdf2_fpr): Likewise.
1366 (movsi_internal1): Likewise.
1367 (movsi_internal1_single): Likewise.
1368 (movhi_internal): Likewise.
1369 (movqi_internal): Likewise.
1370 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
1371 attribute for load/store instructions.
1372 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
1374 (mov<mode>_softfloat): Likewise.
1375 (mov<mode>_hardfloat32): Likewise.
1376 (mov<mode>_hardfloat64): Likewise.
1377 (mov<mode>_softfloat64): Likewise.
1378 (movdi_internal32): Likewise.
1379 (movdi_internal64): Likewise.
1380 (probe_stack_<mode>): Likewise.
1382 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1384 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
1385 floating point, and decimal floating point to reload iterator.
1387 * config/rs6000/constraints.md (wl constraint): New constraints to
1388 return FLOAT_REGS if certain options are used to reduce the number
1389 of separate patterns that exist in the file.
1390 (wx constraint): Likewise.
1391 (wz constraint): Likewise.
1393 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1394 -mdebug=reg, print wg, wl, wx, and wz constraints.
1395 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1396 Initialize the reload functions for 64-bit binary/decimal floating
1398 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1399 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1400 create the buffer on the stack to overcome not having a 32-bit
1402 (rs6000_emit_move): Likewise.
1403 (rs6000_secondary_memory_needed_rtx): Likewise.
1404 (rs6000_alloc_sdmode_stack_slot): Likewise.
1405 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1406 via xxlxor, just like DFmode 0.0.
1408 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
1409 define as 1 if we are running on a power7 or newer.
1410 (enum r6000_reg_class_enum): Add new constraints.
1412 * config/rs6000/dfp.md (movsd): Delete, combine with binary
1413 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1414 with other moves by using conditional constraits (wg). Use LFIWZX
1415 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
1416 (movsd splitter): Likewise.
1417 (movsd_hardfloat): Likewise.
1418 (movsd_softfloat): Likewise.
1420 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
1421 binary and decimal floating point moves.
1422 (fmove_ok): New attributes to combine binary and decimal floating
1423 point moves, and to combine power6x (mfpgpr) moves along normal
1425 (real_value_to_target): Likewise.
1432 (movsf): Combine binary and decimal floating point moves. Combine
1433 power6x (mfpgpr) moves with other moves by using conditional
1434 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
1435 (mov<mode> for SFmode/SDmode); Likewise.
1436 (SFmode/SDmode splitters): Likewise.
1437 (movsf_hardfloat): Likewise.
1438 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
1439 (movsf_softfloat): Likewise.
1440 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
1442 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
1443 wx and wz constraints.
1445 * config/rs6000/constraints.md (wg constraint): New constraint to
1446 return FLOAT_REGS if -mmfpgpr (power6x) was used.
1448 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
1451 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1452 -mdebug=reg, print wg, wl, wx, and wz constraints.
1453 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1454 Initialize the reload functions for 64-bit binary/decimal floating
1456 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1457 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1458 create the buffer on the stack to overcome not having a 32-bit
1460 (rs6000_emit_move): Likewise.
1461 (rs6000_secondary_memory_needed_rtx): Likewise.
1462 (rs6000_alloc_sdmode_stack_slot): Likewise.
1463 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1464 via xxlxor, just like DFmode 0.0.
1466 * config/rs6000/dfp.md (movdd): Delete, combine with binary
1467 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1468 with other moves by using conditional constraits (wg). Use LFIWZX
1469 and STFIWX for loading SDmode on power7.
1470 (movdd splitters): Likewise.
1471 (movdd_hardfloat32): Likewise.
1472 (movdd_softfloat32): Likewise.
1473 (movdd_hardfloat64_mfpgpr): Likewise.
1474 (movdd_hardfloat64): Likewise.
1475 (movdd_softfloat64): Likewise.
1477 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
1478 64-bit binary and decimal floating point moves.
1479 (FMOVE64X): Likewise.
1480 (movdf): Combine 64-bit binary and decimal floating point moves.
1481 Combine power6x (mfpgpr) moves with other moves by using
1482 conditional constraits (wg).
1483 (mov<mode> for DFmode/DDmode): Likewise.
1484 (DFmode/DDmode splitters): Likewise.
1485 (movdf_hardfloat32): Likewise.
1486 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
1487 (movdf_softfloat32): Likewise.
1488 (movdf_hardfloat64_mfpgpr): Likewise.
1489 (movdf_hardfloat64): Likewise.
1490 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
1491 (movdf_softfloat64): Likewise.
1492 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
1493 (reload_<mode>_load): Move to later in the file so they aren't in
1494 the middle of the floating point move insns.
1495 (reload_<mode>_store): Likewise.
1497 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
1500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
1501 constraint if -mdebug=reg.
1502 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
1503 Enable using dd reload support if needed.
1505 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
1506 binary and decimal floating point moves in rs6000.md.
1507 (movtd_internal): Likewise.
1509 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
1510 decimal floating point moves.
1512 (movtf_internal): Likewise.
1513 (mov<mode>_internal, TDmode/TFmode): Likewise.
1514 (movtf_softfloat): Likewise.
1515 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
1517 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
1518 movdi_internal64, using wg constraint for move direct operations.
1519 (movdi_internal64): Likewise.
1521 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
1522 MODES_TIEABLE_P for selected modes. Print the numerical value of
1523 the various virtual registers. Use GPR/FPR first/last values,
1524 instead of hard coding the register numbers. Print which modes
1525 have reload functions registered.
1526 (rs6000_option_override_internal): If -mdebug=reg, trace the options
1527 settings before/after setting cpu, target and subtarget settings.
1528 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
1529 and for secondary reload failures in rs6000_secondary_reload_inner.
1530 (rs6000_secondary_reload_fail): Likewise.
1531 (rs6000_secondary_reload_inner): Likewise.
1533 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
1534 macros for first/last GPR and FPR registers.
1535 (LAST_GPR_REGNO): Likewise.
1536 (FIRST_FPR_REGNO): Likewise.
1537 (LAST_FPR_REGNO): Likewise.
1539 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
1540 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
1541 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
1542 (vcond<mode><mode>): Likewise.
1543 (vcondu<mode><mode>): Likewise.
1544 (vector_gtu<mode>): Likewise.
1545 (vector_gte<mode>): Likewise.
1546 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
1547 to prevent the compiler from converting DImode operations to TImode.
1548 (ior<mode>3): Likewise.
1549 (and<mode>3): Likewise.
1550 (one_cmpl<mode>2): Likewise.
1551 (nor<mode>3): Likewise.
1552 (andc<mode>3): Likewise.
1554 * config/rs6000/constraints.md (wt constraint): New constraint
1555 that returns VSX_REGS if TImode is allowed in VSX registers.
1557 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1560 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1561 similar to TImode, but it is restricted to being in the GPRs.
1563 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1564 TImode to occupy a single VSX register.
1566 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1567 -mvsx-timode for power7/power8.
1568 (power7 cpu): Likewise.
1569 (power8 cpu): Likewise.
1571 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1572 sure that TFmode/TDmode take up two registers if they are ever
1573 allowed in the upper VSX registers.
1574 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1576 (rs6000_init_hard_regno_mode_ok): Likewise.
1577 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1578 constraint. Print if LRA is turned on.
1579 (rs6000_option_override_internal): Give an error if -mvsx-timode
1580 and VSX is not enabled.
1581 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1582 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1583 to reg+offset addressing. Use PTImode when checking offset
1584 addresses for validity.
1585 (reg_offset_addressing_ok_p): Likewise.
1586 (rs6000_legitimate_offset_address_p): Likewise.
1587 (rs6000_legitimize_address): Likewise.
1588 (rs6000_legitimize_reload_address): Likewise.
1589 (rs6000_legitimate_address_p): Likewise.
1590 (rs6000_eliminate_indexed_memrefs): Likewise.
1591 (rs6000_emit_move): Likewise.
1592 (rs6000_secondary_reload): Likewise.
1593 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1594 reloads to fpr registers to continue to use reg+offset addressing,
1595 but 64-bit reloads to altivec registers need reg+reg addressing.
1596 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1597 it. Treat LO_SUM like a PLUS operation.
1598 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1599 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1600 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1601 registers to share a register with a smaller sized type, since VSX
1602 puts scalars in the upper 64-bits.
1603 (print_operand): Add support for PTImode.
1604 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1605 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1606 registers, but don't have arithmetic support.
1607 (rs6000_memory_move_cost): Add test for VSX.
1608 (rs6000_opt_masks): Add -mvsx-timode.
1610 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1613 (VSr): Use wt constraint for TImode.
1614 (VSv): Drop TImode support.
1615 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1616 (vsx_movti_64bit): Likewise.
1617 (vsx_movti_32bit): Likewise.
1618 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1619 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1620 one '?' on the appropriate output constraint. Do not allow TImode
1621 logical operations on 32-bit systems.
1622 (vsx_ior<mode>3): Likewise.
1623 (vsx_xor<mode>3): Likewise.
1624 (vsx_one_cmpl<mode>2): Likewise.
1625 (vsx_nor<mode>3): Likewise.
1626 (vsx_andc<mode>3): Likewise.
1627 (vsx_concat_<mode>): Likewise.
1628 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1630 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1631 OPTION_MASK_VSX_TIMODE.
1632 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1633 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1635 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1636 (TI2 iterator): New iterator for TImode, PTImode.
1637 (wd mode attribute): Add values for vector types.
1638 (movti_string): Replace TI move operations with operations for TImode
1639 and PTImode. Add support for TImode being allowed in VSX registers.
1640 (mov<mode>_string, TImode/PTImode): Likewise.
1641 (movti_ppc64): Likewise.
1642 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1643 (TI mode splitters): Likewise.
1645 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1648 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
1650 PR tree-optimization/56355
1651 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1652 Also handle integers with undefined overflow.
1654 2013-03-20 Catherine Moore <clm@codesourcery.com>
1655 Maciej W. Rozycki <macro@codesourcery.com>
1656 Tom de Vries <tom@codesourcery.com>
1657 Nathan Sidwell <nathan@codesourcery.com>
1658 Iain Sandoe <iain@codesourcery.com>
1659 Nathan Froyd <froydnj@codesourcery.com>
1660 Chao-ying Fu <fu@mips.com>
1662 * doc/extend.texi: (micromips, nomicromips, nocompression):
1663 Document new function attributes.
1664 * doc/invoke.texi (minterlink-compressed, mmicromips,
1665 m14k, m14ke, m14kec): Document new options.
1666 (minterlink-mips16): Update documentation.
1667 * doc/md.texi (ZC, ZD): Document new constraints.
1668 * configure.ac (gcc_cv_as_micromips): Check if linker
1669 supports the .set micromips directive.
1670 * configure: Regenerate.
1671 * config.in: Regenerate.
1672 * config/mips/mips-tables.opt: Regenerate.
1673 * config/mips/micromips.md: New file.
1674 * constraints.md (ZC, ZD): New constraints.
1675 * config/mips/predicates.md (movep_src_register): New predicate.
1676 (movep_src_operand): New predicate.
1677 (non_volatile_mem_operand): New predicate.
1678 * config/mips/mips.md (multimem): New type.
1679 (length): Differentiate between 17-bit and 18-bit branch offsets.
1680 (MOVEP1, MOVEP2): New mode iterator.
1681 (mov_<load>l): Use ZC constraint.
1682 (mov_<load>r): Likewise.
1683 (mov_<store>l): Likewise.
1684 (mov_<store>r): Likewise.
1685 (*branch_equality<mode>_inverted): Add microMIPS support.
1686 (*branch_equality<mode>): Likewise.
1687 (*jump_absolute): Likewise.
1688 (indirect_jump_<mode>): Likewise.
1689 (tablejump_<mode>): Likewise.
1690 (<optab>_internal): Likewise.
1691 (sibcall_internal): Likewise.
1692 (sibcall_value_internal): Likewise.
1693 (prefetch): Use constraint ZD.
1694 * config/mips/mips.opt (minterlink-compressed): New option.
1695 (minterlink-mips16): Now an alias for minterlink-compressed.
1696 (mmicromips): New option.
1697 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1698 (compare_and_swap_12): Likewise.
1699 (sync_add<mode>): Likewise.
1700 (sync_<optab>_12): Likewise.
1701 (sync_old_<optab>_12): Likewise.
1702 (sync_new_<optab>_12): Likewise.
1703 (sync_nand_12): Likewise.
1704 (sync_old_nand_12): Likewise.
1705 (sync_new_nand_12): Likewise.
1706 (sync_sub<mode>): Likewise.
1707 (sync_old_add<mode>): Likewise.
1708 (sync_old_sub<mode>): Likewise.
1709 (sync_new_add<mode>): Likewise.
1710 (sync_new_sub<mode>): Likewise.
1711 (sync_<optab><mode>): Likewise.
1712 (sync_old_<optab><mode>): Likewise.
1713 (sync_new_<optab><mode>): Likewise.
1714 (sync_nand<mode>): Likewise.
1715 (sync_old_nand<mode>): Likewise.
1716 (sync_new_nand<mode>): Likewise.
1717 (sync_lock_test_and_set<mode>): Likewise.
1718 (test_and_set_12): Likewise.
1719 (atomic_compare_and_swap<mode>): Likewise.
1720 (atomic_exchange<mode>_llsc): Likewise.
1721 (atomic_fetch_add<mode>_llsc): Likewise.
1722 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1723 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1724 (umips_save_restore_pattern_p): Likewise.
1725 (umips_load_store_pair_p): Likewise.
1726 (umips_output_load_store_pair): Likewise.
1727 (umips_movep_target_p): Likewise.
1728 (umips_12bit_offset_address_p): Likewise.
1729 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1730 (mips_base_mips16): Rename this...
1731 (mips_base_compression_flags): ...to this. Update all uses.
1732 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1733 (mips_mips16_decl_p): Delete.
1734 (mips_nomips16_decl_p): Delete.
1735 (mips_get_compress_on_flags): New function.
1736 (mips_get_compress_off_flags): New function.
1737 (mips_get_compress_mode): New function.
1738 (mips_get_compress_on_name): New function.
1739 (mips_get_compress_off_name): New function.
1740 (mips_insert_attributes): Support multiple compression types.
1741 (mips_merge_decl_attributes): Likewise.
1742 (umips_12bit_offset_address_p): New function.
1743 (mips_start_function_definition): Emit .set micromips directive.
1744 (mips_call_may_need_jalx_p): New function.
1745 (mips_function_ok_for_sibcall): Add microMIPS support.
1746 (mips_print_operand_punctuation): Support short delay slots and
1748 (umips_swm_mask, umips_swm_encoding): New.
1749 (umips_build_save_restore): New function.
1750 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1751 (was_mips16_p): Remove.
1752 (old_compression_mode): New.
1753 (mips_set_compression_mode): New function.
1754 (mips_set_current_function): Add microMIPS support.
1755 (mips_option_override): Likewise.
1756 (umips_save_restore_pattern_p): New function.
1757 (umips_output_save_restore): New function.
1758 (umips_load_store_pair_p_1): New function.
1759 (umips_load_store_pair_p): New function.
1760 (umips_output_load_store_pair_1): New function.
1761 (umips_output_load_store_pair): New function.
1762 (umips_movep_target_p) New function.
1763 (mips_prepare_pch_save): Add microMIPS support.
1764 * config/mips/mips.h (TARGET_COMPRESSION): New.
1765 (TARGET_CPU_CPP_BUILTINS): Update macro
1766 to use new compression flags and to support microMIPS.
1767 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1768 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1769 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1770 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1771 (ASM_SPEC): Support mmicromips and mno-micromips.
1772 (M16STORE_REG_P): New macro.
1773 (MIPS_CALL): Support TARGET_MICROMIPS.
1774 (MICROMIPS_J): New macro.
1775 (mips_base_mips16): Rename this...
1776 (mips_base_compression_flags): ...to this.
1777 (UMIPS_12BIT_OFFSET_P): New macro.
1778 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1779 (MULTILIB_DIRNAMES): Likewise.
1780 2013-03-20 Richard Biener <rguenther@suse.de>
1782 PR tree-optimization/56661
1783 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1784 the result does not have to be distinct.
1786 2013-03-20 Richard Biener <rguenther@suse.de>
1788 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1791 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1792 Steven Bosscher <steven@gcc.gnu.org>
1794 PR rtl-optimization/56605
1795 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1797 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1800 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1801 that require movd instead of movq.
1803 2013-03-20 Richard Biener <rguenther@suse.de>
1805 * tree-ssa-structalias.c (struct variable_info): Add pointer
1806 to the first field of an aggregate with sub-vars. Make
1807 this and the pointer to the next subfield its ID.
1808 (vi_next): New function.
1809 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1810 storedanything_id, integer_id): Increment by one.
1811 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1812 get_call_clobber_vi): Adjust.
1813 (solution_set_expand): Simplify and speedup.
1814 (solution_set_add): Inline into ...
1815 (set_union_with_increment): ... this. Adjust accordingly.
1816 (do_sd_constraint): Likewise.
1817 (do_ds_constraint): Likewise.
1818 (do_complex_constraint): Simplify.
1819 (build_pred_graph): Adjust.
1820 (solve_graph): Likewise. Simplify and speedup.
1821 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1822 get_constraint_for_component_ref, get_constraint_for_1,
1823 first_vi_for_offset, first_or_preceding_vi_for_offset,
1824 create_function_info_for, create_variable_info_for_1,
1825 create_variable_info_for, intra_create_variable_infos): Adjust.
1826 (init_base_vars): Push NULL for ID zero.
1827 (compute_points_to_sets): Adjust.
1829 2013-03-20 Richard Biener <rguenther@suse.de>
1831 * cfgloop.c (verify_loop_structure): Streamline and avoid
1832 ICEing on corrupt loop tree.
1833 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1836 2013-03-20 Richard Biener <rguenther@suse.de>
1838 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1839 check whether an SSA update is needed.
1841 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1843 * config/mips/constraints.md (T): Rename to...
1847 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1848 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1850 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1852 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1853 (*subsi3_carryin_uxtw): Likewise.
1855 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1857 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1858 (*rorsi3_insn_uxtw): Likewise.
1860 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1862 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1863 (*extrsi5_insn_uxtw): Likewise.
1865 2013-03-19 Richard Biener <rguenther@suse.de>
1867 PR tree-optimization/56273
1868 * passes.c (init_optimization_passes): Move second VRP after DOM.
1870 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1872 * config/i386/i386.md (*movti_internal): Merge from
1873 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1874 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1875 nox64 isa attributes.
1877 2013-03-18 Richard Biener <rguenther@suse.de>
1879 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1881 (merge_node_constraints): Likewise.
1882 (build_succ_graph): Likewise.
1883 (valid_graph_edge): Inline into single caller.
1884 (unify_nodes): Likewise. Use bitmap_set_bit return value
1886 (scc_visit): Fix formatting and variable use.
1887 (do_sd_constraint): Use gcc_checking_assert.
1888 (do_ds_constraint): Likewise.
1889 (do_complex_constraint): Likewise.
1890 (condense_visit): Likewise. Cleanup.
1891 (dump_pred_graph): New function.
1892 (perform_var_substitution): Dump the pred-graph before
1893 variable substitution.
1894 (find_equivalent_node): Use gcc_checking_assert.
1895 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1897 2013-03-18 Richard Biener <rguenther@suse.de>
1899 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1900 Remove cond_expr_stmt_list argument and do not gimplify the
1902 (vect_loop_versioning): Adjust.
1903 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1904 Cleanup to use less temporaries.
1905 (vect_create_data_ref_ptr): Cleanup.
1907 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1909 PR tree-optimization/56635
1910 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1911 require types_compatible_p types.
1913 2013-03-18 Nick Clifton <nickc@redhat.com>
1915 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1918 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1919 Add missing line to comment describing function.
1921 2013-03-18 Richard Biener <rguenther@suse.de>
1923 PR tree-optimization/56210
1924 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1925 Handle string / character search functions.
1926 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1928 2013-03-18 Richard Biener <rguenther@suse.de>
1931 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1932 and implement properly.
1933 * gimple.h (gimple_cond_single_var_p): Remove.
1935 2013-03-18 Richard Biener <rguenther@suse.de>
1937 * tree-data-ref.h (find_data_references_in_loop): Declare.
1938 * tree-data-ref.c (get_references_in_stmt): Use a stack
1939 vector pre-allocated in the callers.
1940 (find_data_references_in_stmt): Adjust.
1941 (graphite_find_data_references_in_stmt): Likewise.
1942 (create_rdg_vertices): Likewise.
1943 (find_data_references_in_loop): Export.
1944 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1945 Compute dependences here...
1946 (vect_analyze_data_refs): ...not here. When we encounter
1947 a non-vectorizable data reference in basic-block vectorization
1948 truncate the data reference vector. Do not bother to
1949 fixup data-dependence information for gather loads.
1950 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1951 of data references, as reported.
1953 2013-03-18 Richard Biener <rguenther@suse.de>
1955 PR tree-optimization/3713
1956 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1957 has_constants and expr.
1958 (stmt_has_constants): Properly valueize SSA names when deciding
1959 whether the stmt has constants.
1961 2013-03-18 Richard Biener <rguenther@suse.de>
1963 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1964 whole function when there is nothing to do.
1965 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1966 * tree-vectorizer.c (vectorize_loops): Update virtual and
1967 loop-closed SSA once.
1968 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1970 2013-03-18 Richard Biener <rguenther@suse.de>
1973 * domwalk.c (bb_postorder): New global static.
1974 (cmp_bb_postorder): New function.
1975 (walk_dominator_tree): Replace scheme imposing an order for
1976 visiting dominator sons by one sorting them at the time they
1977 are pushed on the stack.
1979 2013-03-18 Richard Biener <rguenther@suse.de>
1981 PR tree-optimization/39326
1982 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1983 (struct mem_ref): Replace mem member with ao_ref typed member.
1984 (MEM_ANALYZABLE): Adjust.
1985 (memref_eq): Likewise.
1986 (mem_ref_alloc): Likewise.
1987 (gather_mem_refs_stmt): Likewise.
1988 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1989 (execute_sm_if_changed_flag_set): Adjust.
1990 (execute_sm): Likewise.
1991 (ref_always_accessed_p): Likewise.
1992 (refs_independent_p): Likewise.
1993 (can_sm_ref_p): Likewise.
1995 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1998 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1999 return 1 even for !unsignedp.
2001 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2003 * config/i386/i386.md (isa): Add x64 and nox64.
2004 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
2005 (*pushtf): Enable *roF alternative for x64 isa only.
2006 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
2007 mode attribute of integer alternatives to DImode for TARGET_64BIT.
2008 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
2009 (*movtf_internal): Merge from *movtf_internal_rex64 and
2010 *movtf_internal_sse. Use x64 and nox64 isa attributes.
2011 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
2012 nox64 isa attributes.
2013 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
2014 nox64 isa attributes.
2015 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
2017 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2019 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2021 2013-03-17 Jakub Jelinek <jakub@redhat.com>
2024 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
2025 class names. Remove trailing comma after "ALL_REGS".
2027 2013-03-16 Jan Hubicka <jh@suse.cz>
2029 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
2030 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
2031 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
2032 of cgraph_get_create_node.
2033 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2035 2013-03-16 Jason Merrill <jason@redhat.com>
2038 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
2039 with DW_AT_default_value.
2041 2013-03-16 Jakub Jelinek <jakub@redhat.com>
2043 * BASE-VER: Set to 4.9.0.
2045 2013-03-14 Andi Kleen <ak@linux.intel.com>
2048 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
2049 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
2050 Document _x* TSX intrinsics.
2052 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2053 David Holsgrove <david.holsgrove@xilinx.com>
2055 * configure.ac: Add MicroBlaze TLS support detection.
2056 * configure: Regenerate.
2057 * config/microblaze/microblaze-protos.h
2058 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
2059 symbol_mentioned_p, label_mentioned_p): Add prototypes.
2060 * config/microblaze/microblaze.c (microblaze_address_type): Add
2061 ADDRESS_TLS and tls_reloc address types.
2062 (microblaze_address_info): Add tls_reloc.
2063 (TARGET_HAVE_TLS): Define.
2064 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
2065 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
2066 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
2067 load_tls_operand, microblaze_call_tls_get_addr,
2068 microblaze_legitimize_tls_address): New functions.
2069 (microblaze_classify_unspec): Handle UNSPEC_TLS.
2070 (get_base_reg): Use microblaze_tls_symbol_p.
2071 (microblaze_classify_address): Handle TLS.
2072 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
2073 label_mentioned_p and microblaze_tls_referenced_p.
2074 (microblaze_legitimize_address): Handle TLS.
2075 (microblaze_address_insns): Handle ADDRESS_TLS.
2076 (pic_address_needs_scratch): Handle TLS.
2077 (print_operand_address): Handle TLS.
2078 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2079 (microblaze_expand_move): Handle TLS.
2080 (microblaze_legitimate_constant_p): Check
2081 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
2082 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2083 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2084 (PIC_OFFSET_TABLE_REGNUM): Set.
2085 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2086 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2087 (addsi3, movsi_internal2, movdf_internal): Update constraints
2088 * config/microblaze/predicates.md (arith_plus_operand): Define
2089 (move_operand): Redefine as move_src_operand,
2090 check microblaze_tls_referenced_p.
2092 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2094 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2095 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2097 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2099 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2102 2013-03-14 Jakub Jelinek <jakub@redhat.com>
2104 PR tree-optimization/53265
2105 * common.opt (Waggressive-loop-optimizations): New option.
2106 * tree-ssa-loop-niter.c: Include tree-pass.h.
2107 (do_warn_aggressive_loop_optimizations): New function.
2108 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
2109 if number_of_latch_executions returned constant.
2110 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2111 early. If number_of_latch_executions returned constant, set
2112 nb_iterations_upper_bound back to it.
2113 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2115 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2116 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2118 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2119 (MULTILIB_OSDIRNAMES): Set.
2120 * genmultilib: If defaultosdirname doesn't start with :: , set
2121 defaultosdirname2 instead, clear it and emit two . multilib_raw
2122 entries instead of just one.
2124 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
2126 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2127 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2128 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2129 (SUBTARGET_OVERRIDE_OPTIONS): New.
2131 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
2134 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2135 (musermode): Convert to Var(TARGET_USERMODE).
2136 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2137 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2138 * config/sh/sh.c (sh_option_override): Use
2139 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2140 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2142 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2144 (udivsi3_i4_single, divsi3_i4_single): Use
2145 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2147 2013-03-13 Dave Korn <dave.korn.cygwin@....>
2149 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2152 2013-03-13 Richard Biener <rguenther@suse.de>
2154 PR tree-optimization/56608
2155 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2156 calls when vectorizing basic-blocks.
2158 2013-03-13 Jakub Jelinek <jakub@redhat.com>
2161 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2164 2013-03-12 Jakub Jelinek <jakub@redhat.com>
2166 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2168 2013-03-11 Jan Hubicka <jh@suse.cz>
2171 * lto-streamer-out.c (output_symbol_p): Skip references from
2172 constructors of external variables.
2174 2013-03-11 Jan Hubicka <jh@suse.cz>
2177 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2179 * emit-rtl.c (verify_rtx_sharing): Likewise.
2180 (copy_insn_1): Likewise.
2181 * rtl.c (copy_rtx): Likewise.
2183 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
2186 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2187 output_operand_lossage message.
2189 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
2192 * arm.c (shift_op): Validate RTL pattern on the fly.
2193 (arm_print_operand, case 'S'): Don't use shift_operator to validate
2196 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2199 * config/pa/pa.md (call_value): Check for calls to powf and direct to
2200 new call patterns that clobber %fr12.
2201 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
2202 split and postreload patterns.
2203 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
2204 registers %fr12 and %fr12R as call used.
2206 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
2208 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
2209 (canon_address, record_store, replace_read, check_mem_read_rtx,
2210 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
2211 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
2212 rest_of_handle_dse): Likewise.
2214 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2217 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
2219 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
2220 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
2221 (save_optabs_if_changed): Replace with...
2222 (init_tree_optimization_optabs): ...this.
2223 * optabs.c (save_optabs_if_changed): Rename to...
2224 (init_tree_optimization_optabs): ...this. Take the optimization node
2225 as argument. Do nothing if the base optabs are already correct.
2226 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
2227 to recompute optabs.
2228 * function.h (function): Remove optabs field.
2229 * function.c (invoke_set_current_function_hook): Call
2230 init_tree_optimization_optabs. Use the result to initialize
2233 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
2235 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
2236 if GTMA_HAS_NO_INSTRUMENTATION.
2237 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
2238 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
2239 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
2240 * gimple-pretty-print.c (dump_gimple_transaction): Handle
2241 GTMA_HAS_NO_INSTRUMENTATION.
2243 2013-03-08 Jakub Jelinek <jakub@redhat.com>
2245 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
2248 2013-03-08 Marek Polacek <polacek@redhat.com>
2249 Jakub Jelinek <jakub@redhat.com>
2251 PR tree-optimization/56478
2252 * predict.c (is_comparison_with_loop_invariant_p): Change the
2253 type of loop_step to tree.
2254 (predict_loops): Adjust.
2255 (predict_iv_comparison): Perform the computations on double_ints.
2257 2013-03-08 Richard Biener <rguenther@suse.de>
2259 PR tree-optimization/56570
2260 * tree-cfg.c (verify_expr_location_1): Verify locations for
2262 * tree-sra.c (create_access_replacement): Strip locations
2263 from DECL_DEBUG_EXPRs.
2265 2013-03-08 Richard Biener <rguenther@suse.de>
2267 * tree-inline.c (expand_call_inline): Do not associate
2268 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
2269 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
2271 2013-03-08 Richard Biener <rguenther@suse.de>
2273 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
2274 or block changes with -Og. Fix for location / block encoding
2275 changes and PHI arguments with locations.
2277 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
2279 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
2281 (struct output_info): Likewise.
2282 (register_overhead): Remove bad gcc_assert.
2283 (bitmap_find_bit): If there is only a single bitmap element, do not
2284 count a miss as a search.
2285 (print_statistics): Update for counter type changes.
2286 (dump_bitmap_statistics): Likewise. Print headers such that they
2287 are properly lined up with the printed counters.
2289 2013-03-07 Jakub Jelinek <jakub@redhat.com>
2291 PR tree-optimization/56559
2292 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
2293 check that it has only a single use.
2295 2013-03-07 Richard Biener <rguenther@suse.de>
2297 * doc/invoke.texi (fwhole-program): Discourage use in combination
2300 2013-03-06 Jakub Jelinek <jakub@redhat.com>
2302 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
2304 PR tree-optimization/56539
2305 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
2306 instead of GSI_CONTINUE_LINKING as last argument to
2307 force_gimple_operand_gsi. Adjust function comment.
2309 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
2313 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
2314 promoted mode, convert the result back to the original mode.
2316 2013-03-06 Richard Biener <rguenther@suse.de>
2319 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
2320 (insert_updated_phi_nodes_compare_uids): New function.
2321 (update_ssa): Sort symbols_to_rename after UID before
2322 traversing it to insert PHI nodes.
2324 2013-03-06 Richard Biener <rguenther@suse.de>
2327 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2328 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2331 2013-02-13 Richard Biener <rguenther@suse.de>
2334 * varasm.c (output_constant_def_1): Get the decl representing
2335 the constant as argument.
2336 (output_constant_def): Wrap output_constant_def_1.
2337 (make_decl_rtl): Use output_constant_def_1 with the decl
2338 representing the constant.
2339 (build_constant_desc): Optionally re-use a decl already
2340 representing the constant.
2341 (tree_output_constant_def): Adjust.
2343 2013-03-06 Joey Ye <joey.ye@arm.com>
2346 * gcc.c (convert_white_space): New function.
2347 (main): Handles white space in function name.
2349 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2352 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2353 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
2354 to SH_DIV_CALL_TABLE for TARGET_SH2.
2355 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2357 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2360 2013-03-05 Sterling Augustine <saugustine@google.com>
2361 Cary Coutant <ccoutant@google.com>
2364 * dwarf2out.c (resolve_addr): Don't call
2365 remove_loc_list_addr_table_entries a second time for the same
2368 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2371 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2372 (avoid_complex_debug_insns): New function.
2373 (expand_debug_locations): Call it.
2375 PR rtl-optimization/56484
2376 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2377 lifetimes of hard registers on small register class machines.
2379 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2381 * config/microblaze/microblaze-protos.h: Rename
2382 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
2383 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
2385 (microblaze_fast_interrupt_function_p): New function.
2386 (microblaze_is_interrupt_handler): Rename to
2387 microblaze_is_interrupt_variant and add fast_interrupt check.
2388 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2389 (save_restore_insns): Likewise.
2390 (compute_frame_size): Likewise.
2391 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2392 (microblaze_globalize_label): Likewise.
2393 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2394 * config/microblaze/microblaze.md: Use wrapper
2395 microblaze_is_interrupt_variant.
2397 2013-03-05 Kai Tietz <ktietz@redhat.com>
2399 * sdbout.c (sdbout_one_type): Switch to current function's section
2400 supporting cold/hot.
2402 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2404 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2407 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2410 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2411 if VALGRIND_GET_VBITS is defined, temporarily make object
2412 memory all defined, and restore previous valgrind addressability
2413 and definability afterwards. Free this_object at the end.
2416 * lra.c (lra): Call lra_clear_live_ranges if live_p,
2417 right before calling lra_create_live_ranges, also call it
2418 when clearing live_p. Only call lra_clear_live_ranges
2419 at the end if live_p.
2422 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2424 2013-03-05 Richard Biener <rguenther@suse.de>
2426 PR tree-optimization/56521
2427 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2430 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
2433 * except.h (remove_unreachable_eh_regions): New prototype.
2434 * except.c (remove_eh_handler_splicer): New function, split out
2435 of remove_eh_handler.
2436 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
2437 warning about running it on many EH regions one at a time.
2438 (remove_unreachable_eh_regions_worker): New function, walk the
2439 EH tree in depth-first order and remove non-marked regions.
2440 (remove_unreachable_eh_regions): New function.
2441 * tree-eh.c (mark_reachable_handlers): New function, split out
2442 from remove_unreachable_handlers.
2443 (remove_unreachable_handlers): Use mark_reachable_handlers and
2444 remove_unreachable_eh_regions.
2445 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2446 and remove_unreachable_eh_regions.
2448 2013-03-05 Richard Biener <rguenther@suse.de>
2451 * loop-init.c (fix_loop_structure): Remove loops in two stages,
2452 not freeing them until the end.
2454 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2456 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2458 2013-03-05 Richard Biener <rguenther@suse.de>
2460 PR tree-optimization/56270
2461 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2462 of loads after scheduling an SLP instance.
2464 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2466 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2468 (check_gcc_parallelize): Run guality.exp as a separate job from
2469 vect.exp with unsorted.exp and $(dg_target_exps) separately from
2470 struct-layout-1.exp with stackalign.exp.
2472 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2475 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2476 load_index sbitmap even if some bit in it isn't set.
2479 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2480 (discover_iteration_bound_by_body_walk): Change queues to
2481 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
2482 spelling in comment. Call safe_push on queues[bound_index] directly.
2483 Release queues[queue_index] in every iteration unconditionally.
2484 Release bounds vector.
2487 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2488 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2489 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2492 2013-03-05 Richard Biener <rguenther@suse.de>
2495 * tree-inline.c (remap_blocks_to_null): New function.
2496 (expand_call_inline): When expanding a call stmt without
2497 an associated block inline remap all callee blocks to NULL.
2499 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2501 PR rtl-optimization/56494
2502 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2503 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2504 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2507 * sel-sched-ir.c (free_sched_pools): Release
2508 succs_info_pool.stack[succs_info_pool.max_top] vectors too
2509 if succs_info_pool.max_top isn't -1.
2512 * opts.c (opts_obstack, opts_concat): Moved to...
2513 * opts-common.c (opts_obstack, opts_concat): ... here.
2515 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2518 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2520 2013-03-04 Martin Jambor <mjambor@suse.cz>
2522 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2523 all appropriate places.
2525 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
2527 PR tree-optimization/56424
2528 * ipa-split.c (split_function): Do not set the RSO flag if result is
2529 not by reference and its type is a register type.
2531 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
2533 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
2534 (microblaze_legitimate_pic_operand): Likewise
2535 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
2536 new function microblaze_legitimate_pic_operand
2537 * config/microblaze/microblaze-protos.h
2538 (microblaze_legitimate_pic_operand): Declare.
2540 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2542 * config/microblaze/predicates.md (call_insn_simple_operand):
2543 New predicate for supported rtx code types.
2544 * config/microblaze/microblaze.md (call_internal1): Use
2545 call_insn_simple_operand predicate.
2547 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2550 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2551 partitions.ordered_remove.
2554 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2555 vec_oprnds0.create (1) for modifier == NONE.
2558 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2559 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2560 vec_oprnds1 right before pushing anything to it for
2564 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2565 set nbbs to 0 instead of having separate code path.
2566 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2567 instead of false as last argument if returning NULL.
2569 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2571 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2572 the attribute is now called "target" instead of "option".
2573 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2574 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2575 attribute/pragma name for TARGET_OPTION_VALID_P and
2576 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2577 * doc/tm.texi: Regenerated.
2579 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2581 * config/microblaze/microblaze.c:
2582 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2583 * config/microblaze/microblaze.h: Add -mxl-reorder to
2585 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2586 instructions emitted if TARGET_REORDER.
2587 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2588 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2591 2013-03-01 Xinliang David Li <davidxl@google.com>
2593 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2596 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2599 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2600 vector even when returning true. Fix up function comment formatting.
2603 * ira-build.c (ira_loop_nodes_count): New variable.
2604 (create_loop_tree_nodes): Initialize it.
2605 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2608 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2609 method on dr_chain and result_chain.
2610 * tree-vect-stmts.c (vectorizable_store): Only call
2611 result_chain.create if j == 0.
2614 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2615 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2616 before overwriting it.
2618 2013-03-01 Tobias Burnus <burnus@net-b.de>
2620 * doc/extended.texi (C Extensions): Change order in @menu
2622 (Other MIPS Built-in Functions): Move last MIPS entry before
2623 "picoChip Built-in Functions".
2624 (SH Built-in Functions): Move after RX Built-in Functions.
2625 * doc/gcc.texi (Introduction): Change order in @menu
2627 * doc/md.texi (Constraints): Ditto.
2628 * gty.texi (Type Information): Ditto.
2629 (User-provided marking routines for template types): Make
2631 * doc/invoke.texi (AArch64 Options): Move before
2632 "Adapteva Epiphany Options".
2634 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2635 Jakub Jelinek <jakub@redhat.com>
2638 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2639 no_address_safety_analysis attribute.
2640 * doc/extend.texi (no_address_safety_attribute): Rename to
2641 no_sanitize_address attribute, mention no_address_safety_analysis
2642 attribute as deprecated alias.
2644 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2647 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2648 type to vec<vec<tree> > *.
2649 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2650 to be vec<tree> instead of vec<tree> *, set vec_defs
2651 to vNULL and call vec_defs.create (number_of_vects), adjust other
2653 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2654 vectorizable_condition): Adjust vect_get_slp_defs callers.
2656 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2658 * config/aarch64/aarch64.c
2659 (aarch64_float_const_representable): Remove unused variable.
2661 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2663 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2665 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2667 * config/aarch64/aarch64-builtins.c
2668 (aarch64_init_simd_builtins): Make static.
2670 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2672 * config/aarch64/aarch64.c
2673 (aarch64_simd_make_constant): Make static.
2675 2013-02-28 Martin Jambor <mjambor@suse.cz>
2677 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2678 with no initialization to the RHS of debug statements.
2680 2013-02-28 Martin Jambor <mjambor@suse.cz>
2682 PR tree-optimization/56294
2683 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2685 (get_access_replacement): Do not call create_access_replacement.
2686 Assert a replacement exists.
2687 (get_repl_default_def_ssa_name): Create the replacement declaration
2690 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2692 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2695 2013-02-28 Marek Polacek <polacek@redhat.com>
2697 PR rtl-optimization/56466
2698 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2699 if we're changing a loop.
2700 (peel_loops_completely): Likewise.
2702 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2705 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2707 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2710 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2711 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2712 INTX_FTYPE_FX, FX_FTYPE_INTX.
2713 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2715 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2717 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2718 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2719 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2720 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2721 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2722 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2723 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2724 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2725 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2726 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2727 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2728 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2729 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2730 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2731 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2732 (avrxmega6): Increase max flash segments from 5 to 6.
2733 * config/avr/t-multilib: Regenerate.
2734 * config/avr/avr-tables.opt: Regenerate.
2735 * doc/avr-mmcu.texi: Regenerate.
2737 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2739 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2740 (avr_device_to_arch): Rename to avr_device_to_ld.
2741 (avr_device_to_as): New prototype.
2742 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2743 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2744 * config/avr/driver-avr.c (avr_device_to_as): New.
2745 (avr_device_to_arch): Rename to avr_device_to_ld.
2747 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2750 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2751 method on dr_chain and result_chain.
2754 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2755 pointer_set_destroy on not_executed_last_iteration.
2758 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2761 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2762 FOR_EACH_DEFINED_FUNCTION when freeing state.
2765 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2767 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2771 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2772 known_aggs[i].items and release known_aggs vector.
2775 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2777 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2779 * config/microblaze/microblaze.c (microblaze_emit_compare):
2780 Use xor for EQ/NE comparisions.
2781 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2782 (cbranchsf4): Adjust operator to comparison_operator.
2784 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2787 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2789 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2790 vec_safe_push, always update *slot.
2791 (redirect_edge_var_map_clear): Use vec_free.
2792 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2793 (free_var_map_entry): Use vec_free.
2794 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2795 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2797 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2800 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2801 when the may_trap_p bit of the exprs being merged differs.
2802 Reorder tests for speculativeness in the logical and operator.
2804 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2806 * incpath.c (add_standard_paths): Use reconcat instead of concat
2807 where appropriate and avoid leaking memory.
2809 * opts.h: Include obstack.h.
2810 (opts_concat): New prototype.
2811 (opts_obstack): New declaration.
2812 * opts.c (opts_concat): New function.
2813 (opts_obstack): New variable.
2814 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2815 (finish_options): Use opts_concat instead of concat
2816 and XOBNEWVEC instead of XNEWVEC.
2817 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2818 generate_option): Likewise.
2819 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2820 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2823 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2824 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2826 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2829 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2831 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2833 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2834 (arm_block_move_unaligned_straight): Likewise.
2835 (arm_adjust_block_mem): Likewise.
2837 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2840 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2841 temp, cond and label.
2842 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2845 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2846 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2849 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2850 of prologue/epilogue functions.
2853 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2854 Remove unused variable cfa_offset.
2855 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2858 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2859 type promotion to unsigned.
2862 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2863 for HOST_WIDE_INT of 32 bit / same size as int.
2864 (arm_block_move_unaligned_straight): Likewise.
2865 (arm_adjust_block_mem): Likewise.
2868 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2871 2013-02-26 Marek Polacek <polacek@redhat.com>
2873 PR tree-optimization/56426
2874 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2876 2013-02-26 Richard Biener <rguenther@suse.de>
2879 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2880 unused variable loops.
2882 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2884 PR tree-optimization/56448
2885 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2886 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2887 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2888 later operands of the references, or even first operand for
2889 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2891 PR tree-optimization/56443
2892 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2893 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2894 to type_for_mode langhook.
2896 2013-02-25 Matt Turner <mattst88@gmail.com>
2898 * doc/invoke.texi: Document r4700.
2900 2013-02-25 Richard Biener <rguenther@suse.de>
2902 PR tree-optimization/56175
2903 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2905 (simplify_bitwise_binary): ... here. Also guard the conversion
2906 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2908 2013-02-25 Catherine Moore <clm@codesourcery.com>
2911 2013-02-24 Catherine Moore <clm@codesourcery.com>
2912 Maciej W. Rozycki <macro@codesourcery.com>
2913 Tom de Vries <tom@codesourcery.com>
2914 Nathan Sidwell <nathan@codesourcery.com>
2915 Iain Sandoe <iain@codesourcery.com>
2916 Nathan Froyd <froydnj@codesourcery.com>
2917 Chao-ying Fu <fu@mips.com>
2919 * doc/extend.texi: (micromips, nomicromips, nocompression):
2920 Document new function attributes.
2921 * doc/invoke.texi (minterlink-compressed, mmicromips,
2922 m14k, m14ke, m14kec): Document new options.
2923 (minterlink-mips16): Update documentation.
2924 * doc/md.texi (ZC, ZD): Document new constraints.
2925 * configure.ac (gcc_cv_as_micromips): Check if linker
2926 supports the .set micromips directive.
2927 * configure: Regenerate.
2928 * config.in: Regenerate.
2929 * config/mips/mips-tables.opt: Regenerate.
2930 * config/mips/micromips.md: New file.
2931 * constraints.md (ZC, AD): New constraints.
2932 * config/mips/predicates.md (movep_src_register): New predicate.
2933 (movep_src_operand): New predicate.
2934 (non_volatile_mem_operand): New predicate.
2935 * config/mips/mips.md (multimem): New type.
2936 (length): Differentiate between 17-bit and 18-bit branch offsets.
2937 (MOVEP1, MOVEP2): New mode iterator.
2938 (mov_<load>l): Use ZC constraint.
2939 (mov_<load>r): Likewise.
2940 (mov_<store>l): Likewise.
2941 (mov_<store>r): Likewise.
2942 (*branch_equality<mode>_inverted): Add microMIPS support.
2943 (*branch_equality<mode>): Likewise.
2944 (*jump_absolute): Likewise.
2945 (indirect_jump_<mode>): Likewise.
2946 (tablejump_<mode>): Likewise.
2947 (<optab>_internal): Likewise.
2948 (sibcall_internal): Likewise.
2949 (sibcall_value_internal): Likewise.
2950 (prefetch): Use constraint ZD.
2951 * config/mips/mips.opt (minterlink-compressed): New option.
2952 (minterlink-mips16): Now an alias for minterlink-compressed.
2953 (mmicromips): New option.
2954 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2955 (compare_and_swap_12): Likewise.
2956 (sync_add<mode>): Likewise.
2957 (sync_<optab>_12): Likewise.
2958 (sync_old_<optab>_12): Likewise.
2959 (sync_new_<optab>_12): Likewise.
2960 (sync_nand_12): Likewise.
2961 (sync_old_nand_12): Likewise.
2962 (sync_new_nand_12): Likewise.
2963 (sync_sub<mode>): Likewise.
2964 (sync_old_add<mode>): Likewise.
2965 (sync_old_sub<mode>): Likewise.
2966 (sync_new_add<mode>): Likewise.
2967 (sync_new_sub<mode>): Likewise.
2968 (sync_<optab><mode>): Likewise.
2969 (sync_old_<optab><mode>): Likewise.
2970 (sync_new_<optab><mode>): Likewise.
2971 (sync_nand<mode>): Likewise.
2972 (sync_old_nand<mode>): Likewise.
2973 (sync_new_nand<mode>): Likewise.
2974 (sync_lock_test_and_set<mode>): Likewise.
2975 (test_and_set_12): Likewise.
2976 (atomic_compare_and_swap<mode>): Likewise.
2977 (atomic_exchange<mode>_llsc): Likewise.
2978 (atomic_fetch_add<mode>_llsc): Likewise.
2979 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2980 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2981 (umips_save_restore_pattern_p): Likewise.
2982 (umips_load_store_pair_p): Likewise.
2983 (umips_output_load_store_pair): Likewise.
2984 (umips_movep_target_p): Likewise.
2985 (umips_12bit_offset_address_p): Likewise.
2986 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2987 (mips_base_mips16): Rename this...
2988 (mips_base_compression_flags): ...to this. Update all uses.
2989 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2990 (mips_mips16_decl_p): Delete.
2991 (mips_nomips16_decl_p): Delete.
2992 (mips_get_compress_on_flags): New function.
2993 (mips_get_compress_off_flags): New function.
2994 (mips_get_compress_mode): New function.
2995 (mips_get_compress_on_name): New function.
2996 (mips_get_compress_off_name): New function.
2997 (mips_insert_attributes): Support multiple compression types.
2998 (mips_merge_decl_attributes): Likewise.
2999 (umips_12bit_offset_address_p): New function.
3000 (mips_start_function_definition): Emit .set micromips directive.
3001 (mips_call_may_need_jalx_p): New function.
3002 (mips_function_ok_for_sibcall): Add microMIPS support.
3003 (mips_print_operand_punctuation): Support short delay slots and
3005 (umips_swm_mask, umips_swm_encoding): New.
3006 (umips_build_save_restore): New function.
3007 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3008 (was_mips16_p): Remove.
3009 (old_compression_mode): New.
3010 (mips_set_compression_mode): New function.
3011 (mips_set_current_function): Add microMIPS support.
3012 (mips_option_override): Likewise.
3013 (umips_save_restore_pattern_p): New function.
3014 (umips_output_save_restore): New function.
3015 (umips_load_store_pair_p_1): New function.
3016 (umips_load_store_pair_p): New function.
3017 (umips_output_load_store_pair_1): New function.
3018 (umips_output_load_store_pair): New function.
3019 (umips_movep_target_p) New function.
3020 (mips_prepare_pch_save): Add microMIPS support.
3021 * config/mips/mips.h (TARGET_COMPRESSION): New.
3022 (TARGET_CPU_CPP_BUILTINS): Update macro
3023 to use new compression flags and to support microMIPS.
3024 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3025 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3026 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3027 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3028 (ASM_SPEC): Support mmicromips and mno-micromips.
3029 (M16STORE_REG_P): New macro.
3030 (MIPS_CALL): Support TARGET_MICROMIPS.
3031 (MICROMIPS_J): New macro.
3032 (mips_base_mips16): Rename this...
3033 (mips_base_compression_flags): ...to this.
3034 (UMIPS_12BIT_OFFSET_P): New macro.
3035 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3036 (MULTILIB_DIRNAMES): Likewise.
3038 2013-02-25 Tom de Vries <tom@codesourcery.com>
3040 PR rtl-optimization/56131
3041 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
3042 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
3043 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
3045 2013-02-25 Tobias Burnus <burnus@net-b.de>
3047 * doc/invoke.texi (-fsanitize=): Move from optimization
3048 to debugging options.
3050 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
3052 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
3054 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
3055 Alexander Monakov <amonakov@ispras.ru>
3058 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
3059 flush pending lists also on non-jumps. Adjust comment.
3061 2013-02-24 Catherine Moore <clm@codesourcery.com>
3062 Maciej W. Rozycki <macro@codesourcery.com>
3063 Tom de Vries <tom@codesourcery.com>
3064 Nathan Sidwell <nathan@codesourcery.com>
3065 Iain Sandoe <iain@codesourcery.com>
3066 Nathan Froyd <froydnj@codesourcery.com>
3067 Chao-ying Fu <fu@mips.com>
3069 * doc/extend.texi: (micromips, nomicromips, nocompression):
3070 Document new function attributes.
3071 * doc/invoke.texi (minterlink-compressed, mmicromips,
3072 m14k, m14ke, m14kec): Document new options.
3073 (minterlink-mips16): Update documentation.
3074 * doc/md.texi (ZC, ZD): Document new constraints.
3075 * configure.ac (gcc_cv_as_micromips): Check if linker
3076 supports the .set micromips directive.
3077 * configure: Regenerate.
3078 * config.in: Regenerate.
3079 * config/mips/mips-tables.opt: Regenerate.
3080 * config/mips/micromips.md: New file.
3081 * constraints.md (ZC, AD): New constraints.
3082 * config/mips/predicates.md (movep_src_register): New predicate.
3083 (movep_src_operand): New predicate.
3084 (non_volatile_mem_operand): New predicate.
3085 * config/mips/mips.md (multimem): New type.
3086 (length): Differentiate between 17-bit and 18-bit branch offsets.
3087 (MOVEP1, MOVEP2): New mode iterator.
3088 (mov_<load>l): Use ZC constraint.
3089 (mov_<load>r): Likewise.
3090 (mov_<store>l): Likewise.
3091 (mov_<store>r): Likewise.
3092 (*branch_equality<mode>_inverted): Add microMIPS support.
3093 (*branch_equality<mode>): Likewise.
3094 (*jump_absolute): Likewise.
3095 (indirect_jump_<mode>): Likewise.
3096 (tablejump_<mode>): Likewise.
3097 (<optab>_internal): Likewise.
3098 (sibcall_internal): Likewise.
3099 (sibcall_value_internal): Likewise.
3100 (prefetch): Use constraint ZD.
3101 * config/mips/mips.opt (minterlink-compressed): New option.
3102 (minterlink-mips16): Now an alias for minterlink-compressed.
3103 (mmicromips): New option.
3104 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3105 (compare_and_swap_12): Likewise.
3106 (sync_add<mode>): Likewise.
3107 (sync_<optab>_12): Likewise.
3108 (sync_old_<optab>_12): Likewise.
3109 (sync_new_<optab>_12): Likewise.
3110 (sync_nand_12): Likewise.
3111 (sync_old_nand_12): Likewise.
3112 (sync_new_nand_12): Likewise.
3113 (sync_sub<mode>): Likewise.
3114 (sync_old_add<mode>): Likewise.
3115 (sync_old_sub<mode>): Likewise.
3116 (sync_new_add<mode>): Likewise.
3117 (sync_new_sub<mode>): Likewise.
3118 (sync_<optab><mode>): Likewise.
3119 (sync_old_<optab><mode>): Likewise.
3120 (sync_new_<optab><mode>): Likewise.
3121 (sync_nand<mode>): Likewise.
3122 (sync_old_nand<mode>): Likewise.
3123 (sync_new_nand<mode>): Likewise.
3124 (sync_lock_test_and_set<mode>): Likewise.
3125 (test_and_set_12): Likewise.
3126 (atomic_compare_and_swap<mode>): Likewise.
3127 (atomic_exchange<mode>_llsc): Likewise.
3128 (atomic_fetch_add<mode>_llsc): Likewise.
3129 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3130 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3131 (umips_save_restore_pattern_p): Likewise.
3132 (umips_load_store_pair_p): Likewise.
3133 (umips_output_load_store_pair): Likewise.
3134 (umips_movep_target_p): Likewise.
3135 (umips_12bit_offset_address_p): Likewise.
3136 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3137 (mips_base_mips16): Rename this...
3138 (mips_base_compression_flags): ...to this. Update all uses.
3139 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3140 (mips_mips16_decl_p): Delete.
3141 (mips_nomips16_decl_p): Delete.
3142 (mips_get_compress_on_flags): New function.
3143 (mips_get_compress_off_flags): New function.
3144 (mips_get_compress_mode): New function.
3145 (mips_get_compress_on_name): New function.
3146 (mips_get_compress_off_name): New function.
3147 (mips_insert_attributes): Support multiple compression types.
3148 (mips_merge_decl_attributes): Likewise.
3149 (umips_12bit_offset_address_p): New function.
3150 (mips_start_function_definition): Emit .set micromips directive.
3151 (mips_call_may_need_jalx_p): New function.
3152 (mips_function_ok_for_sibcall): Add microMIPS support.
3153 (mips_print_operand_punctuation): Support short delay slots and
3155 (umips_swm_mask, umips_swm_encoding): New.
3156 (umips_build_save_restore): New function.
3157 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3158 (was_mips16_p): Remove.
3159 (old_compression_mode): New.
3160 (mips_set_compression_mode): New function.
3161 (mips_set_current_function): Add microMIPS support.
3162 (mips_option_override): Likewise.
3163 (umips_save_restore_pattern_p): New function.
3164 (umips_output_save_restore): New function.
3165 (umips_load_store_pair_p_1): New function.
3166 (umips_load_store_pair_p): New function.
3167 (umips_output_load_store_pair_1): New function.
3168 (umips_output_load_store_pair): New function.
3169 (umips_movep_target_p) New function.
3170 (mips_prepare_pch_save): Add microMIPS support.
3171 * config/mips/mips.h (TARGET_COMPRESSION): New.
3172 (TARGET_CPU_CPP_BUILTINS): Update macro
3173 to use new compression flags and to support microMIPS.
3174 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3175 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3176 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3177 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3178 (ASM_SPEC): Support mmicromips and mno-micromips.
3179 (M16STORE_REG_P): New macro.
3180 (MIPS_CALL): Support TARGET_MICROMIPS.
3181 (MICROMIPS_J): New macro.
3182 (mips_base_mips16): Rename this...
3183 (mips_base_compression_flags): ...to this.
3184 (UMIPS_12BIT_OFFSET_P): New macro.
3185 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3186 (MULTILIB_DIRNAMES): Likewise.
3188 2013-02-24 Jakub Jelinek <jakub@redhat.com>
3191 * target-globals.c (save_target_globals): For init_reg_sets and
3192 target_reinit remporarily set this_fn_optabs to this_target_optabs.
3194 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
3196 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
3197 * config/aarch64/t-aarch64
3198 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
3200 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
3203 * lra-constraints.c (process_alt_operands): Reload operand
3204 conflicting with earlier clobber only if no more other conflicting
3207 2013-02-22 Jakub Jelinek <jakub@redhat.com>
3210 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
3211 if not linking a shared library.
3213 2013-02-22 Seth LaForge <sethml@google.com>
3215 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
3217 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
3219 * config/arm/arm.md (split for extendsidi): Update condition.
3220 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
3221 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
3222 (qhs_zextenddi_cstr): Likewise.
3224 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3227 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
3228 avoid signed wrapping.
3229 (expand_mult): Handle properly multiplication by
3230 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
3231 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
3232 in the compiler if coeff is HOST_WIDE_INT_MIN.
3233 (expand_divmod): Don't make ext_op1 static, change it's type to
3234 uhwi. Avoid undefined behavior in -INTVAL (op1).
3236 PR rtl-optimization/50339
3237 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
3239 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
3240 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
3241 into splitting_ashiftrt field.
3242 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
3244 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
3247 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
3250 * trans-mem.c (execute_tm_mark): Do not expand transactions that
3251 are sure to go irrevocable.
3253 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
3255 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
3256 scalars are valid operands.
3258 2013-02-21 Martin Jambor <mjambor@suse.cz>
3260 PR tree-optimization/56310
3261 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
3262 only matching indices and non-negative final offsets.
3263 (intersect_aggregates_with_edge): Pass src_idx to
3264 agg_replacements_to_vector. Pass src_idx insstead of index to
3265 intersect_with_agg_replacements.
3267 2013-02-21 Martin Jambor <mjambor@suse.cz>
3269 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
3270 instead of hard-wired defaults.
3272 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
3274 * doc/invoke.texi (MIPS Options): Update documentation of the
3275 floating-point multiply-accumulate instruction restrictions.
3277 2013-02-21 Kostya Serebryany <kcc@google.com>
3279 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
3280 asan_shadow_offset on x86_64 linux.
3282 2013-02-21 Richard Biener <rguenther@suse.de>
3284 PR tree-optimization/56415
3286 2013-02-11 Richard Biener <rguenther@suse.de>
3288 PR tree-optimization/56273
3289 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3292 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3295 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
3299 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
3300 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
3302 2013-02-20 Jan Hubicka <jh@suse.cz>
3304 PR tree-optimization/56265
3305 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
3306 when target is referenced for first time.
3308 2013-02-20 Richard Biener <rguenther@suse.de>
3310 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
3311 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
3312 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3313 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
3314 not return anything.
3315 (rename_ssa_copies): Do not remove unused locals.
3316 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
3317 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
3318 * passes.c (execute_function_todo): Do not schedule unused locals
3319 removal if cleanup_tree_cfg did something.
3320 * tree-ssa-live.c (remove_unused_locals): Dump statistics
3321 about the number of removed locals.
3323 2013-02-20 Richard Biener <rguenther@suse.de>
3325 PR tree-optimization/56398
3326 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
3328 2013-02-20 Martin Jambor <mjambor@suse.cz>
3330 PR tree-optimization/55334
3331 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3332 restricted pointers to arrays.
3334 2013-02-20 Richard Biener <rguenther@suse.de>
3335 Jakub Jelinek <jakub@redhat.com>
3337 PR tree-optimization/56396
3338 * tree-ssa-ccp.c (n_const_val): New static variable.
3339 (get_value): Return NULL for SSA names we don't have a lattice
3341 (ccp_initialize): Initialize n_const_val.
3342 * tree-ssa-copy.c (n_copy_of): New static variable.
3343 (init_copy_prop): Initialize n_copy_of.
3344 (get_value): Return NULL_TREE for SSA names we don't have a
3347 2013-02-20 Martin Jambor <mjambor@suse.cz>
3349 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3351 2013-02-20 Richard Biener <rguenther@suse.de>
3353 * genpreds.c (write_lookup_constraint): Do not compare first
3354 letter of the constraint again.
3356 2013-02-20 Richard Biener <rguenther@suse.de>
3358 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3360 (get_use_iv_cost): Terminate hashtable walk when coming across
3363 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
3365 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3366 reassociation for avx2 targets.
3368 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3370 * config/microblaze/microblaze.c: microblaze_has_clz = 0
3371 Add version check for v8.10.a to enable microblaze_has_clz
3372 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
3373 version and TARGET_PATTERN_COMPARE check
3374 * config/microblaze/microblaze.md: New clzsi2 instruction
3376 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3378 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
3379 function before branching.
3381 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3383 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3385 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3387 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3390 * sel-sched.c: Include ira.h.
3391 (implicit_clobber_conflict_p): New function.
3392 (moveup_expr): Use it.
3393 * Makefile.in (sel-sched.o): Depend on ira.h.
3395 2013-02-19 Richard Biener <rguenther@suse.de>
3397 PR tree-optimization/56384
3398 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3399 (vn_hash_type): Split out from ...
3400 (vn_hash_constant_with_type): ... here.
3401 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3402 (vn_phi_eq): Compare types from vn_phi_s structure.
3403 (vn_phi_lookup): Populate vn_phi_s type.
3404 (vn_phi_insert): Likewise.
3406 2013-02-19 Jakub Jelinek <jakub@redhat.com>
3408 PR tree-optimization/56350
3409 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3410 if haven't found reduction or nested cycle operand, rather than
3411 asserting we must find it.
3413 PR tree-optimization/56381
3414 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3417 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3418 Jakub Jelinek <jakub@redhat.com>
3421 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3422 (swap_optab_enable): Same.
3423 (init_all_optabs): Use argument instead of global.
3424 * tree.h (struct tree_optimization_option): New field target_optabs.
3425 * expr.h (init_all_optabs): Add argument to prototype.
3426 (TREE_OPTIMIZATION_OPTABS): New.
3427 (save_optabs_if_changed): Protoize.
3428 * optabs.h: Declare this_fn_optabs.
3429 * optabs.c (save_optabs_if_changed): New.
3430 Declare this_fn_optabs.
3431 (init_optabs): Add argument to init_all_optabs() call.
3432 * function.c (invoke_set_current_function_hook): Handle per
3434 * function.h (struct function): New field optabs.
3435 * config/mips/mips.c (mips_set_mips16_mode): Handle when
3436 optimization_current_node has changed.
3437 * target-globals.h (save_target_globals_default_opts): Protoize.
3438 * target-globals.c (save_target_globals_default_opts): New.
3440 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3443 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3444 registers %fr12 and %fr12R as call used.
3447 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
3448 and HImode, require all displacements to be an integer multiple of
3450 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3451 only allow QImode and HImode when reload is in progress and strict is
3452 true. Likewise for symbolic addresses. Use base14_operand to check
3453 displacements in REG+BASE addresses.
3455 2013-02-18 Richard Biener <rguenther@suse.de>
3457 PR tree-optimization/56366
3458 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3459 handle sign-conversion of outer-loop initial induction value.
3461 2013-02-18 Richard Biener <rguenther@suse.de>
3464 * cfghooks.c (merge_blocks): If we merge a latch into another
3465 block adjust references to it.
3466 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3467 (verify_loop_structure): Verify that a recorded latch is in fact
3470 2013-02-18 Richard Biener <rguenther@suse.de>
3472 PR tree-optimization/56321
3473 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3474 order SSA name release and virtual operand unlinking.
3476 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3478 * config/microblaze/microblaze.md (save_stack_block): Define.
3479 (restore_stack_block): Likewise.
3481 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3483 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3484 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3485 * config/microblaze/microblaze.c (microblaze_option_override):
3486 Bail out early for PIC modes when target does not support PIC.
3488 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3490 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
3491 Replace with a microblaze version.
3492 (microblaze_trampoline_init): Adapt for microblaze.
3493 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
3496 2013-02-16 Jakub Jelinek <jakub@redhat.com>
3497 Dodji Seketeli <dodji@redhat.com>
3500 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
3501 (instrument_mem_region_access): Do not forget to always put
3502 instrumentation of the of 'base' and 'base + len' in a "if (len !=
3503 0) statement, even for cases where either 'base' or 'base + len'
3504 are not instrumented -- because they have been previously
3505 instrumented. Simplify the logic by putting all the statements
3506 instrument 'base + len' inside a sequence, and then insert that
3507 sequence right before the current insertion point. Then, to
3508 instrument 'base + len', just get an iterator on that statement.
3509 And do not forget to update the pointer to iterator the function
3510 received as argument.
3512 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
3514 PR rtl-optimization/56348
3515 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3517 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
3519 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3520 (clean_graph_dump_file): Pass base to start_graph_dump.
3522 2013-02-14 Richard Henderson <rth@redhat.com>
3525 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3527 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
3529 * collect2-aix.h: Define F_LOADONLY.
3531 2013-02-14 Richard Biener <rguenther@suse.de>
3534 * varasm.c (output_constant_def_1): Get the decl representing
3535 the constant as argument.
3536 (output_constant_def): Wrap output_constant_def_1.
3537 (make_decl_rtl): Use output_constant_def_1 with the decl
3538 representing the constant.
3539 (build_constant_desc): Optionally re-use a decl already
3540 representing the constant.
3541 (tree_output_constant_def): Adjust.
3543 2013-02-14 Dodji Seketeli <dodji@redhat.com>
3546 * asan.c (instrument_builtin_call): Really put the length of the
3547 second source argument into src1_len.
3549 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3551 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3552 argument. If it is false, don't create edge from then_bb to
3554 (insert_if_then_before_iter): Pass true to it.
3555 (build_check_stmt): Pass false to it.
3556 (transform_statements): Flush hash table only on extended basic
3557 block boundaries, rather than at the beginning of every bb.
3558 Don't flush hash table on nonfreeing_call_p calls.
3559 * tree-flow.h (nonfreeing_call_p): New prototype.
3560 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3562 2013-02-13 David S. Miller <davem@davemloft.net>
3564 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3566 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3569 * ira.c (max_regno_before_ira): Move from ...
3571 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3574 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3576 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3578 2013-02-13 Richard Biener <rguenther@suse.de>
3581 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3582 globals in MEM_REFs.
3584 2013-02-13 Richard Biener <rguenther@suse.de>
3586 * loop-init.c (loop_optimizer_init): Clear loop state when
3587 re-initializing preserved loops.
3588 * loop-unswitch.c (unswitch_single_loop): Return whether
3589 we unswitched the loop. Do not verify loop state here.
3590 (unswitch_loops): When we unswitched a loop discover new loops.
3592 2013-02-13 Kostya Serebryany <kcc@google.com>
3594 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3596 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3598 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3600 Avoid instrumenting duplicated memory access in the same basic block
3601 * Makefile.in (asan.o): Add new dependency on hash-table.h
3602 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3603 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3604 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3605 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3606 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3607 (get_mem_ref_of_assignment): New functions.
3608 (get_mem_refs_of_builtin_call): Extract from
3609 instrument_builtin_call and tweak a little bit to make it fit with
3611 (instrument_builtin_call): Use the new
3612 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3613 of is_gimple_builtin_call.
3614 (instrument_derefs, instrument_mem_region_access): Insert the
3615 instrumented memory reference into the hash table.
3616 (maybe_instrument_assignment): Renamed instrument_assignment into
3617 this, and change it to advance the iterator when instrumentation
3618 actually happened and return true in that case. This makes it
3619 homogeneous with maybe_instrument_assignment, and thus give a
3620 chance to callers to be more 'regular'.
3621 (transform_statements): Clear the memory reference hash table
3622 whenever we enter a new BB, when we cross a function call, or when
3623 we are done transforming statements. Use
3624 maybe_instrument_assignment instead of instrumentation. No more
3625 need to special case maybe_instrument_assignment and advance the
3626 iterator after calling it; it's now handled just like
3627 maybe_instrument_call. Update comment.
3629 2013-02-13 Richard Biener <rguenther@suse.de>
3631 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3632 Fix loop discovery code.
3634 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3637 * lra-constraints.c (process_alt_operands): Match early clobber
3638 operand with itself. Check conflicts with earlyclobber only if
3639 the operand is not reloaded. Prefer to reload conflicting operand
3640 if earlyclobber and matching operands are the same.
3642 2013-02-12 Richard Biener <rguenther@suse.de>
3645 * lto-streamer-out.c (write_symbol): Do not output symbols
3646 for hard register variables.
3648 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3651 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3652 (umulsidi3_insn, mulsidi3_insn): New insns.
3654 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3656 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3657 (struct tune_params): Add vec_costs field.
3658 * config/arm/arm.c (arm_builtin_vectorization_cost)
3659 (arm_add_stmt_cost): New functions.
3660 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3661 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3662 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3663 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3664 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3665 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3666 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3668 2013-02-12 Richard Biener <rguenther@suse.de>
3671 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3672 decls again if possible.
3674 2013-02-12 Richard Biener <rguenther@suse.de>
3677 * tree-ssa.c (verify_ssa_name): Fix check, move
3678 SSA_NAME_IN_FREE_LIST check up.
3680 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3681 Steven Bosscher <steven@gcc.gnu.org>
3683 PR rtl-optimization/56151
3684 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3685 equal to op0 or op1, and last_insn pattern is CODE operation
3686 with MEM dest and one of the operands matches that MEM.
3688 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3690 * doc/extend.texi: Document Function Multiversioning and "default"
3691 parameter string to target attribute.
3692 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3693 target attribute parameter is "default".
3694 (ix86_compare_version_priority): Remove checks for target attribute.
3695 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3696 Remove check for target attribute equal to NULL. Add assert.
3697 (ix86_generate_version_dispatcher_body): Change error to sorry.
3699 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3700 Jack Howarth <howarth@bromo.med.uc.edu>
3701 Patrick Marlier <patrick.marlier@gmail.com>
3704 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3705 define ENDFILE_SPEC as TM_DESTRUCTOR.
3706 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3708 2013-02-11 Alexander Potapenko <glider@google.com>
3709 Jack Howarth <howarth@bromo.med.uc.edu>
3710 Jakub Jelinek <jakub@redhat.com>
3713 * config/darwin.c (cdtor_record): Rename ctor_record.
3714 (sort_cdtor_records): Rename sort_ctor_records.
3715 (finalize_dtors): New routine to sort destructors by
3716 priority before use in assemble_integer.
3717 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3719 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3721 PR rtl-optimization/56275
3722 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3723 offset is non-negative and less than cmode size before
3724 calling simplify_subreg.
3726 2013-02-11 Richard Biener <rguenther@suse.de>
3728 PR tree-optimization/56264
3729 * cfgloop.h (fix_loop_structure): Adjust prototype.
3730 * loop-init.c (fix_loop_structure): Return the number of
3731 newly discovered loops.
3732 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3733 are discovered, do a full loop-closed SSA rewrite.
3735 2013-02-11 Richard Biener <rguenther@suse.de>
3737 PR tree-optimization/56273
3738 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3740 (check_array_ref): Fix missing newline in dumps.
3741 (search_for_addr_array): Likewise.
3743 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3745 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3747 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3750 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3752 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3754 PR rtl-optimization/56246
3755 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3757 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3758 constraints are satisfied.
3760 2013-02-08 Jeff Law <law@redhat.com>
3763 * emit-rtl.c (reg_is_parm_p): New function.
3764 * regs.h (reg_is_parm_p): New prototype.
3765 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3766 callee-clobbered registers.
3768 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3771 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3772 If there is no implicit builtin declaration, just return NULL.
3774 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3776 * config/i386/sse.md (FMAMODEM): New mode iterator.
3777 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3778 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3780 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3782 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3783 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3784 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3786 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3788 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3789 (microblaze*-*-elf): Likewise.
3790 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3792 * config/microblaze/microblaze-c.c: Add builtin defines for
3793 _LITTLE_ENDIAN and _BIG_ENDIAN.
3794 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3795 add to TARGET_DEFAULT flags.
3796 Expand ASM_SPEC and LINK_SPEC.
3797 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3798 * config/microblaze/microblaze.md: Update extendsidi2 and
3799 movdi_internal instructions to use low-order / high-order reg
3801 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3802 options and inversemask / mask of LITTLE_ENDIAN.
3803 * config/microblaze/t-microblaze: Expand multilib options to
3804 include mlittle-endian (le) and update exceptions patterns.
3806 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3808 PR rtl-optimization/56195
3809 * lra-constraints.c (get_reload_reg): Don't reuse regs
3810 if they have smaller mode than requested, if they have
3811 wider mode than requested, try to return a SUBREG.
3813 PR tree-optimization/56250
3814 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3815 if type is unsigned and code isn't MULT_EXPR.
3817 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3819 PR tree-optimization/56064
3820 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3821 bits according to mode.
3822 * fixed-value.h (fixed_from_double_int)
3823 (const_fixed_from_double_int): Adjust comments.
3825 2013-02-08 Richard Biener <rguenther@suse.de>
3828 * lto-streamer.h (struct data_in): Remove current_file, current_line
3829 and current_col members.
3830 * lto-streamer-out.c (lto_output_location): Stream changed bits
3831 en-block for efficiency.
3832 * lto-streamer-in.c (clear_line_info): Remove.
3833 (lto_input_location): Cache current file, line and column
3834 globally via local statics. Read changed bits en-block.
3835 (input_function): Do not call clear_line_info.
3836 (lto_read_body): Likewise.
3837 (lto_input_toplevel_asms): Likewise.
3839 2013-02-08 Michael Matz <matz@suse.de>
3841 PR tree-optimization/52448
3842 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3843 (nt_call_phase): New static.
3844 (add_or_mark_expr): Only mark accesses with newer phase than any
3846 (nonfreeing_call_p): New.
3847 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3848 (nt_fini_block): Keep blocks marked as visited.
3849 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3851 2013-02-08 Richard Biener <rguenther@suse.de>
3853 * ira.c (ira): Free broken dominator information.
3855 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3857 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3859 2013-02-08 Marek Polacek <polacek@redhat.com>
3861 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3863 2013-02-08 Richard Biener <rguenther@suse.de>
3866 * cfgloop.h (flow_loops_find): Adjust.
3867 (bb_loop_header_p): Declare.
3868 * cfgloop.c (bb_loop_header_p): New function split out from ...
3869 (flow_loops_find): ... here. Adjust function signature,
3870 support incremental loop structure update.
3871 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3872 * cfgloopmanip.c (fix_loop_structure): Move ...
3873 * loop-init.c (fix_loop_structure): ... here.
3874 (apply_loop_flags): Split out from ...
3875 (loop_optimizer_init): ... here.
3876 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3877 in incremental mode, only remove dead loops here.
3879 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3882 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3883 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3884 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3885 (*round<mode>3.libgcc): New insns for fixed-modes.
3886 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3887 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3888 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3889 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3890 implementations. Define to __builtin_avr_absFX,
3891 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3892 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3893 __builtin_avr_countlsFX, respectively.
3894 * config/avr/avr-c.c (target.h): Include it.
3895 (enum avr_builtin_id): New enum.
3896 (avr_resolve_overloaded_builtin): New static function.
3897 (avr_register_target_pragmas): Use it to set
3898 targetm.resolve_overloaded_builtin.
3899 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3900 tree nodes used by DEF_BUILTIN.
3901 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3902 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3903 <AVR_BUILTIN_xxBITS>: Same.
3905 2013-02-08 Richard Biener <rguenther@suse.de>
3907 * cfgloop.c (verify_loop_structure): Properly handle
3908 a loop exiting to another loop header.
3909 * ira-int.h (ira_loops): Remove.
3910 * ira.c (ira_loops): Remove.
3911 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3912 (do_reload): Use loop_optimizer_finalize.
3913 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3914 number_of_loops to access the loop tree.
3915 (more_one_region_p): Likewise.
3916 (finish_loop_tree_nodes): Likewise.
3917 (rebuild_regno_allocno_maps): Likewise.
3918 (mark_loops_for_removal): Likewise.
3919 (mark_all_loops_for_removal): Likewise.
3920 (remove_unnecessary_regions): Likewise.
3921 (ira_build): Likewise.
3922 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3924 2013-02-08 Richard Biener <rguenther@suse.de>
3926 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3927 * ipa-pure-const.c (analyze_function): Avoid calling
3928 mark_irreducible_loops twice.
3929 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3931 2013-02-07 David S. Miller <davem@davemloft.net>
3933 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3935 * var-tracking.c (vt_add_function_parameter): Test the presence of
3936 HAVE_window_save properly and do not remap argument registers when
3937 we have a leaf function.
3939 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3942 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3944 * config/i386/i386.c (ix86_print_operand): Ditto.
3946 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3948 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3950 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3952 PR rtl-optimization/56225
3953 * lra-constraints.c (process_alt_operands): Check that reload hard
3954 reg can hold value for strict_low_part.
3956 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3959 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3960 dwarf2out_end_function.
3961 (in_first_function_p, maybe_at_text_label_p,
3962 first_loclabel_num_not_at_text_label): New variables.
3963 (dwarf2out_var_location): In the first function find out
3964 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3965 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3968 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3970 PR rtl-optimization/56178
3971 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3972 SUBREG of a register. Tidy up related block of code.
3973 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3974 note if the source is a register or a SUBREG of a register.
3976 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3979 * config/rs6000/rs6000.md (ptrm): New mode attr.
3980 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3981 call_value_indirect_aix<pttrsize>,
3982 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3985 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3987 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3988 if -bnortl. Convert to strcmp and strncmp.
3990 2013-02-07 Alan Modra <amodra@gmail.com>
3993 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3994 addresses won't wrap when offsetting.
3995 (rs6000_secondary_reload): Provide secondary reloads needed for
3996 wrapping LO_SUM addresses.
3998 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
4000 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
4001 MACH, just __MACH__.
4003 2013-02-06 Richard Biener <rguenther@suse.de>
4005 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
4006 instead of calling fix_loop_structure.
4008 2013-02-06 Jakub Jelinek <jakub@redhat.com>
4011 * omp-low.c (use_pointer_for_field): Return false if
4012 lower_send_shared_vars doesn't generate any copy-out code.
4014 2013-02-06 Tom de Vries <tom@codesourcery.com>
4016 PR rtl-optimization/56131
4017 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
4018 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
4019 of the label is NULL. Add comment.
4021 2013-02-05 Jakub Jelinek <jakub@redhat.com>
4023 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
4026 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
4027 (STATIC_LIBTSAN_LIBS): Likewise.
4028 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
4029 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
4030 is defined, don't add anything else beyond that.
4031 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
4032 (LINK_COMMAND_SPEC): Use them.
4034 PR tree-optimization/56205
4035 * tree-stdarg.c (check_all_va_list_escapes): Return true if
4036 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
4037 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
4039 2013-02-05 Richard Biener <rguenther@suse.de>
4041 PR tree-optimization/53342
4042 PR tree-optimization/53185
4043 * tree-vectorizer.h (vect_check_strided_load): Remove.
4044 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
4045 not disallow peeling for vectorized strided loads.
4046 (vect_check_strided_load): Make static and simplify.
4047 (vect_analyze_data_refs): Adjust.
4048 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
4049 correctly when vectorizing strided loads.
4051 2013-02-05 Richard Biener <rguenther@suse.de>
4053 * doc/install.texi: Refer to ISL, not PPL.
4055 2013-02-05 Jan Hubicka <jh@suse.cz>
4057 PR tree-optimization/55789
4058 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
4060 2013-02-05 Jan Hubicka <jh@suse.cz>
4062 PR tree-optimization/55789
4063 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
4064 the dead call anyway.
4066 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
4069 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
4071 2013-02-04 Alexander Potapenko <glider@google.com>
4072 Jack Howarth <howarth@bromo.med.uc.edu>
4073 Jakub Jelinek <jakub@redhat.com>
4076 * config/darwin.c (sort_ctor_records): Stabilized qsort
4077 on constructor priority by using original position.
4078 (finalize_ctors): New routine to sort constructors by
4079 priority before use in assemble_integer.
4080 (machopic_asm_out_constructor): Use finalize_ctors if needed.
4082 2013-02-04 Jakub Jelinek <jakub@redhat.com>
4085 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4086 about visibility on artificial decls.
4087 * config/sol2.c (solaris_assemble_visibility): Likewise.
4089 2013-02-04 Kai Tietz <ktietz@redhat.com>
4092 * config/i386/i386.c (function_value_ms_64): Add additional valtype
4093 argument and improve checking of return-argument types for 16-byte
4095 (ix86_function_value_1): Add additional valtype argument on call
4096 of function_value_64.
4097 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4098 handling infunction_value_64 function.
4100 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4102 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
4104 2013-02-04 Richard Biener <rguenther@suse.de>
4106 PR tree-optimization/56188
4107 * tree-ssa-structalias.c (label_visit): Consider case with
4108 initially non-empty points-to set.
4109 (perform_var_substitution): Dump node mapping and clean up.
4111 2013-02-04 Richard Guenther <rguenther@suse.de>
4114 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4115 node prevail as last resort.
4116 (lto_symtab_merge_decls): Remove guard on LTRANS here.
4117 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
4119 2013-02-04 Richard Biener <rguenther@suse.de>
4121 PR tree-optimization/56113
4122 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4124 (equiv_class_lookup_or_add): ... this.
4125 (label_visit): Adjust and fix error in previous patch.
4126 (perform_var_substitution): Adjust.
4128 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
4130 * config/sh/divtab.c: Fix formatting and comments throughout the file.
4131 * config/sh/sh4-300.md: Likewise.
4132 * config/sh/sh4a.md: Likewise.
4133 * config/sh/constraints.md: Likewise.
4134 * config/sh/sh.md: Likewise.
4135 * config/sh/netbsd-elf.h: Likewise.
4136 * config/sh/predicates.md: Likewise.
4137 * config/sh/sh-protos.h: Likewise.
4138 * config/sh/ushmedia.h: Likewise.
4139 * config/sh/linux.h: Likewise.
4140 * config/sh/sh.c: Likewise.
4141 * config/sh/superh.h: Likewise.
4142 * config/sh/elf.h: Likewise.
4143 * config/sh/sh4.md: Likewise.
4144 * config/sh/sh.h: Likewise.
4146 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4148 * config/pa/constraints.md: Adjust unused letters. Change "T"
4149 constraint to match_test floating_point_store_memory_operand().
4150 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4151 (base14_operand): New.
4152 (floating_point_store_memory_operand): New.
4153 (integer_store_memory_operand): Revise to use base14_operand and
4154 reg_plus_base_memory_operand.
4155 (move_dest_operand): Allow symbolic_memory_operands.
4156 (symbolic_memory_operand): Check for LO_SOM.
4157 (symbolic_operand): Change default case to break.
4158 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4159 CONST_DOUBLE values to be reloaded by putting them into memory when
4160 the destination is a floating point register.
4161 (movdf): Remove code to handle CONST_DOUBLE.
4163 (reload_indf_r1): New.
4164 (reload_insf_r1): New.
4165 Consistently use "Q" and "T" constraints with integer and floating
4166 point move instructions, respectively.
4167 (movdi): Remove FAIL.
4168 Change predicate for source operand unamed DImode move from
4169 general_operand to move_src_operand.
4170 (umulsidi3): Change predicate for destination operand to
4172 Likewise for similar unamed patterns.
4173 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
4174 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
4175 (hppa_legitimize_address): Simplify mask calculation.
4176 (pa_emit_move_sequence): Revised handling of secondary reloads from
4177 REG+D addresses for floating point loads and stores. Directly handle
4178 loading CONST0_RTX (mode) to a floating point register.
4179 (pa_secondary_reload): Handle reloading DF and SFmode constant values
4180 to floating point registers. Don't restrict secondary reloads to
4181 floating point registers to integer modes. Revise some comments and
4183 (TARGET_LEGITIMATE_ADDRESS_P): Define.
4184 (pa_legitimate_address_p): New.
4185 (pa_legitimize_reload_address): New.
4186 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4187 (STRICT_REG_OK_FOR_BASE_P): New.
4188 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
4189 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4191 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
4192 Andrew Dixie <andrewd@gentrack.com>
4194 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4197 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4199 * expmed.c (extract_bit_field_1): Pass the full width of the
4200 structure to get_best_reg_extraction_insn.
4202 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4205 * configure.ac (use_cxa_atexit): Add AIX.
4206 * configure: Regenerate.
4208 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
4210 2013-02-01 Jakub Jelinek <jakub@redhat.com>
4213 * final.c (need_profile_function): New variable.
4214 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
4215 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
4216 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
4217 notes, targetm.asm_out.function_prologue doesn't emit anything,
4218 HAVE_prologue and profiler should be emitted before prologue,
4219 set need_profile_function instead of emitting it.
4220 (final_scan_insn): If need_profile_function, emit
4221 profile_function on the first NOTE_INSN_BASIC_BLOCK or
4222 NOTE_INSN_FUNCTION_BEG note.
4224 2013-02-01 Richard Henderson <rth@redhat.com>
4226 * config/rs6000/rs6000.md (smulditi3): New.
4229 * config/alpha/alpha.md (umulditi3): New.
4231 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4233 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
4234 (ASM_OUTPUT_ALIGNED_LOCAL): New.
4236 2013-02-01 Richard Biener <rguenther@suse.de>
4238 PR tree-optimization/56113
4239 * tree-ssa-structalias.c (label_visit): Reduce work for
4240 single-predecessor nodes.
4242 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
4244 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
4245 range isn't testing for zero.
4247 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
4250 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
4252 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
4253 Nick Clifton <nickc@redhat.com>
4255 * config/v850/constraints.md (Q): Define as a memory constraint.
4256 * config/v850/predicates.md (label_ref_operand): New predicate.
4257 (e3v5_shift_operand): New predicate.
4258 (ior_operator): New predicate.
4259 * config/v850/t-v850: Add e3v5 multilib.
4260 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
4261 (v850_gen_movdi): Prototype.
4262 * config/v850/v850.c: Add support for e3v5 architecture.
4263 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
4265 (construct_save_jarl): Add e3v5 long JARL support.
4266 (v850_adjust_insn_length): New function. Adjust length of call
4267 insns when using e3v5 instructions.
4268 (v850_gen_movdi): New function: Generate instructions to move a
4270 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
4271 (CPP_SPEC): Define __v850e3v5__ as appropriate.
4272 (TARGET_USE_FPU): Enable for e3v5.
4273 (CONST_OK_FOR_W): New macro.
4274 (ADJUST_INSN_LENGTH): Define.
4275 * config/v850/v850.md (UNSPEC_LOOP): Define.
4276 (attr cpu): Add v850e3v5.
4277 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
4278 (movdi): New pattern.
4279 (movdi_internal): New pattern.
4280 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
4281 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
4282 (cstoresf4): Likewise.
4283 (cstoredf4): Likewise.
4284 (insv): New pattern.
4285 (rotlso3_a): New pattern.
4286 (rotlsi3_b): New pattern
4287 (rotlsi3_v850e3v5): New pattern.
4288 (doloop_begin): New pattern.
4289 (fix_loop_counter): New pattern.
4290 (doloop_end): New pattern.
4291 (branch_normal): Add e3v5 long branch support.
4292 (branch_invert): Likewise.
4293 (branch_z_normal): Likewise.
4294 (branch_z_invert): Likewise.
4295 (branch_nz_normal): Likewise.
4296 (branch_nz_invert): Likewise.
4297 (call_internal_short): Add e3v5 register-indirect JARL support.
4298 (call_internal_long): Likewise.
4299 (call_value_internal_short): Likewise.
4300 (call_value_internal_long): Likewise.
4301 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
4302 (mloop): New option.
4303 * config.gcc: Add support for configuring v840e3v5 target.
4304 * doc/invoke.texi: Document new v850 specific command line options.
4306 2013-01-31 Paul Koning <ni1d@arrl.net>
4310 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
4311 children if parent is a class.
4312 (prune_unused_types_prune): Don't add DW_AT_declaration.
4314 2013-01-31 Richard Biener <rguenther@suse.de>
4316 PR tree-optimization/56157
4317 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
4318 match up operand with SLP child.
4320 2013-01-31 Jason Merrill <jason@redhat.com>
4323 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4324 parameters the first time.
4325 (gen_scheduled_generic_parms_dies): Check completeness here.
4327 2013-01-31 Richard Biener <rguenther@suse.de>
4330 * common.opt (faggressive-loop-optimizations): New flag,
4332 * doc/invoke.texi (faggressive-loop-optimizations): Document.
4333 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4334 infer_loop_bounds_from_undefined by it.
4336 2013-01-31 Richard Biener <rguenther@suse.de>
4338 PR tree-optimization/56150
4339 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4340 visit virtual operands.
4341 (find_uses_to_rename_bb): Likewise.
4343 2013-01-31 Richard Biener <rguenther@suse.de>
4345 PR tree-optimization/56150
4346 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4347 mixed store non-store stmts.
4349 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4352 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4353 LIBASAN_EARLY_SPEC is defined.
4354 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4355 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4357 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4360 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4361 invalid args instead of ICEing on it.
4362 (ix86_valid_target_attribute_tree): Return error_mark_node if
4363 ix86_valid_target_attribute_inner_p failed.
4364 (ix86_valid_target_attribute_p): Return false only if
4365 ix86_valid_target_attribute_tree returned error_mark_node. Allow
4366 target("default") attribute.
4367 (sorted_attr_string): Change argument from const char * to tree,
4368 merge in all target attribute arguments rather than just one.
4369 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
4370 instead of free. Avoid using strcat.
4371 (ix86_mangle_function_version_assembler_name): Mangle
4372 target("default") as if no target attribute is present. Adjust
4373 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
4374 instead of xmalloc and XDELETEVEC instead of free.
4375 (ix86_function_versions): Don't return true if one of the decls
4376 doesn't have target attribute. If they don't and one of the decls
4377 is DECL_FUNCTION_VERSIONED, report an error. Adjust
4378 sorted_attr_string caller. Use XDELETEVEC instead of free.
4379 (ix86_supports_function_versions): Remove.
4380 (make_name): Fix up formatting.
4381 (make_dispatcher_decl): Remove resolver_name and its initialization.
4382 Avoid leaking memory.
4383 (is_function_default_version): Return true if there is
4384 target("default") attribute rather than no target attribute at all.
4385 (make_resolver_func): Avoid leaking memory.
4386 (ix86_generate_version_dispatcher_body): Likewise.
4387 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4388 * target.def (supports_function_versions): Remove.
4389 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4390 * doc/tm.texi: Regenerated.
4392 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
4394 PR rtl-optimization/56144
4395 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4396 for values with side effects.
4398 2013-01-30 Richard Biener <rguenther@suse.de>
4400 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4401 (sparseset_pop): Likewise.
4402 * cfganal.c (compute_idf): Likewise. Increase work-stack size
4403 to be able to use quick_push in the worker loop.
4405 2013-01-30 Marek Polacek <polacek@redhat.com>
4407 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4409 2013-01-30 Richard Biener <rguenther@suse.de>
4412 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
4414 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
4416 PR tree-optimization/56064
4417 * fixed-value.c (fixed_from_double_int): New function.
4418 * fixed-value.h (fixed_from_double_int): New prototype.
4419 (const_fixed_from_double_int): New static inline function.
4420 * fold-const.c (native_interpret_fixed): New static function.
4421 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4422 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4423 (native_encode_fixed): New static function.
4424 (native_encode_expr) <FIXED_CST>: Use it.
4425 (native_interpret_int): Move double_int worker code to...
4426 * double-int.c (double_int::from_buffer): ...this new static method.
4427 * double-int.h (double_int::from_buffer): Prototype it.
4429 2013-01-30 Richard Biener <rguenther@suse.de>
4431 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4432 New pointer-map and obstack.
4433 (init_alias_vars): Allocate pointer-map and obstack.
4434 (delete_points_to_sets): Free them.
4435 (find_what_var_points_to): Cache result.
4436 (find_what_p_points_to): Adjust for changed interface of
4437 find_what_var_points_to.
4438 (compute_points_to_sets): Likewise.
4439 (ipa_pta_execute): Likewise.
4441 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4443 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4444 * configure: Regenerate.
4445 * config.in: Regenerate.
4446 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4447 #nobits/#progbits if supported.
4449 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
4452 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4453 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4454 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4456 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4458 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4459 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
4461 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4463 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4464 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
4466 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4468 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4470 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4471 * config/arm/cortex-a7.md: New bypasses using
4472 arm_mac_accumulator_is_result.
4474 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4476 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
4477 (cortex_a7_neon_mla): Likewise.
4478 (cortex_a7_fpfmad): New reservation.
4479 (cortex_a7_fpmacs): Use ffmas and update required units.
4480 (cortex_a7_fpmuld): Update required units and latency.
4481 (cortex_a7_fpmacd): Likewise.
4482 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4483 (cortex_a7_neon). Likewise.
4484 (bypass) Update participating units.
4486 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4488 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4489 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4491 * config/arm/vfp11.md (vfp_farith): Use ffmas.
4492 (vfp_fmul): Use ffmad.
4493 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4494 (cortex_r4_fmacd): Use ffmad.
4495 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4496 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
4497 (cortex_a9_fmacd): Use ffmad.
4498 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4499 (cortex_a8_vfp_macd): Use ffmad.
4500 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4501 (cortex_a5_fpmacd): Use ffmad.
4502 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4503 (cortex_a15_vfp_macd): Use ffmad.
4504 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
4506 2013-01-29 Jason Merrill <jason@redhat.com>
4509 * varasm.c (default_assemble_visibility): Don't warn about
4510 visibility on artificial decls.
4512 2013-01-29 Richard Biener <rguenther@suse.de>
4514 PR tree-optimization/56113
4515 * tree-ssa-structalias.c (equiv_class_lookup): Also return
4517 (label_visit): Free duplicate bitmaps and record the leader instead.
4518 (perform_var_substitution): Adjust.
4520 2013-01-29 Richard Biener <rguenther@suse.de>
4522 PR tree-optimization/55270
4523 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4524 the CFG, schedule loops for fixup.
4526 2013-01-29 Nick Clifton <nickc@redhat.com>
4528 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4531 2013-01-28 Leif Ekblad <leif@rdos.net>
4533 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4534 * config/i386/i386.h (TARGET_RDOS): New macro.
4535 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4536 * config/i386/i386.c (ix86_option_override_internal): For 64bit
4537 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4538 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4539 DEFAULT_LARGE_SECTION_THRESHOLD.
4540 * config/i386/i386.md (R14_REG, R15_REG): New constants.
4541 * config/i386/rdos.h: New file.
4542 * config/i386/rdos64.h: New file.
4544 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
4547 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4550 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4552 PR rtl-optimization/56117
4553 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4554 call cselib_lookup_from_insn on the MEM before calling
4555 add_insn_mem_dependence.
4557 2013-01-28 Richard Biener <rguenther@suse.de>
4559 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4560 to a stmt that didn't have one.
4561 (copy_phis_for_bb): Likewise for PHI arguments.
4562 (copy_debug_stmt): Likewise for debug stmts.
4564 2013-01-28 Richard Biener <rguenther@suse.de>
4566 PR tree-optimization/56034
4567 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4568 (partition_builtin_p): Adjust.
4569 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4570 it is the last partition.
4571 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4572 up the vertex for the definition.
4573 (classify_partition): Classify whether a partition is a
4574 PKIND_REDUCTION, thus has uses outside of the loop.
4575 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4576 Merge all PKIND_REDUCTION partitions into the last partition.
4577 (tree_loop_distribution): Seed partitions from reductions as well.
4579 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4581 PR tree-optimization/56125
4582 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4583 pow(x,c) into sqrt(x) * powi(x, n/2) or
4584 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4585 optimizing for size.
4586 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4587 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4590 PR tree-optimization/56094
4591 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4592 to UNKNOWN_LOCATION while gimplifying expr.
4594 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4597 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4598 operand 0 in movabs insn template for -masm=intel asm alternative.
4599 (*movabs<mode>_2): Ditto for operand 1.
4601 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4604 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4607 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4609 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4612 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4614 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4615 Undef to avoid warning.
4617 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4619 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4620 * configure: Regenerate.
4622 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4624 PR tree-optimization/56098
4625 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4626 for stmts with volatile ops.
4627 (cond_store_replacement): Don't optimize if assign has volatile ops.
4628 (cond_if_else_store_replacement_1): Don't optimize if either
4629 then_assign or else_assign have volatile ops.
4630 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4633 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4635 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4637 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4639 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4640 missing ':' in asm example.
4642 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4644 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4645 entries into lane and laneq entries.
4646 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4647 Remove AdvSIMD scalar modes.
4648 (aarch64_sq<r>dmulh_laneq<mode>): New.
4649 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4651 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4652 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4653 * config/aarch64/iterators.md (VCOND): New.
4656 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4659 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4660 Add NULL LIBNAME argument to existing definitions.
4661 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4662 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4663 * config/avr/avr.c (DEF_BUILTIN): Same.
4664 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4665 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4666 implementation is available (DECL_ASSEMBLER_NAME is set).
4667 (avr_fold_absfx): New static function.
4668 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4669 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4670 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4672 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4673 (abshk, absk, abslk, absllk): Provide as static inline functions.
4675 2013-01-25 Marek Polacek <polacek@redhat.com>
4677 PR tree-optimization/56035
4678 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4680 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4682 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4683 (*movtf_internal_rex64): Add (!o,C) alternative
4684 (*movxf_internal_rex64): Ditto.
4685 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4687 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4689 * doc/invoke.texi: fix typo.
4690 * doc/objc.texi: fix typo.
4692 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4694 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4695 for the first two alternatives.
4697 2013-01-24 Diego Novillo <dnovillo@google.com>
4699 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4700 (ggc-zone.o): Remove.
4701 * configure.ac: Remove option --with-gc.
4702 * configure: Re-generate.
4703 * doc/install.texi: Remove documentation for --with-gc.
4704 * gengtype.c (write_enum_defn): Remove. Update all users.
4705 (write_Types_process_field): Remove generation of gt_e_* argument.
4706 (output_type_enum): Remove. Update all users.
4707 (write_enum_defn): Remove. Update all users.
4708 (enum alloc_zone): Remove. Update all users.
4709 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4710 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4712 (struct ptr_data): Remove field TYPE. Update all users.
4713 (gt_pch_note_object): Remove argument TYPE. Update all users.
4714 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4716 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4717 (struct alloc_zone): Remove.
4718 (ggc_internal_alloc_zone_stat): Remove.
4719 (ggc_internal_cleared_alloc_zone_stat): Remove.
4720 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4721 (ggc_pch_count_object): Remove last argument. Update all users.
4722 (ggc_pch_alloc_object): Remove last argument. Update all users.
4723 (struct alloc_zone): Remove.
4724 * ggc-zone.c: Remove.
4725 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4726 (struct alloc_zone): Remove.
4727 (ggc_alloc_typed_stat): Remove.
4728 (ggc_alloc_typed): Remove.
4729 (ggc_splay_alloc): Remove first argument.
4730 (rtl_zone): Remove. Update all users.
4731 (tree_zone): Remove. Update all users.
4732 (tree_id_zone): Remove. Update all users.
4733 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4734 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4735 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4736 * tree-ssanames.c: Remove references to zone allocator in comments.
4738 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4740 * config/avr/avr.c (avr_out_fract): Make register numbers that
4741 might be outside of source operand signed.
4743 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4745 * config/i386/constraints.md (Yf): New constraint.
4746 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4747 of f constraint to conditionaly disable x87 register preferences.
4748 (*movdf_internal): Ditto.
4749 (*movsf_internal): Ditto.
4751 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4754 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4755 that have operands with impossible constraints.
4756 Add a FIXME for a speed-up opportunity.
4757 * lra-constraints.c (process_alt_operands): Verify that a class
4758 selected from constraints on asms is valid for the operand mode.
4759 (curr_insn_transform): Remove incorrect comment.
4761 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4763 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4764 TOC operand is a valid symbol ref in the constant pool.
4766 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4768 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4770 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4773 * config/avr/stdfix.h: New file.
4774 * t-avr (stdfix-gcc.h): New rule to build it.
4775 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4777 2013-01-23 Kostya Serebryany <kcc@google.com>
4779 * config/darwin.h: remove dependency on
4780 CoreFoundation (asan on Mac OS).
4782 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4785 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4786 instead of cmpdi_operand for first comparison operand.
4787 Don't assert that comparison operands aren't both constants.
4789 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4791 * doc/install.texi (Downloading the Source): Update references to
4792 downloading separate components.
4794 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4796 * doc/extend.texi (__int128): Improve grammar.
4798 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4801 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4802 alternative to (o,r).
4803 (*movdi_internal_rex64): Remove (!o,n) alternative.
4804 (DImode immediate->memory splitter): Remove.
4805 (DImode immediate->memory peephole2): Remove.
4806 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4807 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4808 alternative to (!o,*r).
4809 (*movtf_internal_sse): New pattern.
4810 (*movxf_internal_rex64): New pattern.
4811 (*movxf_internal): Disable for TARGET_64BIT.
4812 (*movdf_internal_rex64): Remove (!o,F) alternative.
4814 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4817 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4818 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4819 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4820 stmt locations where LOCATION_LOCUS of the stmt location is
4821 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4824 * config/i386/i386.md (UNSPEC_STOS): New.
4825 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4826 *strsetqi_1): Add UNSPEC_STOS.
4828 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4831 * doc/invoke.texi: Remove left over -Wsynth example.
4833 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4835 PR tree-optimization/56051
4836 * fold-const.c (fold_binary_loc): Don't fold
4837 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4838 a narrowing conversion, or widening conversion from signed
4841 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4843 PR rtl-optimization/56023
4844 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4845 dependent on debug instruction.
4847 2013-01-21 Martin Jambor <mjambor@suse.cz>
4850 * function.c (allocate_struct_function): Call
4851 invoke_set_current_function_hook earlier.
4853 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4855 * reload1.c (init_reload): Only initialize reload_obstack
4856 during the first call.
4858 2013-01-21 Marek Polacek <polacek@redhat.com>
4860 * cfgloop.c (verify_loop_structure): Fix up grammar.
4862 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4864 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4865 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4867 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4870 * config/arm/marvell-pj4.md: Update copyright year.
4871 Fix up use of alu to alu_reg and simple_alu_imm.
4873 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4875 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4877 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4880 * lra-constraints.c (curr_insn_transform): Don't reuse original
4881 insn for secondary memory move when memory mode should be different.
4883 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4885 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4886 atomic_storedi_1): New patterns.
4888 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4890 btver2 pipeline descriptions.
4891 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4893 * config/i386/i386.md (btver2_decode): New type attributes.
4894 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4896 * config/i386/btver2.md: New file describing btver2 pipelines.
4898 2013-01-19 Andrew Pinski <apinski@cavium.com>
4900 PR tree-optimization/52631
4901 * tree-ssa-sccvn (visit_use): Before looking up the original
4902 statement, try looking up the simplified expression.
4904 2013-01-19 Anthony Green <green@moxielogic.com>
4906 * config/moxie/moxie.c (moxie_expand_prologue): Set
4907 current_function_static_stack_size.
4909 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4911 PR tree-optimization/56029
4912 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4913 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4915 2013-01-18 Sharad Singhai <singhai@google.com>
4917 PR tree-optimization/55995
4918 * dumpfile.c (dump_loc): Print location only if available.
4919 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4921 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4924 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4925 secondary memory move.
4926 (inherit_reload_reg): Use rclass instead of cl for
4927 check_secondary_memory_needed_p.
4929 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4932 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4933 the case where writing real complex part of target modifies op1.
4935 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4937 * config/aarch64/aarch64-simd.md
4938 (aarch64_vcond_internal<mode>): Handle unordered cases.
4939 * config/aarch64/iterators.md (v_cmp_result): New.
4941 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4942 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4944 * config/arm/marvell-pj4.md: New file.
4945 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4946 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4947 (generic_vfp): Likewise.
4948 * config/arm/arm-cores.def: Add marvell-pj4.
4949 * config/arm/arm-tune.md: Regenerate.
4950 * config/arm/arm-tables.opt: Regenerate.
4951 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4952 * doc/invoke.texi: Document marvell-pj4.
4954 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4956 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4958 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4963 * var-tracking.c (negative_power_of_two_p): New.
4964 (global_get_addr_cache, local_get_addr_cache): New.
4965 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4966 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4968 (vt_stack_offset_p): Remove.
4969 (vt_canon_true_dep): Always canonicalize loc's address.
4970 (clobber_overlapping_mems): Make sure we have a MEM.
4971 (local_get_addr_clear_given_value): New.
4972 (val_reset): Clear local cached entries.
4973 (compute_bb_dataflow): Create and release the local cache.
4974 Disable duplicate MEMs clobbering.
4975 (emit_notes_in_bb): Clobber MEMs likewise.
4976 (vt_emit_notes): Create and release the local cache.
4977 (vt_initialize, vt_finalize): Create and release the global
4978 cache, respectively.
4979 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4981 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4984 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4985 not found in the symtab.
4987 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4990 PR rtl-optimization/55547
4991 PR rtl-optimization/53827
4994 * alias.c (offset_overlap_p): New, factored out of...
4995 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4996 the conservative special case for symbolic constants. Don't
4997 adjust zero sizes on alignment.
4999 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
5001 PR rtl-optimization/52573
5002 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
5003 REG_UNUSED for the same register.
5005 2013-01-17 Richard Biener <rguenther@suse.de>
5006 Marek Polacek <polacek@redhat.com>
5008 PR rtl-optimization/55833
5009 * loop-unswitch.c (unswitch_loops): Move loop verification...
5010 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
5011 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
5012 Set it to true when we're removing a loop from hierarchy tree in
5013 an irreducible region.
5014 (fix_bb_placements): Adjust caller.
5015 (fix_loop_placements): Likewise.
5017 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
5019 * config/avr/builtins.def (DEF_BUILTIN): Factor out
5020 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
5021 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
5022 Remove ID. Adjust comments.
5023 * config/avr/avr-c.c (avr_builtin_name): Remove.
5024 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
5025 * config/avr/avr.c (avr_tolower): New static function.
5026 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
5027 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
5028 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
5031 2013-01-17 Jan Hubicka <jh@suse.cz>
5033 PR tree-optimization/55273
5034 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
5036 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
5039 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
5040 store through atomic_store<mode>_1.
5041 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
5043 2013-01-17 Martin Jambor <mjambor@suse.cz>
5045 PR tree-optimizations/55264
5046 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
5047 for virtual methods.
5048 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
5049 virtual methods before inlining is over.
5050 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
5052 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
5055 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
5057 PR rtl-optimization/56005
5058 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
5059 pending reads for prefetch.
5061 2013-01-16 Ian Bolton <ian.bolton@arm.com>
5063 * config/aarch64/aarch64.md
5064 (*cstoresi_neg_uxtw): New pattern.
5065 (*cmovsi_insn_uxtw): New pattern.
5066 (*<optab>si3_uxtw): New pattern.
5067 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
5068 (*<optab>si3_insn_uxtw): New pattern.
5069 (*bswapsi2_uxtw): New pattern.
5071 2013-01-16 Richard Biener <rguenther@suse.de>
5073 * tree-inline.c (tree_function_versioning): Remove set but
5074 never used variable.
5076 2013-01-16 Richard Biener <rguenther@suse.de>
5078 PR tree-optimization/55964
5079 * tree-flow.h (rename_variables_in_loop): Remove.
5080 (rename_variables_in_bb): Likewise.
5081 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5082 (copy_loop_before): Adjust and delete update-ssa status.
5083 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
5084 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
5085 (rename_variables_in_loop): Remove.
5086 (slpeel_update_phis_for_duplicate_loop): Likewise.
5087 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
5088 use available cfg machinery instead of duplicating it.
5089 Update PHI nodes and perform poor-mans SSA update here.
5090 (slpeel_tree_peel_loop_to_edge): Adjust.
5092 2013-01-16 Richard Biener <rguenther@suse.de>
5094 PR tree-optimization/54767
5095 PR tree-optimization/53465
5096 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5097 (vrp_visit_phi_node): For PHI arguments coming via backedges
5098 drop all symbolical range information.
5099 (execute_vrp): Compute backedges.
5101 2013-01-16 Richard Biener <rguenther@suse.de>
5103 * doc/install.texi: Update CLooG and ISL requirements to
5106 2013-01-16 Christian Bruel <christian.bruel@st.com>
5109 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5110 (broken_move): Handle UNSPECV_SP_SWITCH_B.
5111 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5113 2013-01-16 DJ Delorie <dj@redhat.com>
5115 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5116 (UNSPECV_SP_SWITCH_E): New.
5117 (sp_switch_1): Change to an unspec.
5118 (sp_switch_2): Change to an unspec. Don't use post-inc when we
5121 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
5123 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5124 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5125 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5126 (expand_mem_thread_fence): Ditto.
5127 (expand_mem_signal_fence): Ditto.
5128 (expand_atomic_load): Ditto.
5129 (expand_atomic_store): Ditto.
5131 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
5133 PR rtl-optimization/55547
5134 PR rtl-optimization/53827
5137 * alias.c (memrefs_conflict_p): Set sizes to negative after
5140 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5143 * function.c (thread_prologue_and_epilogue_insns): Always
5144 add crtl->drap_reg to set_up_by_prologue.set, even if
5145 stack_realign_drap is false.
5147 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5149 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5150 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5151 *call): Fix indention.
5153 2013-01-15 Tom de Vries <tom@codesourcery.com>
5156 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5159 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
5161 PR rtl-optimization/55153
5162 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5164 2013-01-15 Martin Jambor <mjambor@suse.cz>
5166 PR tree-optimization/55920
5167 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5168 accesses as grp_to_be_debug_replaced.
5170 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5172 PR tree-optimization/55920
5173 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
5174 there is non-useless type conversion needed from debug rhs to lhs,
5175 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
5177 2013-01-15 Joseph Myers <joseph@codesourcery.com>
5178 Mikael Pettersson <mikpe@it.uu.se>
5181 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5183 (ASM_OUTPUT_CASE_LABEL): Remove.
5184 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5185 * final.c (shorten_branches): Update alignment of labels before
5186 jump tables if CASE_VECTOR_SHORTEN_MODE.
5188 2013-01-15 Richard Biener <rguenther@suse.de>
5191 * system.h: Do not include gmp.h for building host tools.
5193 2013-01-15 Richard Biener <rguenther@suse.de>
5196 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
5197 account for bitpos when computing alignment.
5199 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
5201 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
5202 (ix86_target_macros_internal): Likewise.
5204 * config/i386/i386.c (m_CORE2I7): Removed.
5205 (m_CORE_HASWELL): New macro.
5206 (m_CORE_ALL): Likewise.
5207 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
5208 (initial_ix86_arch_features): Likewise.
5209 (processor_target_table): Initializations for Core avx2.
5210 (cpu_names): New names "core-avx2".
5211 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
5212 PROCESSOR_CORE_HASWELL.
5213 (ix86_issue_rate): New case.
5214 (ia32_multipass_dfa_lookahead): Likewise.
5215 (ix86_sched_init_global): Likewise.
5217 * config/i386/i386.h (TARGET_HASWELL): New macro.
5218 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
5219 (processor_type): New PROCESSOR_HASWELL.
5221 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5223 PR tree-optimization/55955
5224 * tree-vect-loop.c (vectorizable_reduction): Give up early on
5225 *SHIFT_EXPR and *ROTATE_EXPR codes.
5227 PR tree-optimization/48766
5228 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
5229 -ftrapv disable -fwrapv.
5231 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5234 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
5235 etc. to 1 and not to __flash.
5236 Use LL suffix for __INT24_MAX__ with -mint8.
5237 Use ULL suffix for __UINT24_MAX__ with -mint8.
5239 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5241 * config/avr/avr-arch.h
5242 (struct base_arch_s): Use typedef avr_arch_t instead.
5243 (struct arch_info_s): Use typedef avr_arch_info_t instead.
5244 (struct mcu_type_s): Use typedef avr_mcu_t instead.
5245 * config/avr/avr.c: Same.
5246 * config/avr/avr-devices.c: Same.
5247 * config/avr/driver-avr.c: Same.
5248 * config/avr/gen-avr-mmcu-texi.c: Same.
5249 * config/avr/avr-mcus.def: Adjust comment.
5251 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
5253 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
5254 * config/aarch64/iterators.md (VALLDI): New.
5256 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
5257 Andi Kleen <ak@linux.intel.com>
5260 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
5261 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
5264 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5266 * config/avr/avr-stdint.h: Remove trailing blanks.
5267 * config/avr/avr-log.h: Same.
5268 * config/avr/avr-arch.h: Same.
5269 * config/avr/avr-devices.c: Same.
5270 * config/avr/avr-dimode.md: Same.
5271 * config/avr/predicates.md: Same.
5272 * config/avr/avr-c.c: Same. And fix typo.
5274 * config/avr/avr-protos.h: Same. And:
5275 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
5276 (init_cumulative_args): Rename to avr_init_cumulative_args.
5277 (expand_prologue): Rename to avr_expand_prologue.
5278 (expand_epilogue): Rename to avr_expand_epilogue.
5279 (adjust_insn_length): Rename to avr_adjust_insn_length.
5280 (notice_update_cc): Rename to avr_notice_update_cc.
5281 (final_prescan_insn): Rename to avr_final_prescan_insn.
5282 * config/avr/avr.c: Same.
5283 * config/avr/avr.h: Same.
5284 * config/avr/avr.md: Remove trailing blanks.
5285 (prologue): Use avr_expand_prologue.
5286 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
5288 2013-01-14 Richard Biener <rguenther@suse.de>
5290 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
5291 verify_location, collect_subblocks): New functions.
5292 (verify_gimple_in_cfg): Verify that locations only reference
5293 BLOCKs in the functions BLOCK tree.
5295 2013-01-14 Richard Biener <rguenther@suse.de>
5297 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
5299 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
5301 (insert_out_of_ssa_copy_on_edge): Likewise.
5302 (rewrite_close_phi_out_of_ssa): Likewise.
5303 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
5305 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
5306 propagated constants.
5307 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
5310 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5312 * config/avr/avr-modes.def: Add GPL copyright notice.
5314 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
5316 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
5317 MEMMODEL_MASK to determine memory model.
5318 (atomic_store<mode>): Ditto from operands[2].
5319 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
5321 2013-01-13 Jakub Jelinek <jakub@redhat.com>
5324 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
5325 (fold_gimple_assign): Don't call unshare_expr here.
5326 (fold_ctor_reference): Call unshare_expr.
5328 2013-01-13 Terry Guo <terry.guo@arm.com>
5330 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5331 * doc/fragments.texi: Document MULTILIB_REUSE.
5332 * gcc.c (multilib_reuse): New internal spec.
5333 (set_multilib_dir): Also search multilib from multilib_reuse.
5334 * genmultilib (tmpmultilib3): Refactor code.
5335 (tmpmultilib4): Ditto.
5336 (multilib_reuse): New multilib argument.
5338 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
5340 * Makefile.in: Update copyright.
5342 2013-01-12 Tom de Vries <tom@codesourcery.com>
5345 * calls.c (expand_call): Check if arg_nr is valid.
5347 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5349 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5350 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5351 documentation. Add missing '__' in front of
5352 __builtin_ia32_packssdw256.
5354 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5357 * config/s390/s390.c (s390_preferred_reload_class): Do not return
5358 NO_REGS for larl operands.
5359 (s390_reload_larl_operand): Use s390_load_address instead of
5362 2013-01-11 Richard Biener <rguenther@suse.de>
5364 * tree-cfg.c (verify_node_sharing_1): Split out from ...
5365 (verify_node_sharing): ... here.
5366 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5368 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
5370 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5371 Substitute TREECHECKING.
5372 * configure: Regenerate.
5373 * Makefile.in (TREECHECKING): New.
5375 2013-01-11 Richard Guenther <rguenther@suse.de>
5377 PR tree-optimization/44061
5378 * tree-vrp.c (extract_range_basic): Compute zero as
5379 value-range for __builtin_constant_p of function parameters.
5381 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
5383 Update copyright years.
5385 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
5387 PR rtl-optimization/55672
5388 * lra-eliminations.c (mark_not_eliminable): Permit addition with
5389 const to be eliminable.
5391 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
5393 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5394 * configure: Regenerate.
5396 2013-01-10 Richard Biener <rguenther@suse.de>
5398 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
5400 2013-01-10 Richard Biener <rguenther@suse.de>
5403 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5404 locations for virtual PHI arguments.
5405 (rewrite_update_phi_arguments): Likewise.
5407 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
5409 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5412 2013-01-10 Jakub Jelinek <jakub@redhat.com>
5414 PR tree-optimization/55921
5415 * tree-complex.c (expand_complex_asm): New function.
5416 (expand_complex_operations_1): Call it for GIMPLE_ASM.
5418 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5421 * config/s390/s390.c (s390_symref_operand_p)
5422 (s390_loadrelative_operand_p): Merge the two functions.
5423 (s390_check_qrst_address, print_operand_address): Add parameters
5424 to s390_loadrelative_operand_p invokation.
5425 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5426 (s390_reload_larl_operand, s390_secondary_reload): Use
5427 s390_loadrelative_operand_p instead of s390_symref_operand_p.
5428 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5430 2013-01-09 Mike Stump <mikestump@comcast.net>
5432 * dse.c (record_store): Remove unnecessary assert.
5434 2013-01-09 Jan Hubicka <jh@suse.cz>
5436 PR tree-optimization/55569
5437 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5438 * cfgloop.h (scale_loop_profile): Likewise.
5440 2013-01-09 Jan Hubicka <jh@suse.cz>
5443 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5445 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5447 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5450 * expr.h (maybe_emit_group_store): Declare.
5451 * expr.c (maybe_emit_group_store): New function.
5452 * builtins.c (expand_builtin_int_roundingfn): Call it.
5453 (expand_builtin_int_roundingfn_2): Likewise.
5455 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
5457 PR rtl-optimization/55829
5458 * lra-constraints.c (match_reload): Add code for absent output.
5459 (curr_insn_transform): Add code for reloads of matched inputs
5462 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
5464 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5465 attribute of movddup insn to DF.
5466 (*vec_interleave_lowv2df): Ditto.
5467 (vec_dupv2df): Ditto.
5469 2013-01-09 Jan Hubicka <jh@suse.cz>
5471 PR tree-optimiation/55875
5472 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5473 EVERY_ITERATION parameter.
5474 (number_of_iterations_exit): Check if exit is executed every iteration.
5475 (idx_infer_loop_bounds): Similarly here.
5476 (n_of_executions_at_most): Simplify
5477 to only test for cases where statement is dominated by the
5478 particular bound; handle correctly the "postdominance" test.
5479 (scev_probably_wraps_p): Use max loop iterations info
5480 as a global bound first.
5482 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
5483 Nick Clifton <nickc@redhat.com>
5485 * config/v850/v850.md (cbranchsf4): New pattern.
5486 (cstoresf4): New pattern.
5487 (cbranchdf4): New pattern.
5488 (cstoredf4): New pattern.
5489 (movsicc): Disallow floating point comparisons.
5490 (cmpsf_le_insn): Fix order of operators.
5491 (cmpsf_lt_insn): Likewise.
5492 (cmpsf_eq_insn): Likewise.
5493 (cmpdf_le_insn): Likewise.
5494 (cmpdf_lt_insn): Likewise.
5495 (cmpdf_eq_insn): Likewise.
5496 (cmpsf_ge_insn): Use LE comparison.
5497 (cmpdf_ge_insn): Likewise.
5498 (cmpsf_gt_insn): Use LT comparison.
5499 (cmpdf_gt_insn): Likewise.
5500 (cmpsf_ne_insn): Delete pattern.
5501 (cmpdf_ne_insn): Delete pattern.
5502 * config/v850/v850.c (v850_gen_float_compare): Use
5503 gen_cmpdf_eq_insn for NE comparison.
5504 (v850_float_z_comparison_operator)
5505 (v850_float_nz_comparison_operator): Move from here ...
5506 * config/v850/predicates.md: ... to here. Move GT and GE
5507 comparisons into v850_float_z_comparison_operator.
5508 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5510 (v850_float_nz_comparison_operator): Likewise.
5512 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5514 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5515 with calls to gen_insvsi/gen_insvdi.
5517 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5519 * config/i386/i386.c (initial_ix86_tune_features): Set up
5520 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5522 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
5523 Jakub Jelinek <jakub@redhat.com>
5525 PR tree-optimization/48189
5526 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5527 If nitercst is 0, don't predict the exit edge.
5529 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5531 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5532 in asm_fprintf with reg_names.
5533 (aarch64_print_operand_address): Likewise.
5534 (aarch64_return_addr): Likewise.
5535 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5537 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5539 * config/pa/pa.h (VAL_U6_BITS_P): Define.
5540 (INT_U6_BITS): Likewise.
5541 * config/pa/predicates.md (uint6_operand): New predicate.
5542 (shift5_operand, shift6_operand): Likewise.
5543 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5545 (lshrdi3): Use shift6_operand.
5546 (shrpsi4, shrpdi4): New insn patterns.
5547 (extzv): Delete expander.
5548 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
5549 predicates in unamed zero extract patterns. Tighten common constraint.
5550 (extv): Delete expander.
5551 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
5552 predicates in unamed sign extract patterns. Tighten common constraint.
5553 (insv): Delete expander.
5554 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5555 predicates in unamed insert patterns. Tighten common constraint.
5556 Change uint32_operand predicate to uint6_operand predicate in unamed
5557 DImode pattern to insert constant values of type 1...1xxxx.
5559 2013-01-04 Jan Hubicka <jh@suse.cz>
5561 PR tree-optimization/55823
5562 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5565 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5566 Uros Bizjak <ubizjak@gmail.com>
5568 PR rtl-optimization/55845
5569 * df-problems.c (can_move_insns_across): Stop scanning at
5570 volatile_insn_p source instruction or give up if
5571 across_from .. across_to range contains any volatile_insn_p
5574 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5576 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5577 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5579 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5580 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5582 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5585 * asan.c (asan_clear_shadow): New function.
5586 (asan_emit_stack_protection): Use it.
5588 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5590 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5591 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5592 with tab instead of space.
5594 2013-01-08 Nick Clifton <nickc@redhat.com>
5596 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5597 register bank 0 at the start of an interrupt handler.
5598 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5601 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5603 * config/aarch64/aarch64-simd.md
5604 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5605 (aarch64_simd_bsl): Likewise.
5606 (aarch64_vcond_internal<mode>): Likewise.
5607 (vcond<mode><mode>): Likewise.
5608 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5609 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5611 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5613 * config/aarch64/aarch64-builtins.c
5614 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5616 2013-01-08 Martin Jambor <mjambor@suse.cz>
5619 * tree-sra.c (analyze_access_subtree): Return true also after
5620 potentially creating a debug-only replacement.
5622 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5625 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5627 PR tree-optimization/54120
5628 * tree-vrp.c (range_fits_type_p): Don't allow
5629 src_precision < precision from signed vr to unsigned_p
5630 if vr->min or vr->max is negative.
5631 (simplify_float_conversion_using_ranges): Test can_float_p
5632 against CODE_FOR_nothing.
5634 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5635 Richard Biener <rguenther@suse.de>
5638 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5639 types instead of just INTEGER_TYPE types.
5641 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5643 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5646 2013-01-07 Steve Ellcey <sellcey@mips.com>
5649 * config/mips/mips.opt: Change mad to mmad to match documentation.
5651 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5654 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5657 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5660 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5661 (avr_addrspace_t): Add .section_name field.
5662 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5664 (avr_addrspace): Same. Initialize .section_name. Remove last
5665 NULL entry. Put __memx into .progmemx.data.
5666 (progmem_section_prefix): Remove.
5667 (avr_asm_init_sections): No need to initialize progmem_section.
5668 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5669 section name prefix.
5670 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5671 retrieve the progmem section.
5672 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5673 boundary to run over avr_addrspace[].
5674 (avr_register_target_pragmas): Ditto.
5676 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5678 * varasm.c (output_constant_def_contents): For asan_protect_global
5679 protected strings, adjust DECL_ALIGN if needed, before testing for
5681 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5682 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5684 (output_object_block): For asan protected decls, emit asan padding
5685 after their contents.
5686 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5687 (asan_finish_file): Test it here instead.
5689 2013-01-07 Nick Clifton <nickc@redhat.com>
5690 Matthias Klose <doko@debian.org>
5691 Doug Kwan <dougkwan@google.com>
5692 H.J. Lu <hongjiu.lu@intel.com>
5695 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5697 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5699 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5701 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5703 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5705 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5708 * doc/install.texi (Cross-Compiler-Specific Options): Document
5711 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5713 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5714 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5715 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5716 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5717 vqmovun_high_s64): Fix source operand number and update copyright.
5719 2013-01-07 Richard Biener <rguenther@suse.de>
5722 * gimple.h (gimple_call_builtin_p): New overload.
5723 * gimple.c (validate_call): New function.
5724 (gimple_call_builtin_p): Likewise.
5725 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5726 Use gimple_call_builtin_p.
5727 (find_func_clobbers): Likewise.
5728 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5729 (strlen_optimize_stmt): Likewise.
5731 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5733 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5734 (vld1q_dup_*): Likewise.
5736 (vld1q_*): Likewise.
5737 (vld1_lane_*): Likewise.
5738 (vld1q_lane_*): Likewise.
5740 2013-01-07 Richard Biener <rguenther@suse.de>
5742 * lto-streamer.h (LTO_minor_version): Bump to 2.
5744 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5746 * config/aarch64/aarch64-protos.h
5747 (aarch64_const_double_zero_rtx_p): Rename to...
5748 (aarch64_float_const_zero_rtx_p): ...this.
5749 (aarch64_float_const_representable_p): New.
5750 (aarch64_output_simd_mov_immediate): Likewise.
5751 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5752 move immediate case.
5753 * config/aarch64/aarch64.c
5754 (aarch64_const_double_zero_rtx_p): Rename to...
5755 (aarch64_float_const_zero_rtx_p): ...this.
5756 (aarch64_print_operand): Allow printing of new constants.
5757 (aarch64_valid_floating_const): New.
5758 (aarch64_legitimate_constant_p): Check for valid floating-point
5760 (aarch64_simd_valid_immediate): Likewise.
5761 (aarch64_vect_float_const_representable_p): New.
5762 (aarch64_float_const_representable_p): Likewise.
5763 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5764 (aarch64_output_simd_mov_immediate): New.
5765 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5766 (*movdf_aarch64): Likewise.
5767 * config/aarch64/constraints.md (Ufc): New.
5768 (Y): call aarch64_float_const_zero_rtx.
5769 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5771 2013-01-07 Richard Biener <rguenther@suse.de>
5773 PR tree-optimization/55888
5774 PR tree-optimization/55862
5775 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5776 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5777 not if it is contained therein.
5779 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5781 * config/avr/t-avr: Typo.
5783 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5786 * config/avr/t-avr: Don't automatically rebuild
5787 $(srcdir)/config/avr/t-multilib
5788 $(srcdir)/config/avr/avr-tables.opt
5789 $(srcdir)/doc/avr-mmcu.texi
5790 (avr-mcus): New phony target to build them on request.
5791 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5792 * avr/avr-mcus.def: Adjust comments.
5794 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5796 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5798 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5800 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5802 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5804 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5806 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5808 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5809 to generate profiling.
5810 * config/rs6000/aix64.h (LIB_SPEC): Same.
5812 2013-01-04 Andrew Pinski <apinski@cavium.com>
5814 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5816 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5818 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5820 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5822 (ix86_expand_move): Ditto.
5823 (ix86_zero_extend_to_Pmode): Ditto.
5824 (ix86_expand_call): Ditto.
5825 (ix86_expand_special_args_builtin): Ditto.
5826 (ix86_expand_builtin): Ditto.
5828 2013-01-04 Richard Biener <rguenther@suse.de>
5830 PR tree-optimization/55862
5831 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5832 translating them through PHI nodes.
5834 2013-01-04 Martin Jambor <mjambor@suse.cz>
5836 PR tree-optimization/55755
5837 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5838 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5840 2013-01-04 Marek Polacek <polacek@redhat.com>
5843 * opts.c (default_options_optimization): Clarify error message.
5845 2013-01-04 Richard Biener <rguenther@suse.de>
5848 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5851 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5854 * config/pa/pa.md (movsi): Revert previous change.
5855 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5858 2013-01-03 Richard Henderson <rth@redhat.com>
5860 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5861 after eliminating TLS symbols.
5863 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5866 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5867 * graphite-poly.c (debug_gmp_value): Likewise.
5869 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5872 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5873 selected code model, define __code_mode_small__, __code_model_medium__,
5874 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5875 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5876 xchg temporary register with %k. Declare temporary register as
5878 [__x86_64__]: For medium and large code models, preserve %rbx register.
5880 2013-01-03 Richard Biener <rguenther@suse.de>
5882 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5883 (dump_subscript): Adjust.
5884 (finalize_ddr_dependent): Do not dump redundant info.
5885 (analyze_siv_subscript): Adjust.
5886 (subscript_dependence_tester): Likewise.
5887 (compute_affine_dependence): Likewise.
5889 2013-01-03 Richard Biener <rguenther@suse.de>
5892 2013-01-03 Richard Biener <rguenther@suse.de>
5894 PR tree-optimization/55857
5895 * tree-vect-stmts.c (vectorizable_load): Do not setup
5896 re-alignment for invariant loads.
5898 2013-01-02 Richard Biener <rguenther@suse.de>
5900 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5901 invariant load do not generate a vector load from the scalar location.
5903 2013-01-03 Richard Biener <rguenther@suse.de>
5905 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5906 for not vectorizing.
5907 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5908 not build INDIRECT_REFs, call get_name once only.
5909 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5910 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5912 2013-01-03 Richard Biener <rguenther@suse.de>
5914 PR tree-optimization/55857
5915 * tree-vect-stmts.c (vectorizable_load): Do not setup
5916 re-alignment for invariant loads.
5918 2013-01-03 Richard Biener <rguenther@suse.de>
5921 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5922 prefer a built-in decl.
5924 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5926 * gcc.c (process_command): Update copyright notice dates.
5927 * gcov.c (print_version): Likewise.
5928 * gcov-dump.c (print_version): Likewise.
5930 PR rtl-optimization/55838
5931 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5932 iv0.step, iv1.step and step.
5934 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5935 Marc Glisse <marc.glisse@inria.fr>
5937 PR tree-optimization/55832
5938 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5939 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5940 integer_{one,zero}_node.
5942 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5945 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5946 * var-tracking.c (reverse_op): Don't add reverse ops to
5947 VALUEs that have already
5948 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5950 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5952 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5954 2013-01-02 Teresa Johnson <tejohnson@google.com>
5956 * dumpfile.c (dump_loc): Print filename with location.
5957 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5958 new location_t parameter to emit complete unroll message with
5960 (canonicalize_loop_induction_variables): Compute loops location
5961 and pass to try_unroll_loop_completely.
5962 * loop-unroll.c (report_unroll_peel): New function.
5963 (peel_loops_completely): Use new dump format with location
5964 for main dumpfile message, and invoke report_unroll_peel on success.
5965 (decide_unrolling_and_peeling): Ditto.
5966 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5967 by report_unroll_peel.
5968 (decide_peel_completely): Ditto.
5969 (decide_unroll_constant_iterations): Ditto.
5970 (decide_unroll_runtime_iterations): Ditto.
5971 (decide_peel_simple): Ditto.
5972 (decide_unroll_stupid): Ditto.
5973 * cfgloop.c (get_loop_location): New function.
5974 * cfgloop.h (get_loop_location): Declare.
5976 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5978 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5981 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5984 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5985 BLKmode objects when EXPAND_MEMORY is specified.
5987 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5989 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5991 (fold_builtin_cpu): Do not share cpu model decls across statements.
5993 2013-01-02 Jason Merrill <jason@redhat.com>
5996 * tree.c (build_array_type_1): Revert earlier change.
5998 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
6000 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
6002 * config/aarch64/aarch64-tune.md: Re-generate.
6004 2013-01-02 Richard Biener <rguenther@suse.de>
6006 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6007 invariant load do not generate a vector load from the scalar location.
6009 2013-01-02 Richard Biener <rguenther@suse.de>
6012 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
6013 * configure: Regenerate.
6015 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6017 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
6018 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
6019 (expand_builtin_int_roundingfn_2): Keep the original target around
6020 for the fallback case.
6022 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6024 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
6025 to be clear for sign changes.
6027 2013-01-01 Jan Hubicka <jh@suse.cz>
6029 * ipa-inline-analysis.c: Fix formatting.
6031 2013-01-01 Jakub Jelinek <jakub@redhat.com>
6033 PR tree-optimization/55831
6034 * tree-vect-loop.c (get_initial_def_for_induction): Use
6035 gsi_after_labels instead of gsi_start_bb.
6037 Copyright (C) 2013 Free Software Foundation, Inc.
6039 Copying and distribution of this file, with or without modification,
6040 are permitted in any medium without royalty provided the copyright
6041 notice and this notice are preserved.