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