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