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