]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Add support for the -mcmodel=MODEL flag on TILE-Gx.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
1773cd77
WL
12012-08-28 Walter Lee <walt@tilera.com>
2
3 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
4 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
5 (CRT_CALL_STATIC_FUNCTION): Define.
6 * config/tilegx/predicates.md (const_last_symbolic_operand):
7 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
8 UNSPEC_HW2_LAST_PLT_PCREL.
9 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
10 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
11 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
12 and renumber the constants that follow.
13 (UNSPEC_HW1_PCREL): Ditto.
14 (UNSPEC_HW2_LAST_PCREL): Ditto.
15 (UNSPEC_HW0_PLT_PCREL): Define.
16 (UNSPEC_HW1_PLT_PCREL): Define.
17 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
18 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
19 (mov_large_pcrel_step1): Define.
20 (mov_large_pcrel_step2): Define.
21 (mov_large_pcrel_step3): Define.
22 (mov_large_pcrel_step4): Define.
23 (mov_plt_pcrel_step1): Define.
24 (mov_plt_pcrel_step2): Define.
25 (mov_plt_pcrel_step3): Define.
26 (mov_plt_pcrel_step1_32bit): Define.
27 (mov_plt_pcrel_step2_32bit): Define.
28 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
29 (call_value): Ditto.
30 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
31 (mcmodel): New option.
32 (enum cmodel): Define.
33 (CM_SMALL): Define.
34 (CM_LARGE): Define.
35 * config/tilegx/tilegx-opts.h: New file.
36 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
37 Declare.
38 (tilegx_compute_pcrel_plt_address): Declare.
39 * config/tilegx/tilegx.c (tilegx_option_override): Handle
40 tilegx_cmodel.
41 (tilegx_function_ok_for_sibcall): Ditto.
42 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
43 and don't declare static. Handle tilegx_cmodel.
44 (tilegx_compute_pcrel_plt_address): Define.
45 (tilegx_legitimize_pic_address): Rename calls to
46 compute_pcrel_address.
47 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
48 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
49 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
50 (load_pic_register): Rename call to compute_pcrel_address.
51 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
52 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
53 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
54
8febe3fa
MK
552012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
56
57 * sched-deps.c (add_dependence_list_and_free): Simplify.
58 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
59 lists when add_dependence_list_and_free doesn't free them.
60
28591f4a
UB
612012-08-27 Uros Bizjak <ubizjak@gmail.com>
62
63 PR target/46254
64 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
65 true for TARGET_64BIT or !flag_pic.
66 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
67 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
68 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
69 Add insn constraint. Conditionally emit xchg asm insns.
70 (atomic_compare_and_swap<mode>): Update calls. Check only
71 cmpxchg8b_pic_memory_operand in memory address fixup.
72 (DCASMODE): Remove.
73 (CASHMODE): Rename from DCASHMODE.
74 (doublemodesuffix): Update modes.
75 (regprefix): New mode attribute.
76
77 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
78 <UNSPECV_CMPXCHG>: New constant.
79 (atomic_compare_and_swap<mode>_1): Rename from
80 atomic_compare_and_swap_single<mode>. Update calls and
81 unspec_volatile constants.
82 (atomic_compare_and_swap<mode>_doubleword): Rename from
83 atomic_compare_and_swap_double<mode>. Update calls and
84 unspec_volatile constants.
85
655c5444
WL
862012-08-27 Walter Lee <walt@tilera.com>
87
88 * doc/md.texi (TILE-Gx): Fix typo.
89
4b3fa92c
WL
902012-08-27 Walter Lee <walt@tilera.com>
91
92 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
93 config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
28591f4a 94
848c312c 952012-08-27 Walter Lee <walt@tilera.com>
28591f4a 96
848c312c
WL
97 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
98 (insn_bfins): Delete.
99
9b0370aa
WL
1002012-08-27 Walter Lee <walt@tilera.com>
101
102 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
103 atomic_exchange_bare<mode>,
104 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
105 * config/tilegx/tilegx-generic.md (X1_remote): New
106 insn_reservation.
107 * config/tilegx/tilegx.md (type): Add X1_remove.
108 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
109 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
110 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
111 X1_remote.
112
865ea646
AS
1132012-08-27 Andreas Schwab <schwab@linux-m68k.org>
114
115 * gdbinit.in: Fix syntax of skip command.
116
cb038fd2
RS
1172012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
118
119 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
120 SYMBOL_REF SET_SRCs.
121
d8c51572
RS
1222012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
123
124 * config/mips/mips.c (vr4130_align_insns): Don't simulate
125 ghost instructions. Assert that the required instructions exist.
126
4b11e406
RS
1272012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
128
129 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
130 definition.
131 * config/mips/mips.c (machine_function): Add next_fcc.
132 (mips_output_move): Remove handling of fcc moves.
133 (mips_allocate_fcc): New function.
134 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
135 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
136 Remove special case for CCmode reloads.
137 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
138 the result a fixed operand.
139 * config/mips/mips.md (move_type): Remove lui_movf.
140 (type, length): Remove references to it.
141 (movcc, reload_incc, reload_outcc): Delete.
142
a1c741f0
RS
1432012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
144
145 * config/mips/mips.c (mips_has_long_branch_p): New function,
146 split out from...
147 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
148
62332eba
RS
1492012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
150
151 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
152
1209ab5e
RS
1532012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
154
155 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
156
3f5685dc
RS
1572012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
158
159 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
160 to the size cost of multiplication.
161
e537ef59
GP
1622012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
163
a66217a0
GP
164 * doc/install.texi (Specific): Clarify what needs to be added to
165 this section.
166
1672012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
28591f4a 168
e537ef59
GP
169 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
170 and NO_DOT_IN_LABEL from here...
171 (Label Output): ...to here.
172 * doc/tm.texi: Regenerate.
28591f4a 173
6c781661
GP
1742012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
175
176 * doc/invoke.texi (C++ Dialect Options): Add missing space.
177
b5106d10
EB
1782012-08-25 Eric Botcazou <ebotcazou@adacore.com>
179
180 PR rtl-optimization/54088
181 * jump.c (delete_related_insns): Robustify latest change.
182
1832012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
81ea3024
RCJ
184
185 * doc/extend.texi (__atomic Builtins): Remove space before comma.
186
ca97b221 1872012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
28591f4a 188 Andrew Pinski <apinski@cavium.com>
ca97b221
RS
189
190 * config/mips/mips.h (CASE_VECTOR_MODE): For not
191 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
192 (CASE_VECTOR_SHORTEN_MODE): Likewise.
193
66aaf16f
UB
1942012-08-25 Uros Bizjak <ubizjak@gmail.com>
195
196 * config/i386/i386.h (FP_REG_P): Remove macro.
197 (FP_REGNO_P): Ditto.
198 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
199 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
200 (ANY_FP_REGNO_P): Ditto.
201 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
202 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
203 instead of FP_REGNO_P.
204 (ix86_hard_regno_mode_ok): Ditto.
205 * config/i386/predicates.md (fp_register_operand): Ditto.
206 (register_and_not_fp_reg_operand): Ditto.
207 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
208 of FP_REG_P.
209
210 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
211
f581a987
JM
2122012-08-24 Jason Merrill <jason@redhat.com>
213
214 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
215 on TREE_VEC or SSA_NAME.
216
6f8f67e9
JJ
2172012-08-24 Jakub Jelinek <jakub@redhat.com>
218
219 PR c/54363
220 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
221 if init is a CONSTRUCTOR.
222
12fdc099
SB
2232012-08-24 Steven Bosscher <steven@gcc.gnu.org>
224
225 * tree-ssa-live.c (dump_var_map): Do not dump the partition
226 map of virtual operands.
227
013734b9
YR
2282012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
229
230 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
231 case for Atom processor.
232
77ee7190
SB
2332012-08-24 Simon Baldwin <simonb@google.com>
234
235 * dwarf2out.c (gen_producer_string): Omit command line switch if
236 CL_NO_DWARF_RECORD flag set.
237 * opts.h (CL_NO_DWARF_RECORD): New.
238 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
239 * doc/options.texi: Document NoDWARFRecord option flag.
240
a9b94d0d
L
2412012-08-24 H.J. Lu <hongjiu.lu@intel.com>
242
243 PR debug/52857
244 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
245 frame_pointer_rtx for based_loc_descr.
246
2eb712b4
MJ
2472012-08-24 Martin Jambor <mjambor@suse.cz>
248
249 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
250 instead of current_function_decl, use profile_status_for_function and
251 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
252 (maybe_hot_count_p): New parameter fun, use
253 profile_status_for_function instead of its cfun_variant.
254 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
255 all callees.
256 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
257 maybe_hot_frequency_p.
258 (probably_never_executed_bb_p): New parameter fun, use its decl
259 instead of current_function_decl.
260 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
261 (rtl_profile_for_bb): Likewise.
262 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
263 probably_never_executed_bb_p.
264 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
265 instead of cfun.
266 (update_stmt_operands): Pass cfun as an argument of
267 ssa_operands_active.
268 (swap_tree_operands): Likewise.
269 * gimple-iterator.c (update_modified_stmt): Likewise.
270 (update_modified_stmts): Likewise.
271 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
272 * tree-ssa.c (delete_tree_ssa): Likewise.
273 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
274 (push_to_next_round_p): Likewise.
275 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
276 * cfg.c: Inlude tree.h.
277 (check_bb_profile): Use profile_status_for_function,
278 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
279 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
280 variants.
281 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
282 maybe_hot_bb_p and probably_never_executed_bb_p.
283 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
284 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
285 dump_histograms_for_stmt.
b9113907
UB
286 (dump_gimple_mem_ops): Pass
287 DECL_STRUCT_FUNCTION (current_function_decl)
2eb712b4
MJ
288 as an argument to dump_gimple_mem_ops.
289 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
290 Do not change cfun. Change and restore current_function_decl.
291 * Makefile.in (cfg.o): Include TREE_H in dependencies.
292
e55e4056
GJL
2932012-08-24 Georg-Johann Lay <avr@gjlay.de>
294
295 PR target/54222
296 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
297 * avr/avr-fixed.md: New file.
298 * avr/avr.md: Include it.
299 (cc): Add: minus.
300 (adjust_len): Add: minus, minus64, ufract, sfract.
301 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
302 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
303 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
304 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
b9113907 305 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
e55e4056
GJL
306 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
307 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
308 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
309 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
310 16-bit modes in ALL2.
311 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
312 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
313 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
314 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
315 32-bit modes in ALL4.
316 * avr-dimode.md (ALL8): New mode iterator.
317 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
318 subdi3_const_insn, cbranchdi4, compare_di2,
319 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
320 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
321 all 64-bit modes in ALL8.
322 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
323 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
324 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
325 (avr_fixed_point_supported_p): ...this new static function.
326 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
327 (avr_build_builtin_va_list): ...this new static function.
328 (avr_adjust_type_node): New static function.
329 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
330 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
331 pseudo instead of gen_rtx_MINUS.
332 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
333 (notice_update_cc): Handle: CC_MINUS.
334 (output_movqi): Generalize to handle respective fixed-point modes.
335 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
336 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
337 (avr_assemble_integer): Ditto.
338 (output_reload_in_const, output_reload_insisf): Ditto.
339 (avr_compare_pattern): Skip all modes > 4 bytes.
340 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
341 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
342 (avr_to_int_mode): New function.
343 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
344 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
345 * config/avr/predicates.md (const0_operand): Allow const_fixed.
346 (const_operand, const_or_immediate_operand): New.
347 (nonmemory_or_const_operand): New.
348 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
349 New constraints.
350 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
351
d8116890
KZ
3522012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
353
354 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
355 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
356 to CASE_CONST_ANY.
357 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
358 count_reg_usage): Convert constant cases.
b9113907 359 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
d8116890
KZ
360 (cselib_subst_to_values): Convert constant cases.
361 * df-scan.c (df_uses_record): Ditto.
362 * dse.c (const_or_frame_p): Convert case statements to explicit
363 if-then-else using mode classes.
364 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
365 * explow.c (convert_memory_address_addr_space): Ditto.
366 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
367 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
368 * ira.c (equiv_init_varies_p, contains_replace_regs,
369 memref_referenced_p, rtx_moveable_p): Ditto.
370 * jump.c (mark_jump_label_1): Remove constant cases.
371 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
372 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
373 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
374 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
375 * reginfo.c (reg_scan_mark_refs): Ditto.
376 * regrename.c (scan_rtx): Ditto.
377 * reload1.c (eliminate_regs_1, elimination_effects,
378 scan_paradoxical_subregs): Ditto.
379 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
380 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
381 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
382 (reg_mentioned_p, modified_between_p, modified_in_p)
383 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
384 inequality_comparisons_p, computed_jump_p_1): Ditto.
385 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
386 * sched-deps.c (sched_analyze_2): Ditto.
387 * valtrack.c (cleanup_auto_inc_dec): Ditto.
b9113907 388 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
d8116890
KZ
389 CASE_CONST_ANY): New macros.
390
545ca0f2
JB
3912012-08-23 Julian Brown <julian@codesourcery.com>
392 Sandra Loosemore <sandra@codesourcery.com>
393
394 * config/mips/mips.md
395 (UNSPEC_CASESI_DISPATCH): New.
396 (MIPS16_T_REGNUM): New constant.
397 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
398 (casesi): New.
399 (casesi_internal_mips16_<mode>): New.
400 * config/mips/mips.c (mips16_split_long_branches): Adjust test
401 to ignore casesi jump tables.
402 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
403 comment.
404 (CASE_VECTOR_MODE): Use SImode unconditionally.
405 (CASE_VECTOR_SHORTEN_MODE): Define.
406 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
407 when necessary for MIPS16_SHORT_JUMP_TABLES.
408
3118cdeb
BS
4092012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
410
411 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
412
721b405f
L
4132012-08-23 H.J. Lu <hongjiu.lu@intel.com>
414
415 PR driver/54335
416 * doc/invoke.texi: Add -da and remove -dm.
417
54e8e2c3
RG
4182012-08-23 Richard Guenther <rguenther@suse.de>
419
420 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
421 virtual SSA form.
422
b6b27e98
JJ
4232012-08-23 Jakub Jelinek <jakub@redhat.com>
424
425 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
426
fb489f55
MX
4272012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
428
429 * doc/gty.texi: Fix typo.
430
ceb16be3
RG
4312012-08-23 Richard Guenther <rguenther@suse.de>
432
433 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
434 (find_uses_to_rename_use): Likewise.
435 (find_uses_to_rename_bb): Likewise.
436 (find_uses_to_rename_stmt): Walk over all operands.
437
6e01d526
OE
4382012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
439
440 PR target/54089
441 * config/sh/predicates (p27_rshift_count_operand,
442 not_p27_rshift_count_operand): New predicates.
443 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
444 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
445 case when shift amount is 31.
446 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
447 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
448 of 'arith'.
449 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
450 the file.
451 (lshrsi3): Remove clobber from expander. Use shift_count_operand
452 instead of nonmemory_operand predicate for second operand. Add
453 handling of case lshrsi3_n_clobbers_t.
454 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
455 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
456 shift sequences if beneficial.
457 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
458 dynamic shift if beneficial.
459 (lshrsi3_n_clobbers_t): New insn_and_split.
460 (lshrsi3_m): Delete.
461
131db6b8
SB
4622012-08-22 Steven Bosscher <steven@gcc.gnu.org>
463
464 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
465
466 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
467 or rather a lack thereof.
468 (init_alias_analysis): Propagate the latest information across
469 the CFG in topological order to propagate as far as possible in
470 each iteration. Ignore debug insns.
471
c637141a
L
4722012-08-22 H.J. Lu <hongjiu.lu@intel.com>
473
474 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
475
476 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
477 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
478
479 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
480 TARGET_LONG_DOUBLE_64 is true.
481 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
482 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
483
484 * config/i386/i386.opt (mlong-double-80): New option.
485 (mlong-double-64): Likewise.
486
487 * config/i386/i386-c.c (ix86_target_macros): Define
488 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
489
a8a68bb0
L
4902012-08-22 H.J. Lu <hongjiu.lu@intel.com>
491
492 PR target/54347
493 * config/i386/i386.c (ix86_split_to_parts): Replace
494 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
495
21e2818d
RG
4962012-08-22 Richard Guenther <rguenther@suse.de>
497
498 * tree-vectorizer.c (vectorize_loops): Do not call
499 mark_virtual_operands_for_renaming.
500 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
501 Do not update SSA form here.
502
4579ccbc
DS
5032012-08-22 Dodji Seketeli <dodji@redhat.com>
504
505 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
506
9bb06c2a
RG
5072012-08-22 Richard Guenther <rguenther@suse.de>
508
509 PR tree-optimization/46590
510 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
511 counter output argument.
512 (walk_non_aliased_vuses): Add alias query counter argument
513 to the walker callback.
514 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
515 output argument and count alias queries.
516 (get_continuation_for_phi_1): Likewise.
517 (get_continuation_for_phi): Likewise.
518 (walk_non_aliased_vuses): Add alias query counter argument
519 to the walker callback and allow it to abort the walk by
520 returning -1.
521 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
522 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
523 counter parmeter, abort walk if that is bigger than
524 --param sccvn-max-alias-queries-per-access.
525 * params.def (sccvn-max-alias-queries-per-access): New param.
526 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
527
4ad14919
RG
5282012-08-22 Richard Guenther <rguenther@suse.de>
529
530 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
531 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
532 instead of gcc_assert.
533 (mark_block_for_update): Likewise.
534 (add_new_name_mapping): Likewise.
535 (mark_def_sites): Likewise.
536 (insert_phi_nodes_for): Likewise.
537 (rewrite_debug_stmt_uses): Likewise.
538 (rewrite_stmt): Likewise.
539 (maybe_register_def): Likewise.
540 (rewrite_update_phi_arguments): Likewise.
541 (rewrite_update_enter_block): Likewise.
542 (mark_def_interesting): Likewise.
543 (prepare_def_site_for): Likewise.
544 (insert_updated_phi_nodes_for): Likewise.
545
156c01cf
JJ
5462012-08-22 Jakub Jelinek <jakub@redhat.com>
547
548 * tree-vect-loop.c (vect_transform_loop): Initialize
549 check_profitability to false.
550
551 * tree-predcom.c (try_combine_chains): Free the worklist vector
552 at the end.
553
d9c6ca85
MG
5542012-08-22 Marc Glisse <marc.glisse@inria.fr>
555
556 PR tree-optimization/54317
557 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
558 double_int overflow.
559 Remove dead tests.
560
6f723d33
JJ
5612012-08-22 Jakub Jelinek <jakub@redhat.com>
562
563 * tree-vrp.c (find_assert_locations): Skip also edges
564 from the entry block.
565
566 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
567 free_stmt_vec_info on orig_cond after gsi_removing it.
568 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
569 free body_cost_vec vector.
570 (vect_analyze_data_refs): If gather is unsuccessful,
571 free_data_ref (dr).
572 * tree-inline.c (tree_function_versioning): Free
573 old_transforms_to_apply vector.
574
06d43afd
SB
5752012-08-22 Steven Bosscher <steven@gcc.gnu.org>
576
577 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
578 of this a VEC and add a bitmap obstack.
579 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
580 to the right size.
581 (ssa_conflicts_delete): Free the VEC and release the obstack.
582 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
583 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
584 (truct live_track_d): Add another bitmap obstack here.
585 (new_live_track): Initialize it and use it for all bitmaps.
586 (delete_live_track): Don't free the bitmaps one at a time, just
587 release the obstack.
588 (create_outofssa_var_map): Fix to conform to GCC code style rules.
589
03dd17b1
NF
5902012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
591
592 * config/m32c/constraints.md: New file.
593 * config/m32c/t-m32c (MD_FILES): Add constraints.
594 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
595 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
596 (m32c_reg_class_from_constraint): Delete.
597 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
598 (m32c_matches_constraint_p): Declare.
599 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
600 (REG_CLASS_FROM_CONSTRAINT): Delete.
601 (CONST_OK_FOR_CONSTRAINT_P): Delete.
602 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
603 (EXTRA_CONSTRAINT_STR): Delete.
604 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
605 * config/m32c/m32c.c: Include tm-constrs.h
606 (m32c_reg_class_from_constraint): Delete.
607 (m32c_const_ok_for_constraint_p): Delete.
608 (m32c_extra_constraint_p2): Rename to...
609 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
610 formatting.
611 (m32c_extra_constraint_p): Delete.
612 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
613 (m32c_split_move): Use satisfies_constraint_Ss.
b9113907 614 * config/m32c/predicates.md (memsym_operand): Use
03dd17b1
NF
615 satisfies_constraint_Si.
616 (memimmed_operand): Use satisfies_constraint_Sp.
617 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
618 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
619 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
620 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
621
c42df5ef
NF
6222012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
623
624 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
625 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
626 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
627 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
628 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
629 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
630 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
631
35ed5a70
OE
6322012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
633
634 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
635 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
636 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
637 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
638 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
639 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
640 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
641 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
642 stack_protect_set_di_media, stack_protect_test_si,
643 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
644 multi-line asm output strings.
645 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
646 output.
b9113907
UB
647 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
648 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
649 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
650 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
651 Use tab char instead of '\\t'.
35ed5a70
OE
652 (iordi3): Use braced string.
653 (*movsi_pop): Use tab chars instead of spaces.
654
082ea1dc
OE
6552012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
656
657 PR target/39423
b9113907
UB
658 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
659 movu.w insn.
082ea1dc 660
1aee8991
L
6612012-08-21 H.J. Lu <hongjiu.lu@intel.com>
662
663 PR middle-end/54332
664 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
665 inside the insn traversal loop.
666
667 * vec.h (vec_reserve): Remove the stack allocation check.
668
8a3ffc5d
MG
6692012-08-21 Marc Glisse <marc.glisse@inria.fr>
670
671 * fold-const.c (fold_ternary_loc): Detect identity permutations.
672 Canonicalize permutations more.
673 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
674 (simplify_permutation): Likewise.
675 (ssa_forward_propagate_and_combine): Call it.
676
b6db991c
RG
6772012-08-21 Richard Guenther <rguenther@suse.de>
678
679 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
680 the affine expansion cache.
681 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
682 split out from ...
683 (free_expr_hash_elt): ... this one.
684 (record_cond): Properly free a not needed hashtable element.
685 (lookup_avail_expr): Likewise.
686 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
687 for the var_infos hashtable.
688 (update_ssa): Likewise.
689
825c743c
RG
6902012-08-21 Richard Guenther <rguenther@suse.de>
691
692 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
693 * tree.h: Fix typo and complete flags documentation.
694
c1aaec5b
RB
6952012-08-21 Richard Guenther <rguenther@suse.de>
696
697 * tree.h (struct tree_base): Add union to make it possible to
698 re-use the upper 4 bytes for tree codes that do not need as
699 many flags as others. Move visited and default_def_flag to
700 common bits section in exchange for saturating_flag and
701 unsigned_flag. Add SSA name version and tree vec length
702 fields here.
703 (struct tree_vec): Remove length field here.
704 (struct tree_ssa_name): Remove version field here.
705
2daffc47
JH
7062012-08-20 Jan Hubicka <jh@suse.cz>
707
708 PR fortran/48636
c1aaec5b
RB
709 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
710 hint.
2daffc47
JH
711 (edge_badness): Likewise.
712 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
713 (inline_summary): Add loop_iterations.
714 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
715 (dump_inline_hints): Dump loop_iterations.
716 (reset_inline_summary): Free loop_iterations.
717 (inline_node_duplication_hook): Update loop_iterations.
718 (dump_inline_summary): Dump loop_iterations.
719 (will_be_nonconstant_expr_predicate): New function.
720 (estimate_function_body_sizes): Analyze loops.
721 (estimate_node_size_and_time): Set hint loop_iterations.
722 (inline_merge_summary): Merge loop iterations.
723 (inline_read_section): Stream in loop_iterations.
724 (inline_write_summary): Stream out loop_iterations.
725
4a84253c
FW
7262012-08-20 Florian Weimer <fweimer@redhat.com>
727
728 PR c++/19351
729 * call.c (build_operator_new_call): Add size_check argument and
730 evaluate it.
731 * cp-tree.h (build_operator_new_call): Adjust declaration.
732 * init.c (build_new_1): Compute array size check and apply it.
733
5592815a
OE
7342012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
735
f76ea208 736 PR target/54089
5592815a
OE
737 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
738 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
739 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
740 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
741
67748550
OE
7422012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
743
744 PR target/51244
745 * config/sh/sh.md (*cset_zero): New insns.
746
413de8e5
MW
7472012-08-20 Mark Wielaard <mjw@redhat.com>
748
749 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
750 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
751 (add_AT_low_high_pc): New function.
752 (AT_lbl): Handle dw_val_class_high_pc.
753 (print_die): Likewise.
754 (attr_checksum): Likewise.
755 (attr_checksum_ordered): Likewise.
756 (same_dw_val_p): Likewise.
757 (size_of_die): Likewise.
758 (value_format): Likewise.
759 (output_die): Likewise.
760 (gen_subprogram_die): Use add_AT_low_high_pc.
761 (add_high_low_attributes): Likewise.
762 (dwarf2out_finish): Likewise.
763
07bc8ae8
JJ
7642012-08-20 Jakub Jelinek <jakub@redhat.com>
765
766 PR rtl-optimization/54294
767 * fwprop.c (all_uses_available_at): Ignore debug insns in between
768 def_insn and target_insn when checking whether the shortcut is
769 possible.
770
59e08d4f
EB
7712012-08-20 Eric Botcazou <ebotcazou@adacore.com>
772
773 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
774
d88513ea
PM
7752012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
776
777 PR middle-end/53992
778 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
779
eb83633a
RE
7802012-08-20 Richard Earnshaw <rearnsha@arm.com>
781
782 PR tree-ssa/54295
783 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
784 declaration and setter.
785
7ab6a828
RE
7862012-08-20 Richard Earnshaw <rearnsha@arm.com>
787
788 PR tree-ssa/54295
789 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
790 New function.
791 (is_widening_mult_rhs_p): Use it.
792
19f75783
JM
7932012-08-20 Joseph Myers <joseph@codesourcery.com>
794
795 * configure.ac (ffs): Check for declaration.
796 * configure, config.in: Regenerate.
797
45db3141
RG
7982012-08-20 Richard Guenther <rguenther@suse.de>
799
800 * tree-flow.h (register_new_name_mapping): Remove.
801 * tree-into-ssa.c (register_new_name_mapping): Likewise.
802 (add_new_name_mapping): Do not push/pop timevar here.
803 (create_new_def_for): Instead do it here. Initialize
804 update-ssa here, handle a NULL def.
805 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
806
491e0b9b
RG
8072012-08-20 Richard Guenther <rguenther@suse.de>
808
809 PR tree-optimization/54327
810 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
811 if the use is registered for SSA update.
812
081db960
JJ
8132012-08-20 Jakub Jelinek <jakub@redhat.com>
814
815 PR tree-optimization/54321
816 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
817 as second argument to tree_low_cst call on val2.
818
d17fd79c
RG
8192012-08-20 Richard Guenther <rguenther@suse.de>
820
821 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
822
e7eec276
RG
8232012-08-20 Richard Guenther <rguenther@suse.de>
824
825 PR bootstrap/54326
826 * genoutput.c (note_constraint): Properly use CONST_CAST.
827
220e70df
NC
8282012-08-19 Nick Clifton <nickc@redhat.com>
829
830 PR target/54306
831 * config/arm/mmintrin.h: Remove spurious #endif.
832
92f7f5fd
JBG
8332012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
834
dfcb5514
JBG
835 * config/avr/avr-log.c (avr_log_vadump): Properly use
836 int-promoted enum values.
837 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
838 int to enum avr_arch.
839 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
92f7f5fd 840
37678631
JH
8412012-08-18 Jan Hubicka <jh@suse.cz>
842
843 PR lto/45375
844 * ipa-inline.c (want_inline_small_function_p): Bypass
845 inline limits for hinted functions.
846 (edge_badness): Dump hints; decrease badness for hinted funcitons.
847 * ipa-inline.h (enum inline_hints_vals): New enum.
848 (inline_hints): New type.
849 (edge_growth_cache_entry): Add hints.
850 (dump_inline_summary): Update.
851 (dump_inline_hints): Declare.
852 (do_estimate_edge_hints): Declare.
853 (estimate_edge_hints): New inline function.
854 (reset_edge_growth_cache): Update.
855 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
856 * ipa-inline-analysis.c (dump_inline_hints): New function.
857 (estimate_edge_devirt_benefit): Return true when function should be
858 hinted.
859 (estimate_calls_size_and_time): New hints argument; set it when
860 devritualization happens.
861 (estimate_node_size_and_time): New hints argument.
862 (do_estimate_edge_time): Cache hints.
b9113907 863 (do_estimate_edge_growth): Update.
37678631
JH
864 (do_estimate_edge_hints): New function
865
b216b86b
JDA
8662012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
867
868 PR middle-end/53823
869 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
870 if the mode is larger than a wide int and it is too costly to multiply
871 by a positive multiplier and negate the result.
872
a9c283a5
SB
8732012-08-18 Steven Bosscher <steven@gcc.gnu.org>
874
875 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
876 valgrind not to worry about reading from unitialized memory.
877
e0de76d8
SB
8782012-08-18 Steven Bosscher <steven@gcc.gnu.org>
879
880 PR middle-end/54313
881 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
882 freed when its obstack is release.
883
32b2d8f3
AP
8842012-08-18 Andrew Pinski <pinskia@gmail.com>
885
886 * alloc-pool.c (pool_alloc): Add valgrind markers.
887 (pool_free): Likewise.
888
b5719a04
WL
8892012-08-17 Walter Lee <walt@tilera.com>
890
891 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
892 (FEEDBACK_ENTER): Define.
893 (FEEDBACK_REENTER): Define.
894 (FEEDBACK_ENTRY): Define.
895 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
896 (FEEDBACK_ENTER): Define.
897 (FEEDBACK_REENTER): Define.
898 (FEEDBACK_ENTRY): Define.
899
e327d1a3
L
9002012-08-17 H.J. Lu <hongjiu.lu@intel.com>
901 Gary Funck <gary@intrepid.com>
902
903 PR target/20020
904 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
905 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
906
907 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
908
fd9da2c8
MG
9092012-08-17 Marc Glisse <marc.glisse@inria.fr>
910
911 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
912 a concatenation.
913
d9886a9e
L
9142012-08-17 H.J. Lu <hongjiu.lu@intel.com>
915
916 * stor-layout.c (compute_record_mode): Replace
917 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
918 (layout_type): Likewise.
919
920 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
921
922 * target.def (member_type_forces_blk): New target hook.
923
924 * targhooks.c (default_member_type_forces_blk): New.
925 * targhooks.h (default_member_type_forces_blk): Likewise.
926
927 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
928 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
929 * doc/tm.texi: Regenerated.
930
931 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
932
b9113907 933 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
d9886a9e
L
934 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
935
b9113907 936 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
d9886a9e
L
937 (rs6000_member_type_forces_blk): New function.
938
939 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
940
b9113907 941 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
d9886a9e
L
942 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
943
944 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
945
4a8f7546
DN
9462012-08-17 Diego Novillo <dnovillo@google.com>
947
948 PR bootstrap/54281
949 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
950 * config.in: Regenerate.
951 * configure: Regenerate.
59e08d4f 952 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4a8f7546 953
7f3f8d3f
RG
9542012-08-17 Richard Guenther <rguenther@suse.de>
955
956 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
957 (struct bitmap_head_def): GTY skip current field.
958
3f9b14ff
SB
9592012-08-17 Steven Bosscher <steven@gcc.gnu.org>
960
961 PR middle-end/54146
962 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
963 (memref_free): Don't free the bitmaps individually here.
964 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
965 (analyze_memory_references): Likewise.
966 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
967 (tree_ssa_lim_finalize): Release it.
968 * dse.c (dse_bitmap_obstack): New bitmap obstack.
969 (dse_obstack): New obstack.
970 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
971 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
972 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
973 (record_store): Allocate regs_set on reg_obstack.
974 (dse_step1): Allocate regs_live on reg_obstack.
975 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
976 obstack.
977 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
978 (dse_step3): Likewise.
979 (dse_confluence_0): Likewise.
980 (dse_confluence_n): Likewise.
981 (dse_transfer_function): Likewise.
982 (dse_step7): Destroy the new obstacks, and everything allocated on
983 them, in one big sweep.
984 (rest_of_handle_dse): Update.
985 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
986 (add_stack_var_conflict): Allocate bitmaps on it.
987 (add_scope_conflicts_1): Likewise.
988 (add_scope_conflicts): Likewise.
989 (update_alias_info_with_stack_vars): Likewise.
990 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
991 Initialize the new bitmap obstack.
992 (fini_vars_expansion): Release it.
993 (estimated_stack_frame_size): Use init_vars_expansion to set things up
994 and always clean up at the end.
995 (expand_used_vars): Do the TREE_USED trickery here. Always call
996 fini_vars_expansion.
997 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
998 arrays of bitmap_head to avoid one indirection per bitmap access.
999 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
1000 make_live_on_entry): Update.
1001 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
1002 (liveness_bitmap_obstack): New bitmap obstack.
1003 (remove_unused_locals): Use it to allocate all bitmaps on. Update
1004 for livein/liveout changes in tree-ssa-live.h.
1005 (delete_tree_live_info): Release the bitmap obstack.
1006 (loe_visit_block, live_worklist, set_var_live_on_entry,
1007 calculate_live_on_exit, dump_live_info): Update.
1008 (calculate_live_ranges): Initialize the bitmap.
1009 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
1010 (new_temp_expr_table): Allocate bitmap on it.
1011 (make_dependent_on_partition, add_to_partition_kill_list,
1012 add_dependence, process_replaceable): Likewise.
1013 (find_replaceable_exprs): Initialize and release the new obstack here.
1014 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
1015 for out_of_date_transfer_functions on df_bitmap_obstack.
1016 (df_live_add_problem): Likewise.
1017 (df_chain_add_problem): Likewise.
1018 (df_word_lr_add_problem): Likewise.
1019
a69b2a7d
NC
10202012-08-17 Nick Clifton <nickc@redhat.com>
1021
b9113907 1022 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
baecdd1e
NC
1023 (branch_true): Likewise.
1024 (branch_false): Likewise.
1025
b9113907 1026 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
4e3b4c3e 1027
335db8e6
NC
1028 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
1029 comparison and label.
1030 (branch_zero): Likewise.
1031 (branch_zero_inverted): Likewise.
1032 (branch_equality): Likewise.
1033 (branch_equality_inverted): Likewise.
b9113907 1034 (extend-and-compare): Disable until reload issues can be resolved.
335db8e6
NC
1035 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
1036 for comparison.
1037 (iq2000_function_arg_advance): Remove CONST_CAST2.
1038
a69b2a7d
NC
1039 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
1040 mep-pragma.c.
1041
caed3b90
GJL
10422012-08-17 Georg-Johann Lay <avr@gjlay.de>
1043
1044 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
1045 gen-avr-mmcu-texi.c.
1046
b915718f
RE
10472012-08-17 Richard Earnshaw <rearnsha@arm.com>
1048
1049 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
1050 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
1051 already 16 bits.
1052
5deac340
RG
10532012-08-17 Richard Guenther <rguenther@suse.de>
1054
1055 * hash-table.h (class hash_table): Use a descriptor template
b9113907 1056 argument instead of decomposed element type and support functions.
5deac340
RG
1057 (struct pointer_hash): New generic typed pointer-hash.
1058 (struct typed_free_remove, struct typed_noop_remove): Generic
1059 hash_table support pieces.
b9113907 1060 * coverage.c (struct counts_entry): Add hash_table support members.
5deac340
RG
1061 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
1062 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
1063 SSA name by SSA_NAME_VAR hash.
1064 (coalesce_ssa_name): Use it.
1065 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
1066 (expression_to_id): Adjust.
1067 (struct expr_pred_trans_d): Add hash_table support.
1068 (phi_translate_table): Adjust.
1069 (phi_trans_lookup): Likewise.
1070 (phi_trans_add): Likewise.
1071 (do_regular_insertion): Likewise.
b9113907 1072 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
5deac340
RG
1073 (same_succ_htab): Adjust.
1074 (find_same_succ_bb): Likewise.
1075 (find_same_succ): Likewise.
1076 (update_worklist): Likewise.
1077 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
1078 support.
1079 (redirection_data): Adjust.
1080
c58c0d4c
RG
10812012-08-17 Richard Guenther <rguenther@suse.de>
1082
1083 * params.def (integer-share-limit): Decrease from 256 to 251,
1084 add rationale.
1085
c7e62a26
RG
10862012-08-17 Richard Guenther <rguenther@suse.de>
1087
1088 * tree-sra.c (modify_function): Free redirect_callers vector.
1089 * ipa-split.c (split_function): Free args_to_pass vector.
1090 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
1091 body_cost_vec properly.
1092 (vect_enhance_data_refs_alignment): Likewise.
1093 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
1094 vec_oprnds.
1095 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
1096 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
1097 (vect_analyze_slp_instance): Free everything.
1098 (destroy_bb_vec_info): Free the SLP instances.
1099
62205beb
IS
11002012-08-17 Iain Sandoe <iain@codesourcery.com>
1101
1102 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
1103 to vec.h.
1104
1a4049e7
JJ
11052012-08-17 Jakub Jelinek <jakub@redhat.com>
1106
1107 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
1108
85b5ba1a
SL
11092012-08-16 Sandra Loosemore <sandra@codesourcery.com>
1110
1111 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
1112 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
1113 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
1114 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
1115 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
1116
0c66c562
OE
11172012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
1118
1119 PR target/54236
1120 * config/sh/sh.md (addc): Add commutative modifier.
1121 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
1122
9839afaf
OE
11232012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
1124
1125 PR target/39423
1126 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
1127 potential T_REG clobber. Convert zero extending split to
1128 insn_and_split.
1129
043d627e
OE
11302012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
1131
1132 PR target/54089
1133 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
1134 in a T_REG clobber. Correct comment.
1135 (ashlsi3_n): Correct comment.
1136
11372012-08-16 Hans-Peter Nilsson <hp@axis.com>
df1a3a7c
HPN
1138
1139 PR middle-end/54261
1140 * optabs.c (expand_atomic_fetch_op): Save and restore code when
1141 retrying after failed attempt.
1142
af7c3fe7
YR
11432012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
1144
1145 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
1146 additional argument.
1147 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
1148 additional argument curr_insn.
1149 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
1150 register first, depending on their defintion distances.
1151 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
1152 AGU stall.
1153 (find_nearest_reg-def): New function. Find register with
1154 nearest definition.
1155
fd199491
WL
11562012-08-16 Walter Lee <walt@tilera.com>
1157
1158 * config.gcc (tilegx-*-linux*): Add feedback.h.
1159 (tilepro-*-linux*): Likewise.
1160 * config/tilegx/feedback.h: New file.
1161 * config/tilepro/feedback.h: New file.
1162
caed3b90 11632012-08-16 Diego Novillo <dnovillo@google.com>
6c76b723
DN
1164
1165 Revert
1166
1167 PR bootstrap/54281
1168 * double-int.h: Move including of gmp.h ...
1169 * system.h: ... here.
1170 * realmpfr.h: Do not include gmp.h.
1171 * tree-ssa-loop-niter.c: Do not include gmp.h.
1172
e426fa99
SB
11732012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
1174
1175 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
1176
f5843d08
RG
11772012-08-16 Richard Guenther <rguenther@suse.de>
1178
1179 PR middle-end/54146
1180 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
1181 exit vector.
1182 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
1183 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
1184 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
b9113907 1185 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
f5843d08
RG
1186 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
1187 (tree_ssa_lim_finalize): Free all mem_refs.
1188 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
1189 scc when bailing out.
1190 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
1191 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
1192 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
1193 FOR_EACH_LOOP_BREAK.
1194
0c8036f7
DN
11952012-08-16 Diego Novillo <dnovillo@google.com>
1196
1197 PR bootstrap/54281
1198 * double-int.h: Move including of gmp.h ...
1199 * system.h: ... here.
1200 * realmpfr.h: Do not include gmp.h.
1201 * tree-ssa-loop-niter.c: Do not include gmp.h.
1202
01273677
SB
12032012-08-16 Steven Bosscher <steven@gcc.gnu.org>
1204
1205 PR middle-end/54146
1206 * tree-flow.h (compute_global_livein): Remove prototype.
1207 * tree-into-ssa.c (compute_global_livein): Remove function.
1208 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
1209 (find_sibling_superloop): New function.
1210 (compute_live_loop_exits): New function.
1211 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
1212 inserting a PHI in a block that is not a loop exit for VAR.
1213 Add dumping if TDF_DETAILS.
1214 (add_exit_phis_var): Rewrite.
1215 (add_exit_phis): Update.
1216 (get_loops_exits): Rewrite to return an array of per-loop exits
1217 rather than one bitmap with all loop exits.
1218 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
1219 (rewrite_into_loop_closed_ssa): Update.
1220
1f85d2fb
NC
12212012-08-16 Nick Clifton <nickc@redhat.com>
1222
ca9b1cd8
NC
1223 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
1224 before passing it to ASM_OUTPUT_LIMITED_STRING.
1225
c0e2141a
NC
1226 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
1227
1f85d2fb
NC
1228 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
1229 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
1230 for reload_type enums.
af7c3fe7 1231 (DEF_BUILTIN): Cast the icode to enum insn_code.
1f85d2fb 1232
800d16e9
SB
12332012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
1234
1235 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
1236 instead of -mppc.
1237 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
1238
6b39bc38
SB
12392012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
1240
1241 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
1242 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
b9113907
UB
1243 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
1244 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
1245 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
1246 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
6b39bc38
SB
1247 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
1248 * config/rs6000/darwin.md (whole file): Adjust to single
1249 assembler syntax.
b9113907 1250 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
6b39bc38
SB
1251 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
1252 * config/rs6000/dfp.md: (whole file): Adjust to single
1253 assembler syntax.
b9113907 1254 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
6b39bc38
SB
1255 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
1256 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
1257 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
1258 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
b9113907 1259 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
6b39bc38
SB
1260 * config/rs6000/rs6000-tables.opt: Regenerate.
1261 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
1262 (num_insns_constant_wide): Adjust comments.
1263 (whole file): Adjust to single assembler syntax.
1264 (output_cbranch): Adjust comment.
1265 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
1266 * config/rs6000/rs6000.md: (whole file): Adjust to single
1267 assembler syntax.
1268 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
1269 (mold-mnemonics): Delete.
1270 * config/rs6000/spe.md: (whole file): Adjust to single
1271 assembler syntax.
1272 * config/rs6000/sync.md: (whole file): Adjust to single
1273 assembler syntax.
b9113907 1274 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
6b39bc38
SB
1275 (ASM_OUTPUT_REG_PUSH): Adjust.
1276 (ASM_OUTPUT_REG_POP): Adjust.
b9113907 1277 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
6b39bc38
SB
1278 * config/rs6000/vsx.md: (whole file): Adjust to single
1279 assembler syntax.
b9113907 1280 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
6b39bc38
SB
1281 * doc/invoke.texi: Adjust documentation to reflect the
1282 removal of -mnew-mnemonics and -mold-mnemonics.
1283
a441dedb
SB
12842012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
1285
1286 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
1287 Delete handling for -mno-powerpc and -mpowerpc.
1288 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
1289 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
1290 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
1291 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
1292 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
1293 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
1294 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
1295 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
1296 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
1297 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
1298 for -mcpu=common and -mpowerpc.
1299 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
1300 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
1301 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
1302 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
1303 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
1304 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
1305 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
b9113907 1306 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
a441dedb
SB
1307 (rs6000_cpu_cpp_builtins): Adjust.
1308 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
1309 (rs6000_builtin_mask_calculate): Adjust.
1310 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
1311 (rs6000_init_libfuncs): Ditto.
1312 (rs6000_output_function_prologue): Ditto.
1313 (rs6000_opt_masks): Delete MASK_POWERPC.
1314 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
b9113907 1315 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
a441dedb
SB
1316 (RS6000_BTM_POWERPC): Delete.
1317 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
1318 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
1319 TARGET_POWERPC always on.
1320 (extendqihi2 patterns): Similar.
1321 (various unnamed subtract patterns): Similar.
1322 (bswaphi2 patterns): Similar.
1323 (divmodsi4): Similar.
1324 (udiv<GPR:mode>3): Similar.
1325 (div<GPR:mode>3 patterns): Similar.
1326 (udivmodsi4): Similar.
1327 (mulhcall): Delete.
1328 (mullcall): Delete.
1329 (divss_call): Delete.
1330 (divus_call): Delete.
1331 (quoss_call): Delete.
1332 (quous_call): Delete.
1333 (insvsi patterns): Adjust.
1334 (addsf3 patterns): Adjust.
1335 (subsf3 patterns): Adjust.
1336 (mulsf3 patterns): Adjust.
1337 (divsf3 patterns): Adjust.
1338 (*fmasf4_fpr): Adjust.
1339 (*fmssf4_fpr): Adjust.
1340 (*nfmasf4_fpr): Adjust.
1341 (*nfmssf4_fpr): Adjust.
1342 (*floatunssidf2_internal): Adjust.
1343 (fix_trunc<SFDF:mode>si2_internal): Adjust.
1344 (fctiwz_<SFDF:mode>): Adjust.
1345 (mulsidi3 patterns): Adjust.
1346 (smulsi3_highpart patterns): Adjust.
1347 (umulsi3_highpart patterns): Adjust.
1348 (fix_trunctfsi2 patterns): Adjust.
1349 (prefetch): Adjust.
1350 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
1351 (mno-powerpc): Delete.
1352 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
1353 (store_conditional<ATOMIC:mode>): Adjust.
1354 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
1355 (atomic_exchange<ATOMIC:mode>): Adjust.
1356 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
1357 (atomic_nand<ATOMIC:mode>): Adjust.
1358 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
1359 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
1360 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
1361 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
1362 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
1363 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
1364 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
1365 * doc/invoke.texi: Adjust documentation.
1366
13672012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
4b705221
SB
1368
1369 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
1370
687e9f1f
SB
13712012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
1372
1373 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
1374 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
1375 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
1376 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
1377
1e9aaffb
SB
13782012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
1379
1380 PR target/54142
1381 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
1382 instead of -mcom.
1383 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
1384
ef2e5300
SL
13852012-08-15 Sandra Loosemore <sandra@codesourcery.com>
1386 Maxim Kuvyrkov <maxim@codesourcery.com>
1387 Julian Brown <julian@codesourcery.com>
1388 MIPS Technologies, Inc.
1389
ef2e5300
SL
1390 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
1391 (dspalusat): Add insn types.
1392 * config/mips/mips-dsp.md (add<DSPV:mode>3)
1393 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
1394 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
1395 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
1396 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
1397 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
1398 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
1399 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
1400 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
1401 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
1402 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
1403 (mips_repl_qb, mips_repl_ph)
1404 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
1405 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
1406 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
1407 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
1408 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
1409 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
1410 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
1411 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
1412 dspmac.
1413 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
1414 dspmacsat.
1415 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
1416 Set type to accext.
1417 (mips_shilo, mips_mthlip): Set type to accmod.
1418 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
1419 (mips_adduh_r_qb): Set type to dspalusat.
1420 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
1421 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
1422 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
1423 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
1424 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
1425 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
1426 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
1427 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
1428 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
1429 dspmac. Set accum_in attribute.
b9113907 1430 (mips_subu_s_ph): Set type to dspalusat.
ef2e5300
SL
1431 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
1432 Set accum_in attribute.
1433 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
1434 * config/mips/mips.c (dspalu_bypass_table): New.
1435 (mips_dspalu_bypass_p): New.
1436 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
1437 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
1438 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
1439 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
1440 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
1441 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
1442 reservations.
1443 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
1444 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
1445
66b038ce
UW
14462012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1447
1448 * config/spu/spu.c: Include "cfgloop.h".
1449 (spu_machine_dependent_reorg): Call loop_optimizer_init and
1450 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
1451 Directly compare loop_father values where appropriate.
1452 * config/spu/t-spu-elf (spu.o): Update dependencies.
1453
5dfe1ad4
L
14542012-08-15 H.J. Lu <hongjiu.lu@intel.com>
1455
1456 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
1457
6b5eea61
BS
14582012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1459
1460 PR tree-optimization/54245
1461 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
1462 (legal_cast_p): Split out logic to legal_cast_p_1.
1463 (analyze_increments): Avoid introducing multiplies in smaller types.
1464
0a5f2683
BS
14652012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1466
1467 PR tree-optimization/54240
1468 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
1469 existence of conditional move with given mode.
1470
6d67b4c7
RG
14712012-08-15 Richard Guenther <rguenther@suse.de>
1472
1473 * double-int.h (double_int::from_unsigned): Rename to ...
1474 (double_int::from_uhwi): ... this.
1475 (double_int::from_signed): Rename to ...
1476 (double_int::from_shwi): ... this.
1477 (double_int::to_signed): Rename to ...
1478 (double_int::to_shwi): ... this.
1479 (double_int::to_unsigned): Rename to ...
1480 (double_int::to_uhwi): ... this.
1481 (double_int::fits_unsigned): Rename to ...
1482 (double_int::fits_uhwi): ... this.
1483 (double_int::fits_signed): Rename to ...
1484 (double_int::fits_shwi): ... this.
1485 (double_int::fits): Rename to ...
1486 (double_int::fits_hwi): ... this.
1487 * double-int.c: Likewise.
1488
63ef63bf
SB
14892012-08-15 Steven Bosscher <steven@gcc.gnu.org>
1490
1491 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
1492 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
1493 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
1494 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
1495 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
1496 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
1497 * timevar.c (timevar_print): Make printing width of timevar names
1498 more flexible, but enforce maximum length.
1499 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
1500 (pass_ipa_inline): Use TV_IPA_INLINING.
1501 * ipa-inline-analysis.c (pass_inline_parameters): Use
1502 TV_INLINE_HEURISTICS.
1503 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
1504 (pass_tree_loop_done): Likewise.
1505 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
1506 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
1507 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
1508
5b28d821
RR
15092012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1510
b9113907 1511 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
5b28d821
RR
1512 (neon_vabal<mode> VDQIW): Likewise.
1513
c3b1709a
RR
15142012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1515
1516 PR target/54212
1517 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
1518 mark as predicable. Adjust asm template.
1519 (vec_setv2di_internal): Likewise.
1520 (vec_extract<mode> VD, VQ): Likewise.
1521 (vec_extractv2di): Likewise.
1522 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
1523 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
1524 (neon_vdup_n<mode> VX, V32): Likewise.
1525 (neon_vdup_nv2di): Likewise.
1526
a9d2a88c
MK
15272012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
1528
1529 * config/mips/mips.md (define_attr accum_in): New instruction
1530 attribute. Set it for imadd and fmadd patterns.
1531 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
1532 accumulator register.
1533
b9113907 15342012-08-14 Diego Novillo <dnovillo@google.com>
0823efed
DN
1535
1536 Merge from cxx-conversion branch. Configury.
1537
1538 * configure.ac (CXX_FOR_BUILD): Define and substitute.
1539 (BUILD_CXXFLAGS): Define.
1540 Remove all handlers of ENABLE_BUILD_WITH_CXX.
1541 Force all build to be with C++.
1542 * Makefile.in (BUILD_CXXFLAGS): Use it.
1543 Remove all handlers of ENABLE_BUILD_WITH_CXX.
1544 * configure: Regenerate.
1545 * config.in: Regenerate.
1546 * doc/install.texi: Remove documentation for --enable-build-with-cxx
1547 and --enable-build-poststage1-with-cxx.
1548
b9113907 15492012-08-14 Diego Novillo <dnovillo@google.com>
0823efed
DN
1550
1551 Merge from cxx-conversion branch. Re-implement VEC in C++.
1552
1553 * vec.c (vec_heap_free): Convert into a template function.
1554 (vec_gc_o_reserve_1): Make extern.
1555 (vec_gc_p_reserve): Remove.
1556 (vec_gc_p_reserve_exact): Remove.
1557 (vec_gc_o_reserve): Remove.
1558 (vec_gc_o_reserve_exact): Remove.
1559 (vec_heap_o_reserve_1): Make extern.
1560 (vec_heap_p_reserve): Remove.
1561 (vec_heap_p_reserve_exact): Remove.
1562 (vec_heap_o_reserve): Remove.
1563 (vec_heap_o_reserve_exact): Remove.
1564 (vec_stack_p_reserve): Remove.
1565 (vec_stack_p_reserve_exact): Remove.
b9113907
UB
1566 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
1567 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
0823efed
DN
1568 (VEC): Define to vec_t<T>.
1569 (vec_allocation_t): Define.
1570 (struct vec_prefix): Move earlier in the file.
1571 (vec_t<T>): New template.
1572 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
1573 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
1574 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
1575 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
1576 (DEF_VEC_A): Provide template instantiations for
1577 GC/PCH markers that do not traverse the vector.
1578 (vec_stack_p_reserve): Remove.
1579 (vec_stack_p_reserve_exact): Remove.
1580 (vec_stack_p_reserve_exact_1): Remove.
1581 (vec_stack_o_reserve): Remove.
1582 (vec_stack_o_reserve_exact): Remove.
1583 (vec_stack_free): Re-write as a template function.
1584 (vec_reserve): New template function.
1585 (vec_reserve_exact): New template function.
1586 (vec_heap_free): New template function if GATHER_STATISTICS is
1587 defined. Otherwise, macro that expands to free().
1588 (VEC_length_1): New template function.
1589 (VEC_length): Call it.
1590 (VEC_empty_1): New template function.
1591 (VEC_empty): Call it.
1592 (VEC_address_1): New template function.
1593 (VEC_address): Call it.
1594 (VEC_last_1): New template function.
1595 (VEC_last): Call it. Change return type to T&.
1596 Change all users that used VEC_Os.
1597 (VEC_index_1): New template function.
1598 (VEC_index): Call it. Return a T& instead of a T*.
1599 Update all callers that were using VEC_O before.
1600 (VEC_iterate_1): New template function.
1601 (VEC_iterate): Call it.
1602 (VEC_embedded_size_1): New template function.
1603 (VEC_embedded_size): Call it.
1604 (VEC_embedded_init_1): New template function.
1605 (VEC_embedded_init): Call it.
1606 (VEC_alloc_1): New template function.
1607 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
1608 do the allocation.
1609 (VEC_free_1): New template function.
1610 (VEC_free): Call it.
1611 (VEC_copy_1): New template function.
1612 (VEC_copy): Call it.
1613 (VEC_space_1): New template function
1614 (VEC_space): Call it.
1615 (VEC_reserve_1): New template function.
1616 (VEC_reserve): Call it.
1617 (VEC_reserve_exact_1): New template function.
1618 (VEC_reserve_exact): Call it.
1619 (VEC_splice_1): New template function.
1620 (VEC_splice): Call it.
1621 (VEC_safe_splice_1): New template function.
1622 (VEC_safe_splice): Call it.
1623 (VEC_quick_push_1): New template function. Create two overloads, one
1624 accepting T, the other accepting T *. Update all callers
1625 where T and T * are ambiguous.
1626 (VEC_quick_push): Call it.
1627 (VEC_safe_push_1): New template function. Create two overloads, one
1628 accepting T, the other accepting T *. Update all callers
1629 where T and T * are ambiguous.
1630 (VEC_safe_push): Call it.
1631 (VEC_pop_1): New template function.
1632 (VEC_pop): Call it.
1633 (VEC_truncate_1): New template function.
1634 (VEC_truncate): Call it.
1635 (VEC_safe_grow_1): New template function.
1636 (VEC_safe_grow): Call it.
1637 (VEC_safe_grow_cleared_1): New template function.
1638 (VEC_safe_grow_cleared): Call it.
1639 (VEC_replace_1): New template function.
1640 (VEC_replace): Call it. Always accept T instead of T*.
1641 Update all callers that used VEC_Os.
1642 (VEC_quick_insert_1): New template function.
1643 (VEC_quick_insert): Call it.
1644 (VEC_safe_insert_1): New template function.
1645 (VEC_safe_insert): Call it.
1646 (VEC_ordered_remove_1): New template function.
1647 (VEC_ordered_remove): Call it.
1648 (VEC_unordered_remove_1): New template function.
1649 (VEC_unordered_remove): Call it.
1650 (VEC_block_remove_1): New template function.
1651 (VEC_block_remove): Call it.
1652 (VEC_lower_bound_1): New template function.
1653 (VEC_lower_bound): Call it.
1654 (VEC_OP): Remove.
1655 (DEF_VEC_FUNC_P): Remove.
1656 (DEF_VEC_ALLOC_FUNC_P): Remove.
1657 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
1658 (DEF_VEC_FUNC_O): Remove.
1659 (DEF_VEC_ALLOC_FUNC_O): Remove.
1660 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
1661 (DEF_VEC_ALLOC_FUNC_I): Remove.
1662 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
1663 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
1664 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
1665 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
1666 (vec_reserve_exact): New template function.
1667
1668 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
1669 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
1670 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
1671 (def_vec_alloc): Remove. Update all callers.
1672 * gengtype.c (filter_type_name): New.
1673 (output_mangled_typename): Call it.
1674 (write_func_for_structure): Likewise.
1675 (write_types): Likewise.
1676 (write_root): Likewise.
1677 (write_typed_alloc_def): Likewise.
1678 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
1679 (note_def_vec_alloc): Remove.
1680 * gengtype.h (note_def_vec_alloc): Remove.
1681 (DEFVEC_ALLOC): Remove token code.
1682
1683 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
1684 inside the insn traversal loop.
1685 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
1686 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
1687 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
1688 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
1689
1690 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
1691 VEC_* for vectors of non-pointers.
1692 * config/c6x/c6x.c (try_rename_operands): Likewise.
1693 (reshuffle_units): Likewise.
1694 * config/mips/mips.c (mips_multi_start): Likewise.
1695 (mips_multi_add): Likewise.
1696 (mips_multi_copy_insn): Likewise.
1697 (mips_multi_set_operand): Likewise.
1698 * hw-doloop.c (discover_loop): Likewise.
1699 (discover_loops): Likewise.
1700 (reorg_loops): Likewise.
1701
b9113907 17022012-08-14 Diego Novillo <dnovillo@google.com>
0823efed
DN
1703
1704 Merge from cxx-conversion branch. C++ support in gengtype.
1705
1706 * coretypes.h (gt_pointer_operator): Move from ...
1707 * ggc.h: ... here.
1708 * doc/gty.texi: Document support for C++ templates and
1709 user-provided markers.
1710 * gcc/gengtype-lex.l: Update copyright year.
b9113907 1711 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
0823efed
DN
1712 * gengtype-parse.c: Update copyright year.
1713 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
1714 (require_template_declaration): New.
1715 (typedef_name): Call it.
1716 (type): Replace IS_UNION with KIND. Replace all users.
1717 (def_vec): Remove. Update all users.
1718 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
1719 (write_state_user_struct_type): New.
1720 (write_state_type): Call it.
1721 (read_state_user_struct_type): New.
1722 (read_state_type): Call it.
1723 * gengtype.c: Update copyright year.
1724 (dump_pair): Move declaration to the top.
1725 (dump_type): Likewise.
1726 (dump_type_list): Likewise.
1727 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
1728 (create_user_defined_type): New.
1729 (resolve_typedef): Call it.
1730 (new_structure): Replace argument ISUNION with KIND.
1731 Change users to refer to KIND directly.
1732 Update all callers.
1733 (find_structure): Likewise.
1734 (set_gc_used_type): Handle TYPE_USER_STRUCT.
1735 (create_file): Update HDR to include new copyright year.
1736 (struct walk_type_data): Add field IN_PTR_FIELD.
1737 (output_mangled_typename): Handle TYPE_USER_STRUCT.
1738 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
1739 Clear it afterwards.
1740 Handle TYPE_USER_STRUCT.
1741 (write_types_process_field): Handle TYPE_USER_STRUCT.
1742 (get_type_specifier): Move earlier in the file.
1743 (write_type_decl): New.
1744 (write_marker_function_name): New.
1745 (write_user_func_for_structure_ptr): New.
1746 (write_user_func_for_structure_body): New.
1747 (write_user_marking_functions): New.
1748 (write_func_for_structure): Call write_marker_function_name
1749 and write_type_decl.
1750 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
1751 function directly.
1752 Call write_user_marking_functions on TYPE_USER_STRUCTs.
1753 (write_types_local_user_process_field): New.
1754 (write_pch_user_walking_for_structure_body): New.
1755 (write_pch_user_walking_functions): New.
1756 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
1757 (write_local_func_for_structure): Do not call walk_type for
1758 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
1759 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
1760 (write_root): Handle TYPE_USER_STRUCT.
1761 (vec_prefix_type): Remove. Update all users.
1762 (note_def_vec): Remove. Update all users.
1763 (dump_typekind): Handle TYPE_USER_STRUCT.
1764 (dump_type): Initialize SEEN_TYPES, if needed.
1765 Handle TYPE_USER_STRUCT.
1766 (dump_everything): Do not initialize SEEN_TYPES.
1767 * gengtype.h: Update copyright year.
1768 (enum typekind): Add TYPE_USER_STRUCT.
1769 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
1770 Convert into function.
1771 Add an overload taking const_type_p.
1772 Update all callers.
1773 (new_structure): Change second field to type enum typekind.
1774 Update all users.
1775 (find_structure): Likewise.
1776 (note_def_vec): Remove.
1777 (DEFVEC_OP): Remove.
1778 (DEFVEC_I): Remove.
1779 * ggc-page.c (gt_ggc_mx): Add entry points for marking
1780 'const char *&', 'unsigned char *&' and 'unsigned char&'.
1781 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
1782 'const char *&' and 'unsigned char *&'.
1783 * stringpool.c (gt_pch_nx): Add entry points for marking
1784 'const char *&', 'unsigned char *&' and 'unsigned char&'.
1785 Add an entry point for the overload taking arguments 'unsigned char
1786 *', 'gt_pointer_operator' and 'void *'.
1787 * vec.h (struct vec_prefix): Remove GTY marker.
1788 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
1789 (gt_ggc_mx (vec_t<T> *)): New template function.
1790 (gt_pch_nx (vec_t<T> *)): New template function.
1791 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
1792 function.
1793 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
1794 function.
1795
1796 * basic-block.h (struct edge_def): Mark GTY((user)).
1797 Remove all GTY markers from fields.
1798 (gt_ggc_mx): Declare.
1799 (gt_pch_nx): Declare.
1800 * tree-cfg.c (gt_ggc_mx): New.
1801 (gt_pch_nx): New.
1802
1803 * gengtype-lex.l (USER_GTY): Add pattern for "user".
1804 * gengtype-parse.c (option): Handle USER_GTY.
1805 (opts_have): New.
1806 (type): Call it.
1807 If the keyword 'user' is used, do not walk the fields
1808 of the structure.
1809 * gengtype.h (USER_GTY): Add.
1810 * doc/gty.texi: Update.
1811
b9113907 18122012-08-14 Lawrence Crowl <crowl@google.com>
0823efed
DN
1813
1814 Merge cxx-conversion branch. Implement C++ hash table.
1815
1816 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
1817 * hash-table.c: Likewise.
1818 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
1819 (static htab_t same_succ_htab): Change type to hash_table;
1820 move specification of helper functions from create call to declaration.
1821 Change users to invoke member functions.
1822 (same_succ_print_traverse): Make extern ssa_.... Change callers.
1823 Remove void* casting.
1824 (same_succ_hash): Likewise.
1825 (same_succ_equal): Likewise.
1826 (same_succ_delete): Likewise.
1827 * tree-ssa-threadupdate.c: Include hash-table.h.
1828 (struct local_info): Rename to ssa_local_info_t to avoid overloading
1829 the type name local_info with the variable name local_info.
1830 (static htab_t redirection_data): Change type to hash_table.
1831 Move specification of helper functions from create call to declaration.
1832 Change users to invoke member functions.
1833 (redirection_data_hash): Make extern ssa_.... Change callers.
1834 Remove void* casting.
1835 (redirection_data_eq): Likewise.
1836 (fix_duplicate_block_edges): Likewise.
1837 (create_duplicates): Likewise.
1838 (fixup_template_block): Likewise.
1839 (redirect_edges): Likewise.
1840 (lookup_redirection_data): Change types associated with the hash table
1841 from void* to their actual type. Remove unnecessary casts.
1842 * tree-ssa-ccp.c: Include hash-table.h.
1843 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
1844 of htab_t with gimple_htab. Change users to invoke member functions.
1845 Move specification of helper functions from create call to declaration.
1846 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
1847 (hash_ssa_name_by_var): Make extern. Remove void* casting.
1848 (eq_ssa_name_by_var): Likewise.
1849 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
1850 to hash_table. Change users to invoke member functions.
1851 Move specification of helper functions from create call to declaration.
1852 * coverage.c: Include hash-table.h instead of hashtab.h.
1853 (static htab_t counts_hash): Change type to hash_table;
1854 move specification of helper functions from create call to declaration.
1855 Change users to invoke member functions.
1856 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
1857 of htab_... Remove void* casting.
1858 (htab_counts_entry_eq): Likewise.
1859 (htab_counts_entry_del): Likewise.
1860 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
1861 (static htab_t expression_to_id): Change type to hash_table.
1862 Move specification of helper functions from create call to declaration.
1863 Change users to invoke member functions.
1864 (static htab_t phi_translate_table): Likewise.
1865 (pre_expr_eq): Make extern ssa_.... Change callers.
1866 Remove void* casting.
1867 (pre_expr_hash): Likewise.
1868 (expr_pred_trans_hash): Likewise.
1869 (expr_pred_trans_eq): Likewise.
1870 (alloc_expression_id): Change types associated with the hash table
1871 from void* to their actual type. Remove unnecessary casts.
1872 (lookup_expression_id): Likewise.
1873 (phi_trans_lookup): Likewise.
1874 (phi_trans_add): Likewise.
1875 * stringpool.c: Rename uses of libcpp typedef hash_table to
1876 cpp_hash_table.
1877 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
1878 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
1879
b9113907 18802012-08-14 Lawrence Crowl <crowl@google.com>
0823efed
DN
1881
1882 Merge from cxx-conversion branch. Re-write double_int in C++.
1883
1884 * hash-table.h
1885 (typedef double_int): Change to struct (POD).
1886 (double_int::make): New overloads for int to double-int conversion.
1887 (double_int::mask): New.
1888 (double_int::max_value): New.
1889 (double_int::min_value): New.
1890 (double_int::operator ++): New.
1891 (double_int::operator --): New.
1892 (double_int::operator *=): New.
1893 (double_int::operator +=): New.
1894 (double_int::operator -=): New.
1895 (double_int::to_signed): New.
1896 (double_int::to_unsigned): New.
1897 (double_int::fits_unsigned): New.
1898 (double_int::fits_signed): New.
1899 (double_int::fits): New.
1900 (double_int::trailing_zeros): New.
1901 (double_int::popcount): New.
1902 (double_int::multiple_of): New.
1903 (double_int::set_bit): New.
1904 (double_int::mul_with_sign): New.
1905 (double_int::operator * (binary)): New.
1906 (double_int::operator + (binary)): New.
1907 (double_int::operator - (binary)): New.
1908 (double_int::operator - (unary)): New.
1909 (double_int::operator ~ (unary)): New.
1910 (double_int::operator & (binary)): New.
1911 (double_int::operator | (binary)): New.
1912 (double_int::operator ^ (binary)): New.
1913 (double_int::and_not): New.
1914 (double_int::lshift): New.
1915 (double_int::rshift): New.
1916 (double_int::alshift): New.
1917 (double_int::arshift): New.
1918 (double_int::llshift): New.
1919 (double_int::lrshift): New.
1920 (double_int::lrotate): New.
1921 (double_int::rrotate): New.
1922 (double_int::div): New.
1923 (double_int::sdiv): New.
1924 (double_int::udiv): New.
1925 (double_int::mod): New.
1926 (double_int::smod): New.
1927 (double_int::umod): New.
1928 (double_int::divmod): New.
1929 (double_int::sdivmod): New.
1930 (double_int::udivmod): New.
1931 (double_int::ext): New.
1932 (double_int::zext): New.
1933 (double_int::sext): New.
1934 (double_int::is_zero): New.
1935 (double_int::is_one): New.
1936 (double_int::is_minus_one): New.
1937 (double_int::is_negative): New.
1938 (double_int::cmp): New.
1939 (double_int::ucmp): New.
1940 (double_int::scmp): New.
1941 (double_int::ult): New.
1942 (double_int::ugt): New.
1943 (double_int::slt): New.
1944 (double_int::sgt): New.
1945 (double_int::max): New.
1946 (double_int::smax): New.
1947 (double_int::umax): New.
1948 (double_int::min): New.
1949 (double_int::smin): New.
1950 (double_int::umin): New.
1951 (double_int::operator ==): New.
1952 (double_int::operator !=): New.
1953 (shwi_to_double_int): Change implementation to use member function.
1954 (double_int_minus_one): Likewise.
1955 (double_int_zero): Likewise.
1956 (double_int_one): Likewise.
1957 (double_int_two): Likewise.
1958 (double_int_ten): Likewise.
1959 (uhwi_to_double_int): Likewise.
1960 (double_int_to_shwi): Likewise.
1961 (double_int_to_uhwi): Likewise.
1962 (double_int_fits_in_uhwi_p): Likewise.
1963 (double_int_fits_in_shwi_p): Likewise.
1964 (double_int_fits_in_hwi_p): Likewise.
1965 (double_int_mul): Likewise.
1966 (double_int_mul_with_sign): Likewise.
1967 (double_int_add): Likewise.
1968 (double_int_sub): Likewise.
1969 (double_int_neg): Likewise.
1970 (double_int_div): Likewise.
1971 (double_int_sdiv): Likewise.
1972 (double_int_udiv): Likewise.
1973 (double_int_mod): Likewise.
1974 (double_int_smod): Likewise.
1975 (double_int_umod): Likewise.
1976 (double_int_divmod): Likewise.
1977 (double_int_sdivmod): Likewise.
1978 (double_int_udivmod): Likewise.
1979 (double_int_multiple_of): Likewise.
1980 (double_int_setbit): Likewise.
1981 (double_int_ctz): Likewise.
1982 (double_int_not): Likewise.
1983 (double_int_ior): Likewise.
1984 (double_int_and): Likewise.
1985 (double_int_and_not): Likewise.
1986 (double_int_xor): Likewise.
1987 (double_int_lshift): Likewise.
1988 (double_int_rshift): Likewise.
1989 (double_int_lrotate): Likewise.
1990 (double_int_rrotate): Likewise.
1991 (double_int_cmp): Likewise.
1992 (double_int_scmp): Likewise.
1993 (double_int_ucmp): Likewise.
1994 (double_int_max): Likewise.
1995 (double_int_smax): Likewise.
1996 (double_int_umax): Likewise.
1997 (double_int_min): Likewise.
1998 (double_int_smin): Likewise.
1999 (double_int_umin): Likewise.
2000 (double_int_ext): Likewise.
2001 (double_int_sext): Likewise.
2002 (double_int_zext): Likewise.
2003 (double_int_mask): Likewise.
2004 (double_int_max_value): Likewise.
2005 (double_int_min_value): Likewise.
2006 (double_int_zero_p): Likewise.
2007 (double_int_one_p): Likewise.
2008 (double_int_minus_one_p): Likewise.
2009 (double_int_equal_p): Likewise.
2010 (double_int_popcount): Likewise.
2011 * hash-table.c
2012 (double_int_mask): Reuse implementation for double_int::mask.
2013 (double_int_max_value): Likewise.
2014 (double_int_min_value): Likewise.
2015 (double_int_ext): Likewise.
2016 (double_int_zext): Likewise.
2017 (double_int_sext): Likewise.
2018 (double_int_mul_with_sign): Likewise.
2019 (double_int_divmod): Likewise.
2020 (double_int_sdivmod): Likewise.
2021 (double_int_udivmod): Likewise.
2022 (double_int_div): Likewise.
2023 (double_int_sdiv): Likewise.
2024 (double_int_udiv): Likewise.
2025 (double_int_mod): Likewise.
2026 (double_int_smod): Likewise.
2027 (double_int_umod): Likewise.
2028 (double_int_multiple_of): Likewise.
2029 (double_int_lshift): Likewise.
2030 (double_int_rshift): Likewise.
2031 (double_int_lrotate): Likewise.
2032 (double_int_rrotate): Likewise.
2033 (double_int_cmp): Likewise.
2034 (double_int_ucmp): Likewise.
2035 (double_int_scmp): Likewise.
2036 (double_int_max): Likewise.
2037 (double_int_smax): Likewise.
2038 (double_int_umax): Likewise.
2039 (double_int_min): Likewise.
2040 (double_int_smin): Likewise.
2041 (double_int_umin): Likewise.
2042 (double_int_min): Likewise.
2043 (double_int_min): Likewise.
2044 (double_int_min): Likewise.
2045 (double_int_min): Likewise.
2046 (double_int_min): Likewise.
2047 (double_int_min): Likewise.
2048 (double_int::alshift): New.
2049 (double_int::arshift): New.
2050 (double_int::llshift): New.
2051 (double_int::lrshift): New.
2052 (double_int::ult): New.
2053 (double_int::ugt): New.
2054 (double_int::slt): New.
2055 (double_int::sgt): New.
2056 (double_int_setbit): Reuse implementation for double_int::set_bit,
2057 which avoids a name conflict with a macro.
2058 (double_int_double_int_ctz): Reuse implementation for
2059 double_int::trailing_zeros.
2060 (double_int_fits_in_shwi_p): Reuse implementation for
2061 double_int::fits_signed.
2062 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
2063 (double_int_mul): Reuse implementation for binary
2064 double_int::operator *.
2065 (double_int_add): Likewise.
2066 (double_int_sub): Likewise.
2067 (double_int_neg): Reuse implementation for unary
2068 double_int::operator -.
2069 (double_int_max_value): Likewise.
2070 * fixed-value.c: Change to use member functions introduced above.
2071
b9113907 20722012-08-14 Lawrence Crowl <crowl@google.com>
0823efed 2073
b9113907 2074 Merge cxx-conversion branch. Support tree macro calling from gdb.
0823efed
DN
2075
2076 * tree.h (tree_check): New.
2077 (TREE_CHECK): Use inline function above instead of __extension__.
2078 (tree_not_check): New.
2079 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
2080 (tree_check2): New.
2081 (TREE_CHECK2): Use inline function above instead of __extension__.
2082 (tree_not_check2): New.
2083 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
2084 (tree_check3): New.
2085 (TREE_CHECK3): Use inline function above instead of __extension__.
2086 (tree_not_check3): New.
2087 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
2088 (tree_check4): New.
2089 (TREE_CHECK4): Use inline function above instead of __extension__.
2090 (tree_not_check4): New.
2091 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
2092 (tree_check5): New.
2093 (TREE_CHECK5): Use inline function above instead of __extension__.
2094 (tree_not_check5): New.
2095 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
2096 (contains_struct_check): New.
2097 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
2098 __extension__.
2099 (tree_class_check): New.
2100 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
2101 (tree_range_check): New.
2102 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
2103 (omp_clause_subcode_check): New.
2104 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
2105 __extension__.
2106 (omp_clause_range_check): New.
2107 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
2108 __extension__.
2109 (expr_check): New.
2110 (EXPR_CHECK): Use inline function above instead of __extension__.
2111 (non_type_check): New.
2112 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
2113 (tree_vec_elt_check): New.
2114 (TREE_VEC_ELT_CHECK): Use inline function above instead of
2115 __extension__.
2116 (omp_clause_elt_check): New.
2117 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
2118 __extension__.
2119 (tree_operand_check): New.
2120 (TREE_OPERAND_CHECK): Use inline function above instead of
2121 __extension__.
2122 (tree_operand_check_code): New.
2123 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
2124 __extension__.
2125 (TREE_CHAIN): Simplify implementation.
2126 (TREE_TYPE): Simplify implementation.
2127 (tree_operand_length): Move for compilation dependences.
2128 * gdbinit.in: (macro define __FILE__): New.
2129 (macro define __LINE__): New.
2130 (skip "tree.h"): New.
2131
d63c6b2c
UB
21322012-08-14 Uros Bizjak <ubizjak@gmail.com>
2133
2134 * config/i386/i386.md (enabled): Add comment with explanation
2135 why fma4 instructions are disabled for generic code.
2136
669d4d70
OE
21372012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
2138
2139 PR target/52933
2140 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
2141 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
2142 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
2143
24c18ad8
OE
21442012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
2145
2146 PR target/50751
2147 * config/sh/constraints.md (Sra): New constraint.
2148 * config/sh/predicates.md (simple_mem_operand,
2149 displacement_mem_operand, zero_extend_movu_operand): New predicates.
2150 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
2151 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
2152 *zero_extendhisi2_disp_mem): Add new insns and two new related
2153 peephole2 patterns.
2154
2ba31c05
SB
21552012-08-14 Steven Bosscher <steven@gcc.gnu.org>
2156
cc360b36
SB
2157 * graphite-scop-detection.c (create_sese_edges): Compute dominance
2158 info before trying to fix loop structure.
2159 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
2160 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
2161 * cfgloop.c (verify_loop_structure): Verify loop fathers.
2162
2ba31c05
SB
2163 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
2164 (dom_convert_dir_to_idx, compute_dom_fast_query,
2165 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
2166 redirect_immediate_dominators, nearest_common_dominator,
2167 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
2168 iterate_fix_dominators, add_to_dominance_info,
2169 delete_from_dominance_info): Likewise.
2170
ea057359
RG
21712012-08-14 Richard Guenther <rguenther@suse.de>
2172
2173 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
2174 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
2175 * gimple-streamer-out.c (output_bb): Likewise.
2176 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
2177 (rewrite_reductions_out_of_ssa): Likewise.
2178 (rewrite_commutative_reductions_out_of_ss): Likewise.
2179 * ipa-split.c (verify_non_ssa_vars): Likewise.
2180 (consider_split): Likewise.
2181 (visit_bb): Likewise.
2182 (split_function): Likewise.
2183 * lto-streamer-out.c (output_ssa_names): Likewise.
2184 * sese.c (rename_uses): Likewise.
2185 * tree-cfg.c (replace_uses_by): Likewise.
2186 (gimple_merge_blocks): Likewise.
2187 (gimple_cfg2dot): Likewise.
2188 (verify_gimple_phi): Likewise.
2189 (replace_ssa_name): Likewise.
2190 (move_block_to_fn): Likewise.
2191 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2192 * tree-if-conv.c (if_convertible_phi_p): Likewise.
2193 (predicate_scalar_phi): Likewise.
2194 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
2195 (copy_phis_for_bb): Likewise.
2196 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
2197 (destroy_loop): Likewise.
2198 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
2199 (insert_backedge_copies): Likewise.
2200 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
2201 (gather_scalar_reductions): Likewise.
2202 (try_create_reduction_list): Likewise.
2203 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
2204 Likewise.
2205 (scev_const_prop): Likewise.
2206 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
2207 (get_default_value): Likewise.
2208 (ccp_initialize): Likewise.
2209 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2210 * tree-ssa-copy.c (may_propagate_copy): Likewise.
2211 (init_copy_prop): Likewise.
2212 * tree-ssa-dce.c (propagate_necessity): Likewise.
2213 (remove_dead_phis): Likewise.
2214 (forward_edge_to_pdom): Likewise.
2215 (eliminate_unnecessary_stmts): Likewise.
2216 * tree-ssa-live.c (partition_view_init): Likewise.
2217 (remove_unused_locals): Likewise.
2218 (register_ssa_partition_check): Likewise.
2219 * tree-ssa-loop-im.c (movement_possibility): Likewise.
2220 (move_computations_stmt): Likewise.
2221 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
2222 (record_invariant): Likewise.
2223 (find_interesting_uses_outside): Likewise.
2224 (determine_set_costs): Likewise.
2225 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
2226 (find_uses_to_rename_use): Likewise.
2227 (check_loop_closed_ssa_use): Likewise.
2228 (rewrite_phi_with_iv): Likewise.
2229 (canonicalize_loop_ivs): Likewise.
2230 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2231 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2232 * tree-ssa-pre.c (make_values_for_phi): Likewise.
2233 (compute_avail): Likewise.
2234 (eliminate): Likewise.
2235 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2236 * tree-ssa-reassoc.c (phi_rank): Likewise.
2237 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
2238 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2239 (ipa_pta_execute): Likewise.
2240 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
2241 (release_last_vdef): Likewise.
2242 (same_phi_alternatives_1): Likewise.
2243 (bb_has_non_vop_phi): Likewise.
2244 (vop_phi): Likewise.
2245 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
2246 Likewise.
2247 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
2248 (execute_late_warn_uninitialized): Likewise.
2249 * tree-ssa.c (verify_ssa_name): Likewise.
2250 (verify_phi_args): Likewise.
2251 (verify_ssa): Likewise.
2252 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
d63c6b2c
UB
2253 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
2254 Likewise.
ea057359
RG
2255 (slpeel_tree_peel_loop_to_edge): Likewise.
2256 (vect_can_advance_ivs_p): Likewise.
2257 (vect_update_ivs_after_vectorizer): Likewise.
2258 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
2259 * tree-vrp.c (remove_range_assertions): Likewise.
2260 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
2261
1c8f7377
RG
22622012-08-14 Richard Guenther <rguenther@suse.de>
2263
2264 PR tree-optimization/54146
2265 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
2266 indexed by pred edge index for avail.
2267 (do_partial_partial_insertion): Likewise.
2268 (insert_into_preds_of_block): Adjust.
2269
2ad728d2
RG
22702012-08-14 Richard Guenther <rguenther@suse.de>
2271
2272 * gimplify.c (create_tmp_from_val): Mark temporary with
2273 DECL_GIMPLE_REG_P here ...
2274 (internal_get_tmp_var): ... instead of here. If we go into
2275 SSA create an SSA name instead of a VAR_DECL.
2276 (gimplify_modify_expr): Do not create SSA names here, assert
2277 we already got them.
2278 (force_gimple_operand_1): Create an SSA name if we go into SSA.
2279 * sese.c (rename_uses): Simplify.
2280
d8d707b4
RG
22812012-08-14 Richard Guenther <rguenther@suse.de>
2282
2283 * tree-into-ssa.c: Include diagnostic-core.h.
2284 * Makefile.in (tree-into-ssa.o): Adjust.
2285
343c5d46
RG
22862012-08-14 Richard Guenther <rguenther@suse.de>
2287
2288 * tree-into-ssa.c (update_ssa): Verify we do not rename
2289 symbols that are already partly in SSA form.
2290
dbabddf3
JJ
22912012-08-14 Jakub Jelinek <jakub@redhat.com>
2292
2293 PR middle-end/53411
2294 PR rtl-optimization/53495
2295 * ira.c (ira): Move delete_trivially_dead_insns call before
2296 find_moveable_pseudos call.
2297
c302207e
SB
22982012-08-13 Steven Bosscher <steven@gcc.gnu.org>
2299
2300 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
2301 of potentially huge memset overhead.
2302 (do_partial_partial_insertion): Likewise.
2303 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
2304 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
2305 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
2306 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
2307 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2308 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
2309 array used as stack.
2310 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
2311 arrays to be filled by pre_and_rev_post_order_compute.
2312 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
2313 array to be filled by dfs_enumerate_from.
2314 (remove_path): Likewise.
2315 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
2316 array of loops that is filled on the next lines.
2317 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
2318 array of basic blocks to be returned.
2319 (get_loop_body_in_dom_order): Likewise.
2320 (get_loop_body_in_bfs_order): Likewise.
2321 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
2322 for all bitmaps used for rewriting into loop-closed SSA form.
2323 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
2324 bitmap at the end to release a lot of memory.
2325 (add_exit_phis): Allocate the exits bitmap on the new obstack.
2326 (get_loops_exits): Allocate the exits bitmap on the new obstack.
2327 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
2328 seen for the first time.
2329 (find_uses_to_rename): Add "???" for why the whole function must
2330 be re-scanned if changed_bbs is empty.
2331 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
2332 Use XNEWVEC to allocate the use_blocks array. Initialize the new
2333 obstack, and free it at the end. Remove loop over all SSA names.
2334 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
2335 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
2336 xcalloc to allocate edge_pred and edge_flag arrays.
2337
621bc046
UB
23382012-08-13 Uros Bizjak <ubizjak@gmail.com>
2339
2340 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
2341 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
2342 for different ABIs.
2343 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
2344 (REG_CLASS_NAMES): Update.
2345 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
2346 * config/i386/i386.c (ix86_conditional_register_usage): Disable
2347 REX registers on 32bit targets. Handle bitmaps from
2348 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
2349 set from GENERAL_REGS also for 32bit targets. Do not change call
2350 used register set for TARGET_64BIT_MS_ABI separately.
2351
391886c8
RG
23522012-08-13 Richard Guenther <rguenther@suse.de>
2353
2354 * basic-block.h (struct basic_block): Remove loop_depth
2355 member, move flags and index members next to each other.
2356 * cfgloop.h (bb_loop_depth): New inline function.
2357 * cfghooks.c (split_block): Do not set loop_depth.
2358 (duplicate_block): Likewise.
2359 * cfgloop.c (flow_loop_nodes_find): Likewise.
2360 (flow_loops_find): Likewise.
2361 (add_bb_to_loop): Likewise.
2362 (remove_bb_from_loops): Likewise.
2363 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2364 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
2365 * gimple-streamer-out.c (output_bb): Likewise.
2366 * bt-load.c: Include cfgloop.h.
2367 (migrate_btr_defs): Use bb_loop_depth.
2368 * cfg.c (dump_bb_info): Likewise.
2369 * final.c (compute_alignments): Likewise.
2370 * ira.c (update_equiv_regs): Likewise.
2371 * tree-ssa-copy.c (init_copy_prop): Likewise.
2372 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
2373 * tree-ssa-forwprop.c: Include cfgloop.h.
2374 (forward_propagate_addr_expr): Use bb_loop_depth.
2375 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
2376 * tree-ssa-sink.c (select_best_block): Likewise.
2377 * ipa-inline-analysis.c: Include cfgloop.h.
2378 (estimate_function_body_sizes): Use bb_loop_depth.
2379 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
2380 (ipa-inline-analysis.o): Likewise.
2381 (bt-load.o): Likewise.
2382
9006f7f3
GG
23832012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2384 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR driver/54210
2387 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
2388 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
2389 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
2390 0x80000001 %ecx flags.
2391
755a1ca5
RG
23922012-08-13 Richard Guenther <rguenther@suse.de>
2393
2394 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
2395 removal and loops with multiple latches.
2396
eb87c7c4
JJ
23972012-08-13 Jakub Jelinek <jakub@redhat.com>
2398
2399 PR c/53968
2400 * tree.c (integer_pow2p): Avoid undefined signed overflows.
2401 * simplify-rtx.c (neg_const_int): Likewise.
2402 * expr.c (fixup_args_size_notes): Likewise.
2403 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
2404 * double-int.c (mul_double_wide_with_sign): Likewise.
2405 (double_int_mask): Likewise.
2406 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
2407
61f7b9ae
RG
24082012-08-13 Richard Guenther <rguenther@suse.de>
2409
2410 PR tree-optimization/54200
2411 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
2412 PHI results to another partition if not all PHI arguments
2413 have the same partition.
2414
f27c1867
JH
24152012-08-12 Jan Hubicka <jh@suse.cz>
2416
2417 * tree-pass.h (write_summary, write_optimization_summary): Remove
2418 set and vset arguments.
2419 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
2420 (write_node_summary_p): Likewise; use the encoder.
2421 (ipa_reference_write_optimization_summary): Likewise.
2422 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
2423 (lto_symtab_encoder_new): Initialize in_partition field.
2424 (lto_symtab_encoder_delete): Destroy in_partition field.
2425 (LCC_NOT_FOUND): Move to lto-streamer.h
2426 (lto_symtab_encoder_deref): Likewise.
2427 (lto_symtab_encoder_in_partition_p,
2428 lto_set_symtab_encoder_in_partition): New functions.
2429 (referenced_from_other_partition_p): Rewrite to use encoder.
2430 (reachable_from_other_partition_p): Likewise.
2431 (referenced_from_this_partition_p): Likewise.
2432 (reachable_from_this_partition_p): Likewise.
2433 (lto_output_node): Likewise.
2434 (lto_output_varpool_node): Likewise.
2435 (output_refs): Likewise.
2436 (compute_ltrans_boundary): Initialize in_partition fileds of
2437 the encoder.
2438 (output_symtab): Likewise.
2439 (input_refs): Match the changes in output_refs.
2440 (output_cgraph_opt_summary_p): Remove set argument.
2441 (output_node_opt_summary): Replace set by encoder.
2442 (output_cgraph_opt_summary): Remove set argument; use
2443 the encoder.
2444 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
2445 arguments; use the encoder.
2446 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
2447 the encoder.
2448 (produce_symtab): Likewise.
2449 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
2450 * ipa-inline-analysis.c (inline_write_summary): Likewise.
2451 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
2452 use encoder.
2453 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
2454 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
2455 (ipa_write_summaries_1): Update.
2456 (ipa_write_optimization_summaries_1): Likewise.
2457 (ipa_write_optimization_summaries): Likewise.
2458 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
2459 (lto_symtab_encoder_iterator): New type.
2460 (lto_symtab_encoder_deref): Make inline.
2461 (output_symtab, referenced_from_other_partition_p,
2462 reachable_from_other_partition_p, referenced_from_this_partition_p,
2463 reachable_from_this_partition_p): Update.
621bc046
UB
2464 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
2465 lsei_varpool_node): New inline functions.
f27c1867
JH
2466 (LCC_NOT_FOUND): New macro.
2467 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
2468 lsei_start_in_partition, lsei_next_function_in_partition,
2469 lsei_start_function_in_partition, lsei_next_variable_in_partition,
2470 lsei_start_variable_in_partition): New inline functions.
2471
69853ea9
OE
24722012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
2473
2474 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
2475 allow SH3.
2476 (*prefetch_media): Move insn below expander.
2477 (*prefetch): Fix condition to allow SH3.
2478
eb11dba2
OE
24792012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
2480
2481 PR target/51244
2482 * config/sh/sh.md: Add splits for inverted compare and branch
2483 opportunities.
2484 (*cmpeqsi_t): New insn.
2485 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
2486 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
2487 replacement insn list and not in the preparation statements.
2488 (clrt, sett): Add mt_group attribute.
2489
874a3756
MG
24902012-08-12 Marc Glisse <marc.glisse@inria.fr>
2491
2492 PR middle-end/54193
2493 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
2494
05852a5f
OE
24952012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
2496
2497 PR target/39423
2498 * config/sh/predicates.md (mem_index_disp_operand): Check for
2499 arith_reg_operand instead of REG_P.
2500
3f5bd0f5
BS
25012012-08-11 Bernd Schmidt <bernds@codesourcery.com>
2502
2503 * reload1.c (replaced_subreg, gen_reload): Add
2504 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
2505
15d0e7a0
JH
25062012-08-11 Jan Hubicka <jh@suse.cz>
2507
2508 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
2509 symtab_node sectoin name; it confuses plugin.
2510
fcecf84f
UB
25112012-08-11 Uros Bizjak <ubizjak@gmail.com>
2512
2513 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
621bc046 2514 index in the va_list_vars bitmap by num_ssa_names.
fcecf84f 2515
920ac804
UB
25162012-08-11 Uros Bizjak <ubizjak@gmail.com>
2517
2518 * config/i386/sse.md (xop integer multiply/add insns): Use
2519 register_operand for operand 3 predicate.
2520 (xop_phadd<u>bq): Fix vec_select selectors.
2521
8810cc52
MJ
25222012-08-11 Martin Jambor <mjambor@suse.cz>
2523
2524 PR fortran/48636
2525 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
2526 * ipa-inline-analysis.c (agg_position_info): New type.
2527 (add_condition): New parameter aggpos, also store agg_contents, by_ref
2528 and offset.
2529 (dump_condition): Also dump aggregate conditions.
2530 (evaluate_conditions_for_known_args): Also handle aggregate
2531 conditions. New parameter known_aggs.
2532 (evaluate_properties_for_edge): Gather known aggregate contents.
2533 (inline_node_duplication_hook): Pass NULL known_aggs to
2534 evaluate_conditions_for_known_args.
2535 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
2536 (unmodified_parm_or_parm_agg_item): New function.
2537 (set_cond_stmt_execution_predicate): Handle values passed in
2538 aggregates.
2539 (set_switch_stmt_execution_predicate): Likewise.
2540 (will_be_nonconstant_predicate): Likewise.
2541 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
2542 ipa_get_indirect_edge_target.
2543 (estimate_calls_size_and_time): New parameter known_aggs, pass it
2544 recrsively to itself and to estimate_edge_devirt_benefit.
2545 (estimate_node_size_and_time): New vector known_aggs, pass it o
2546 functions which need it.
2547 (remap_predicate): New parameter offset_map, use it to remap aggregate
2548 conditions.
2549 (remap_edge_summaries): New parameter offset_map, pass it recursively
2550 to itself and to remap_predicate.
2551 (inline_merge_summary): Also create and populate vector offset_map.
2552 (do_estimate_edge_time): New vector of known aggregate contents,
2553 passed to functions which need it.
2554 (inline_read_section): Stream new fields of condition.
2555 (inline_write_summary): Likewise.
2556 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
2557 contents. Let all local callers pass NULL for known_aggs.
2558
ab96cc5b
JH
25592012-08-11 Jan Hubicka <jh@suse.cz>
2560
2561 * lto-cgraph.c (output_cgraph): Rename to ...
2562 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
2563 (input_cgraph): Rename to ...
2564 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
2565 * lto-streamer-out.c (create_output_block): Do not set
2566 section_type.
2567 (produce_asm): Likewise.
2568 (lto_output_toplevel_asms): Likewise.
2569 (produce_asm_for_decls): Likewise.
2570 (lto_output): Use output_symtab.
2571 * lto-section-in.c (lto_section_name): Update.
920ac804
UB
2572 * lto-section-out.c (lto_destroy_simple_output_block): Remove
2573 section_type.
ab96cc5b
JH
2574 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
2575 rename LTO_section_cgraph to LTO_section_symtab_nodes.
2576 (struct lto_header): Remove section_type.
2577
7380e6ef
JH
25782012-08-11 Jan Hubicka <jh@suse.cz>
2579
2580 * cgraph.h (vector types for symtab_node): Add.
2581 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
2582 for new symtab encoder.
2583 (ipa_reference_read_optimization_summary): Likewise.
2584 * lto-cgraph.c (output_varpool): Remove.
2585 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
2586 (LTO_cgraph_tags): Rename to ...
2587 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
2588 (lto_cgraph_encoder_new): Rename to ...
2589 (lto_symtab_encoder_new): ... this on.
2590 (lto_cgraph_encoder_encode): Rename to ...
2591 (lto_symtab_encoder_encode): ... this one.
2592 (lto_cgraph_encoder_delete): Rename to ...
2593 (lto_symtab_encoder_delete): ... this one.
2594 (lto_cgraph_encoder_deref): Rename to ...
2595 (lto_symtab_encoder_deref): ... this one.
2596 (lto_cgraph_encoder_encode_body_p): Rename to ...
2597 (lto_symtab_encoder_encode_body_p): ... this one.
2598 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
2599 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
2600 lto_varpool_encoder_deref): Remove.
2601 (lto_varpool_encoder_encode_initializer_p): Rename to ...
2602 (lto_symtab_encoder_encode_initializer_p): ... this one.
2603 (lto_set_varpool_encoder_encode_initializer): Rename to ...
2604 (lto_set_symtab_encoder_encode_initializer): ... this one.
2605 (lto_output_edge): Update.
2606 (lto_output_node): Update.
2607 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
2608 (lto_output_ref): Drop varpool_encoder; update.
2609 (add_node_to): Update.
2610 (add_references): Update.
2611 (output_outgoing_cgraph_edges): Update.
920ac804 2612 (output_refs): Update.
7380e6ef
JH
2613 (compute_ltrans_boundary): Update.
2614 (output_cgraph): Update; output varpools too.
2615 (input_overwrite_node): Update.
2616 (output_varpool): Remove.
2617 (input_node): Update.
2618 (input_ref): Update.
2619 (input_edge): Update.
2620 (input_cgraph_1): Update; input varpool too; unify fixup code.
2621 (input_varpool_1): Remove.
2622 (input_refs): Update.
2623 (input_cgraph): Update.
2624 (output_node_opt_summary): Update.
2625 (input_cgraph_opt_section): Update.
2626 (input_cgraph_opt_summary): Update.
2627 * ipa-pure-const.c (pure_const_write_summary): Update.
2628 (pure_const_read_summary): Update.
2629 * lto-streamer-out.c (lto_write_tree): Update.
2630 (lto_output): Likewise.
2631 (produce_symtab): Update.
2632 (produce_asm_for_decls): Update.
2633 * ipa-inline-analysis.c (inline_read_section): Update.
2634 (inline_write_summary): Update.
2635 * ipa-prop.c (ipa_write_node_info): Update.
2636 (ipa_prop_read_section): Update.
2637 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
2638 (lto_symtab_encoder_d): ... this one; add initializer.
2639 (lto_cgraph_encoder_t): Rename to ...
2640 (lto_symtab_encoder_t): ... this one.
2641 (lto_cgraph_encoder_size): Rename to ...
2642 (lto_symtab_encoder_size): ... this one.
2643 (lto_varpool_encoder_d): ... remove.
2644 (lto_varpool_encoder_t): Remove.
2645 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
2646 add symtab_node_encoder.
2647 (lto_file_decl_data): Likewise.
2648 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
920ac804
UB
2649 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
2650 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
2651 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
2652 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
7380e6ef
JH
2653 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
2654 lto_varpool_encoder_encode_initializer_p): Remove.
2655 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
920ac804
UB
2656 lto_symtab_encoder_t, lto_symtab_encoder_encode,
2657 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
2658 lto_symtab_encoder_encode_initializer_p): New.
7380e6ef 2659
3e5804e1
UB
26602012-08-11 Uros Bizjak <ubizjak@gmail.com>
2661
2662 * config/i386/i386.md (isa): Add fma and fma4.
2663 (enabled): Handle fma and fma4.
2664 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
2665 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
2666 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
2667 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
2668 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
2669 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
2670
b0d5396c
UB
26712012-08-10 Uros Bizjak <ubizjak@gmail.com>
2672
2673 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
2674 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
2675 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
2676
4bf02aaf
UB
26772012-08-10 Uros Bizjak <ubizjak@gmail.com>
2678
2679 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
2680 variants of PLUS and MULT simple LEA patterns. Disable PLUS
2681 patterns for TARGET_OPT_AGU.
2682
04f92ff4
RG
26832012-08-10 Richard Guenther <rguenther@suse.de>
2684
2685 * Makefile.in (OBJS): Remove matrix-reorg.o.
2686 (matrix-reorg.o): Remove dependence rule.
2687 (GTFILES): Remove matrix-reorg.c.
2688 * matrix-reorg.c: Remove.
2689 * passes.c (init_optimization_passes): Do not schedule
2690 pass_ipa_matrix_reorg.
2691 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
2692 * common.opt (fipa-matrix-reorg): Stub out.
2693 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
2694
09e4850d
RG
26952012-08-10 Richard Guenther <rguenther@suse.de>
2696
2697 PR middle-end/54219
2698 * fold-const.c (fold_ternary_loc): Do not reverse the mask
2699 when canonicalizing it when folding VEC_PERM_EXPR.
2700
99cababb
BS
27012012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2702
2703 PR middle-end/54211
2704 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2705 Use cand_type to determine whether pointer arithmetic will be generated.
2706
75bc3841
BS
27072012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2708
2709 * doc/sourcebuild.texi: Document long_neq_int effective target.
2710
ab509eb5
RG
27112012-08-10 Richard Guenther <rguenther@suse.de>
2712
2713 PR tree-optimization/54109
2714 * tree-ssa-forwprop.c
2715 (forward_propagate_addr_into_variable_array_index): Remove.
2716 (forward_propagate_addr_expr_1): Adjust.
2717
e28b8a60
RG
27182012-08-10 Richard Guenther <rguenther@suse.de>
2719
2720 * tree-cfg.c (dump_function_to_file): Make sure to dump
2721 anonymous SSA names when there are no local decls.
2722
580b2c2e
SB
27232012-08-10 Steven Bosscher <steven@gcc.gnu.org>
2724
2725 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
2726 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
2727 (mark_phi_for_rewrite): Likewise.
2728 (compute_global_livein): Use VEC_reserve outside the innermost
2729 loop and VEC_quick_push instead of VEC_safe_push in that loop.
2730 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
2731 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
2732 the correct initial size.
2733
83d5977e
RG
27342012-08-10 Richard Guenther <rguenther@suse.de>
2735
2736 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
2737 (need_creation): Remove.
2738 (get_representative_for): Use anonymous named SSA names.
2739 (create_expression_by_pieces): Likewise.
2740 (insert_into_preds_of_block): Likewise.
2741 (init_pre): Do not init removed vars.
2742 (fini_pre): Do not free need_creation.
2743 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
2744 SSA names.
2745 * tree-ssa-loop-manip.c (create_iv): Likewise.
2746 * value-prof.c (gimple_divmod_fixed_value): Likewise.
2747 (gimple_mod_pow2): Likewise.
2748 (gimple_mod_subtract): Likewise.
2749 (gimple_ic): Likewise.
2750 (gimple_stringop_fixed_value): Likewise.
2751 * tree-ssa-phiopt.c (condstoretemp): Remove.
2752 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
2753 (conditional_replacement): Likewise.
2754 (abs_replacement): Likewise.
2755 (cond_store_replacement): Likewise.
2756 (cond_if_else_store_replacement_1): Likewise.
2757 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2758 (rewrite_bittest): Likewise.
2759 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
2760 and build anonymous SSA names.
2761 (undistribute_ops_list): Adjust.
2762 (eliminate_redundant_comparison): Use anonymous SSA names.
2763 (rewrite_expr_tree_parallel): Likewise.
2764 (get_reassoc_pow_ssa_name): Remove.
2765 (attempt_builtin_powi): Adjust.
2766 (reassociate_bb): Likewise.
2767 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
2768 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2769 (build_arrays): Likewise.
2770 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
2771 (create_tailcall_accumulator): Likewise.
2772 * tree-vect-generic.c (expand_vector_divmod): Likewise.
2773 * tree-profile.c (gcov_type_tmp_var): Remove.
2774 (gimple_init_edge_profiler): Do not initialize it and use anonymous
2775 SSA names.
2776 (gimple_gen_ic_profiler): Likewise.
2777 (tree_profiling): Adjust.
2778 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
2779 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
2780 (powi_as_mults_1): Likewise.
2781 (powi_as_mults): Likewise.
2782 (build_and_insert_call): Adjust.
2783 (build_and_insert_binop): Likewise.
2784 (build_and_insert_ref): Likewise.
2785 (build_and_insert_cast): Likewise.
2786 (gimple_expand_builtin_pow): Likewise.
2787 (gimple_expand_builtin_cabs): Likewise.
2788 (execute_optimize_bswap): Use anonymous SSA names.
2789 (convert_mult_to_widen): Likewise.
2790 (convert_plusminus_to_widen): Likewise.
2791 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2792 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2793 * tree-if-conv.c (ifc_temp_var): Likewise.
2794 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2795 * tree-parloops.c (take_address_of): Likewise.
2796 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
2797 (vect_permute_load_chain): Likewise.
2798 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2799 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
2800 (vect_handle_widen_op_by_const): Likewise.
2801 (vect_operation_fits_smaller_type): Likewise.
2802 (vect_recog_over_widening_pattern): Likewise.
2803 * tree-vect-stmts.c (vect_init_vector): Likewise.
2804 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
2805 (simplify_float_conversion_using_ranges): Likewise.
2806
7b5e682a
MZ
28072012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2808
4bf02aaf
UB
2809 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
2810 target mask of __builtin_ia32_rdseed_di_step builtin.
7b5e682a 2811
a2872983
RG
28122012-08-10 Richard Guenther <rguenther@suse.de>
2813
2814 PR tree-optimization/54027
2815 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
2816 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
2817 to handle LSHIFT_EXPR with a constant.
2818
70b5e7dc
RG
28192012-08-10 Richard Guenther <rguenther@suse.de>
2820
2821 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
2822 is recorded as var.
2823 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
2824 or its SSA_NAME_VAR.
2825 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
2826 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
2827 SSA names by passing a type instead of a variable decl.
2828 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
2829 (copy_ssa_name_fn): Handle anonymous SSA names.
2830 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
2831 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
2832 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
2833 dump SSA names without a name as <anon>.
2834 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
2835 going to expand a decl.
2836 (gimple_expand_cfg): Assign all SSA names of a partition the
2837 decl we created for its leader.
2838 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
2839 (verify_ssa_name): Handle anonymous SSA names.
2840 (verify_def): Likewise.
2841 * tree-predcom.c (eliminate_temp_copies): Likewise.
2842 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
2843 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
2844 anonymous SSA names with the same type.
2845 (mark_all_vars_used_1): Handle anonymous SSA names.
2846 (verify_live_on_entry): Likewise.
2847 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
2848 (create_outofssa_var_map): Adjust with respect to conflicts we
2849 compute for anonymous SSA names. Do not restrict abnormal
2850 coalescing.
2851 (coalesce_partitions): Do not restrict abnormal coalescing.
2852 Assert we only ever coalesce variables we computed conflicts for.
2853 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
2854 of anonymous names.
2855 * expr.c (expand_expr_real_1): Handle anonymous SSA names
2856 expanded from IVOPTs by creating a raw REG here.
2857 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
2858 (dump_function_to_file): Dump anonymous SSA names alongside
2859 with their types in the variable list.
2860 (verify_gimple_return): Guard use of SSA_NAME_VAR.
2861 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
2862 (rewrite_into_ssa): Make SSA names anonymous.
2863 * tree-ssa-structalias.c (alias_get_name): Rewrite.
2864 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
2865 SSA names.
2866 (warn_uninitialized_phi): Likewise.
2867 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
2868 anonymous SSA names to the expander.
2869 (determine_iv_cost): Anonymous SSA names are artificial.
2870 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
2871 Handle anonymous SSA names.
2872 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
2873 or if NULL, the type of the SSA name.
2874 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
2875 remap names as anonymous where appropriate.
2876 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
2877 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
2878 according to what we create conflicts for in out-of-SSA
2879 coalescing.
2880 * tree-parloops.c (separate_decls_in_region_name): Handle
2881 anonymous SSA names.
2882 (add_field_for_name): Likewise.
2883 * tree.c (get_name): Handle SSA names.
2884 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
2885 SSA_NAMEs.
2886 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
2887 virtual_operand_p.
2888 * tree-sra.c (create_access_replacement): Give up generating
2889 a DECL_DEBUG_EXPR for SSA names in the memory reference.
2890 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
2891 * tree-complex.c (get_component_ssa_name): Handle anonymous
2892 SSA names.
2893 (set_component_ssa_name): Likewise.
2894 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
2895 * tree-object-size.c (collect_object_sizes_for): Handle
2896 uninitialized SSA names properly.
2897 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
2898 SSA_NAME_VAR.
2899 * ipa-split.c (test_nonssa_use): Likewise.
2900 (consider_split): Likewise.
2901 (mark_nonssa_use): Likewise.
2902
c170d40f
JH
29032012-08-09 Jan Hubicka <jh@suse.cz>
2904
2905 PR middle-end/54146
2906 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
2907 parameter; honnor it.
2908 * ipa-inline.c (recursive_inlining): Update call
2909 of inline_call.
2910 (inline_small_functions): Likewise.
2911 (ipa_inline): Likewise.
2912 (inline_always_inline_functions): Likewise.
2913 (early_inline_small_functions): Likewise.
2914 (flatten_function): Do separate update of summary info.
2915 * ipa-inline.h (inline_update_overall_summary): Declare.
2916 (inline_call): Update.
2917 * ipa-inline-analysis.c (inline_merge_summary): Break out
2918 updating code to ...
2919 (inline_update_overall_summary): Likewise.
2920
4e1ffb63
RH
29212012-08-09 Richard Henderson <rth@redhat.com>
2922
0d8e4dac
RH
2923 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
2924
4e1ffb63
RH
2925 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
2926 performing the compare for the restart loop.
2927
1c6b1021
DD
29282012-08-09 DJ Delorie <dj@redhat.com>
2929
2930 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
2931 SET before extracting SET_SRC.
2932 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
2933
70d4736c
OE
29342012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
2935
2936 PR target/54089
2937 * config/sh/sh-protos (shift_insns_rtx): Delete.
2938 (sh_ashlsi_clobbers_t_reg_p): Add.
2939 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
2940 ext_shift_amounts): Merge arrays of ints to array of structs.
2941 Adapt usage of arrays throughout the file.
2942 (shift_insns_rtx): Delete unused function.
2943 (sh_ashlsi_clobbers_t_reg_p): New function.
2944 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
2945 final shift sequence will clobber T_REG.
2946 (ashlsi3_n): Split only if the final shift sequence will not
2947 clobber T_REG.
2948 (ashlsi3_n_clobbers_t): New insn_and_split.
2949
5829cc0f
SB
29502012-08-09 Steven Bosscher <steven@gcc.gnu.org>
2951
2952 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
2953 instead of looking at sbitmap n_bits member directly.
2954 * gcse.c (hoist_code): Likewise.
2955 * sched-rgn.c (split_edges): Likewise.
2956 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
2957 update_ssa): Likewise.
2958
b197fc48
UB
29592012-08-09 Uros Bizjak <ubizjak@gmail.com>
2960
2961 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
2962 single unit register class for classes that contain registers form
2963 multiple units.
2964 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
2965 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
2966
8b7773a4
MJ
29672012-08-09 Martin Jambor <mjambor@suse.cz>
2968
2969 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
2970 offset, updated all users. New field agg_contents.
2971 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
2972 (ipa_pass_through_data): New field agg_preserved.
2973 (ipa_ancestor_jf_data): Likewise.
2974 (ipa_member_ptr_cst): Removed.
2975 (ipa_agg_jf_item): New type.
2976 (ipa_agg_jump_function): Likewise.
2977 (ipa_jump_func): New field agg. Removed field member_cst.
2978 (ipa_get_jf_pass_through_agg_preserved): New function.
2979 (ipa_get_jf_ancestor_agg_preserved): Likewise.
2980 (ipa_get_jf_member_ptr_pfn): Removed.
2981 (ipa_find_agg_cst_for_param): Declare.
2982 (ipa_load_from_parm_agg): Likewise.
2983 * ipa-prop.c (param_analysis_info): Fields modified and
2984 visited_statements rename to parm_modified and parm_visited_statements
2985 respectively, added fields ref_modified, ref_visited_statements,
2986 pt_modified and pt_visited_statements.
2987 (ipa_print_node_jump_functions_for_edge): Do not dump const member
2988 functions. Dump agg_preserved flags and aggregate jump functions.
2989 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
2990 (ipa_set_ancestor_jf): Likewise.
2991 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
2992 (ipa_set_jf_member_ptr_cst): Removed.
2993 (is_parm_modified_before_stmt): Logic reversed, renamed to
2994 parm_preserved_before_stmt_p. Cache visited bitmap only for
2995 naked DECL parameters. All callers updated.
2996 (load_from_unmodified_param): Allow NULL parms_ainfo.
2997 (parm_ref_data_preserved_p): New function.
2998 (parm_ref_data_pass_through_p): Likewise.
2999 (ipa_load_from_parm_agg_1): Likewise.
3000 (ipa_load_from_parm_agg): Likewise.
3001 (compute_complex_assign_jump_func): Check if aggregate contents are
3002 preserved.
3003 (compute_complex_ancestor_jump_func): Likewise.
3004 (compute_scalar_jump_functions): Removed.
b197fc48 3005 (type_like_member_ptr_p): Also check field position are known and sane.
8b7773a4
MJ
3006 (compute_pass_through_member_ptrs): Removed.
3007 (determine_cst_member_ptr): Likewise.
3008 (ipa_known_agg_contents_list): New type.
3009 (determine_known_aggregate_parts): New function.
3010 (compute_cst_member_ptr_arguments): Removed.
3011 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
3012 functions (scalar, aggregate and member pointer).
3013 (ipa_get_member_ptr_load_param): Incorporate into
3014 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
3015 (ipa_note_param_call): Clear agg_contents.
3016 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
3017 from aggregates. In such cases, store offset of the called field.
3018 (ipa_analyze_node): Initialize new fields of param_analysis_info.
3019 (update_jump_functions_after_inlining): Handle aggregate contents.
3020 (ipa_find_agg_cst_for_param): New function.
3021 (try_make_edge_direct_simple_call): Handle called aggregate values.
3022 (update_indirect_edges_after_inlining): Make sure aggregate preserving
3023 jump functions comply with type compatibility requirements.
3024 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
3025 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
3026 jump functions. Do not stream member pointer constant jump functions.
3027 (ipa_read_jump_function): Likewise.
3028 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
3029 fields.
3030 (ipa_read_indirect_edge_info): Likewise.
3031
b67b3838
OE
30322012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3033
3034 PR target/39423
3035 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
3036 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
3037 mem_index_disp_operand predicate.
3038
78ff60c1
OE
30392012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3040
3041 PR target/51244
3042 * config/sh/sh.md: Add negc extu sequence peephole.
3043 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
3044 (*movrt_negc): New insn.
3045 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
3046 gen_movnegt.
3047 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
b197fc48
UB
3048 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
3049 get_t_reg_rtx.
78ff60c1
OE
3050 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
3051
284c32cf
OE
30522012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3053
3054 PR target/50751
3055 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
3056 Use arith_reg_operand predicate instead of register_operand.
3057 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
3058 only mem, simplify.
3059
3eda5123
UB
30602012-08-09 Uros Bizjak <ubizjak@gmail.com>
3061
4bf02aaf
UB
3062 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
3063 (alpha_pad_function_end): ... this. Also insert NOP between
3064 sibling call and GP load.
3065 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
3eda5123 3066
9319fa21
MZ
30672012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3068
3069 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
3070 * config/i386/x86intrin.h: Likewise.
3071 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
3072 OPTION_MASK_ISA_ADX from needed options for
3073 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
3074 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
3075 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
3076
0c02ab39
AB
30772012-08-09 Andrey Belevantsev <abel@ispras.ru>
3078
3079 PR rtl-optimization/53701
3080 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
3081 Process not only expr's vinsns but all old vinsns from expr's
3082 history of changes.
3eda5123 3083 (update_and_record_unavailable_insns): Clarify comment.
0c02ab39 3084
82ad0aaf
BS
30852012-08-09 Bernd Schmidt <bernds@codesourcery.com>
3086
3087 * reload.c (find_valid_class_1): New static function.
3088 (push_reload): Use it when reloading a SYMBOL_REG as the inner
3089 of a subreg. Keep better track of needed classes for the
3090 secondary memory case.
3091 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
3092 GENERAL_REGS.
3093 * reload1.c (replaced_subreg): New static function.
3094 (gen_reload): Use it when deciding whether to use secondary
3095 memory.
3096
67386041
RG
30972012-08-09 Richard Guenther <rguenther@suse.de>
3098
3099 * tree.h (SSA_VAR_P): Simplify.
3100 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
3101 * fold-const.c (fold_comparison): Check for default def first
3102 before checking for PARM_DECL.
3103 * tree-complex.c (get_component_ssa_name): Likewise.
3104 * tree-inline.c (remap_ssa_name): Likewise.
3105 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
3106 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3107 (find_what_p_points_to): Likewise.
3108 * tree-ssa-operands.c (add_stmt_operand): Simplify.
3109
e7160b27
JM
31102012-08-08 Joseph Myers <joseph@codesourcery.com>
3111
3112 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
3113 IOR to a constant if one operand has side effects.
3114
215770ad
UW
31152012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3116
3117 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
3118 value operand as MEM to expand_atomic_compare_and_swap.
3119
3120 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
3121 nonimmediate_operand for old value; generate load and store if
3122 needed.
3123 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
3124 as vtarget.
3125
07c5a154
SB
31262012-08-08 Steven Bosscher <steven@gcc.gnu.org>
3127
3128 PR middle-end/54146
3129 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
3130 checking enabled.
3131 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
3132 a gimple_reg if checking is enabled.
3133 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
3134 * tree-into-ssa (compute_global_livein): Change the worklist
3135 type from an array to a VEC.
3136
a471762f
RG
31372012-08-08 Richard Guenther <rguenther@suse.de>
3138
3139 * tree-ssa-operands.h (virtual_operand_p): Declare.
3140 * tree-ssa-operands.c (virtual_operand_p): New predicate.
3141 * gimple.c (is_gimple_reg): Use virtual_operand_p.
3142 * tree-into-ssa.c (prepare_block_for_update): Likewise.
3143 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
3144
6b4a85ad
RG
31452012-08-08 Richard Guenther <rguenther@suse.de>
3146
3147 * tree-call-cdce.c (check_pow): Simplify.
3148 (gen_conditions_for_pow_int_base): Likewise.
3149 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
3150 virtual operands here.
3151 * tree-ssa-operands.c (get_name_decl): Remove unused function.
3152 * gimplify.c (gimple_regimplify_operands): Remove dead code.
3153 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
3154 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
3155 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
3156 (gimple_stringop_fixed_value): Likewise.
3157 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
3158 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
3159 in the bitmap alongside shifted DECL_UIDs.
3160 (va_list_counter_struct_op): Likewise.
3161 (va_list_ptr_read): Likewise.
3162 (va_list_ptr_write): Likewise.
3163 (check_va_list_escapes): Likewise.
3164 (check_all_va_list_escapes): Likewise.
3165 (execute_optimize_stdarg): Likewise.
3166 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
3167
3b1e1a02
L
31682012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
3169 H.J. Lu <hongjiu.lu@intel.com>
3170
3171 PR rtl-optimization/54157
3172 * combine.c (gen_lowpart_for_combine): Don't return identity
3173 for CONST or symbolic reference.
3174
07c5a154 31752012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
d05e383b
MZ
3176
3177 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
3178 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
3179 (ix86_handle_option): Handle madx option.
3180 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
3181 (x86_64-*-*): Likewise.
3182 * config/i386/adxintrin.h: New header.
3183 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
3184 support.
3185 * config/i386/i386-builtin-types.def
3186 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
3187 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
3188 * config/i386/i386-c.c: Define __ADX__ if needed.
3189 * config/i386/i386.c (ix86_target_string): Define -madx option.
3190 (PTA_ADX): New.
3191 (ix86_option_override_internal): Handle new option.
3192 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
3193 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
3194 IX86_BUILTIN_ADDCARRYX64.
3195 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
3196 (ix86_expand_builtin): Handle these built-ins.
3197 (ix86_expand_args_builtin): Handle new function types.
3198 * config/i386/i386.h (TARGET_ADX): New.
3199 * config/i386/i386.md (adcx<mode>3): New define_insn.
3200 * config/i386/i386.opt (madx): New.
3201 * config/i386/x86intrin.h: Include adxintrin.h.
3202
916f8bbf
NC
32032012-08-08 Nick Clifton <nickc@redhat.com>
3204
3205 * config/rl78/rl78.c: Include tree-pass.h.
3206
985e963f
SB
32072012-08-08 Steven Bosscher <steven@gcc.gnu.org>
3208
cee784f5
SB
3209 PR middle-end/54146
3210 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
3211 (build_insn_chain): Make live_subregs_used a bitmap.
3212 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
3213 Use sbitmap_free to free the live_subreg sbitmaps.
3214
985e963f
SB
3215 PR middle-end/54146
3216 * ifcvt.c: Include pointer-set.h.
3217 (cond_move_process_if_block): Change type of then_regs and
3218 else_regs from alloca'd array to pointer_sets.
3219 (check_cond_move_block): Update for this change.
3220 (cond_move_convert_if_block): Likewise.
3221 * Makefile.in: Fix dependencies for ifcvt.o.
3222
88ca9ea1
BS
32232012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3224
3225 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
3226 (incr_vec): New static var.
3227 (incr_vec_len): Likewise.
3228 (address_arithmetic_p): Likewise.
3229 (stmt_cost): Remove dead assignment.
3230 (dump_incr_vec): New function.
3231 (cand_abs_increment): Likewise.
3232 (lazy_create_slsr_reg): Likewise.
3233 (incr_vec_index): Likewise.
3234 (count_candidates): Likewise.
3235 (record_increment): Likewise.
3236 (record_increments): Likewise.
3237 (unreplaced_cand_in_tree): Likewise.
3238 (optimize_cands_for_speed_p): Likewise.
3239 (lowest_cost_path): Likewise.
3240 (total_savings): Likewise.
3241 (analyze_increments): Likewise.
3242 (ncd_for_two_cands): Likewise.
3243 (nearest_common_dominator_for_cands): Likewise.
3244 (profitable_increment_p): Likewise.
3245 (insert_initializers): Likewise.
3246 (introduce_cast_before_cand): Likewise.
3247 (replace_rhs_if_not_dup): Likewise.
3248 (replace_one_candidate): Likewise.
3249 (replace_profitable_candidates): Likewise.
3250 (analyze_candidates_and_replace): Handle candidates with SSA-name
3251 strides.
3252
f8923f7e
SB
32532012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3254
3255 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
3256 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
3257 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
3258 clear pp_needs_newline.
3259 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
3260 of pp_base_flush before the above change.
3261 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
3262 instead of pp_flush.
3263 * diagnostic.c (diagnostic_finish): Likewise.
3264 (diagnostic_report_diagnostic): Likewise.
3265 (verbatim): Likewise.
3266 (error_recursion): Likewise.
3267 * tree-pretty-print.c (print_generic_stmt): Likewise.
3268 (print_generic_stmt_indented): LIkewise.
3269 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
3270 (print_gimple_seq): Likewise.
3271 (gimple_dump_bb_buff): Likewise.
3272
1791f36f
UB
32732012-08-07 Uros Bizjak <ubizjak@gmail.com>
3274
4ccaecee 3275 PR debug/54177
1791f36f
UB
3276 * var-tracking.c (var_lowpart): Exit early for matched modes.
3277
78ce265b
RH
32782012-08-07 Richard Henderson <rth@redhat.com>
3279
3280 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
3281 atomic_compare_and_swapsi_internal name change.
3282 (s390_expand_insv): Try RISBG last, not requiring operands in
3283 registers but forcing them there. Try a limited form of ICM.
3284 (s390_two_part_insv): New.
3285 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
3286 * config/s390/s390.md (UNSPEC_MOVA): New.
3287 (TDSI): Remove mode iterator.
3288 (DGPR, DINT, TDI): New mode iterators.
3289 (td): New mode attribute.
3290 (mem_signal_fence): New.
3291 (mem_thread_fence): Rename from memory_barrier; update for model arg.
3292 (mem_thread_fence_1): Rename from *memory_barrier.
3293 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
3294 (atomic_loaddi_1, atomic_loadti_1): New.
3295 (atomic_storedi_1, atomic_storeti_1): New.
3296 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
3297 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
3298 (atomic_compare_and_swap<DGPR>_internal): New.
3299 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
3300 (*atomic_compare_and_swap<TDI>_1): New.
3301 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
3302 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
3303 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
3304 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
3305 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
3306 (sync_new_<ATOMIC><HQI>): Remove.
3307 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
3308 (atomic_<ATOMIC>_fetch<HQI>): New.
3309 (sync_lock_test_and_set<HQI>): Remove.
3310 (atomic_exchange<HQI>): New.
3311
3e6011cf
PB
33122012-08-07 Paul Brook <paul@codesourcery.com>
3313 Sandra Loosemore <sandra@codesourcery.com>
3314
3315 * except.c (switch_to_exception_section): Place tables for
3316 DECL_ONE_ONLY functions in comdat groups.
3317
070ecdfd
RG
33182012-08-07 Richard Guenther <rguenther@suse.de>
3319
3320 * tree-flow.h (copy_ssa_name_fn): New function.
3321 (duplicate_ssa_name_fn): Likewise.
3322 * tree-flow-inline.h (copy_ssa_name): New function.
3323 (duplicate_ssa_name): Likewise.
3324 * tree-ssanames.c (copy_ssa_name_fn): New function.
3325 (duplicate_ssa_name): Rename to ...
3326 (duplicate_ssa_name_fn): ... this and adjust.
3327 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
4ccaecee
UB
3328 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
3329 Likewise.
070ecdfd
RG
3330 (slpeel_update_phi_nodes_for_guard2): Likewise.
3331 (slpeel_tree_peel_loop_to_edge): Likewise.
3332 (vect_loop_versioning): Likewise.
3333 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
3334 (create_parallel_loop): Likewise.
3335 * ipa-split.c (split_function): Likewise.
3336 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3337 (vect_create_epilog_for_reduction): Likewise.
3338 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
3339 (vect_setup_realignment): Likewise.
3340 * tree-vect-stmts.c (vectorizable_load): Likewise.
3341 * tree-switch-conversion.c (build_one_array): Likewise.
3342 (gen_def_assigns): Likewise.
3343 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
3344 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
3345 create_zero_dim_array with the SSA name.
3346 (rewrite_phi_out_of_ssa): Likewise.
3347 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
3348
01c59d23
RG
33492012-08-07 Richard Guenther <rguenther@suse.de>
3350
3351 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
3352 bit of the old name when we clear the slot.
3353 * tree-ssa-live.c (remove_unused_locals): Release any default
3354 def associated with an unused var.
3355 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
3356
5f33a4fc
RG
33572012-08-07 Richard Guenther <rguenther@suse.de>
3358
3359 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
3360 we rewrite into SSA form.
3361 (rewrite_enter_block): Adjust.
3362 * gimple-iterator.c (gsi_replace): Also allow replacement with
3363 a stmt without a lhs.
3364 * tree-ssa-live.c (remove_unused_locals): Remove code handling
3365 clobbers of SSA names.
3366 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
3367 for variables we access through the local chain.
3368 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
3369 clobber full decls only.
3370
dcc748dd
RG
33712012-08-07 Richard Guenther <rguenther@suse.de>
3372
3373 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
3374 * tree-phinodes.c (make_phi_node): Allow a NULL var.
3375 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
3376 * tree-complex.c (update_phi_components): Likewise.
3377 * tree-ssa-loop-manip.c (create_iv): Likewise.
3378 (add_exit_phis_edge): Likewise.
3379 (split_loop_exit_edge): Likewise.
3380 (tree_transform_and_unroll_loop): Likewise.
3381 * value-prof.c (gimple_ic): Likewise.
3382 (gimple_stringop_fixed_value): Likewise.
3383 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
3384 * omp-low.c (expand_parallel_call): Likewise.
3385 (expand_omp_for_static_chunk): Likewise.
3386 (expand_omp_atomic_pipeline): Likewise.
3387 * tree-parloops.c (create_phi_for_local_result): Likewise.
3388 (transform_to_exit_first_loop): Likewise.
3389 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3390 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
3391 * tree-predcom.c (initialize_root_vars): Likewise.
3392 (initialize_root_vars_lm): Likewise.
3393 * sese.c (sese_add_exit_phis_edge): Likewise.
3394 * gimple-streamer-in.c (input_phi): Likewise.
3395 * tree-inline.c (copy_phis_for_bb): Likewise.
3396 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3397 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
3398 (gimple_duplicate_bb): Likewise.
3399
d13abe1e
NC
34002012-08-07 Nick Clifton <nickc@redhat.com>
3401
3402 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
3403 stack usage if requested.
3404
292ffe86
CC
34052012-08-06 Cary Coutant <ccoutant@google.com>
3406
3407 * cgraphunit.c (assemble_thunk): Add source line info.
3408 * final.c (final): Check for non-null cfg pointer.
3409
d28cfc4a
SL
34102012-08-06 Sandra Loosemore <sandra@codesourcery.com>
3411 Maxim Kuvyrkov <maxim@codesourcery.com>
3412 Julian Brown <julian@codesourcery.com>
3413
3414 * config/mips/24k.md (r24k_unknown_store): Delete special handling
3415 for cprestore.
3416 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
3417 (r24k_int_cop, r24k_int_multi)
3418 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
3419 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
3420 instead of store_data_bypass_p.
3421 * config/mips/74k.md (r74k_int_store): Delete special handling for
3422 cprestore.
3423 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
3424 Use mips_store_data_bypass_p instead of store_data_bypass_p.
3425
777d77b3
MG
34262012-08-06 Marc Glisse <marc.glisse@inria.fr>
3427
3428 PR tree-optimization/51938
3429 PR tree-optimization/52005
3430 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
3431 inverted conditions.
3432 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
3433 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
3434 and !a||b patterns.
3435
a4a83796
OH
34362012-08-06 Olivier Hainque <hainque@adacore.com>
3437
3438 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
3439 the target, attach the new decl to that, not to the template section.
3440
d9e408de
TV
34412012-08-06 Tom de Vries <tom@codesourcery.com>
3442
3443 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
3444 unsigned type.
3445
d5b02d90
VK
34462012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3447
3448 * doc/invoke.texi: Document AMD btver2.
3449 * doc/extend.texi: Document AMD btver1 and btver2.
3450
5dd4087e
SL
34512012-08-04 Sandra Loosemore <sandra@codesourcery.com>
3452 Richard Sandiford <rdsandiford@googlemail.com>
3453
3454 * config/mips/mips.c (mips_option_override): Check -fpic
3455 for compatibility with -mabicalls and ABI.
3456
b0e7f54d
CM
34572012-08-04 Catherine Moore <clm@codesourcery.com>
3458 Sandra Loosemore <sandra@codesourcery.com>
3459
3460 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
3461 (ir_xlr_alu): Remove clz.
3462 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
3463
6f34864a
RE
34642012-08-04 Richard Earnshaw <rearnsha@arm.com>
3465
3466 * arm.c (arm_gen_constant): Use SImode when preparing operands for
3467 gen_extzv_t2.
3468
fc27f749
UB
34692012-08-04 Uros Bizjak <ubizjak@gmail.com>
3470
3471 * config/i386/i386.h (QI_REGNO_P): New define.
3472 (ANY_QI_REGNO_P): Ditto.
3473 (GENERAL_REGNO_P): Use IN_RANGE macro.
3474 (QI_REG_P): Use QI_REGNO_P.
3475 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
3476 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
3477 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
3478 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
3479 register is a general register.
3480
a6de48da
UB
34812012-08-03 Uros Bizjak <ubizjak@gmail.com>
3482
3483 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
3484 incdec_operand predicate to return INC or DEC insn mnemonic.
3485 Add %K operand modifier.
3486 (atomic_add<mode>): Use incdec_operand predicate to
3487 return INC or DEC insn mnemonic.
3488 (atomic_dec<mode>): Ditto.
3489
9b44f5d9
MM
34902012-08-03 Michael Matz <matz@suse.de>
3491
3492 PR tree-optimization/54146
3493 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
3494 (add_scope_conflicts): Iterate in RPO order.
3495 (add_stack_protection_conflicts): Iterate over the other triangle.
3496 (fini_vars_expansion): Clear stack_vars_sorted.
3497
34982012-08-03 Marc Glisse <marc.glisse@inria.fr>
4e7c4b73
MG
3499
3500 PR tree-optimization/30318
3501 * double-int.c (mul_double_wide_with_sign): New function.
3502 (mul_double_with_sign): Call the new function.
3503 * double-int.h (mul_double_wide_with_sign): Declare the new function.
3504 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
3505 Handle integer types that wrap on overflow.
3506 (quad_int_cmp): New helper function.
3507 (quad_int_pair_sort): Likewise.
3508
b2ec94d4
RG
35092012-08-03 Richard Guenther <rguenther@suse.de>
3510
3511 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
3512 is_gimple_reg on the SSA name, not its variable.
3513 (vect_update_ivs_after_vectorizer): Likewise.
3514 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
3515 * tree-if-conv.c (if_convertible_phi_p): Likewise.
3516 (predicate_scalar_phi): Likewise.
3517 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
3518 (vect_analyze_scalar_cycles_1): Likewise.
3519 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
3520 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
3521 * tree-ssa-reassoc.c (phi_rank): Likewise.
3522 * tree-parloops.c (separate_decls_in_region_name): Use
3523 replace_ssa_name_symbol.
3524 * tree-predcom.c (base_names_in_chain_on): Likewise.
3525 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
3526 not its variable.
3527 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
3528 (create_mul_imm_cand): Likewise.
3529 (create_add_ssa_cand): Likewise.
3530 (create_add_imm_cand): Likewise.
3531 (slsr_process_add): Likewise.
3532 * tree-inline.c (remap_ssa_name): Do not set the type of the
3533 new SSA_NAME.
a6de48da
UB
3534 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
3535 Check for default def first.
b2ec94d4 3536
07fd4efa
SB
35372012-08-04 Steven Bosscher <steven@gcc.gnu.org>
3538
1b03a96d
SB
3539 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
3540
3541 * sched-vis.c (print_pattern): Handle SEQUENCE also.
07fd4efa 3542
34831f3e
RH
35432012-08-02 Richard Henderson <rth@redhat.com>
3544
3545 Revert:
3546 PR 34548
3547 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
3548 * cfgexpand.c (gimple_expand_cfg): Initialise it.
3549 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
3550 alignment requirements given the known alignment of dynamic_offset.
3551 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
3552
48175537
KZ
35532012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
3554
3555 * cfgexpand.c (expand_debug_locations): Encapsulate test for
3556 CONST_DOUBLE in macro.
3557 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
3558 * cprop.c (implicit_set_cond_p): Ditto.
3559 * cselib.c (rtx_equal_for_cselib_1): Ditto.
3560 * expmed.c (expand_mult): Ditto.
3561 * expr.c (convert_modes): Ditto.
3562 * ira-costs.c (record_reg_classes): Ditto.
3563 * ira-lives.c (single_reg_class): Ditto.
3564 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
3565 * print-rtl.c (print_rtx): Ditto.
3566 * recog.c (simplify_while_replacing, const_double_operand)
3567 (asm_operand_ok, constrain_operands): Ditto.
3568 * reg-stack.c (subst_stack_regs_pat): Ditto.
3569 * reload.c (find_reloads, find_equiv_reg): Ditto.
3570 * rtlanal.c (replace_rtx): Remove test.
a6de48da
UB
3571 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
3572 test for CONST_DOUBLE in macro.
48175537
KZ
3573 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
3574 (simplify_unary_operation_1, simplify_const_unary_operation)
3575 (simplify_binary_operation_1, simplify_const_binary_operation)
3576 (simplify_relational_operation_1)
3577 (simplify_const_relational_operations)
3578 (implify_subreg): Ditto.
3579 * varasm.c (output_constant_pool_2): Ditto.
a6de48da 3580 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
48175537
KZ
3581 * rtl.def (CONST_DOUBLE): Updated comments.
3582
36be1dee
RS
35832012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
3584
3585 PR target/51931
3586 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
3587 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
3588 (mips16_rewrite_pool_constant): Make a copy of the pool constant
3589 before adding to a PC-relative table.
3590 (mips16_lay_out_constants): Add a SPLIT_P parameter.
3591 (mips16_load_branch_target, mips16_split_long_branches): New functions.
3592 (mips_reorg): Update call to mips16_lay_out_constants.
3593 Call mips16_split_long_branches.
3594 * config/mips/predicates.md (pc_or_label_operand): Delete.
3595 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
3596 Move the extended_mips16 handling further down.
3597 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
3598 with explicit label_ref and pc. Follow the usual operand numbering.
3599 (*branch_equality<mode>_mips16_inverted): New pattern.
3600 (*jump_mips16): Add length attribute.
3601 (indirect_jump_and_restore_<mode>): New pattern.
3602 (consttable_int): Call mips_strip_unspec_address on the operand.
3603
b5b071a5
RS
36042012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
3605
3606 * recog.c (split_insn): Copy the original SET_SRC before using
3607 it as a note.
3608
8e6ecdc0
RS
36092012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
3610
3611 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
3612
77b5132f
MG
36132012-08-02 Marc Glisse <marc.glisse@inria.fr>
3614
3615 PR tree-optimization/53805
3616 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
3617 UNORDERED_EXPR even for trapping floating point.
3618
a8da72b8
L
36192012-08-02 H.J. Lu <hongjiu.lu@intel.com>
3620
3621 PR middle-end/53321
3622 PR middle-end/53865
3623 * ipa-inline-analysis.c (inline_free_summary): Return if
3624 inline_edge_summary_vec is NULL.
3625
3626 * ipa-split.c (execute_split_functions): Check if a function
3627 is inlinable only if inline_edge_summary_vec != NULL.
3628
3629 * ipa.c (symtab_remove_unreachable_nodes): Restore
3630 cgraph_propagate_frequency call when something was changed.
3631 (free_inline_summary): New function.
3632 (pass_ipa_free_inline_summary): New pass.
3633
3634 * passes.c (init_optimization_passes): Add
3635 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
3636
3637 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
3638
3639 * tree-pass.h (pass_ipa_free_inline_summary): New.
3640
ca26f665
RE
36412012-08-02 Richard Earnshaw <rearnsha@arm.com>
3642
3643 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
3644 available.
3645
8812aab1
RG
36462012-08-02 Richard Guenther <rguenther@suse.de>
3647
3648 * tree-into-ssa.c (struct common_info_d): New struct.
3649 (struct var_info_d, struct ssa_name_info): Use it.
3650 (get_ssa_name_ann): Adjust.
3651 (get_phi_state, set_phi_state): Remove.
3652 (get_common_info): New function.
3653 (get_current_def, set_current_def): Adjust.
3654 (get_def_blocks_for): Take a common info as param.
3655 (set_def_block): Call get_common_info once.
3656 (set_livein_block): Likewise.
3657 (find_def_blocks_for): Adjust.
3658 (insert_phi_nodes): Likewise.
3659 (register_new_def): Call get_common_info once.
3660 (get_reaching_def): Likewise.
3661 (rewrite_debug_stmt_uses): Likewise.
3662 (rewrite_leave_block): Likewise.
3663 (dump_currdefs): Likewise.
3664 (debug_var_infos_r): Adjust.
3665 (register_new_update_single): Call get_common_info once.
3666 (maybe_replace_use_in_debug_stmt): Likewise.
3667 (rewrite_update_leave_block): Likewise.
3668 (mark_use_interesting): Adjust.
3669 (create_new_def_for): Likewise.
3670 (update_ssa): Likewise.
3671
329df070
MM
36722012-08-02 Michael Matz <matz@suse.de>
3673
3674 * tree-ssa-live.c (set_is_used): Return a bool.
3675 (mark_all_vars_used): Don't take data argument.
3676 (mark_all_vars_used_1): Adjust calls to above, merge handling
3677 of local and global vars.
3678 (remove_unused_scope_block_p): Don't take global_unused_vars,
3679 merge handling of local and global vars.
3680 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
3681 use is_used_p for local and global vars.
3682
7cc434a3
RG
36832012-08-02 Richard Guenther <rguenther@suse.de>
3684
3685 * tree-flow.h (make_rename_temp): Remove.
3686 * tree-dfa.c (make_rename_temp): Likewise.
3687 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
3688 instead of make_rename_temp.
3689 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3690 expand_omp_atomic_pipeline): Likewise.
3691 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
3692 build_tm_store, expand_call_tm, expand_transaction,
3693 ipa_tm_insert_gettmclone_call): Likewise.
3694 * tree-complex.c (expand_complex_div_wide): Likewise.
3695 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
3696 Likewise.
3697 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
3698 Likewise.
3699 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
3700 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
3701 gimple_mod_subtract): Likewise.
3702
32244553
RG
37032012-08-02 Richard Guenther <rguenther@suse.de>
3704
3705 * tree-flow.h (set_default_def): Rename to ...
3706 (set_ssa_default_def): ... this. Take a struct function argument.
3707 (gimple_default_def): Rename to ...
3708 (ssa_default_def): ... this.
3709 (get_or_create_ssa_default_def): New function.
3710 * tree-dfa.c: Likewise.
3711 (dump_variable): Adjust.
3712 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
3713 for used parameters.
3714 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
3715 lookups.
3716 (split_function): Likewise.
3717 * lto-streamer-in.c (input_ssa_names): Adjust.
3718 * omp-low.c (expand_omp_taskreg): Likewise.
3719 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
3720 * tree-complex.c (init_parameter_lattice_values): Adjust.
3721 (get_component_ssa_name): Likewise.
3722 (update_parameter_components): Likewise.
3723 * tree-inline.c (remap_ssa_name): Likewise.
3724 (setup_one_parameter): Likewise.
3725 (initialize_inlined_parameters): Likewise.
3726 (declare_return_variable): Likewise.
3727 (expand_call_inline): Likewise.
3728 (tree_function_versioning): Likewise.
3729 * tree-into-ssa.c (get_default_def_for): Remove.
3730 (get_reaching_def): Use get_or_create_ssa_default_def instead.
3731 * tree-predcom.c (replace_ref_with): Adjust.
3732 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
3733 (is_unused_scalar_param): Likewise.
3734 (ptr_parm_has_direct_uses): Likewise.
3735 (sra_ipa_reset_debug_stmts): Likewise.
3736 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
3737 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
3738 * tree-ssa-live.c (verify_live_on_entry): Likewise.
3739 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
3740 avoid repeated default def lookups.
3741 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
3742 * tree-tailcall.c (arg_needs_copy_p): Adjust.
3743 (tree_optimize_tail_calls_1): Likewise.
3744
fcddd80e
RG
37452012-08-02 Richard Guenther <rguenther@suse.de>
3746
3747 PR tree-optimization/50672
3748 Revert
3749 2012-08-01 Richard Guenther <rguenther@suse.de>
3750
3751 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
3752 (replace_block_by): Adjust.
3753
46eb666a
RG
37542012-08-02 Richard Guenther <rguenther@suse.de>
3755
3756 * tree-dfa.c (referenced_var_lookup): Remove.
3757 (find_referenced_vars): Remove.
3758 (pass_referenced_vars): Likewise.
3759 (make_rename_temp): Do not add referenced vars.
3760 (dump_referenced_vars): Remove.
3761 (debug_referenced_vars): Likewise.
3762 (dump_dfa_stats): Do not dump referenced var stats.
3763 (find_vars_r): Remove.
3764 (find_referenced_vars_in): Likewise.
3765 (referenced_var_check_and_insert): Likewise.
3766 (add_referenced_var_1): Likewise.
3767 (remove_referenced_var): Likewise.
3768 * tree-flow.h (referenced_var_lookup): Likewise.
3769 (struct gimple_df): Remove referenced_vars member.
3770 (typedef referenced_var_iterator): Remove.
3771 (FOR_EACH_REFERENCED_VAR): Likewise.
3772 (num_referenced_vars): Likewise.
3773 (debug_referenced_vars, dump_referenced_vars): Likewise.
3774 (add_referenced_var_1, add_referenced_var): Likewise.
3775 (remove_referenced_var): Likewise.
3776 (find_referenced_vars_in): Likewise.
3777 * tree-flow-inline.h (gimple_referenced_vars): Remove.
3778 (first_referenced_var): Likewise.
3779 (end_referenced_vars_p): Likewise.
3780 (next_referenced_var): Likewise.
3781 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
3782 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
3783 unconditionally.
3784 * tree-into-ssa.c (dump_decl_set): Likewise.
3785 (pass_build_ssa): Do not require PROP_referenced_vars.
3786 * tree-ssa.c (target_for_debug_bind): Virtual operands are
3787 not suitable, but all register type vars are.
3788 (init_tree_ssa): Do not allocate referenced vars.
3789 (delete_tree_ssa): Do not free referenced vars.
3790 * cgraphunit.c (init_lowered_empty_function): Do not set
3791 PROP_referenced_vars.
3792 (assemble_thunk): Do not add referenced vars.
3793 * gimple-fold.c (canonicalize_constructor_val): Likewise.
3794 (gimplify_and_update_call_from_tree): Likewise.
3795 * gimple-streamer-in.c (input_bb): Likewise.
3796 * passes.c (init_optimization_passes): Do not run
3797 pass_referenced_vars.
3798 (dump_properties): Do not dump PROP_referenced_vars.
3799 * tree-inline.c (remap_decl): Do not add referenced vars.
3800 (remap_gimple_op_r): Likewise.
3801 (copy_tree_body_r): Likewise.
3802 (copy_bb): Likewise.
3803 (setup_one_parameter): Likewise.
3804 (declare_return_variable): Likewise.
3805 (copy_decl_for_dup_finish): Likewise.
3806 (copy_arguments_for_versioning): Likewise.
3807 (tree_function_versioning): Likewise.
3808 * tree-pass.h (PROP_referenced_vars): Remove.
3809 (pass_referenced_vars): Likewise.
a6de48da
UB
3810 * tree-profile.c (gimple_gen_edge_profiler): Do not add
3811 referenced vars.
46eb666a
RG
3812 (gimple_gen_interval_profiler): Likewise.
3813 (gimple_gen_pow2_profiler): Likewise.
3814 (gimple_gen_one_value_profiler): Likewise.
3815 (gimple_gen_ic_profiler): Likewise.
3816 (gimple_gen_average_profiler): Likewise.
3817 (gimple_gen_ior_profiler): Likewise.
3818 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
3819 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
3820 (move_stmt_op): Likewise.
3821 * tree-ssa-operands.c (create_vop_var): Likewise.
3822 * gimple-low.c (record_vars_into): Likewise.
3823 * gimplify.c (gimple_regimplify_operands): Likewise.
3824 (force_gimple_operand_1): Likewise.
3825 * omp-low.c (expand_omp_for_generic): Likewise.
3826 (expand_omp_for_static_chunk): Likewise.
3827 (expand_omp_atomic_pipeline): Likewise.
3828 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
3829 (translate_clast_assignment): Likewise.
3830 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
3831 (handle_scalar_deps_crossing_scop_limits): Likewise.
3832 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3833 * ipa-split.c (split_function): Likewise.
3834 * matrix-reorg.c (transform_access_sites): Likewise.
3835 * trans-mem.c (tm_log_add): Likewise.
3836 (ipa_tm_insert_gettmclone_call): Likewise.
3837 * tree-complex.c (create_one_component_var): Likewise.
3838 * tree-if-conv.c (ifc_temp_var): Likewise.
3839 * tree-parloops.c (take_address_of): Likewise.
3840 (initialize_reductions): Likewise.
3841 (separate_decls_in_region_name): Likewise.
3842 (create_call_for_reduction_1): Likewise.
3843 (separate_decls_in_region): Likewise.
3844 * tree-predcom.c (predcom_tmp_var): Likewise.
3845 (reassociate_to_the_same_stmt): Likewise.
3846 * tree-sra.c (build_ref_for_offset): Likewise.
3847 (create_access_replacement): Likewise.
3848 (get_replaced_param_substitute): Likewise.
3849 (sra_ipa_reset_debug_stmts): Likewise.
3850 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
3851 (rewrite_bittest): Likewise.
3852 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
3853 * tree-ssa-loop-manip.c (create_iv): Likewise.
3854 (tree_transform_and_unroll_loop): Likewise.
3855 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
3856 (build_and_insert_call): Likewise.
3857 (gimple_expand_builtin_cabs): Likewise.
3858 (execute_optimize_bswap): Likewise.
3859 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
3860 (abs_replacement): Likewise.
3861 (cond_store_replacement): Likewise.
3862 (cond_if_else_store_replacement_1): Likewise.
3863 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3864 * tree-ssa-pre.c (get_representative_for): Likewise.
3865 (create_expression_by_pieces): Likewise.
3866 (insert_into_preds_of_block): Likewise.
3867 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
3868 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3869 (eliminate_redundant_comparison): Likewise.
3870 (rewrite_expr_tree_parallel): Likewise.
3871 (get_reassoc_pow_ssa_name): Likewise.
3872 * tree-ssa-strlen.c (get_string_length): Likewise.
3873 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3874 (build_arrays): Likewise.
3875 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
3876 (create_tailcall_accumulator): Likewise.
3877 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
3878 (vect_create_addr_base_for_vector_ref): Likewise.
3879 (vect_permute_store_chain): Likewise.
3880 (vect_permute_load_chain): Likewise.
3881 * tree-vect-generic.c (expand_vector_divmod): Likewise.
3882 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
3883 (vect_build_loop_niters): Likewise.
3884 (vect_generate_tmps_on_preheader): Likewise.
3885 (vect_update_ivs_after_vectorizer): Likewise.
3886 (vect_gen_niters_for_prolog_loop): Likewise.
3887 (vect_do_peeling_for_alignment): Likewise.
3888 (vect_create_cond_for_align_checks): Likewise.
3889 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
3890 (vect_handle_widen_op_by_const): Likewise.
3891 (vect_operation_fits_smaller_type): Likewise.
3892 (vect_recog_over_widening_pattern): Likewise.
3893 * tree-vect-stmts.c (vect_init_vector): Likewise.
3894
e7206ab1
AO
38952012-08-01 Alexandre Oliva <aoliva@redhat.com>
3896
3897 PR debug/52983
3898 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
3899
375e3d07
AO
39002012-08-01 Alexandre Oliva <aoliva@redhat.com>
3901
3902 PR debug/52983
3903 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
3904 falling back to copy_rtx on non-autoinc machines.
3905 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
3906
08df6c0d
AO
39072012-08-01 Alexandre Oliva <aoliva@redhat.com>
3908
3909 PR debug/52983
3910 * valtrack.h, valtrack.c: New.
3911 * Makefile.in (VALTRACK_H): New.
3912 (OBJS): Add valtrack.o.
3913 (valtrack.o): New.
3914 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
3915 * combine.c: Include valtrack.h.
3916 (make_compound_operation): Publish.
3917 (cleanup_auto_inc_dec): Move to valtrack.c.
3918 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
3919 (propagate_for_debug): Likewise. Add this_basic_block parameter.
3920 Adjust all callers.
3921 * cselib.c: Include valtrack.h.
3922 * dce.c: Likewise.
3923 * df-problems.c: Likewise.
3924 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
3925 (dead_debug_finish, dead_debug_add): Likewise.
3926 (dead_debug_insert_temp): Likewise.
3927 * df.h (struct dead_debug_use): Move to valtrack.h.
3928 (struct dead_debug, enum debug_temp_where): Likewise.
3929 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
3930 (dead_debug_finish, dead_debug_add): Likewise.
3931 (dead_debug_insert_temp): Likewise.
3932 * rtl.h (make_compound_operation): Declare.
3933
fdd195f4
CM
39342012-08-01 Catherine Moore <clm@codesourcery.com>
3935 Sandra Loosemore <sandra@codesourcery.com>
3936
fdd195f4
CM
3937 * config/mips/mips-cpus.def (34kn): New.
3938 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
3939 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
3940 * config/mips/mips-tables.opt: Regenerate.
3941 * doc/invoke.texi (MIPS Options): Document -march=34kn.
3942
91f8035e
RH
39432012-08-01 Richard Henderson <rth@redhat.com>
3944
3945 * expmed.h (NUM_MODE_PARTIAL_INT): New.
3946 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
3947 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
3948 (struct expmed_op_costs): Likewise.
3949 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
3950 (expmed_mode_index): New.
3951 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
3952 (convert_cost_ptr): Likewise.
3953 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
3954 (init_expmed_one_conv): Split out from ...
3955 (init_expmed_one_mode): ... here. Iterate conversions over
3956 partial integer modes too.
3957 (init_expmed): Iterate over partial integer modes too.
3958
92e014ca
RH
39592012-08-01 Richard Henderson <rth@redhat.com>
3960
3961 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
3962 (m32c_init_libfuncs): Remove.
3963 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
3964 (cstore<QHPSI>4): New expander.
3965
d94b820b
RG
39662012-08-01 Richard Guenther <rguenther@suse.de>
3967
3968 * tree-flow-inline.h (referenced_var): Remove.
3969 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
3970 checking code.
3971 * tree-sra.c (candidates): New global hashtable.
3972 (candidate): New function.
3973 (sra_initialize): Initialize candidates.
3974 (sra_deinitialize): Free candidates.
3975 (disqualify_candidate): Remove candidate from candidates.
3976 (maybe_add_sra_candidate): New function.
3977 (find_var_candidates): Walk over all local decls and parameters,
3978 add candidates to candidates hashtable.
3979 (find_param_candidates): Add candidates to candidates hashtable.
3980 (analyze_all_variable_accesses): Use candidate instead of
3981 referenced_var.
3982
8bb37e9a
TV
39832012-08-01 Tom de Vries <tom@codesourcery.com>
3984
3985 * tree-vrp.c (find_case_label_ranges): New function.
3986 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
3987 find_case_label_ranges instead of find_case_label_range. Handle second
3988 range.
3989
5f564b8f
MM
39902012-08-01 Michael Matz <matz@suse.de>
3991
3992 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
3993 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
3994 (dump_dfa_stats): Don't dump stats about var anns.
3995 (collect_dfa_stats): Don't collect them.
3996 (add_referenced_var_1): Don't set var annotation pointers.
3997 (remove_referenced_var): Ditto, and only remove it it's in the
3998 hash table.
3999
4000 * tree-flow-inline.h (var_ann): Remove.
4001 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
4002
4003 * tree-inline.c (remapped_type): Remove.
4004 (can_be_nonlocal): Most variable will be considered live here,
4005 return false earlier.
4006 (remap_decls): Don't call var_ann, all variables will be considered
4007 referenced here.
4008 (copy_debug_stmt): Ditto, and use is_global_var.
4009
4010 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
4011 determine if a variable was referred to, not var_ann.
4012 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
4013 (remove_unused_locals): Ditto.
4014 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
4015 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
4016 * tree.c (copy_node_stat): Don't clear var ann pointer.
4017 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
4018 ann member.
4019 (DECL_VAR_ANN_PTR): Remove.
4020
40212012-08-01 Michael Matz <matz@suse.de>
4022
4023 * tree-flow.h (struct var_ann_d): Rename used member.
4024 (set_is_used): Don't declare.
4025 * tree-flow-inline.h (clear_is_used): Remove.
4026 (set_is_used, is_used_p): Move to ...
4027 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
4028 on the side bitmap.
4029 (usedvars): New bitmap.
4030 (dump_scope_block): Don't dump unusedness.
4031 (remove_unused_locals): Allocate and free usedvars.
4032 * tree-nrv.c (tree_nrv): Don't clear used flags here.
4033
40342012-08-01 Michael Matz <matz@suse.de>
4035
4036 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
4037 base_index members.
4038 * tree-ssa-live.h (struct _var_map): Remove basevars member.
4039 (VAR_ANN_BASE_INDEX): Remove.
4040 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
4041 of var annotation to compress index space. Don't deal with above
4042 removed members.
4043 (var_map_base_fini): Don't free basevars.
4044 (init_var_map): Don't clear basevars.
4045
3cfd4469
BS
40462012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
4047
4048 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
4049 base_name to base_expr.
4050 (struct cand_chain_d): Likewise.
4051 (base_cand_hash): Likewise.
4052 (base_cand_eq): Likewise.
4053 (record_potential_basis): Likewise.
4054 (alloc_cand_and_find_basis): Likewise.
4055 (create_mul_ssa_cand): Likewise.
4056 (create_mul_imm_cand): Likewise.
4057 (create_add_ssa_cand): Likewise.
4058 (create_add_imm_cand): Likewise.
4059 (slsr_process_cast): Likewise.
4060 (slsr_process_copy): Likewise.
4061 (dump_candidate): Likewise.
4062 (base_cand_dump_callback): Likewise.
4063 (unconditional_cands_with_known_stride_p): Likewise.
4064 (cand_increment): Likewise.
4065
2749c8f6
BS
40662012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
4067
4068 PR tree-optimization/46556
4069 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
4070 (base_cand_map): Change to hash table.
4071 (base_cand_hash): New function.
4072 (base_cand_free): Likewise.
4073 (base_cand_eq): Likewise.
4074 (lookup_cand): Change base_cand_map to hash table.
4075 (find_basis_for_candidate): Likewise.
4076 (base_cand_from_table): Exclude CAND_REF.
4077 (restructure_reference): New function.
4078 (slsr_process_ref): Likewise.
4079 (find_candidates_in_block): Call slsr_process_ref.
4080 (dump_candidate): Handle CAND_REF.
4081 (base_cand_dump_callback): New function.
4082 (dump_cand_chains): Change base_cand_map to hash table.
4083 (replace_ref): New function.
4084 (replace_refs): Likewise.
4085 (analyze_candidates_and_replace): Call replace_refs.
4086 (execute_strength_reduction): Change base_cand_map to hash table.
4087
85add0cf
UB
40882012-08-01 Uros Bizjak <ubizjak@gmail.com>
4089
4090 * config/i386/i386.c (ix86_address_subreg_operand): Reject
4091 stack pointer.
4092 (ix86_print_operand_address): Assert that parts.base and parts.index
4093 are non-NULL after call to simplify_subreg.
4094
1491b564
RG
40952012-08-01 Richard Guenther <rguenther@suse.de>
4096
4097 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
4098
525174a2
RG
40992012-08-01 Richard Guenther <rguenther@suse.de>
4100
4101 * graphite-clast-to-gimple.c (translate_clast_user): Rename
4102 virtual operands.
4103 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
4104 operands here.
4105 * tree-call-cdce.c (tree_call_cdce): Use
4106 mark_virtual_operands_for_renaming.
4107 * tree-eh.c (sink_clobbers): Simplify.
4108 * tree-flow.h (mark_sym_for_renaming): Remove.
4109 (mark_virtual_operands_for_renaming): New function.
4110 * tree-if-conv.c (tree_if_conversion): Use
4111 mark_virtual_operands_for_renaming.
4112 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
4113 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
4114 (mark_virtual_operands_for_renaming): New function.
4115 * tree-loop-distribution.c (tree_loop_distribution): Use
4116 mark_virtual_operands_for_renaming.
4117 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
4118 update stmts, use mark_virtual_operands_for_renaming.
4119 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
4120 (replace_block_by): Adjust.
4121 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
4122 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
4123 mark_virtual_operands_for_renaming.
4124 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
4125 * tree-vectorizer.c (vectorize_loops): Likewise.
4126
13714310
RG
41272012-08-01 Richard Guenther <rguenther@suse.de>
4128
4129 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
4130 add ssa_renaming_needed and rename_vops flags.
4131 (SYMS_TO_RENAME): Remove.
4132 (symbol_marked_for_renaming): Likewise.
4133 (mark_virtual_ops_for_renaming): Likewise.
4134 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
4135 New globals.
4136 (mark_for_renaming, marked_for_renaming): New functions.
4137 (symbol_marked_for_renaming): Remove.
4138 (dump_currdefs): Adjust.
4139 (maybe_replace_use): Likewise.
4140 (maybe_replace_use_in_debug_stmt): Likewise.
4141 (maybe_register_def): Likewise.
4142 (rewrite_update_phi_arguments): Likewise.
4143 (rewrite_update_enter_block): Likewise.
4144 (fini_ssa_renamer): Clear update SSA status here ...
4145 (delete_update_ssa): ... not here. Free rename set.
4146 (prepare_block_for_update): Compute which decls need renaming.
4147 (dump_update_ssa): Adjust.
4148 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
4149 (need_ssa_update_p): Adjust.
4150 (insert_updated_phi_nodes_for): Likewise.
4151 (update_ssa): Likewise.
4152 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
4153 for virtual and real operands.
4154 (finalize_ssa_uses): Likewise.
4155 * tree-ssanames.c (init_ssanames): Adjust.
4156 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
4157 execute_update_addresses_taken): Add bitmap to keep track of which
85add0cf 4158 candidates are suitable for rewriting and later renaming by SSA update.
13714310 4159 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
85add0cf
UB
4160 * tree-dfa.c (make_rename_temp): Do not mark real operands for
4161 renaming.
13714310
RG
4162 * cgraphunit.c (assemble_thunk): Likewise.
4163 * gimplify.c (gimple_regimplify_operands): Likewise.
4164 (force_gimple_operand_1): Likewise.
4165 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4166 * tree-inline.c (declare_return_variable): Likewise.
4167 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
4168 mark_virtual_ops_for_renaming.
4169 (create_stores_for_reduction): Likewise.
4170 (create_loads_and_stores_for_name): Likewise.
4171 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
4172 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
4173 (execute_load_motion): Likewise.
4174 (remove_stmt): Likewise.
4175 (execute_pred_commoning_chain): Likewise.
85add0cf 4176 * tree-sra.c (create_access_replacement): Do not rename real operands.
13714310
RG
4177 (get_unrenamed_access_replacement): Unify with ...
4178 (get_access_replacement): ... this.
4179 (get_repl_default_def_ssa_name): Adjust.
4180 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
4181 virtual SSA form.
4182 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
4183 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
4184
b3e8a0d2
DD
41852012-07-31 DJ Delorie <dj@redhat.com>
4186
4187 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
4188 extensions for TPF, unless specifically selected.
4189
7099ce06
AM
41902012-08-01 Alan Modra <amodra@gmail.com>
4191
4192 PR target/54131
4193 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
4194 of lo_sum offsets. Comment. Assert mode at least word size
4195 rather than bypassing powerpc64 word offset check.
4196
fdc43210
BS
41972012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
4198
4199 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
4200 costs for vec_perm and vec_promote_demote down to more natural values.
4201 (struct _rs6000_cost_data): New data structure.
4202 (rs6000_density_test): New function.
4203 (rs6000_init_cost): Change to use rs6000_cost_data.
4204 (rs6000_add_stmt_cost): Likewise.
4205 (rs6000_finish_cost): Perform density test when vectorizing a loop.
4206
ab6d55ef
SB
42072012-07-31 Steven Bosscher <steven@gcc.gnu.org>
4208
4209 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
4210 of RTX_UNARY function-like operations. Print unknown expression
4211 RTX classes as pseudo-functions.
4212 (print_pattern): Simplify return pattern printing.
4213 (dump_insn_slim): Print the value of notes as a pattern for proper
4214 printing of CFA notes.
4215
aa36f90b
DC
42162012-07-31 Dehao Chen <dehao@google.com>
4217
4218 * predict.c (tree_estimate_probability_driver): Normalize the
4219 loop when initializing the loop optimizer.
4220
b4e209fd
RG
42212012-07-31 Richard Guenther <rguenther@suse.de>
4222
4223 * tree-flow.h (struct var_ann_d): Remove need_phi_state
4224 and current_def members.
4225 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
4226 (def_blocks): Remove.
4227 (struct var_info_d): New.
4228 (var_infos): New hashtable.
4229 (struct ssa_name_info): Add def_blocks member.
4230 (get_ssa_name_ann): Adjust.
4231 (get_var_info): New function.
4232 (get_phi_state, set_phi_state, get_current_def,
4233 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
4234 (insert_phi_nodes_compare_def_blocks): Rename to ...
4235 (insert_phi_nodes_compare_var_infos): ... this and adjust.
4236 (insert_phi_nodes): Adjust.
4237 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
4238 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
4239 (debug_def_blocks_r): Rename to ...
4240 (debug_var_infos_r): ... this and adjust.
4241 (var_info_hash): New function.
4242 (var_info_eq): Likewise.
4243 (rewrite_blocks): Adjust.
4244 (init_ssa_renamer): Likewise.
4245 (fini_ssa_renamer): Likewise.
4246 (delete_update_ssa): Likewise.
4247 (update_ssa): Likewise.
85add0cf 4248 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
b4e209fd 4249
3393a711
BS
42502012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
4251
4252 PR tree-optimization/53773
4253 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
4254 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
4255 * tree-vect-loop.c (new_loop_vec_info): Initialize
4256 LOOP_VINFO_OPERANDS_SWAPPED field.
4257 (destroy_loop_vec_info): Restore canonical form.
4258 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
4259 (vect_is_simple_reduction_1): Likewise.
4260
8c503f0d
SB
42612012-07-31 Steven Bosscher <steven@gcc.gnu.org>
4262
4263 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
4264 start of each new line.
4265 * final.c (final_scan_insn): If the final dump is requested as
4266 slim RTL, dump slim RTL to the assembly file also.
4267
0d4acd90
AB
42682012-07-31 Andrey Belevantsev <abel@ispras.ru>
4269
4270 PR target/53975
85add0cf
UB
4271
4272 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
0d4acd90
AB
4273
4274 Revert
4275 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
4276
4277 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4278 only if producer writes to the register given by regno.
4279
4adf72f1
NC
42802012-07-31 Nick Clifton <nickc@redhat.com>
4281
315bdf71
NC
4282 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
4283 support for reporting stack usage.
4284
4adf72f1 4285 * config/frv/frv.c (QUAD): Fix typo.
7027164c 4286 (frv_expand_prologue): Report stack usage.
4adf72f1 4287
3ad45f7f
SB
42882012-07-31 Steven Bosscher <steven@gcc.gnu.org>
4289
4290 PR pch/53880
4291 * gengtype.c (struct walk_type_data): Add have_this_obj field.
4292 (walk_type): For functions that take a this_obj argument and
4293 that process fields with a GTY((length)) argument, write the
4294 test that write_types_local_process_field will write also at the
4295 head of the loop, effectively unswitching the loop.
4296 (write_func_for_structure, write_local_func_for_structure): Clear
4297 have_this_obj before calling walk_type.
4298 (write_local_func_for_structure): Set have_this_obj before walk_type.
4299 (write_array): Set have_this_obj for output of local pointer walking
4300 functions but not for marker functions.
4301 (write_types_local_process_field): Assert have_this_obj is set.
4302
4303 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
4304 from coretypes.h.
4305
b0f6b612
NF
43062012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
4307
4308
4309 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4310 * targhooks.c (default_mode_dependent_address_p): Delete code
4311 for GO_IF_MODE_DEPENDENT_ADDRESS.
4312 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
4313 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
4314 * doc/tm.texi: Regenerate.
4315 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
4316 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
4317 function.
4318 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4319 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4320 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4321 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
4322 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4323 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
4324 Take a const_rtx.
4325 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4326
2a261cd3
NF
43272012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
4328
4329 * expmed.h (NUM_MODE_VECTOR_INT): Define.
4330 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
4331 (struct target_expmed): Convert x_mul_highpart_cost and
4332 x_mul_widen_cost fields to be indexed by integer modes.
4333 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
4334 of type struct expmed_op_cheap. Convert other cost fields to be
4335 of type struct_expmed_op_costs.
4336 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
4337 indexing of respective fields.
4338 (expmed_op_cheap_ptr): New function.
4339 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
4340 (expmed_op_cost_ptr): New function.
4341 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
4342 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
4343 sdiv_cost_ptr, udiv_cost_ptr): Call it.
4344
3df0998b
SL
43452012-07-30 Sandra Loosemore <sandra@codesourcery.com>
4346 Julian Brown <julian@codesourcery.com>
4347
4348 * doc/invoke.texi (MIPS Options): Document -mno-float.
4349 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
4350 about -mno-float.
4351
9a99299d
JM
43522012-07-30 Joseph Myers <joseph@codesourcery.com>
4353
85add0cf 4354 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
9a99299d 4355
caf62455
JDA
43562012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4357
4358 PR middle-end/53823
4359 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
4360 for special cases. Don't initialize coeff and is_neg.
4361
5aea1e76
UW
43622012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
4363 Richard Earnshaw <rearnsha@arm.com>
4364
4365 * target.def (vector_alignment): New target hook.
4366 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
4367 * doc/tm.texi: Regenerate.
4368 * targhooks.c (default_vector_alignment): New function.
4369 * targhooks.h (default_vector_alignment): Add prototype.
4370 * stor-layout.c (layout_type): Use targetm.vector_alignment.
4371 * config/arm/arm.c (arm_vector_alignment): New function.
4372 (TARGET_VECTOR_ALIGNMENT): Define.
4373
4374 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
4375 vector type alignment instead of size.
4376 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
4377 element type size directly instead of computing it from alignment.
4378 Fix variable naming and comment.
4379
4c340b5d
KY
43802012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
4381 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4382
4383 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
4384 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
4385 (ix86_handle_option): Handle mrdseed option.
4386 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
4387 (x86_64-*-*): Likewise.
4388 * config/i386/prfchwintrin.h: New header.
4389 * config/i386/cpuid.h (bit_RDSEED): New.
4390 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4391 RDSEED support.
4392 * config/i386/i386-c.c: Define __RDSEED__ if needed.
85add0cf 4393 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
4c340b5d
KY
4394 (PTA_RDSEED): New.
4395 (ix86_option_override_internal): Handle new option.
4396 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
4397 (ix86_builtins): Add enum entries for RDSEED* builtins.
4398 (ix86_init_mmx_sse_builtins): Define new builtins.
4399 (ix86_expand_builtin): Expand RDSEED* builtins.
4400 * config/i386/i386.h (TARGET_RDSEED): New.
4401 * config/i386/i386.md (rdseed<mode>_1): New.
4402 * config/i386/i386.opt (mrdseed): New.
4403 * config/i386/x86intrin.h: Include rdseedintrin.h.
4404
39c58b3a
RG
44052012-07-30 Richard Guenther <rguenther@suse.de>
4406
4407 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
4408 (rewrite_stmt): Likewise.
4409 (rewrite_enter_block): Likewise.
4410 (pass_build_ssa): Do not update virtual SSA form during TODO.
4411 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
4412 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
4413
974f90ba
OE
44142012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
4415
4416 PR target/39423
85add0cf
UB
4417 * config/gcc/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
4418 insns.
974f90ba 4419
be8cbce1
OE
44202012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
4421
4422 PR target/51244
4423 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
4424 Use t_reg_operand predicate. Add split for negated case.
4425 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
4426 * config/sh/sh.c (expand_ashiftrt): Likewise.
4427
be82afe6
OE
44282012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
4429
4430 PR target/54089
4431 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
4432 of trying to emit ashlsi3_n.
4433
c0fd3497
LB
44342012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4435 Steven Bosscher <steven@gcc.gnu.org>
4436
4437 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
85add0cf 4438 option applications and option being applied to arrays of atomic types.
c0fd3497
LB
4439 (walk_type): Allow "atomic" option on strings too.
4440 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
4441 for the array field.
4442 * vec.h: Describe the atomic object "A" type of the macros in
4443 the header comment.
4444 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
85add0cf 4445 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
c0fd3497
LB
4446 * doc/gty.texi: Clarify that GTY option "length" is only for
4447 arrays of non-atomic objects. Fix typo in the description of the
4448 "atomic" option.
4449
61c7941c
UB
44502012-07-27 Uros Bizjak <ubizjak@gmail.com>
4451
4452 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
4453 zero-extended addresses. Return false if the address has less
4454 than two components.
4455 (ix86_split_lea_for_addr): Unconditionally convert target and
4456 all address operands to requested mode.
4457 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
4458 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
4459 address.
4460 (zero-extended add splitter): New splitter to conditionally split
4461 non-destructive adds.
4462 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
4463
6ad58e82
AM
44642012-07-28 Alan Modra <amodra@gmail.com>
4465
4466 PR target/54093
4467 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
4468 multi-gpr reload to cases where predicate passes. Do the same for
4469 64-bit multi-gpr reload.
4470
5322d07e
NF
44712012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
4472
4473 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
4474 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
4475 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
4476 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
4477 macro definitions and re-purpose as inline functions.
4478 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
4479 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
4480 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
4481 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
4482 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
4483 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
4484 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
4485 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
4486 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
4487 New functions.
4488 (convert_cost_ptr): New function, split out from...
4489 (set_convert_cost, convert_cost): ...here.
4490 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
4491 * gimple-ssa-strength-reduction.c: Likewise.
4492
ccbc132f
RM
44932012-07-20 Ryan Mansfield <rmansfield@qnx.com>
4494
4495 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
4496 diagnostic_initialize.
4497
ebe0dd38
OE
44982012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
4499
4500 PR target/54089
5322d07e 4501 * config/sh/sh.c (shiftcosts): Remove case where first operand
ebe0dd38
OE
4502 is a const_int. Move COSTS_N_INSNS usage into caller ...
4503 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
4504 calculated instead of MAX_COST.
4505
891f2df6
RG
45062012-07-27 Richard Guenther <rguenther@suse.de>
4507
4508 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
4509 check whether SSA form is not up-to-date.
4510 * tree-flow.h (name_mappings_registered_p): Remove.
4511 * tree-into-ssa.c (struct repl_map_d): Remove.
4512 (repl_tbl): Likewise.
4513 (struct ssa_name_info): Add repl_set member.
4514 (update_ssa_obstack): New static global.
4515 (get_ssa_name_ann): Initialize repl_set.
4516 (clear_ssa_name_info): Assert age did not wrap.
4517 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
4518 (names_replaced_by): Adjust.
4519 (add_to_repl_tbl): Likewise.
4520 (dump_tree_ssa_stats): Likewise.
4521 (init_update_ssa): Initialize update_ssa_obstack.
4522 (delete_update_ssa): Free update_ssa_obstack.
4523 (name_mappings_registered_p): Remove.
4524 (update_ssa): Adjust.
4525
462f7901
SB
45262012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
4527
4bf02aaf
UB
4528 * config/rs6000/constraints.md: Delete "q" constraint.
4529 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
4530 Delete the "q" alternative.
4531 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
4532 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
4533 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
4534 adjust to MQ_REGNO removal.
4535 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
4536 comment.
4537 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
4538 (enum reg_class): Adjust comment. Delete MQ_REGS.
4539 (REG_CLASS_CONTENTS): Adjust.
4540 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
4541 * config/rs6000/rs6000.md: Delete MQ_REGNO.
4542 (movsi_internal1, movsi_internal1_single, movhi_internal,
4543 movqi_internal, movcc_internal1, movsf_hardfloat,
4544 movsf_softfloat): Delete the "q" alternative.
4545 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
4546 ctr<mode>_internal6): Delete "q" constraint.
462f7901 4547
d9ed2fbd
RG
45482012-07-27 Richard Guenther <rguenther@suse.de>
4549
4550 * tree-into-ssa.c (def_blocks_p): New typedef.
4551 (insert_phi_nodes_compare_def_blocks): New function.
4552 (insert_phi_nodes): Do not walk over referenced vars, instead
4553 walk over recorded def_blocks, record relevant ones and sort
4554 them to avoid repeated hashtable lookups.
4555
cf3791ae
RG
45562012-07-27 Richard Guenther <rguenther@suse.de>
4557
4558 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
4559 Remove param documentation.
4560 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
4561 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
4562 * tree-flow.h (mark_set_for_renaming): Remove.
4563 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
4564 (add_new_name_mapping): Remove bookkeeping code.
4565 (dump_update_ssa): Remove stats dumping code.
4566 (init_update_ssa): Remove stats allocation code.
4567 (delete_update_ssa): Remove stats freeing code.
4568 (mark_set_for_renaming): Remove.
4569 (switch_virtuals_to_full_rewrite_p): Likewise.
4570 (switch_virtuals_to_full_rewrite): Likewise.
4571 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
4572
047ae098
MP
45732012-07-27 Marek Polacek <polacek@redhat.com>
4574
4575 * cgraphunit.c: Rename varpool_finalize_variable to
4576 varpool_finalize_decl in a comment.
4577
c28a7c24
SB
45782012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
4579
4580 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
4581 Delete code for -mno-power, -mpower, and -mpower2.
4582 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
4583 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
4584 with -maix64.
4585 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
4586 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
4587 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
4588 with -maix64.
4589 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
4590 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
4591 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
4592 with -maix64.
4593 (TARGET_POWER): Delete.
4594 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
4595 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
4596 with -maix64.
4597 (TARGET_POWER): Delete.
4598 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
4599 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
4600 with -maix64.
4601 (TARGET_POWER): Delete.
4602 * config/rs6000/darwin.h (TARGET_POWER): Delete.
4603 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
4604 support for -mpower, -mpower2, and -mno-power.
4605 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4606 Likewise.
4607 (rs6000_cpu_cpp_builtins): Likewise.
4608 * config/rs6000/rs6000-cpus.def: Likewise.
4609 * config/rs6000/rs6000-tables.opt: Regenerate.
4610 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
4611 (rs6000_option_override_internal): Adjust.
4612 (rs6000_conditional_register_usage): Adjust.
4613 (rs6000_emit_move): Adjust.
4614 (rs6000_common_init_builtins): Adjust.
4615 (rs6000_init_libfuncs): Adjust.
4616 (rs6000_output_function_prologue): Adjust.
4617 (rs6000_adjust_cost): Adjust.
4618 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
4619 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
4620 POWER and POWER2.
4621 (TARGET_DEFAULT): Adjust.
4622 (PROCESSOR_POWER): Delete.
4623 (SHIFT_COUNT_TRUNCATED): Adjust.
4624 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
4625 (extendqisi2_power): Delete.
4626 (extendqisi2_no_power): Adjust.
4627 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
4628 Likewise.
4629 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
4630 (anonymous doz insn patterns): Delete.
4631 (abssi2): Adjust.
4632 (abssi2_power): Delete.
4633 (abssi2_nopower): Adjust.
4634 (nabs_power, nabs_nopower): Likewise.
4635 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
4636 Likewise. Delete anonymous post-reload splitter.
4637 (mulsi3_no_mq_internal1): rename to...
4638 (mulsi3_internal1): New define_insn.
4639 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
4640 Likewise.
4641 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
4642 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
4643 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
4644 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
4645 quous_call): Likewise.
4646 (maskir_internal1, maskir_internal2, maskir_internal3,
4647 maskir_internal4, maskir_internal5, maskir_internal6,
4648 maskir_internal7, maskir_internal8): Delete.
4649 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
4650 (anonymous sl insn patterns): Delete.
4651 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
4652 (lshrsi3_64): Adjust.
4653 (anonymous sr insn patterns): Delete.
4654 (anonymous rrib insn patterns): Delete.
4655 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
4656 (anonymous sra insn patterns): Delete.
4657 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
4658 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
4659 fctiwz_<mode>): Adjust.
4660 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
4661 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
4662 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
4663 umulsi3_highpart_no_mq): Adjust.
4664 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
4665 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
4666 lshrdi3_internal1): Adjust.
4667 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
4668 (movti_power): Delete.
4669 (movti_string): Adjust.
4670 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
4671 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
4672 stmsi4_power, stmsi3_power): Delete.
4673 (anonymous movmemsi insn patterns): Adjust.
4674 (lfq_power2, stfq_power2): Delete.
4675 (eq<mode>, eq<mode>_compare): Adjust.
4676 (eqsi_power): Delete.
4677 (ne0si): Adjust.
4678 (anonymous le, lt, ge, gt insn patterns): Delete.
4679 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
4680 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
4681 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4682 MULTILIB_MATCHES): Adjust.
4683 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
4684 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
4685 Delete -mcpu=power and -mcpu=power2 documentation.
4686
f3061fa4
SB
46872012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
4688
4689 * config/rs6000/601.md: New file.
4690 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
4691 RIOS CPUs.
4692 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
4693 * config/rs6000/driver-rs6000.c (detect_processor_aix,
4694 struct asm_names): Likewise.
4695 * config/rs6000/rios1.md: Delete file.
4696 * config/rs6000/rios2.md: Delete file.
4697 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
4698 CPUs.
4699 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
4700 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
4701 * config/rs6000/rs6000-tables.opt: Regenerated.
4702 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
4703 Delete.
4704 (rs6000_option_override_internal): Delete support for RIOS CPUs.
4705 (rs6000_conditional_register_usage): Adjust comment.
4706 (rs6000_issue_rate):Delete support for RIOS CPUs.
4707 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
4708 RIOS CPUs.
4709 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
4710 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
4711 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
4712 and rios2.
4713 (include "rios1.md", include "rios2.md"): Delete.
4714 (include "601.md"): New.
4715 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
4716 PROCESSOR_PPC603.
4717 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
4718 for RIOS CPUs.
4719 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
4720 rios2.md . Add 601.md .
4721
e45abe1f
RH
47222012-07-26 Richard Henderson <rth@redhat.com>
4723
4724 * doc/extend.texi (attribute): Document hot/cold for labels.
4725 * predict.c (tree_estimate_probability_bb): Handle hot/cold
4726 attributes on user labels.
4727 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
4728
27ec0502
AJ
47292012-07-26 Andrew Jenner <andrew@codesourcery.com>
4730 Sandra Loosemore <sandra@codesourcery.com>
4731
4732 * cse.c (find_comparison_args): Check for cycles of any length.
4733
e902c266
NC
47342012-07-26 Nick Clifton <nickc@redhat.com>
4735
4736 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
4737 (mn10300_get_live_callee_saved_regs): If requested return a count
4738 of the number of bytes in the mask.
4739 (mn10300_expand_prologue): Add argument to invocation of
4740 mn10300_get_live_callee_regs.
4741 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
4742 mn10300_get_live_callee_saved_regs.
4743 (mn10300_initial_offset): Likewise.
4744 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
4745 Update prototype.
4746 * config/mn10300/mn10300.md (return_ret): Add argument to
4747 invocation of mn10300_get_live_callee_saved_regs.
4748
d38933a0
SB
47492012-07-26 Steven Bosscher <steven@gcc.gnu.org>
4750
4751 PR regression/54084
4752 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
4753 pointer difference check.
4754
6dd8f4bb
BS
47552012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
4756
4757 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
4758 (mbc_entry_eq): Likewise.
4759 (mult_costs): Likewise.
4760 (cost_tables_exist): Likewise.
4761 (initialize_costs): Likewise.
4762 (finalize_costs): Likewise.
4763 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
4764 (add_regs_cost): Remove.
4765 (multiply_regs_cost): Likewise.
4766 (add_const_cost): Likewise.
4767 (extend_or_trunc_reg_cost): Likewise.
4768 (negate_reg_cost): Likewise.
4769 (struct mbc_entry): Likewise.
4770 (multiply_by_const_cost): Likewise.
4771 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
4772 change multiply_by_const_cost to mult_by_coeff_cost.
4773 (force_expr_to_var_cost): Likewise.
4774 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
4775 (get_computation_cost_at): Change add_regs_cost calls to add_cost
4776 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
4777 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
4778 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
4779 * tree-ssa-address.c (expmed.h): New #include.
4780 (most_expensive_mult_to_index): Change multiply_by_const_cost to
4781 mult_by_coeff_cost.
4782 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
4783 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
4784 neg_cost, and convert_cost instead of IVOPTS interfaces.
4785 (execute_strength_reduction): Remove calls to initialize_costs and
4786 finalize_costs.
4787 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
4788 (init_expmed_one_mode): Initialize convert rtx_def; initialize
4789 x_convert_cost for related modes.
4790 (mult_by_coeff_cost): New function.
4791 * expmed.h (NUM_MODE_INT): New #define.
4792 (struct target_expmed): Add x_convert_cost matrix.
4793 (set_convert_cost): New inline function.
4794 (convert_cost): Likewise.
4795 (mult_by_coeff_cost): New extern decl.
4796 * tree-flow.h (initialize_costs): Remove decl.
4797 (finalize_costs): Likewise.
4798 (multiply_by_const_cost): Likewise.
4799 (add_regs_cost): Likewise.
4800 (multiply_regs_cost): Likewise.
4801 (add_const_cost): Likewise.
4802 (extend_or_trunc_reg_cost): Likewise.
4803 (negate_reg_cost): Likewise.
4804 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
4805 (tree-ssa-address.o): Update dependencies.
4806
0263463d
SB
48072012-07-26 Steven Bosscher <steven@gcc.gnu.org>
4808
4809 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
4810 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
4811 (TEST_BIT): Make a static inline function for stronger type checking.
4812 (SET_BIT): Don't handle sbitmaps with popcount.
4813 (RESET_BIT): Likewise.
4814 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
4815 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
4816 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
4817 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
4818 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
4819 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
4820 * sparseset.h: Add explanation of sparse set representation.
4821
2f33158f
RG
48222012-07-26 Richard Guenther <rguenther@suse.de>
4823
4824 PR tree-optimization/54098
4825 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
4826 original range was UNDEFINED.
4827
da7d74c2
RR
48282012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4829
4830 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
4831 vld1Q_dupu64 tests.
4832
f34ee0b2
OE
48332012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
4834
4835 PR target/51244
4836 * config/sh/sh.opt (mzdcbranch): New option.
4837 * doc/invoke.texi: Document it.
4838 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
4839 instead of TARGET_HARD_SH4.
4840 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
4841 for TARGET_HARD_SH4.
4842
d8a48c21
OE
48432012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
4844
4845 PR target/54089
4846 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
4847 case.
4848 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
4849 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
4850 from expander. Do not emit shift insn for not-SHMEDIA case.
4851 (ashlsi3_std): Replace with ...
4852 (ashlsi3_k, ashlsi3_d): ... these new insns.
4853 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
4854 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
4855 (gen_ashift_hi): Make static.
4856 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
4857 declaration.
4858
b0c724c2
BS
48592012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
4860 Jim Wilson <jimwilso@cisco.com>
4861
4862 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
4863 TARGET_BIG_ENDIAN_DEFAULT.
4864
f778c049
EB
48652012-07-25 Eric Botcazou <ebotcazou@adacore.com>
4866
4867 * gimple-low.c (lower_try_catch): New function.
4868 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
4869 <GIMPLE_CATCH>: Delete.
4870 <GIMPLE_EH_FILTER>: Likewise.
4871
ea814c66
EB
48722012-07-25 Eric Botcazou <ebotcazou@adacore.com>
4873
4874 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
4875 of BIT_FIELD_REF for ignored results.
4876 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
4877 CONSTRUCTOR has vector type before using vector accessors on it.
4878 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
4879 #2 of BIT_FIELD_REF.
4880 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
4881 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
4882 not process operand #1 and #2.
4883 (convert_local_reference_op): Likewise.
4884 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
4885 breaks throughout.
4886 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
4887 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
4888 operand #1 and #2.
4889 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
4890 (build6_stat): Delete.
4891 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
4892
933a2c39
MG
48932012-07-25 Marc Glisse <marc.glisse@inria.fr>
4894
4895 PR tree-optimization/30318
4896 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
4897 Handle __int128.
4898 [MINUS_EXPR]: Merge with PLUS_EXPR.
4899
d45eae79
SL
49002012-07-25 Sandra Loosemore <sandra@codesourcery.com>
4901 Paul Brook <paul@codesourcery.com>
4902
4903 PR target/53633
d45eae79
SL
4904 * target.def (warn_func_return): New hook.
4905 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
4906 * doc/tm.texi: Regenerate.
4907 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4908 naked_functions.
4909 * ipa-pure-const.c (warn_function_noreturn): Check
4910 targetm.warn_func_return.
4911 * tree-cfg.c (execute_warn_function_return): Likewise.
4912 * config/spu/spu.c (spu_warn_func_return): New.
4913 (TARGET_WARN_FUNC_RETURN): Define.
4914 * config/rx/rx.c (rx_warn_func_return): New.
4915 (TARGET_WARN_FUNC_RETURN): Define.
4916 * config/avr/avr.c (avr_warn_func_return): New.
4917 (TARGET_WARN_FUNC_RETURN): Define.
4918 * config/arm/arm.c (arm_warn_func_return): New.
4919 (TARGET_WARN_FUNC_RETURN): Define.
4920 * config/mcore/mcore.c (mcore_warn_func_return): New.
4921 (TARGET_WARN_FUNC_RETURN): Define.
4922 (saved_warn_return_type, saved_warn_return_type_count): Remove.
4923 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
4924
d1658619
SP
49252012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
4926
4927 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
4928 function to implement assembler dialects.
4929 (output_asm_insn): Use do_assembler_dialects.
4930 (asm_fprintf): Likewise.
4931
5714c34f
RH
49322012-07-25 Richard Henderson <rth@redhat.com>
4933
4934 PR bootstrap/54092
4935 * libfuncs.h: Don't include optabs.h.
4936 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
4937 * optabs.c (hash_libfunc): Don't cast members to int.
4938 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
4939
229ecb89
DS
49402012-07-25 Dodji Seketeli <dodji@redhat.com>
4941
4942 * basic-block.c: Fix typo in comment.
4943
e61c94dd
KY
49442012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
4945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4946
f2962e2d
OE
4947 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
4948 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
4949 (ix86_handle_option): Handle mprfchw option.
4950 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
4951 (x86_64-*-*): Likewise.
4952 * config/i386/prfchwintrin.h: New header.
4953 * config/i386/cpuid.h (bit_PRFCHW): New.
4954 (bit_BMI): Formatting fix.
4955 (bit_HLE): Likewise.
4956 (bit_RTM): Likewise.
4957 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4958 PREFETCHW support.
4959 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
4960 * config/i386/i386.c (ix86_target_string): Define
4961 -mprfchw option. Formatting fixes.
4962 (PTA_HLE): Formatting fix.
4963 (PTA_PRFCHW): New.
4964 (ix86_option_override_internal): Handle new option.
4965 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
4966 * config/i386/i386.h (TARGET_PRFCHW): New.
4967 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
4968 * config/i386/i386.opt (mprfchw): New.
4969 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
4970 * config/i386/x86intrin.h: Include prfchwintrin.h.
e61c94dd 4971
4bd5abca
SM
49722012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
4973
4974 * config/i386/i386.md (stack_protect_set): Disable the pattern
4975 for Android since Android libc (bionic) does not provide random
4976 value for stack protection guard at gs:0x14. Guard value
4977 will be provided from external symbol (default implementation).
4978 (stack_protect_set_<mode>): Likewise.
4979 (stack_protect_test): Likewise.
4980 (stack_protect_test_<mode>): Likewise.
4981 * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
4982 not have Bionic by default
4983 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
4984 Macro OPTION_BIONIC is defined in this file and provides Bionic
4985 accessibility status
4986
3e31cf28
SB
49872012-07-25 Steven Bosscher <steven@gcc.gnu.org>
4988
4989 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
4990
49912012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4992
e32bfc16
VK
4993 btver2 Enablement
4994 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
4995 (case ${target}): Add btver2.
4996 * config/i386/driver-i386.c (host_detect_local_cpu): Let
4997 -march=native recognize btver2 processors.
4998 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4999 btver2 def_and_undef
5000 * config/i386/i386.c (struct processor_costs btver2_cost): New
5001 btver2 cost table.
5002 (m_BTVER2): New definition.
5003 (m_AMD_MULTIPLE): Includes m_BTVER2.
5004 (initial_ix86_tune_features): Add btver2 tune.
5005 (processor_target_table): Add btver2 entry.
5006 (static const char *const cpu_names): Add btver2 entry.
5007 (software_prefetching_beneficial_p): Add btver2.
5008 (ix86_option_override_internal): Add btver2 instruction sets.
5009 (ix86_issue_rate): Add btver2.
5010 (ix86_adjust_cost): Add btver2.
5011 * config/i386/i386.h (TARGET_BTVER2): New definition.
5012 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
5013 (enum processor_type): Add PROCESSOR_BTVER2.
5014 * config/i386/i386.md (define_attr "cpu"): Add btver2.
5015
92345349
BS
50162012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
5017
5018 * doc/tm.texi: Regenerate.
5019 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
5020 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
5021 (default_finish_cost): Add prologue and epilogue costs.
5022 * targhooks.h (default_add_stmt_cost): Change parameter list.
5023 (default_finish_cost): Likewise.
5024 * target.def (init_cost): Change documentation string.
5025 (add_stmt_cost): Change documentation string and parameter list.
5026 (finish_cost): Likewise.
5027 * target.h (vect_cost_model_location): New enum.
5028 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
5029 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
5030 to body_cost_vec.
5031 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
5032 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
5033 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
5034 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
5035 body_cost_vec.
5036 (struct _stmt_vec_info): Remove cost substruct.
5037 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
5038 (stmt_vinfo_set_outside_of_loop_cost): Remove.
5039 (builtin_vectorization_cost): New function.
5040 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
5041 (add_stmt_cost): Change parameter list.
5042 (finish_cost): Likewise.
5043 (vect_model_simple_cost): Likewise.
5044 (vect_model_store_cost): Likewise.
5045 (vect_model_load_cost): Likewise.
5046 (record_stmt_cost): Likewise.
5047 (vect_get_load_cost): Likewise.
5048 (vect_get_known_peeling_cost): Likewise.
5049 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
5050 list; call record_stmt_cost for prologue and epilogue costs.
5051 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
5052 prologue and epilogue costs; remove computation of vec_outside_cost;
5053 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
5054 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
5055 costs; call add_stmt_cost for prologue and epilogue costs.
5056 (vect_model_induction_cost): Revise call to add_stmt_cost for body
5057 costs; call add_stmt_cost for prologue costs.
5058 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
5059 list for function and arguments for calls to vect_get_load_cost and
5060 vect_get_store_cost.
5061 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
5062 vect_get_data_access_cost and vect_get_known_peeling_cost; use
5063 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
5064 latter call and discard their results; rename stmt_cost_vec to
5065 body_cost_vec; correct possible storage leak for body_cost_vec.
5066 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
5067 body_cost_vec.
5068 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
5069 body_cost_vec; add extra dummy parameter on calls to
5070 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
5071 argument list on call to add_stmt_cost.
5072 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
5073 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
5074 builtin_vectorization_cost; add "where" parameter on call to
5075 add_stmt_cost.
5076 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
5077 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
5078 rename stmt_cost_vec to body_cost_vec.
5079 (vect_model_promotion_demotion_cost): Add vect_body argument to call
5080 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
5081 to stmt_vinfo_set_outside_of_loop_cost.
5082 (vect_model_store_cost): Change parameter list; call record_stmt_cost
5083 for prologue costs; add vect_body argument to call to record_stmt_cost;
5084 rename stmt_cost_vec to body_cost_vec; remove call to
5085 stmt_vinfo_set_outside_of_loop_cost.
5086 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
5087 vect_body argument to calls to record_stmt_cost.
5088 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
5089 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
5090 remove call to stmt_vinfo_set_outside_of_loop_cost.
5091 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
5092 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
5093 call record_stmt_cost for prologue costs.
5094 (vectorizable_store): Change argument list for call to
5095 vect_model_store_cost.
5096 (vectorizable_load): Change argument list for call to
5097 vect_model_load_cost.
5098 (new_stmt_vec_info): Remove assignment to
5099 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
5100 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
5101 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
5102 (spu_finish_cost): Add prologue and epilogue costs.
5103 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
5104 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
5105 (i386_finish_cost): Add prologue and epilogue costs.
5106 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
5107 costs.
5108 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
5109 (rs6000_finish_cost): Add prologue and epilogue costs.
5110 * tree-vect-slp.c (vect_free_slp_instance): Rename
5111 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
5112 (vect_create_new_slp_node): Remove assignment to
5113 SLP_TREE_OUTSIDE_OF_LOOP_COST.
5114 (vect_get_and_check_slp_defs): Change parameter list; change argument
5115 lists to calls to vect_model_store_cost and vect_model_simple_cost.
5116 (vect_build_slp_tree): Change parameter list; change argument lists
5117 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
5118 recursive self-calls; remove setting of outside_cost from
5119 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
5120 record_stmt_cost.
5121 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
5122 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
5123 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
5124 prologue costs.
5125 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
5126 body_cost_vec; handle null ci->stmt; add vect_body argument to call
5127 to add_stmt_cost; simplify calls to targetm.vectorize.
5128 builtin_vectorization_cost; return vec_prologue_cost and
5129 vec_epilogue_cost from finish_cost.
5130 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
5131 body_cost_vec; add vect_body argument to call to add_stmt_cost.
5132
5e4aec98
RH
51332012-07-24 Richard Henderson <rth@redhat.com>
5134
5135 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
5136 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
5137 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
5138 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
5139 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
5140 comment reference.
5141 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
5142 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
5143 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
5144 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
5145 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
5146 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
5147 * doc/tm.texi: Rebuild.
5148
cd1440b1
RH
51492012-07-24 Richard Henderson <rth@redhat.com>
5150
5151 * optabs.def: New file.
5152 * Makefile.in (OPTABS_H): Add insn-opinit.h.
5153 (MOSTLYCLEANFILES): Likewise.
5154 (insn-opinit.o): Remove reload.h
5155 (simple_rtl_generated_c): Remove insn-opinit.c.
5156 (s-opinit): New rule.
5157 (build/genopinit.o): Add optabs.def.
5158 * genopinit.c (rtx_upname): New.
5159 (optabs): Extract to optabs.def
5160 (enum optab_tag, struct optab_def_d, optabs): New.
5161 (struct pattern_d, patterns): New.
5162 (match_pattern): Split out from ...
5163 (gen_insn): ... here. Push matches on patterns vec.
5164 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
5165 (header_file_name, source_file_name, handle_arg): New.
5166 (open_outfile): New.
5167 (main): Sort and emit new tables. Generate lookup_handler,
5168 raw_optab_handler, swap_optab_enable.
5169 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
5170 * optabs.c (code_to_optab_): Remove.
5171 (hash_libfunc): Update for optab name change.
5172 (eq_libfunc): Likewise.
5173 (convert_optab_libfunc): Update computation of optab member;
5174 use the new convlib_def table.
5175 (optab_libfunc): Similarly.
5176 (set_optab_libfunc, set_conv_libfunc): Likewise.
5177 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
5178 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
5179 (init_optabs): Don't call them; export the data to optabs.def.
5180 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
5181 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
5182 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
5183 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
5184 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
5185 (gen_int_signed_fixed_libfunc): Likewise.
5186 (gen_int_unsigned_fixed_libfunc): Likewise.
5187 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
5188 (gen_ufloat_conv_libfunc): Likewise.
5189 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
5190 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5191 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
5192 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
5193 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
5194 (debug_optab_libfuncs): Update for optab representation change.
5195 * optabs.h: Include insn-opinit.h.
5196 (optab, convert_optab, direct_optab): New typedefs.
5197 (struct optab_handlers, struct widening_optab_handlers): Remove.
5198 (struct optab_libcall_d): Rename from optab_d; remove code_,
5199 handlers, widening members.
5200 (struct convert_optab_libcall_d): Rename from convert_optab_d;
5201 remove code_ and handlers members.
5202 (enum optab_index, enum convert_optab_index): Remove.
5203 (enum direct_optab_index): Remove.
5204 (code_to_optab_): Fix array range.
5205 (optab_to_code): Covert to inline function.
5206 (optab_to_code_, convlib_def, normlib_def): Declare.
5207 (raw_optab_handler, swap_optab_enable): Declare.
5208 (unknown_optab): Remove; export to optabs.def
5209 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
5210 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
5211 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
5212 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
5213 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
5214 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
5215 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
5216 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
5217 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
5218 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
5219 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
5220 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
5221 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
5222 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
5223 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
5224 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
5225 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
5226 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
5227 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
5228 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
5229 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
5230 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
5231 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
5232 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
5233 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
5234 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
5235 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
5236 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
5237 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
5238 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
5239 vec_realign_load_optab, vec_widen_umult_hi_optab,
5240 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
5241 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
5242 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
5243 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
5244 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
5245 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
5246 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
5247 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
5248 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
5249 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
5250 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
5251 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
5252 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
5253 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
5254 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
5255 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
5256 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
5257 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
5258 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
5259 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
5260 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
5261 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
5262 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
5263 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
5264 atomic_exchange_optab, atomic_compare_and_swap_optab,
5265 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
5266 atomic_sub_fetch_optab, atomic_and_fetch_optab,
5267 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
5268 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
5269 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
5270 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
5271 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
5272 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
5273 atomic_thread_fence_optab, atomic_signal_fence_optab,
5274 vec_perm_optab, vec_perm_const_optab): Likewise.
5275 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
5276 and x_direct_optab_table members; add pat_enable.
5277 (optab_table, convert_optab_table, direct_optab_table): Remove.
5278 (optab_handler): Use raw_optab_handler.
5279 (widening_optab_handler, convert_optab_handler): Likewise.
5280 (set_optab_handler, set_widening_optab_handler): Remove.
5281 (set_convert_optab_handler, set_direct_optab_handler): Remove.
5282 (direct_optab_handler): Defer to optab_handler.
5283 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
5284
4cdf5307
JM
52852012-07-24 Jason Merrill <jason@redhat.com>
5286
5287 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
5288 match MEM_STAT_DECL.
5289 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
5290
2225b9f2
RH
52912012-07-24 Richard Henderson <rth@redhat.com>
5292
19b5fafb
RH
5293 * optabs.h (struct optab_d): Rename code member to code_.
5294 (struct convert_optab_h): Likewise.
5295 (code_to_optab_): Rename from code_to_optab.
5296 (code_to_optab, optab_to_code): New.
5297 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
5298 * ifcvt.c (noce_emit_move_insn): Likewise.
5299 * optabs.c (simplify_expand_binop): Use optab_to_code.
5300 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
5301 (avoid_expensive_constant, expand_binop_directly): Likewise.
5302 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
5303 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
5304 (have_insn_for, debug_optab_libfuncs): Likewise.
5305 (init_optab, init_optabv, init_convert_optab): Update for optab
5306 member name change.
5307
723cd7ab
RH
5308 * libfuncs.h: Include optabs.h.
5309 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
5310 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
5311 (lto-streamer-in.o, dwarf2out.o): Update deps.
5312
2225b9f2
RH
5313 * optabs.h (unknown_optab): New.
5314 * builtins.c (interclass_mathfn_icode): Use it.
5315 * dojump.c (do_compare_rtx_and_jump): Likewise.
5316 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
5317 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
5318 (expand_vector_operations_1): Likewise.
5319 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
5320 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
5321
e040476c
SB
53222012-07-24 Steven Bosscher <steven@gcc.gnu.org>
5323
5324 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
5325
9594fe5e
RR
53262012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5327
5328 PR target/54051
5329 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
5330 printing of 0.
5331 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
5332 specifier.
5333 ("neon_vld3_lane<mode>":VMQ): Likewise.
5334 ("neon_vld3_dup<mode>":VDX): Likewise.
5335 ("neon_vst3_lane<mode>":VD): Likewise.
5336 ("neon_vst3_lane<mode>":VMQ): Likewise.
5337
e2a6dd68
RM
53382012-07-24 Roland McGrath <mcgrathr@google.com>
5339
9594fe5e 5340 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
e2a6dd68
RM
5341 stack alignment padding.
5342
9fecd005
UB
53432012-07-24 Uros Bizjak <ubizjak@gmail.com>
5344
5345 PR target/53961
5346 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
658e8eba 5347 negative constant address for TARGET_X32 ...
9fecd005
UB
5348 (ix86_decompose_address): ... here. Reject constant addresses
5349 that don't satisfy x86_64_immediate_operand predicate.
5350
552b56fc
JB
53512012-07-24 Julian Brown <julian@codesourcery.com>
5352
9fecd005 5353 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
552b56fc 5354
7aa6d18a
SB
53552012-07-24 Steven Bosscher <steven@gcc.gnu.org>
5356
5357 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
5358 Move test to check that there is a popcount function for the the number
5359 of bits in SBITMAP_ELT_BITS to sbitmap.c.
5360 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
5361 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
5362
5363 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
5364 * configure: Regenerate.
5365 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
5366 (GCC_MEM_STAT_ARGUMENTS): New define.
5367 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
5368 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
9fecd005
UB
5369 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
5370 FINAL_PASS_MEM_STAT): Define.
7aa6d18a
SB
5371 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
5372 * ggc.h (ggc_record_overhead, ggc_free_overhead,
5373 ggc_prune_overhead_list): Remove internal prototypes, they are defined
5374 already in ggc-internal.h.
5375 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
5376 wrappers.
5377 (add_statistics): Likewise.
9fecd005 5378 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
7aa6d18a
SB
5379 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
5380 wrappers around "survived" and "stats" members.
5381 (alloc_large_page): Always initialize survived.
5382 (ggc_internal_alloc_zone_stat): Likewise.
5383 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
5384 GATHER_STATISTICS is non-0.
5385 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
5386 (sweep_pages): Always increase survived.
5387 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
5388 (calculate_average_page_survival): Always define.
5389 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
5390 (ggc_print_statistics): Likewise.
5391 (ggc_pch_read): Likewise.
5392 * ggc-page.c (struct globals): Always define "stats" member.
5393 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
5394 (ggc_free): Likewise.
5395 (ggc_collec): Likewise.
5396 (ggc_print_statistics): Likewise.
5397 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
5398 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
5399 * gimple.h (enum gimple_alloc_kind): Always define.
5400 (gimple_alloc_kind): Likewise.
5401 * tree-flow.h (phinodes_print_statistics): Always define.
5402 (ssanames_print_statistics): Likewise.
5403 * vec.h (vec_heap_free): Always define.
5404 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
5405 * alloc-pool.c (alloc_pool_descriptor): Always define.
5406 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
5407 (empty_alloc_pool): Likewise.
5408 (pool_alloc): Likewise.
5409 (pool_free): Likewise.
5410 (dump_alloc_pool_statistics): Likewise.
5411 (print_statistics): Always define.
5412 * bitmap.c (struct bitmap_descriptor): Always define.
5413 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
5414 (register_overhead): Always define.
5415 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
5416 (bitmap_element_allocate): Likewise.
5417 (bitmap_elt_clear_from): Likewise.
5418 (bitmap_obstack_alloc_stat): Likewise.
5419 (bitmap_gc_alloc_stat): Likewise.
5420 (bitmap_obstack_free): Likewise.
5421 (bitmap_find_bit): Likewise.
5422 (bitmap_ior_and_into): Likewise.
5423 (bitmap_print): Likewise.
5424 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
5425 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
5426 (gimple_alloc_kind_names): Likewise.
5427 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
5428 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
5429 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
5430 rtvec_alloc_sizes): Always define.
5431 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
5432 (rtx_alloc_stat): Likewise.
5433 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
5434 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
5435 tree_node_sizes, tree_node_kind_names): Always define.
5436 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
5437 to if-code.
5438 (type_hash_canon): Likewise.
5439 (dump_tree_statistics): Likewise.
5440 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
5441 Always define.
5442 (ssanames_print_statistics): Likewise.
5443 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
5444 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
5445 (phinodes_print_statistics): Likewise.
5446 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
5447 * vec.c (struct vec_descriptor): Always define.
5448 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
5449 vec_descriptor, rester_overhead, free_overhead): Likewise.
5450 (cmp_statistic): Likewise.
5451 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
5452 (vec_heap_o_reserve_1): Likewise.
5453 (dump_vec_loc_statistics): Likewise.
5454
38ad2d07
RG
54552012-07-24 Richard Guenther <rguenther@suse.de>
5456
5457 PR tree-optimization/53616
5458 * tree-loop-distribution.c (ldist_gen): Do not change
5459 partition ordering when merging partitions.
5460
d32d6b75
AM
54612012-07-24 Alan Modra <amodra@gmail.com>
5462
5463 PR target/53914
5464 PR target/54009
5465 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
5466 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
5467 Adjust all rs6000_legitimate_offset_address_p calls.
5468 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
5469 (rs6000_secondary_reload_gpr): Declare.
5470 (rs6000_legitimate_offset_address_p): Update prototype.
5471 (rs6000_offsettable_memref_p): Delete.
5472 (rs6000_secondary_reload_ppc64): Delete.
5473 * config/rs6000/rs6000.c (address_offset): New function.
5474 (mem_operand_gpr): Likewise.
5475 (rs6000_legitimate_offset_address_p): Add worst_case param. When
5476 not worst_case assume class of regs with least restrictive offsets.
5477 Adjust all calls.
5478 (legitimate_lo_sum_address_p): Simplify register mode tests.
5479 (rs6000_legitimize_address): Likewise. Assume best case offset
5480 addressing. Combine ELF and MACHO lo_sum code.
5481 (rs6000_mode_dependent_address): Correct offset addressing limits.
5482 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
5483 Use reg_mode to help rs6000_legitimate_offset_address_p.
5484 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
5485 gpr load/store when offset too large.
5486 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
5487 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
5488 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
5489 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
5490 d->m,m->d,d->d. Correct size of gpr load/store.
5491 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
5492 alternatives.
5493 (movti_ppc64): Likewise.
5494 (movdi_internal32): Likewise. Also disparage fprs.
5495 (movdi_mfpgpr, movdi_internal64): Likewise.
5496 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
5497 (movtf_softfloat): Order alternatives.
5498 (extenddftf2_internal): Use 'm' and 'Y' for store.
5499 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
5500 (stack_protect_setdi, stack_protect_testdi): Likewise.
5501 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
5502 (movdf_softfloat64): Likewise.
5503 (reload_<mode>_store): Adjust reload_di_store to provide
5504 reload_si_store as well.
5505 (reload_<mode>_load): Likewise.
5506
ef812306
OE
55072012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
5508
5509 PR target/51244
5510 * config/sh/predicates.md (general_movsrc_operand,
5511 general_movdst_operand): Reject T_REG.
5512 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
5513 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
5514 Remove T_REG alternatives.
5515 (*negtstsi): New insn.
5516
5734aefd
OE
55172012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
5518
5519 PR target/53511
5520 * config/sh/sh.md (mulsf3_ie): Delete.
5521 (mulsf3_i4): Rename to mulsf3_i.
5522 (mulsf3): Emit mulsf3_i insn.
5523
dad6fafd
OE
55242012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
5525
5526 * config/sh/sh.md (addc1, subc1): Delete.
5527 (adddi3_compact): Use addc instead of addc1.
5528 (subdi3_compact): Use subc instead of subc1.
5529
8046c604
UB
55302012-07-23 Uros Bizjak <ubizjak@gmail.com>
5531
1791f36f 5532 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
8046c604
UB
5533 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
5534 split_cost argument signed.
5535 (ix86_avoid_lea_for_add): Cleanup.
5536 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
5537 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
5538 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
5539
7839a79c
UW
55402012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
5541
5542 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
5543
7a49d85e
UB
55442012-07-23 Uros Bizjak <ubizjak@gmail.com>
5545
5546 PR target/53961
5547 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
5548 * config/i386/i386.c (ix86_print_operand_address): Ditto.
5549 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
5550 addresses. Prevent zero extensions of CONST_INT operands.
5551
7aa6d18a 55522012-07-23 Steven Bosscher <steven@gcc.gnu.org>
3c2c4f22
SB
5553
5554 * sbitmap.h (struct int_list): Remove.
5555 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
5556 Remove prototypes of non-existing function.
5557 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
5558 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
5559 unused defines.
5560 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
5561 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
5562 * basic-block.h: ... here.
5563 * sbitmap.c: Do not include basic-block.h.
5564 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
5565 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
5566 * cfganal.c: ... here.
5567 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
5568 * gcse.c (compute_code_hoist_vbeinout): Likewise.
5569 * lcm.c (compute_antinout_edge, compute_available): Likewise.
5570 * Makefile.in: Fix sbitmap.o dependencies.
5571
afa63532
JBG
55722012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5573 Nick Clifton <nickc@redhat.com>
5574
5575 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
5576 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
5577 (unused) parameter to void *.
5578
fdc030e8
RG
55792012-07-23 Richard Guenther <rguenther@suse.de>
5580
5581 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
5582 instead of referenced vars.
5583
7aa6d18a 55842012-07-23 Steven Bosscher <steven@gcc.gnu.org>
efbb59b2
SB
5585
5586 * coverage.c: Refer to "notes file" instead of "graph file"
5587 in all comments. Explain history of bbg prefix.
5588 * gcov-io.h: Likewise.
5589 * gcov.c: Likewise.
5590 (find_source): Likewise in fnotice.
5591 (read_graph_file): Likewise.
5592 (read_count_file): Likewise.
5593 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
5594 and "data file" explicitly in the explanation of the files.
5595
25632d2e
SB
55962012-07-22 Steven Bosscher <steven@gcc.gnu.org>
5597
5598 PR tree-optimization/53881
5599 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
5600 for each label and compare them instead of labels.
5601
9696c529
SB
56022012-07-22 Steven Bosscher <steven@gcc.gnu.org>
5603
7a49d85e 5604 * opts.c (common_handle_option): Do not set
9696c529
SB
5605 flag_value_profile_transformations for -fprofile-generate.
5606 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
5607 (BB_TO_GCOV_INDEX): Remove.
5608 (output_location): Don't use it.
5609 (branch_prob): Likewise. Don't fiddle with the index of
5610 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
5611 (find_spanning_tree):
5612 * gcov.c (struct function_info): Document that blocks 0 and 1
5613 are the entry resp. exit blocks in gcov, too, like in GCC itself.
5614 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
5615 blocks identification.
5616 (output_lines): Likewise.
5617 * value-prof.c (gimple_value_profile_transformations): Do not
5618 test flag_value_profile_transformations again.
5619 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
5620 transformation functions.
5621 (gimple_values_to_profile):
5622 Don't test flag_value_profile_transformations
5623 * tree-profile.c (tree_profiling): Assert that the cgraph is in
5624 the CGRAPH_STATE_IPA_SSA state.
5625 Do not set, or look at, after_tree_profile.
5626 * function.h (struct function): Remove after_tree_profile bit.
5627 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
5628 * tree-inline.c (initialize_cfun): Don't copy it.
5629 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
5630 * lto-streamer-in.c (input_struct_function_base): Likewise.
5631
a594120b
OE
56322012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
5633
5634 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
5635 (SH_DYNAMIC_SHIFT_COST): Use it.
5636 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
5637 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
5638 Add sanity check for input value. Add function description.
5639 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
5640 lshrsi3_d): Use TARGET_DYNSHIFT.
5641
7222fdd8
OE
56422012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
5643
5644 * config/sh/sh.md (negc): Delete expander.
5645 (*negc): Rename insn to negc.
5646
888b670f
UB
56472012-07-22 Uros Bizjak <ubizjak@gmail.com>
5648
5649 PR target/53961
5650 * config/i386/i386.md (*lea): New insn pattern.
5651 (*lea_1): Remove.
5652 (*lea<mode>_2): Ditto.
5653 (*lea_{3,4,5,6}_zext): Ditto.
658e8eba
UB
5654 * config/i386/predicates.md (lea_address_operand): Do not reject
5655 zero-extended address operands.
888b670f
UB
5656 * config/i386/constraints.md (j): Remove address constraint.
5657 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
5658 of an address.
5659 (ix86_print_operand_address): Handle SImode subreg of an address.
78aaa514 5660 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
888b670f 5661
922a784c
HPN
56622012-07-22 Hans-Peter Nilsson <hp@axis.com>
5663
5664 Emit executable-stack note correctly for CRIS targets.
5665 * config/cris/cris.c (cris_file_end): New function.
5666 (TARGET_ASM_FILE_END): Define.
5667
eb448bee
CLT
56682012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
5669 Maxim Kuvyrkov <maxim@codesourcery.com>
5670 NetLogic Microsystems Inc.
5671
5672 * config/mips/mips.c (mips_issue_rate): Handle XLP.
5673 * config/mips/mips.md: Include xlp.md.
5674 * config/mips/xlp.md: New file.
5675
5e3dbb3b
SB
56762012-07-21 Steven Bosscher <steven@gcc.gnu.org>
5677
5678 PR gcov-profile/32543
5679 * profile.c (branch_prob): Update total_num_edges_instrumented and
5680 report the number of edges to instrument.
5681
55f7c481
OE
56822012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
5683
5684 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
5685
c55963eb
AP
56862012-07-21 Andrew Pinski <apinski@cavium.com>
5687
5688 * config/mips/mips.md (*popcountdi2_trunc): New pattern
5689 to handle popcount of a truncation.
5690
aea21190
AP
56912012-07-21 Andrew Pinski <apinski@cavium.com>
5692
5693 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
5694 Add a bool argument.
5695 * config/mips/mips.c (mips_block_move_straight): Update call to
5696 mips_expand_ext_as_unaligned_load.
5697 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
5698 Accept DImode dest when the width is that of SImode.
888b670f 5699 * config/mips/mips.md (extv): Update call to
aea21190
AP
5700 mips_expand_ext_as_unaligned_load.
5701 (extzv): Likewise.
5702
5621a843
AP
57032012-07-21 Andrew Pinski <apinski@cavium.com>
5704
5705 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
5706 adjust_address.
5707
3088716e
MK
57082012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
5709
5710 * config/mips/mips.md (define_attr sync_*): Move before "type".
5711 (define_attr "type"): New values "atomic" and "syncloop".
5712 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
5713 Set "type" attribute.
5714 * config/mips/generic.md (generic_atomic, generic_syncloop):
5715 New reservations.
5716 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
5717 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
888b670f 5718 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
3088716e 5719 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
888b670f 5720 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
3088716e
MK
5721 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
5722 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
5723 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
5724 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
5725
56e25830
OE
57262012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
5727
5728 * config/sh/sh.md: Group and sort shift related patterns.
5729 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
5730
c21a1dbb
HPN
57312012-07-20 Hans-Peter Nilsson <hp@axis.com>
5732
5733 * config/cris/cris.c (cris_asm_output_ident): Remove unused
5734 local variables section_asm_op, size, buf.
5735
714b8718
PH
57362012-07-20 Pat Haugen <pthaugen@us.ibm.com>
5737 Steven Bosscher <steven@gcc.gnu.org>
3e31cf28 5738
714b8718
PH
5739 * config/rs6000/power4.md (power4-store-update): Fix reservation.
5740 (power4-three): Likewise.
5741
ad05f87b 57422012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
2ced0ae8 5743 Greta Yorsh <Greta.Yorsh@arm.com>
ad05f87b 5744
2ced0ae8
OE
5745 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
5746 * config/arm/arm-cores.def (cortex-a15): Use it.
ad05f87b 5747
ab3dfff7 57482012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
2ced0ae8
OE
5749 Greta Yorsh <Greta.Yorsh@arm.com>
5750
5751 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
5752 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
5753 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
5754 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
5755 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
5756 (arm_fa726te_tune): Likewise.
ab3dfff7 5757
824f71b9
RG
57582012-07-20 Richard Guenther <rguenther@suse.de>
5759
5760 * tree-dfa.c (collect_dfa_stats): Simplify.
5761 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
5762 referenced vars.
5763 * cfgexpand.c (estimated_stack_frame_size): Walk over local
5764 decls instead of referenced vars.
5765 * tree-ssa.c (delete_tree_ssa): Simplify.
5766 * tree-tailcall.c (find_tail_calls): Walk over local decls
5767 instead of referenced vars.
5768 (add_virtual_phis): Remove.
5769 (tree_optimize_tail_calls_1): Instead mark the virtual operand
5770 for renaming.
5771
c4669594
SB
57722012-07-20 Steven Bosscher <steven@gcc.gnu.org>
5773
5774 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
5775 (brief_dump_cfg): Update prototype to take flags argument.
5776 (check_bb_profile): Remove prototype.
5777 * tracer.c (tracer): Update brief_dump_cfg calls.
5778 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
5779 Call dump_bb_info before and after the cfghook dump_bb. Terminate
5780 the dump with a newline.
5781 (dump_flow_info): Do not call check_bb_profile.
5782 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
5783 (check_bb_profile): Make static. Take indent and flags arguments.
5784 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
5785 check_bb_profile. Print one edge per line.
5786 (brief_dump_cfg): Take a flags argument, and filter out
5787 TDF_COMMENT and TDF_DETAILS.
5788 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
888b670f
UB
5789 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
5790 dump_bb_info here, it is already called from dump_bb. Idem for
5791 check_bb_profile.
c4669594
SB
5792 (dump_gimple_bb_footer): Likewise.
5793 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
5794 avoid broken dumps for statement histograms.
5795 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
5796 not call pp_flush here, the buffer should be empty.
5797 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
5798 * sched-vis.c (debug_bb_slim): Likewise.
5799 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
5800 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
5801 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
5802 (dump_function_to_file): Do not call check_bb_profile on
5803 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
5804 Use dump_bb instead of gimple_dump_bb.
5805 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
5806 * passes.c (execute_function_dump): Always call print_rtl_with_bb
5807 for RTL dumps.
5808 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
888b670f
UB
5809 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
5810 bottom of each basic block.
c4669594 5811
a0969677
RG
58122012-07-20 Richard Guenther <rguenther@suse.de>
5813
5814 PR tree-optimization/54031
5815 * tree-ssa-ccp.c (get_value_from_alignment): Use
5816 get_pointer_alignment_1.
5817
ae0379fc
RG
58182012-07-20 Richard Guenther <rguenther@suse.de>
5819
5820 * tree-inline.c (add_local_variables): Remove check_var_ann
5821 parameter and dead code.
5822 (expand_call_inline): Adjust.
5823 (tree_function_versioning): Likewise.
5824
332f1d24
JJ
58252012-07-20 Jakub Jelinek <jakub@redhat.com>
5826
5827 PR c++/28656
5828 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
5829 of just the first one.
5830
3c82efd9
RG
58312012-07-20 Richard Guenther <rguenther@suse.de>
5832
5833 * builtins.c (get_object_alignment_2): Correct offset handling
5834 when using type alignment of a MEM_REF kind base.
5835
83c8cdd7
KY
58362012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
5837
5838 PR target/53877
5839 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
5840 (_lzcnt_u64): Ditto.
5841
cb40a885
EB
58422012-07-19 Eric Botcazou <ebotcazou@adacore.com>
5843
5844 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
5845
9402220c
EB
58462012-07-19 Eric Botcazou <ebotcazou@adacore.com>
5847
5848 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
5849 defining statement is a SSA name that occurs in abnormal PHIs.
5850
a3628196
EB
58512012-07-19 Eric Botcazou <ebotcazou@adacore.com>
5852
5853 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
5854 conversions.
5855
f9fef349
JJ
58562012-07-19 Jakub Jelinek <jakub@redhat.com>
5857
5858 PR rtl-optimization/53942
5859 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
5860 directly from likely spilled non-fixed hard registers, move them
5861 to pseudo first.
5862
fdb45c0c
SE
58632012-07-19 Steve Ellcey <sellcey@mips.com>
5864
5865 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
5866 MIPS16 mode.
5867
e1310984
JM
58682012-07-19 Jason Merrill <jason@redhat.com>
5869
5870 PR debug/53235
5871 * dwarf2out.c (get_die_parent): New.
5872 (generate_type_signature): Use it.
5873
dee54b6e
RH
58742012-07-19 Richard Henderson <rth@redhat.com>
5875
1312c276
RH
5876 * config/ia64/vect.md (smulv4hi3_highpart): New.
5877 (umulv4hi3_highpart): New.
5878 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
5879 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
5880 (udot_prodv8qi, sdot_prodv8qi): Remove.
5881 (sdot_prodv4hi, udot_prodv4hi): Remove.
5882 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
5883 * config/ia64/ia64-protos.h: Update.
5884
e6d4f8f5
RH
5885 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
5886 vectors larger than UNITS_PER_WORD.
5887
dee54b6e
RH
5888 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
5889 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
5890 dummy != CODE_FOR_nothing value.
5891
9786913b
UB
58922012-07-19 Uros Bizjak <ubizjak@gmail.com>
5893
5894 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
5895 * doc/tm.texi: Regenerate.
5896 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
5897 * config/sh/sh.h (MODE_AFTER): Update.
5898 * config/epiphany/epiphany.h (MODE_AFTER): Update.
5899
65e7bfe3
JJ
59002012-07-19 Jakub Jelinek <jakub@redhat.com>
5901
5902 PR middle-end/54017
5903 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
5904 (cleanup_tree_cfg_bb): Don't call it.
5905 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
5906 handling.
5907
867ff7ed
CB
59082012-07-19 Christian Bruel <christian.bruel@st.com>
5909
5910 PR target/54029
5911 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
5912
95cbf851 59132012-07-19 Richard Guenther <rguenther@suse.de>
9786913b 5914 Eric Botcazou <ebotcazou@adacore.com>
95cbf851
RG
5915
5916 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
5917 about transition from invariant to known bits.
9786913b 5918 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
95cbf851 5919
cd1cae35
RG
59202012-07-19 Richard Guenther <rguenther@suse.de>
5921
5922 PR tree-optimization/53970
9786913b
UB
5923 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
5924
bf1431e3
TG
59252012-07-19 Tristan Gingold <gingold@adacore.com>
5926 Richard Henderson <rth@redhat.com>
5927
5928 * opts.c (finish_options): Handle UI_SEH.
5929 * expr.c (build_personality_function): Handle UI_SEH.
5930 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
5931 * coretypes.h (unwind_info_type): Add UI_SEH.
5932 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
5933 New function.
5934 (i386_pe_seh_init_sections): Likewise.
5935 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
5936 (TARGET_ASM_INIT_SECTIONS): Define.
5937 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5938 (i386_except_unwind_info): New function.
5939
5cb5a23f
MR
59402012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
5941 Chao-ying Fu <fu@mips.com>
5942
5943 * config/mips/mips.opt (mmcu): New option.
9786913b 5944 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
5cb5a23f
MR
5945 _mips_mcu when TARGET_MCU.
5946 (ASM_SPEC): Pass mcu options to the assembler.
5947 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
5948
cc5476cb
RC
59492012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
5950
9786913b
UB
5951 * config.gcc (v850-*-rtems*): New target.
5952 * config/v850/rtems.h: New.
5953 * config/v850/t-rtems: New.
cc5476cb 5954
75cfe445
BS
59552012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
5956
5957 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
5958 of flags controlling optimization; add -ftree-slsr to list of flags
5959 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
5960 enabled by default at -O2; add -fvect-cost-model to list of flags
5961 enabled by default at -O3; document -fhoist-adjacent-loads and
5962 -ftree-slsr.
5963 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
5964 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
5965 flag_tree_slsr.
5966 * common.opt: Add -ftree-slsr with flag_tree_slsr.
5967
edd5e900
JZ
59682012-07-18 Jie Zhang <jzhang918@gmail.com>
5969 Julian Brown <julian@codesourcery.com>
5970
9786913b 5971 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
edd5e900
JZ
5972 (arm_size_rtx_costs): Likewise.
5973 (neon_valid_immediate): Add a case for double 0.0.
5974
392e87f6
AS
59752012-07-18 Andrew Stubbs <ams@codesourcery.com>
5976 Mark Shinwell <shinwell@codesourcery.com>
5977 Julian Brown <julian@codesourcery.com>
5978
392e87f6
AS
5979 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
5980 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
5981 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
5982 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
5983 neon_type.
5984 * config/arm/arm.md (neon_type): Update comment.
5985
4c9bcf89
RG
59862012-07-18 Richard Guenther <rguenther@suse.de>
5987
5988 PR tree-optimization/53970
5989 * tree.h (contains_packed_reference): Remove.
5990 * expr.c (contains_packed_reference): Likewise.
5991 * tree-vect-data-refs.c (not_size_aligned): New function.
5992 (vector_alignment_reachable_p): Use it.
5993 (vect_supportable_dr_alignment): Likewise.
5994
b0f4a35f
RG
59952012-07-18 Richard Guenther <rguenther@suse.de>
5996
5997 * tree.h (get_object_or_type_alignment): Remove.
5998 * builtins.c (get_object_alignment_2): New function copied from
5999 get_object_alignment_1. Take extra argument to indicate whether
6000 we take the address of EXP. Rework to use type alignment information
6001 if not, and return whether the result is an approximation or not.
6002 (get_object_alignment_1): Wrap around get_object_alignment_2.
6003 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
6004 we take the address.
6005 (get_object_or_type_alignment): Remove.
6006 * expr.c (expand_assignment): Call get_object_alignment.
6007 (expand_expr_real_1): Likewise.
6008
59194a3c
NC
60092012-07-18 Nick Clifton <nickc@redhat.com>
6010
6011 * doc/invoke.texi (ARM Options): Document -munaligned-access.
6012
ee04b091
OE
60132012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
6014
6015 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
6016 expander. Use arith_reg_dest predicate.
6017 (rotldi3, rotrdi3): Remove constraints in expander.
6018 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
6019 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
6020 insn_and_split.
6021
13f1f508
OE
60222012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
6023
6024 PR target/33135
6025 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
6026 description.
59194a3c 6027 * config/sh/sh.c (sh_option_override): Do not change
13f1f508
OE
6028 flag_finite_math_only. Set TARGET_IEEE to complement of
6029 flag_finite_math_only.
6030 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
6031 of mieee and mno-ieee behavior.
6032
512ab654
SB
60332012-07-18 Steven Bosscher <steven@gcc.gnu.org>
6034
6035 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
6036
a315c44c
SB
60372012-07-18 Steven Bosscher <steven@gcc.gnu.org>
6038
6039 * dumpfile.h (TDF_COMMENT): New define.
6040 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
6041 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
6042 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
6043 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
6044 Move to new file cfg-flags.h.
6045 (enum cfg_edge_flags): New enum, using cfg-flags.h.
6046 (EDGE_ALL_FLAGS): Compute value automatically.
6047 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
6048 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
6049 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
6050 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
6051 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
6052 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
6053 (BB_ALL_FLAGS): New, compute value automatically.
6054 (dump_bb_info): Update prototype.
6055 (dump_edge_info): Update prototype.
6056 * cfg-flags.h: New file.
6057 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
6058 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
6059 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
6060 (debug_bb): Update dump_bb call.
6061 (dump_cfg_bb_info): Remove.
6062 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
6063 Adjust verbosity using TDF_* flags. Check that the basic block flags
6064 are within the range of BB_ALL_FLAGS.
6065 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
6066 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
6067 first for consistency with other dump functions.
6068 (dump_bb): Update prototype accordingly.
6069 * cfghooks.c: Include dumpfile.h.
6070 (verify_flow_info): Update dump_edge_info calls.
6071 (dump_bb): Take a flags argument and pass it around.
6072 Use dump_bb_info to dump common information about a basic block.
6073 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
6074 (debug_flow_info): Moved here from cfgrtl.c.
6075 * profile.c (is_edge_inconsistent): Update dump_bb calls.
6076 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
6077 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
6078 print_rtl_slim_with_bb): Remove prototypes.
6079 (dump_insn_slim): Adjust prototype to take a const_rtx.
6080 (print_rtl_with_bb): Adjust prototype.
6081 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
6082 * sched-vis.c (dump_insn_slim): Take a const_rtx.
6083 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
6084 (print_rtl_slim_with_bb): Remove.
6085 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
6086 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
6087 for that. Prototype here near DEBUG_FUNCTION marker.
6088 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
6089 Use dump_bb.
6090 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
6091 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
6092 (remove_bb): Update dump_bb call.
6093 (gimple_debug_bb): Use dump_bb.
6094 (dump_function_to_file): Update gimple_dump_bb call.
6095 (print_loops_bb): Likewise.
6096 * tree-flow.h (gimple_dump_bb): Update prototype.
6097 * gimple-pretty-print.c (dump_bb_header): Rename to
6098 dump_gimple_bb_header. Write to a stream instead of a pretty
6099 printer. Use dump_bb_info to dump basic block info.
6100 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
6101 stream instead of a pretty printer. Use dump_bb_info.
6102 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
6103 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
6104 dump_gimple_bb_footer.
6105 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
6106 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
6107 (print_rtl_with_bb): Take a flags argument and pass it around.
6108 Use dump_insn_slim if TDF_SLIM.
6109 (dump_bb_info): Removed and re-incarnated in cfg.c.
6110 (dump_flow_info): Moved to cfghooks.c.
6111 (debug_flow_info): Moved to cfghooks.c.
6112 * passes.c (execute_function_dump): Unconditionally use
6113 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
6114 * final.c (dump_basic_block_info): Update dump_edge_info calls.
6115 * tree-vrp.c (dump_asserts_for): Likewise.
6116 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
6117 * tree-if-conv.c (if_convertible_bb_p): Don't look at
6118 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
6119 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
6120 for the same reason.
6121 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
6122
65876d24
RG
61232012-07-17 Richard Guenther <rguenther@suse.de>
6124
6125 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
6126 vars here, use create_tmp_reg where appropriate.
6127 (vect_create_addr_base_for_vector_ref): Do not add referenced
6128 vars here, use create_tmp_reg where appropriate.
6129 (vect_create_data_ref_ptr): Likewise.
6130 (vect_create_destination_var): Likewise.
6131 (vect_permute_store_chain): Likewise.
6132 (vect_permute_load_chain): Likewise.
6133 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
6134 Likewise.
6135 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
6136 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
6137 (vect_handle_widen_op_by_const): Likewise.
6138 * tree-vect-stmts.c (vect_init_vector): Likewise.
6139 (vectorizable_load): Likewise.
6140
7cb151c0
TV
61412012-07-17 Tom de Vries <tom@codesourcery.com>
6142
6143 * hwint.c: Fix loop range.
6144
440b6d59
TV
61452012-07-17 Tom de Vries <tom@codesourcery.com>
6146
6147 * double-int.h (double_int_popcount): New inline function.
6148 * hwint.c (popcount_hwi): New function.
6149 * hwint.h (popcount_hwi): Declare function. New inline function.
6150
a86ec597
RH
61512012-07-17 Richard Henderson <rth@redhat.com>
6152
6153 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
6154 parameters.
6155 (vectorizable_conversion): Update supportable_widening_operation call.
6156 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
6157 (vect_recog_widen_shift_pattern): Likewise.
6158 * tree-vectorizer.h: Update decl.
6159
22969a8c
RR
61602012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6161 Ulrich Weigand <ulrich.weigand@linaro.org>
6162
6163 * common/config/arm/arm-common.c (arm_option_optimization_table):
6164 Enable -fsched-pressure by default while optimizing.
6165 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
6166 pressure algorithm by default.
6167
4111c296
OE
61682012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
6169
6170 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
6171 (CONST_OK_FOR_I10): Move macro to ...
6172 * config/sh/sh.c: ... here.
6173 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
6174 CONST_OK_FOR_I06.
6175
7bd3f65f
OE
61762012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
6177
6178 * config/sh/sh.md: Delete mov related define_peephole patterns.
6179
1b667f1b
JW
61802012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
6181
6182 PR c++/53919
6183 * doc/install.texi (Installing GCC): Refer to instructions for
6184 released versions. Fix hyphenation.
6185
c9c72699
UW
61862012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6187
6188 * config/spu/spu.c (targetm): Move to bottom of file.
6189 (spu_attribute_table): Likewise.
6190 (spu_option_override, spu_init_builtins, spu_builtin_decl,
6191 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
6192 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
6193 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
6194 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
6195 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
6196 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
6197 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
6198 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
6199 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
6200 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
6201 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
6202 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
6203 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
6204 spu_encode_section_info, spu_legitimize_address,
6205 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
6206 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
6207 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
6208 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
6209 spu_section_type_flags, spu_select_section, spu_unique_section,
6210 spu_trampoline_init, spu_conditional_register_usage,
6211 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
6212 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
6213 spu_setup_incoming_varargs): Remove prototypes.
6214 (spu_legitimize_address): Add "static" to definition.
6215
4cca007e
JJ
62162012-07-16 Jakub Jelinek <jakub@redhat.com>
6217
6218 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
6219
cd356d96
UW
62202012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
6221
6222 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
6223 before calling gsi_stmt.
6224
aaba3304
KY
62252012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
6226
6227 Revert
6228 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
6229
6230 * config/i386/i386.md (stack_protect_set): Disable the pattern
6231 for Android since Android libc (bionic) does not provide random
6232 value for stack protection guard at gs:0x14. Guard value
6233 will be provided from external symbol (default implementation).
6234 (stack_protect_set_<mode>): Likewise.
6235 (stack_protect_test): Likewise.
6236 (stack_protect_test_<mode>): Likewise.
6237
59a6c9d5
L
62382012-07-16 H.J. Lu <hongjiu.lu@intel.com>
6239
6240 PR middle-end/53959
6241 PR bootstrap/53963
6242 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
6243 comparison.
6244
a75a89eb
BS
62452012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
6246
6247 * opts.c (default_option): Add -fvect-cost-model to default options
6248 at -O3 and above.
6249
7a1c57d3
SB
62502012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6251
6252 * graphite-clast-to-gimple.c, graphite-dependences.c,
6253 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
6254 for pass TODO flags.
6255 * Makefile.in: Fix dependencies.
6256
89ca6d79
SB
62572012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6258
ee44c28d
SB
6259 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
6260 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6261
6262 * function.c (stack_protect_epilogue): Use expand_call to expand
6263 targetm.stack_protect_fail.
6264 * stmt.c (expand_expr_stmt): Remove now-unused function.
6265 * tree.h (expand_expr_stmt): Remove prototype.
6266 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
6267 hook must return a CALL_EXPR.
6268 * doc/tm.texi: Regenerate.
6269
468660d3 6270 * emit-rtl.c (emit_label_before): Do not allow the same label
9786913b 6271 to be emitted twice.
468660d3
SB
6272 (emit_label_after): Likewise.
6273 (emit_label): Likewise.
6274
89ca6d79
SB
6275 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
6276 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
6277 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
6278 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
6279
7ee2468b
SB
62802012-07-16 Steven Bosscher <steven@gcc.gnu.org>
6281
6282 * system.h (dump_file): Do not define.
6283 * tree-pass.h: Include dumpfile.h, which is a new file containing...
6284 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
6285 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
6286 dump_flag_name, dump_file, dump_flags, dump_file_name,
6287 get_dump_file_info, struct dump_file_info): all of this, moved to...
6288 * dumpfile.h: Here, new file.
6289 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
6290 (dump_stmt): Remove prototype for C++ specific function.
6291 (dump_enumerated_decls): Move prototype from here...
6292 * tree-flow.h (dump_enumerated_decls): ... to here.
6293 (get_ref_base_and_extent) Move prototype from here ...
6294 * tree.h (get_ref_base_and_extent) ... to here.
6295 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
6296 gimple-pretty-print.h is enough. Do not include tree-dump.h,
6297 include timevar.h and dumpfile.h instead.
6298 (struct numbered_tree_d, compare_decls_by_uid,
6299 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
6300 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
6301 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
6302 Do not include timevar.h.
6303 * tree.c: Do not include timevar.h.
6304 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
6305 timevar.h.
6306 (dump_cfg_stats): Use current_function_name.
6307 (gimple_cfg2vcg): Likewise.
6308 (dump_function_to_file): Likewise.
6309 * df-scan.c: Do not include tree-pass.h and timevar.h.
6310 Include dumpfile.h.
6311 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
6312 use print_current_pass.
6313 * df-problems.c: Include dumpfile.h.
6314 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
6315 leads to errors in the code not selected.
6316 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
6317 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
6318 * lcm.c: Include dumpfile.h.
6319 Remove obsolete include of insn-attr.h.
6320 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
6321 missing probability notes.
6322 * stmt.c: Include dumpfile.h.
6323 (emit_case_decision_tree): Re-enable printing expand details only
6324 if TDF_DETAILS.
9786913b
UB
6325 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
6326 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
6327 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
6328 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
6329 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
6330 function.c, fwprop.c, gcse.c, gimple-fold.c,
6331 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
6332 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
6333 graphite-dependences.c, graphite-interchange.c,
6334 graphite-optimize-isl.c, graphite-poly.c,
6335 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
6336 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
6337 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
6338 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
6339 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
6340 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
6341 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
6342 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
6343 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
6344 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
6345 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
6346 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
6347 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
6348 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
7ee2468b 6349 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
9786913b
UB
6350 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
6351 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
6352 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
6353 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
6354 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
6355 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
6356 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
6357 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
6358 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
6359 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
6360 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6361 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6362 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
6363 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
6364 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
6365 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
6366 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
6367 tree-ssa-uncprop.c, tree-ssa-uninit.c,
6368 tree-switch-conversion.c, tree-tailcall.c,
6369 tree-vect-data-refs.c, tree-vect-loop.c,
6370 tree-vect-loop-manip.c, tree-vectorizer.c,
6371 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
7ee2468b
SB
6372 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
6373 only if needed. If tree-pass.h is included, do not include timevar.h
6374 and dumpfile.h. If tree-pass.h is not included but dump_file, or
6375 dump_flags, or the TDF_* flags are used, include dumpfile.h.
9786913b
UB
6376 If gimple-pretty-print.h is included, don't include
6377 tree-pretty-print.h. Remove assorted unnecessary includes.
7ee2468b
SB
6378
6379 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
6380 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
6381 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
6382 Include dumpfile.h.
6383 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
6384 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
6385 spu/t-spu-elf: Fix dependencies.
6386
9e227d60
DC
63872012-07-16 Dehao Chen <dehao@google.com>
6388
6389 Revert
6390 2012-07-10 Dehao Chen <dehao@google.com>
6391
6392 * tree.h (phi_arg_d): New field.
6393 * tree-flow-inline.h (gimple_phi_arg_block): New function.
6394 (gimple_phi_arg_block_from_edge): New function.
6395 (gimple_phi_arg_set_block): New function.
6396 (gimple_phi_arg_has_block): New function.
6397 (redirect_edge_var_map_block): New function.
6398 * tree-flow.h (_edge_var_map): New field.
6399 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
6400 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
6401 redirect_edge_var_map_add.
6402 * tree-outof-ssa.c (_elim_graph): New field.
6403 (insert_partition_copy_on_edge): New parameter.
6404 (insert_value_copy_on_edge): New parameter.
6405 (insert_rtx_to_part_on_edge): New parameter.
6406 (insert_part_to_rtx_on_edge): New parameter.
6407 (elim_graph_add_edge): New parameter.
6408 (elim_graph_remove_succ_edge): New parameter.
6409 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
6410 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
6411 (new_elim_graph): Add block debug info.
6412 (clear_elim_graph): Likewise.
6413 (delete_elim_graph): Likewise.
6414 (elim_graph_add_node): Likewise.
6415 (elim_graph_add_edge): Likewise.
6416 (elim_graph_remove_succ_edge): Likewise.
6417 (eliminate_build): Likewise.
6418 (elim_forward): Likewise.
6419 (elim_unvisited_predecessor): Likewise.
6420 (elim_backward): Likewise.
6421 (elim_create): Likewise.
6422 (eliminate_phi): Likewise.
6423 (insert_backedge_copies): Likewise.
6424 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
6425 add_phi_arg.
6426 (rewrite_add_phi_arguments): Likewise.
6427 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
6428 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
6429 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
6430 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
6431 * tree-ssa-loop-manip.c (create_iv): Likewise.
6432 (add_exit_phis_edge): Likewise.
6433 (split_loop_exit_edge): Likewise.
6434 (copy_phi_node_args): Likewise.
6435 (tree_transform_and_unroll_loop): Likewise.
6436 * value-prof.c (gimple_ic): Likewise.
6437 (gimple_stringop_fixed_value): Likewise.
6438 * tree-tailcall.c (add_successor_phi_arg): Likewise.
6439 (eliminate_tail_call): Likewise.
6440 (create_tailcall_accumulator): Likewise.
6441 (tree_optimize_tail_calls_1): Likewise.
6442 * tree-phinodes.c (add_phi_arg): Likewise.
6443 (make_phi_node): Likewise.
6444 (resize_phi_node): Likewise.
6445 (remove_phi_arg_num): Likewise.
6446 * omp-low.c (expand_parallel_call): Likewise.
6447 (expand_omp_for_static_chunk): Likewise.
6448 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
6449 Likewise.
6450 (slpeel_update_phi_nodes_for_guard1): Likewise.
6451 (slpeel_update_phi_nodes_for_guard2): Likewise.
6452 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6453 (set_prologue_iterations): Likewise.
6454 (slpeel_tree_peel_loop_to_edge): Likewise.
6455 (vect_loop_versioning): Likewise.
6456 * tree-parloops.c (create_phi_for_local_result): Likewise.
6457 (transform_to_exit_first_loop): Likewise.
6458 (create_parallel_loop): Likewise.
6459 * ipa-split.c (split_function): Likewise.
6460 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
6461 (vect_create_epilog_for_reduction): Likewise.
6462 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
6463 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
6464 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
6465 (cond_if_else_store_replacement_1): Likewise.
6466 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
6467 (remove_forwarder_block_with_phi): Likewise.
6468 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
6469 * tree-predcom.c (initialize_root_vars): Likewise.
6470 (initialize_root_vars_lm): Likewise.
6471 * sese.c (sese_add_exit_phis_edge): Likewise.
6472 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
6473 * tree-ssa.c (flush_pending_stmts): Likewise.
6474 (redirect_edge_var_map_add): Likewise.
6475 (ssa_redirect_edge): Likewise.
6476 * gimple-streamer-in.c (input_phi): Likewise.
6477 * tree-vect-stmts.c (vectorizable_load): Likewise.
6478 * tree-inline.c (copy_phis_for_bb): Likewise.
6479 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6480 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
6481 * tree-cfg.c (reinstall_phi_args): Likewise.
6482 (gimple_make_forwarder_block): Likewise.
6483 (add_phi_args_after_copy_edge): Likewise.
6484 (gimple_duplicate_sese_tail): Likewise.
6485
d923fe0f
SM
64862012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
6487
6488 * config/i386/i386.md (stack_protect_set): Disable the pattern
6489 for Android since Android libc (bionic) does not provide random
6490 value for stack protection guard at gs:0x14. Guard value
6491 will be provided from external symbol (default implementation).
6492 (stack_protect_set_<mode>): Likewise.
6493 (stack_protect_test): Likewise.
6494 (stack_protect_test_<mode>): Likewise.
6495
fdb6272c
HPN
64962012-07-16 Hans-Peter Nilsson <hp@axis.com>
6497
a502bdb6
HPN
6498 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
6499 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
6500 CONSTANT_P and cris_legitimate_address_p.
6501 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
6502 (cris_preferred_reload_class): Don't return GENERAL_REGS as
6503 preferred to MOF_SRP_REGS.
ff57d866 6504
dec4306f
HPN
6505 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
6506 of library functions for basic atomic compare-and-swap.
6507 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
dc7f4baf 6508 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
dec4306f
HPN
6509 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
6510 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
6511 ("atomic_compare_and_swap<mode>")
dc7f4baf
HPN
6512 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
6513 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
24ddb79c
HPN
6514 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
6515 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
6516 (atomic_op_op_pred): Ditto.
6517 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
6518 reflect the change to include %2 in expansion. All callers changed.
6519 (qm3): New mode_attr.
6520 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
9786913b 6521 as predicate for operand 2.
24ddb79c
HPN
6522 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
6523 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
6524 constraint for operand 2.
6525 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
6526 nonmemory_operand for operand 3.
6527 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
6528 exclude memory. Improve emitted sync code for v10 and v32. Use
6529 <qm3> instead of <m> for size designator for cmp.
6530 ("atomic_compare_and_swap<mode>"): Change predicate to
6531 nonmemory_operand for operand 3. Add FIXME.
1cdea33b
HPN
6532 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
6533 constraints for operand 3 to exclude memory.
6534 ("atomic_fetch_<atomic_op_name><mode>")
fdb6272c
HPN
6535 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
6536 calls on result of call to need_atomic_barrier_p.
6537
cb00489c
RS
65382012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
6539
6540 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
6541 with mflo and mtlo.
6542 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
6543 and mtlo. Adjust move_type->type mapping.
6544 (may_clobber_hilo): Split mthilo into mthi and mtlo.
6545 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
6546 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
6547 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
6548 instead of mthilo and mfhilo.
6549 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
6550 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
6551 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
6552 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
6553 Use mflo instead of mfhilo.
6554 * config/mips/10000.md (r10k_arith): Split mthilo.
6555 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
6556 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
6557 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
6558 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
6559 mthilo and mfhilo.
6560 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
6561 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
6562 Likewise.
6563 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
6564 * config/mips/5400.md (ir_vr54_hilo): Likewise.
6565 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
6566 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
6567 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
6568 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
6569 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
6570 * config/mips/generic.md (generic_hilo): Likewise.
6571 * config/mips/loongson2ef.md (ls2_alu): Likewise.
6572 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
6573 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
6574 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
6575 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
6576 * config/mips/xlr.md (xlr_hilo): Likewise.
6577
9b024103
AS
65782012-07-14 Andrew Stubbs <ams@codesourcery.com>
6579 Sandra Loosemore <sandra@codesourcery.com>
6580
6581 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
6582
abc4d4e9
UB
65832012-07-14 Uros Bizjak <ubizjak@gmail.com>
6584
6585 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
6586 for TARGET_SSE.
6587
ee7b28eb
SB
65882012-07-14 Steven Bosscher <steven@gcc.gnu.org>
6589
6590 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
6591
cf0d4e15
BS
65922012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
6593
6594 PR bootstrap/53955
6595 * config/spu/spu.c (spu_init_cost): Mark static.
6596 (spu_add_stmt_cost): Likewise.
6597 (spu_finish_cost): Likewise.
6598 (spu_destroy_cost_data): Likewise.
6599 * config/i386/i386.c (ix86_init_cost): Mark static.
6600 (ix86_add_stmt_cost): Likewise.
6601 (ix86_finish_cost): Likewise.
6602 (ix86_destroy_cost_data): Likewise.
6603 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
6604 (rs6000_add_stmt_cost): Likewise.
6605 (rs6000_finish_cost): Likewise.
6606 (rs6000_destroy_cost_data): Likewise.
6607
c8b8af71
SB
66082012-07-13 Steven Bosscher <steven@gcc.gnu.org>
6609
6610 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
6611 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
6612 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
6613 ATTRIBUTE_MALLOC.
6614 * alloc-pool.h (pool_alloc): Likewise.
6615
6616 * final.c (final): Do not loop to find max_uid.
6617
e4da1e17
SB
66182012-07-13 Steven Bosscher <steven@gcc.gnu.org>
6619
6620 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
6621 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
6622
a8ab21e5
RG
66232012-07-13 Richard Guenther <rguenther@suse.de>
6624
6625 PR tree-optimization/53907
6626 * tree-ssa-forwprop.c (associate_pointerplus): New function.
6627 (ssa_forward_propagate_and_combine): Call it.
6628
e8f808b3
RG
66292012-07-13 Richard Guenther <rguenther@suse.de>
6630
6631 PR tree-optimization/53922
6632 * tree-vrp.c (value_inside_range): Change prototype to take
6633 min/max instead of value-range.
6634 (range_includes_zero_p): Likewise. Return the result from
6635 value_inside_range.
6636 (extract_range_from_binary_expr_1): Adjust to handle dont-know
6637 return value from range_includes_zero_p.
6638 (extract_range_from_unary_expr_1): Likewise.
6639 (compare_range_with_value): Likewise.
6640 (vrp_meet_1): Likewise.
6641
c3e7ee41
BS
66422012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
6643
6644 * doc/tm.texi: Regenerate.
6645 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
6646 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
6647 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6648 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6649 * targhooks.c (default_init_cost): New function.
6650 (default_add_stmt_cost): Likewise.
6651 (default_finish_cost): Likewise.
6652 (default_destroy_cost_data): Likewise.
6653 * targhooks.h (default_init_cost): New decl.
6654 (default_add_stmt_cost): Likewise.
6655 (default_finish_cost): Likewise.
6656 (default_destroy_cost_data): Likewise.
6657 * target.def (init_cost): New DEFHOOK.
6658 (add_stmt_cost): Likewise.
6659 (finish_cost): Likewise.
6660 (destroy_cost_data): Likewise.
6661 * target.h (struct _stmt_vec_info): New extern decl.
6662 (stmt_vectype): Likewise.
6663 (stmt_in_inner_loop_p): Likewise.
6664 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
6665 (stmt_vector_for_cost): New VEC/typedef.
6666 (add_stmt_info_to_vec): New function.
6667 (struct _slp_tree): Remove cost.inside_of_loop field.
6668 (struct _slp_instance): Remove cost.inside_of_loop field; add
6669 stmt_cost_vec field.
6670 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
6671 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
6672 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
6673 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
6674 (struct _loop_vec_info): Add target_cost_data field.
6675 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
6676 (struct _bb_vec_info): Add target_cost_data field.
6677 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
6678 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
6679 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
6680 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
6681 (init_cost): New function.
6682 (add_stmt_cost): Likewise.
6683 (finish_cost): Likewise.
6684 (destroy_cost_data): Likewise.
6685 (vect_model_simple_cost): Change parameter list.
6686 (vect_model_store_cost): Likewise.
6687 (vect_model_load_cost): Likewise.
6688 (record_stmt_cost): New extern decl.
6689 (vect_get_load_cost): Change parameter list.
6690 (vect_get_store_cost): Likewise.
6691 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
6692 (destroy_loop_vec_info): Call destroy_cost_data.
6693 (vect_estimate_min_profitable_iters): Remove old calculation of
6694 inside costs; call finish_cost instead.
6695 (vect_model_reduction_cost): Call add_stmt_cost instead of old
6696 inside-costs calculation.
6697 (vect_model_induction_cost): Likewise.
6698 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
6699 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
6700 and vect_get_store_cost to obtain the value to return.
6701 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
6702 vect_get_data_access_cost and store it in the minimum peeling
6703 structure.
6704 (vect_peeling_hash_choose_best_peeling): Change the parameter list
6705 to add a (stmt_vector_for_cost *) output parameter, and set its value.
6706 (vect_enhance_data_refs_alignment): Ignore the new return value from
6707 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
6708 vect_peeling_hash_choose_best_peeling and pass its contents to the
6709 target cost model.
6710 * tree-vect-stmts.c (stmt_vectype): New function.
6711 (stmt_in_inner_loop_p): Likewise.
6712 (record_stmt_cost): Likewise.
6713 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
6714 record_stmt_cost instead of old calculation; don't call
6715 stmt_vinfo_set_inside_of_loop_cost.
6716 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
6717 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
6718 (vect_model_store_cost): Add stmt_cost_vec parameter; call
6719 record_stmt_cost instead of old calculation; add stmt_cost_vec
6720 parameter to vect_get_store_cost call; don't call
6721 stmt_vinfo_set_inside_of_loop_cost.
6722 (vect_get_store_cost): Add stmt_cost_vec parameter; call
6723 record_stmt_cost instead of old calculation.
6724 (vect_model_load_cost): Add stmt_cost_vec parameter; call
6725 record_stmt_cost instead of old calculation; add stmt_cost_vec
6726 parameter to vect_get_load_cost call; don't call
6727 stmt_vinfo_set_inside_of_loop_cost.
6728 (vect_get_load_cost): Add stmt_cost_vec parameter; call
6729 record_stmt_cost instead of old calculation.
6730 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
6731 (vectorizable_conversion): Likewise.
6732 (vectorizable_assignment): Likewise.
6733 (vectorizable_shift): Likewise.
6734 (vectorizable_operation): Likewise.
6735 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
6736 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
6737 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
6738 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
6739 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
6740 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6741 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6742 (spu_init_cost): New function.
6743 (spu_add_stmt_cost): Likewise.
6744 (spu_finish_cost): Likewise.
6745 (spu_destroy_cost_data): Likewise.
6746 * config/i386/i386.c (ix86_init_cost): New function.
6747 (ix86_add_stmt_cost): Likewise.
6748 (ix86_finish_cost): Likewise.
6749 (ix86_destroy_cost_data): Likewise.
6750 (TARGET_VECTORIZE_INIT_COST): New macro def.
6751 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
6752 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6753 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6754 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
6755 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
6756 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6757 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6758 (rs6000_init_cost): New function.
6759 (rs6000_add_stmt_cost): Likewise.
6760 (rs6000_finish_cost): Likewise.
6761 (rs6000_destroy_cost_data): Likewise.
6762 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
6763 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
6764 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
6765 stmt_cost_vec parameter to vect_model_store_cost and
6766 vect_model_simple_cost calls.
6767 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
6768 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
6769 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
6770 calculating cost more than once for loads; remove inside_cost
6771 parameter from recursive vect_build_slp_tree calls; call
6772 record_stmt_cost instead of old calculation.
6773 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
6774 the instance; free it on premature exit; remove inside_cost parameter
6775 from vect_build_slp_tree call; add stmt_cost_vec parameter to
6776 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
6777 (new_bb_vec_info): Call init_cost.
6778 (destroy_bb_vec_info): Call destroy_cost_data.
6779 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
6780 statement recorded with an SLP instance; call finish_cost instead of
6781 the old calculation.
6782 (vect_update_slp_costs_according_to_vf): Record statement costs from
6783 SLP instances, multiplying by the appropriate number of copies; don't
6784 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
6785
44fabee4
RG
67862012-07-13 Richard Guenther <rguenther@suse.de>
6787
6788 PR middle-end/53937
6789 * builtins.c (get_pointer_alignment_1): Handle constant
6790 pointers.
6791
b1435931
RS
67922012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
6793 Steven Bosscher <steven@gcc.gnu.org>
6794 Bernd Schmidt <bernds@codesourcery.com>
6795
6796 PR rtl-optimization/53908
6797 * df-problems.c (can_move_insns_across): When doing
6798 memory-reference book-keeping, handle call insns.
6799
a2faea4b
RG
68002012-07-13 Richard Guenther <rguenther@suse.de>
6801
6802 * gimple.c (gimple_types_compatible_p_1): Remove redundant
6803 type attribute comparisons.
6804 (gimple_canonical_types_compatible_p): Likewise.
6805
e098c169
HPN
68062012-07-12 Hans-Peter Nilsson <hp@axis.com>
6807
6808 PR rtl-optimization/53176
6809 * rtlanal.c (rtx_cost): Adjust default cost for X with a
6810 UNITS_PER_WORD factor for all X according to the size of
6811 its mode, not just for SUBREGs with untieable modes.
6812 Handle SET. Use factor * factor for MULT, DIV, UDIV,
6813 MOD, UMOD.
6814
8c15b4b0
UB
68152012-07-12 Uros Bizjak <ubizjak@gmail.com>
6816
6817 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
6818 QImode and HImode splitters. Use ix86_comparison_operator.
6819 Explicitly match FLAGS_REG.
6820 (DFmode cmove splitter): Explicitly match FLAGS_REG.
6821
6bdf3519
SB
68222012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6823
6824 * expr.h (can_move_by_pieces): Move prototype from here ...
6825 * tree.h (can_move_by_pieces): ... to here.
6826 * optabs.h (set_widening_optab_handler): Use XCNEW.
6827 * gimplify.c: Do not include expr.h.
6828
6829 * toplev.c: Do not include dwarf2out.h.
6830 * config/ia64/ia64.c: Likewise.
6831 * config/sparc/sparc.c: Likewise.
6832 * config/sparc/t-sparc (sparc.o): Fix dependencies.
6833
6834 * Makefile.in (toplev.o): Fix dependencies
6835 (c-family/c-gimplify.o): Likewise.
6836 (c-family/c-common.o): Likewise.
6837
b8244d74
SB
68382012-07-11 Steven Bosscher <steven@gcc.gnu.org>
6839
6840 * basic-block.h (struct edge_def): Use basic_block instead of
6841 basic_block_def *.
6842 * cfgloop.h (struct loop_exit, struct loop): Likewise.
6843 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
6844 instead of union tree_node *.
6845 * rtl.h (union rtunion_def, emit_insn_before_noloc,
6846 emit_insn_after_noloc, add_insn_before, add_insn_after,
6847 debug_bb_slim): Likewise.
6848 * tree-inline.h (struct copy_body_data): Likewise.
6849 * sched-rgn.c (dump_region_dot): Likewise.
6850 * gimple.h (struct gimple_statement_base, gimple_set_bb,
6851 gsi_move_to_bb_end): Likewise.
6852 * sched-vis.c (debug_bb_slim): Likewise.
6853 (debug_bb_n_slim): Likewise.
6854 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
6855 (mn10300_block_contains_call):
6856
c48acc4f
GY
68572012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
6858
6859 PR target/53859
6860 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
6861 epilogue patterns.
6862
b0af456a
JW
68632012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
6864
6865 * doc/extend.texi (Namespace Association): Alter cautionary text.
6866
c03cfe1e
OE
68672012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
6868
6869 PR target/53911
6870 * config/sh/sh.md: Remove displacement addresssing related splits.
6871
87e2a8fd
XDL
68722012-07-10 Xinliang David Li <davidxl@google.com>
6873
6874 * doc/invoke.texi: New option documented.
6875 * flag-types.h: New enum type.
6876 * gimplify.c (gimplify_bind_expr): Control
6877 clobber generation with new option.
6878 (gimplify_target_expr): Ditto.
8c15b4b0 6879 * common.opt: New option.
87e2a8fd 6880
2f011375
JB
68812012-07-10 Julian Brown <julian@codesourcery.com>
6882
6883 * config/arm/arm.md (movsi): Don't split symbol refs here.
6884 (define_split): New.
6885
175aed00
AS
68862012-07-10 Andreas Schwab <schwab@linux-m68k.org>
6887
6888 PR bootstrap/53913
6889 * config/m68k/m68k.c (m68k_epilogue_uses): New.
6890 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
6891 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
6892
3f30a9a6
RH
68932012-07-10 Richard Henderson <rth@redhat.com>
6894
30a7bac9
RH
6895 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
6896 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
6897 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
6898 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
6899 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
6900 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
6901 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
6902 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
6903 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
6904 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
6905 (bdesc_args): Remove entries to match.
6906 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
6907 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
6908 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
6909 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
6910 (rs6000_builtin_mul_widen_odd): Remove.
6911 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
6912 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
6913 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
6914 (spu_builtin_mul_widen_odd): Remove.
6915 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
6916 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
6917 * doc/tm.texi.in: Don't document the removed hooks.
6918
6ae6116f
RH
6919 * tree-vect-stmts.c (supportable_widening_operation): Expand
6920 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
6921
00f07b86
RH
6922 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
6923 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
6924 * optabs.c (can_mult_highpart_p): New.
6925 (expand_mult_highpart): New.
6926 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
6927 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
6928 by pieces if can_mult_highpart_p.
6929 (expand_vector_divmod): Use can_mult_highpart_p and always
6930 generate MULT_HIGHPART_EXPR.
6931 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6932 * tree-vect-stmts.c (vectorizable_operation): Likewise.
6933
9283726f
RH
6934 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
6935 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
6936 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
6937 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
6938 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
6939 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
6940 * config/spu/spu-builtins.def: Update pattern names to match.
6941
2371eaec
RH
6942 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
6943 from altivec_vmuleub.
6944 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
6945 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
6946 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
6947 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
6948 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
6949 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
6950 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
6951 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
6952
c6b37fab
RH
6953 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
6954 avx2_umulv4siv4di3.
6955 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
6956 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
6957 (mulv4si3): Remove XOP test shadowed by SSE4 test.
6958 * config/i386/i386.c (bdesc_args): Update pattern names.
6959 (ix86_expand_sse2_mulvxdi3): Likewise.
6960 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
6961 shadowed by SSE4 test.
6962
3f30a9a6
RH
6963 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
6964 * cfgexpand.c (expand_debug_expr): Handle them.
6965 * expr.c (expand_expr_real_2): Likewise.
6966 * fold-const.c (fold_binary_loc): Likewise.
6967 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
6968 * optabs.c (optab_for_tree_code): Likewise.
6969 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
6970 * tree-inline.c (estimate_operator_cost): Likewise.
6971 * tree-pretty-print.c (dump_generic_node): Likewise.
6972 * tree.c (commutative_tree_code): Likewise.
6973 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
6974 Handle type change before looking up optab.
6975 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
6976 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
6977 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
6978 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
6979 * genopinit.c (optabs): Initialize them.
6980 * doc/md.texi: Document them.
6981
e53a3e77
DC
69822012-07-10 Dehao Chen <dehao@google.com>
6983
6984 * tree.h (phi_arg_d): New field.
6985 * tree-flow-inline.h (gimple_phi_arg_block): New function.
6986 (gimple_phi_arg_block_from_edge): New function.
6987 (gimple_phi_arg_set_block): New function.
6988 (gimple_phi_arg_has_block): New function.
6989 (redirect_edge_var_map_block): New function.
6990 * tree-flow.h (_edge_var_map): New field.
8c15b4b0 6991 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
e53a3e77
DC
6992 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
6993 redirect_edge_var_map_add.
6994 * tree-outof-ssa.c (_elim_graph): New field.
6995 (insert_partition_copy_on_edge): New parameter.
6996 (insert_value_copy_on_edge): New parameter.
6997 (insert_rtx_to_part_on_edge): New parameter.
6998 (insert_part_to_rtx_on_edge): New parameter.
6999 (elim_graph_add_edge): New parameter.
7000 (elim_graph_remove_succ_edge): New parameter.
7001 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
7002 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
7003 (new_elim_graph): Add block debug info.
7004 (clear_elim_graph): Likewise.
7005 (delete_elim_graph): Likewise.
7006 (elim_graph_add_node): Likewise.
7007 (elim_graph_add_edge): Likewise.
7008 (elim_graph_remove_succ_edge): Likewise.
7009 (eliminate_build): Likewise.
7010 (elim_forward): Likewise.
7011 (elim_unvisited_predecessor): Likewise.
7012 (elim_backward): Likewise.
7013 (elim_create): Likewise.
7014 (eliminate_phi): Likewise.
7015 (insert_backedge_copies): Likewise.
7016 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
7017 add_phi_arg.
7018 (rewrite_add_phi_arguments): Likewise.
7019 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
7020 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7021 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
7022 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
7023 * tree-ssa-loop-manip.c (create_iv): Likewise.
7024 (add_exit_phis_edge): Likewise.
7025 (split_loop_exit_edge): Likewise.
7026 (copy_phi_node_args): Likewise.
7027 (tree_transform_and_unroll_loop): Likewise.
7028 * value-prof.c (gimple_ic): Likewise.
7029 (gimple_stringop_fixed_value): Likewise.
7030 * tree-tailcall.c (add_successor_phi_arg): Likewise.
7031 (eliminate_tail_call): Likewise.
7032 (create_tailcall_accumulator): Likewise.
7033 (tree_optimize_tail_calls_1): Likewise.
7034 * tree-phinodes.c (add_phi_arg): Likewise.
7035 (make_phi_node): Likewise.
7036 (resize_phi_node): Likewise.
7037 (remove_phi_arg_num): Likewise.
7038 * omp-low.c (expand_parallel_call): Likewise.
7039 (expand_omp_for_static_chunk): Likewise.
7040 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
7041 Likewise.
7042 (slpeel_update_phi_nodes_for_guard1): Likewise.
7043 (slpeel_update_phi_nodes_for_guard2): Likewise.
7044 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7045 (set_prologue_iterations): Likewise.
7046 (slpeel_tree_peel_loop_to_edge): Likewise.
7047 (vect_loop_versioning): Likewise.
7048 * tree-parloops.c (create_phi_for_local_result): Likewise.
7049 (transform_to_exit_first_loop): Likewise.
7050 (create_parallel_loop): Likewise.
7051 * ipa-split.c (split_function): Likewise.
7052 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7053 (vect_create_epilog_for_reduction): Likewise.
7054 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7055 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
7056 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
7057 (cond_if_else_store_replacement_1): Likewise.
7058 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7059 (remove_forwarder_block_with_phi): Likewise.
7060 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
7061 * tree-predcom.c (initialize_root_vars): Likewise.
7062 (initialize_root_vars_lm): Likewise.
7063 * sese.c (sese_add_exit_phis_edge): Likewise.
7064 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
7065 * tree-ssa.c (flush_pending_stmts): Likewise.
7066 (redirect_edge_var_map_add): Likewise.
7067 (ssa_redirect_edge): Likewise.
7068 * gimple-streamer-in.c (input_phi): Likewise.
7069 * tree-vect-stmts.c (vectorizable_load): Likewise.
7070 * tree-inline.c (copy_phis_for_bb): Likewise.
7071 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
7072 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
7073 * tree-cfg.c (reinstall_phi_args): Likewise.
7074 (gimple_make_forwarder_block): Likewise.
7075 (add_phi_args_after_copy_edge): Likewise.
7076 (gimple_duplicate_sese_tail): Likewise.
7077
83d88a6d
OE
70782012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
7079
7080 PR target/53886
7081 * config/sh/sh.c (sequence_insn_p): New function.
7082 (find_barrier, sh_insn_length_adjustment): Use it.
7083
1cd130b0
IS
70842012-07-09 Iain Sandoe <iain@codesourcery.com>
7085
7086 PR target/53283
7087 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
7088 if defined.
7089 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
7090 SUBTARGET_FOLD_BUILTIN.
7091 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
7092 SUBTARGET_FOLD_BUILTIN.
7093
f29234df
IS
70942012-07-09 Iain Sandoe <iain@codesourcery.com>
7095
7096 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
7097 runtime exceptions model setting from here ...
7098 * config/darwin.c (darwin_override_options): ... to here.
7099
238065a7
SB
71002012-07-09 Steven Bosscher <steven@gcc.gnu.org>
7101
7102 PR tree-optimization/53887
7103 * tree-cfg.c (group_case_labels_stmt): Make non-static.
7104 * tree-flow.h (group_case_labels_stmt): Add prototype.
7105 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
7106 to pre-process every switch.
7107
06e3e32b
JM
71082012-07-09 Jason Merrill <jason@redhat.com>
7109
7110 PR c++/53882
7111 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
7112 (type_hash_eq): Likewise.
7113
c61e5cc1
TV
71142012-07-09 Tom de Vries <tom@codesourcery.com>
7115 Richard Guenther <rguenther@suse.de>
7116
7117 * tree-ssa-ccp.c (optimize_unreachable): New function.
7118 (execute_fold_all_builtins): Use optimize_unreachable to optimize
7119 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
7120
02663f24
RG
71212012-07-09 Richard Guenther <rguenther@suse.de>
7122
7123 PR bootstrap/53898
7124 * graphite-optimize-isl.c: Make sure CU is not empty.
7125
e714561a
SB
71262012-07-09 Steven Bosscher <steven@gcc.gnu.org>
7127
7128 * gensupport.c (init_rtx_reader_args_cb): Start counting code
7129 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
7130 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
7131 the LAST_INSN_CODE marker at the end.
7132 * genoutput.c (nothing): New static struct data.
7133 (idata): Initialize to &nothing.
7134 (idata_end): Initialize to &nothing.next.
7135 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
7136 (main): Use it.
7137 * genpeep.c (insn_code_number): Remove global variable.
7138 (gen_peephole): Take it as an argument instead.
7139 (main): Take insn_code_number from read_md_rtx.
7140 * optabs.h: Revert r161809:
7141 (optab_handlers): Change type of insn_code back to insn_code.
7142 (optab_handler, widening_optab_handler, set_optab_handler,
7143 set_widening_optab_handler, convert_optab_handler,
7144 set_convert_optab_handler, direct_optab_handler,
7145 set_direct_optab_handler): Remove int casts.
7146 Revert to treating the insn_code field as "insn_code".
7147
d16202ba
OE
71482012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
7149
7150 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
7151 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
7152 * config/sh/sh-protos.h: Declare it.
7153
e6d46b5a
SB
71542012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7155
7156 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
7157 (dump_fixup_graph): Use current_function_name.
7158 (adjust_cfg_counts): Likewise.
7159 * ira-conflicts.c: Do not include tree.h.
7160 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
7161
cab4c510
OE
71622012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
7163
7164 PR target/51244
7165 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
7166
532aafad
SB
71672012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7168
7169 * basic-block.h: Re-group most prototypes per file.
7170 (struct edge_list): Remove num_blocks field.
7171 (dump_bb_info): Adjust prototypes.
7172 (dump_reg_info): Move prototype to regs.h.
7173 * function.h: Do not include tree.h.
7174 Include vec.h, vecir.h, input.h and machmode.h to compensate.
7175 (function_name): New prototype.
7176 * gimple.h: Include tree.h to compensate for basic-block.h change.
7177 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
7178 * regs.h (dump_reg_info): Prototype here.
7179 * regset.h: Adjust file reference in comment.
7180 (debug_regset): Remove prototype.
7181 * rtl.h: Include flags.h for flag_var_tracking_assignments.
7182 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
7183 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
7184 (dump_reg_info, dump_flow_info): Remove prototypes.
7185 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
7186 to here, the only user. Make static.
7187 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
7188 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
7189 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
7190 tree-pass.h, cfgloop.h, and tree-flow.h.
7191 Include basic-block.h, the first header I'd expect to be included.
7192 (reg_obstack): Move to df-core.c.
7193 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
7194 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
7195 (redirect_edge_succ_nodup): Move to cfghooks.c.
7196 (dump_regset, debug_regset): Move to df-core.c.
7197 (dump_bb_info): Move to cfgrtl.c.
7198 (dump_reg_info): Move to regstat.c.
7199 (dump_flow_info): Move to cfgrtl.c.
7200 (debug_flow_info): Likewise.
7201 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
7202 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
7203 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
7204 (flow_active_insn_p, forwarder_block_p, can_fallthru,
7205 could_fall_through): Move to cfgrtl.c.
7206 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
7207 (create_edge_list): Do not set edge_list's removed num_blocks.
7208 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
7209 (flow_nodes_print): Remove.
7210 (flow_edge_list_print): Remove.
7211 (inverted_post_order_compute): Use FOR_ALL_BB.
c4669594 7212 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
532aafad
SB
7213 Do not call dump_reg_info.
7214 (debug_flow_info): Moved from cfg.c
7215 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
7216 to avoid looking at TDF_* flags from tree-pass.h.
7217 (flow_active_insn_p, forwarder_block_p, can_fallthru,
7218 could_fall_through): Moved from cfganal.c.
7219 (print_rtl_with_bb): Adjust dump_bb_info calls.
7220 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
7221 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
7222 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
7223 * cselib.c: Include tree.h with a FIXME.
7224 * df-core.c (reg_obstack): Moved from cfg.c.
7225 (dump_regset): Likewise.
7226 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
7227 * final.c (compute_alignments): Call dump_reg_info before
7228 dump_flow_info.
7229 * function.c (function_name): New function.
7230 (current_function_name): Use it.
7231 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
7232 dump_flow_info.
7233 * ira-conflicts.c: Include tree.h with a note.
7234 * regstat.c (dump_reg_info): Moved here from cfg.c.
7235 * loop-init.c: Include regs.h instead of hard-reg-set.h.
7236 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
7237 (rtl_loop_done): Likewise.
7238 * mcf.c: Include tree.h before langhooks.h.
7239 * predict.c (maybe_hot_count_p): Assert we have cfun.
7240 (probably_never_executed_bb_p): Likewise.
7241 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
7242 instead of dump_flow_info.
7243 * sched-deps.c: Include tree.h with a FIXME.
7244 (call_may_noreturn_p): Add FIXME note why this function has to
7245 look at function decls instead of function decl flags.
7246 * sched-vis.c: Include tree.h with a FIXME.
7247 (print_rtl_slim): Adjust dump_bb_info uses.
7248 * statistics.c (statistics_fini_pass_2): Use current_function_name
7249 to avoid including tree.h.
7250 (statistics_counter_event): Use function_name for the same reason.
7251 (statistics_histogram_event): Likewise.
7252 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
7253 instead of dump_flow_info.
7254 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
7255 before dump_flow_info.
7256 * doc/cfg.texi: Update CFG documentation.
7257 * Makefile.in (RTL_H): Depend on FLAGS_H.
7258 (GIMPLE_H): Depend on TREE_H.
7259 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
7260 but no longer on TREE_H.
7261 (C_COMMON_H): Depend on TREE_H.
7262 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
7263 sched-deps.o, sched-vis.o): Fixup dependencies.
7264
79bdca32
SB
72652012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7266
7267 * alias.h: Do not include coretypes.h in header files.
7268 * cppbuiltin.h: Likewise.
7269 * double-int.h: Likewise.
7270 * gimple-fold.h: Likewise.
7271 * flags.h: Likewise.
7272 * tree-ssa-alias.h: Likewise.
7273 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
7274 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
7275 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
7276 (TREE_H): Likewise.
7277 (ALIAS_H): Do not depend on coretypes.h.
7278 (FLAGS_H): Likewise.
7279 (realmpfr.o): Depend on coretypes.h.
7280
4a061351
SB
72812012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7282
7283 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
7284 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
7285
0be8bd1a
RE
72862012-07-07 Richard Earnshaw <rearnsha@arm.com>
7287
7288 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
7289 (TARGET_FPA): Delete definition.
7290 (TARGET_MAVERICK): Likewise.
7291 (TARGET_FPA_EMU2): Likewise.
7292 (arm_fp_model): Remove FPA and Maverick models.
7293 (arm_arch_cirrus): Delete declaration.
7294 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
7295 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
7296 (CALL_USED_REGISTERS): Likewise.
7297 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
7298 (FIRST_VFP_REGNUM): Renumbered.
7299 (D7_VFP_REGNUM): Chain definition.
7300 (LAST_LO_VFP_REGNUM): Likewise.
7301 (FIRST_HI_VFP_REGNUM): Likewise.
7302 (LAST_HI_VFP_REGNUM): Likewise.
7303 (FIRST_IWMMXT_GR_REGNUM): Likewise.
7304 (LAST_IWMMXT_GR_REGNUM): Likewise.
7305 (FIRST_IWMMXT_REGNUM): Likewise.
7306 (LAST_IWMMXT_REGNUM): Likewise.
7307 (FRAME_POINTER_REGNUM): Renumbered.
7308 (ARG_POINTER_REGNUM): Renumbered.
7309 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
7310 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
7311 (HARD_REGNO_REGNUM): Remove FPA support.
7312 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
7313 (reg_class): Likewise.
7314 (REG_CLASS_NAMES): Likewise.
7315 (REG_CLASS_CONTENTS): Likewise.
7316 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
7317 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
7318 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
7319 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
7320 Reorganize. Use AAPCS preferred names.
7321 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
7322 comments.
7323 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
7324 * arm.c (FL_CIRRUS): Delete definition.
7325 (arm_arch_cirrus): Delete variable.
7326 (arm_float_words_big_endian): Delete function.
7327 (cirrus_memory_offset): Delete function.
7328 (output_mov_long_double_fpa_from_arm): Delete function.
7329 (output_mov_long_double_arm_from_fpa): Delete function.
7330 (output_mov_double_fpa_from_arm): Delete function.
7331 (output_mov_double_arm_from_fpa): Delete function.
7332 (emit_sfm): Delete function.
7333 (maybe_get_arm_condition_code): Update comment.
7334 (arm_file_start): Always use softvfp for softfloat systems.
7335 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
7336 (arm_option_override): Remove FPA and Maverick support. Always
7337 default to vfp as the fallback FPU format.
7338 (use_return_insn): Remove FPA support.
7339 (arm_get_frame_offsets): Likewise.
7340 (arm_save_coproc_regs): Likewise.
7341 (arm_canonicalize_comparison): Remove Maverick support.
7342 (arm_select_cc_mode): Likewise.
7343 (arm_gen_compare_reg): Likewise.
7344 (arm_print_operand): Likewise.
7345 (arm_libcall_value_1): Remove FPA and Maverick support.
7346 (arm_function_value_regno_p): Likewise.
7347 (arm_apply_result_size): Likewise.
7348 (arm_legitimate_index_p): Likewise.
7349 (thumb2_legitimate_index_p): Likewise.
7350 (legitimize_reload_address): Likewise.
7351 (arm_register_move_cost): Likewise.
7352 (arm_hard_regno_mode_ok): Likewise.
7353 (arm_regno_class): Likewise.
7354 (arm_dbx_register_number): Likewise.
7355 (arm_emit_unwind_sequence): Likewise.
7356 (arm_conditional_register_usage): Likewise.
7357 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
7358 (cirrus_memory_offset): Likewise.
7359 (output_move_long_double_fpa_from_arm): Likewise.
7360 (output_move_long_double_arm_from_fpa): Likewise.
7361 (output_move_double_fpa_from_arm): Likewise.
7362 (output_move_double_arm_from_fpa): Likewise.
7363 (arm_float_words_big_endian): Likewise.
7364 * arm.md (CC_REGNUM): Renumbered.
7365 (VFPCC_REGNUM): Moved here. Renumbered.
7366 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
7367 (attr fpu): Remove FPA and Maverick support.
7368 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
7369 * arm-cores.def (ep9312): Remove Maverick support.
7370 * arm-arches.def (ep9312): Delete architecture.
7371 * arm-tables.opt: Regenerated.
7372
7373 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
7374
8166ff4d
SB
73752012-07-07 Steven Bosscher <steven@gcc.gnu.org>
7376
7377 PR tree-optimization/53881
7378 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
7379 comparing labels to establish uniqueness of a switch case target,
7380 use the CFG instead.
7381
f99391fe
UW
73822012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
7383
7384 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
7385 due to negative shift amount.
7386
755e0546
HPN
73872012-07-07 Hans-Peter Nilsson <hp@axis.com>
7388
7389 Fix configure test for "stack protector support in target C library".
7390 * configure.ac (test_prefix, test_exec_prefix): Move setting from
7391 inside sysroot handling to before and outside it.
7392 * configure: Regenerate.
7393
d44f78af
KT
73942012-07-06 Kai Tietz <ktietz@redhat.com>
7395
7396 PR bootstrap/52947
7397 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
7398 as "/mingw/include".
7399
2b9d5ad7
AO
74002012-07-06 Alexandre Oliva <aoliva@redhat.com>
7401
7402 PR debug/53820
7403 * var-tracking.c (vt_add_function_parameter): Convert
7404 internal_arg_pointer into arg_pointer-based address even
7405 without DRAP.
7406
fe8fb1c4
AO
74072012-07-06 Alexandre Oilva <aoliva@redhat.com>
7408
7409 PR rtl-optimization/53827
7410 PR debug/53671
7411 PR debug/49888
7412 * alias.c (memrefs_conflict_p): Adjust offset and size by the
7413 same amount for alignment ANDs.
7414
6867d9a9
TV
74152012-07-06 Tom de Vries <tom@codesourcery.com>
7416
7417 PR tree-optimization/51879
7418 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
7419 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
7420 (visit_use): Also call visit_reference_op_call for calls with a vdef.
7421
4ec0a198
TV
74222012-07-06 Tom de Vries <tom@codesourcery.com>
7423
7424 PR tree-optimization/52009
7425 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
7426 value numbers of gimple_vdef.
7427 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
7428 prototype.
7429 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
7430 (vn_reference_insert): Add and handle vdef parameter.
7431 (visit_reference_op_load): Add argument to vn_reference_insert call.
7432 (visit_reference_op_store): Find value number of vdef of store. Insert
7433 value number of vdef of store.
7434
e81941b7
UB
74352012-07-06 Uros Bizjak <ubizjak@gmail.com>
7436
7437 * config/i386/i386.md (simple lea to add peephole): Also transform
7438 RTXes where second PLUS operand matches output.
7439
6b908be7
UB
74402012-07-06 Uros Bizjak <ubizjak@gmail.com>
7441
7442 * config/i386/i386.c (construct_plt_address): Make static.
7443 * config/i386/i386-protos.h (construct_plt_address): Remove.
7444
2ba3d2a9
NC
74452012-07-06 Nick Clifton <nickc@redhat.com>
7446
7447 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
7448 default_encode_section_info.
7449
dea8f801
UB
74502012-07-06 Uros Bizjak <ubizjak@gmail.com>
7451
6b908be7 7452 PR target/53853
dea8f801
UB
7453 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
7454 emit PIC sequence for fnaddr symbol reference in advance.
7455
c253bc8c
EB
74562012-07-06 Eric Botcazou <ebotcazou@adacore.com>
7457
7458 Revert
7459 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
7460
7461 * dwarf2out.c (function_possibly_abstracted_p): New static function.
7462 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
7463 cgraph_function_possibly_inlined_p.
7464 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
7465 (process_scope_var): Do not emit concrete instances of abstracted
7466 nested functions from here.
7467 (gen_decl_die): Emit the abstract instance if the function is possibly
7468 abstracted and not only possibly inlined.
7469 (dwarf2out_finish): Find the first non-abstract parent instance and
7470 attach concrete instances on the limbo list to it.
7471
37891309
RR
74722012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7473 Julian Brown <julian@codesourcery.com>
7474
6b908be7
UB
7475 PR target/48941
7476 PR target/51980
7477 * config/arm/neon-gen.ml (return_by_ptr): Delete.
7478 (print_function): Handle empty strings.
7479 (return): Delete use of return_by_ptr.
7480 (mask_shape_for_shuffle): New function.
7481 (mask_elems): Likewise.
7482 (shuffle_fn): Likewise.
7483 (params): Simplify and remove use of return_by_ptr.
7484 (get_shuffle): New function.
7485 (print_variant): Update.
7486 * config/arm/neon.ml (rev_elems): New function.
7487 (permute_range): Likewise.
7488 (zip_range): Likewise.
7489 (uzip_range): Likewise.
7490 (trn_range): Likewise.
7491 (zip_elems): Likewise.
7492 (uzip_elems): Likewise.
7493 (trn_elems): Likewise.
7494 (features): New enumeration Use_shuffle. Delete ReturnPtr.
7495 (pf_su_8_16): New.
7496 (suf_32): New.
7497 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
7498 * config/arm/arm_neon.h: Regenerate.
37891309 7499
44b9837c
RG
75002012-07-05 Richard Guenther <rguenther@suse.de>
7501
7502 * tree-pretty-print.c (dump_generic_node): Properly test
7503 the result of exact_log2.
7504
367d32f3
AK
75052012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7506
7507 * config/s390/s390-protos.h (s390_expand_movmem)
7508 (s390_expand_cmpmem): Add return value.
7509 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
7510 Return FALSE to use the library function in some cases.
7511 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
7512 helper functions.
7513
604fbe51
AK
75142012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7515
7516 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
7517
04a40cb9
SB
75182012-07-05 Steven Bosscher <steven@gcc.gnu.org>
7519
7520 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
7521 * stmt.c (dump_case_nodes): New.
7522 (expand_case): Split out code generation parts into new functions.
7523 (expand_switch_as_decision_tree_p): Split out from expand_case.
7524 (emit_case_decision_tree): Likewise.
7525 (emit_case_dispatch_table): Likewise.
7526
76f722f4
MGD
75272012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7528
7529 * config/arm/iterators.md (SDF): New mode iterator.
7530 (V_if_elem): Add support for SF and DF modes.
7531 (V_reg): Likewise.
7532 (F_constraint): New mode iterator attribute.
7533 (F_fma_type): Likewise.
7534 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
7535 (*fmsub<SDF:mode>4): Likewise.
7536 (*fmnsub<SDF:mode>4): Likewise.
7537 (*fmnadd<SDF:mode>4): Likewise.
7538
4b68f9ee
UB
75392012-07-04 Uros Bizjak <ubizjak@gmail.com>
7540
7541 * expmed.c (expand_mult): Initialize coeff and is_neg.
7542
33344a62
OE
75432012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
7544
7545 * config/sh/predicates.md (zero_extend_operand): New predicate.
7546 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
7547 zero_extend_operand predicate.
7548 (zero_extendqisi2): Likewise.
7549
3f1ae742
UB
75502012-07-04 Uros Bizjak <ubizjak@gmail.com>
7551
7552 PR middle-end/53321
7553 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
7554 to not call cgraph_propagate_frequency if something was changed.
7555
23af816c
RG
75562012-07-04 Richard Guenther <rguenther@suse.de>
7557
7558 PR middle-end/53433
7559 * gimple-fold.c (get_base_constructor): Do not return an
7560 error_mark_node DECL_INITIAL.
7561
6c9df5a0
RG
75622012-07-04 Richard Guenther <rguenther@suse.de>
7563
7564 PR tree-optimization/53844
7565 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
7566 the loop virtual PHI.
7567
e1b6bbea
RG
75682012-07-04 Richard Guenther <rguenther@suse.de>
7569
7570 PR tree-optimization/53849
7571 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
7572 for duplicated locals. Use add_referenced_var_1 to avoid
7573 pushing/popping cfun.
7574
463d5aa0
KT
75752012-07-04 Kai Tietz <ktietz@redhat.com>
7576
7577 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
7578 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
7579 prototype.
7580 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
7581 as i386_pe_reloc_rw_mask.
7582
cef8c100
RG
75832012-07-04 Richard Guenther <rguenther@suse.de>
7584
7585 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
7586 as in free_lang_data_in_type.
7587
b60cc080 75882012-07-04 Tobias Grosser <tobias@grosser.es>
3f1ae742 7589 Michael Matz <matz@suse.de>
b60cc080
TG
7590
7591 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
7592 (graphite-optimize-isl.o): Add dependencies.
7593 * common.opt (floop-nest-optimize): New flag.
7594 * doc/invoke.texi (floop-nest-optimize): Document.
7595 * graphite-dependences.c (compute_deps): Export.
7596 * graphite-poly.h (compute_deps): Declare.
7597 * graphite-optimize-isl.c: New file.
7598 * graphite-poly.c (apply_poly_transforms): Run the loop
7599 nest optimizer.
7600 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
7601 if -floop-nest-optimize is enabled.
7602
5e204a6e
OE
76032012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
7604
7605 * config/sh/predicates.md (logical_and_operand): New predicate.
7606 * config/sh/constraints.md (Jmb, Jmw): New constraints.
7607 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
7608 of 0xFFFF constant. Use logical_and_operand predicate and
7609 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
7610 (*andsi3_compact): Make it an insn_and_split. Use
7611 logical_and_operand predicate. Add Jmb,Jmw alternatives.
7612
f5d30680
JM
76132012-07-03 Jason Merrill <jason@redhat.com>
7614
7615 PR c++/53826
7616 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
7617
f758c26c
NC
76182012-07-03 Nick Clifton <nickc@redhat.com>
7619
7620 * config/mep/mep.c (mep_reorg_regmove): Use
7621 next_nonnote_non_debug_insn to advance to the next insn. Do not
7622 expect delete_insn to return an rtx.
7623
9795be39
RG
76242012-07-03 Richard Guenther <rguenther@suse.de>
7625
7626 * doc/install.texi (CLooG): Clarify how CLooG needs to be
7627 configured and that it needs to be built against ISL 0.10.
7628
95a3d9ee
UB
76292012-07-03 Uros Bizjak <ubizjak@gmail.com>
7630
7631 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
7632 code model string in the error message.
7633
19d7dc0d
UB
76342012-07-03 Uros Bizjak <ubizjak@gmail.com>
7635
7636 PR target/53811
7637 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
7638 sibcall_insn_operand. Move it to a temporary register if not.
7639
8e22f79f
AS
76402012-07-03 Andreas Schwab <schwab@linux-m68k.org>
7641
7642 PR target/28896
7643 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
7644 if !TARGET_68020.
7645
68a12ef3
UB
76462012-07-03 Uros Bizjak <ubizjak@gmail.com>
7647
7648 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
7649
43283548
UB
76502012-07-03 Roland McGrath <mcgrathr@google.com>
7651
7652 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
7653 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
7654 * configure: Regenerated.
7655 * config/i386/i386.md (simple_return_internal_long): Use %;
7656 (ctz<mode>2): Likewise.
7657 (*pause): Likewise.
7658
f031c344
OE
76592012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
7660
7661 PR target/51244
7662 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
7663 predicates.
7664 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
7665 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
7666 gen_branch_true and gen_branch_false.
7667 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
7668 gen_branch_false.
7669 (branch_true, branch_false): Use t_reg_operand predicate.
7670 (*branch_true, *branch_false): Delete.
7671 (movt): Use t_reg_operand predicate.
7672 (*negnegt): Use negt_reg_operand predicate and fold little and big
7673 endian variants.
7674 (*movtt): Use t_reg_operand and fold little and big endian variants.
7675 (*movt_qi): Delete.
7676
531b10fc
SB
76772012-07-02 Steven Bosscher <steven@gcc.gnu.org>
7678
7679 * stmt.c (emit_case_bit_tests): Remove.
7680 (expand_case): Remove expand_switch_using_bit_tests_p code.
7681 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
7682 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
7683 (lshift_cheap_p): Likewise.
7684 (expand_switch_using_bit_tests_p): Likewise.
7685 (struct case_bit_test): Likewise.
7686 (case_bit_test_cmp): Likewise.
7687 (emit_case_bit_tests): New implementation for GIMPLE.
7688 (gen_inbound_check): Do not release post-dominator info here.
7689 (process_switch): Reorder code. Expand as bit tests if it
7690 looks like a win.
43283548 7691 (do_switchconv): Release post-dominator info here if something changed.
531b10fc
SB
7692 (struct gimple_opt_pass): Verify more.
7693 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
7694
4e03d849
MJ
76952012-07-02 Martin Jambor <mjambor@suse.cz>
7696
7697 PR middle-end/38474
7698 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
7699 dynamic type change check.
7700
33ad93b9 77012012-07-02 Richard Guenther <rguenther@suse.de>
43283548
UB
7702 Michael Matz <matz@suse.de>
7703 Tobias Grosser <tobias@grosser.es>
7704 Sebastian Pop <sebpop@gmail.com>
33ad93b9
RG
7705
7706 * Makefile.in: Remove PPL flags in favor of ISL ones.
7707 (BACKENDLIBS): Remove PPL libs.
7708 (INCLUDES): Remove PPL includes in favor of ISL ones.
7709 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
7710 graphite-cloog-compat.h dependencies.
7711 (graphite-dependences.o): Likewise.
7712 (graphite-poly.o): Likewise.
7713 * configure.ac: Declare ISL vars instead of PPL ones.
7714 * configure: Regenerated.
43283548 7715 * doc/install.texi: Replace PPL requirement documentation with ISL one.
33ad93b9
RG
7716 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
7717 * graphite-clast-to-gimple.c: Likewise.
7718 * graphite-dependences.c: Likewise.
7719 * graphite-interchange.c: Likewise.
7720 * graphite-poly.h: Likewise.
7721 * graphite-poly.c: Likewise.
7722 * graphite-sese-to-poly.c: Likewise.
7723 * graphite.c: Likewise.
7724 * graphite-scop-detection.c: Re-arrange includes.
7725 * graphite-cloog-util.c: Remove.
7726 * graphite-cloog-util.h: Likewise.
7727 * graphite-ppl.h: Likewise.
7728 * graphite-ppl.c: Likewise.
7729 * graphite-dependences.h: Likewise.
7730
6886e444
RG
77312012-07-02 Richard Guenther <rguenther@suse.de>
7732
7733 Merge from graphite branch
7734 2011-07-21 Tobias Grosser <tobias@grosser.es>
43283548 7735
6886e444
RG
7736 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
7737 Remove graphite-cloog-util.h.
7738 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
7739 build_iv_mapping, translate_clast_user, translate_clast,
7740 free_scattering, initialize_cloog_names, build_cloog_prog,
7741 create_params_index): Do not use old compatibility functions.
7742 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
7743 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
7744 compatibility functions.
7745 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
7746 cloog.
7747 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
7748 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
7749 cloog_finalize().
7750 * graphite-cloog-compat.h: Remove.
7751
7752 2011-08-09 Tobias Grosser <tobias@grosser.es>
7753
7754 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
7755 of the string, no just a reference.
7756 (clast_name_index): Add a new field, that specifies if we need to free
7757 the name.
7758 (free_clast_name_index): If necessary, free the name string.
7759 (clast_name_index_elt_info): Calculate the hash based on the string
7760 content, not the memory location it is stored in.
7761 (clast_name_to_level): Specify that we do not need to free the name.
7762 (clast_name_to_index): Dito.
7763 (clast_name_to_lb_ub): Dito.
7764 (eq_clast_name_indexes): Compare the strings, not their base pointers.
7765 (free_scattering): Removed.
7766 (initialize_cloog_names): Renamed to add_names_to_union_domain().
7767 (add_names_to_union_domain): Changed to work on a union_domain,
7768 instead of a CloogNames structure.
7769 (build_cloog_prog): Removed.
7770 (build_cloog_union_domain): New.
7771 (generate_cloog_input): New.
7772 (scop_to_clast): Use CloogInput instead of CloogProgram.
7773 (print_generated_program): Adapt to new scop_to_clast() and do not
7774 print the CloogProgram any more.
7775 (create_params_index): Removed, functionality integrated in
7776 add_names_to_union_domain().
7777 (gloog): Adapt to new scop_to_clast().
7778 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
7779
7780 2012-01-11 Tobias Grosser <tobias@grosser.es>
43283548 7781
6886e444
RG
7782 * graphite-clast-to-gimple.c (clast_name_to_index,
7783 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
7784 (clast_to_gcc_expression): Add clast_expr_name as a new
7785 case. Do not assume a clast_expr_term points always to a
7786 clast_expr_name.
7787 (type_for_clast_term): Do not assume a clast_expr_term points always to
7788 a clast_expr_name.
7789 (type_for_clast_name): New.
7790 (type_for_clast_expr): Add clast_expr_name as a new case.
7791
7792 2011-08-03 Sebastian Pop <sebpop@gmail.com>
7793
7794 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
7795 new_Cloog_Scattering_from_ppl_Polyhedron,
7796 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
7797
6698ed01
JJ
77982012-07-02 Jakub Jelinek <jakub@redhat.com>
7799
7800 PR tree-optimization/53645
7801 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
7802 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
7803
44cd6810
WG
78042012-07-01 Wei Guozhi <carrot@google.com>
7805
7806 PR target/53447
7807 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
7808 * config/arm/arm.c (const_ok_for_dimode_op): New function.
7809 * config/arm/constraints.md (Dd): New constraint.
7810 * config/arm/predicates.md (arm_adddi_operand): New predicate.
7811 * config/arm/arm.md (adddi3): Extend it to handle constants.
7812 (arm_adddi3): Likewise.
7813 (addsi3_carryin_<optab>): Extend it to handle sbc case.
7814 (addsi3_carryin_alt2_<optab>): Likewise.
7815 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
7816
cb686b99
NS
78172012-06-30 Nathan Sidwell <nathan@acm.org>
7818
7819 * coverage.c (bbg_file_stamp): New.
7820 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
7821 (build_info): Write bbg_file_stamp.
7822 (coverage_init): Initialize bbg_file_stamp. Read counts file
7823 before writing graph header.
7824 (coverage_finish): Don't unlink the data file if we can generate a
7825 unique file stamp.
7826 * tree.h (crc32_unsigned): Declare.
7827 * tree.c (crc32_unsigned_bits): New, broken out of ...
7828 (crc32_byte): ... here. Use it.
7829 (crc32_unsigned): New.
7830
43283548 78312012-06-29 Cary Coutant <ccoutant@google.com>
1ec205bf
CC
7832
7833 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
7834 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
7835 (gen_variable_die): Likewise.
7836 (gen_namespace_die): Likewise.
7837
0118b919
EB
78382012-06-29 Eric Botcazou <ebotcazou@adacore.com>
7839
7840 * tree-eh.c (lower_try_finally_switch): Really put the location of the
7841 last statement of the finally block onto the switch.
7842
dc726735
L
78432012-06-29 H.J. Lu <hongjiu.lu@intel.com>
7844
7845 PR target/53539
7846 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
7847 TARGET_LP64.
7848
dfa15de2
SA
78492012-06-29 Sterling Augustine <saugustine@google.com>
7850
7851 * dwarf2out.c (add_pubname): Add comment.
7852 (add_pubtype): Fix indentation.
7853 (gen_enumeration_type_die): Likewise.
7854
271be516
JJ
78552012-06-29 Jakub Jelinek <jakub@redhat.com>
7856
7857 * tree-vect-generic.c (expand_vector_divmod): For even/odd
43283548 7858 widening multiply, put even always as first argument to VEC_PERM_EXPR.
271be516 7859
0fcc85cd
RH
78602012-06-29 Richard Henderson <rth@redhat.com>
7861
7862 * tree-vect-generic.c: Include target.h.
7863 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
7864 * Makefile.in (tree-vect-generic.o): Update.
7865
d4a10d0a
SB
78662012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7867
7868 * configure.ac: Remove special gtfiles case for C.
7869 * configure: Regenerate.
7870 * Makefile.in: Remove C front-end hooks and build hooks that
7871 will be picked up from c/Make-lang.in now.
7872 Add tree-mudflap to C_COMMON_OBJS.
7873 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
7874 * config/vms/vms.c: Look for c-tree.h in c/.
7875 * doc/gty.texi: Remove reference to c-config-lang.in.
7876 * doc/sourcebuild.texi: Document the c/ subdirectory.
7877
cc193fba
SB
78782012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7879
7880 * system.h (CASE_USE_BIT_TESTS): Poison.
7881 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
7882 (expand_switch_using_bit_tests_p): ...here.
7883 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
7884 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
7885
67a0732f
SB
78862012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7887
7888 * system.h (IFCVT_EXTRA_FIELDS): Poison.
7889 (IFCVT_INIT_EXTRA_FIELDS): Poison.
7890 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
7891 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
7892 IFCVT_INIT_EXTRA_FIELDS.
7893 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
7894 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
7895 IFCVT_MACHDEP_INIT.
7896 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
7897 frv_ifcvt_machdep_init.
7898 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
7899 Remove documentation.
7900 (IFCVT_MACHDEP_INIT): Document.
7901 * doc/tm.texi: Regenerate.
7902
126ea3e1
NC
79032012-06-29 Nick Clifton <nickc@redhat.com>
7904
7905 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
7906
2b5bb7da
JJ
79072012-06-29 Jakub Jelinek <jakub@redhat.com>
7908
7909 * tree-vect-stmts.c (vectorizable_operation): Check both
7910 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
7911 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
7912
99651574
RH
79132012-06-28 Richard Henderson <rth@redhat.com>
7914
7915 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
7916
c9ba3307
JJ
79172012-06-28 Jakub Jelinek <jakub@redhat.com>
7918
5deb57cb
JJ
7919 PR tree-optimization/51581
7920 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
7921 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
7922 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
7923 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
7924 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
7925 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
7926
c9ba3307
JJ
7927 PR tree-optimization/53645
7928 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
7929 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
7930 if possible.
7931
b04ffa56
GJL
79322012-06-28 Georg-Johann Lay <avr@gjlay.de>
7933
7934 PR 53595
7935 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
7936 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
7937 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
7938 avr_hard_regno_call_part_clobbered.
7939
4519d745
RG
79402012-06-28 Richard Guenther <rguenther@suse.de>
7941
7942 PR middle-end/53790
7943 * expr.c (expand_expr_real_1): Verify if the type is complete
7944 before inspecting its size.
7945
7db2226d
AS
79462012-06-28 Andreas Schwab <schwab@linux-m68k.org>
7947
7948 * doc/include/gpl.texi: Remove.
7949 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
7950
4ee4c52c
JJ
79512012-06-28 Jakub Jelinek <jakub@redhat.com>
7952
7953 PR tree-optimization/53645
7954 * tree-vect-generic.c (add_rshift): New function.
7955 (expand_vector_divmod): New function.
7956 (expand_vector_operation): Use it for vector integer
7957 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
7958 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
7959 unused lguup variable with dummy_int.
7960
ecd49d51
OH
79612012-06-28 OLivier Hainque <hainque@adacore.com>
7962
7963 * expr.c (convert_move): Latch mem integer inputs into a
7964 register before expanding a multi-instructions sequence.
7965
9faeb493
UB
79662012-06-28 Alexandre Oliva <aoliva@redhat.com>
7967 Uros Bizjak <ubizjak@gmail.com>
7968 Jakub Jelinek <jakub@redhat.com>
a992a6d1
AO
7969
7970 PR debug/53706
7971 PR debug/47624
7972 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
7973 (vt_finalize): ... here instead, if needed.
7974
6f9e260c
AO
79752012-06-28 Alexandre Oliva <aoliva@redhat.com>
7976
7977 PR debug/53740
7978 PR debug/52983
7979 PR debug/48866
7980 * dce.c (word_dce_process_block): Check whether inserting debug
7981 temps are needed even for needed insns.
7982 (dce_process_block): Likewise.
7983 * df-problems.c (dead_debug_add): Add comment about multi-regs.
7984 (dead_debug_insert_temp): Likewise. Don't subreg when we're
7985 setting fewer regs than a multi-reg requires.
7986
64a5dc56
RH
79872012-06-27 Richard Henderson <rth@redhat.com>
7988
7989 * config/alpha/alpha.c (alpha_dimode_u): New.
7990 (alpha_init_builtins): Initialize it, and use it.
7991 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
7992 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
7993 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
7994 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
7995 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
7996 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
7997 (alpha_fold_builtin_ctpop): Likewise.
7998 (alpha_fold_builtin_umulh): Remove.
7999 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
8000 typo in MAX_ARGS check.
8001
98449720
RH
80022012-06-27 Richard Henderson <rth@redhat.com>
8003
8004 * tree.def (MULT_HIGHPART_EXPR): New.
8005 * cfgexpand.c (expand_debug_expr): Ignore it.
8006 * expr.c (expand_expr_real_2): Handle it.
8007 * fold-const.c (int_const_binop_1): Likewise.
8008 * optabs.c (optab_for_tree_code): Likewise.
8009 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
8010 * tree-inline.c (estimate_operator_cost): Likewise.
8011 * tree-pretty-print.c (dump_generic_node): Likewise.
8012 (op_code_prio, op_symbol_code): Likewise.
8013 * tree.c (commutative_tree_code): Likewise. Also handle
8014 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
8015
ff4d1662
RH
80162012-06-27 Richard Henderson <rth@redhat.com>
8017
8018 PR target/53749
8019 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
8020 in 2012-06-23 change. Adjust two other DImode tests as well.
8021
4b3650e3
NC
80222012-06-27 Nick Clifton <nickc@redhat.com>
8023
8024 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
8025 input operand.
8026
195b4c50
RG
80272012-06-27 Richard Guenther <rguenther@suse.de>
8028
8029 PR middle-end/53676
8030 * tree-chrec.c (chrec_convert_1): Represent truncation to
8031 a type with undefined overflow as truncation to an unsigned
8032 type converted to the type with undefined overflow.
8033 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
8034 the scalar evolution of a truncated widened operation avoid
8035 looking at the non-existing evolution of the widened operation
8036 result.
8037
be7493ca
RG
80382012-06-27 Richard Guenther <rguenther@suse.de>
8039
8040 PR tree-optimization/53774
8041 * tree-ssa-reassoc.c (get_rank): All default defs have
8042 precomputed rank.
8043 (init_reassoc): Precompute rank for all SSA default defs.
8044
d3f7b31e
NC
80452012-06-27 Nick Clifton <nickc@redhat.com>
8046
8047 * config/rx/rx.md (simple_return): Use the simple_return rtx.
8048
a247af83
RH
80492012-06-26 Richard Henderson <rth@redhat.com>
8050
8051 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
8052 and don't fall thru from standard_80387_constant_p to the memory
9faeb493 8053 fallback.
a247af83 8054
87b78516
RH
80552012-06-26 Richard Henderson <rth@redhat.com>
8056
8057 * config/i386/i386.c (bdesc_args): Update. Change
8058 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
8059 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
8060 (ix86_builtin_mul_widen_even): Use it.
8061 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
8062 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
8063 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
8064 for all SSE2.
8065 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
8066 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
8067 (vec_widen_smult_even_v4si): New.
8068
298301d9
RH
80692012-06-26 Richard Henderson <rth@redhat.com>
8070
8071 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
8072 to expander; move guts to ...
8073 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
8074 highparts before shifting up.
8075 * config/i386/i386-protos.h: Update.
8076
4e2edffd
SB
80772012-06-26 Steven Bosscher <steven@gcc.gnu.org>
8078
8079 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
8080 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
8081 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
8082
de2c775d
AO
80832012-06-26 Alexandre Oliva <aoliva@redhat.com>
8084
8085 * var-tracking.c (vt_add_function_parameter): Use a preserved
8086 VALUE for the MEM address of an incoming parameter.
8087
d44f5f25
SA
80882012-06-26 Sterling Augustine <saugustine@google.com>
8089
1542460a
SA
8090 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
8091 (prune_unused_types): Likewise.
d44f5f25 8092
01a07a64
SB
80932012-06-26 Steven Bosscher <steven@gcc.gnu.org>
8094
8095 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8096 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
8097 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8098 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
8099 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
8100 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
8101 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
8102 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
8103 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
8104 documentation.
8105 * doc/tm.texi: Regenerate.
8106 * doc/cpp.texi: Make example for #error generic.
8107 * config/frv/frv.h: Fix example text to match tm.texi.
8108
f9453c07
BS
81092012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
8110
8111 * tree-pass.h (pass_strength_reduction): New decl.
8112 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
8113 (finalize_costs): Likewise.
8114 * timevar.def (TV_TREE_SLSR): New timevar.
8115 * gimple-ssa-strength-reduction.c: New.
8116 * tree-flow.h (initialize_costs): New decl.
8117 (finalize_costs): Likewise.
8118 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
8119 * passes.c (init_optimization_passes): Add pass_strength_reduction.
8120
703ae70c
MT
81212012-06-26 Matt Turner <mattst88@gmail.com>
8122
9faeb493 8123 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
703ae70c
MT
8124 (__builtin_arm_tinsrh): Likewise.
8125 (__builtin_arm_tinsrw): Likewise.
8126 (__builtin_arm_wsadb): Add missing v2si parameter.
8127 (__builtin_arm_wsadh): Likewise.
8128 (__builtin_arm_getwcx): Delete.
8129 (__builtin_arm_setwcx): Delete.
8130 (__builtin_arm_getwcgr0): Add.
8131 (__builtin_arm_getwcgr1): Add.
8132 (__builtin_arm_getwcgr2): Add.
8133 (__builtin_arm_getwcgr3): Add.
8134 (__builtin_arm_setwcgr0): Add.
8135 (__builtin_arm_setwcgr1): Add.
8136 (__builtin_arm_setwcgr2): Add.
8137 (__builtin_arm_setwcgr3): Add.
8138
3c04921b
RG
81392012-06-26 Richard Guenther <rguenther@suse.de>
8140
8141 Revert
8142 2012-06-21 Richard Guenther <rguenther@suse.de>
8143
8144 * tree-inline.c (estimate_num_insns): Estimate call cost for
8145 tailcalls properly.
8146
a8d56c30
SB
81472012-06-26 Steven Bosscher <steven@gcc.gnu.org>
8148
8149 PR other/33190
8150 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
8151 * doc/tm.texi: Regenerate.
8152
0c93ed52
SB
81532012-06-26 Steven Bosscher <steven@gcc.gnu.org>
8154
8155 PR other/33190
8156 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
8157 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
8158 * doc/tm.texi.in: Remove documentation for unused target macros
8159 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
8160 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
8161 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
8162 TARGET_NARROW_VOLATILE_BITFIELDS.
8163 Document that MD_HANDLE_UNWABI is a macro in libgcc.
8164 * doc/tm.texi: Regenerate.
8165 * system.h: Poison target macros
8166 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
8167 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
8168 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
8169 TARGET_NARROW_VOLATILE_BITFIELDS
8170
3d2e04fd
JH
81712012-06-26 Jan Hubicka <jh@suse.cz>
8172
8173 PR lto/53572
8174 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
8175 used symbols.
8176
035775c8
DC
81772012-06-26 Dehao Chen <dehao@google.com>
8178
8179 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
8180 source location is consistant with the call stmt.
8181
38eec4c6
UW
81822012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
8183
8184 PR tree-optimization/53729
8185 PR tree-optimization/53636
8186 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
8187 vect_verify_datarefs_alignment until after statements have
8188 been marked as relevant/irrelevant.
8189 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
8190 Skip irrelevant statements.
8191 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
8192 instead of STMT_VINFO_RELEVANT.
8193 (vect_get_data_access_cost): Do not check for supportable
8194 alignment before calling vect_get_load_cost/vect_get_store_cost.
8195 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
8196 handling unsupported alignment.
8197 (vect_get_load_cost): Likewise.
8198
e4ae19bc
SB
81992012-06-25 Steven Bosscher <steven@gcc.gnu.org>
8200
8201 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
8202 Do not define JMP_BUF_SIZE.
8203
5dcf6b7f
JJ
82042012-06-26 Jakub Jelinek <jakub@redhat.com>
8205
8206 PR tree-optimization/53748
8207 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
8208 if arg0/arg1 have integral or pointer types.
8209
a2051b26
RH
82102012-06-25 Richard Henderson <rth@redhat.com>
8211
8212 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
8213 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
8214 (sdot_prodv4si): New; handle only XOP.
8215
93703e79
RH
82162012-06-25 Richard Henderson <rth@redhat.com>
8217
8218 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
8219 (V2UDI_FUNC_V4USI_V4USI): New.
8220 (V4UDI_FUNC_V8USI_V8USI): New.
8221 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
8222 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
8223 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
8224 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
8225 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
8226 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
8227 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
8228 (bdesc_args): Add them.
8229 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
8230 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
8231 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
8232 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
8233 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
8234
379eaa6f
RH
82352012-06-25 Richard Henderson <rth@redhat.com>
8236
8237 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
8238
ac357108
RH
82392012-06-25 Richard Henderson <rth@redhat.com>
8240
8241 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
8242 to V16QImode.
8243 (ix86_expand_vec_interleave): New.
8244 (ix86_expand_mul_widen_evenodd): New.
8245 (ix86_expand_mul_widen_hilo): New.
8246 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
8247 * config/i386/i386.md (u_bool) New code attr.
8248 * config/i386/predicates.md
8249 (nonimmediate_or_const_vector_operand): Remove.
8250 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
8251 both AVX and SSE4_1.
8252 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
8253 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
8254 (vec_widen<s>mult_hi_v8si): Remove.
8255 (vec_widen<s>mult_lo_v8si): Remove.
8256 (vec_widen_smult_hi_v4si): Remove.
8257 (vec_widen_smult_lo_v4si): Remove.
8258 (vec_widen_umult_hi_v4si): Remove.
8259 (vec_widen_umult_lo_v4si): Remove.
8260 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
8261 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
8262 * config/i386/i386-protos.h: Update.
8263
8490252a
CL
82642012-06-25 Christophe Lyon <christophe.lyon@st.com>
8265
8266 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
8267 (neon_vld1_dup): Restrict to VQ operands.
8268 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
8269
9e94a7fc 82702012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9faeb493 8271 James Greenhalgh <james.greenhalgh@arm.com>
9e94a7fc
MGD
8272
8273 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
8274 (TARGET_FMA): New macro.
8275 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
8276 (TARGET_ARM_ARCH): Likewise.
8277 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
8278 (TARGET_V6M, TARGET_V7M): Likewise.
8279 (TARGET_ARM_ARCH_PROFILE): Likewise.
8280 (TARGET_ARM_FEATURE_LDREX): Likewise.
8281 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
8282 (ARM_MIN_ENUM_SIZE): Likewise.
8283 * config/arm/arm.c (arm_file_start): Refactor appropriately.
8284 (base_architecture): New enumeration.
8285 (arm_base_arch): New global variable.
8286 (processors): Add field base_arch.
8287 (ARM_ARCH, ARM_CORE): Adjust accordingly.
8288 (arm_option_override): Add initialization of arm_base_arch.
8289 * doc/cpp.texi (system-specific predefined macros.): Change.
8290
85d91748
JJ
82912012-06-25 Jakub Jelinek <jakub@redhat.com>
8292
8293 PR target/53759
8294 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
8295 of x x x in the vmovlps load alternative.
8296
ecf706e5
RS
82972012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
8298
8299 PR debug/53740
8300 * df.h (dead_debug_add): Remove third argument.
8301 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
8302 REG that we want to replace instead.
8303 (dead_debug_insert_temp): Use the REGNO of the reg that we want
8304 to replace instead of DF_REF_REGNO. Require there to always be
8305 at least one such use. Check for cases where the same location
8306 has more than df_ref associated with it.
8307 (df_note_bb_compute): Remove third dead_debug_add argument.
8308 * dce.c (word_dce_process_block): Likewise.
8309
39ce30d8
SB
83102012-06-25 Steven Bosscher <steven@gcc.gnu.org>
8311
8312 * config/v850/v850.c: Remove redundant extern declarations for
8313 last_assemble_variable_decl and size_directive_output.
8314
8315 * doc/tm.texi.in: Document JMP_BUF_SIZE.
8316 * doc/tm.texi: Regenerate.
8317 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
8318 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
8319 * config/stormy16/stormy16.h: Likewise.
8320
8321 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
8322
8323 * doc/sourcebuild.texi: Add missing subdirectories.
8324
4e523f33
TG
83252012-06-25 Tristan Gingold <gingold@adacore.com>
8326
8327 * config/i386/i386.h: Fix typo.
8328
a2851b75
TG
83292012-06-25 Tristan Gingold <gingold@adacore.com>
8330
8331 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
8332 (seh_cfa_adjust_cfa): ... that function.
8333 (seh_emit_stackalloc): Do not emit out of range values.
8334 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
8335 UNSPEC_DEF_CFA constants.
8336 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
8337 * config/i386/i386.c (ix86_frame_pointer_required): Required
8338 for very large frames on SEH target.
8339 (ix86_compute_frame_layout): Save area is before frame pointer
8340 on SEH target. Handle very large frames.
8341 (ix86_expand_prologue): Likewise.
8342
416ff32e
SB
83432012-06-24 Steven Bosscher <steven@gcc.gnu.org>
8344
8345 * output.h: (current_function_is_leaf,
8346 current_function_sp_is_unchanging,
8347 current_function_uses_only_leaf_regs): Remove.
8348 * function.c (current_function_is_leaf,
8349 current_function_sp_is_unchanging,
8350 current_function_uses_only_leaf_regs): Remove.
8351 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
8352 instead of current_function_uses_only_leaf_regs.
8353 * function.h (struct rtl_data): New fields sp_is_unchanging,
8354 is_leaf, uses_only_leaf_regs.
8355 * resource.c (init_resource_info): Replace current_function_is_leaf,
8356 current_function_sp_is_unchanging, and
8357 current_function_uses_only_leaf_regs with new crtl fields.
8358 * sdbout.c (sdbout_symbol): Likewise.
8359 * df-core.c (rest_of_handle_df_initialize): Likewise.
8360 * ira.c (ira): Likewise.
8361 * final.c (final_start_function): Likewise.
8362 * reorg.c (fill_simple_delay_slots): Likewise.
8363 * regrename.c (check_new_reg_p): Likewise.
8364 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
8365 (notice_stack_pointer_modification): Likewise.
8366 * dbxout.c (dbxout_symbol): Likewise.
8367 (dbxout_parms): Likewise.
8368 * sel-sched.c (init_regs_for_mode): Likewise.
8369 * dwarf2out.c (dbx_reg_number): Likewise.
8370 (multiple_reg_loc_descriptor): Likewise.
8371 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
8372 (gen_pop): Likewise.
8373 (ix86_select_alt_pic_regnum): Likewise.
8374 (ix86_compute_frame_layout): Likewise.
8375 (ix86_finalize_stack_realign_flags): Likewise.
8376 (ix86_expand_epilogue): Likewise.
8377 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
8378 * config/h8300/h8300.c (byte_reg): Likewise.
8379 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
8380 (c6x_save_reg): Likewise.
8381 (c6x_compute_frame_layout): Likewise.
8382 * config/pa/pa.c (pa_compute_frame_size): Likewise.
8383 (pa_output_function_prologue): Likewise.
8384 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
8385 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
8386 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
8387 (sparc_expand_prologue): Likewise.
8388 (sparc_flat_expand_prologue): Likewise.
8389 (sparc_asm_function_prologue): Likewise.
8390 (sparc_output_mi_thunk): Likewise.
8391 (sparc_frame_pointer_required): Likewise.
8392 * config/epiphany/epiphany.c (epiphany_compute_function_type):
8393 Likewise.
8394 (epiphany_compute_frame_size): Likewise.
8395 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
8396 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
8397 (cris_frame_pointer_required): Likewise.
8398 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
8399 (tilepro_current_function_is_leaf): Likewise.
8400 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
8401 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
8402 * config/ia64/ia64.c (find_gr_spill): Likewise.
8403 (ia64_compute_frame_size): Likewise.
8404 (ia64_can_eliminate): Likewise.
8405 (ia64_initial_elimination_offset): Likewise.
8406 * config/m68k/m68k.c (m68k_save_reg): Likewise.
8407 (m68k_expand_epilogue): Likewise.
8408 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8409 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
8410 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
8411 Likewise.
8412 (picochip_output_frame_debug): Likewise.
8413 * config/sh/sh.c (sh_media_register_for_return): Likewise.
8414 (sh_allocate_initial_value): Likewise.
8415 (sh_output_mi_thunk): Likewise.
8416 * config/microblaze/microblaze.c (microblaze_must_save_register):
8417 Likewise.
8418 (compute_frame_size): Likewise.
8419 (microblaze_initial_elimination_offset): Likewise.
8420 (microblaze_expand_prologue): Likewise.
8421 (microblaze_expand_epilogue): Likewise.
8422 * config/frv/frv.c (frv_expand_epilogue): Likewise.
8423 (frv_frame_pointer_required): Likewise.
8424 * config/spu/spu.c (get_pic_reg): Likewise.
8425 (direct_return): Likewise.
8426 (spu_expand_prologue): Likewise.
8427 (spu_expand_epilogue): Likewise.
8428 (spu_initial_elimination_offset): Likewise.
8429 * config/mips/mips.c (mips_global_pointer): Likewise.
8430 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
8431 (mips_compute_frame_info): Likewise.
8432 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
8433 (mep_reload_pointer): Likewise.
8434 * config/rl78/rl78.c (need_to_save): Likewise.
8435 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
8436 * config/score/score.c (score_compute_frame_size): Likewise.
8437 (score_function_prologue): Likewise.
8438 * config/bfin/bfin.c (must_save_p): Likewise.
8439 (expand_prologue_reg_save): Likewise.
8440 (expand_epilogue_reg_restore): Likewise.
8441 (bfin_frame_pointer_required): Likewise.
8442 (n_regs_saved_by_prologue): Likewise.
8443 (add_to_reg): Likewise.
8444 (expand_interrupt_handler_prologue): Likewise.
8445 (expand_interrupt_handler_epilogue): Likewise.
8446 (bfin_expand_prologue): Likewise.
8447 * config/avr/avr.c (avr_regs_to_save): Likewise.
8448 (avr_prologue_setup_frame): Likewise.
8449 (expand_epilogue): Likewise.
8450 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
8451 (s390_register_info): Likewise.
8452 (s390_frame_info): Likewise.
8453 (s390_init_frame_layout): Likewise.
8454 (s390_emit_prologue): Likewise.
8455
8456
e1ab7892
SB
84572012-06-24 Steven Bosscher <steven@gcc.gnu.org>
8458
8459 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
8460 * vmsdbgout: Do not undefine it if defined.
8461 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
8462 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
8463 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
8464
636da826
RS
84652012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
8466
9faeb493 8467 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
636da826 8468
77a3dbf6
RH
84692012-06-23 Richard Henderson <rth@redhat.com>
8470
2d542a9f
RH
8471 PR target/53749
8472 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
8473 V*QImode shifts and multiply.
8474 (ix86_expand_vecop_qihi): Support shifts.
8475 * config/i386/i386.md (any_shift): New code iterator.
8476 * config/i386/sse.md (ashlv16qi3): Merge ...
8477 (<any_shiftrt>v16qi3): ... into ...
8478 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
8479 to support SSE and AVX.
8480
7b532118
RH
8481 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
8482 parameter into src and dest.
8483 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
8484 (vec_unpacks_hi_<V124_AVX2>): Likewise.
8485 (vec_unpacku_lo_<V124_AVX2>): Likewise.
8486 (vec_unpacks_lo_<V124_AVX2>): Likewise.
8487 * config/i386/i386-protos.h: Update.
8488
77a3dbf6
RH
8489 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
8490 pure expander; move expansion code ...
8491 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
8492 * config/i386/i386-protos.h: Update.
8493
42533d77
EW
84942012-06-22 Edmar Wienskoski <edmar@freescale.com>
8495
8496 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
8497 (popcntb<mode>2): Add attribute type popcnt.
8498 (popcntd<mode>2): Ditto.
8499 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
8500 * config/rs6000/power5.md (define_insn_reservation): Ditto.
8501 * config/rs6000/power7.md (define_insn_reservation): Ditto.
8502 * config/rs6000/476.md (define_insn_reservation): Ditto.
8503 * config/rs6000/power6.md (define_insn_reservation): New
8504 reservation for popcnt instructions.
8505
50c7ad7e
L
85062012-06-22 H.J. Lu <hongjiu.lu@intel.com>
8507
8508 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
8509
5bfb2af2
L
85102012-06-22 H.J. Lu <hongjiu.lu@intel.com>
8511
8512 PR target/53383
8513 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
8514
8515 * config/i386/i386.c (ix86_option_override_internal): Allow
8516 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
8517
8518 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
8519 if SSE is disabled.
8520
7735d6c7
BS
85212012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
8522
8523 * double-int.c (double_int_multiple_of): New function.
8524 * double-int.h (double_int_multiple_of): New decl.
8525 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
8526 (mbc_entry_hash): New forward decl.
8527 (mbc_entry_eq): Likewise.
8528 (zero_cost): Change to no_cost.
8529 (mult_costs): New static var.
8530 (cost_tables_exist): Likewise.
8531 (initialize_costs): New function.
8532 (finalize_costs): Likewise.
8533 (tree_ssa_iv_optimize_init): Call initialize_costs.
8534 (add_cost): Change to add_regs_cost; distinguish costs by speed.
8535 (multiply_regs_cost): New function.
8536 (add_const_cost): Likewise.
8537 (extend_or_trunc_reg_cost): Likewise.
8538 (negate_reg_cost): Likewise.
8539 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
8540 costs by speed.
8541 (get_address_cost): Change add_cost to add_regs_cost; change
8542 multiply_by_cost to multiply_by_const_cost.
8543 (force_expr_to_var_cost): Change zero_cost to no_cost; change
8544 add_cost to add_regs_cost; change multiply_by_cost to
8545 multiply_by_const_cost.
8546 (split_cost): Change zero_cost to no_cost.
8547 (ptr_difference_cost): Likewise.
8548 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
8549 to multiply_by_const_cost.
8550 (get_computation_cost_at): Change add_cost to add_regs_cost; change
8551 multiply_by_cost to multiply_by_const_cost.
8552 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
8553 (determine_iv_cost): Change add_cost to add_regs_cost.
8554 (iv_ca_new): Change zero_cost to no_cost.
8555 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
8556 * tree-ssa-address.c (most_expensive_mult_to_index): Change
8557 multiply_by_cost to multiply_by_const_cost.
8558 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
8559 (add_regs_cost): New decl.
8560 (multiply_regs_cost): Likewise.
8561 (add_const_cost): Likewise.
8562 (extend_or_trunc_reg_cost): Likewise.
8563 (negate_reg_cost): Likewise.
8564
62e0a1ed
RG
85652012-06-22 Richard Guenther <rguenther@suse.de>
8566
8567 Merge from graphite branch
8568 2011-08-10 Sebastian Pop <sebpop@gmail.com>
9faeb493 8569
62e0a1ed
RG
8570 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
8571
8572 2012-01-13 Tobias Grosser <tobias@grosser.es>
8573
8574 * tree-flow.h (parallelized_function_p): Declare.
8575 * tree-parloops.c (parallelized_function_p): Export.
8576 * graphite.c (graphite_transform_loops): Do not run graphite on
8577 already parallel functions.
8578
d25df882
AM
85792012-06-22 Alan Modra <amodra@gmail.com>
8580
8581 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
8582 return mem. Convert to indirect addressing if not indirect or
8583 indexed. Adjust all callers.
8584
de703cd7
RG
85852012-06-22 Richard Guenther <rguenther@suse.de>
8586
8587 * gcov-iov.c: Include bconfig.h and system.h.
8588
dbf85890
AS
85892012-06-22 Andreas Schwab <schwab@linux-m68k.org>
8590
8591 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
8592
e196f4b7
RG
85932012-06-22 Richard Guenther <rguenther@suse.de>
8594
8595 PR gcov-profile/53744
8596 * gcov-iov.c (main): Treat "" and "prerelease" the same.
8597
c43470b1
EB
85982012-06-22 Eric Botcazou <ebotcazou@adacore.com>
8599
8600 PR debug/53704
8601 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
8602 for GNU Fortran if in strict DWARF2 mode.
8603
a300e459
EB
86042012-06-22 Eric Botcazou <ebotcazou@adacore.com>
8605
8606 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
8607 DECL_IGNORED_P non-reg vars even if they are used.
8608
61806a93
AO
86092012-06-21 Alexandre Oliva <aoliva@redhat.com>
8610
8611 PR debug/53671
8612 PR debug/49888
8613 * var-tracking.c (vt_get_canonicalize_base): New.
8614 (vt_canonicalize_addr, vt_stack_offset_p): New.
8615 (vt_canon_true_dep): New.
8616 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
8617 (clobber_overlaping_mems): Use vt_canonicalize_addr.
8618
48b00503
AO
86192012-06-21 Alexandre Oliva <aoliva@redhat.com>
8620
8621 PR debug/53671
8622 PR debug/49888
8623 * var-tracking.c (vt_initialize): Record initial offset between
8624 arg pointer and stack pointer.
8625
4977e903
AO
86262012-06-21 Alexandre Oliva <aoliva@redhat.com>
8627
8628 PR debug/53671
8629 PR debug/49888
8630 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
8631 CFA base.
8632
a9bf4fe2
AO
86332012-06-21 Alexandre Oliva <aoliva@redhat.com>
8634
8635 PR debug/53671
8636 PR debug/49888
9faeb493 8637 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
a9bf4fe2 8638
1ca63357
AO
86392012-06-21 Alexandre Oliva <aoliva@redhat.com>
8640
8641 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
8642
ce8fe26d
AO
86432012-06-21 Alexandre Oliva <aoliva@redhat.com>
8644
8645 PR debug/53682
8646 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
8647
b6fbbea3
MI
86482012-06-21 Meador Inge <meadori@codesourcery.com>
8649
8650 PR c/53702
8651 * c-decl.c (c_push_function_context): Restore the behavior to reuse
8652 the language function allocated for -Wunused-local-typedefs.
8653 (c_pop_function_context): If necessary, clear the language function
8654 created in c_push_function_context. Always clear out the
8655 x_cur_stmt_list field of the restored language function.
8656
9faeb493
UB
86572012-06-21 Sterling Augustine <saugustine@google.com>
8658 Cary Coutant <ccoutant@google.com>
5175cbaf
SA
8659
8660 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
8661 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
8662 (comdat_type_struct): New field 'skeleton_die'.
8663 (breakout_comdat_types): Update it.
8664 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
8665 is_namespace_die. Fix minor style violation. Call want_pubnames.
8666 (add_pubname_string): Call want_pubnames.
8667 (add_pubtype): Rework logic for calculating type name. Call
8668 is_namespace_die. Call want_pubnames.
8669 (output_pubnames): Move conditional logic deciding when to produce the
8670 section from dwarf2out_finish. Use new skeleton_die field.
8671 (base_type_die): Call add_pubtype.
8672 (gen_enumeration_type_die): Unconditionally call add_pubtype.
8673 (gen_subprogram_die): Adjust calls to add_pubname.
8674 (gen_namespace_die): Call add_pubname_string.
8675 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
8676 produce pubnames and pubtypes sections to output_pubnames.
0aba8600 8677 * common.opt (-gpubnames): New option.
1a102c52 8678 * doc/invoke.texi: Document it.
5175cbaf 8679
7033abe1
SB
86802012-06-21 Steven Bosscher <steven@gcc.gnu.org>
8681
8682 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
8683
625ed172
MM
86842012-06-21 Michael Matz <matz@suse.de>
8685
8686 PR middle-end/53688
8687 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
8688 with correct size.
8689
ccd49f5a
RG
86902012-06-21 Richard Guenther <rguenther@suse.de>
8691
8692 * tree-inline.c (estimate_num_insns): Estimate call cost for
8693 tailcalls properly.
8694
19c1aa2d
RS
86952012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
8696
8697 * tree.h (DECL_SOURCE_COLUMN): New accessor.
8698
19425621
UB
86992012-06-20 Uros Bizjak <ubizjak@gmail.com>
8700
8701 * config/i386/i386.md (SINCOS): New int iterator.
8702 (sincos): New int attribute.
8703 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
8704 SINCOS int iterator.
8705 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
8706 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
8707
87082012-06-20 Uros Bizjak <ubizjak@gmail.com>
8709
8710 * config/i386/i386.md (RDFSGSBASE): New int iterator.
8711 (WRFSGSBASE): Ditto.
8712 (fsgs): New int attribute.
8713 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
8714 RDFSGSBASE int iterator.
8715 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
8716 WRFSGSBASE int iterator.
8717
bafda723
UB
87182012-06-20 Uros Bizjak <ubizjak@gmail.com>
8719
8720 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
8721 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
8722 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
8723 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
8724 int iterator.
8725
975667e7
SB
87262012-06-20 Steven Bosscher <steven@gcc.gnu.org>
8727
8728 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
8729
a75f5017
RG
87302012-06-20 Richard Guenther <rguenther@suse.de>
8731
8732 PR tree-optimization/30318
8733 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
8734 constants here.
8735 (range_int_cst_singleton_p): But explicitely here.
8736 (zero_nonzero_bits_from_vr): And here.
8737 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
8738 to cover all cases we can perform arbitrary precision
8739 arithmetic with double-ints.
8740 (intersect_ranges): Handle adjacent anti-ranges.
8741
fb124e23
UB
87422012-06-20 Uros Bizjak <ubizjak@gmail.com>
8743
8744 * config/i386/i386.md (rounding_insn): New int attribute.
8745 (<rounding_insn>xf2): Macroize insn from
8746 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
8747 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
8748
87492012-06-20 Uros Bizjak <ubizjak@gmail.com>
8750
8751 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
8752 (ieee_maxmin): New int attribute.
8753 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
19425621 8754 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
fb124e23 8755
34dd397b
SB
87562012-06-20 Steven Bosscher <steven@gcc.gnu.org>
8757
8758 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
8759 * config/arm/arm.c: Do not include c-pragma.h.
8760 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
8761 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
8762 to arm_emit_eabi_attribute.
8763 * arm-c.c: Do not include output.h.
8764 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
8765 call to arm_emit_eabi_attribute.
8766 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
8767
f89dcfd8
RG
87682012-06-20 Richard Guenther <rguenther@suse.de>
8769
8770 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8771 Allow adjusting alignment of user-aligned decls again.
8772
5a772946
SB
87732012-06-20 Steven Bosscher <steven@gcc.gnu.org>
8774
8775 * config/rl78/rl78-c.c: Remove unnecessary includes.
8776
3e71d953
SB
87772012-06-20 Steven Bosscher <steven@gcc.gnu.org>
8778
8779 * config/cris/cris.c: Include cgraph.h.
8780 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
8781
8930883e
MK
87822012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
8783
8784 * emit-rtl.c (need_atomic_barrier_p): New function.
8785 * emit-rtl.h (need_atomic_barrier_p): Declare it.
8786 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
8787 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
8788 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
8789 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
8790 (mips_process_sync_loop): Use generic version instead.
8791
ff619148
MK
87922012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
8793
8794 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
8795 it is used.
8796
6399761a 87972012-06-19 Tom de Vries <vries@codesourcery.com>
fb124e23 8798 Maxim Kuvyrkov <maxim@codesourcery.com>
6399761a
TV
8799
8800 * config/mips/constraints.md (ZR): New constraint.
8801 * config/mips/predicates.md (mem_noofs_operand): New predicate.
8802 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
fb124e23 8803 * config/mips/mips.h (TARGET_XLP): Define.
6399761a
TV
8804 (TARGET_SYNC_AFTER_SC): Update.
8805 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
8806 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
8807 XLP-specific swap and ldadd patterns.
8808 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
8809
01c196ea
TV
88102012-06-19 Tom de Vries <vries@codesourcery.com>
8811 Maxim Kuvyrkov <maxim@codesourcery.com>
8812
8813 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
8814 (mips_emit_post_atomic_barrier_p): New static functions.
8815 (mips_process_sync_loop): Use them. Emit sync memory barriers in
8816 accordance with memory model semantics. Add return of CMP result for
8817 compare_and_swap.
8818 * config/mips/mips.md: Update comment.
8819 (sync_cmp): New attribute.
8820 (sync_memmodel): New attribute replacing sync_release_barrier.
8821 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
8822 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
8823 (sync_lock_test_and_set, test_and_set_12): Update.
8824 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
8825 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
8826
b513d0fe
JM
88272012-06-19 Joseph Myers <joseph@codesourcery.com>
8828
8829 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
8830 mov_si<mode>_e500_subreg0.
8831 (*mov_si<mode>_e500_subreg0_elf_low)
8832 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
8833
f49278e6
RH
88342012-06-19 Richard Henderson <rth@redhat.com>
8835
8836 * config/alpha/alpha.c: Include params.h.
8837 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
8838 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
8839
70f42967
SB
88402012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8841
8842 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
8843 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
8844 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
8845 Remove.
8846 * doc/tm.texi: Regenerate.
8847 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
8848 .objc_class_name_*.
8849 * config/darwin-c.c: Include target.h.
8850 (darwin_objc_declare_unresolved_class_reference): New function.
8851 (darwin_objc_declare_class_definition): New function.
8852 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
8853 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
8854
a8781821
SB
88552012-06-19 Steven Bosscher <steven@gcc.gnu.org>
8856
8857 * target.def (output_ident): New hook.
8858 * targhooks.h (default_asm_output_ident_directive): Add prototype.
8859 * varasm.c (assemble_asm): Only prefix a tab if the string does not
8860 already start with one.
8861 (default_asm_output_ident_directive): New function to emit
8862 .ident as a top-level asm node while parsing, or directly to
8863 asm_out_file after parsing.
8864 * toplev.c (compile_file): Print a GCC .ident with
8865 targetm.asm_out.output_ident.
8866 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
8867 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
8868 * doc/tm.texi: Update.
8869
8870 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
8871 (TARGET_ASM_OUTPUT_IDENT): Define.
8872 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
8873 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
8874 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
8875 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
8876 (TARGET_ASM_OUTPUT_IDENT): Define.
8877 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
8878 (TARGET_ASM_OUTPUT_IDENT): Define.
8879
8880 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
8881 * config/cris/cris.c (cris_asm_output_ident): New function.
8882 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
8883
8884 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
8885 Add prototype.
8886 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
8887 (microblaze_asm_output_ident): Rewrite to work similar to
8888 default_asm_output_ident_directive for front-end .idents.
8889 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
8890 (TARGET_ASM_OUTPUT_IDENT): Define.
8891
8892 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
8893 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
8894
8895 * config/rx/rx.c: Include cgraph.h for add_asm_node.
8896 (rx_asm_output_ident): New function, similar to
8897 default_asm_output_ident_directive, but handle AS100 syntax also, so
8898 that #ident also works for rx in AS100 syntax.
8899 (TARGET_ASM_OUTPUT_IDENT): Define.
8900 * config/rx/rx.h (IDENT_ASM_OP): Remove.
8901
8902 * Makefile.in: Fix dependencies for c-family/c-lex.o.
8903
e42d5b2d
UB
89042012-06-19 Uros Bizjak <ubizjak@gmail.com>
8905
8906 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
8907 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
8908 (ROUNDING): Ditto.
8909 (*fist<mode>2_<rounding>_1): Macroize insn from
8910 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
8911 (fistdi2_<rounding>): Macroize insn from
8912 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
8913 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
8914 corresponding splitters from fistdi2_{floor,ceil} and corresponding
8915 splitters using FIST_ROUNDING int iterator.
8916 (fist<mode>2_<rounding>): Macroize insn from
8917 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
8918 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
8919 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
8920 splitters using FIST_ROUNDING int iterator.
8921 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
8922 using FIST_ROUNDING int iterator.
8923
73e9d637
RH
89242012-06-19 Richard Henderson <rth@redhat.com>
8925
8926 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
8927 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
8928 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
8929 * config/i386/sse.md (sse2_mulv4si3): Delete.
8930 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
8931 nonimmediate_or_const_vector_operand.
8932
84ddb681
RH
89332012-06-19 Richard Henderson <rth@redhat.com>
8934
8935 * expmed.c (struct init_expmed_rtl): Split ...
8936 (init_expmed_one_mode): ... out of ...
8937 (init_expmed): ... here. Initialize integer vector modes also.
8938 (synth_mult): Handle integer vector modes.
8939 (choose_mult_variant): Likewise.
8940 (expand_mult_const): Likewise.
8941 (expand_mult): Likewise.
8942 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
8943
6bc0ff89
RH
89442012-06-19 Richard Henderson <rth@redhat.com>
8945
8946 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
8947 integral vector modes.
8948
b13024e6
UB
89492012-06-19 Uros Bizjak <ubizjak@gmail.com>
8950
8951 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
8952 (rounding): New int attribute.
8953 (ROUNDING): Ditto.
8954 (frndintxf2_<rounding>): Macroize insn from
8955 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
8956 (frndintxf2_<rounding>_i387): Macroize insn from
8957 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
8958
b54e19c2
RG
89592012-06-19 Richard Guenther <rguenther@suse.de>
8960
8961 * tree-vrp.c (union_ranges): New function.
8962 (vrp_meet_1): Use union_ranges.
8963 (vrp_meet): Dump what we union and call vrp_meet_1.
8964
82981dc4
RE
89652012-06-19 Richard Earnshaw <rearnsha@arm.com>
8966
8967 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
8968 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
8969 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
8970 (attr write_conflict, attr core_cycles): Update.
8971 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
8972
105b7208
RG
89732012-06-19 Richard Guenther <rguenther@suse.de>
8974
8975 * tree-vrp.c (intersect_ranges): Handle more cases.
8976 (vrp_intersect_ranges): Dump what we intersect and call ...
8977 (vrp_intersect_ranges_1): ... this.
8978
af4d0d91
RG
89792012-06-19 Richard Guenther <rguenther@suse.de>
8980
8981 PR tree-optimization/53708
8982 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
8983 user-supplied alignment and alignment of decls with the used
8984 attribute.
8985
a910399d
LC
89862012-06-18 Lawrence Crowl <crowl@google.com>
8987
8988 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
8989 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
8990 (TV_PHASE_STREAM_IN): New.
8991 (TV_PHASE_STREAM_OUT): New.
8992 * timevar.c (validate_phases): New.
8993 (timevar_print): Call validate_phases.
8994 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
8995 to TV_PHASE_OPT_GEN.
8996 * langhooks.c (write_global_declarations): Rename use of
8997 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
8998 TV_PHASE_CHECK_DBGINFO.
8999 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
9000 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
9001 lang_hooks.decls.final_write_globals.
9002
f897891a
DE
90032012-06-18 David Edelshn <dje.gcc@gmail.com>
9004
9005 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
9006
b86da593
UB
90072012-06-18 Uros Bizjak <ubizjak@gmail.com>
9008
9009 PR target/53712
9010 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
9011 (*sse4_2_pcmpistr_unaligned): New.
9012
c59e1214 90132012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9014 Sameera Deshpande <sameera.deshpande@arm.com>
9015 Greta Yorsh <greta.yorsh@arm.com>
c59e1214 9016
1a73c9e4
UB
9017 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
9018 * config/arm/arm.c (print_multi_reg): Remove.
9019 (vfp_output_fldmd): Likewise.
9020 (arm_output_epilogue): Likewise.
9021 * config/arm/arm.md (epilogue_insns): Update condition and code.
c59e1214 9022
482baa63 90232012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9024 Sameera Deshpande <sameera.deshpande@arm.com>
9025 Greta Yorsh <greta.yorsh@arm.com>
482baa63 9026
1a73c9e4
UB
9027 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
9028 * config/arm/arm.c (thumb2_expand_return): New function.
9029 * config/arm/arm.md (return): Update condition and code.
482baa63 9030
f79b86a4 90312012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9032 Sameera Deshpande <sameera.deshpande@arm.com>
9033 Greta Yorsh <greta.yorsh@arm.com>
f79b86a4 9034
1a73c9e4
UB
9035 * config/arm/arm-protos.h (output_return_instruction): New parameter
9036 and int to bool change of parameter types.
9037 * config/arm/arm.c (output_return_instruction): Likewise.
9038 * config/arm/arm.md (arm_simple_return): New pattern.
9039 (arm_return, cond_return, cond_return_inverted): Add new arguments.
9040 * config/arm/thumb2.md (thumb2_return): Update condition and code.
f79b86a4 9041
d461c88a 90422012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9043 Sameera Deshpande <sameera.deshpande@arm.com>
9044 Greta Yorsh <greta.yorsh@arm.com>
d461c88a 9045
1a73c9e4
UB
9046 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
9047 * config/arm/arm.c (arm_expand_epilogue): New function.
9048 * config/arm/arm.md (epilogue): Update condition and code.
9049 (sibcall_epilogue): Likewise.
d461c88a 9050
0f9926f3 90512012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9052 Sameera Deshpande <sameera.deshpande@arm.com>
9053 Greta Yorsh <greta.yorsh@arm.com>
0f9926f3 9054
1a73c9e4
UB
9055 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
9056 * config/arm/arm.md (arm_addsi3) Add an alternative.
0f9926f3 9057
4b2678f8 90582012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9059 Sameera Deshpande <sameera.deshpande@arm.com>
9060 Greta Yorsh <greta.yorsh@arm.com>
4b2678f8 9061
1a73c9e4
UB
9062 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
9063 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
9064 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
4b2678f8 9065
3aee1982 90662012-06-18 Ian Bolton <ian.bolton@arm.com>
1a73c9e4
UB
9067 Sameera Deshpande <sameera.deshpande@arm.com>
9068 Greta Yorsh <greta.yorsh@arm.com>
3aee1982 9069
1a73c9e4
UB
9070 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
9071 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
9072 (pop_multiple_with_return, ldr_with_return) Likewise.
9073 * config/arm/predicates.md (pop_multiple_return) New special predicate.
9074 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
9075 * config/arm/arm.c (arm_output_multireg_pop) New function.
9076 (arm_emit_multi_reg_pop): New function.
3aee1982 9077
474038cd
GY
90782012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
9079
9080 * config/arm/arm.c (ldm_stm_operation_p): Require SP
9081 as base register for loads if SP is in the register list.
9082
9ef7adc0
RG
90832012-06-18 Richard Guenther <rguenther@suse.de>
9084
9085 PR tree-optimization/53693
9086 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
9087 Reject operands with more than one use.
9088
9b10be32
BS
90892012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
9090
9091 PR tree-optimization/53703
9092 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
9093 correctly set bb_for_def[12].
9094
d421b10c
SB
90952012-06-18 Steven Bosscher <steven@gcc.gnu.org>
9096
9097 * config/vax/vax.h (VMS_TARGET): Remove.
9098
3928c098
RG
90992012-06-18 Richard Guenther <rguenther@suse.de>
9100
9101 * tree-vrp.c (extract_range_from_assert): Split out range
9102 intersecting code.
9103 (intersect_ranges): New function.
9104 (vrp_intersect_ranges): Likewise.
9105
ab4a745b
AK
91062012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9107
9108 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
9109 r187965.
9110
57a4717b
TB
91112012-06-18 Tejas Belagod <tejas.belagod@arm.com>
9112
9113 * doc/md.texi: Document int iterators.
9114 * read-rtl.c (ints): New iterator group.
9115 (find_int): Int iterator group callback.
9116 (apply_int_iterator): Likewise.
9117 (apply_iterators): Traverse int iterator table and add all the used
9118 iterators to list.
1a73c9e4
UB
9119 (initialize_iterators): Initialize data structures and callbacks for
9120 int iterators.
57a4717b
TB
9121 (read_rtx): Parse and read mappings for int iterators.
9122 (read_rtx_code): Record int iterator usage.
9123
b7104c55
RS
91242012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
9125
9126 PR middle-end/53698
9127 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
9128 performing an addition.
9129
ca3f2950
SB
91302012-06-17 Steven Bosscher <steven@gcc.gnu.org>
9131
9132 * output.h (split_double): Move prototype to rtl.h.
9133 (constructor_static_from_elts_p): Move prototype to tree.c.
9134 * rtl.h (split_double): Moved here from output.h.
9135 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
9136 * final.c (split_double): Move from here ...
9137 * rtlanal.c (split_double): ... to here.
9138 * expr.c: Do not include output.h.
9139
172a84ff
SB
91402012-06-17 Steven Bosscher <steven@gcc.gnu.org>
9141
9142 * cfglayout.h: Remove.
9143 * cfglayout.c: Remove.
9144 * function.h (struct function): Remove x_last_location field.
9145 * function.c: Do not include cfglayout.h.
9146 (expand_function_start): Do not call no-op force_next_line_note.
9147 (expand_function_end): Likewise.
9148 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
9149 (unlink_insn_chain): Moved here from cfglayout.c.
9150 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
9151 into_cfg_layout_mode, outof_cfg_layout_mode,
9152 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
9153 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
9154 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
9155 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
9156 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
9157 cfg_layout_finalize): Likewise.
9158 (rtl_can_remove_branch_p): Likewise.
9159 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
9160 (duplicate_insn_chain): Likewise.
9161 (force_next_line_note): Remove prototype.
9162 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
9163 (last_location): Remove #define to emit.x_last_location.
9164 (force_next_line_note): Remove no-op function.
9165 (init_emit): Don't set x_last_location.
9166 (block_locators_locs, block_locators_blocks, locations_locators_locs,
9167 locations_locators_vals, prologue_locator, epilogue_locator,
9168 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
9169 Move POD to here from cfglayout.c.
9170 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
9171 set_curr_insn_source_location, get_curr_insn_source_location,
9172 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
9173 locator_scope, insn_scope, locator_location, locator_line, insn_line,
9174 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
9175 * cfghooks.h: Remove double-include protection.
9176 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
9177 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
9178 * final.c: Do not include cfglayout.h.
9179 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
9180 (reemit_insn_block_notes): Likewise. Make static.
9181 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
9182 operation_could_trap_p, tree_could_throw_p): Move from here...
9183 * tree.h: ... to here.
9184 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
9185 * profile.c: Do not include cfghooks.h.
9186 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
9187 * modulo-sched.c: Likewise.
9188 * loop-unswitch.c: Do not include cfglayout.h.
9189 * sched-ebb.c: Likewise.
9190 * tracer.c: Likewise.
9191 * ddg.c: Likewise.
9192 * tree-vect-loop-manip.c: Likewise.
9193 * loop-init.c: Likewise.
9194 * dwarf2out.c: Likewise.
9195 * hw-doloop.c: Likewise.
9196 * loop-unroll.c: Likewise.
9197 * cfgcleanup.c: Likewise.
9198 * bb-reorder.c: Likewise.
9199 * sched-rgn.c: Likewise.
9200 * tree-cfg.c: Likewise.
9201 * config/alpha/alpha.c: Likewise.
9202 * config/spu/spu.c: Likewise.
9203 * config/sparc/sparc.c: Likewise.
9204 * config/sh/sh.c: Likewise.
9205 * config/c6x/c6x.c: Likewise.
9206 * config/ia64/ia64.c: Likewise.
9207 * config/rs6000/rs6000.c: Likewise.
9208 * config/score/score.c: Likewise.
9209 * config/mips/mips.c: Likewise.
9210 * config/bfin/bfin.c: Likewise.
9211 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
9212 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
9213 * config/spu/t-spu-elf (spu.o: $): Likewise.
9214 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
9215
1c1ad7bb
SB
92162012-06-17 Steven Bosscher <steven@gcc.gnu.org>
9217
9218 * cfgloop.h: Do not include rtl.h.
9219 (enum iv_extend_code): New.
9220 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
9221 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
9222 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
9223 an IV_EXTEND_CODE to an RTX_CODE.
9224 (dump_iv_info): Update for rtx_iv field type change.
9225 (iv_constant): Likewise.
9226 (iv_subreg): Likewise.
9227 (iv_extend): Likewise.
9228 (iv_neg): Likewise.
9229 (iv_add): Likewise.
9230 (iv_mult): Likewise.
9231 (iv_shift): Likewise.
9232 (get_biv_step_1): Likewise.
9233 (get_biv_step): Likewise.
9234 (iv_analyze_biv): Likewise.
9235 (get_iv_value): Likewise.
9236 (shorten_into_mode): Likewise.
9237 (canonicalize_iv_subregs): Likewise.
9238 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
9239 of MAY_HAVE_DEBUG_INSNS.
9240 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
9241 * tree-ssa-loop-prefetch.c: Likewise.
9242
46d33ae9
SB
92432012-06-17 Steven Bosscher <steven@gcc.gnu.org>
9244
9245 * expmed.c (ceil_log2): Move from here...
9246 * hwint.c: ... to here for older GCCs...
9247 * hwint.h: ... and here for newer GCCs.
9248 * rtl.h (ceil_log2): Remove prototype.
9249
9250 * tree-phinodes.c: Do not include rtl.h.
9251 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
9252
0df965d7
SB
92532012-06-17 Steven Bosscher <steven@gcc.gnu.org>
9254
9255 * config/cris/cris.h (TARGET_ELF): Remove.
9256 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
9257 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
9258 (LOCAL_LABEL_PREFIX): Likewise.
9259 * config/cris/cris.c (cris_target_asm_named_section): Remove.
9260 (cris_option_override): Simpify using TARGET_ELF==1.
9261 (cris_file_start): Likewise.
9262 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
9263
0a2818d5
UB
92642012-06-17 Uros Bizjak <ubizjak@gmail.com>
9265
9266 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
9267
9510c5af
EB
92682012-06-16 Eric Botcazou <ebotcazou@adacore.com>
9269
9270 PR middle-end/53590
9271 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
9272
0a2818d5 92732012-06-15 Easwaran Raman <eraman@google.com>
ad14c7da
ER
9274
9275 * passes.c (init_optimization_passes): Remove pass_call_cdce
9276 from its current position and insert after pass_dce.
9277
7eb0f141
WL
92782012-06-15 Walter Lee <walt@tilera.com>
9279
9280 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
9281
96adb183
RE
92822012-06-15 Richard Earnshaw <rearnsha@arm.com>
9283
9284 * arm.c (note_invalid_constants): Don't return a result.
9285 (arm_memory_load_p): Delete function.
9286 (arm_const_double_rtx): Delete iterator variable i;
9287 (fp_immediate_constant): Likewise.
9288 (fp_const_from_val): Likewise.
9289
9290 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
9291
9e1a8dd1
RR
92922012-06-15 Marc Glisse <marc.glisse@inria.fr>
9293
9294 PR c++/51033
9295 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
b13024e6 9296 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
9e1a8dd1 9297
eb6bb559
GJL
92982012-06-15 Georg-Johann Lay <avr@gjlay.de>
9299
9300 * config/avr/avr.c (avr_default_expand_builtin): New function.
9301 (avr_expand_builtin): Use it.
9302 (avr_expand_unop_builtin): Remove.
9303 (avr_expand_binop_builtin): Remove.
9304 (avr_expand_triop_builtin): Remove.
9305
f8395d62
MM
93062012-06-15 Michael Matz <matz@suse.de>
9307
9308 PR middle-end/38474
9309 * cfgexpand.c (add_alias_set_conflicts): Remove.
9310 (expand_used_vars): Don't call it.
9311 (aggregate_contains_union_type): Remove.
9312 * function.c (n_temp_slots_in_use): New static data.
9313 (make_slot_available, assign_stack_temp_for_type): Update it.
9314 (init_temp_slots): Zero it.
9315 (remove_unused_temp_slot_addresses): Use it for quicker removal.
9316 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
9317
4c53d183
MM
93182012-06-15 Michael Matz <matz@suse.de>
9319
9320 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
9321 argument, don't emit assign statement if value is directly usable.
9322 (gimplify_expr): Adjust.
9323
6da8be89
MM
93242012-06-15 Michael Matz <matz@suse.de>
9325
9326 * gimplify.c (gimplify_modify_expr): Fold generated statements.
9327 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
9328
ef5ad3b7
RG
93292012-06-15 Richard Guenther <rguenther@suse.de>
9330
9331 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
9332 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
9333 we assert for in set_value_range to VR_VARYING.
9334
dae840fc
RE
93352012-06-15 Richard Earnshaw <rearnsha@arm.com>
9336
9337 * arm.md (addsf3, adddf3): Use s_register_operand.
9338 (subsf3, subdf3): Likewise.
9339 (mulsf3, muldf3): Likewise.
9340 (difsf3, divdf3): Likewise.
9341 (movsfcc, movdfcc): Likewise.
9342 * predicates.md (f_register_operand): Delete.
9343 (arm_float_rhs_operand): Delete.
9344 (arm_float_add_operand): Delete.
9345 (arm_float_compare_operand): Use s_register_operand when
9346 there's no VFP.
9347 (cirrus_register_operand): Delete.
9348 (cirrus_fp_register): Delete.
9349 (cirrus_shift_const): Delete.
9350 (cmpdi_operand): Remove Maverick support.
9351 * constraints.md (f, v, H): Delete constraints.
9352 (G): Update documentation.
9353 * arm.c (fp_consts_inited): Convert to bool.
9354 (strings_fp): Delete.
9355 (values_fp): Delete.
9356 (value_fp0): New variable.
9357 (init_fp_table): Simplify logic.
9358 (arm_const_double_rtx): Likewise.
9359 (fp_immediate_constant): Likewise.
9360 (fp_const_from_val): Likewise.
9361 (neg_const_double_rtx_ok_for_fpa): Delete.
9362 * doc/md.texi (ARM constraints): Update documentation.
9363
3ebde0e9
UW
93642012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
9365
9366 PR tree-optimization/53636
9367 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
9368 stride when doing basic-block vectorization.
9369
273d260f
RR
93702012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9371
9372 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
9373 into VEC_PERM_EXPR.
9374
079c527f
JJ
93752012-06-15 Jakub Jelinek <jakub@redhat.com>
9376
772e61e1
JJ
9377 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
9378 allocate and free bbs array for the SLP case.
9379
079c527f
JJ
9380 PR tree-optimization/51581
9381 * expr.h (choose_multiplier): New prototype.
9382 * expmed.c (choose_multiplier): No longer static.
9383 Change multiplier_ptr from rtx * to UHWI *.
9384 (expand_divmod): Adjust callers.
0a2818d5 9385 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
079c527f
JJ
9386 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
9387 argument to new_stmt_vec_info. Attempt to optimize also divisions
9388 by non-pow2 constants if integer vector division isn't supported.
9389 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
9390 don't look at pattern stmts and sequences.
9391
2da02156
EB
93922012-06-15 Eric Botcazou <ebotcazou@adacore.com>
9393
9394 PR middle-end/53590
9395 * common.opt (-fdelete-dead-exceptions): New switch.
9396 * doc/invoke.texi (Code Gen Options): Document it.
9397 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
9398 insn_could_throw_p predicate. Do not skip an insn that could throw
9399 if dead exceptions can be deleted.
9400 (insn_live_p): Likewise, do not return true in that case.
9401 * dce.c (can_alter_cfg): New flag.
9402 (deletable_insn_p): Do not return false for an insn that can throw if
9403 the CFG can be altered and dead exceptions can be deleted.
9404 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
9405 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
9406 predicate. Do not preserve an insn that could throw if dead exceptions
9407 can be deleted.
9408 * function.h (struct function): Add can_delete_dead_exceptions flag.
9409 * function.c (allocate_struct_function): Set it.
9410 * lto-streamer-in.c (input_struct_function_base): Stream it.
9411 * lto-streamer-out.c (input_struct_function_base): Likewise.
9412 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
9413 statement that could throw as necessary if dead exceptions can be
9414 deleted.
9415
2bcf3c5c
MK
94162012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
9417
9418 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
9419
3f8d753f
OE
94202012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
9421
9422 PR target/53568
9423 * config/sh/sh.md: Add peephole for swapbsi2.
9424 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
9425
c5b7018e
UB
94262012-06-14 Uros Bizjak <ubizjak@gmail.com>
9427
87b86710 9428 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
6c31f5fb 9429 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
c5b7018e 9430
4e534d30
JJ
94312012-06-14 Jakub Jelinek <jakub@redhat.com>
9432
9433 PR target/53639
9434 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
9435
479f7546
RE
94362012-06-14 Richard Earnshaw <rearnsha@arm.com>
9437
9438 * arm.c (arm_cirrus_insn_p): Delete.
9439 (cirrus_reorg): Delete.
9440 (arm_reorg): Don't call cirrus_reorg.
9441 (arm_final_prescan_insn_p): Don't check for cirrus insns.
9442 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
9443 (adddi3, subdi3): Remove Maverick support.
9444 (arm_adddi3): Likewise.
9445 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
9446 (addsf3, adddf3): Likewise.
9447 (subsf3, subdf3): Likewise.
9448 (mulsf3, muldf3): Likewise.
9449 (ashldi3, ashrdi3, lshrdi3): Likewise.
9450 (floatsisf2, floatsidf2): Likewise.
9451 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
9452 (arm_movdi, thumb1_movdi_insn): Likewise.
9453 (arm_cmpdi_insn): Likewise.
9454 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
9455 (cirrus.md): Don't include.
9456 * cirrus.md: Delete file.
9457 * t-arm (MD_INCLUDES): Remove cirrus.md.
9458
0364adfd
EB
94592012-06-14 Eric Botcazou <ebotcazou@adacore.com>
9460
9461 * dwarf2out.c (function_possibly_abstracted_p): New static function.
9462 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
9463 cgraph_function_possibly_inlined_p.
9464 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
9465 (process_scope_var): Do not emit concrete instances of abstracted
9466 nested functions from here.
9467 (gen_decl_die): Emit the abstract instance if the function is possibly
9468 abstracted and not only possibly inlined.
9469 (dwarf2out_finish): Find the first non-abstract parent instance and
9470 attach concrete instances on the limbo list to it.
9471
8fcd8c83
RE
94722012-06-14 Richard Earnshaw <rearnsha@arm.com>
9473
9474 * arm.md (divsf3, divdf3): Remove FPA support.
9475 (negsf2, negdf2): Likewise.
9476 (sqrtsf2, sqrtdf2): Likewise.
9477 (movdfcc): Likewise.
9478 (modsf3, moddf3, movxf): Delete.
9479 (push_fp_multi): Delete.
9480 (fpa.md): Don't include it.
9481 * fpa.md: Delete file.
9482 * t-arm (MD_INCLUDES): Remove fpa.md.
9483
b6cef4e0
BS
94842012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
9485
9486 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
9487 (cost_for_stmt): Remove decl.
9488 (vect_get_single_scalar_iteration_cost): Correct typo in name.
9489 * tree-vect-loop.c (vect_get_cost): Remove.
9490 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
9491 vect_get_stmt_cost rather than vect_get_cost.
9492 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
9493 vect_get_cost.
9494 (vect_estimate_min_profitable_iters): Correct typo in call to
9495 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
9496 than vect_get_cost.
9497 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
9498 vect_get_cost.
9499 (vect_model_induction_cost): Likewise.
9500 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
9501 typo in call to vect_get_single_scalar_iteration_cost.
9502 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
9503 (cost_for_stmt): Remove unnecessary function.
9504 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
9505
76702923
RE
95062012-06-14 Richard Earnshaw <rearnsha@arm.com>
9507
9508 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
f8395d62 9509 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
76702923 9510 * arm-tables.opt: Regenerated.
f8395d62 9511 * doc/invoke.texi: Remove references to deleted options.
76702923 9512
9257546b
SKS
95132012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
9514
c5b7018e 9515 * config/h8300/genmova.sh: Modified to add offset bits of
9257546b
SKS
9516 mova/Sz assembly instruction for memory access.
9517 * config/h8300/h8300.c: Likewise.
9518 * config/h8300/mova.md: Likewise.
9519
5921cd19
CB
95202012-06-12 Christian Bruel <christian.bruel@st.com>
9521
9522 PR target/53621
9523 * config/sh/sh.c (sh_option_override): Don't force
9524 flag_omit_frame_pointer and maccumulate_outgoing_args.
9525 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
9526
3c9c79e8
RG
95272012-06-14 Richard Guenther <rguenther@suse.de>
9528
9529 * tree-vrp.c (VR_INITIALIZER): New define.
9530 (ranges_from_anti_range): New function.
9531 (extract_range_from_binary_expr_1): Decompose operations on
9532 VR_ANTI_RANGEs to operations on VR_RANGE.
9533 (extract_range_from_unary_expr_1): Likewise.
9534 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
9535 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
9536 extract_range_from_cond_expr, adjust_range_with_scev,
9537 vrp_visit_assignment_or_call, vrp_visit_phi_node,
9538 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
9539
fd2d9121
RH
95402012-06-13 Richard Henderson <rth@redhat.com>
9541
9542 * hwint.h (HOST_WIDEST_INT_C): New.
9543 (HOST_WIDE_INT_C): New.
9544 (HOST_WIDE_INT_1): Use it.
9545 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
9546
8cda8ad3
AO
95472012-06-13 Alexandre Oliva <aoliva@redhat.com>
9548
9549 PR debug/49888
9550 * var-tracking.c: Include alias.h.
9551 (overlapping_mems): New struct.
9552 (drop_overlapping_mem_locs): New.
9553 (clobber_overlapping_mems): New.
9554 (var_mem_delete_and_set, var_mem_delete): Call it.
9555 (val_bind): Likewise, but only if modified.
9556 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
9557 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
9558
d05cae4a
AO
95592012-06-13 Alexandre Oliva <aoliva@redhat.com>
9560
9561 PR debug/47624
9562 * var-tracking.c (loc_exp_dep_pool): New.
9563 (vt_emit_notes): Create and release the pool.
9564 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
9565 (emit_notes_in_bb): Likewise.
9566 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
9567 (notify_dependents_of_changed_value): Likewise.
9568 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
9569 variables don't have a VAR_LOC_DEP_LST.
9570 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
9571 VALUEs or MEMs of VALUEs.
9572
39bc0f01
AO
95732012-06-13 Alexandre Oliva <aoliva@redhat.com>
9574
9575 PR debug/52983
9576 PR debug/48866
9577 * dce.c (word_dce_process_block): Insert debug temps only if the
9578 insn is not marked.
9579 (dce_process_block): Likewise, and if debug.used is not empty,
9580 and only after iterating over all DEFs that might mark the insn.
9581
21d01365
AO
95822012-06-13 Alexandre Oliva <aoliva@redhat.com>
9583
9584 * common.opt (ftree-coalesce-inlined-vars): New.
9585 (ftree-coalesce-vars): New.
9586 * doc/invoke.texi: Document them.
9587 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9588 Implement them.
9589
b78fd164
RS
95902012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
9591
9592 * read-rtl.c (mapping): Remove index field. Add current_value field.
9593 Define heap vectors.
9594 (iterator_group): Fix long line. Remove num_builtins field and
9595 uses_iterator fields. Make apply_iterator take a void * parameter.
9596 (iterator_use, atttribute_use): New structures.
9597 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
9598 (current_iterators, iterator_uses, attribute_uses): New variables.
9599 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
9600 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
9601 (map_attr_string, apply_iterator_to_string): Remove iterator
9602 and value parameters. Look through all current iterator values
9603 for a matching attribute.
9604 (mode_attr_index, apply_mode_maps): Delete.
9605 (apply_iterator_to_rtx): Replace with...
9606 (copy_rtx_for_iterators): ...this new function.
9607 (uses_iterator_p, apply_iterator_traverse): Delete.
9608 (apply_attribute_uses, add_current_iterators, apply_iterators): New
9609 functions.
9610 (add_mapping): Remove index field. Set current_value field.
9611 (initialize_iterators): Don't set num_builtins and uses_iterator_p
9612 fields.
9613 (find_iterator): Delete.
9614 (record_iterator_use, record_attribute_use): New functions.
9615 (record_potential_iterator_use): New function.
9616 (check_code_iterator): Remove handling of bellwether codes.
9617 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
9618 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
9619 parameter. Use the first code iterator value instead of the
c5b7018e 9620 bellwether_codes array. Use record_potential_iterator_use for modes.
b78fd164 9621
638a085f
OE
96222012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
9623
9624 PR target/53568
9625 * config/sh/sh.md (bswapsi2): New expander.
9626 (swapbsi2): New insn.
9627
054121a4
L
96282012-06-13 H.J. Lu <hongjiu.lu@intel.com>
9629
9630 PR target/53647
9631 * config/i386/i386.c (ix86_tune_cost): New variable.
9632 (ix86_option_override_internal): Set ix86_tune_cost. Use
9633 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
9634 l1_cache_size and l2_cache_size.
9635
cf35667e
RG
96362012-06-13 Richard Guenther <rguenther@suse.de>
9637
9638 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
9639 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
9640 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
9641 VR_ANTI_RANGE with VR_ANTI_RANGE.
9642
c4cc7bc1
RE
96432012-06-13 Richard Earnshaw <rearnsha@arm.com>
9644
9645 * config.gcc (unsupported): Move obsoleted FPA-based configurations
9646 here from ...
9647 (obsolete): ... here.
9648 (arm*-*-freebsd*): Remove.
9649 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
9650 (arm*-*-uclinux*): Likewise.
9651 (arm*-*-ecos-elf): Remove.
9652 (arm*-*-rtems*): Remove.
9653 (arm*-*-elf): Remove.
9654 (arm*-wince-pe*): Remove.
9655 (arm, --with-fpu): Remove support for fpa and Maverick variants.
9656 * arm/ecos-elf.h: Delete.
9657 * arm/t-strongarm-elf: Delete.
9658 * arm/rtems-elf.h: Delete.
9659 * arm/wince-pe.h: Delete.
9660 * arm/pe.c: Delete.
9661 * arm/pe.h: Delete.
9662 * arm/t-wince-pe: Delete.
9663
7ef58a1a
BS
96642012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
9665
9666 PR tree-optimization/53647
9667 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
9668 targets with no defined cache line size.
9669
a21892ad
BS
96702012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
9671
9672 * targhooks.c (default_builtin_vectorized_conversion): Handle
9673 vec_construct, using vectype to base cost on subparts.
9674 * target.h (enum vect_cost_for_stmt): Add vec_construct.
9675 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
9676 instead of scalar_to-vec.
9677 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
9678 vec_construct in same way as default for now.
9679 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
9680 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
9681 Handle vec_construct, including special case for 32-bit loads.
9682
8fd03515
XQ
96832012-06-13 Xinyu Qi <xyqi@marvell.com>
9684
9685 * config/arm/arm.c (FL_IWMMXT2): New define.
9686 (arm_arch_iwmmxt2): New variable.
9687 (arm_option_override): Enable use of iWMMXt with VFP.
9688 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
9689 Thumb mode. Set arm_arch_iwmmxt2.
9690 (arm_expand_binop_builtin): Accept VOIDmode op.
9691 (enum arm_builtins): Revise built-in fcode.
9692 (IWMMXT2_BUILTIN): New define.
9693 (IWMMXT2_BUILTIN2): Likewise.
9694 (iwmmx2_mbuiltin): Likewise.
9695 (builtin_description bdesc_2arg): Revise built in declaration.
9696 (builtin_description bdesc_1arg): Likewise.
9697 (arm_init_iwmmxt_builtins): Revise built in initialization.
9698 (arm_expand_builtin): Revise built in expansion.
9699 (arm_output_iwmmxt_shift_immediate): New function.
9700 (arm_output_iwmmxt_tinsr): Likewise.
9701 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
9702 (arm_output_iwmmxt_tinsr): Likewise.
9703 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
9704 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
9705 (rorv4hi3, rorv2si3, rordi3): Likewise.
9706 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
9707 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
9708 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
9709 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
9710 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
9711 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
9712 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
9713 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
9714 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
9715 (ror<mode>3, ror<mode>3_di): Likewise.
9716 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
9717 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
9718 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
9719 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
9720 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
9721 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
9722 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
9723 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
9724 (All instruction patterns): Add wtype attribute.
9725 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
9726 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
9727 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
9728 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
9729 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
9730 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
9731 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
9732 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
9733 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
9734 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
9735 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
9736 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
9737 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
9738 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
9739 (iwmmxt2.md): Include.
9740 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
9741 (TARGET_IWMMXT2): New define.
9742 (TARGET_REALLY_IWMMXT2): Likewise.
9743 (arm_arch_iwmmxt2): Declare.
9744 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
9745 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
9746 Use C name-mangling for intrinsics.
9747 (__v8qi): Redefine.
9748 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
9749 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
9750 (_m_from_int): Likewise.
9751 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
9752 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
9753 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
9754 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
9755 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
9756 (_mm_tbcst_pi32): Likewise.
9757 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
9758 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
9759 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
9760 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
9761 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
9762 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
9763 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
9764 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
9765 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
9766 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
9767 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
9768 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
9769 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
9770 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
9771 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
9772 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
9773 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
9774 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
9775 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
9776 (_m_to_int): New define.
9777 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
9778 * config/arm/arm-arches.def (iwmmxt2): Likewise.
9779 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
9780 iwmmxt2.md.
9781 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
9782 (arch): Add "iwmmxt2".
9783 (arch_enabled): Handle "iwmmxt2".
9784 (wtype): New attribute.
9785 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
9786 (UNSPEC_WALIGNI): New unspec.
9787 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
9788 * config/arm/iterators.md (VMMX2): New mode_iterator.
9789 * config/arm/marvell-f-iwmmxt.md: New file.
9790 * config/arm/iwmmxt2.md: New file.
9791
cce50861
JJ
97922012-06-12 Jakub Jelinek <jakub@redhat.com>
9793
9794 PR c/53532
9795 PR c/51034
9796 PR c/53196
9797 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
9798 if type isn't complete.
9799
69c8c01f
UB
98002012-06-12 Uros Bizjak <ubizjak@gmail.com>
9801
9802 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
9803
126294f4
RH
98042012-06-12 Richard Henderson <rth@redhat.com>
9805
9806 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
9807 iterator instead of INT.
69c8c01f 9808
372a6eb8
BS
98092012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
9810
9811 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
9812 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
9813 declaration.
9814 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
9815 (tree_ssa_phiopt): Call gate_hoist_loads.
9816 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
9817 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
9818 hoist_adjacent_loads.
9819 (local_mem_dependence): New function.
9820 (hoist_adjacent_loads): Likewise.
9821 (gate_hoist_loads): Likewise.
9822 * common.opt (fhoist-adjacent-loads): New switch.
9823 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
9824
175a7536
MM
98252012-06-12 Michael Matz <matz@suse.de>
9826
9827 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
9828 (nonoverlapping_memrefs_p): Don't call it here ...
9829 (true_dependence_1): ... but here.
9830
f68396a1
RG
98312012-06-12 Richard Guenther <rguenther@suse.de>
9832
9833 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
9834 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
9835 and MEM_SIZE only refines it. Reflect that and be less conservative
9836 if either of the latter is not known.
9837
891ca07d
JJ
98382012-06-12 Jakub Jelinek <jakub@redhat.com>
9839
9840 PR rtl-optimization/53589
9841 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
9842 discovery even when e->dest != target. If any LABEL_REF points
9843 to e->dest label, redirect it to target's label.
9844
2b8088e7
CLT
98452012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
9846
9847 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
9848 condition for generating REG_FRAME_RELATED_EXPR note.
9849 (pop): Add code for generating REG_CFA_RESTORE,
9850 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
9851 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
9852 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
9853
4522854a
RH
98542012-06-11 Richard Henderson <rth@redhat.com>
9855
3db91d7e
RH
9856 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
9857 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
9858
4522854a
RH
9859 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
9860
f938987f
HPN
98612012-06-12 Hans-Peter Nilsson <hp@axis.com>
9862
9863 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
9864 Mention that this hook needs to be defined for native TLS.
9865 * doc/tm.texi: Regenerate.
9866
ede6c734
MS
98672012-06-11 Mike Stump <mikestump@comcast.net>
9868
9869 * emit-rtl.c (init_emit_once): Iterate through the
9870 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
9871 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
9872 all the MIN_MODE_PARTIAL_INT modes anymore.
9873
8b007d75
MK
98742012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9875
9876 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
9877
a04739cb
RM
98782012-06-11 Roland McGrath <mcgrathr@google.com>
9879
9880 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
9881 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
9882 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
9883 operand.
9884
159b4b2f
OE
98852012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
9886
9887 PR target/53511
9888 * config/sh/sh.md (fmasf4): New expander.
9889 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
9890 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
9891 * config/sh/sh.opt (mfused-madd): Remove.
9892 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
9893 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
9894 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
9895 as extra options.
9896 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
9897 descriptions.
9898
bf27c43e
RH
98992012-06-11 Richard Henderson <rth@redhat.com>
9900
9901 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
9902
e3b127e8
RG
99032012-06-11 Richard Guenther <rguenther@suse.de>
9904
9905 PR middle-end/53470
9906 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
9907 replace it with the first non-BLOCK context.
9908
a95b3cc7
RG
99092012-06-11 Richard Guenther <rguenther@suse.de>
9910
9911 * alias.c (aliases_everything_p): Remove.
9912 (DIFFERENT_ALIAS_SETS_P): Likewise.
9913 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
9914 Do not use aliases_everything_p or special-case ANDs. Do not
9915 special-case BLKmode moves.
9916 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
69c8c01f 9917 - for SCATCH only.
a95b3cc7 9918
2f352e3d
HPN
99192012-06-09 Hans-Peter Nilsson <hp@axis.com>
9920
9921 Fix CRIS build errors with --enable-build-with-cxx.
9922 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
9923 variable "and" to "andop".
9924 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
9925 temporary variable for memory model, passing C++-type-correct
9926 parameter type to expand_mem_thread_fence.
9927 ("atomic_compare_and_swap<mode>"): Ditto.
9928
11a687e7
RH
99292012-06-09 Richard Henderson <rth@redhat.com>
9930
9931 PR c++/53602
9932 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
9933 (pass_jump): Rename from pass_jump2.
9934 (execute_jump2, pass_jump2): New.
9935 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
9936 perform cfg cleanup here. Move the test of PUSH_ROUNDING
9937 and ACCUMULATE_OUTGOING_ARGS test...
9938 (gate_handle_stack_adjustments): ... here.
9939 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
9940 Place new pass_jump2 after pass_stack_adjustments.
9941 * tree-pass.h (pass_jump): Declare.
9942
aef2b1d1
KZ
99432012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
9944
9945 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
9946 count trucation.
9947
65c2e636
RH
99482012-06-08 Richard Henderson <rth@redhat.com>
9949
a3fac361
UB
9950 PR c++/53602
9951 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
9952 note to a clobber insn when no other insn is available.
65c2e636 9953
102375cc
GJL
99542012-06-08 Georg-Johann Lay <avr@gjlay.de>
9955
9956 * config/avr/avr.c (avr_case_values_threshold): Return 7.
9957
17c4f786
AS
99582012-06-07 Andreas Schwab <schwab@linux-m68k.org>
9959
9960 * genhooks.c (main): Set progname.
9961 (emit_documentation): Remove variable found_start, always bail out
9962 when a place is missing.
a3fac361 9963 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
17c4f786 9964
26127932
JJ
99652012-06-07 Jakub Jelinek <jakub@redhat.com>
9966
9967 PR middle-end/53580
a3fac361
UB
9968 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
9969 call walk_gimple_seq_mod instead of walk_gimple_seq.
26127932
JJ
9970 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
9971 scan_omp_for, scan_omp_sections, scan_omp_single,
9972 execute_lower_omp): Adjust callers.
9973 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
9974 returns false, replace stmt with GIMPLE_NOP.
9975 (check_omp_nesting_restrictions): Instead of issuing warnings,
9976 issue errors and return false if any errors were reported.
9977
6f07a821
SB
99782012-06-06 Steven Bosscher <steven@gcc.gnu.org>
9979
9980 * doc/invoke.texi (fconserve-space): Remove documentation.
9981
ce79b857
EW
99822012-06-06 Edmar Wienskoski <edmar@freescale.com>
9983
9984 * config/rs6000/rs6000-tables.opt: Regenerated.
9985
d0582dc1
RG
99862012-06-06 Richard Guenther <rguenther@suse.de>
9987
9988 PR tree-optimization/53081
9989 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
9990 (adjacent_dr_p): ... this and make it work for reads, too.
9991 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
9992 (struct partition_s): Change main_stmt to main_dr, add
9993 secondary_dr member.
9994 (build_size_arg_loc): Change to date data-reference and not
9995 gimplify here.
9996 (build_addr_arg_loc): New function split out from ...
9997 (generate_memset_builtin): ... here. Use it and simplify.
9998 (generate_memcpy_builtin): New function.
9999 (generate_code_for_partition): Adjust.
a3fac361 10000 (classify_partition): Streamline pattern detection. Detect memcpy.
d0582dc1
RG
10001 (ldist_gen): Adjust.
10002 (tree_loop_distribution): Adjust seed statements for memcpy
10003 recognition.
10004
4ad4fa63
MT
100052012-06-06 Matt Turner <mattst88@gmail.com>
10006
10007 * config/arm/mmintrin.h (_mm_empty): New.
a3fac361 10008 (_m_empty): New.
4ad4fa63 10009
c881de02
RS
100102012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
10011
10012 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
10013 * common.opt (fsched-pressure-algorithm=): Remove.
10014 * flag-types.h (sched_pressure_algorithm): Move to...
10015 * sched-int.h (sched_pressure_algorithm): ...here.
10016 * params.def (sched-pressure-algorithm): New param.
10017 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
10018 * common/config/s390/s390-common.c (s390_option_optimization_table):
10019 Remove OPT_fsched_pressure_algorithm_ entry.
10020 * config/s390/s390.c (s390_option_override): Set a default value for
10021 PARAM_SCHED_PRESSURE_ALGORITHM.
10022
d7685183
MM
100232012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10024
10025 PR target/53487
10026 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
10027 doing an unsigned compare, make sure the second argument is not a
10028 negative constant.
10029 (rs6000_emit_cmove): Don't allow floating point comparisons when
10030 generating ISEL moves.
10031
a6dac809 100322012-06-05 Edmar Wienskoski <edmar@freescale.com>
683ed19e
EW
10033
10034 * config/rs6000/e5500.md: New file.
10035 * config/rs6000/e6500.md: New file.
10036 * config/rs6000/rs6000.c (processor_costs): Add new costs for
10037 e5500 and e6500.
10038 (rs6000_option_override_internal): Altivec and Spe options not
10039 allowed with e5500. Spe options not allowed with e6500. Increase
10040 move inline limit for e5500 and e6500. Disable string instructions
10041 for e5500 and e6500. Enable branch targets alignment for e5500 and
10042 e6500. Initialize rs6000_cost for e5500 and e6500.
10043 (rs6000_adjust_cost): Add extra scheduling cycles between compare
10044 and brnach for e5500 and e6500.
10045 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
10046 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
10047 e6500.
10048 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
10049 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
10050 ppce6500.
10051 Include e5500.md and e6500.md.
10052 * config/rs6000/rs6000-opt.h (processor_type): Add
10053 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
10054 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
10055 (powerpc*-*-*): Add new cores e5500, e6500.
10056 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
10057
d4d5e146
RG
100582012-06-05 Richard Guenther <rguenther@suse.de>
10059
a3fac361 10060 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
d4d5e146 10061
9287b168
L
100622012-06-05 H.J. Lu <hongjiu.lu@intel.com>
10063
10064 PR target/53575
10065 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
10066 is used for x86_64-*-*.
10067
1aedeafe
RG
100682012-06-05 Richard Guenther <rguenther@suse.de>
10069
10070 PR tree-optimization/30442
10071 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
10072 vectorization stop analysis at the first stmt we cannot compute
10073 a data-reference for instead of giving up completely.
10074
7ad672e4
RG
100752012-06-05 Richard Guenther <rguenther@suse.de>
10076
a3fac361 10077 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
7ad672e4
RG
10078 (partition_alloc): Initialize it.
10079 (partition_has_writes): New function.
10080 (rdg_flag_uses): Adjust.
10081 (rdg_flag_vertex): Likewise.
10082 (rdg_flag_vertex_and_dependent): Likewise.
10083 (rdg_flag_loop_exits): Likewise.
10084 (build_rdg_partition_for_component): Likewise.
10085 (rdg_build_partitions): Likewise.
10086
b6dd5261
RG
100872012-06-05 Richard Guenther <rguenther@suse.de>
10088
10089 PR tree-optimization/53081
10090 * tree-loop-distribution.c (generate_memset_builtin): Handle all
10091 kinds of byte-sized stores.
10092 (classify_partition): Likewise.
10093 (tree_loop_distribution): Adjust seed statements used for
10094 !flag_tree_loop_distribution.
10095
46f714c8
AM
100962012-06-05 Alan Modra <amodra@gmail.com>
10097
10098 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
10099 (rs6000_emit_prologue): Ensure register used for inline saves
10100 of vector regs is not the static chain register. Revise comment.
10101
6d1f6aff
OE
101022012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
10103
10104 * doc/md.texi (Standard Pattern Names For Generation): Document
10105 sincos pattern.
10106
dea9f99d
L
101072012-06-04 H.J. Lu <hongjiu.lu@intel.com>
10108
10109 PR bootstrap/53555
10110 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
10111
61a3e629
JM
101122012-06-04 Jason Merrill <jason@redhat.com>
10113
10114 * dwarf2out.c (is_unit_die): New.
10115 (copy_declaration_context, copy_ancestor_tree): Use it.
10116 (copy_decls_walk): Likewise.
10117
0e1dd874
PC
101182012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
10119
10120 PR c++/53524
10121 * doc/invoke.texi (Wenum-compare): Update documentation.
10122
7ca643e1
DS
101232012-06-04 Dodji Seketeli <dodji@redhat.com>
10124
10125 PR preprocessor/53463
10126 * parser.c (cp_parser_assignment_expression): Use the location
10127 for the '=' as the default location for the expression.
10128
fbc932e7
EW
101292012-06-04 Edmar Wienskoski <edmar@freescale.com>
10130
10131 PR target/53559
10132 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
10133 operands.
10134 (altivec_stvlxl): Ditto.
10135 (altivec_stvrx): Ditto.
10136 (altivec_stvrxl): Ditto.
10137
165f639c
VM
101382012-06-04 Vladimir Makarov <vmakarov@redhat.com>
10139
a3fac361 10140 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
165f639c
VM
10141 (ira_uniform_class_p): New macro.
10142
10143 * ira.c (setup_uniform_class_p): New function.
10144 (setup_allocno_and_important_classes): Call the function.
10145 (print_unform_and_important_classes): New function.
10146 (print_classes): Rename to print_translated_classes.
10147 (ira_debug_allocno_classes): Add call of
10148 print_unform_and_important_classes.
10149
10150 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
10151 classes instead of pressure classes.
10152
764ce4f2
AH
101532012-06-04 Aldy Hernandez <aldyh@redhat.com>
10154
10155 PR middle-end/47530
10156 * trans-mem.c (expand_block_edges): Do not skip the first
10157 statement when resetting the BB.
10158
be6b029b
RG
101592012-06-04 Richard Guenther <rguenther@suse.de>
10160
10161 * tree-data-ref.c (stores_from_loop): Remove.
10162 (stmt_with_adjacent_zero_store_dr_p): Likewise.
10163 (stores_zero_from_loop): Likewise.
10164 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
10165 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
10166 (adjacent_store_dr_p): New function.
10167 * tree-loop-distribution.c (generate_memset_builtin): Pass
10168 the RDG, use the already available data-reference.
10169 (generate_code_for_partition): Pass down RDG.
10170 (classify_partition): Inline parts of the former
10171 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
10172 (ldist_gen): Remember if there was any detected builtin and
10173 do less work if not and flag_tree_loop_distribution is not set.
10174 (tree_loop_distribution): Inline and fuse stores_from_loop
10175 and stores_zero_from_loop here.
10176
ad16e152
RG
101772012-06-04 Richard Guenther <rguenther@suse.de>
10178
10179 PR middle-end/53471
10180 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
10181 create new assembler names.
10182
1fa0c180
RG
101832012-06-04 Richard Guenther <rguenther@suse.de>
10184
10185 * tree-data-ref.c (struct rdg_vertex_info): Remove.
10186 (rdg_vertex_for_stmt): Simplify using gimple_uid.
10187 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
9faeb493 10188 hashtable. Record stmt data-references.
1fa0c180
RG
10189 (hash_stmt_vertex_info): Remove.
10190 (eq_stmt_vertex_info): Likewise.
10191 (hash_stmt_vertex_del): Likewise.
10192 (build_empty_rdg): Simplify.
10193 (build_rdg): Adjust.
10194 (free_rdg): Likewise.
10195 (ref_base_address): Remove.
10196 (have_similar_memory_accesses): Likewise.
10197 * tree-data-ref.h (create_rdg_vertices): Remove.
10198 (struct rdg_vertex): Add datarefs member.
10199 (RDGV_DATAREFS): New define.
10200 (RDG_DATAREFS): Likewise.
10201 (have_similar_memory_accesses): Remove.
10202 (rdg_has_similar_memory_accesses): Likewise.
10203 * tree-loop-distribution.c (ref_base_address): Re-implement here.
10204 (similar_memory_accesses): Re-implement using existing data-references.
10205 (tree_loop_distribution): Initialize stmt uids for the stmt to
10206 RDG index mapping.
10207 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10208 access stmt vinfo for stmts in loop.
10209
143015c4
AS
102102012-06-04 Andreas Schwab <schwab@linux-m68k.org>
10211
10212 PR target/53461
10213 * config/m68k/m68k.md ("tablejump"): Fix check for
10214 CASE_VECTOR_PC_RELATIVE.
10215
a4b7d13c
SB
102162012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10217
10218 * output.h (merge_weak, assemble_alias,
10219 initializer_constant_valid_p,
10220 initializer_constant_valid_for_bitfield_p): Move protos from here...
10221 * tree.h: ... to here.
10222 * cgraphclones.c: Do not include output.h.
10223 * gimplify.c: Likewise.
10224 * reload.c: Likewise.
10225 * recog.c: Likewise.
10226 * tree-ssa-loop-ivopts.c: Likewise.
10227 * tree-switch-conversion.c: Likewise.
10228 * c-parser.c: Likewise.
10229 * c-typeck.c: Likewise.
10230 * Makefile.in: Fix dependencies.
10231
0b8a03e1
GJL
102322012-06-04 Georg-Johann Lay <avr@gjlay.de>
10233
10234 PR target/46261
10235 * config/avr/avr-stdint.h: New file.
10236 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
10237 newlib-stdint.h
10238
5ece9847
JJ
102392012-06-04 Jakub Jelinek <jakub@redhat.com>
10240
10241 PR tree-optimization/53550
10242 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
10243 is POINTER_TYPE_P, use sizetype as step type instead of type.
10244
c014f6f5
RG
102452012-06-04 Richard Guenther <rguenther@suse.de>
10246
10247 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
10248 (ref_base_address_1): Likewise.
10249 (remove_similar_memory_refs): Likewise.
10250 * tree-data-ref.h (remove_similar_memory_refs): Remove.
10251 * tree-loop-distribution.c (classify_partition): Do not classify
10252 as builtin if -ftree-loop-distribute-patterns is not enabled.
10253 (fuse_partitions_with_similar_memory_accesses): Inline ...
10254 (ldist_gen): ... here. Fuse all non-builtin partitions if
10255 -ftree-loop-distribution is not enabled. Properly return
a3fac361 10256 the number of created partitions. Do not update SSA form here but ...
c014f6f5
RG
10257 (tree_loop_distribution): ... once here for the whole function.
10258 Only walk innermost loops, constrain loops we consider here
10259 further. Do not call remove_similar_memory_refs.
10260 (distribute_loop): Do not check number of loop nodes here.
10261
296f202e
SB
102622012-06-04 Steven Bosscher <steven@gcc.gnu.org>
10263
10264 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
10265
7b872d9e
MJ
102662012-06-03 Martin Jambor <mjambor@suse.cz>
10267
10268 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
10269 (ipa_get_jf_known_type_base_type): Likewise.
10270 (ipa_get_jf_known_type_component_type): Likewise.
10271 (ipa_get_jf_constant): Likewise.
10272 (ipa_get_jf_pass_through_formal_id): Likewise.
10273 (ipa_get_jf_pass_through_operation): Likewise.
10274 (ipa_get_jf_ancestor_offset): Likewise.
10275 (ipa_get_jf_ancestor_type): Likewise.
10276 (ipa_get_jf_ancestor_formal_id): Likewise.
10277 (ipa_get_jf_member_ptr_pfn): Likewise.
10278 * ipa-prop.c (ipa_set_jf_known_type): New function.
10279 (ipa_set_jf_constant): Likewise.
10280 (ipa_set_jf_simple_pass_through): Likewise.
10281 (ipa_set_jf_arith_pass_through): Likewise.
10282 (ipa_set_ancestor_jf): Likewise.
10283 (fill_member_ptr_cst_jump_function): Moved up and renamed to
10284 ipa_set_jf_member_ptr_cst.
10285 (detect_type_change_1): Use the new jump function creation functions.
10286 (compute_complex_assign_jump_func): Likewise.
10287 (compute_complex_ancestor_jump_func): Likewise.
10288 (compute_known_type_jump_func): Likewise.
10289 (compute_scalar_jump_functions): Likewise.
10290 (compute_pass_through_member_ptrs): Likewise.
10291 (determine_cst_member_ptr): Likewise.
10292 (combine_known_type_and_ancestor_jfs): Likewise.
10293 (try_make_edge_direct_simple_call): Likewise.
10294 (try_make_edge_direct_virtual_call): Likewise.
10295 (update_indirect_edges_after_inlining): Likewise.
10296 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
10297 access functions. Incorporat NOP_EXPR and BINFO handling from its
10298 callers.
10299 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
10300 which was in its callers.
10301 (ipa_value_from_jfunc): Use jump function access functions. Some
10302 functionality moved to functions above.
10303 (propagate_vals_accross_ancestor): Likewise.
10304 (propagate_vals_accross_pass_through): Use jump function access
10305 functions.
10306 (propagate_accross_jump_function): Likewise.
10307 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
10308 access functions.
10309 (inline_merge_summary): Likewise.
10310
a43434ff
JDA
103112012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10312
10313 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
10314 * config/pa/pa.c (pa_attr_length_millicode_call): Use
10315 MAX_PCREL17F_OFFSET instead of fixed offset.
10316 (pa_attr_length_call): Likewise.
10317 (pa_attr_length_indirect_call): Likewise.
10318
aba92f5f
OE
103192012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
10320
10321 PR target/53512
f9f472bd
OE
10322 * config/sh/sh.opt (mfsca, mfsrra): New options.
10323 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
10324 condition.
aba92f5f
OE
10325 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
10326 (sinssf2, cossf2): Fold expanders to ...
10327 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
10328 TARGET_FSCA condition.
f9f472bd
OE
10329 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
10330 TARGET_FSCA.
aba92f5f
OE
10331 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
10332 -mno-fsca, -mfsrra, -mno-fsrra.
10333
d58e7d69
MT
103342012-06-03 Matt Turner <mattst88@gmail.com>
10335
10336 * config/mips/4600.md (r4700_imul_si): New.
10337 (r4700_imul_di): New.
10338 (r4700_fmul_single): New.
10339 (r4700_fmul_double): New.
10340 * config/mips/mips-cpus.def: Add r4700.
10341 * config/mips/mips.c: Likewise.
10342 * config/mips/mips.md: Likewise.
10343 * config/mips/mips-tables.opt: Regenerate.
10344
9e6a4b77
SB
103452012-06-02 Steven Bosscher <steven@gcc.gnu.org>
10346
10347 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
10348 new function sparc_initial_elimination_offset.
10349 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
10350 function.
10351 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
10352 Prototype it.
10353
aba92f5f 103542012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
49ab6098 10355
a3fac361
UB
10356 * expmed.c (expand_mult, choose_multiplier): Change
10357 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
49ab6098
KZ
10358 * expr.c (convert_modes): Likewise.
10359 * explow.c (plus_constant): Likewise.
10360 * fixed-value.c (fixed_saturate1, fixed_saturate2)
10361 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
10362 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
10363 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
10364 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
10365 (do_fixed_shift, fixed_convert, fixed_convert)
10366 (fixed_convert_from_int, fixed_convert_from_int)
10367 (fixed_convert_from_real): Likewise.
10368 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
10369 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
10370 * varasm.c (output_constructor_bitfield): Likewise.
10371 * tree-vrp.c (register_edge_assert_for_2): Likewise.
10372 * double-int.c (rshift_double, lshift_double): Likewise.
f9f472bd
OE
10373 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
10374 Likewise.
49ab6098
KZ
10375 * simplify-rtx.c (mode_signbit_p)
10376 (simplify_const_unary_operation, simplify_binary_operation_1)
10377 (simplify_immed_subreg): Likewise.
10378 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
10379 * tree-vect-generic.c (build_replicated_const): Likewise.
10380 * dbxout.c (stabstr_O): Likewise.
10381 * emit-rtl.c (immed_double_int_const, immed_double_const)
10382 (gen_lowpart_common, init_emit_once): Likewise.
10383 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
10384 (widest_int_cst_value, upper_bound_in_type): Likewise.
10385 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
10386 (fixup_unsigned_type): Likewise.
10387 * real.c (real_to_integer2, real_from_integer): Likewise.
10388 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
10389 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
10390
4efa9261
EB
103912012-06-01 Eric Botcazou <ebotcazou@adacore.com>
10392
10393 PR middle-end/53501
10394 * fold-const.c (fold_binary_loc): Refine previous change.
10395
676bd9a4
OH
103962012-06-01 Olivier Hainque <hainque@adacore.com>
10397
10398 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
10399 the "do {" part of the do-while(0) loop.
10400
674dd90a
YR
104012012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
10402
10403 * config/i386/i386.c (x86_sched_reorder): New function.
10404 Added new function x86_sched_reorder.
10405
9ca86fc3
RG
104062012-06-01 Richard Guenther <rguenther@suse.de>
10407
10408 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
10409 Handle PHIs.
10410 (classify_partition): Likewise.
10411
30d55936
RG
104122012-06-01 Richard Guenther <rguenther@suse.de>
10413
10414 * tree-loop-distribution.c (enum partition_kind): New enum.
10415 (struct partition_s): Add kind and main_stmt members.
10416 (partition_alloc): Initialize kind to PKIND_NORMAL.
10417 (partition_builtin_p): New function.
10418 (copy_loop_before): Remove failure path and assert instead.
10419 (generate_loops_for_partition): Likewise.
10420 (generate_memset_zero): Fold into ...
10421 (generate_memset_builtin): ... this.
10422 (classify_partition): New function with code from
10423 can_generate_builtin and generate_builtin.
10424 (generate_builtin): Remove.
10425 (can_generate_builtin): Likewise.
10426 (fuse_partitions_with_similar_memory_accesses): Call
10427 partition_builtin_p instead of can_generate_builtin.
10428 (rdg_build_partitions): Do not call
10429 fuse_partitions_with_similar_memory_accesses here...
10430 (ldist_gen): ... but here after classifying all partitions.
10431 Remove failure path of generate_code_for_partition.
10432 (generate_code_for_partition): Generate code according
10433 to partition classification.
10434
c3a43311 104352012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
a3fac361 10436 Jonathan Wakely <jwakely.gcc@gmail.com>
c3a43311
MLI
10437
10438 PR c++/50134
10439 * doc/invoke.texi (Warning Options): Explain purpose and differences
10440 between -Wmissing-prototypes and -Wmissing-declarations.
10441
d168aaee
CB
104422012-06-01 Christian Bruel <christian.bruel@st.com>
10443
10444 * gcc.c (save_switch): Add user_p parameter.
10445 (read_specs): Likewise.
10446 (set_specs): Likewise.
10447 (validate_switches): Likewise.
10448 (validate_switches_from_spec): Likewise.
10449 (validate_all_switches): Pass on user_p parameter.
10450 (struct spec_list): Add user_p field.
10451 (struct switchstr): Add known field.
10452 (save_switch): Add known parameter.
10453 (INIT_STATIC_SPEC): Initialize user_p;
10454 (driver_unknown_option_callbac): call save_switch if
10455 OPT_SPECIAL_unknown.
10456 (driver_handle_option): Propagate OPT_specs.
10457 (do_spec_1): Set validated only if known.
10458 (check_live_switch): Likewise.
10459 (validate_switches): Set validated if known or user_spec.
10460
21ed4444
HPN
104612012-06-01 Hans-Peter Nilsson <hp@axis.com>
10462
10463 Add CRIS atomic patterns for 1, 2, and 4 bytes.
10464 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
10465 * config/cris/cris-protos.h: Declare it.
69c8c01f 10466 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
21ed4444
HPN
10467 (TARGET_DEFAULT): Add alignment by 32.
10468 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
10469 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
69c8c01f 10470 TARGET_CPU_DEFAULT == 32.
21ed4444
HPN
10471 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
10472 * config/cris/cris.md: Include sync.md. Avoid allocating specific
10473 numbers by replacing the define_constants for all UNSPECs with the
10474 equivalent define_c_enum construct.
10475 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
10476 * config/cris/sync.md: New file.
10477
22e83457
MT
104782012-05-31 Matt Turner <mattst88@gmail.com>
10479
10480 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
10481 (r4600_imul_di): New.
10482 (r4600_idiv_si): Rename from r4600_idiv.
10483 (r4600_idiv_di): New.
10484
be7a421e
SB
104852012-05-31 Steven Bosscher <steven@gcc.gnu.org>
10486
10487 * output.h (__gcc_host_wide_int__): Move to hwint.h.
10488 (decl_default_tls_model): Move to tree.h
10489 (dump_file): Move to system.h.
10490 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
10491 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
10492 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
10493 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
10494 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
10495 dbxout_stab_value_internal_label,
10496 dbxout_stab_value_internal_label_diff): Move from here ...
10497 * dbxout.h: ... to here.
10498 * system.h (dump_file): Moved here from output.h.
10499 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
10500 * tree.h (decl_default_tls_model): Moved here from output.h.
10501 * varasm.c (default_stabs_asm_out_destructor,
10502 default_stabs_asm_out_constructor): Move from here ...
10503 * dbxout.c: ... to here.
10504
10505 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
10506
10507 * collect2.h (dump_file): Rename to dump_ld_file.
10508 * collect2.c: Likewise.
10509 * tlink.c: Likewise.
10510
10511 * alias.c: Do not include output.h.
10512 * auto-inc-dec.c: Likewise.
10513 * bt-load.c: Likewise.
10514 * caller-save.c: Likewise.
10515 * cfg.c: Likewise.
10516 * cfgbuild.c: Likewise.
10517 * cfgcleanup.c: Likewise.
10518 * cfglayout.c: Likewise.
10519 * cfgloop.c: Likewise.
10520 * cfgloopanal.c: Likewise.
10521 * cfgloopmanip.c: Likewise.
10522 * cfgrtl.c: Likewise.
10523 * cgraph.c: Likewise.
10524 * cgraphclones.c: Likewise.
10525 * combine-stack-adj.c: Likewise.
10526 * combine.c: Likewise.
10527 * cprop.c: Likewise.
10528 * cse.c: Likewise.
10529 * cselib.c: Likewise.
10530 * dbgcnt.c: Likewise.
10531 * df-problems.c: Likewise.
10532 * df-scan.c: Likewise.
10533 * dojump.c: Likewise.
10534 * fwprop.c: Likewise.
10535 * gcse.c: Likewise.
10536 * graph.c: Likewise.
10537 * haifa-sched.c: Likewise.
10538 * hw-doloop.c: Likewise.
10539 * ipa-inline-transform.c: Likewise.
10540 * ipa-pure-const.c: Likewise.
10541 * ipa-reference.c: Likewise.
10542 * ipa-utils.c: Likewise.
10543 * ira-build.c: Likewise.
10544 * ira-emit.c: Likewise.
10545 * lcm.c: Likewise.
10546 * loop-doloop.c: Likewise.
10547 * loop-invariant.c: Likewise.
10548 * loop-iv.c: Likewise.
10549 * loop-unroll.c: Likewise.
10550 * loop-unswitch.c: Likewise.
10551 * lto-cgraph.c: Likewise.
10552 * lto-section-in.c: Likewise.
10553 * lto-streamer-in.c: Likewise.
10554 * mcf.c: Likewise.
10555 * mode-switching.c: Likewise.
10556 * postreload-gcse.c: Likewise.
10557 * postreload.c: Likewise.
10558 * predict.c: Likewise.
10559 * profile.c: Likewise.
10560 * ree.c: Likewise.
10561 * reg-stack.c: Likewise.
10562 * regcprop.c: Likewise.
10563 * regmove.c: Likewise.
10564 * regstat.c: Likewise.
10565 * reload1.c: Likewise.
10566 * sched-ebb.c: Likewise.
10567 * sel-sched-dump.c: Likewise.
10568 * simplify-rtx.c: Likewise.
10569 * stor-layout.c: Likewise.
10570 * store-motion.c: Likewise.
10571 * tracer.c: Likewise.
10572 * tree-affine.c: Likewise.
10573 * tree-cfg.c: Likewise.
10574 * tree-cfgcleanup.c: Likewise.
10575 * tree-dfa.c: Likewise.
10576 * tree-into-ssa.c: Likewise.
10577 * tree-nomudflap.c: Likewise.
10578 * tree-optimize.c: Likewise.
10579 * tree-pretty-print.c: Likewise.
10580 * tree-profile.c: Likewise.
10581 * tree-ssa-address.c: Likewise.
10582 * tree-ssa-ccp.c: Likewise.
10583 * tree-ssa-copy.c: Likewise.
10584 * tree-ssa-dom.c: Likewise.
10585 * tree-ssa-loop-ch.c: Likewise.
10586 * tree-ssa-loop-im.c: Likewise.
10587 * tree-ssa-loop-manip.c: Likewise.
10588 * tree-ssa-loop-niter.c: Likewise.
10589 * tree-ssa-loop-prefetch.c: Likewise.
10590 * tree-ssa-loop-unswitch.c: Likewise.
10591 * tree-ssa-loop.c: Likewise.
10592 * tree-ssa-propagate.c: Likewise.
10593 * tree-ssa-structalias.c: Likewise.
10594 * tree-ssa-tail-merge.c: Likewise.
10595 * tree-ssa-threadedge.c: Likewise.
10596 * tree-ssa-threadupdate.c: Likewise.
10597 * tree-ssa-uncprop.c: Likewise.
10598 * tree-ssa-uninit.c: Likewise.
10599 * tree-ssa.c: Likewise.
10600 * value-prof.c: Likewise.
10601 * var-tracking.c: Likewise.
10602 * web.c: Likewise.
10603
10604 * config/m32r/m32r.c: Include dbxout.h.
10605 * config/pa/pa.c: Likewise.
10606 * config/rs6000/rs6000.c: Likewise.
10607
10608 * Makefile.in: Fix dependencies.
10609 * config/rs6000/t-rs5000: Likewise.
10610
874a3589
AH
106112012-05-31 Aldy Hernandez <aldyh@redhat.com>
10612
10613 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
10614 * gimple.h (block_in_transaction): Check for flag_tm.
10615
039496da
AH
106162012-05-31 Aldy Hernandez <aldyh@redhat.com>
10617
10618 PR tree-optimization/52558
10619 * cfg.c (alloc_aux_for_edge): Fix comment.
10620 (alloc_aux_for_edge): Remove static.
10621 * basic-block.h (alloc_aux_for_edge): Protoize.
10622 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
10623 (execute_sm_if_changed_flag): New.
10624 (execute_sm_if_changed_flag_set): New.
10625 (execute_sm): Do not generate data races unless requested.
10626 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
10627 (tree_ssa_lim_finalize): Call free_aux_for_edges.
10628 * gimple.h (block_in_transaction): New.
10629 (gimple_in_transaction): Use block_in_transaction.
10630
621dfb1e
GJL
106312012-05-31 Georg-Johann Lay <avr@gjlay.de>
10632
10633 PR target/51345
10634 * config/avr/avr.opt (-msp8): Document it.
10635 * doc/invoke.texi (AVR Options): Ditto. And document related
10636 built-in macros.
10637
416ff32e 106382012-05-31 Diego Novillo <dnovillo@google.com>
bdd5dc28 10639
a3fac361
UB
10640 * configure.ac (CXX_FOR_BUILD): Define and substitute.
10641 (BUILD_CXXFLAGS): Define and substitute.
10642 * Makefile.in (BUILD_CXXFLAGS): Define.
10643 (CXX_FOR_BUILD): Define.
10644 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
10645 (LINKER_FOR_BUILD): Likewise.
10646 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
10647 (BUILD_LINKERFLAGS): Likewise.
10648 * configure: Regenerate.
bdd5dc28 10649
6f4185d7
SB
106502012-05-31 Steven Bosscher <steven@gcc.gnu.org>
10651
10652 * Makefile.in: Fix many dependencies.
10653 * tree-profile.c: Don't include regs.h.
10654 * tree-vectorizer.c: Don't include cfglayout.h.
10655 * tree-vect-stmts.c: Likewise.
10656 * tree-vect-slp.c: Likewise.
10657 * tree-vect-loop.c: Likewise.
10658 * reg-stack.c: Likewise.
10659 * tree-ssa-loop-manip.c: Likewise.
10660 * toplev.c: Likewise.
10661 * varasm.c: Don't include cfglayout.h, basic-block.h,
10662 and tree-iterator.h.
10663 * tree-cfgcleanup.c: Don't include cfglayout.h.
10664 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
10665 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
10666 * cgraphclones.c: Don't include plugin.h.
10667
5a0563dc
GJL
106682012-05-31 Georg-Johann Lay <avr@gjlay.de>
10669
10670 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
10671 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
10672 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
a3fac361 10673
c61f8985
RG
106742012-05-31 Richard Guenther <rguenther@suse.de>
10675
10676 * tree-loop-distribution.c (struct partition_s): New struct,
10677 typedef and vector type.
10678 (partition_alloc, partition_free): New functions.
10679 (generate_loops_for_partition, generate_builtin,
10680 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
10681 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
10682 build_rdg_partition_for_component, can_generate_builtin,
10683 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
10684 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
10685 number_of_rw_in_partition, partition_contains_all_rw,
10686 ldist_gen): Use partition_t instead of bitmap.
10687
5be35a61
GJL
106882012-05-31 Georg-Johann Lay <avr@gjlay.de>
10689
a3fac361 10690 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
5be35a61 10691 * doc/avr-mmcu.texi: Regenerate.
a3fac361 10692
88af7c1a
RG
106932012-05-31 Richard Guenther <rguenther@suse.de>
10694
10695 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
10696 Use FOR_EACH_SSA_DEF_OPERAND.
10697 (generate_builtin): Adjust.
10698 (stmt_generated_in_another_partition): Remove.
10699 (add_scalar_computations_to_partition): Likewise.
10700 (rdg_build_partitions): Do not call
10701 add_scalar_computations_to_partition.
10702
ca8d9092
EB
107032012-05-31 Eric Botcazou <ebotcazou@adacore.com>
10704
10705 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
10706 double ints throughout.
10707 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
10708 Check that the position of the field is representable as an integer.
10709
673910d7
RG
107102012-05-31 Richard Guenther <rguenther@suse.de>
10711
10712 * tree-data-ref.c (dr_analyze_innermost): Properly convert
10713 the MEM_REF offset to sizetype.
10714
5b2f6f97
GJL
107152012-05-31 Georg-Johann Lay <avr@gjlay.de>
10716
10717 * doc/invoke.texi (AVR Options): Fix typos.
10718
e8baa9bc
HPN
107192012-05-31 Hans-Peter Nilsson <hp@axis.com>
10720
10721 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
10722 and -mcpu= options.
10723 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
ef0cd8fe 10724 non-v32 into --march=v0_v10.
e8baa9bc 10725
7cc61ee4
RS
107262012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10727
10728 * ira-int.h (target_ira_int): Rename x_move_cost to
10729 x_ira_register_move_cost, x_may_move_in_cost to
10730 x_ira_may_move_in_cost and x_may_move_out_cost to
10731 x_ira_may_move_out_cost. Delete the old fields with
10732 those names and also x_ira_max_register_move_cost,
10733 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
10734 (move_cost, may_move_in_cost, may_move_out_cost)
10735 (ira_max_register_move_cost, ira_max_may_move_in_cost)
10736 (ira_max_may_move_out_cost): Delete.
10737 * ira.c (init_move_cost): Rename to...
10738 (ira_init_register_move_cost): ...this, deleting the old
10739 function with that name. Apply above variable renamings.
10740 Retain asserts for null fields.
10741 (ira_init_once): Don't initialize register move costs here.
10742 (free_register_move_costs): Apply above variable renamings.
10743 Remove code for deleted fields.
10744
48e3d6e9
RS
107452012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10746
10747 * ira.c (init_move_cost): Adjust choice of subclasses to match
10748 the current ira_init_register_move_cost choice. Use
10749 ira_class_subset_p instead of reg_class_subset_p.
10750 (ira_init_register_move_cost): Assert that move_cost,
10751 may_move_in_cost and may_move_out_cost already hold the desired
10752 values for their ira_* equivalents. For the latter two,
10753 ignore classes that can't store a register of the given mode.
10754
3e575fe2
RS
107552012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10756
10757 * ira.c (setup_allocno_and_important_classes): Use
10758 ira_class_hard_regs_num to check whether a class has any
10759 allocatable registers.
10760 (ira_init_register_move_cost): Likewise.
10761
ed9e2ed0
RS
107622012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10763
10764 * ira.c (init_move_cost): Adjust local variable names to match
10765 file conventions. Use ira_assert instead of gcc_assert.
10766
e80ccebc
RS
107672012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10768
10769 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
10770 Move these definitions and associated target_globals fields to...
10771 * ira-int.h: ...here.
10772 * rtl.h (init_move_cost): Delete.
10773 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
10774 * ira.c: ...here, making the latter static.
10775
bac1c6a4
RS
107762012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10777
10778 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
10779 and ira_register_move_cost instead of init_move_cost and move_cost.
10780
f508f827
RS
107812012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
10782
10783 * ira.h (target_ira): Delete x_ira_available_class_regs.
10784 (ira_available_class_regs): Delete.
10785 * ira.c (setup_available_class_regs): Delete.
10786 (setup_alloc_classes): Don't call it.
10787 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
10788 ira_available_class_regs.
10789 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
10790 (model_spill_cost): Likewise.
10791 * ira-build.c (low_pressure_loop_node_p): Likewise.
10792 * ira-color.c (color_pass): Likewise.
10793 * ira-emit.c (change_loop): Likewise.
10794 * ira-lives.c (inc_register_pressure, dec_register_pressure)
10795 (single_reg_class, ira_implicitly_set_insn_hard_regs)
10796 (process_bb_node_lives): Likewise.
10797 * loop-invariant.c (gain_for_invariant): Likewise.
10798
fda33f15
JDA
107992012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10800
10801 PR target/52999
10802 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
10803 (pa_section_type_flags): New.
10804 (pa_legitimate_constant_p): Revert previous change.
10805
a932fb89
SB
108062012-05-30 Steven Bosscher <steven@gcc.gnu.org>
10807
10808 * ira.c (allocate_initial_values): Make static.
10809
974485d7
UB
108102012-05-30 Uros Bizjak <ubizjak@gmail.com>
10811
10812 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
10813 Generate tls_initial_exec_64_sun only when !TARGET_X32.
10814
e40a9680
RG
108152012-05-30 Richard Guenther <rguenther@suse.de>
10816
10817 PR middle-end/53501
10818 * fold-const.c (fold_binary_loc): Make sure to call
10819 fold_plusminus_mult_expr with the original sign of operands.
10820
ee666c25
SB
108212012-05-30 Steven Bosscher <steven@gcc.gnu.org>
10822
10823 * Makefile.in: Fix many dependencies.
10824 (DWARF2_H): Depend on dwarf2.def.
10825 (RTL_ERROR_H): Depend on rtl-error.h.
10826 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
10827 all gimple-pretty-print.h and tree-pretty-print.h references.
10828
66c540d2
MG
108292012-05-30 Marc Glisse <marc.glisse@inria.fr>
10830
10831 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
10832 concatenations.
10833
ab068278
RG
108342012-05-30 Richard Guenther <rguenther@suse.de>
10835
10836 PR middle-end/53522
10837 * tree-emutls.c (gen_emutls_addr): Do not add globals to
10838 referenced-vars.
10839
d6a6a07a
EB
108402012-05-30 Eric Botcazou <ebotcazou@adacore.com>
10841
10842 * explow.c (probe_stack_range): Restore simple control flow and stop
10843 again when the probe cannot be generated if HAVE_check_stack.
10844
667c517b
JJ
108452012-05-30 Jakub Jelinek <jakub@redhat.com>
10846
10847 PR rtl-optimization/53519
10848 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
10849 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
10850
fa95aa25
RR
108512012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10852
10853 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
10854
638c962f
JH
108552012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
10856
10857 PR debug/53453
10858 * doc/tm.texi: Update.
10859 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
10860 * target.def (force_at_comp_dir): New hook.
10861 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
10862 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
10863
a8b4175c 108642012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
3127f133
JH
10865
10866 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
10867 Darwin >= 10.
10868 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
10869 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
10870
2df2ce3f
OE
108712012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
10872
10873 PR target/51340
10874 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
10875 flag_unsafe_math_optimizations is set.
10876 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
10877 Update description of -mfused-madd.
10878
c11394f8
OE
108792012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
10880
10881 PR target/52941
10882 * config/sh/predicates.md (atomic_arith_operand,
10883 atomic_logical_operand): New predicates.
10884 * config/sh/sh.c (sh_option_override): Check atomic options.
10885 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
10886 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
10887 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
10888 UNSUPPORTED_HARD_ATOMIC_CPU.
10889 * config/sh/sync.md: Update description comments.
10890 (I12): New mode iterator.
10891 (fetchop_predicate, fetchop_constraint): New code attributes.
10892 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
10893 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
10894 atomic_fetch_<fetchop_name>si_hard,
10895 atomic_fetch_<fetchop_name><mode>_hard,
10896 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
10897 atomic_<fetchop_name>_fetchsi_hard,
10898 atomic_<fetchop_name>_fetch<mode>_hard,
10899 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
10900 atomic_test_and_set_hard): New insns.
10901 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
10902 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
10903 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
10904 atomic_test_and_set_soft): Use same formatting for the first line of
10905 the asm block as in new insns above.
10906 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
10907 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
10908 atomic_test_and_set): Integrate new *_hard insns into expanders.
10909 * config/sh/sh.opt (mhard-atomic): New option.
10910 * doc/invoke.texi (SH Options): Document it.
10911
d0421638
MI
109122012-05-29 Meador Inge <meadori@codesourcery.com>
10913
10914 * c-decl.c (c_push_function_context): Always create a new language
10915 function.
10916 (c_pop_function_context): Clear the language function created in
10917 c_push_function_context.
10918
5e631e49
MT
109192012-05-29 Matt Turner <mattst88@gmail.com>
10920
10921 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
10922 (define_bypass "ev6_fcmov"): New.
10923
6399c0ab
SB
109242012-05-29 Steven Bosscher <steven@gcc.gnu.org>
10925
10926 * integrate.c: Remove.
10927 * integrate.h: Remove.
10928 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
10929 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
10930 * config/rs6000/t-rs6000: Likewise
10931 * config/spu/t-spu-elf: Likewise.
10932 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
10933 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
10934 from integrate.h to here.
10935 (initial_value_entry): New prototype.
10936 * reload.h (allocate_initial_values): Remove prototype.
10937 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
10938 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
10939 integrate.c.
10940 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
10941 set_decl_abstract_flags, set_block_abstract_flags): Move from
10942 integrate.c to here, the only user.
10943 * expmed.c (extract_fixed_bit_field): Remove outdated comment
10944 about integrate.c.
10945 * function.c: Don't include integrate.h.
10946 (struct initial_value_pair, struct initial_value_struct,
10947 get_hard_reg_initial_val, has_hard_reg_initial_val,
10948 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
10949 integrate.c to here.
10950 (initial_value_entry): New function.
10951 * genemit.c (main): Don't print integrate.h include line.
10952 * ira.c: Don't include integrate.h.
10953 (allocate_initial_values): Move from integrate.c to here.
10954 (ira): Update allocate_initial_values call.
10955 * tree-inline.c: Don't include integrate.h.
10956 (function_attribute_inlinable_p): Moved from integrate.c to here.
10957 * cfgexpand.c: Don't include integrate.h.
10958 * except.c: Likewise.
10959 * langhooks.c: Likewise.
10960 * passes.c: Likewise.
10961 * toplev.c: Likewise.
10962 * config/frv/frv.c: Likewise.
10963 * config/pa/pa.c: Likewise.
10964 * config/spu/spu.c: Likewise.
10965 * config/epiphany/epiphany.c: Likewise.
10966 * config/mep/mep.c: Likewise.
10967 * config/score/score.c: Likewise.
10968 * config/picochip/picochip.c: Likewise.
10969 * config/sh/sh.c: Likewise.
10970 * config/alpha/alpha.c: Likewise.
10971 * config/microblaze/microblaze.c: Likewise.
10972 * config/mips/mips.c: Likewise.
10973 * config/v850/v850.c: Likewise.
10974 * config/mmix/mmix.c: Likewise.
10975 * config/bfin/bfin.c: Likewise.
10976 * config/arm/arm.c: Likewise.
10977 * config/s390/s390.c: Likewise.
10978 * config/m32r/m32r.c: Likewise.
10979 * config/rs6000/rs6000.c: Likewise.
10980 * config/c6x/c6x.c: Include function.h instead of integrate.h.
10981 * config/tilegx/tilegx.c: Likewise.
10982 * config/tilepro/tilepro.c: Likewise.
10983
030a9eb6
GJL
109842012-05-29 Georg-Johann Lay <avr@gjlay.de>
10985
974485d7 10986 * config/avr/t-avr (s-avr-mmcu-texi): Call
030a9eb6 10987 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
974485d7 10988
9474e8ab
MM
109892012-05-29 Michael Matz <matz@suse.de>
10990
10991 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
10992 assign_temp): Remove 'keep' argument.
10993 (mark_temp_addr_taken): Remove prototype.
10994 * tree.h (expand_decl): Remove prototype.
974485d7 10995 * function.c (struct temp_slot): Remove addr_taken and keep member.
9474e8ab
MM
10996 (assign_stack_temp_for_type) Don't initialize above, remove
10997 keep argument.
10998 (assign_stack_temp, assign_temp): Remove keep argument.
10999 (mark_temp_addr_taken): Remove.
974485d7 11000 (preserve_temp_slots): Remove handling of addr_taken and keep members.
9474e8ab
MM
11001 (free_temp_slots): Ditto.
11002 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
11003 dead code.
11004 * stmt.c (expand_asm_operands): Remove dead code.
11005 (expand_decl): Remove.
11006 * c-decl.c (finish_struct): Don't call expand_decl.
11007 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
11008 and assign_stack_temp.
11009 * calls.c (save_fixed_argument_area, initialize_argument_information,
11010 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
11011 * expmed.c (extract_bit_field_1): Ditto.
11012 * expr.c (emit_group_load_1, emit_group_store,
11013 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
11014 store_field, expand_constructor, expand_cond_expr_using_cmove,
11015 expand_expr_real_2, expand_expr_real_1): Ditto.
11016 * stmt.c (expand_asm_operands, expand_return): Ditto.
11017
11018 * function.c (pop_temp_slots): Call free_temp_slots.
11019 * calls.c (store_one_arg): Don't call preserve_temp_slots or
11020 free_temp_slots.
11021 * expr.c (expand_assignment): Don't call free_temp_slots.
11022
11023 * config/arm/arm.c (neon_expand_vector_init): Ditto.
11024 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
11025 (ix86_expand_vector_extract): Ditto.
11026 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
11027 ia64_expand_movxf_movrf): Ditto.
11028 * config/mips/mips.c (mips_expand_vi_general): Ditto.
11029 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
11030 extendsfdf2): Ditto.
11031 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
11032 rs6000_expand_vector_set, rs6000_expand_vector_extract,
11033 rs6000_allocate_stack_temp): Ditto.
11034 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
11035 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11036 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
11037 sparc_expand_vector_init): Ditto.
11038
ca5f4331
MM
110392012-05-29 Michael Matz <matz@suse.de>
11040
11041 * c-tree.h (c_expand_decl): Remove prototype.
11042
11043 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
11044 a kept temp.
11045 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
974485d7 11046 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
ca5f4331
MM
11047 COMPOUND_LITERAL_EXPR.
11048 * function.c (expand_function_start): Don't call expand_decl,
11049 instead assert that we have RTL assigned.
11050 * tree-ssa-live.c (remove_unused_locals): Clear
11051 nonlocal_goto_save_area if its backing variable is removed.
11052 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
11053 as mem inputs.
11054 (expand_decl): Assert that this does nothing.
11055 * calls.c (expand_call): Don't call mark_temp_addr_taken.
11056
508ef0c6
RG
110572012-05-29 Richard Guenther <rguenther@suse.de>
11058
11059 PR tree-optimization/53516
11060 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
11061 bitfield accesses.
11062 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11063
073a8998
JM
110642012-05-29 Joseph Myers <joseph@codesourcery.com>
11065
11066 * LANGUAGES: Fix typos.
11067 * Makefile.in: Fix typos.
11068 * alias.c: Fix typos.
11069 * auto-inc-dec.c: Fix typos.
11070 * bb-reorder.c: Fix typos.
11071 * cfgcleanup.c: Fix typos.
11072 * cgraph.c: Fix typos.
11073 * cgraph.h: Fix typos.
11074 * cgraphunit.c: Fix typos.
11075 * collect2-aix.h: Fix typos.
11076 * collect2.c: Fix typos.
11077 * compare-elim.c: Fix typos.
11078 * config/alpha/vms.h: Fix typos.
11079 * config/arm/README-interworking: Fix typos.
11080 * config/arm/arm.c: Fix typos.
11081 * config/arm/iterators.md: Fix typos.
11082 * config/arm/vxworks.h: Fix typos.
11083 * config/avr/avr.c: Fix typos.
11084 * config/avr/avr.h: Fix typos.
11085 * config/avr/avr.md: Fix typos.
11086 * config/avr/builtins.def: Fix typos.
11087 * config/c6x/c6x.c: Fix typos.
11088 * config/cr16/cr16.c: Fix typos.
11089 * config/cr16/cr16.md: Fix typos.
11090 * config/cris/cris.md: Fix typos.
11091 * config/darwin.c: Fix typos.
11092 * config/darwin.opt: Fix typos.
11093 * config/i386/i386-c.c: Fix typos.
11094 * config/i386/i386.c: Fix typos.
11095 * config/ia64/ia64.c: Fix typos.
11096 * config/m68k/cf.md: Fix typos.
11097 * config/mep/mep.c: Fix typos.
11098 * config/microblaze/microblaze.c: Fix typos.
11099 * config/microblaze/microblaze.h: Fix typos.
11100 * config/mn10300/mn10300.c: Fix typos.
11101 * config/mn10300/mn10300.md: Fix typos.
11102 * config/pa/pa.c: Fix typos.
11103 * config/picochip/picochip.h: Fix typos.
11104 * config/rs6000/a2.md: Fix typos.
11105 * config/rs6000/rs6000.c: Fix typos.
11106 * config/rs6000/vector.md: Fix typos.
11107 * config/rx/rx.md: Fix typos.
11108 * config/rx/rx.opt: Fix typos.
11109 * config/s390/2097.md: Fix typos.
11110 * config/s390/s390.c: Fix typos.
11111 * config/s390/s390.h: Fix typos.
11112 * config/sh/sh.c: Fix typos.
11113 * config/sh/sh.md: Fix typos.
11114 * config/sparc/sync.md: Fix typos.
11115 * config/spu/spu.c: Fix typos.
11116 * config/spu/spu.md: Fix typos.
11117 * config/vms/vms.c: Fix typos.
11118 * config/vxworks-dummy.h: Fix typos.
11119 * config/vxworks.h: Fix typos.
11120 * cselib.c: Fix typos.
11121 * df-scan.c: Fix typos.
11122 * df.h: Fix typos.
11123 * doc/extend.texi: Fix typos.
11124 * doc/install.texi: Fix typos.
11125 * doc/invoke.texi: Fix typos.
11126 * doc/md.texi: Fix typos.
11127 * doc/plugins.texi: Fix typos.
11128 * doc/rtl.texi: Fix typos.
11129 * dse.c: Fix typos.
11130 * dwarf2asm.c: Fix typos.
11131 * dwarf2out.c: Fix typos.
11132 * except.h: Fix typos.
11133 * expr.c: Fix typos.
11134 * fold-const.c: Fix typos.
11135 * gcc.c: Fix typos.
11136 * gcse.c: Fix typos.
11137 * genautomata.c: Fix typos.
11138 * gengtype-state.c: Fix typos.
11139 * gengtype.c: Fix typos.
11140 * genhooks.c: Fix typos.
11141 * gimple-fold.c: Fix typos.
11142 * gimple-pretty-print.c: Fix typos.
11143 * gimple.c: Fix typos.
11144 * gimple.h: Fix typos.
11145 * gimplify.c: Fix typos.
11146 * graphite-interchange.c: Fix typos.
11147 * graphite-sese-to-poly.c: Fix typos.
11148 * ifcvt.c: Fix typos.
11149 * input.c: Fix typos.
11150 * ipa-cp.c: Fix typos.
11151 * ipa-inline-analysis.c: Fix typos.
11152 * ipa-inline-transform.c: Fix typos.
11153 * ipa-inline.c: Fix typos.
11154 * ipa-pure-const.c: Fix typos.
11155 * ipa-ref.h: Fix typos.
11156 * ipa-reference.c: Fix typos.
11157 * ipa-utils.c: Fix typos.
11158 * ipa.c: Fix typos.
11159 * ira-emit.c: Fix typos.
11160 * ira-lives.c: Fix typos.
11161 * lto-streamer.c: Fix typos.
11162 * lto-streamer.h: Fix typos.
11163 * lto-wrapper.c: Fix typos.
11164 * mcf.c: Fix typos.
11165 * mode-switching.c: Fix typos.
11166 * modulo-sched.c: Fix typos.
11167 * plugin.c: Fix typos.
11168 * postreload.c: Fix typos.
11169 * sched-deps.c: Fix typos.
11170 * sel-sched-ir.c: Fix typos.
11171 * sel-sched-ir.h: Fix typos.
11172 * sel-sched.c: Fix typos.
11173 * sese.c: Fix typos.
11174 * stor-layout.c: Fix typos.
11175 * target-hooks-macros.h: Fix typos.
11176 * target.def: Fix typos.
11177 * trans-mem.c: Fix typos.
11178 * tree-eh.c: Fix typos.
11179 * tree-predcom.c: Fix typos.
11180 * tree-sra.c: Fix typos.
11181 * tree-ssa-address.c: Fix typos.
11182 * tree-ssa-loop-ivopts.c: Fix typos.
11183 * tree-ssa-loop-niter.c: Fix typos.
11184 * tree-ssa-math-opts.c: Fix typos.
11185 * tree-ssa-pre.c: Fix typos.
11186 * tree-ssa-propagate.c: Fix typos.
11187 * tree-ssa-reassoc.c: Fix typos.
11188 * tree-ssa-sccvn.c: Fix typos.
11189 * tree-ssa-ter.c: Fix typos.
11190 * tree-ssa-uninit.c: Fix typos.
11191 * tree-ssanames.c: Fix typos.
11192 * tree-vect-generic.c: Fix typos.
11193 * tree-vect-slp.c: Fix typos.
11194 * tree.c: Fix typos.
11195 * tree.h: Fix typos.
11196 * varasm.c: Fix typos.
11197 * varpool.c: Fix typos.
11198
aba6f2c2
JM
111992012-05-29 Joseph Myers <joseph@codesourcery.com>
11200
11201 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
11202
a502e677
RG
112032012-05-29 Richard Guenther <rguenther@suse.de>
11204
11205 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
11206 for globals.
11207 (add_referenced_var_1): Re-organize. Assert we are not
11208 called for globals.
11209 (remove_referenced_var): Likewise.
11210 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
11211 * tree-mudflap.c (execute_mudflap_function_ops): Do not
11212 call add_referenced_var on globals.
11213 * matrix-reorg.c (transform_access_sites): Likewise.
11214
9ff3c7ca
SB
112152012-05-29 Steven Bosscher <steven@gcc.gnu.org>
11216
11217 * alias.c (reg_known_value): Make this a VEC.
11218 (reg_known_equiv_p): Make this an sbitmap.
11219 (reg_known_value_size): Remove.
11220 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
11221 set_reg_known_equiv_p): Update for reg_known_value and
11222 reg_known_value_size data structure change.
11223 (init_alias_analysis, end_alias_analysis): Likewise.
11224
92b05e72
JJ
112252012-05-29 Jakub Jelinek <jakub@redhat.com>
11226
11227 PR middle-end/53510
11228 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
11229 to avoid leaking memory. No need to handle memory allocation
974485d7 11230 failure. Double string_len on each reallocation instead of adding 2.
92b05e72
JJ
11231 * gcov.c (read_line): Likewise.
11232
64f5af47
HPN
112332012-05-29 Hans-Peter Nilsson <hp@axis.com>
11234
11235 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
11236 New macros.
11237 * config/cris/cris.md ("trap"): Define, enabled for
11238 TARGET_TRAP_USING_BREAK8.
11239 * config/cris/cris.opt (mtrap-using-break8): New option.
11240
4a792f9b
PC
112412012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
11242
11243 PR c++/25137
11244 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
11245 for C++.
11246
e9d3ef3b
HPN
112472012-05-28 Hans-Peter Nilsson <hp@axis.com>
11248
974485d7 11249 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
b4922105 11250 (Standard Names): Fix typos in documentation of atomic patterns.
e9d3ef3b 11251
253cbc5f
NS
112522012-05-27 Nathan Sidwell <nathan@acm.org>
11253
11254 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
11255
1f37c583
JM
112562012-05-26 Jason Merrill <jason@redhat.com>
11257
11258 PR c++/53220
11259 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
11260 about array compound literals.
11261
9be94227
EB
112622012-05-26 Eric Botcazou <ebotcazou@adacore.com>
11263
11264 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
11265 if CLEANUP_NO_INSN_DEL.
11266 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
11267 from cfg_layout_merge_blocks.
11268 (emit_nop_for_unique_locus_between): New function.
11269 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
11270 (cfg_layout_merge_blocks): Likewise.
11271
c5ebdc25
DA
112722012-05-26 Dimitrios Apostolou <jimis@gmx.net>
11273 Paolo Bonzini <bonzini@gnu.org>
11274
11275 * df-scan.c (df_def_record_1): Assert a parallel must contain an
11276 EXPR_LIST at this point. Receive the LOC and move its extraction...
11277 (df_defs_record): ... here. Change if-else to a switch statement.
11278 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
11279 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
11280 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
11281 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
11282 regs_invalidated_by_call.
11283 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
11284 df_get_call_refs().
11285
37c59e69
EB
112862012-05-25 Eric Botcazou <ebotcazou@adacore.com>
11287
11288 PR lto/52178
11289 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
11290 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
11291
13af22d7
MM
112922012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11293
11294 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
11295 software floating point emulation. No longer build the multilibs
11296 with -mstrict-align.
11297
7be9eece
AH
112982012-05-25 Aldy Hernandez <aldyh@redhat.com>
11299
11300 PR middle-end/53008
11301 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
11302 accessed indirectly.
11303 (ipa_tm_create_version): Same.
11304
a295fa90
UB
113052012-05-25 Uros Bizjak <ubizjak@gmail.com>
11306
11307 PR target/53474
11308 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
11309 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
11310
0ba89f9b
AI
113112012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11312
11313 PR target/53435
11314 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
11315 (ix86_expand_vec_perm): Use int mode instead of float.
11316 (expand_vec_perm_pshufb): Remove handling of useseless type
11317 conversion.
11318
b993039f
EB
113192012-05-25 Eric Botcazou <ebotcazou@adacore.com>
11320
11321 PR ada/52362
11322 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
11323 gnu_ld variables to yes.
11324 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
11325 (HAVE_GNU_AS): Likewise.
11326 * config.in: Regenerate.
11327 * configure: Likewise.
11328
4aa820fe
TG
113292012-05-25 Tristan Gingold <gingold@adacore.com>
11330
11331 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
11332 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
11333 and preferred_alignment.
11334
d656c9c5
TG
113352012-05-25 Tristan Gingold <gingold@adacore.com>
11336
11337 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
11338
48938147
TS
113392012-05-25 Thomas Schwinge <thomas@codesourcery.com>
11340
11341 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
11342 volatile bitfields case.
11343
113442012-05-24 Pat Haugen <pthaugen@us.ibm.com>
6fac31b4
PH
11345
11346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
11347 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
11348 (adjacent_mem_locations): Move some code to and call...
11349 (get_memref_parts): ...new function.
11350 (mem_locations_overlap): New function.
11351 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
11352 (is_mem_ref): Rename to...
11353 (find_mem_ref): ...this. Return MEM rtx.
11354 (get_store_dest): Remove function.
11355 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
11356 new parameter and adjust calls.
11357 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
11358 mem refs overlap for true_store_to_load_dep_costly.
11359 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
11360 passed to adjacent_mem_locations.
11361 (is_costly_group): Walk resolved dependency list.
11362 (force_new_group): Emit group ending nop for Power6/Power7.
11363 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
11364 (group_ending_nop): New define_insn.
11365
165ca58d
DS
113662012-05-24 Dodji Seketeli <dodji@redhat.com>
11367
11368 Make unwound macro expansion trace less redundant
11369 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
11370 context of macro definition in the trace, when it's redundant.
11371 Update comments.
11372
49bdc0a6
RG
113732012-05-24 Richard Guenther <rguenther@suse.de>
11374
11375 PR middle-end/53460
11376 * tree-profile.c (tree_profiling): Cleanup the CFG if
11377 execute_fixup_cfg requests it.
11378
0faa0562
RG
113792012-05-24 Richard Guenther <rguenther@suse.de>
11380
11381 * tree-flow.h (create_var_ann): Remove.
11382 * tree-dfa.c (create_var_ann): Remove and inline into its
11383 single caller ...
11384 (add_referenced_var_1): ... here.
11385 * varpool.c (add_new_static_var): Do not call add_referenced_var
11386 for global vars.
11387 * gimple-fold.c (canonicalize_constructor_val): Likewise.
11388 * tree-switch-conversion.c (build_one_array): Likewise.
11389 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
11390 * tree-flow-inline.h (gimple_referenced_vars): Guard against
11391 NULL fn argument.
11392 * tree-inline.c (remap_gimple_op_r): Likewise. Check
11393 gimple_referenced_vars instead of gimple_in_ssa_p.
11394 (copy_tree_body_r): Likewise.
11395 (setup_one_parameter): Likewise.
11396 (declare_return_variable): Likewise.
11397 (tree_function_versioning): Likewise.
11398
0d5a9e78
JJ
113992012-05-24 Jakub Jelinek <jakub@redhat.com>
11400
11401 PR tree-optimization/53465
11402 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
11403 vr0 into *vr, then vrp_meet that.
11404 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
11405 have any equivalences.
11406 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
11407 first time.
11408
114092012-05-24 Jim MacArthur <jim.macarthur@arm.com>
e7bcc691
JM
11410
11411 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
11412 hard registers.
11413 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
11414 check end_regno - 1 is a hard register.
11415
b44be1e6
RG
114162012-05-24 Richard Guenther <rguenther@suse.de>
11417
11418 * varpool.c (add_new_static_var): Remove call to create_var_ann.
11419 * tree-ssa-operands.c (create_vop_var): Likewise.
11420
1431ce01
RG
114212012-05-24 Richard Guenther <rguenther@suse.de>
11422
11423 PR bootstrap/53466
11424 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
11425 handle globals.
11426 (remove_unused_locals): Pass global_unused_vars to
11427 remove_unused_scope_block_p. Restore code walking all
11428 referenced vars and pruning them.
11429
07250f0e
JH
114302012-05-23 Jan Hubicka <jh@suse.cz>
11431
11432 * tree.h (alias_diag_flags): Remove.
11433 (alias_pair): Remove emitted_diags.
11434 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
11435 symbol_alias_set_t, symbol_alias_set_destroy,
11436 symbol_alias_set_contains, propagate_aliases_backward): Remove.
11437 * toplev.c (compile_file): Do not call finish_aliases_2
a295fa90
UB
11438 * cgraphunit.c (cgraph_process_new_functions): Do not call
11439 finish_aliases_1.
07250f0e
JH
11440 (handle_alias_pairs): Output diagnostics about aliases to externals.
11441 (assemble_thunks_and_aliases): Use do_assemble_alias.
11442 (output_weakrefs): Likewise.
11443 (finalize_compilation_unit): Do not call finish_aliases_1.
a295fa90
UB
11444 * ipa.c (symtab_remove_unreachable_nodes): De not call
11445 remove_unreachable_alias_pairs.
07250f0e 11446 * varasm.c (do_assemble_alias): Export.
a295fa90
UB
11447 (symbol_alias_set_create, symbol_alias_set_destroy,
11448 symbol_alias_set_contains, symbol_alias_set_insert,
11449 propagate_aliases_forward, propagate_aliases_backward,
11450 propagate_aliases_backward, trivially_visible_alias,
11451 trivially_defined_alias, remove_unreachable_alias_pairs,
11452 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
07250f0e 11453 * output.h (do_assemble_alias): Declare.
a295fa90
UB
11454 * varpool.c (varpool_remove_unreferenced_decls): Do not call
11455 finish_aliases_1.
07250f0e 11456
fb909888
MJ
114572012-05-23 Martin Jambor <mjambor@suse.cz>
11458
11459 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
11460
2e745103
EB
114612012-05-23 Eric Botcazou <ebotcazou@adacore.com>
11462
11463 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
11464 size handling.
11465 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
11466 (iterative_hash_gimple_type): Adjust comment.
11467 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
11468 domain for an array type instead of the domain type itself.
11469
e8257960
RG
114702012-05-23 Richard Guenther <rguenther@suse.de>
11471
11472 PR tree-optimization/53438
11473 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
11474
b49eb0ff
GJL
114752012-05-23 Georg-Johann Lay <avr@gjlay.de>
11476
11477 PR target/53448
11478 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
11479 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
11480 ASM_OUTPUT_ALIGN.
11481
9c09f152
RB
114822012-05-23 Richard Guenther <rguenther@suse.de>
11483
11484 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
11485 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
11486 via the global_unused_vars bitmap.
11487 (remove_unused_locals): Handle global vars in local-decls via
11488 a global_unused_vars bitmap instead of the used flag in the
11489 var annotation. Simplify global variable handling and removal.
11490
aa19cf87
JH
114912012-05-22 Jan Hubicka <jh@suse.cz>
11492
11493 PR middle-end/53426
9c09f152
RB
11494 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
11495 from other partitions.
aa19cf87 11496
66379195
JH
114972012-05-22 Jan Hubicka <jh@suse.cz>
11498
11499 PR middle-end/53161
11500 * symtab.c (symtab_register_node): Fix ordering issue.
11501
3cd50158
SD
115022012-05-22 Steven Drake <sbd@NetBSD.org>
11503
11504 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
11505
f8dc1d83
DE
115062012-05-22 David Edelsohn <dje.gcc@gmail.com>
11507
11508 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
11509 Use strip_name_encoding target hook.
11510
3828719a
RG
115112012-05-22 Richard Guenther <rguenther@suse.de>
11512
11513 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
11514 (init_function_for_compilation): Remove.
11515 * tree-dfa.c (find_vars_r): Take struct function argument.
11516 (find_referenced_vars_in): Adjust.
11517 * tree-ssa-operands.c (clobber_stats): Remove.
11518 (create_vop_var): Take struct function argument. Mark
11519 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
11520 (init_ssa_operands): Take struct function argument.
11521 (fini_ssa_operands): Do not dump dead stats.
11522 * tree-ssa-operands.h (init_ssa_operands): Take struct function
11523 argument.
11524 * cgraphunit.c (init_lowered_empty_function): Adjust.
11525 * lto-streamer-in.c (input_cfg): Likewise.
11526 * tree-inline.c (initialize_cfun): Likewise.
11527 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
a295fa90 11528 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
3828719a
RG
11529 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
11530 virtual operands are not registers.
11531
72d5c6c1
RG
115322012-05-22 Richard Guenther <rguenther@suse.de>
11533
a295fa90 11534 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
72d5c6c1 11535
27eb31c9
RG
115362012-05-22 Richard Guenther <rguenther@suse.de>
11537
11538 PR middle-end/53437
11539 * tree-inline.c (setup_one_parameter): Create a dummy init
11540 statement for unused parameters when not optimizing.
11541
3efa0725
RG
115422012-05-22 Richard Guenther <rguenther@suse.de>
11543
11544 * tree-flow.h (add_referenced_var_1): Declare.
11545 (add_referenced_var): Define.
a295fa90 11546 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
3efa0725
RG
11547 (add_referenced_var): Rename to ...
11548 (add_referenced_var_1): ... this. Take struct function argument.
11549
95ffee1f
RR
115502012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11551
11552 PR target/53334
11553 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
11554 * config/arm/arm.c (arm_validize_comparison): Define.
11555 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
11556 arm_validize_comparison.
11557 ("cbranchdi4"): Likewise.
11558 ("cstoredi4"): Likewise.
11559 ("movsicc"): Likewise.
11560 ("movsfcc"): Likewise.
11561 ("movdfcc"): Likewise.
11562
7c2dbbdc
DA
115632012-05-22 Dimitrios Apostolou <jimis@gmx.net>
11564
11565 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
95ffee1f 11566 the mw_reg_pool size.
7c2dbbdc 11567
819f3b2c
PB
115682012-05-22 Paolo Bonzini <bonzini@gnu.org>
11569
11570 PR tree-optimization/53336
11571 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
11572 non-integer integral types to offset type and vice versa.
11573
c5e0766b
AM
115742012-05-22 Alan Modra <amodra@gmail.com>
11575
7caf4b0c
PB
11576 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
11577 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
11578 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
11579 V_SAVE_INLINE): Delete.
c5e0766b
AM
11580 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
11581 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
11582 For ELF targets, use out-of-line restores for -Os and any number
11583 of regs if the restore exits, and out-of-line gp save for two or
11584 more regs. Use save_reg_p to test for holes in reg restore set.
11585 Replace "#if" with "if".
11586
bbd72c2f
AM
115872012-05-22 Alan Modra <amodra@gmail.com>
11588
11589 * config/rs6000/rs6000.c (save_reg_p): New function.
11590 (first_reg_to_save, first_fp_reg_to_save): Use it here.
11591 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
11592 (emit_frame_save): Use gen_frame_store.
11593 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
11594 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
11595 vrsave and toc.
11596 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
11597 vrsave, toc, gp and fp restores.
11598
e1968bba
AM
115992012-05-22 Alan Modra <amodra@gmail.com>
11600
11601 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
11602 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
11603 Move function pointer variables after forward declarations.
11604 (rs6000_builtin_support_vector_misalignment): Make static.
11605 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
11606 (rs6000_function_value, rs6000_can_eliminate): Likewise.
11607
1d2944a3
BS
116082012-05-21 Bernd Schmidt <bernds@codesourcery.com>
11609
11610 PR rtl-optimization/53373
11611 * caller-save.c (save_call_clobbered_regs): Look into a possible
11612 PARALLEL manually rather than using single_set on a call insn.
11613
a9a58711
JJ
116142012-05-21 Jakub Jelinek <jakub@redhat.com>
11615
11616 PR tree-optimization/53436
11617 * omp-low.c (omp_build_component_ref): New function.
11618 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
11619
f1ea1f5c
UB
116202012-05-21 Uros Bizjak <ubizjak@gmail.com>
11621
11622 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
11623 arguments to bool.
11624 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
11625 Do not print '.' here. Output operand lossage error for unhandled
11626 sizes. Move.
11627 <case '*'>: Move.
11628 <case '&'>: Ditto.
11629 <case 'Y'>: Ditto.
11630 <case 'z'>: Hardcode "code" argument into error strings.
11631 <case 'Z'>: Ditto.
11632 <case 'D'>: Merge AVX and non-AVX codes.
11633 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
11634 Update call to put_condition_code.
11635
577e0395
AS
116362012-05-21 Andreas Schwab <schwab@linux-m68k.org>
11637
11638 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
11639 CC_STATUS_INIT.
11640 (clzsi2): New expander.
11641 (*clzsi2_68k): New insn.
f1ea1f5c 11642 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
577e0395 11643
83e1a7f0
AH
116442012-05-21 Aldy Hernandez <aldyh@redhat.com>
11645
11646 * gimple.h (gimple_set_in_transaction): Remove.
11647 (gimple_in_transaction): Look in BB instead.
11648 (gimple_statement_base): Remove in_transaction field.
11649 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
11650 * trans-mem.c (compute_transaction_bits): Place transaction bit
11651 information into basic blocks.
11652
18c56439
AS
116532012-05-21 Andreas Schwab <schwab@linux-m68k.org>
11654
11655 * expr.c (get_def_for_expr_class): Define only if
11656 HAVE_conditional_move.
11657 (convert_tree_comp_to_rtx): Likewise.
11658
89ac11d8
UB
116592012-05-21 Uros Bizjak <ubizjak@gmail.com>
11660
11661 PR target/53399
11662 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
11663 for TARGET_BMI.
11664 (ffssi2_no_cmove): Ditto.
11665 (*ffs<mode>_1): Remove insn pattern.
11666 (*tzcnt<mode>_1): New insn pattern.
11667 (*bsf<mode>1): Ditto.
11668
cb0c9fc3
RG
116692012-05-21 Richard Guenther <rguenther@suse.de>
11670
11671 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
11672 more referenced vars.
11673 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
11674 flag on variables that have a var-annotation.
11675
01c7ccbb
JM
116762012-05-21 Joseph Myers <joseph@codesourcery.com>
11677
ce863f5d 11678 PR c/53418
01c7ccbb
JM
11679 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
11680 from folded operands before wrapping another around the
11681 conditional expression.
11682
27edb974
JJ
116832012-05-21 Jakub Jelinek <jakub@redhat.com>
11684
7772bae0
JJ
11685 PR tree-optimization/53366
11686 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
11687 tests if complex_numbers == 2, but there are non-complex number loads
11688 too.
11689
017a2020
JJ
11690 PR tree-optimization/53409
11691 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
11692 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
11693
27edb974
JJ
11694 PR tree-optimization/53410
11695 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
11696 instead of build_int_cst (type, 0) where vector types might be
11697 involved. Instead of build_int_cst (type, 1) convert the original
11698 integer_onep argument to the desired type.
11699
fb639843
MM
117002012-05-21 Michael Matz <matz@suse.de>
11701
11702 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
11703 (simplify_test_exp): Handle one more case of distributive law,
11704 decrease cost threshold.
11705 (tests_attr_p, get_attr_order): New functions.
11706 (optimize_attrs): Use topological order, inline only cheap values.
11707 (write_attr_set): Reset our_known_true after some time.
11708
30ee9dbf
L
117092012-05-21 H.J. Lu <hongjiu.lu@intel.com>
11710
11711 PR target/53425
11712 * config/i386/i386.c (type_natural_mode): Warn passing SSE
11713 vector argument without SSE enabled changes the ABI.
11714
21039e0e
RG
117152012-05-21 Richard Guenther <rguenther@suse.de>
11716
11717 PR tree-optimization/53408
11718 * tree-vect-loop.c (vectorizable_induction): Properly check
11719 the restriction that we cannot handle induction results from
11720 the inner loop outside of the outer loop.
11721
9b5effa4
L
117222012-05-21 H.J. Lu <hongjiu.lu@intel.com>
11723
11724 PR target/53416
11725 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
11726 (UNSPECV_RDRAND): This.
11727 (rdrand<mode>_1): Updated.
11728
8450aa97
RG
117292012-05-21 Richard Guenther <rguenther@suse.de>
11730
11731 * tree-loop-distribution.c (can_generate_builtin): Reject
11732 volatile stmts.
11733
6be4d3ac
CLT
117342012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
11735
11736 * Makefile.in (options.c): Add options.h to included header
11737 files, before tm.h.
11738
70837b71
RL
117392012-05-21 Razya Ladelsky <razya@il.ibm.com>
11740
89ac11d8 11741 * tree-parloops.c : Add myself to contributors, update
70837b71
RL
11742 TODO list, add link to wiki.
11743
8afc3636
AM
117442012-05-21 Alan Modra <amodra@gmail.com>
11745
11746 * config/rs6000/predicates.md (input_operand): Don't match
11747 constant pool addresses. Remove label_ref, high and plus from
11748 match_code list. Remove redundant CONSTANT_P test.
11749 (splat_input_operand): Similarly update match_code list.
11750 (small_toc_ref): New predicate.
11751 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
11752 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
11753 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
11754 register checks to..
11755 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
11756 generated by create_TOC_reference.
11757 (rs6000_legitimize_address): Update cerate_TOC_reference call.
11758 (rs6000_delegitimize_address): Handle new rtl for toc refs.
11759 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
11760 (use_toc_relative_ref): New function, split out from..
11761 (rs6000_emit_move): ..here. Remove redundant tests. Update
11762 create_TOC_reference calls.
11763 (rs6000_legitimize_reload_address): Formatting. Handle splitting
11764 of medium/large model toc addresses. Use use_toc_relative_ref.
11765 (print_operand): Formatting, style. Adjust for toc changes.
11766 (print_operand_address): Likewise.
11767 (rs6000_output_addr_const_extra): Likewise.
11768 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
11769 than a PLUS. Use this formulation for both high and low part
11770 of -mcmodel=medium/large toc reference too. Before reload,
11771 always use the small model formulation.
11772 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
11773 a PLUS in high part of addresses here.
11774 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11775 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11776 (largetoc_high, largetoc_low): Move earlier. Cope when no
11777 base reg available.
11778 (largetoc_high_plus): New insn.
11779 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
11780 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
11781 (tocref): ..instead do so here, new insn and split.
11782
d1925759
L
117832012-05-20 H.J. Lu <hongjiu.lu@intel.com>
11784
11785 * config/i386/driver-i386.c (host_detect_local_cpu): Support
11786 RDRND, F16C and FSGSBASE.
11787
05607e5b
JDA
117882012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11789
11790 PR rtl-optimzation/53373
11791 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
11792 call pattern. Update split patterns.
11793 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
11794 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
11795
768da0da 117962012-05-20 Razya Ladelsky <razya@il.ibm.com>
89ac11d8
UB
11797
11798 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
11799 for outer loops.
768da0da 11800
877ab5e9
JH
118012012-05-18 Jan Hubicka <jh@suse.cz>
11802
11803 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
11804 (cgraph_process_new_functions): Process also aliases.
11805 * lto-streamer-out.c (struct sets): Remove.
11806 (trivally_defined_alias): Remove.
11807 (output_alias_pair_p): Remove.
11808 (output_unreferenced_globals): Remove.
11809 (produce_symtab); Do not handle alias pairs.
11810 (produce_asm_for_decls): Likewise.
11811 * lto-streamer-in.c (input_alias_pairs): Remove.
11812 (lto_read_body): Do not input alias pairs.
11813 (lto_input_constructors_and_inits): Remove.
11814
38e55ac9
JH
118152012-05-18 Jan Hubicka <jh@suse.cz>
11816
89ac11d8
UB
11817 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
11818 aliases.
38e55ac9 11819
c44c2088
JH
118202012-05-18 Jan Hubicka <jh@suse.cz>
11821
11822 * cgraphbuild.c (record_reference): Update.
11823 * lto-cgraph.c (lto_output_varpool_node): External vars
11824 are not in other partition even if they are not output
11825 in current partition.
11826 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
11827 argument; fix.
11828 (canonicalize_constructor_val): Take FROM_DECL argument.
11829 (fold_ctor_reference, fold_string_cst_ctor_reference,
11830 fold_array_ctor_reference, fold_nonarray_ctor_reference,
11831 fold_ctor_reference): Likewise.
11832 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
11833 * gimple.h (gimple_fold_builtin): Likewise.
11834
0ac3cb2a
OH
118352012-05-18 Olivier Hainque <hainque@adacore.com>
11836
11837 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
11838 $(libsubdir) as libexecsubdir.
11839
9c68125e
BS
118402012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11841
11842 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
11843 relied on signed overflow behavior.
11844
a4293fa6
RG
118452012-05-18 Richard Guenther <rguenther@suse.de>
11846
11847 PR tree-optimization/53346
11848 * tree-loop-distribution.c (ldist_gen): Make sure to apply
11849 builtin transform even when only a single partition with
11850 all reads/writes exists.
11851
7595989b
RG
118522012-05-18 Richard Guenther <rguenther@suse.de>
11853
11854 PR tree-optimization/53390
11855 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
11856 strided loads.
11857
917a5202
BS
118582012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11859
11860 * tree-ssa-reassoc.c (bip_map): Remove decl.
11861 (completely_remove_stmt): Remove function.
11862 (remove_def_if_absorbed_call): Remove function.
11863 (remove_visited_stmt_chain): Remove __builtin_powi handling.
11864 (possibly_move_powi): Remove function.
11865 (rewrite_expr_tree): Remove calls to possibly_move_powi.
11866 (rewrite_expr_tree_parallel): Likewise.
11867 (attempt_builtin_powi): Build multiplies explicitly rather than
11868 relying on the ops vector and rank system.
11869 (transform_stmt_to_copy): New function.
11870 (transform_stmt_to_multiply): Likewise.
11871 (reassociate_bb): Handle leftover operations after __builtin_powi
11872 optimization; build a final multiply if necessary.
11873
387df871
JH
118742012-05-18 Jan Hubicka <jh@suse.cz>
11875
11876 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
11877 (mark_functions_to_output): Fix sanity check.
89ac11d8 11878 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
387df871 11879
f9a21e13
RG
118802012-05-18 Richard Guenther <rguenther@suse.de>
11881
11882 * tree-flow.h (mark_symbols_for_renaming): Remove.
11883 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
89ac11d8 11884 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
f9a21e13
RG
11885 (copy_debug_stmt): Likewise.
11886 (expand_call_inline): Likewise.
11887 (declare_return_variable): Mark the return variable for renaming
11888 if necessary.
11889
99aea943
AS
118902012-05-18 Andrew Stubbs <ams@codesourcery.com>
11891
11892 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
11893 prototype.
11894 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
11895 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
11896 (ashrdi3,lshrdi3): Likewise.
11897 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
11898
7cb6668a
MI
118992012-05-18 Meador Inge <meadori@codesourcery.com>
11900
11901 PR rtl-optimization/53352
11902 * cse.c (equiv_constant): Ignore paradoxical subregs.
11903
8e6acdb8
SB
119042012-05-17 Steven Bosscher <steven@gcc.gnu.org>
11905
11906 PR rtl-optimization/53125
11907 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
11908 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
11909 die in the basic block. Correctly top off REG_FREQ and
11910 REG_FREQ_CALLS_CROSSED.
11911 Remove do_not_gen.
11912 (regstat_compute_ri): Allocate and free local_live_last_luid.
11913 Remove do_not_gen.
11914 (regstat_bb_compute_calls_crossed): Correctly top off
11915 REG_FREQ_CALLS_CROSSED.
11916
6649df51
JH
119172012-05-17 Jan Hubicka <jh@suse.cz>
11918
89ac11d8
UB
11919 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
11920 constructor over decl without.
6649df51
JH
11921 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
11922 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
89ac11d8 11923 * cgraphunit.c (process_function_and_variable_attributes): Finalize
6649df51 11924 extrnal decls.
89ac11d8
UB
11925 (mark_functions_to_output): Also accept bodies for functions with
11926 clones.
6649df51
JH
11927 (output_in_order): Skip external vars.
11928 * lto-cgraph.c (lto_output_node): External functions are never in other
11929 partition.
11930 (lto_output_varpool_node): Likewise.
11931 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
11932 forgotten initializers.
11933 * ipa.c (process_references): Handle external vars.
11934 (symtab_remove_unreachable_nodes): Update to handle external vars.
11935 (varpool_externally_visible_p): External vars are externally visible.
11936 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
11937 * varpool.c (varpool_remove_node): Remove constructor.
11938 (decide_is_variable_needed): Handle externals.
11939 (varpool_remove_unreferenced_decls): Likewise.
11940
9b095bf1
MLI
119412012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
11942
11943 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
11944 (enable_warning_as_error): Do not special case Wuninitialized.
11945 * optc-gen.awk: Add sanity checks.
11946
9faeb493 119472012-05-17 Jan Hubicka <jh@suse.cz>
5264f487
JH
11948
11949 * ipa-reference.c (is_proper_for_analysis): Do not check flags
11950 that might change as result of global optimization.
11951 (analyze_function): Do not check analyzed and externally_visible
11952 flags; be happy about address dereferences.
11953 (propagate): Prune all_module_statics so it really contains just
11954 statics; prune all the local summaries.
11955 (ipa_reference_write_optimization_summary): Simplify.
11956
de7ee1e9
KCY
119572012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
11958
89ac11d8 11959 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
de7ee1e9
KCY
11960 * config/m68k/m68k-tables.opt: Regenerated.
11961 * doc/invoke.texi (M680x0 Options): Document.
11962
8730965e
PM
119632012-05-16 Dave Boutcher <daveboutcher@gmail.com>
11964 Patrick Marlier <patrick.marlier@gmail.com>
11965
11966 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
11967 indirect calls.
11968
e6d5f8c9
L
119692012-05-16 H.J. Lu <hongjiu.lu@intel.com>
11970
11971 * configure: Regenerated.
11972
763dc99d
AP
119732012-05-16 Andrew Pinski <apinski@cavium.com>
11974
11975 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
11976 GIMPLE_ASSIGN.
11977
0e2b0f75
DM
119782012-05-16 David S. Miller <davem@davemloft.net>
11979
11980 * jump.c (delete_related_insns): If we remove a CALL, make sure
11981 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
11982
f002c196
BS
119832012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11984
11985 PR tree-optimization/53217
11986 * tree-ssa-reassoc.c (bip_map): New static variable.
11987 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
11988 (attempt_builtin_powi): Save feeding multiplies on a stack.
11989 (reassociate_bb): Create and destroy bip_map.
11990
8294b6fe
OH
119912012-05-16 Olivier Hainque <hainque@adacore.com>
11992
11993 * Makefile.in (install-no-fixedincludes): New target, former toplevel
11994 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
11995 Add comments and improve stamp preservation across the whole sequence.
11996 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
11997
6b18b1a3
RG
119982012-05-16 Richard Guenther <rguenther@suse.de>
11999
12000 * tree-inline.c (insert_init_stmt): Do not call
12001 mark_symbols_for_renaming.
12002 (setup_one_parameter): Avoid initializing unused parameters.
12003 (declare_return_variable): Properly handle DECL_BY_REFERENCE
12004 return vars in SSA form.
12005
00d9266f
RG
120062012-05-16 Richard Guenther <rguenther@suse.de>
12007
12008 * tree-flow.h (get_virtual_var): Remove.
12009 * tree-dfa.c (get_virtual_var): Likewise.
12010
c334023f
RG
120112012-05-16 Richard Guenther <rguenther@suse.de>
12012
12013 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
12014 Remove set-only bitmap of new names.
12015 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
12016 CFG hooks.
12017 * tree-flow.h (ssa_names_to_replace): Remove.
12018 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
12019
a952cc06
RG
120202012-05-16 Richard Guenther <rguenther@suse.de>
12021
12022 PR tree-optimization/53364
12023 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
12024 detect a view-conversion of the decl.
12025
0b2c4be5
DS
120262012-05-16 Dodji Seketeli <dodji@redhat.com>
12027
12028 PR preprocessor/7263
12029 * c-tree.h (enum c_declspec_word): Declare new enum.
12030 (struct c_declspecs::locations): New member.
12031 (declspecs_add_qual, declspecs_add_scspec)
12032 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
12033 location parameter.
12034 * c-decl.c (build_null_declspecs): Initialize the new struct
12035 c_declspecs::locations member.
12036 (declspecs_add_addrspace): Take a location parameter for the
12037 address space. Store it onto declaration specifiers.
12038 (declspecs_add_qual): Likewise, take a location parameter for the
12039 qualifier.
12040 (declspecs_add_type): Likewise, take a location parameter for the
12041 type specifier.
12042 (declspecs_add_scspec): Likewise, take a location parameter for
12043 the storage class specifier.
12044 (declspecs_add_attrs): Likewise, take a location parameter for the
12045 first attribute.
12046 (declspecs_add_alignas): Likewise, take a location parameter for
12047 the alignas token.
12048 (finish_declspecs): For diagnostics, use the location of the
12049 relevant declspec, instead of the global input_location.
12050 * c-parser.c (c_parser_parameter_declaration): Pass the precise
12051 virtual location of the declspec to the declspecs-setters.
12052 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
12053 repeatedly.
12054
40295cc7
IZ
120552012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
12056
12057 * configure.ac: Stack protector enabling for Android targets.
12058 * configure: Regenerate.
12059
a36b2706
RS
120602012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
12061
12062 * ira.c (pseudo_move_insn): Delete.
12063 (find_moveable_pseudos): Don't set it.
12064 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
12065 the definitions of the original pseudo. Delete all of them.
12066
a7c6c6d6
OH
120672012-05-16 Olivier Hainque <hainque@adacore.com>
12068
12069 * config/rs6000/rs6000-opts.h (enum processor_type): Add
12070 PROCESSOR_PPC8548.
12071 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
12072 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
12073 * config/rs6000/8540.md: indicate that the units/patterns apply to
12074 ppc8548 as well.
12075
12076 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
12077 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
12078 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
12079 related flags, check that what is queried is supported by the selected
12080 configuration. Rework the single/double_float and MASK_STRING resets to
12081 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
12082 costs for PROCESSOR_PPC8548 as well.
12083 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
12084 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
12085 statement instead of a sequence of ifs.
12086
12087 * config/rs6000/rs6000.h (TARGET_E500): Remove.
12088 (TARGET_NO_LWSYNC): Adjust accordingly.
12089 * config/rs6000/e500.h (TARGET_E500): Remove.
12090 (CHECK_E500_OPTIONS): Adjust accordingly.
12091 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
12092 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
12093 * config/rs6000/linuxspe.h: Likewise.
12094 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
12095 superfluous comments.
12096 * config/rs6000/e500-double.h: Remove.
12097
12098 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
12099 default to with_cpu=8548 if --enable-e500-double, and to 8540
12100 otherwise.
12101 (set misc flags section): For powerpc*|rs6000*, remove inclusion
12102 of e500-double.h for --enable-e500-double.
12103
af0a7a92
OH
121042012-05-16 Olivier Hainque <hainque@adacore.com>
12105
12106 * Makefile.in (s-header-vars): Resort to -n instead of trailing
12107 -e d in sed invocation.
12108
176a96de
HPN
121092012-05-16 Hans-Peter Nilsson <hp@axis.com>
12110
12111 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
12112 source-code.
12113 * doc/tm.texi: Regenerate.
12114
f2437399
PC
121152012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
12116
12117 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
12118
64137a35
JJ
121192012-05-15 Jakub Jelinek <jakub@redhat.com>
12120
12121 PR target/53358
12122 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
12123 that operands[2] is either immediate, or q_regs_operand.
12124
7d80ca1f
RG
121252012-05-15 Richard Guenther <rguenther@suse.de>
12126
12127 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
12128 (assemble_thunk): Likewise. Manually rename and register
12129 function arguments.
12130
8c1f1d42
RG
121312012-05-15 Richard Guenther <rguenther@suse.de>
12132
12133 PR tree-optimization/53355
12134 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
12135 by constants.
12136
33960e2e
TG
121372012-05-15 Tristan Gingold <gingold@adacore.com>
12138
89ac11d8 12139 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
33960e2e 12140
a02f0c5d
RG
121412012-05-15 Richard Guenther <rguenther@suse.de>
12142
12143 * gimple.c (gimple_set_modified): Move ...
12144 * gimple.h (gimple_set_modified): ... here.
12145
094aaeab
TG
121462012-05-15 Tristan Gingold <gingold@adacore.com>
12147
12148 * ira-color.c (move_spill_restore): Add a guard.
12149
f65e3801
TG
121502012-05-15 Tristan Gingold <gingold@adacore.com>
12151
12152 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
12153 plus_constant.
12154
f301837e
EB
121552012-05-15 Eric Botcazou <ebotcazou@adacore.com>
12156
12157 * gimplify.c (gimplify_init_constructor): Do a block move for very
12158 small objects as well.
12159
aa44c80c
BS
121602012-05-15 Bernd Schmidt <bernds@codesourcery.com>
12161
12162 * ira.c (find_moveable_pseudos): Skip registers whose
12163 DF_REG_EQ_USE_COUNT is nonzero.
12164
d6373302
KZ
121652012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
12166
89ac11d8 12167 * doc/md.texi (fma): Define to only be applicable for single rounding.
33960e2e 12168
517f1b34
UB
121692012-05-14 Uros Bizjak <ubizjak@gmail.com>
12170
12171 PR target/46098
12172 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
12173 generate target register for "load" class builtins.
12174
12175 Revert:
12176 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
12177
12178 PR target/46098
12179 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
12180 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
12181 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
12182 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
12183 (<sse>_movu<ssemodesuffix>): New expander.
12184 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
12185 (avx_movdqu<avxmodesuffix>): New expander.
12186 (*sse2_movdqu): Rename from sse2_movdqu.
12187 (sse2_movdqu): New expander.
12188
6015a67d
MG
121892012-05-14 Marc Glisse <marc.glisse@inria.fr>
12190
12191 PR target/52607
12192 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
12193 (canonicalize_perm): ... new function.
12194 (expand_vec_perm_2vperm2f128_vshuf): New function.
12195 (ix86_expand_vec_perm_const_1): Call it.
12196
f6286674
JJ
121972012-05-14 Andrew Pinski <apinski@cavium.com>
12198 H.J. Lu <hongjiu.lu@intel.com>
12199 Jakub Jelinek <jakub@redhat.com>
12200
12201 PR target/53315
517f1b34 12202 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
f6286674
JJ
12203 (xbegin): Updated.
12204
d5c90983
JJ
122052012-05-14 Jakub Jelinek <jakub@redhat.com>
12206
210cfe63
JJ
12207 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
12208 lineno 1 the same as lineno 0 before first start file directive.
12209 (optimize_macinfo_range): Likewise.
12210
d5c90983
JJ
12211 * dwarf2out.c (have_macinfo): Define.
12212 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
12213 attribute, don't force empty compilation unit and don't emit any
12214 .debug_macinfo/.debug_macro section if macinfo_table is empty.
12215
5bb53d1a
GJL
122162012-05-14 Georg-Johann Lay <avr@gjlay.de>
12217
12218 PR target/53344
12219 * config/avr/avr.c (avr_const_address_lo16): Remove.
12220 (avr_assemble_integer): Print ".byte lo8(x)",
12221 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
89ac11d8 12222 .warning if 3-byte address is assembled.
5bb53d1a
GJL
12223 * doc/extend.texi (AVR Named Address Spaces): Document that
12224 binutils 2.23 is needed to assemble 3-byte addresses.
12225
6ba84010
RG
122262012-05-14 Richard Guenther <rguenther@suse.de>
12227
12228 * tree-vect-data-refs.c (vect_setup_realignment): Remove
12229 call to mark_symbols_for_renaming.
12230 (vect_permute_load_chain): Likewise.
12231 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
12232 instead of calling mark_symbols_for_renaming.
12233 * tree-vect-stmts.c (read_vector_array): Remove call to
12234 mark_symbols_for_renaming.
12235 (write_vector_array): Likewise.
12236 (vectorizable_call): Likewise.
12237 (vectorizable_store): Likewise.
12238 (vectorizable_load): Likewise.
12239 * matrix-reorg.c (transform_allocation_sites): Likewise.
12240 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
12241 (create_expression_by_pieces): Likewise.
12242
097dcc66
RG
122432012-05-14 Richard Guenther <rguenther@suse.de>
12244
12245 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
12246 of statements for renaming.
12247 (force_gimple_operand_1): Likewise, consistently for both
12248 calls to force_gimple_operand and force_gimple_operand_gsi.
12249
a5efada7
RG
122502012-05-14 Richard Guenther <rguenther@suse.de>
12251
12252 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
12253 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
12254 to update_ssa.
12255 (expand_omp_for): Likewise.
12256 (expand_omp_for_generic): Adjust conditional add to referenced vars.
12257 Use make_rename_temp for temporaries that should be rewritten into
12258 SSA form.
12259 (expand_omp_for_static_nochunk): Likewise.
12260 (expand_omp_atomic_pipeline): Likewise.
12261
a82960aa
RG
122622012-05-14 Richard Guenther <rguenther@suse.de>
12263
12264 PR tree-optimization/53331
12265 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
12266 strided loads.
12267 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
12268
f2bc201f
MLI
122692012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12270
12271 PR 53063
12272 * doc/options.texi: (LangEnabledBy): Document it.
12273 * optc-gen.awk: Handle LangEnabledBy.
12274 * opth-gen.awk: Generate declaration for lang-specific functions.
12275 * opt-read.awk: Record lang numbers.
12276 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
12277 (lang_sanitized_name): New.
12278
e384e6b5
BS
122792012-05-14 Bernd Schmidt <bernds@codesourcery.com>
12280
12281 * attribs.c (decl_attributes): Avoid emitting a warning if
12282 ATTR_FLAG_BUILT_IN.
12283 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
12284 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
e384e6b5
BS
12285 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
12286 define a string "1".
12287 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
12288 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
12289 BUILT_IN_STRCPY): Use it for these functions.
12290 * postreload.c (reload_combine): Deal with SETs inside
12291 CALL_INSN_FUNCTION_USAGE.
12292 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
12293 Look for REG_RETURNED notes and use a cheap restore if possible.
12294 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
12295 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
12296 * ira-build.c (ira_create_allocno, create_cap_allocno,
12297 propagate_allocno_info, propagate_some_info_from_allocno,
12298 copy_info_to_removed_store_destination, ira_flattening): Handle it.
12299 * ira-lives.c (pseudo_regno_single_word_and_live_p,
12300 find_call_crossed_cheap_reg): New static functions.
12301 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
12302 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
12303 a REG_RETURNED note in that case.
12304 * ira.c (setup_reg_renumber): Change assert to allow cases where
12305 allocnos only cross calls for which they are cheap to restore.
12306 * ira-costs.c (ira_tune_allocno_costs): Compare
12307 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
12308 than 0.
12309 * reg-notes.def (REG_RETURNED): New note.
12310 * cse.c (cse_insn): Likewise.
12311 * sched-deps.c (sched_analyze_insn): Likewise.
12312 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
12313 * calls.c (decl_return_flags): New static function.
12314 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
12315 functions that return one of their arguments.
e384e6b5
BS
12316 * regcprop.c (struct kill_set_value_data): New.
12317 (kill_set_value): Interpret data as a pointer to such a struct.
12318 Do nothing if the caller wants the register to be ignored.
12319 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
12320
92290a18
RG
123212012-05-14 Richard Guenther <rguenther@suse.de>
12322
12323 PR tree-optimization/53340
12324 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
12325
412a1d9e
RG
123262012-05-14 Richard Guenther <rguenther@suse.de>
12327
12328 * gimplify.c (gimplify_expr): Remove odd code.
12329
9cbbba28
EB
123302012-05-14 Eric Botcazou <ebotcazou@adacore.com>
12331
12332 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
12333 into a PLUS_EXPR byte offset.
12334
12335 * tree-ssa-pre.c (can_value_number_call): Delete.
12336 (compute_avail): Skip all statements with side effects.
12337 <GIMPLE_CALL>: Skip calls to internal functions.
12338
ef4df353
SB
123392012-05-13 Steven Bosscher <steven@gcc.gnu.org>
12340
12341 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
12342
95744782
MLI
123432012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12344
12345 * common.opt (Wtype-limits): Use EnabledBy.
12346
c9423cef
UB
123472012-05-13 Uros Bizjak <ubizjak@gmail.com>
12348
12349 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
12350 (pushtf splitter): Ditto.
12351 (movtf): Ditto.
12352 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
12353 (<code>tf2): Enable for TARGET_SSE.
12354 (*absnegtf2_sse): Ditto.
12355 (copysign<mode>3): Enable TFmode for TARGET_SSE.
12356 (copysign<mode>3_const): Ditto.
12357 (copysign<mode>3_var): Ditto.
12358 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
12359 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
12360 (*<code>tf3): Ditto.
12361 * config/i386/i386.c (struct builtin_description bdesc_args)
12362 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
12363 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
12364 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
12365 Emit a normal call if SSE isn't available.
12366
b8dd0894
UB
123672012-05-13 Uros Bizjak <ubizjak@gmail.com>
12368
12369 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
12370 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
12371 (<code><mode>3): Ditto.
12372 (*andnot<mode>3): Ditto.
12373 (*andnottf3): Ditto.
12374 (*<code><mode>3): Ditto.
12375 (<code>tf3): Ditto.
12376
71caddc5
MLI
123772012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12378
12379 * optc-gen.awk: Error instead of warning for conflicting help.
12380
bf4c7d4a
JM
123812012-05-12 Jason Merrill <jason@redhat.com>
12382
12383 PR debug/53235
12384 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
12385 comdat types.
12386
4265801b
EB
123872012-05-12 Eric Botcazou <ebotcazou@adacore.com>
12388
12389 * function.c (requires_stack_frame_p): If the function can throw
12390 non-call exceptions, return true if the insn can throw internally.
12391
66b1156a
PC
123922012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
12393
12394 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
12395
d2b21f20
UB
123962012-05-12 Uros Bizjak <ubizjak@gmail.com>
12397
12398 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
12399 ORDERED and UNORDERED conditions.
12400
835c9db0
RG
124012012-05-11 Richard Guenther <rguenther@suse.de>
12402
12403 * tree-flow.h (referenced_var_check_and_insert): Remove.
12404 (find_new_referenced_vars): Likewise.
12405 * tree-dfa.c (referenced_var_check_and_insert): Make static.
12406 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
12407 * tree-inline.c (copy_bb): Use find_referenced_vars_in
12408 instead of find_new_referenced_vars.
12409 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
12410
6083578b
RG
124112012-05-11 Richard Guenther <rguenther@suse.de>
12412
12413 * tree-pass.h (pass_rest_of_compilation,
12414 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
12415 Remove.
12416 * passes.c (pass_all_optimizations, pass_postreload,
12417 pass_all_early_optimizations): Make static.
12418 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
12419 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
12420 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
12421 (delete_tree_ssa): Do not call fini_phinodes.
12422 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
12423
7d5a5747
MLI
124242012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12425
12426 PR 53063
12427 * doc/options.texi (EnabledBy): Document
12428 * opts.c: Include opts.h and options.h before tm.h.
12429 (finish_options): Do not handle some sub-options here...
6399c0ab
SB
12430 (common_handle_option): ... instead call common_handle_option_auto
12431 here.
7d5a5747
MLI
12432 * optc-gen.awk: Handle EnabledBy.
12433 * opth-gen.awk: Declare common_handle_option_auto.
12434 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
12435 (Wmaybe-uninitialized): Likewise.
517f1b34
UB
12436 (Wunused-but-set-variable): Likewise.
12437 (Wunused-function): Likewise.
12438 (Wunused-label): Likewise.
12439 (Wunused-value): Likewise.
12440 (Wunused-variable): Likewise.
12441 * opt-read.awk: Create opt_numbers array.
7d5a5747 12442
319e6439
RG
124432012-05-11 Richard Guenther <rguenther@suse.de>
12444
12445 PR tree-optimization/53295
12446 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
12447 strides.
12448 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
12449 strides when analyzing data-references in a loop context.
12450 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
12451 non-constant strides for now.
12452 (vect_enhance_data_refs_alignment): Ignore data references
12453 that are strided loads.
12454 (vect_analyze_data_ref_access): Handle non-constant strides.
12455 (vect_check_strided_load): Verify the data-reference is a load.
12456 (vect_analyze_data_refs): Restructure to make strided load
12457 support not dependent on gather support.
12458 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
12459 when doing strided or gather loads.
12460 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
12461 integer_zerop to compare stride with zero.
12462
76a02e42
L
124632012-05-11 H.J. Lu <hongjiu.lu@intel.com>
12464
b8dd0894 12465 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
76a02e42 12466
8fc17ddc
JH
124672012-05-11 Jan Hubicka <jh@suse.cz>
12468
12469 PR bootstrap/53300
12470 * varpool.c (varpool_assemble_decl): Also output constat pool entries
12471 that output_constant_pool missed.
12472
cc90dc84
MX
124732012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
12474
12475 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
12476 MULTILIB_EXTRA_OPTS.
12477
8d463d3a
UB
124782012-05-11 Uros Bizjak <ubizjak@gmail.com>
12479
12480 PR target/53291
12481 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
12482
63705578
UB
124832012-05-11 Uros Bizjak <ubizjak@gmail.com>
12484
12485 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
12486 optimization for TARGET_AVX.
12487 (*movti_internal_sse): Ditto.
12488 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
12489 (*movdi_internal): Ditto.
12490 (*movsi_internal): Ditto.
12491 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
12492 (*movdf_internal_rex64): Ditto.
12493 (*movfd_internal): Ditto.
12494 (*movsf_internal): Ditto.
12495 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
12496
e580d8ee
EB
124972012-05-10 Eric Botcazou <ebotcazou@adacore.com>
12498
12499 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
12500 reference as size attribute.
12501
7b84aac0
EB
125022012-05-10 Eric Botcazou <ebotcazou@adacore.com>
12503 Tristan Gingold <gingold@adacore.com>
12504
12505 * doc/md.texi (Standard Names): Document probe_stack_address.
12506 * explow.c (emit_stack_probe): Handle probe_stack_address.
12507 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
12508 (UNSPECV_PROBE_STACK_RANGE): Likewise.
12509 (probe_stack_address): New insn.
12510 (probe_stack_range): Likewise.
12511 * config/ia64/ia64.c: Include common/common-target.h.
12512 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
12513 checking is enabled.
12514 (ia64_emit_probe_stack_range): New function.
12515 (output_probe_stack_range): Likewise.
12516 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
12517 builtin stack checking is enabled.
12518 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
12519 and UNSPECV_PROBE_STACK_ADDRESS.
12520 (unknown_for_bundling_p): New predicate.
12521 (group_barrier_needed): Use important_for_bundling_p.
12522 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
12523 (issue_nops_and_insn): Likewise.
12524 (bundling): Likewise.
12525 (final_emit_insn_group_barriers): Likewise.
12526 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
12527 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
12528 (STACK_CHECK_PROTECT): Likewise.
12529 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12530
f1016df4
JH
125312012-05-10 Jan Hubicka <jh@suse.cz>
12532
12533 * ipa-inline.c (update_all_callee_keys): Remove.
12534 (inline_small_functions): Simplify priority updating.
12535
57228a69
JH
125362012-05-10 Jan Hubicka <jh@suse.cz>
12537
12538 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
12539
04142cc3
JH
125402012-05-10 Jan Hubicka <jh@suse.cz>
12541
12542 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
12543 (symtab_remove_unreachable_nodes): ... this one.
12544 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
12545 * cgraphunit.c (ipa_passes): Update.
12546 * cgraphclones.c (cgraph_materialize_all_clones): Update.
12547 * cgraph.c (cgraph_release_function_body): Only turn initial
12548 into error mark when initial was previously set.
12549 * ipa-inline.c (ipa_inline): Update.
12550 * ipa.c: Include ipa-inline.h
12551 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
12552 (enqueue_node): New function.
12553 (process_references): Update.
12554 (symtab_remove_unreachable_nodes): Cleanup.
12555 * passes.c (execute_todo, execute_one_pass): Update.
12556
e8d7e3e7
VM
125572012-05-10 Vladimir Makarov <vmakarov@redhat.com>
12558
12559 PR rtl-optimization/53125
3af2e3b5 12560 * ira.c (ira): Call find_moveable_pseudos and
e8d7e3e7
VM
12561 move_unallocated_pseudos if only ira_conflicts_p is true.
12562
e338c25c
UB
125632012-05-10 Uros Bizjak <ubizjak@gmail.com>
12564
12565 * config/i386/i386.md (*movoi_internal_avx): Handle
12566 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
12567 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
12568 (*movti_internal_sse): Ditto.
12569 (*movtf_internal): Ditto.
12570 * config/i386/sse.md (ssePSmode): New mode attribute.
12571 (*move<mode>_internal): Use ssePSmode.
12572 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
12573 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
12574 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
12575 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
12576
d400d17e
EB
125772012-05-10 Eric Botcazou <ebotcazou@adacore.com>
12578
12579 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
12580 DECL_ORIGINAL_TYPE if it is present.
12581
b5ba5188
NC
125822012-05-10 Nick Clifton <nickc@redhat.com>
12583
12584 PR target/53120
12585 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
12586 a "0" constraint to being a (match_dup 0).
12587
8244f252
RG
125882012-05-10 Richard Guenther <rguenther@suse.de>
12589
12590 * stor-layout.c (byte_from_pos): Amend comment.
12591
aca06c90
RO
125922012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12593
12594 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
12595 Document requirement to call in constructors.
12596
e338c25c 12597 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
aca06c90 12598
3ac8781c
RG
125992012-05-10 Richard Guenther <rguenther@suse.de>
12600
12601 * tree.h (TYPE_IS_SIZETYPE): Remove.
12602 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
12603 (extract_muldiv_1): Likewise.
12604 * gimple.c (gtc_visit): Likewise.
12605 (gimple_types_compatible_p): Likewise.
12606 (iterative_hash_canonical_type): Likewise.
12607 (gimple_canonical_types_compatible_p): Likewise.
12608 * gimplify.c (gimplify_one_sizepos): Likewise.
12609 * print-tree.c (print_node): Likewise.
12610 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
12611
d21a7b44
UB
126122012-05-09 Uros Bizjak <ubizjak@gmail.com>
12613
12614 PR target/52908
12615 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
12616 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
12617 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
12618 instead of xop_mulv2div2di3_low.
12619 (xop_p<macs>dql): Fix vec_select selector.
12620 (xop_p<macs>dqh): Ditto.
12621 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
12622 (xop_mulv2div2di3_high): Ditto.
12623
1b8b126f
MLI
126242012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12625
12626 PR c++/53289
12627 * diagnostic.h (diagnostic_context): Add last_location.
12628 * diagnostic.c (diagnostic_initialize): Initialize it.
12629 (diagnostic_show_locus): Use it.
12630
c54e7136
MLI
126312012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12632
517f1b34 12633 * doc/extend.texi (Function Attributes): Point xref to section
c54e7136
MLI
12634 about Pragmas.
12635
0ba511a1
UB
126362012-05-09 Uros Bizjak <ubizjak@gmail.com>
12637
12638 * config/i386/i386.c (*movdf_internal_rex64): Remove
12639 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
12640 Calculate "mode" attribute according to
12641 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
12642 (*movdf_internal): Ditto.
12643
20f9034b
UB
126442012-05-09 Uros Bizjak <ubizjak@gmail.com>
12645
12646 PR target/44141
12647 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
12648 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
12649 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
12650 or when optimizing for size.
12651 * config/i386/sse.md (*mov<mode>_internal): Remove
12652 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
12653 Calculate "mode" attribute according to optimize_function_for_size_p
12654 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
12655 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
12656 depending on the mode of the instruction. Calculate "mode" attribute
12657 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
12658 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
12659 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
12660
eac188c5
GJL
126612012-05-09 Georg-Johann Lay <avr@gjlay.de>
12662
12663 PR target/53256
12664 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
12665 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
12666 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
12667 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
12668 (expand_prologue): Move initialization of cfun->machine->is_naked,
12669 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
12670 (avr_set_current_function): ...this new static function.
12671 (TARGET_SET_CURRENT_FUNCTION): New define.
12672 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
12673 checking attributes of current_function_decl.
12674 (avr_regs_to_save): Ditto.
12675 (signal_function_p): Rename to avr_signal_function_p.
12676 (interrupt_function_p): Rename to avr_interrupt_function_p.
12677
12678 * doc/extend.texi (Function Attributes): Better explanation of
12679 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
12680 alphabetical order.
12681
0c910378
MM
126822012-05-09 Michael Matz <matz@suse.de>
12683
12684 PR tree-optimization/53185
12685 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
12686 peeling when we see strided loads.
12687
b0cd199e
MK
126882012-05-09 Matthias Klose <doko@ubuntu.com>
12689
12690 * gcc-ar.c (main): Don't check for execute bits for the plugin.
12691
8875e939
RR
126922012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12693
12694 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
12695 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
12696 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
12697 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
12698 (USE_LOAD_POST_INCREMENT): Define.
12699 (USE_LOAD_PRE_INCREMENT): Define.
12700 (USE_LOAD_POST_DECREMENT): Define.
12701 (USE_LOAD_PRE_DECREMENT): Define.
12702 (USE_STORE_PRE_DECREMENT): Define.
12703 (USE_STORE_PRE_INCREMENT): Define.
12704 (USE_STORE_POST_DECREMENT): Define.
12705 (USE_STORE_POST_INCREMENT): Define.
12706 (arm_auto_incmodes): Add enumeration.
12707 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
12708 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
12709
cc603b40
JJ
127102012-05-09 Jakub Jelinek <jakub@redhat.com>
12711
12712 PR tree-optimization/53226
12713 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
12714 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
12715 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
12716 doesn't need to be revisited, look for earliest stmt with
12717 !gimple_plf (stmt, GF_PLF_1) if something changed.
12718
97e574d8
TG
127192012-05-09 Terry Guo <terry.guo@arm.com>
12720
12721 * genmultilib: Update copyright dates.
12722 * doc/fragments.texi: Ditto.
12723
43661dc4
TG
127242012-05-09 Terry Guo <terry.guo@arm.com>
12725
12726 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
12727 * genmultilib (MULTILIB_REQUIRED): New.
12728 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
12729
368117e8
RG
127302012-05-09 Richard Guenther <rguenther@suse.de>
12731
12732 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12733 (vect_do_peeling_for_loop_bound): Likewise.
12734 (vect_do_peeling_for_alignment): Likewise.
12735 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
12736 (vect_do_peeling_for_loop_bound): Get check_profitability and
12737 threshold as parameters.
12738 (vect_do_peeling_for_alignment): Likewise.
12739 (vect_loop_versioning): Likewise.
12740 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
12741 and threshold here. Control where to put the check here.
12742
372d6395
RS
127432012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
12744
12745 PR middle-end/53249
12746 * dwarf2out.h (get_address_mode): Move declaration to...
12747 * rtl.h: ...here.
12748 * dwarf2out.c (get_address_mode): Move definition to...
12749 * rtlanal.c: ...here.
12750 * var-tracking.c (get_address_mode): Delete.
12751 * combine.c (find_split_point): Use get_address_mode instead of
12752 targetm.addr_space.address_mode.
12753 * cselib.c (cselib_record_sets): Likewise.
12754 * dse.c (canon_address, record_store): Likewise.
12755 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12756 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
12757 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
12758 (expand_expr_real_1): Likewise.
12759 * ifcvt.c (noce_try_cmove_arith): Likewise.
12760 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
12761 * reload.c (find_reloads): Likewise.
12762 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
12763 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
12764
45d05c5f
MR
127652012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
12766
12767 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
12768 information from the instruction produced.
12769
2af27301
RG
127702012-05-09 Richard Guenther <rguenther@suse.de>
12771
12772 * stor-layout.c (bit_from_pos): Document.
12773 (byte_from_pos): Likewise. Optimize.
12774 (pos_from_bit): Likewise.
12775 (normalize_offset): Use pos_from_bit instead of replicating it.
12776
570a374a
AM
127772012-05-09 Alan Modra <amodra@gmail.com>
12778
12779 PR target/53271
12780 * config/rs6000/rs6000.c (gen_frame_set): New function.
12781 (gen_frame_load, gen_frame_store): New functions.
12782 (rs6000_savres_rtx): Use the above.
12783 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
12784 Correct mode used for CR2 in save/restore_world patterns.
12785 Don't emit instructions for eh_return frame unwind reg info.
12786
0d6bf48c
JH
127872012-05-08 Jan Hubicka <jh@suse.cz>
12788
12789 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
12790 with VALUE_EXPR.
12791 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
12792 are removable.
12793 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
12794 need to wrapup.
12795 (compile_file): Do not output variables.
12796 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
12797 output it.
12798 * langhooks.c: Include timevar.h
12799 (write_global_declarations): Finalize compilation unit after wrapup;
12800 set timevars correctly.
12801 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
12802 not to be added to varpool.
12803 * varpool.c (varpool_assemble_decl): Sanity check that we are called
12804 only on cases where it makes sense; skip constant pool and value expr
12805 vars.
12806
36e0c0a5
DM
128072012-05-08 David S. Miller <davem@davemloft.net>
12808
12809 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
12810 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
12811 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
12812
b3c9bb62
RS
128132012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
12814
12815 PR rtl-optimization/53278
12816 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
12817 speed_p code from earlier patch.
12818
ef402c65
OE
128192012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
12820
12821 PR target/51244
12822 * config/sh/sh.md (*branch_true, *branch_false): New insns.
12823
20f9034b 128242012-05-08 Teresa Johnson <tejohnson@google.com>
4e8ee9cb
TJ
12825
12826 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
12827 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
12828
66a20fc2
JH
128292012-05-08 Jan Hubicka <jh@suse.cz>
12830
12831 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
12832 (cgraph_create_node_1): Rename to ...
12833 (cgraph_create_empty_node): ... this one; export.
12834 (cgraph_create_node): Update.
12835 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
12836 (cgraph_create_edge_including_clones): Likewise.
12837 (cgraph_find_replacement_node): Likewise.
12838 (cgraph_clone_edge): Likewise.
12839 (cgraph_clone_node): Likewise.
12840 (clone_function_name): Likewise.
12841 (cgraph_create_virtual_clone): Likewise.
12842 (cgraph_remove_node_and_inline_clones): Likewise.
20f9034b 12843 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
66a20fc2
JH
12844 * cgraph.h: Reorder declarations so they match file of origin.
12845 (cgraph_create_empty_node): Declare.
12846 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
12847 (cgraph_copy_node_for_versioning): Likewise.
12848 (cgraph_function_versioning): Likewise.
12849 (cgraph_materialize_clone): Likewise.
12850 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
12851 (cgraph_materialize_all_clones): Likewise.
12852 * cgraphclones.c: New file.
12853 * Makefile.in: Update for cgraphclones.
12854
3f3dcbb3
UB
128552012-05-08 Uros Bizjak <ubizjak@gmail.com>
12856
aedfe0a8 12857 PR target/53176
3f3dcbb3
UB
12858 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
12859 (ix86_rtx_costs): Handle SET.
12860
bcc708fc
MM
128612012-05-08 Michael Matz <matz@suse.de>
12862
12863 * basic-block.h (struct rtl_bb_info): Remove visited member and
12864 move head_ member to ...
12865 (struct basic_block_def.basic_block_il_dependent): ... the new
12866 member x, replacing but containing old member rtl.
12867 (enum bb_flags): New BB_VISITED flag.
12868 (BB_HEADER, BB_FOOTER): New macros.
12869
12870 * jump.c (mark_all_labels): Adjust.
12871 * cfgcleanup.c (try_optimize_cfg): Adjust.
12872 * cfglayout.c (record_effective_endpoints): Adjust.
12873 (relink_block_chain): Ditto (and don't fiddle with visited).
12874 (fixup_reorder_chain): Adjust.
12875 (fixup_fallthru_exit_predecessor): Ditto.
12876 (cfg_layout_duplicate_bb): Ditto.
12877 * combine.c (update_cfg_for_uncondjump): Adjust.
3f3dcbb3 12878 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
bcc708fc
MM
12879 (bb_visited_trace): New accessor.
12880 (mark_bb_visited): Move in front.
12881 (rotate_loop): Use bb_visited_trace.
12882 (find_traces_1_round): Ditto.
12883 (emit_barrier_after): Ditto.
12884 (copy_bb): Ditto, and initialize visited on resize.
12885 (reorder_basic_blocks): Initize visited member.
12886 (duplicate_computed_gotos): Clear bb flags at start, use
12887 BB_VISITED flags.
12888
12889 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
12890 (rtl_verify_flow_info_1): Ditto.
12891 (cfg_layout_split_block): Ditto.
12892 (cfg_layout_delete_block): Ditto.
12893 (cfg_layout_merge_blocks): Ditto.
12894 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
12895
b3374f14
HPN
128962012-05-08 Hans-Peter Nilsson <hp@axis.com>
12897
12898 PR target/53272
12899 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
12900 when a constant source operand matches an "I" constraint, the "no
12901 CC0 change" applies to a register-destination only, not a
12902 strict_low_part-destination.
12903
ad9fc55a
RG
129042012-05-08 Richard Guenther <rguenther@suse.de>
12905
12906 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
12907 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
12908
04d170d2
GJL
129092012-05-08 Georg-Johann Lay <avr@gjlay.de>
12910
12911 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
12912
12913 * doc/avr-mmcu.texi: New auto-generated file.
12914 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
12915 to document all valid -mmcu= arguments.
12916
12917 * config/avr/avr.h (arch_info_s): New struct definition.
12918 * config/avr/avr-devices.c (avr_texinfo): New variable.
12919 * config/avr/gen-avr-mmcu-texi.c: New file.
12920 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
12921
9c04723a
DC
129222012-05-08 Dehao Chen <dehao@google.com>
12923
99b113f9
DC
12924 * predict.c (find_qualified_ssa_name): New.
12925 (find_ssa_name_in_expr): New.
12926 (find_ssa_name_in_assign_stmt): New.
12927 (is_comparison_with_loop_invariant_p): New.
12928 (is_bound_expr_similar): New.
12929 (predict_iv_comparison): New.
9c04723a
DC
12930 (predict_loops): Add heuristic for loop-nested branches that compare an
12931 induction variable to a loop bound variable.
99b113f9 12932 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
9c04723a 12933
536b0cb7
UB
129342012-05-08 Uros Bizjak <ubizjak@gmail.com>
12935
12936 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
12937 TARGET_BDVER2 defines where appropriate.
12938
36d21883
EB
129392012-05-07 Eric Botcazou <ebotcazou@adacore.com>
12940
12941 * configure.ac (PLUGIN_LD): Rename into...
12942 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
12943 * config.in: Regenerate.
12944 * configure: Likewise.
12945 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
12946
b48e22b2
EB
129472012-05-07 Eric Botcazou <ebotcazou@adacore.com>
12948
12949 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
12950 computation using the precision of the index type.
12951 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
12952 (fold_array_ctor_reference): Do index computations in the index type.
12953
129542012-05-07 Georg-Johann Lay <avr@gjlay.de>
55796e90
GJL
12955
12956 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
12957 down to plus_constant.
12958 (expand_epilogue): Ditto.
12959
8bb91f49
SB
129602012-05-07 Steven Bosscher <steven@gcc.gnu.org>
12961
12962 * postreload.c (reload_cse_regs): Make static.
12963 * reload.h (reload_cse_regs): Remove prototype.
12964
e220a047
RH
129652012-05-07 Richard Henderson <rth@redhat.com>
12966
12967 * config/alpha/alpha.md (clear_cache): New pattern.
12968
5be1632b
SB
129692012-05-07 Steven Bosscher <steven@gcc.gnu.org>
12970
12971 PR middle-end/53245
12972 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
12973 is folded to a type boundary value, verify that the resulting case
12974 label is still a care range.
12975
60197adb
UB
129762012-05-07 Uros Bizjak <ubizjak@gmail.com>
12977
12978 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
12979 only for TARGET_GENERIC, when not optimizing for size.
12980 (*ffs<mode>_1): Ditto.
12981
198fc9f1
SB
129822012-05-07 Steven Bosscher <steven@gcc.gnu.org>
12983
12984 * tree-cfg.c (verify_gimple_switch): Tighten checks.
12985
7a04f01c
JJ
129862012-05-07 Jakub Jelinek <jakub@redhat.com>
12987
12988 PR tree-optimization/53239
536b0cb7
UB
12989 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
12990 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
7a04f01c 12991
fb7c3cc8
RB
129922012-05-07 Richard Guenther <rguenther@suse.de>
12993
12994 PR tree-optimization/53195
12995 * tree-inline.c (setup_one_parameter): Properly add referenced
12996 vars from the parameters new known value.
12997
75647ade
SB
129982012-05-07 Steven Bosscher <steven@gcc.gnu.org>
12999
13000 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
13001 (sched_branch_type): Remove.
13002 (m68k_sched_md_init_global): Don't allocate it.
13003 (m68k_sched_md_finish_global): Don't free it.
13004 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
fb7c3cc8
RB
13005 * config/m68k/m68k.md: Set the type of insns using
13006 m68k_sched_branch_type to bcc directly.
75647ade 13007
fe551ce4
RO
130082012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13009
13010 * config/sol2.c (solaris_override_options): New function.
13011 * config/sol2-protos.h (solaris_override_options): Declare.
13012 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
13013
1e373390
RG
130142012-05-07 Richard Guenther <rguenther@suse.de>
13015
13016 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
13017 whether we failed to compute data dependences.
13018 (loop_prefetch_arrays): Fail if we failed.
13019
19010925
UB
130202012-05-07 Uros Bizjak <ubizjak@gmail.com>
13021 Paolo Bonzini <bonzini@gnu.org>
13022
13023 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
13024 Emit bsf when optimizing for size.
13025 (*ffs<mode>_1): Ditto.
13026
0345d1dd
OE
130272012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
13028
13029 PR target/53250
13030 * config/sh/sh.c (sh_rtx_costs): Handle SET.
13031
69f088a7
UB
130322012-05-06 Uros Bizjak <ubizjak@gmail.com>
13033
13034 PR target/53227
13035 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
13036 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
13037 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
13038 (bswapsi2): Ditto.
13039 (*bswapdi2_doubleword): New insn pattern.
13040 (*bswap<mode>2): Rename from *bswap<mode>2_1.
13041
91000c66
RS
130422012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13043
13044 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
13045 (mips_set_reg_reg_cost): Likewise.
13046 (mips_rtx_costs): Handle SET.
13047
69523a7c
RS
130482012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13049
13050 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
13051 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
13052 to compute the cost of moves. Set the mode of the target register.
13053
0a81f074
RS
130542012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
13055
13056 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
13057 plus_constant function.
13058 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
13059 that the mode is sensible.
13060 (use_anchored_address, round_push, allocate_dynamic_stack_space)
13061 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
13062 plus_constant.
13063
13064 * alias.c (canon_rtx): Likewise.
13065 (init_alias_analysis): Likewise.
13066 * builtins.c (expand_builtin_return_addr)
13067 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
13068 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
13069 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
13070 (expand_builtin_stpcpy): Likewise.
13071 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
13072 (compute_argument_addresses, internal_arg_pointer_based_exp)
13073 (expand_call, emit_library_call_value_1): Likewise.
13074 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
13075 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
13076 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
13077 * cse.c (insert_const_anchor, find_reg_offset_for_const)
13078 (use_related_value, fold_rtx): Likewise.
13079 * cselib.c (cselib_subst_to_values): Likewise.
13080 * dse.c (record_store, check_mem_read_rtx): Likewise.
13081 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
13082 * emit-rtl.c (adjust_address_1): Likewise.
13083 * except.c (sjlj_emit_function_enter)
13084 (expand_builtin_extract_return_addr)
13085 (expand_builtin_frob_return_addr): Likewise.
13086 * expmed.c (expand_divmod): Likewise.
13087 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
13088 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
13089 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
13090 * function.c (assign_stack_local_1)
13091 (instantiate_virtual_regs_in_rtx): Likewise.
13092 * optabs.c (prepare_cmp_insn): Likewise.
13093 * recog.c (offsettable_address_addr_space_p): Likewise.
13094 * reload.c (find_reloads_address, form_sum)
13095 (find_reloads_subreg_address): Likewise.
13096 * reload1.c (init_reload, eliminate_regs_1)
13097 (eliminate_regs_in_insn): Likewise.
13098 * simplify-rtx.c (simplify_unary_operation_1)
13099 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
13100 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
13101 (vt_add_function_parameter): Likewise.
13102
13103 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
13104 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
13105 * config/alpha/alpha.c (alpha_legitimize_address_1)
13106 (get_unaligned_address, alpha_expand_unaligned_load)
13107 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
13108 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
13109 (alpha_expand_builtin_establish_vms_condition_handler)
13110 (alpha_setup_incoming_varargs, emit_frame_store_1)
13111 (alpha_expand_prologue, alpha_expand_epilogue)
13112 (alpha_use_linkage): Likewise.
13113 * config/alpha/alpha.md: Likewise.
13114
13115 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
13116 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
13117 (thumb_legitimize_address, arm_gen_load_multiple_1)
13118 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
13119 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
13120 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
13121 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
13122 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
13123 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
13124 (thumb_expand_movmemqi, arm_set_return_address)
13125 (thumb_set_return_address): Likewise.
13126 * config/arm/arm.md: Likewise.
13127
13128 * config/avr/avr.c (avr_incoming_return_addr_rtx)
13129 (avr_prologue_setup_frame, expand_epilogue)
13130 (avr_const_address_lo16): Likewise.
13131
13132 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
13133 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
13134 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
13135 (bfin_output_mi_thunk): Likewise.
13136
13137 * config/c6x/c6x.c (c6x_initialize_trampoline)
13138 (c6x_output_mi_thunk): Likewise.
13139
13140 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
13141 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
13142
13143 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
13144 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
13145 (cris_emit_movem_store, cris_trampoline_init): Likewise.
13146 * config/cris/cris.md: Likewise.
13147
13148 * config/darwin.c (machopic_indirect_data_reference)
13149 (machopic_legitimize_pic_address): Likewise.
13150
13151 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
13152 (epiphany_expand_prologue, epiphany_expand_epilogue)
13153 (epiphany_trampoline_init): Likewise.
13154 * config/epiphany/epiphany.md: Likewise.
13155
13156 * config/fr30/fr30.c (fr30_move_double): Likewise.
13157
13158 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
13159 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
13160 (frv_index_memory, unspec_got_name, frv_find_base_term)
13161 (frv_output_dwarf_dtprel): Likewise.
13162
13163 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
13164 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
13165
13166 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
13167 * config/i386/i386.c (setup_incoming_varargs_64)
13168 (setup_incoming_varargs_ms_64, choose_baseaddr)
13169 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
13170 (ix86_emit_probe_stack_range, ix86_expand_prologue)
13171 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
13172 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
13173 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
13174 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
13175 (x86_output_mi_thunk): Likewise.
13176 * config/i386/i386.md: Likewise.
13177
13178 * config/ia64/ia64.c (ia64_expand_load_address)
13179 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
13180 (do_spill, ia64_trampoline_init): Likewise.
13181
13182 * config/iq2000/iq2000.c (iq2000_va_start)
13183 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
13184 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
13185 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
13186
13187 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13188
13189 * config/m32c/m32c.c (m32c_return_addr_rtx)
13190 (m32c_expand_insv): Likewise.
13191
13192 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
13193 (m32r_legitimize_pic_address, m32r_print_operand)
13194 (m32r_print_operand_address): Likewise.
13195
13196 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
13197 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
13198 (EH_RETURN_HANDLER_RTX): Likewise.
13199 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
13200 (m68k_expand_epilogue, legitimize_pic_address)
13201 (m68k_output_mi_thunk): Likewise.
13202 * config/m68k/m68k.md: Likewise.
13203
13204 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
13205 (mcore_expand_epilog): Likewise.
13206 * config/mcore/mcore.md: Likewise.
13207
13208 * config/mep/mep.c (mep_allocate_initial_value)
13209 (mep_expand_prologue, mep_expand_epilogue): Likewise.
13210
13211 * config/microblaze/microblaze.c (double_memory_operand)
13212 (microblaze_block_move_loop): Likewise.
13213
13214 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
13215 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
13216 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
13217 (mips_expand_prologue, mips_epilogue_set_cfa)
13218 (mips_expand_epilogue): Likewise.
13219 * config/mips/mips.md: Likewise.
13220
13221 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
13222 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
13223
13224 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
13225 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
13226
13227 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
13228 (EH_RETURN_HANDLER_RTX): Likewise.
13229 * config/moxie/moxie.c (moxie_static_chain): Likewise.
13230
13231 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
13232 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
13233 (pa_return_addr_rtx, hppa_builtin_saveregs)
13234 (pa_trampoline_init): Likewise.
13235 * config/pa/pa.md: Likewise.
13236
13237 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
13238
13239 * config/picochip/picochip.c (picochip_static_chain): Likewise.
13240
13241 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
13242 * config/rs6000/rs6000.c (rs6000_legitimize_address)
13243 (setup_incoming_varargs, print_operand, rs6000_return_addr)
13244 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
13245 (rs6000_emit_epilogue)
13246 (rs6000_machopic_legitimize_pic_address): Likewise.
13247
13248 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13249
13250 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
13251 (DYNAMIC_CHAIN_ADDRESS): Likewise.
13252 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
13253 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
13254 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
13255 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
13256 (s390_emit_epilogue, s390_function_profiler): Likewise.
13257 * config/s390/s390.md: Likewise.
13258
13259 * config/score/score.c (score_add_offset, score_prologue): Likewise.
13260
13261 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
13262 (sh_output_mi_thunk): Likewise.
13263 * config/sh/sh.md: Likewise.
13264
13265 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
13266 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
13267 * config/sparc/sparc.c (sparc_legitimize_pic_address)
13268 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
13269 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
13270 (emit_and_preserve): Likewise.
13271 * config/sparc/sparc.md: Likewise.
13272
13273 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
13274 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
13275 (spu_setup_incoming_varargs, ea_load_store_inline)
13276 (spu_expand_load): Likewise.
13277
13278 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
13279 (combine_bnp): Likewise.
13280
13281 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
13282 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
13283 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
13284
13285 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
13286 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
13287 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
13288
13289 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
13290 * config/v850/v850.md: Likewise.
13291
13292 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
13293 (EH_RETURN_HANDLER_RTX): Likewise.
13294 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
13295 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
13296 (print_operand_address, vax_trampoline_init): Likewise.
13297
13298 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
13299 (xtensa_function_value_regno_p): Likewise.
13300
683c600b
AP
133012012-05-04 Andrew Pinski <apinski@cavium.com>
13302
13303 * expr.c (get_def_for_expr_class): New function.
13304 (convert_tree_comp_to_rtx): New function.
13305 (expand_cond_expr_using_cmove): New function.
13306 (expand_expr_real_2 <case COND_EXPR>): Call
13307 expand_cond_expr_using_cmove first and return if it succeeds.
13308 Remove the check for HAVE_conditional_move since we should have
13309 already converted it to a conditional move.
13310 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
13311 modes of DImode for 32bits and TImode.
13312
41723253
SB
133132012-05-04 Steven Bosscher <steven@gcc.gnu.org>
13314
13315 PR other/29442
13316 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
13317 (print_md_ptr_loc, print_c_condition): Use them.
13318 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
13319 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
13320 attr_file, dfa_file, latency_file): New global variables.
13321 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
13322 write_upcase, write_indent, write_length_unit_log, write_test_expr,
13323 write_attr_get, write_insn_cases, write_eligible_delay,
13324 write_const_num_delay_slots): Accept FILE pointer and toss it around.
13325 Update all callers.
13326 (write_header, open_outfile, handle_arg): New funcions.
13327 (make_automaton_attrs): Write prototypes as extern to the output
13328 files.
13329 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
13330 names from the command line. Open the output files and write out
13331 internal functions for DFA functions to dfa_file_name, insn latency
13332 functions to latency_file_name, and everything else to attr_file.
13333 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
13334 (BACKEND): Build libbackend first.
13335 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
13336 (.PRECIOUS): Likewise.
13337 (insn-dfatab.o): New rule.
13338 (insn-latencytab.o): New rule.
13339 (simple_rtl_generated_c): Do not include insn-attrtab.c.
13340 (s-attrtab): New rule.
13341
593dbe11
SB
133422012-05-04 Steven Bosscher <steven@gcc.gnu.org>
13343
13344 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
13345 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
13346 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
13347 * reorg.c (get_jump_flags): Do not set the removed flags.
13348
81e7aa8e
SB
13349 * doc/md.texi (attr_flag): Update for abovementioned changes.
13350
cef31f9c
UB
133512012-05-04 Uros Bizjak <ubizjak@gmail.com>
13352
13353 PR target/53228
13354 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
13355 (TARGET_CMOV): Rename from TARGET_CMOVE.
13356 (TARGET_CMOVE): New define.
13357 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
13358 Do not set TARGET_CMOVE here.
13359
33d11b97
DS
133602012-05-04 Dodji Seketeli <dodji@redhat.com>
13361
13362 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
13363 * opts.c (finish_options): Activate -Wunused-local-typedefs if
20f9034b 13364 -Wunused is activated.
33d11b97
DS
13365 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
13366
1eae36f0
AK
133672012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13368
13369 * config/s390/s390.md (*movmem_short, *clrmem_short)
13370 (*cmpmem_short): Move the mode check from the insn condition to
13371 the match_scratch.
13372
33018845
UW
133732012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
13374
13375 PR tree-optimization/52633
13376 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
13377 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
13378 (vect_recog_over_widening_pattern): Remove handling of code that was
13379 already detected as over-widening pattern. Remove special handling
13380 of "unsigned" cases. Instead, support general case of conversion
13381 of the shift result to another type.
13382
9a7a4398
UW
133832012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
13384
13385 * tree-vect-patterns.c (vect_single_imm_use): New function.
13386 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
13387 (vect_recog_over_widening_pattern): Likewise.
13388 (vect_recog_widen_shift_pattern): Likewise.
13389
f71cf56a
UW
133902012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
13391
13392 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
13393 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
13394 (vect_recog_widen_mult_pattern): Likewise.
13395 (vect_operation_fits_smaller_type): Likewise.
13396 (vect_recog_over_widening_pattern): Likewise.
13397 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
13398
8bb50e5c
RG
133992012-05-04 Richard Guenther <rguenther@suse.de>
13400
13401 PR lto/50602
13402 * lto-wrapper.c (merge_and_complain): Complain about mismatches
13403 of -freg-struct-return and -fpcc-struct-return.
13404 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
13405 from the input file options and ignore those from the link
13406 command line.
13407
efe7068b
RG
134082012-05-04 Richard Guenther <rguenther@suse.de>
13409
13410 PR tree-optimization/53168
13411 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
13412 memory reads when the result is a constant we can pun.
13413
1d67dde8
RB
134142012-05-04 Richard Guenther <rguenther@suse.de>
13415
13416 * common.opt (flto-report): Do not mark as Optimization.
13417
a2f2d218
EB
134182012-05-04 Eric Botcazou <ebotcazou@adacore.com>
13419
13420 PR target/48496
13421 * recog.c (constrain_operands): If extra constraints are present, also
13422 accept pseudo-registers with equivalent memory locations during reload.
13423
9178a345
OH
134242012-05-04 Olivier Hainque <hainque@adacore.com>
13425
13426 * collect2.c (may_unlink_output_file): New global.
13427 (maybe_unlink): Honor it.
13428 * collect2.h: Add extern for it.
13429 * tlink.c (do_tlink): Set it to true if the link succeeded.
13430
b50ff8bb
OH
134312012-05-04 Olivier Hainque <hainque@adacore.com>
13432
13433 * gcc.c (eval_spec_function): Finalize/restore the current string
13434 obstack state as part of the context push/pop operations.
13435
73292fcf
BC
134362012-05-04 Bin Cheng <bin.cheng@arm.com>
13437
13438 PR rtl-optimization/52804
13439 * reload1.c (reload_reg_reaches_end_p): Check whether successor
13440 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
13441 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
13442 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
13443 RELOAD_FOR_OUTADDR_ADDRESS.
13444
24454141
MLI
134452012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
13446
13447 PR c++/24985
13448 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
13449 for macro expansion.
13450
0c3641b0
MLI
134512012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13452
13453 * flags.h (flag_permissive): Do not declare.
13454 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
13455 option specially.
13456 * toplev.c (flag_permissive): Do not define.
13457 * c-tree.h (system_header_p): Delete unused.
13458
d333c3eb
DM
134592012-05-03 David S. Miller <davem@davemloft.net>
13460
13461 PR target/52684
13462 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
13463 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
13464 (sparc_emit_float_lib_cmp): Likewise.
13465
65d512d1
MM
134662012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13467
13468 PR target/53199
13469 * config/rs6000/rs6000.md (bswapdi splitters): If
13470 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
13471 default) is used, generate an alternate sequence that does not
13472 depend on using indexed addressing.
13473
88f4f86f
JM
134742012-05-03 Jason Merrill <jason@redhat.com>
13475
13476 * gengtype.c (write_types): Fix warning message.
13477 (write_local): Likewise.
13478
05688bf7
JM
134792012-05-02 Jason Merrill <jason@redhat.com>
13480
13481 * dwarf2out.c (struct external_ref, build_local_stub): New.
13482 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
13483 (optimize_external_refs, optimize_external_refs_1): New.
13484 (change_AT_die_ref): New.
13485 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
13486 (build_abbrev_table): Take the external refs hashtable.
13487 (output_comp_unit): Get it from optimize_external_refs and pass it in.
13488
f95f017c
JH
134892012-05-03 Jan Hubicka <jh@suse.cz>
13490
13491 PR middle-end/53093
13492 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
13493
c2b6c111
JH
134942012-05-03 Jan Hubicka <jh@suse.cz>
13495
13496 PR middle-end/53106
13497 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
13498
d8acd563
JM
134992012-05-03 Jason Merrill <jason@redhat.com>
13500
13501 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
13502 use_debug_types to discriminate the die_id union.
13503 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
13504 (build_abbrev_table, output_die): Likewise.
13505 (prune_unused_types_walk_attribs): Likewise.
13506 (generate_type_signature, copy_declaration_context): Set it.
13507 (remove_child_or_replace_with_skeleton): Set it.
13508 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
13509 check use_debug_types.
13510 (dwarf2out_finish): Do break_out_includes after .debug_types.
13511
0fd0752e
JM
135122012-05-03 Jason Merrill <jason@redhat.com>
13513
13514 * dwarf2out.c (modified_type_die): Use scope_die_for.
13515 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
13516 (uses_local_type_r, uses_local_type): New.
13517 (scope_die_for): Keep a type that uses a local type in local scope.
13518 Use get_context_die for namespace and type scope.
13519
63aaf27c
JM
135202012-05-03 Jason Merrill <jason@redhat.com>
13521
13522 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
13523 pc thunk.
13524 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
13525 (dwarf2out_finish): Likewise.
13526
644ffefd
MJ
135272012-05-03 Martin Jambor <mjambor@suse.cz>
13528
13529 * builtins.c (get_object_alignment_1): Return whether we can determine
13530 the alignment or conservatively assume byte alignment. Return the
13531 alignment by reference. Use get_pointer_alignment_1 for dereference
13532 alignment.
13533 (get_pointer_alignment_1): Return whether we can determine the
13534 alignment or conservatively assume byte alignment. Return the
13535 alignment by reference. Use get_ptr_info_alignment to get SSA name
13536 alignment.
13537 (get_object_alignment): Update call to get_object_alignment_1.
13538 (get_object_or_type_alignment): Likewise, fall back to type alignment
13539 only when it returned false.
13540 (get_pointer_alignment): Update call to get_pointer_alignment_1.
13541 * fold-const.c (get_pointer_modulus_and_residue): Update call to
13542 get_object_alignment_1.
13543 * ipa-prop.c (ipa_modify_call_arguments): Update call to
13544 get_pointer_alignment_1.
13545 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
13546 of MEM_REF or TARGET_MEM_REF only when it returns false.
13547 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
13548 get_object_alignment_1.
13549 (ccp_finalize): Use set_ptr_info_alignment.
13550 * tree.h (get_object_alignment_1): Update declaration.
13551 (get_pointer_alignment_1): Likewise.
13552 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
13553 (dump_gimple_stmt): Likewise.
13554 * tree-flow.h (ptr_info_def): Updated comments of fields align and
13555 misalign.
13556 (get_ptr_info_alignment): Declared.
13557 (mark_ptr_info_alignment_unknown): Likewise.
13558 (set_ptr_info_alignment): Likewise.
13559 (adjust_ptr_info_misalignment): Likewise.
13560 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
13561 and set alignment of SSA names.
13562 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
13563 mark_ptr_info_alignment_unknown.
13564 * tree-ssanames.c (get_ptr_info_alignment): New function.
13565 (mark_ptr_info_alignment_unknown): Likewise.
13566 (set_ptr_info_alignment): Likewise.
13567 (adjust_ptr_info_misalignment): Likewise.
13568 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
13569 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13570 Likewise.
13571 (bump_vector_ptr): Likewise.
13572 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
13573 (vectorizable_store): Likewise.
13574 (vectorizable_load): Likewise.
13575
3e8b732e
MM
135762012-05-03 Michael Matz <matz@suse.de>
13577
13578 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
13579 in front of basic_block_def.
13580 (struct basic_block_def): Make il.gimple the full struct, not a
13581 pointer.
13582 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
13583
cef31f9c 13584 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
3e8b732e
MM
13585 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
13586 NULL il.gimple, which can't happen anymore.
13587 * gimple.h (bb_seq): il.gimple can't be NULL.
13588 (bb_seq_add): Ditto.
13589 (set_bb_seq): Adjust.
13590 (gsi_start_bb, gsi_last_bb): Tidy.
13591 * lto-streamer-in.c (make_new_block): Don't zero members that
13592 are zeroed already, don't allocate a gimple_bb_info.
13593 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
13594 (remove_bb): Clear all il.gimple members.
13595 (gimple_verify_flow_info): Adjust for flat il.gimple.
13596 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
13597
13598 * coretypes.h (const_gimple_seq): Remove typedef.
13599 * gimple.h (gimple_seq_first): Take gimple_seq.
13600 (gimple_seq_first_stmt): Ditto.
13601 (gimple_seq_last): Ditto.
13602 (gimple_seq_last_stmt): Ditto.
13603 (gimple_seq_empty_p): Ditto.
13604
bea966c2
RG
136052012-05-03 Richard Guenther <rguenther@suse.de>
13606
13607 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
13608 operations.
cef31f9c 13609 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
bea966c2
RG
13610 (compute_avail): Do not add possibly trapping operations to
13611 EXP_GEN if they might not be executed in the block.
13612
1cbdef51
UB
136132012-05-03 Uros Bizjak <ubizjak@gmail.com>
13614
13615 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
13616
6ab1ab14
SB
136172012-05-03 Steven Bosscher <steven@gcc.gnu.org>
13618
13619 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
13620 information as early as possible. Update dominance info instead of
13621 discarding it.
13622
19372838
RG
136232012-05-03 Richard Guenther <rguenther@suse.de>
13624
13625 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
13626 (union_contains_value): Remove.
13627 (vro_valid_in_sets): Likewise.
13628 (op_valid_in_sets): New function.
13629 (valid_in_sets): Use op_valid_in_sets.
13630 (insert_into_preds_of_block): Move dumping ...
13631 (do_regular_insertion): ... here.
13632 (do_partial_partial_insertion): ... and here. Dump that
13633 we've found a partial partial redundancy.
13634 (insert): Dump the current insert iteration.
13635
d5becc11
JJ
136362012-05-03 Jakub Jelinek <jakub@redhat.com>
13637
68d23306
JJ
13638 PR plugins/53126
13639 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
13640 append program name to it and pass that as first argument
13641 to make_relative_prefix. Always pass standard_libexec_prefix
13642 as last argument to make_relative_prefix. If
13643 make_relative_prefix returns NULL, fall back to
13644 standard_libexec_prefix.
13645
273ccb6d
JJ
13646 PR debug/53174
13647 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
13648 removed.
13649
d40a89e7
JJ
13650 PR target/53187
13651 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
13652 mode, return that mode.
13653
d5becc11
JJ
13654 PR target/53194
13655 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
13656 define __ATOMIC_HLE_* macros here.
13657 (ix86_target_macros): But here, using cpp_define_formatted.
13658
9179ed9d
RG
136592012-05-03 Richard Guenther <rguenther@suse.de>
13660
13661 PR tree-optimization/53144
13662 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
13663 Rename to ...
13664 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
13665 with SSA name values.
13666 (vn_reference_lookup_3): Adjust callers.
13667
d130f146
GG
136682012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13669
13670 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
13671 has_fma4 for AMD processors with both fma3 and fma4 support.
13672
38d7f26e
KY
136732012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
13674
13675 PR target/53201
13676 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
13677 "-mno-hle".
13678
0285a18e
MM
136792012-05-03 Michael Matz <matz@suse.de>
13680
13681 PR bootstrap/53197
1cbdef51 13682 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
0285a18e
MM
13683 (dse_enter_block): Properly iterate the whole sequence even
13684 if the last statement was removed.
13685
daccad6d
SB
136862012-05-02 Steven Bosscher <steven@gcc.gnu.org>
13687
13688 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
13689 unset flag_jump_tables.
13690 * stmt.c (expand_case): Remove special flag_pic case conditional
13691 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
13692
aefa216b
UW
136932012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13694
13695 * common/config/s390/s390-common.c (s390_option_optimization_table):
13696 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
13697 default when optimizing.
13698
d282264e
MJ
136992012-05-02 Martin Jambor <mjambor@suse.cz>
13700
13701 PR lto/52605
13702 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
13703 of a variable when the contect is a function.
13704
355a7673
MM
137052012-05-02 Michael Matz <matz@suse.de>
13706
13707 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
13708 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
13709 (const_gimple_seq_node): Remove.
13710 (gimple_seq_node): Typedef as gimple.
13711 (struct gimple_statement_base): Add next and prev members,
13712 adjust all WORD markers in using structs.
13713 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
13714 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
13715 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
13716 gimple are the same.
13717 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
13718 gimple_seq, adjust.
13719 (gimple_init_singleton): New function.
13720 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
13721 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
13722 (gsi_stmt): Adjust.
13723 (gsi_stmt_ptr): Remove.
13724 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
13725
13726 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
13727 again, adjust for above changes.
13728 (update_call_edge_frequencies): Adjust for above changes.
13729 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
13730 (gsi_insert_seq_nodes_after): Ditto.
13731 (gsi_split_seq_after): Ditto.
13732 (gsi_set_stmt): Ditto.
13733 (gsi_split_seq_before): Ditto.
13734 (gsi_remove): Ditto.
13735 (gsi_insert_seq_before_without_update): Don't free sequence.
13736 (gsi_insert_seq_after_without_update): Ditto.
13737 (gsi_replace): Assert some more invariants.
13738 (gsi_insert_before_without_update, gsi_insert_after_without_update):
13739 Tidy.
13740 (gsi_for_stmt): Don't search for stmt.
13741 (gsi_insert_on_edge_immediate): Tidy.
13742
13743 * gimple.c (gimple_alloc_k): Remove "sequences".
13744 (gimple_seq_cache): Remove.
13745 (gimple_alloc_stat): Make stmt a singleton sequence.
13746 (gimple_seq_alloc, gimple_seq_free): Remove.
13747 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
13748 (gimple_copy): Ditto.
13749 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
13750 create iterator from correct sequence.
13751 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
13752
137532012-05-02 Michael Matz <matz@suse.de>
13754
13755 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
13756 gimple_seq.
13757 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
13758 sequence, lazily allocate it.
13759 (bb_seq_addr): New function.
13760 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
13761 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
13762 (gsi_none): New function.
13763 (gsi_start_bb): Adjust.
13764 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
13765 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
13766 (gsi_last_bb): Adjust.
13767 (gsi_seq): Adjust.
13768 * tree-flow-inline.h (phi_nodes_ptr): New function.
13769
1cbdef51 13770 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
355a7673
MM
13771 datastructure and interface change.
13772 (gsi_insert_seq_before_without_update): Ditto.
13773 (gsi_insert_seq_nodes_after): Ditto.
13774 (gsi_insert_seq_after_without_update): Ditto.
13775 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
13776 (gsi_split_seq_before): Ditto.
13777 (gsi_start_phis): Adjust.
1cbdef51 13778 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
355a7673
MM
13779 (vect_transform_loop): Ditto.
13780 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
13781 gimple_seq_copy): Don't use gimple_seq_alloc.
13782 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
13783 (gimplify_seq_add_seq): Ditto.
13784 * lto-streamer-in.c (make_new_block): Ditto.
13785 * tree-cfg.c (create_bb): Ditto.
13786 * tree-sra.c (initialize_parameter_reductions): Ditto.
13787
137882012-05-02 Michael Matz <matz@suse.de>
13789
13790 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
13791 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
13792 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
13793 set_bb_seq): Move down to after gimple_statement_d definition.
13794
137952012-05-02 Michael Matz <matz@suse.de>
13796
13797 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
13798 gsi_replace_with_seq, instead of inserting itself.
13799 * gimple-iterator.c (gsi_replace_with_seq): New function.
13800 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
13801 iterator instead of statement, advance it.
13802 (ssa_forward_propagate_and_combine): Adjust call to above.
13803
138042012-05-02 Michael Matz <matz@suse.de>
13805
13806 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
13807 gimple_seq_alloc.
13808 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
13809 * tree-nested.c (walk_gimple_omp_for): Ditto.
13810 * trans-mem.c (lower_transaction): Ditto.
13811 * tree-eh.c (do_return_redirection): Ditto.
13812 (do_goto_redirection): Ditto.
13813 (lower_try_finally_switch): Ditto.
13814 * gimplify.c (gimplify_stmt): Ditto.
13815 (gimplify_scan_omp_clauses): Ditto.
13816 (gimplify_omp_for): Ditto.
13817 (gimplify_function_tree): Ditto.
13818 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
13819 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
13820 (mf_build_check_statement_for): Ditto.
13821 (mx_register_decls): Ditto.
13822 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
13823 and don't use itertors to append.
13824 (insert_stmts): Ditto.
13825 (insert_out_of_ssa_copy): Ditto.
13826 (insert_out_of_ssa_copy_on_edge): Ditto.
13827
138282012-05-02 Michael Matz <matz@suse.de>
13829
13830 * gimple.h (gimple_bind_body_ptr): New function.
13831 (gimple_bind_body): Use it.
13832 (gimple_catch_handler): Use gimple_catch_handler_ptr.
13833 (gimple_eh_filter_failure_ptr): New function.
13834 (gimple_eh_filter_failure): Use it.
13835 (gimple_eh_else_n_body_ptr): New function.
13836 (gimple_eh_else_n_body): Use it.
13837 (gimple_eh_else_e_body_ptr): New function.
13838 (gimple_eh_else_e_body): Use it.
13839 (gimple_try_eval_ptr): New function.
13840 (gimple_try_eval): Use it.
13841 (gimple_try_cleanup_ptr): New function.
13842 (gimple_try_cleanup): Use it.
13843 (gimple_wce_cleanup_ptr): New function.
13844 (gimple_wce_cleanup): Use it.
13845 (gimple_omp_body_ptr): New function.
13846 (gimple_omp_body): Use it.
13847 (gimple_omp_for_pre_body_ptr): New function.
13848 (gimple_omp_for_pre_body): Use it.
13849 (gimple_transaction_body_ptr): New function.
13850 (gimple_transaction_body): Use it.
13851 (gsi_split_seq_before): Adjust to return nothing and take pointer
13852 to sequence.
13853 (gsi_set_stmt): Declare.
13854 (gsi_replace_with_seq): Declare.
13855 (walk_gimple_seq_mod): Declare.
13856 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
13857
13858 * gimple-iterator.c (gsi_set_stmt): New function.
13859 (gsi_split_seq_before): Return new sequence via pointer argument.
13860 (gsi_replace): Use gsi_set_stmt.
13861
13862 * tree-ssa-loop-im.c (move_computations_stmt): First remove
13863 then insert stmt.
1cbdef51 13864 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
355a7673
MM
13865 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
13866 return new stmt.
13867 (reserve_phi_args_for_new_edge): Change call to above,
13868 use gsi_set_stmt.
13869
1cbdef51 13870 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
355a7673
MM
13871 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
13872 iterators. Adjust call to lower_omp.
13873 (lower_lastprivate_clauses): Adjust call to lower_omp.
13874 (lower_reduction_clauses): Ditto.
13875 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
13876 (lower_omp_sections): Don't explicitely count sequence length,
13877 nullify lowered bodies earlier, ensure stmts are part of only
13878 one sequence, adjust call to lower_omp.
13879 (lower_omp_single): Ensure stmts are part of only one sequence,
13880 adjust call to lower_omp.
13881 (lower_omp_master): Ditto.
13882 (lower_omp_ordered): Ditto.
13883 (lower_omp_critical): Ditto.
13884 (lower_omp_for): Ditto.
13885 (lower_omp_taskreg): Ditto, tidy.
13886 (lower_omp_1): Adjust calls to lower_omp.
13887 (execute_lower_omp): Ditto.
13888 (lower_omp): Adjust to take pointer to sequence.
13889 (diagnose_sb_2): Use walk_gimple_seq_mod.
13890 (diagnose_omp_structured_block_errors): Ditto and set possibly
13891 changed function body.
13892 * gimple-low.c (lower_function_body): Set function body after
13893 it stabilizes.
13894 (lower_sequence): Adjust to take pointer to sequence.
13895 (lower_omp_directive): Ensure stmt isn't put twice into the
13896 sequence, adjust call to lower_sequence.
13897 (lower_stmt): Adjust calls to lower_sequence.
13898 (lower_gimple_bind): Ditto.
13899 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
13900 * tree-nested.c (walk_body): Take pointer to sequence, use
13901 walk_gimple_seq_mod.
1cbdef51 13902 (walk_function): Adjust call to walk_body, set possibly changed body.
355a7673
MM
13903 (walk_gimple_omp_for): Adjust calls to walk_body.
13904 (convert_nonlocal_omp_clauses): Ditto.
13905 (convert_nonlocal_reference_stmt): Ditto.
13906 (convert_local_omp_clauses): Ditto.
13907 (convert_local_reference_stmt): Ditto.
13908 (convert_tramp_reference_stmt): Ditto.
13909 (convert_gimple_call): Ditto.
13910 (convert_nl_goto_reference): Use local iterator copy.
13911 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
13912 but taking pointer to sequence, ensure gsi_start is called with
13913 callers lvalue.
13914 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
13915 asserting that the sequence head didn't change.
13916 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
13917 walk_gimple_seq_mod.
13918 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
13919 (execute_lower_tm): Ditto, and set possibly changed body.
13920 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
13921 call gsi_start with that lvalue.
13922 (replace_goto_queue_stmt_list): Ditto.
13923 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
13924 (replace_goto_queue): Ditto.
13925 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
13926 (lower_try_finally_onedest): Ditto.
13927 (lower_try_finally_copy): Ditto.
13928 (lower_try_finally_switch): Ditto.
13929 (lower_try_finally): Ditto.
13930 (lower_eh_filter): Ditto.
13931 (lower_eh_must_not_throw): Ditto.
13932 (lower_cleanup): Ditto.
13933 (lower_eh_constructs_2): Ditto.
13934 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
13935 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
13936 set possibly changed body.
13937 (optimize_double_finally): Call gsi_start with lvalue.
13938
13939 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
13940 (gimple_split_block): Ditto.
13941 (gimple_merge_blocks): Use gsi_start_phis.
13942 (move_stmt_r): Use walk_gimple_seq_mod.
13943 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
13944 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
13945 (rebuild_cgraph_edges): Ditto.
13946 (cgraph_rebuild_references): Ditto.
13947 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
13948 * tree-inline.c (copy_phis_for_bb): Ditto.
13949 * tree-ssa-dce.c: Ditto.
13950
13951 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
13952
5dcfdccd
KY
139532012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
13954 Andi Kleen <ak@linux.intel.com>
13955
355a7673 13956 * coretypes.h (MEMMODEL_MASK): New.
5dcfdccd
KY
13957 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
13958 and return new variable.
13959 (expand_builtin_atomic_exchange): Mask memmodel values.
13960 (expand_builtin_atomic_compare_exchange): Ditto.
13961 (expand_builtin_atomic_load): Ditto.
13962 (expand_builtin_atomic_store): Ditto.
13963 (expand_builtin_atomic_clear): Ditto.
13964 * doc/extend.texi: Mention port-dependent memory model flags.
13965 * config/i386/cpuid.h (bit_HLE): New.
13966 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13967 HLE support.
13968 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
cef31f9c 13969 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
5dcfdccd 13970 (ix86_target_string)<-mhle>: New.
1cbdef51
UB
13971 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
13972 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
13973 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
13974 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
5dcfdccd
KY
13975 enabled for generic, generic64 and core-avx2.
13976 (ix86_print_operand): Generate HLE lock prefixes.
13977 (ix86_memmodel_check): New.
13978 (TARGET_MEMMODEL_CHECK): Ditto.
13979 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
13980 (IX86_HLE_ACQUIRE): Ditto.
13981 (IX86_HLE_RELEASE): Ditto.
13982 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
13983 * config/i386/i386.opt (mhle): Ditto.
13984 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
13985 success model to instruction emitter.
13986 (atomic_fetch_add<mode>): Ditto.
13987 (atomic_exchange<mode>): Ditto.
13988 (atomic_add<mode>): Ditto.
13989 (atomic_sub<mode>): Ditto.
13990 (atomic_<code><mode>): Ditto.
13991 (*atomic_compare_and_swap_doubledi_pic): Ditto.
13992 (atomic_compare_and_swap_single<mode>): Define and use argument
13993 for success model.
13994 (atomic_compare_and_swap_double<mode>): Ditto.
13995 * configure.ac: Check if assembler support HLE prefixes.
13996 * configure: Regenerate.
13997 * config.in: Ditto.
13998
68e72840
SB
139992012-05-02 Steven Bosscher <steven@gcc.gnu.org>
14000
14001 PR middle-end/53153
14002 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
14003 split out from ...
14004 (gimplify_switch_expr): ... here.
14005 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
14006 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
14007 to clean up case labels with values outside the index type range.
14008 (simplify_gimple_switch): Call it if something changed.
14009 Remove strange and unnecessary assert.
14010
56099f00
RG
140112012-05-02 Richard Guenther <rguenther@suse.de>
14012
14013 * fold-const.c (div_if_zero_remainder): sizetypes no longer
14014 sign-extend.
14015 (int_const_binop_1): New worker for int_const_binop with
cef31f9c 14016 overflowable parameter. Pass it through to force_fit_type_double.
56099f00
RG
14017 (int_const_binop): Wrap around int_const_binop_1 with overflowable
14018 equal to one.
14019 (size_binop_loc): Call int_const_binop_1 with overflowable equal
14020 to minus one, forcing overflow detection for even unsigned types.
14021 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
14022 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
14023 * stor-layout.c (initialize_sizetypes): sizetypes no longer
14024 sign-extend.
14025 (layout_type): For zero-sized arrays ignore overflow on the
14026 size calculations.
14027 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
14028 (bit_value_binop_1): Likewise.
14029 * tree.c (double_int_to_tree): Likewise.
14030 (double_int_fits_to_tree_p): Likewise.
14031 (force_fit_type_double): Likewise.
14032 (host_integerp): Likewise.
14033 (int_fits_type_p): Likewise.
14034 * varasm.c (output_constructor_regular_field): Sign-extend the
1cbdef51
UB
14035 field-offset to cater for negative offsets produced by the Ada
14036 frontend.
56099f00
RG
14037 * omp-low.c (extract_omp_for_data): Convert the loop step to
14038 signed for pointer adjustments.
14039
140402012-05-02 Richard Guenther <rguenther@suse.de>
14041
14042 * tree.c (valid_constant_size_p): New function.
14043 * tree.h (valid_constant_size_p): Declare.
14044 * cfgexpand.c (expand_one_var): Adjust check for too large
14045 variables by using valid_constant_size_p.
14046 * varasm.c (assemble_variable): Likewise.
14047
14048 * c-decl.c (grokdeclarator): Properly check for sizes that
14049 cover more than half of the address-space.
14050
6aae324c
JJ
140512012-05-02 Jakub Jelinek <jakub@redhat.com>
14052
795e8869
JJ
14053 PR tree-optimization/53163
14054 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
14055 return value from compute_all_dependences.
14056
6aae324c
JJ
14057 PR rtl-optimization/53160
14058 * ree.c (combine_reaching_defs): Handle the case where cand->insn
14059 has been modified by ree pass already.
14060
a845a7f5
ILT
140612012-05-01 Ian Lance Taylor <iant@google.com>
14062
14063 PR c/37303
14064 * c-decl.c (build_compound_literal): Make the decl readonly if it
14065 an array of a readonly type.
14066 * gimplify.c (gimplify_compound_literal_expr): Add fallback
14067 parameter. Change all callers. If the decl is not addressable
14068 and is not an l-value, make it readonly.
14069
fb99ee9b
BS
140702012-05-01 Bernd Schmidt <bernds@codesourcery.com>
14071
14072 * ira.c (allocated_reg_info_size): New static variable.
14073 (expand_reg_info): Manage it. Call
14074 setup_preferred_alternate_classes_for_new_pseudos.
14075 (ira): Don't do it here. Remove local allocated_reg_info_size,
14076 set the global before calling find_moveable_pseudos.
14077 (find_moveable_pseudos): Call expand_reg_info rather than
14078 resize_reg_info.
14079
e8053cf5
RH
140802012-05-01 Richard Henderson <rth@redhat.com>
14081
14082 * common.opt (fsync-libcalls): New.
14083 * doc/invoke.texi: Document it.
14084 * optabs.c (init_sync_libfuncs): Honor it.
14085
af4ba423
KZ
140862012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
14087 Richard Sandiford <r.sandiford@uk.ibm.com>
14088
ecfd6cec 14089 PR rtl-optimization/52543
af4ba423
KZ
14090 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
14091 lower-subreg.h.
14092 * lower-subreg.h: New file.
14093 * target-globals.h (this_target_lower_subreg): Declare.
14094 (target_globals): Add lower_subreg;
14095 (restore_target_globals): Restore this_target_lower_subreg.
14096 * target-globals.c: Include it.
14097 (default_target_globals): Add default_target_lower_subreg.
14098 (save_target_globals): Initialize target_lower_subreg.
14099 * rtl.h (init_lower_subreg): Added declaration.
14100 * toplev.c (backend_init_target): Call initializer for lower-subreg
14101 pass.
14102 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
14103 (default_target_lower_subreg): New variable.
14104 (this_target_lower_subreg): Likewise.
14105 (twice_word_mode, choices): New macros.
14106 (shift_cost, compute_splitting_shift, compute_costs)
14107 (init_lower_subreg): New functions.
14108 (resolve_simple_move): Add speed_p argument. Check choices.
14109 (find_pseudo_copy): Don't check the mode size here.
14110 (resolve_simple_move): Assert the mode size.
14111 (find_decomposable_shift_zext): Add speed_p argument and return
14112 a bool. Check choices.
14113 (resolve_shift_zext): Add comment.
14114 (dump_shift_choices, dump_choices): New functions.
14115 (decompose_multiword_subregs): Dump list of profitable
14116 transformations. Add code to skip non profitable transformations.
14117 Update calls to simple_move and find_decomposable_shift_zext.
14118
90911ab6 141192012-05-01 Ian Bolton <ian.bolton@arm.com>
1cbdef51
UB
14120 Sameera Deshpande <sameera.deshpande@arm.com>
14121 Greta Yorsh <greta.yorsh@arm.com>
90911ab6
IB
14122
14123 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
1cbdef51 14124 (thumb1_unexpanded_epilogue): ...this.
90911ab6 14125 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
1cbdef51 14126 (thumb1_unexpanded_epilogue): ...this.
90911ab6 14127 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
1cbdef51 14128 (thumb1_unexpanded_epilogue): ...this.
90911ab6 14129
6302b84b
RE
141302012-05-01 Richard Earnshaw <rearnsha@arm.com>
14131
14132 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
14133 comparing enumeration values. Update comments.
14134
56ca756c
AM
141352012-05-01 Alan Modra <amodra@gmail.com>
14136
14137 PR target/53038
14138 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
14139 load_cr_save, add_crlr_cfa_restore): New functions.
14140 (rs6000_restore_saved_cr): Rename to..
14141 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
14142 (rs6000_emit_epilogue): Use new functions. Adjust condition
14143 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
14144 regs when using out-of-line restore only when shrink wrapping.
14145
036c0102
UB
141462012-04-30 Uros Bizjak <ubizjak@gmail.com>
14147
14148 PR middle-end/53136
14149 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
14150 calls to cgraph_node_name in xstrdup.
14151 (ipa_make_edge_direct_to_target): Ditto.
14152 * cgraph.c (dump_cgraph_node): Ditto.
14153 * tree-sra.c (convert_callers_for_node): Ditto.
14154 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
14155 * ipa-cp.c (perhaps_add_new_callers): Ditto.
14156 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
14157 (cgraph_materialize_all_clones): Ditto.
14158 * ipa-inline.c (report_inline_failed_reason): Ditto.
14159 (want_early_inline_function_p): Ditto.
14160 (edge_badness): Ditto.
14161 (update_edge_key): Ditto.
14162 (flatten_function): Ditto.
14163 (ipa_inline): Ditto.
1cbdef51 14164 (inline_always_inline_functions): Ditto.
036c0102
UB
14165 (early_inline_small_functions): Ditto.
14166
24b2a15a
UB
141672012-04-30 Uros Bizjak <ubizjak@gmail.com>
14168
14169 PR target/53141
14170 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
14171 constraints 0 and 1.
14172
65d630d4
JH
14173012-04-30 Jan Hubicka <jh@suse.cz>
14174
14175 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
14176 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
14177 (cgraph_add_to_same_comdat_group): Remove.
14178 (cgraph_add_asm_node): Move to cgraphunit.c.
14179 (cgraph_make_decl_local): Move to symtab.c
14180 (cgraph_make_node_local_1): Update.
14181 (cgraph_can_remove_if_no_direct_calls_and): Update.
14182 (used_from_object_file_p): Update.
14183 (resolution_used_from_other_file_p): Move to symtab.c
14184 (cgraph_used_from_object_file_p): move to symtab.c
14185 (verify_cgraph_node): Verify same comdat groups.
14186 * cgraph.h (cgraph_asm_node): Rename to ...
14187 (asm_node): ... this one.
14188 (cgraph_asm_nodes): Rename to ...
14189 (asm_nodes): ... this one.
14190 (symtab_add_to_same_comdat_group): New function.
14191 (symtab_dissolve_same_comdat_group_list): New function.
14192 (symtab_used_from_object_file_p): Declare.
14193 (symtab_make_decl_local): Declare.
14194 (cgraph_add_to_same_comdat_group): Remove.
14195 (cgraph_add_asm_node): Remove.
14196 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
14197 Remove.
14198 (cgraph_finalize_compilation_unit): Rename to ...
14199 (finalize_compilation_unit): ... this one.
14200 (cgraph_optimize): Rename to ....
14201 (compile): ... this one.
14202 (add_asm_node): Declare.
14203 (fixup_same_cpp_alias_visibility): Declare.
14204 (cgraph_make_decl_local): Remove.
14205 (varpool_assemble_pending_decls): Rename to ...
14206 (varpool_output_variables): ... this one.
14207 (varpool_remove_unreferenced_decls): Remove.
14208 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
14209 (preserve_function_body_p): Make static.
24b2a15a 14210 * toplev.c (compile_file): Update comments; update.
65d630d4
JH
14211 * cgraphunit.c: Update comments.
14212 (cgraph_expand_all_functions): Rename to ...
14213 (expand_all_functions): ... this one; update.
14214 (cgraph_mark_functions_to_output): Rename to ...
14215 (mark_functions_to_output): ... this one; cleanup.
14216 (cgraph_output_pending_asms): Remove prototype.
14217 (asm_nodes, asm_last_node): New static vars.
14218 (cgraph_process_new_functions): Update.
14219 (cgraph_reset_node): Cleanup; add comment.
14220 (cgraph_add_new_function): Update.
14221 (cgraph_output_pending_asms): Rename to ...
14222 (output_asm_statements): ... this one.
14223 (add_asm_node): New function.
14224 (fixup_same_cpp_alias_visibility): New function based on code
14225 in cgraph_analyze_function.
14226 (cgraph_analyze_function): Use it.
14227 (cgraph_order_sort): Update.
14228 (cgraph_output_in_order): Update.
14229 (cgraph_function_versioning): Update.
14230 (cgraph_optimize): Rename to ...
14231 (compile): ... this one; initialize streamer hooks here.
14232 (cgraph_finalize_compilation_unit): Rename to ...
14233 (finalize_compilation_unit): ... this one; do not initialize streamer
14234 hook here.
14235 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
14236 * dwarf2out.c: Update ocmment.
14237 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
14238 * method.c (use_thunk): Likewise.
14239 * semantics.c (maybe_add_lambda_conv_op): Likewise.
24b2a15a 14240 * decl2.c (maybe_emit_vtables): Likewise.
65d630d4
JH
14241 (cp_write_global_declarations): Use finalize_compilation_unit.
14242 * parser.c (cp_parser_asm_definition): Use add_asm_node.
14243 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
24b2a15a
UB
14244 * c-decl.c (c_write_global_declarations): Use
14245 finalize_compilation_unit.
65d630d4
JH
14246 * langhooks.c (write_global_declarations): Update.
14247 * ipa.c (cgraph_externally_visible_p): Update.
14248 (dissolve_same_comdat_group_list): Remove.
14249 (function_and_variable_visibility): Update.
14250 * symtab.c: Inlcude lto-streamer.h and rtl.h
14251 (ld_plugin_symbol_resolution_names): New.
14252 (symtab_add_to_same_comdat_group): New.
14253 (symtab_dissolve_same_comdat_group_list): New.
14254 (resolution_used_from_other_file_p): Move here from cgraph.c
14255 (symtab_used_from_object_file_p): New.
14256 (symtab_make_decl_local): New.
14257 * passes.c (register_pass): Update comments.
14258 * c-parser.c (c_parser_asm_definition): Update.
24b2a15a
UB
14259 * varpool.c (varpool_analyze_node): Use
14260 fixup_same_cpp_alias_visibility.
65d630d4
JH
14261 (varpool_remove_unreferenced_decls): Make static.
14262 (varpool_assemble_pending_decls): Rename to ...
14263 (varpool_output_variables): ... this one; call
14264 varpool_remove_unreferenced_decls.
14265 (varpool_used_from_object_file_p): Remove.
14266
7edaa4d2
MG
142672012-04-30 Marc Glisse <marc.glisse@inria.fr>
14268
14269 PR c++/51033
14270 * c-typeck.c (build_array_ref): Call
14271 convert_vector_to_pointer_for_subscript.
14272 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
14273
f45d8c45
UB
142742012-04-30 Uros Bizjak <ubizjak@gmail.com>
14275
14276 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
14277 to compile-time "mode == <MODE>mode" checks.
14278 (and splitter): Ditto.
14279
a7b8107f
RH
142802012-04-30 Richard Henderson <rth@redhat.com>
14281
14282 * config/arm/arm.md (UNSPEC_LL): New.
14283 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
14284 (arm_load_exclusivedi): Use %H0.
14285
85dd5559
JM
142862012-04-30 Jason Merrill <jason@redhat.com>
14287
14288 * dwarf2out.c (comdat_symbol_id): Add const.
14289 (union die_symbol_or_type_node): Add const to die_symbol.
14290 (output_die_symbol, output_die, output_comp_unit): Adjust.
14291
b8fb55d1
AS
142922012-04-30 Andrew Stubbs <ams@codesourcery.com>
14293
14294 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
14295 * config/arm/neon.md (negdi2_neon): New insn.
14296 Also add splitters for core and NEON registers.
14297
00a3a76a
AS
142982012-04-30 Andrew Stubbs <ams@codesourcery.com>
14299
14300 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
14301 (arm_print_operand): Add 'x' format.
14302 * config/arm/constraints.md (Dn): Allow const_int.
14303 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
14304 Use 'x' format to print constants.
14305 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
14306 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
14307 is enabled.
14308 (movdi_vfp_cortexa8): Likewise.
14309
0d5a9e78 143102012-04-30 Ian Bolton <ian.bolton@arm.com>
84ba0835
RE
14311 Sameera Deshpande <sameera.deshpande@arm.com>
14312 Greta Yorsh <greta.yorsh@arm.com>
5991e156
IB
14313
14314 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
14315 * config/arm/arm.c (ldm_stm_operation_p): New function.
14316 * config/arm/predicates.md (load_multiple_operation): Update predicate.
14317 (store_multiple_operation): Likewise.
14318
fb40241d
IB
14319 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
14320 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
14321 * config/arm/predicates.md (load_multiple_operation): Add arguments.
f45d8c45 14322 (store_multiple_operation): Likewise.
fb40241d 14323
d55d2c84
UB
143242012-04-30 Uros Bizjak <ubizjak@gmail.com>
14325
14326 * config/i386/i386.md (and<mode>3): Expand masking operations with
14327 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
14328 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
14329
b9c8da34
DS
143302012-04-30 Dodji Seketeli <dodji@redhat.com>
14331
14332 Add -Wvarargs option
14333 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
d55d2c84 14334 argument for the various warning_at calls.
b9c8da34
DS
14335 * docs/invoke.texi: Update the documentation.
14336
163fa1eb
DS
143372012-04-30 Dodji Seketeli <dodji@redhat.com>
14338
51fce2d3
DS
14339 Switch -ftrack-macro-expansion=2 on by default.
14340 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
14341 by default.
14342
34c88790
DS
14343 Fix va_start related location
14344 * builtins.c (fold_builtin_next_arg): Unwinds to the first
14345 location in real source code.
14346
70dc395a
DS
14347 Make conversion warnings work on NULL with -ftrack-macro-expansion
14348 * input.h (expansion_point_location_if_in_system_header): Declare
14349 new function.
d55d2c84 14350 * input.c (expansion_point_location_if_in_system_header): Define it.
70dc395a 14351
2d48bdca 14352 Fix -Wuninitialized for -ftrack-macro-expansion
d55d2c84
UB
14353 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
14354 declaration. Use linemap_location_before_p for source locations.
2d48bdca 14355
c4ca1a09
DS
14356 Strip "<built-in>" loc from displayed expansion context
14357 * input.c (expand_location_1): When expanding to spelling location
14358 in a context of a macro expansion, skip reserved system header
14359 locations. Update comments. * tree-diagnostic.c
14360 (maybe_unwind_expanded_macro_loc): Likewise.
14361
7eb918cc
DS
14362 Make expand_location resolve to locus in main source file
14363 * input.c (expand_location_1): New. Takes a parameter to choose
14364 whether to resolve the location to spelling or expansion point.
14365 Was factorized from ...
14366 (expand_location): ... here.
14367 (expand_location_to_spelling_point): New. Implemented in terms of
14368 expand_location_1.
14369 * diagnostic.c (diagnostic_build_prefix): Use the new
14370 expand_location_to_spelling_point instead of expand_location.
14371
163fa1eb
DS
14372 Fix PCH crash on GTYed pointer-to-scalar field of a struct
14373 * gengtype.c (write_types_process_field): Force second argument of
14374 the call to the PCH object hierarchy walker to be 'x'.
14375
bb358f1c
EB
143762012-04-30 Eric Botcazou <ebotcazou@adacore.com>
14377
14378 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
14379 predicate to discriminate types.
14380
90137d8f
MLI
143812012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
14382
14383 * doc/invoke.texi (Wmissing-format-attribute): Document as an
14384 alias of Wsuggest-attribute=format.
14385 * c-typeck.c (convert_for_assignment): Replace
14386 Wmissing-format-attribute with Wsuggest-attribute=format.
14387 (digest_init): Likewise.
14388
94ee6979
MLI
143892012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
14390
d55d2c84
UB
14391 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
14392 * common.opt (Wmissing-noreturn): Alias of
14393 -Wsuggest-attribute=noreturn.
94ee6979 14394
ff2ca1bc
HPN
143952012-04-29 Hans-Peter Nilsson <hp@axis.com>
14396
14397 PR target/53156
14398 * config/cris/cris.md (andqu): New peephole2.
14399 (andu): Tweak head comment.
14400
fa06ad0d
JR
144012012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
14402 Steven Bosscher <steven@gcc.gnu.org>
14403 Maxim Kuvyrkov <maxim@codesourcery.com>
14404
14405 PR tree-optimization/38785
14406 * common.opt (ftree-partial-pre): New option.
14407 * doc/invoke.texi: Document it.
14408 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
14409 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
14410 benefit speed path.
14411 (execute_pre): Use flag_tree_partial_pre.
14412
5f5f36f9
JDA
144132012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14414
14415 PR target/52999
14416 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
14417 in constant pool.
14418
20f9034b 144192012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
14420
14421 * doc/invoke.texi (Wliteral-suffix): Document new option.
14422
11ec770e
TT
144232012-04-27 Tom Tromey <tromey@redhat.com>
14424
14425 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
14426 (dwarf_tag_name): Use get_DW_TAG_name.
14427 (dwarf_attr_name): Use get_DW_AT_name.
14428 (dwarf_form_name): Use get_DW_FORM_name.
14429 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
14430
809c929c
PB
144312012-04-27 Paolo Bonzini <bonzini@gnu.org>
14432
d55d2c84
UB
14433 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
14434 arguments are -1 and 0, by negating the result of the conditional.
809c929c 14435
d5548709
PB
144362012-04-27 Paolo Bonzini <bonzini@gnu.org>
14437
14438 PR target/53138
14439 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
14440
209be553
RG
144412012-04-27 Richard Guenther <rguenther@suse.de>
14442
14443 * tree-flow.h (is_hidden_global_store): Remove.
14444 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
14445 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
14446 (stmt_may_clobber_global_p): Likewise.
14447 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
14448 (stmt_may_clobber_global_p): Likewise.
14449 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
14450 stmt_may_clobber_global_p.
14451 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
14452
886cd84f
SB
144532012-04-27 Steven Bosscher <steven@gcc.gnu.org>
14454
c813039d
SB
14455 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
14456 place.
14457
886cd84f
SB
14458 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
14459 reorganize some fields and update comments. Rename bit_test_uniq
14460 and bit_test_count to uniq resp. count. Remove bit_test_bb.
14461 (collect_switch_conv_info): New function, collects info about a
14462 GIMPLE_SWITCH into a struct switch_conv_info.
14463 (check_range): Simplify to use pre-recorded info. Fix think-o in
14464 range-branch ratio check.
14465 (check_process_case): Remove function.
14466 (check_all_empty_except_final): New function, verifies that all
14467 non-final basic blocks are empty.
14468 (process_switch): Simplify to use pre-recorded info. Call
14469 collect_switch_conv_info to do that. Assert that degenerate switch
14470 statements have been cleaned up.
14471
07ab2b1b
MG
144722012-04-27 Marc Glisse <marc.glisse@inria.fr>
14473
14474 PR middle-end/27139
14475 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
14476
ae933128
MLI
144772012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
14478
14479 PR c/53130
14480 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
14481
00115921
TV
144822012-04-27 Tom de Vries <tom@codesourcery.com>
14483
14484 PR tree-optimization/51879
14485 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
14486 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
14487 of ...
14488 (defs_to_varying): ... here. Don't set use_processed.
14489 (visit_reference_op_call): Handle gimple_vdef.
14490 Handle case that lhs is NULL_TREE.
14491 (visit_use): Use mark_use_processed. Handle calls with side-effect
14492 using visit_reference_op_call.
14493
fd59643c
RS
144942012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
14495
14496 * sched-deps.c (fixup_sched_groups): Rename to...
14497 (chain_to_prev_insn): ...this.
14498 (chain_to_prev_insn_p): New function.
14499 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
14500
7a1aca9c
RS
145012012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
14502
14503 * sched-int.h (_haifa_insn_data): Move priority_status.
14504 Add model_index.
14505 (INSN_MODEL_INDEX): New macro.
14506 * haifa-sched.c (insn_delay): New function.
14507 (sched_regno_pressure_class): Update commentary.
14508 (mark_regno_birth_or_death): Pass the liveness bitmap and
14509 pressure array as arguments, instead of using curr_reg_live and
14510 curr_reg_pressure. Only update the pressure if the bit in the
14511 liveness set has changed.
14512 (initiate_reg_pressure_info): Always trust the live-in set for
14513 SCHED_PRESSURE_MODEL.
14514 (initiate_bb_reg_pressure_info): Update call to
14515 mark_regno_birth_or_death.
14516 (dep_list_size): Take the list as argument.
14517 (calculate_reg_deaths): New function, extracted from...
14518 (setup_insn_reg_pressure_info): ...here.
14519 (MODEL_BAR): New macro.
14520 (model_pressure_data, model_insn_info, model_pressure_limit)
14521 (model_pressure_group): New structures.
14522 (model_schedule, model_worklist, model_insns, model_num_insns)
14523 (model_curr_point, model_before_pressure, model_next_priority):
14524 New variables.
14525 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
14526 (MODEL_INSN_INFO, MODEL_INSN): New macros.
14527 (model_index, model_update_limit_points_in_group): New functions.
14528 (model_update_limit_points, model_last_use_except): Likewise.
14529 (model_start_update_pressure, model_update_pressure): Likewise.
14530 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
14531 (model_excess_cost, model_dump_pressure_points): Likewise.
14532 (model_set_excess_costs): Likewise.
14533 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
14534 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
14535 schedule as an alternative tie-breaker. Update the call to
14536 dep_list_size.
14537 (ready_sort): Call model_set_excess_costs.
14538 (update_register_pressure): Update call to mark_regno_birth_or_death.
14539 Rely on that function to check liveness rather than doing it here.
14540 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
14541 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
14542 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
14543 (model_record_pressure, model_record_pressures): New functions.
14544 (model_record_final_pressures, model_add_successors_to_worklist)
14545 (model_promote_predecessors, model_choose_insn): Likewise.
14546 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
14547 (model_start_schedule, model_finalize_pressure_group): Likewise.
14548 (model_end_schedule): Likewise.
14549 (schedule_insn): Say when we're scheduling the next instruction
14550 in the model schedule.
14551 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
14552 (queue_to_ready): Do not add instructions that are
14553 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
14554 Always allow the next instruction in the model schedule to be added.
14555 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
14556 and delay for SCHED_PRESSURE_MODEL too.
14557 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
14558 SCHED_PRIORITY_MODEL, but also take the DFA into account.
14559 (schedule_block): Call model_start_schedule and model_end_schedule.
14560 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
14561 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
14562 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
14563 region_ref_regs.
14564 (sched_finish): Update accordingly.
14565 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
14566 to SCHED_PRESSURE_MODEL.
14567 (add_jump_dependencies): Update call to dep_list_size.
14568 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
14569 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
14570 to SCHED_PRESSURE_MODEL.
14571 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
14572 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
14573 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
14574 handling to SCHED_PRESSURE_MODEL.
14575
60867e8c
RS
145762012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
14577
14578 * common.opt (fsched-pressure-algorithm=): New option.
14579 * flag-types.h (sched_pressure_algorithm): New enum.
14580 * sched-int.h (sched_pressure_p): Replace with...
14581 (sched_pressure): ...this new variable.
14582 * haifa-sched.c (sched_pressure_p): Replace with...
14583 (sched_pressure): ...this new variable.
14584 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
14585 (update_reg_and_insn_max_reg_pressure, schedule_insn)
14586 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
14587 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
14588 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14589 (sched_analyze_insn): Likewise.
14590 * sched-rgn.c (schedule_region): Likewise.
14591 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
14592
81c082ec
BS
145932012-04-26 Bernd Schmidt <bernds@codesourcery.com>
14594
14595 * PR middle-end/52997
14596 * ira.c (find_moveable_pseudos): Call resize_reg_info.
14597
e90247f8
BS
14598 PR middle-end/52940
14599 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
14600 * expr.c (convert_move): Honor unsignedp when extending partial int
14601 modes.
14602 * genmodes.c (complete_mode): Don't clear component field of partial
14603 int modes.
14604 (emit_mode_inner): Don't emit it however.
14605 (calc_wider_mode): Partial int modes widen to their component.
14606
afa3ed85
DM
146072012-04-26 David S. Miller <davem@davemloft.net>
14608
851634c7
DM
14609 * config/sparc/niagara4.md: New file.
14610 * config/sparc/sparc.md: Include it.
14611 * config/sparc/sparc.c (niagara4_costs): New processor costs.
14612 (sparc_option_override): Use it.
14613 (sparc_use_sched_lookahead): Return 2 for niagara4.
14614 (sparc_issue_rate): Likewise.
14615
afa3ed85
DM
14616 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
14617 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
14618 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
d55d2c84 14619 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
afa3ed85
DM
14620 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
14621 alignaddrldi_vis): Set type to gsr.
14622 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
14623 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
14624 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
14625 v<vis3_shift_patname><mode>3, fmean16_vis,
14626 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
14627 fucmp<code>8<P:mode>_vis): Set type to fga.
14628 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
14629 * config/sparc/niagara.md: Likewise.
14630 * config/sparc/niagara2.md: Likewise.
14631 * config/sparc/ultra3.md: Likewise, and fix type matching for
14632 us3_ialuX reservation.
14633
b5068425
AK
146342012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14635
14636 * reload.c (find_reloads): Change the loop nesting when trying an
14637 alternative with swapped operands.
14638
1d72e96f
MLI
146392012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14640
14641 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
14642 comment. Delete unused parameter first_exp_point_map.
14643 (virt_loc_aware_diagnostic_finalizer): Update call.
14644
c7121189
MH
146452012-04-26 Michael Hope <michael.hope@linaro.org>
14646 Richard Earnshaw <rearnsha@arm.com>
14647
14648 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
14649 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
14650 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
14651 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
14652
5ddecff9
ST
146532012-04-25 Sriraman Tallam <tmsriram@google.com>
14654
14655 * doc/extend.texi: Document avx2 support.
14656 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
14657
d7173593
HPN
146582012-04-26 Hans-Peter Nilsson <hp@axis.com>
14659
14660 PR target/53120
14661 * config/cris/cris.md ("*andhi_lowpart_v32")
14662 ("*andqi_lowpart_v32"): Change first input-only operand from
14663 a (match_operand ...) to (match_dup 0). Drop alternatives with
14664 const_int-matching constraints for redundancy.
14665 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
14666 three-operand alternative.
14667
c1d40097
JJ
146682012-04-25 Jakub Jelinek <jakub@redhat.com>
14669
14670 PR target/53110
14671 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
14672 instead expand it as zero extension.
14673
ff5f00c3
L
146742012-04-25 H.J. Lu <hongjiu.lu@intel.com>
14675
14676 PR debug/52857
d55d2c84 14677 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
ff5f00c3 14678
98095aa3
JJ
146792012-04-25 Jakub Jelinek <jakub@redhat.com>
14680
14681 * common.opt (flag_debug_types_section): Default to 0.
14682 (dwarf_version): Default to 4.
14683 (dwarf_record_gcc_switches): Default to 1.
14684 (dwarf_strict): Default to 0.
14685 * toplev.c (process_options): Don't handle dwarf_strict
14686 or dwarf_version here.
14687 * config/vxworks.c (vxworks_override_options): Don't
14688 test whether dwarf_strict or dwarf_version are negative,
14689 instead test !global_options_set.x_dwarf_*.
14690 * config/darwin.c (darwin_override_options): Default to
14691 dwarf_version 2.
14692 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
14693 and -fno-debug-types-section are now the default.
14694
9c8305f8
JH
146952012-04-25 Jan Hubicka <jh@suse.cz>
14696
14697 * cgraphunit.c: Update toplevel comment.
14698 (tree_rest_of_compilation): Merge into cgraph_expand_function.
14699 (cgraph_analyze_function): Make static.
14700 (cgraph_decide_is_function_needed): Make static.
14701 (cgraph_add_new_function): Use expand_function instead of
14702 rest_of_compilation.
14703 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
14704 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
14705 Move to cgraph.c
14706 (cgraph_inline_p): Remove.
14707 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
14708 (init_cgraph): Add comment.
14709 * cgraphbuild.c (record_reference, mark_address, mark_load,
14710 mark_store): Do not call analyze_expr hook.
14711 * cgraph.c: Update toplevel comment.
14712 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
14713 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
14714 Move fere from cgraphunit.c
14715 (cgraph_mark_force_output_node): Move to cgraph.h
14716 * cgraph.h: Reorder so the comments match the function placement.
14717 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
14718 (cgraph_mark_force_output_node): Move here from cgraph.c
14719 * tree.c (free_lang_data): Do not clear analyze_expr hook.
14720 * ipa-inline-transform.c (preserve_function_body_p): New function.
14721 (inline_transform): Update.
14722 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
14723 * langhooks.h (lang_hooks_for_callgraph): Remove.
14724 (lang_hooks): Remove callgraph.
14725 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
14726 * varpool.c: Remove out of date comment.
14727 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
14728 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
14729
838ff415
JH
147302012-04-25 Jan Hubicka <jh@suse.cz>
14731
d55d2c84
UB
14732 PR middle-end/53089
14733 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
14734 forward declaration.
838ff415
JH
14735 (cgraph_finalize_function): Finalize them here.
14736 * symtab.c (dump_symtab): Dump ctors and dtors.
14737
0ea62d93
JJ
147382012-04-25 Jakub Jelinek <jakub@redhat.com>
14739
f1cc9589
JJ
14740 PR middle-end/52979
14741 * stor-layout.c (get_best_mode): Don't return mode with bitsize
14742 larger than maxbits. Don't compute maxbits modulo align.
14743 Also check that unit bytes long store at bitpos / unit * unit
14744 doesn't affect bits beyond bitregion_end.
14745 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
d55d2c84 14746 would not fit into bitregion_start ... bitregion_end + 1 bit region.
f1cc9589
JJ
14747 (store_split_bit_field): Decrease unit close to end of bitregion_end
14748 if access is restricted in order to avoid mutual recursion.
14749
0ea62d93
JJ
14750 PR tree-optimization/53058
14751 * double-int.h (double_int_max_value, double_int_min_value): New
14752 prototypes.
14753 * double-int.c (double_int_max_value, double_int_min_value): New
14754 functions.
d55d2c84
UB
14755 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
14756 or GT_EXPR with double_int_max_value instead of double_int_mask.
0ea62d93 14757
d68d56b5
RG
147582012-04-25 Richard Guenther <rguenther@suse.de>
14759
14760 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14761 * tree-vect-loop.c (vect_transform_loop): Adjust.
14762 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
14763 the maximum number of iterations for the epilogue loop.
d55d2c84 14764 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
d68d56b5 14765
fdce1719
JJ
147662012-04-25 Jakub Jelinek <jakub@redhat.com>
14767
14768 PR c/52880
14769 * c-typeck.c (set_nonincremental_init,
14770 set_nonincremental_init_from_string): Pass true instead of false
14771 as IMPLICIT to add_pending_init.
14772
32397f22
MLI
147732012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
14774
14775 * c-typeck.c (pop_init_level): Improve diagnostics.
14776
ad1d9a50
UB
147772012-04-25 Uros Bizjak <ubizjak@gmail.com>
14778
14779 * compare-elim.c (try_eliminate_compare): Also handle operands with
14780 implicit extensions.
14781
b427dd7a
AM
147822012-04-25 Alan Modra <amodra@gmail.com>
14783
14784 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
14785 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
14786 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
14787 (no_global_regs_above): Delete.
14788 (no_global_regs): New function.
14789 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
14790 value for load multiple test.
14791 (savres_routine_syms): Increase size.
14792 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
14793 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
14794 rather than a number of boolean flags. Update all callers.
14795 (rs6000_savres_routine_name): Generate vector save/restore names.
14796 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
14797 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
14798 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
14799 and using_store_multiple. Expand uses. Don't always use r11 as
14800 frame reg when needed for out-of-line saves. Set up initial offset
14801 for out-of-line vector saves when buying stack frame. Handle pointer
14802 reg setup for out-of-line fp save. Emit call to out-of-line vector
14803 save function. Choose r11 or r12 for vrsave reg when available for
14804 better scheduling.
14805 (rs6000_output_function_prologue): Don't emit .extern for ELF.
14806 (rs6000_emit_epilogue): Choose a better frame reg when restoring
14807 from back-chain to suit out-of-line vector restore functions. Emit
14808 call to out-of-line vector restore function. Adjust register used
14809 for cr restore. Tweak pointer register setup for gpr restore.
14810 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
14811 FIXED_R13.
14812 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
14813 (V_SAVE_INLINE): Define.
14814 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
14815
1bf7c2a7
AM
148162012-04-25 Alan Modra <amodra@gmail.com>
14817
14818 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
14819 out-of-line save/restore for large frames. Don't disable
14820 out-of-line saves on ABI_AIX when using static chain reg.
14821 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
14822 clobber static chain reg, and tweak for out-of-line gpr saves
14823 that use r1.
14824
c344e265
AM
148252012-04-25 Alan Modra <amodra@gmail.com>
14826
14827 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
14828 (rs6000_emit_prologue): Use the above to catch register overlap.
14829
544055ae
AM
148302012-04-25 Alan Modra <amodra@gmail.com>
14831
14832 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
14833 decl. Move logic selecting update reg to callers. Update all callers.
14834 (rs6000_emit_allocate_stack): Add copy_off param.
14835 (emit_frame_save): Don't handle reg+reg addressing.
14836 (ptr_regno_for_savres): New function, extracted from..
14837 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
14838 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
14839 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
14840 frame offset adjustment for out-of-line save with copy from sp.
14841 Simplify condition controlling whether cr is saved early or
14842 late. Use ptr_regno_for_savres to verify correct reg is set
14843 up for out-of-line saves. Pass the actual pointer reg used to
14844 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
14845 function. Rearrange spe vars so code is similar to that
14846 elsewhere in this function. Don't update frame_off when spe
14847 save code will restore r11. Use emit_frame_save for spe and
14848 gpr saves. Consolidate darwin out-of-line gpr setup with that
14849 for other abis. Don't assume frame_offset is zero and frame
14850 reg is sp when setting up altivec reg saves, and calculate
14851 exact offset requirement.
14852 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
14853 spe restore code. Consolidate darwin out-of-line gpr setup
14854 with that for other abis.
14855
471df90f
AM
148562012-04-25 Alan Modra <amodra@gmail.com>
14857
14858 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
14859 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
14860 the replacement.
14861 (emit_frame_save): Delete frame_ptr param. Rename total_size to
14862 frame_reg_to_sp.
14863 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
14864 and emit_frame_save calls. Cope with possibly missing note.
14865
792317cc
ST
148662012-04-24 Sriraman Tallam <tmsriram@google.com>
14867
14868 * config/i386/i386.c (build_processor_model_struct): New function.
14869 (make_var_decl): New function.
14870 (fold_builtin_cpu): New function.
14871 (ix86_fold_builtin): New function.
14872 (make_cpu_type_builtin): New function.
14873 (ix86_init_platform_type_builtins): New function.
14874 (ix86_expand_builtin): Expand new builtins by folding them.
14875 (ix86_init_builtins): Make new builtins to detect CPU type.
14876 (TARGET_FOLD_BUILTIN): New macro.
14877 (IX86_BUILTIN_CPU_INIT): New enum value.
14878 (IX86_BUILTIN_CPU_IS): New enum value.
14879 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
14880 * config/i386/i386-builtin-types.def: New function type.
14881 * testsuite/gcc.target/builtin_target.c: New testcase.
14882 * doc/extend.texi: Document builtins.
14883
7a9cf7e9
OH
148842012-04-24 Olivier Hainque <hainque@adacore.com>
14885
14886 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
14887 * toplev.c (process_options): Default to dwarf_version 2.
14888 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
14889 and dwarf_version 2.
14890
21e41715
MLI
148912012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14892
14893 * tree-pretty-print.h (default_tree_printer): Do not declare.
14894 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
14895 intl.h.
14896 (default_tree_diagnostic_starter): Make static.
14897 (default_tree_printer): Move to here. Make static.
14898 (tree_diagnostics_defaults): New.
14899 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
14900 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
14901 * toplev.c: Do not include tree-pass.h.
14902 (default_tree_printer): Move from here.
14903 (general_init): Use tree_diagnostics_defaults.
14904
3eab78f4
CF
149052012-04-24 Chao-ying Fu <fu@mips.com>
14906
14907 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
14908 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
14909 * config/mips/gnu-user.h
14910 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
14911 (GNU_USER_TARGET_LINK_SPEC): New define.
14912 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
14913 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
14914 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
14915 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
14916 GNU_USER_TARGET_ENDFILE_SPEC.
14917 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
14918 (GNU_USER_TARGET_LINK_SPEC): New define.
14919 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
14920 * config/mips/linux-common.h: New file.
14921
24d5b351
BS
149222012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14923
14924 PR target/47197
14925 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
14926 (altivec_build_resolved_builtin): Call fully_fold_convert.
14927
59d9ade4
GJL
149282012-04-24 Georg-Johann Lay <avr@gjlay.de>
14929
14930 PR target/53065
14931 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
14932
46b380a2
RG
149332012-04-24 Richard Guenther <rguenther@suse.de>
14934
14935 PR tree-optimization/53085
14936 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
14937 stores.
14938
05232ff6
RB
149392012-04-24 Richard Guenther <rguenther@suse.de>
14940
14941 * tree-if-conv.c (main_tree_if_conversion): Move bb under
14942 ENABLE_CHECKING.
14943
149442012-04-24 Jim Meyering <meyering@redhat.com>
57f10fe5
JM
14945
14946 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
14947 absence of an define_enum call.
14948
7d5a99f4
RG
149492012-04-24 Richard Guenther <rguenther@suse.de>
14950
14951 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
14952 the epilogue loop is not re-used as unvectorized version
14953 record the its maximum number of iterations.
14954
8eddb625
AP
149552012-04-24 Andrew Pinski <apinski@cavium.com>
14956
14957 * tree-ssa-forwprop.c (simplify_bitwise_binary):
14958 Don't directly use def1/def2.
14959
e1b435ad
RG
149602012-04-24 Richard Guenther <rguenther@suse.de>
14961
14962 PR tree-optimization/53098
14963 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
14964 comparison sign.
14965
a1e179f5
AP
149662012-04-24 Andrew Pinski <apinski@cavium.com>
14967
14968 PR tree-opt/33512
14969 * tree-ssa-forwprop.c (defcodefor_name): New function.
14970 (simplify_bitwise_binary): Use defcodefor_name instead of manually
14971 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
14972 Simplify "(~X | Y) & X" to "X & Y" and
14973 "(~X & Y) | X" to "X | Y".
14974
57ac4c34
AK
149752012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14976
14977 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
14978 validate_change to add clobbers if IN_GROUP is nonzero.
14979 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
14980 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
14981 prototype.
14982 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
14983 set to false.
14984 * config/s390/s390.c (insn_invalid_p): Likewise.
14985
06edd772
JJ
149862012-04-24 Jakub Jelinek <jakub@redhat.com>
14987
dd0a516f 14988 PR middle-end/53084
ad1d9a50 14989 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
dd0a516f
JJ
14990 (output_addressed_constants): Likewise.
14991
06edd772
JJ
14992 PR middle-end/52999
14993 * varasm.c (get_section): Don't ICE for section conflicts with
14994 built-in section kinds.
14995
5e0cea66
DD
149962012-04-23 DJ Delorie <dj@redhat.com>
14997
14998 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
14999 (LIBSTDCXX): Change to CPP2.
15000
eefdb8e6
L
150012012-04-23 H.J. Lu <hongjiu.lu@intel.com>
15002
15003 PR bootstrap/52878
15004 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
15005 extra_masks.
15006
025735b7
UB
150072012-04-23 Uros Bizjak <ubizjak@gmail.com>
15008
15009 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
15010 (*addsi_2_zext): Ditto.
15011 (*add<mode>_3): Ditto.
15012 (*addsi_3_zext): Ditto.
15013 (*add<mode>_5): Ditto.
15014
24fc7360
AP
150152012-04-23 Andrew Pinski <apinski@cavium.com>
15016
15017 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
15018 (C & B) to (A OP0) & B.
15019
e9d68de9
MJ
150202012-04-23 Martin Jambor <mjambor@suse.cz>
15021
15022 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
15023 temporaries created for a bitfield (reverting revision 122014).
15024
f7a06a98
RG
150252012-04-23 Richard Guenther <rguenther@suse.de>
15026
15027 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
15028 the condition using is_gimple_condexpr and avoid the not necessary
15029 boolification.
15030 (set_prologue_iterations): Likewise.
15031 (vect_loop_versioning): Likewise.
15032
c6542175
RG
150332012-04-23 Richard Guenther <rguenther@suse.de>
15034
15035 PR tree-optimization/53070
15036 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
15037 (main_tree_if_conversion): Verify we succeeded in that.
15038
93a18a70
JH
150392012-04-23 Jan Hubicka <jh@suse.cz>
15040
15041 * lto-symtab.c (lto_cgraph_replace_node): Do not call
15042 mark_reahcable_node.
15043 * cgraph.c (cgraph_remove_node): Do not clear reachable.
15044 (cgraph_mark_reachable_node): Remove.
15045 (cgraph_mark_force_output_node): Do not set reachable.
15046 (dump_cgraph_node): Do not dump reachable.
15047 (cgraph_create_virtual_clone): Do not set reachable.
15048 * cgraph.h (cgraph_node): Remove reachable flag.
15049 (varpool_node): Remove reachable flag.
15050 (cgraph_mark_if_needed): Remove.
15051 (cgraph_mark_reachable_node): Remove.
025735b7 15052 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
93a18a70
JH
15053 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
15054 reachable.
15055 (cgraph_add_new_function): Likewise.
15056 (cgraph_mark_if_needed): Remove.
15057 (cgraph_analyze_function): Do not set target as reachable.
025735b7
UB
15058 (process_function_and_variable_attributes): Do not care about
15059 dllexport.
93a18a70
JH
15060 (cgraph_analyze_functions): Do not set reachable flags.
15061 (cgraph_mark_functions_to_output): Do not check reachability.
15062 (cgraph_copy_node_for_versioning): Do not set reachable flag.
15063 (dbxout_expand_expr): Update.
15064 * c-decl.c (merge_decls): Do not track changed externs.
15065 * ipa.c: Include pointer-set.h
15066 (enqueue_cgraph_node): Use reachable pointer set.
15067 (process_references): Likewise.
15068 (cgraph_remove_unreachable_nodes): Likewise.
025735b7
UB
15069 (whole_program_function_and_variable_visibility): Do not recompute
15070 reachable.
93a18a70
JH
15071 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
15072
da4343c3
GJL
150732012-04-23 Georg-Johann Lay <avr@gjlay.de>
15074
15075 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
15076
54b9f838
RB
150772012-04-23 Richard Guenther <rguenther@suse.de>
15078
15079 PR c/53060
15080 * c-typeck.c (build_binary_op): Fix typo.
15081
e6a21dd2
JJ
150822012-04-23 Jakub Jelinek <jakub@redhat.com>
15083
15084 PR tree-optimizations/52891
15085 * tree-vect-patterns.c (adjust_bool_pattern): Use
15086 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
15087 but with non-standard precision.
15088
837a549b
JH
150892012-04-22 Jan Hubicka <jh@suse.cz>
15090
54b9f838
RB
15091 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
15092 tree refs.
837a549b 15093
66058468
JH
150942012-04-22 Jan Hubicka <jh@suse.cz>
15095
15096 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
15097 * cgraphbuild.c (record_reference, record_type_list, mark_address,
15098 mark_load, mark_store): Do not mark varpool nodes as needed.
15099 * cgraph.c (cgraph_new_nodes): Remove.
15100 (cgraph_create_function_alias): Do not mark nodes as reachable.
15101 (cgraph_add_thunk): Likewise.
15102 (cgraph_mark_reachable_node): Do not manage the queue.
15103 * cgraph.h (cgraph_node): Remove next_needed.
15104 (varpool_nodes_queue): Remove next_needed and prev_needed.
15105 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
15106 (cgraph_new_nodes): Declare.
15107 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
15108 (varpool_analyze_pending_decls): Remove.
15109 (varpool_analyze_node): New.
15110 (varpool_mark_needed_node): Remove.
15111 (varpool_first_variable, varpool_next_variable): New inlines.
025735b7
UB
15112 (varpool_first_static_initializer, varpool_next_static_initializer):
15113 Update.
66058468
JH
15114 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
15115 (varpool_first_defined_variable): New inline.
15116 (varpool_next_defined_variable): New inline
15117 (FOR_EACH_VARIABLE): Reimplement.
15118 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
15119 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
15120 needed flag.
15121 * cgraphunit.c (cgraph_new_nodes): Declare here.
15122 (enqueue_node): New function.
15123 (cgraph_process_new_functions): update for new
15124 node set; when constructing cgraph enqueue node for processing.
15125 (cgraph_add_new_function): Use new node set.
15126 (process_function_and_variable_attributes): Do not set varpool needed
15127 flags.
15128 (referred_to_p): New function.
15129 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
15130 when varpool is in construction.
15131 (cgraph_analyze_functions): Rewrite.
15132 (cgraph_expand_all_functions): Update.
025735b7
UB
15133 (cgraph_output_in_order): Do not analyze pending decls; do not set
15134 needed flags.
66058468 15135 (cgraph_optimize): Do not analyze pending decls.
025735b7
UB
15136 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
15137 in other partition; do not mark node as needed.
66058468
JH
15138 * dwarf2out.c (reference_to_unused): Use analyzed flag.
15139 (premark_types_used_by_global_vars_helper): Likewise.
15140 * ipa.c (process_references): Do not call varpool_mark_needed_node.
15141 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
15142 cgrpah queues.
15143 (function_and_variable_visibility): Do not mark node as needed.
15144 (whole_program_function_and_variable_visibility): Likewise.
15145 * Makefile.in (gt-varpool.h): No longer needed.
15146 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
15147 (ipa_write_summaries): Do not use needed flag.
15148 * varpool.c: Do not include gt-varpool.h
15149 (x_varpool_nodes_queue, x_varpool_last_needed_node,
15150 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
15151 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
15152 Remove.
15153 (varpool_remove_node): Do not update the lists.
15154 (dump_varpool_node): Do not dump needed flag.
15155 (varpool_enqueue_needed_node): Remove.
15156 (varpool_mark_needed_node): Remove.
15157 (varpool_reset_queue): Remove.
15158 (varpool_finalize_decl): Move to cgraphunit.c
15159 (varpool_analyze_node): New functions based on former
15160 varpool_analyze_pending_decls.
15161 (varpool_analyze_pending_decls): Remove.
15162 (varpool_assemble_decl): Do not update the lists.
15163 (enqueue_node): New function.
15164 (varpool_remove_unreferenced_decls): Rewrite.
15165 (varpool_empty_needed_queue): Remove.
15166 (add_new_static_var): Do not mark node as needed.
15167 (varpool_create_variable_alias): Handle expansion state
15168 creation.
15169 * except.c (output_ttype): Do not mark node as needed.
15170 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
15171 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
15172 Likewise.
15173 * tree-switch-conversion.c (build_one_array): Likewise.
15174
c1771a20
MLI
151752012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15176
15177 PR c/44774
15178 * doc/invoke.texi (pedantic): Rename to Wpedantic.
15179 * common.opt (Wpedantic): New.
15180 (pedantic): Alias Wpedantic.
15181 * diagnostic.c (warning_at): Likewise.
15182 * c-decl.c (diagnose_mismatched_decls): Likewise.
15183 (build_array_declarator): Likewise.
15184 (mark_forward_parm_decls):
15185 (check_bitfield_type_and_width): Likewise.
15186 (grokdeclarator): Likewise.
15187 (grokfield): Likewise.
15188 (finish_struct): Likewise.
15189 (build_enumerator): Likewise.
15190 (store_parm_decls_oldstyle): Likewise.
15191 (declspecs_add_qual): Likewise.
15192 (declspecs_add_type): Likewise.
15193 (finish_declspecs): Likewise.
15194 * c-typeck.c (composite_type): Likewise.
15195 (comp_target_types): Likewise.
15196 (build_array_ref): Likewise.
15197 (pointer_diff): Likewise.
15198 (build_unary_op): Likewise.
15199 (build_conditional_expr): Likewise.
15200 (build_c_cast): Likewise.
15201 (convert_for_assignment): Likewise.
15202 (maybe_warn_string_init): Likewise.
15203 (digest_init): Likewise.
15204 (pop_init_level): Likewise.
15205 (set_init_index): Likewise.
15206 (c_finish_goto_label): Likewise.
15207 (c_finish_return): Likewise.
15208 (do_case): Likewise.
15209 (build_binary_op): Likewise.
15210 * c-parser.c (static): Likewise.
15211 (c_parser_external_declaration): Likewise.
15212 (c_parser_declaration_or_fndef): Likewise.
15213 (c_parser_static_assert_declaration_no_se): Likewise.
15214 (c_parser_enum_specifier): Likewise.
15215 (c_parser_struct_or_union_specifier): Likewise.
15216 (c_parser_struct_declaration): Likewise.
15217 (c_parser_alignas_specifier): Likewise.
15218 (c_parser_braced_init): Likewise.
15219 (c_parser_initelt): Likewise.
15220 (c_parser_compound_statement_nostart): Likewise.
15221 (c_parser_conditional_expression): Likewise.
15222 (c_parser_alignof_expression): Likewise.
15223 (c_parser_postfix_expression): Likewise.
15224 (c_parser_postfix_expression_after_paren_): Likewise.
15225 (c_parser_objc_class_instance_variables): Likewise.
15226 (c_parser_objc_method_definition): Likewise.
15227 (c_parser_objc_methodprotolist): Likewise.
15228
f12e8bd5
ILT
152292012-04-22 Ian Lance Taylor <iant@google.com>
15230
15231 * godump.c (go_output_typedef): Dump size of structs.
15232
69958396 152332012-04-22 Razya Ladelsky <razya@il.ibm.com>
49c45e28
UB
15234
15235 Correcting transform_to_exit_first_loop + fix to PR46886
15236 * tree-parloops.c (transform_to_exit_first_loop): Remove
15237 setting of number of iterations according to the loop pattern.
15238 Duplicate from entry to exit->src instead of loop->latch.
15239 (pallelize_loops): Remove the condition preventing do-while loops.
15240 * tree-cfg.c (bool bb_in_region_p): New.
15241 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
15242 Adjust redirection of the duplicated iteration.
15243
9e412ca3
RS
152442012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
15245
15246 PR bootstrap/53021
15247 * rtl.def (ADDRESS): Use "i" rather than "w".
15248 * rtl.h (find_base_term): Delete.
15249 (may_be_sp_based_p): Declare.
15250 * rtl.c (rtx_code_size): Remove ADDRESS special case.
15251 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
15252 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
15253 * alias.c: ...here.
15254 (find_base_term): Make static.
15255 (may_be_sp_based_p): New function.
15256 * dse.c (record_store): Use it.
15257 * store-motion.c (store_killed_in_insn): Likewise.
15258
1a14ac4b
RS
152592012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
15260
15261 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
15262
ae52741c
MLI
152632012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15264
15265 PR 35441
15266 * c-typeck.c (inform_declaration): New.
15267 (build_function_call_vec): Do not pretty-print
15268 expressions when caret is enabled.
15269 (convert_arguments): Use inform_declaration.
15270
1f36f7b3
JM
152712012-04-20 Jim Meyering <meyering@redhat.com>
15272
15273 * genmodes.c (make_complex_modes): Don't truncate a mode name of
15274 length 7 or more when prepending a "C". Suggested by Richard Guenther.
15275
add6207a
BS
152762012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15277
15278 PR rtl-optimization/44214
15279 * fold-const.c (exact_inverse): New function.
15280 (fold_binary_loc): Fold vector and complex division by constant into
15281 multiply by recripocal with flag_reciprocal_math; fold vector division
15282 by constant into multiply by reciprocal with exact inverse.
15283
ead84f73
JH
152842012-04-20 Jan Hubicka <jh@suse.cz>
15285
49c45e28
UB
15286 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
15287 force flags.
ead84f73
JH
15288 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
15289 (cgraph_remove_node): Update.
15290 (cgraph_mark_needed_node): Remove.
15291 (cgraph_mark_force_output_node): New.
15292 (dump_cgraph_node): Do not dump needed flag.
15293 (cgraph_node_cannot_be_local_p_1): Update.
15294 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
15295 * cgraph.h (symtab_node_base): Add force_output flag.
15296 (cgraph_node): Remove needed flag.
15297 (varpool_node): Remove force_output flag.
15298 (cgraph_mark_needed_node): Remove.
15299 (cgraph_mark_force_output_node): New.
15300 (cgraph_only_called_directly_or_aliased_p,
15301 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
15302 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
15303 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
49c45e28
UB
15304 (cgraph_add_new_function): Update.
15305 (cgraph_mark_if_needed): Update.
ead84f73
JH
15306 (verify_cgraph_node): Update.
15307 (cgraph_analyze_function): Alias target is reachable.
15308 (process_function_and_variable_attributes): Update: externally_visible
15309 flag makes function reachable.
15310 (cgraph_analyze_functions): Update dumping.
15311 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15312 input_overwrite_node, input_varpool_node): Update streaming.
15313 * lto-streamer-out.c (produce_symtab): Use force_output.
15314 * ipa.c (process_references): Weakrefs must be processed.
15315 (cgraph_remove_unreachable_nodes): Likewise; update for new
15316 force_output flag.
49c45e28 15317 (varpool_externally_visible_p): Weakrefs are externally visible
ead84f73
JH
15318 even if they are not.
15319 (function_and_variable_visibility): Update; when processing alias
15320 pair force the targets to be output.
49c45e28
UB
15321 (whole_program_function_and_variable_visility): Use
15322 mark_reachable_node.
ead84f73
JH
15323 * trans-mem.c (ipa_tm_mark_needed_node): Remove
15324 (ipa_tm_mark_force_output_node): New function.
15325 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
49c45e28
UB
15326 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
15327 aliases.
ead84f73
JH
15328 * varasm.c (mark_decl_referenced): Update.
15329 (find_decl_and_mark_needed): Remove.
15330 (find_decl): New function.
15331 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
15332 alias targets as needed.
15333 (dump_tm_clone_pairs): Update.
15334 * tree-inline.c (copy_bb): Update check.
15335 * symtab.c (dump_symtab_base): Dump force_output.
15336 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
15337 * passes.c (execute_todo): Fix dumping.
15338 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
15339 (varpool_analyze_pending_decls): Alias target is reachable.
15340 (varpool_create_variable_alias): Finalize weakrefs.
15341
757e8ba2
JJ
153422012-04-20 Jakub Jelinek <jakub@redhat.com>
15343
15344 PR bootstrap/53021
15345 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
15346 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
15347 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
15348 macros instead of constants.
15349 * dse.c (record_store): Check for SP ADDRESS by comparing
15350 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
15351 XEXP to be stack_pointer_rtx.
15352
faaf273b
RG
153532012-04-20 Richard Guenther <rguenther@suse.de>
15354
15355 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
15356 update_call_from_tree when propagating into a call.
15357
a51e5fa2
AM
153582012-04-20 Alan Modra <amodra@gmail.com>
15359
15360 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
15361 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
15362 sp_offset to frame_off. Move world save code earlier.
15363
4cbc836e
RG
153642012-04-20 Richard Guenther <rguenther@suse.de>
15365
15366 PR tree-optimization/53050
15367 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
15368 Do only one transform on COND_EXPRs at the same time.
15369
efb496b5
JH
153702012-04-19 Jan Hubicka <jh@suse.cz>
15371
15372 * symtab.c (dump_symtab_base): Revert accidental checkin.
15373
7153fab9
AM
153742012-04-20 Alan Modra <amodra@gmail.com>
15375
15376 PR target/53040
15377 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
15378 static chain, set REST_INLINE_FPRS too.
15379
4e0bd6d3
TS
153802012-04-20 Thomas Schwinge <thomas@codesourcery.com>
15381
15382 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
15383 nodes.
15384
552fd8e6
RG
153852012-04-20 Richard Guenther <rguenther@suse.de>
15386
49c45e28
UB
15387 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
15388 loops that can never run more often than the vectorization factor.
552fd8e6 15389
fe0bd630
JH
153902012-04-19 Jan Hubicka <jh@suse.cz>
15391
15392 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
15393
3877ce45
DE
153942012-04-19 David Edelsohn <dje.gcc@gmail.com>
15395
15396 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
15397
75be0217
JM
153982012-04-19 Jim Meyering <meyering@redhat.com>
15399
75be0217
JM
15400 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
15401 We verified above that the string(including trailing NUL) fits in buf,
15402 so just use memcpy.
15403
f68c0487
RG
154042012-04-19 Richard Guenther <rguenther@suse.de>
15405
15406 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
15407 for dumping DECL_SECTION_NAME.
15408
314b662a
MM
154092012-04-19 Michael Matz <matz@suse.de>
15410
15411 PR middle-end/52977
15412 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
15413 (struct tree_vector): Adjust GTY length.
15414 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
15415
15416 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
15417 members.
15418 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
15419 caller emitted the length calulation already.
15420 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
15421 before handling any of the fields for structs.
15422
7c98ec60
RG
154232012-04-19 Richard Guenther <rguenther@suse.de>
15424
15425 PR tree-optimization/53031
15426 * tree-vrp.c (adjust_range_with_scev): Revert back to
15427 using max_loop_iterations.
15428
80f24351
MM
154292012-04-19 Michael Matz <matz@suse.de>
15430
15431 * diagnostic.c (emit_diagnostic): Move va_end call after user
15432 of the va_list.
15433 (warning, warning_at, pedwarn, permerror): Ditto.
15434
d0a854af
RG
154352012-04-19 Richard Guenther <rguenther@suse.de>
15436
15437 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
15438 array access.
15439
20955f5a
GJL
154402012-04-19 Georg-Johann Lay <avr@gjlay.de>
15441
15442 PR target/53033
15443 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
15444 the case *(X+const).
15445
e4eb230d
RR
154462012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15447
15448 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
15449
49c45e28 154502012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
007a787d
CB
15451
15452 PR c/52283/37985
15453 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
15454 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
15455
daa57386
RG
154562012-04-19 Richard Guenther <rguenther@suse.de>
15457
15458 PR rtl-optimization/44688
15459 * loop-iv.c (determine_max_iter): Only return max_iter.
15460 (iv_number_of_iterations): Also use the recorded loop bound
15461 on the maximum number of iterations.
15462 * loop-unroll.c (decide_unroll_runtime_iterations): Use
15463 max_iter to avoid unrolling loops that do not roll.
15464 (decide_unroll_stupid): Likewise.
15465
0cd2402d
SB
154662012-04-18 Steven Bosscher <steven@gcc.gnu.org>
15467
15468 * targhooks.c (default_case_values_threshold): Fix code style nit.
15469
15470 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
15471 case range and type folding from here...
15472 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
809e5f82 15473 type, as documented in tree.def.
0cd2402d 15474
474ffc72
JH
154752012-04-18 Jan Hubicka <jh@suse.cz>
15476
15477 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
15478 Declare.
618107ba 15479 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
474ffc72 15480 cgraph hash and same comdat groups.
49c45e28 15481 (cgraph_optimize): Verify symbol table.
474ffc72
JH
15482 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
15483 (dissolve_same_comdat_group_list): Work on symtab nodes.
15484 (function_and_variable_visibility): Dissolve variable same comdat group
15485 lists, too.
15486 * symtab.c: Include timevar.h
15487 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
15488
308e3ba6
SB
154892012-04-18 Steven Bosscher <steven@gcc.gnu.org>
15490
fade902a
SB
15491 * tree-switch-conversion.c (info): Remove global pass info.
15492 (check_range, check_process_case, check_final_bb, create_temp_arrays,
15493 free_temp_arrays, gather_default_values, build_constructors,
15494 array_value_type, build_one_array, build_arrays, gen_def_assigns,
15495 fix_phi_nodes, gen_inbound_check): Pass info around from ...
15496 (process_switch): ... here. Unify message format. Return a const
15497 char pointer to the failure reason message.
15498 (do_switchconv): Unify message format. Update process_switch usage.
15499
308e3ba6
SB
15500 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
15501 * tree-cfg.c (edge_to_cases): Fix documentation.
15502
27dd0a95
UB
155032012-04-18 Uros Bizjak <ubizjak@gmail.com>
15504
15505 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
15506
b59eee40
BS
155072012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15508
15509 PR tree-optimization/52976
15510 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
15511 (possibly_move_powi): New function.
15512 (rewrite_expr_tree): Call possibly_move_powi.
15513 (rewrite_expr_tree_parallel): Likewise.
15514 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
15515 call add_to_ops_vec instead.
15516
c2723bde
BS
155172012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15518
15519 PR tree-optimization/52976
15520 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
15521 (decrement_power): Likewise.
15522 (propagate_op_to_single_use): Likewise.
15523 (zero_one_operation): Handle __builtin_pow* calls in linearized
15524 expression trees; factor logic into propagate_op_to_single_use.
15525 (undistribute_ops_list): Allow operands with repeat counts > 1.
15526
03fd03d5
RG
155272012-04-18 Richard Guenther <rguenther@suse.de>
15528
15529 PR tree-optimization/44688
15530 * cfgloop.h (record_niter_bound): Declare.
15531 * tree-ssa-loop-niter.c (record_niter_bound): Export.
15532 Update the estimation with the upper bound here...
15533 (estimate_numbers_of_iterations_loop): ... instead of here.
15534 Do not forcefully reset a recorded upper bound.
15535 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
49c45e28 15536 Record the maximum number of loop iterations of the prologue loop.
03fd03d5 15537
5932a4d4
JH
155382012-04-18 Jan Hubicka <jh@suse.cz>
15539
15540 * lto-symtab.c (lto_cgraph_replace_node): Update.
15541 * cgraphbuild.c (record_reference, record_type_list,
15542 record_eh_tables, mark_address, mark_load, mark_store): Update.
15543 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
15544 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
15545 Update.
15546 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
15547 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
15548 * reload.c: Fix typo in comment.
15549 * rtlanal.c: Likewise.
15550 * tree-emultls.c (gen_emutls_addr): Update.
15551 * ipa-reference.c (analyze_function): Update.
15552 * cgraphunit.c (cgraph_analyze_function,
15553 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
15554 Update.
15555 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
15556 (ipa_remove_reference): Likewise.
15557 (ipa_remove_all_refering): Rename to ...
15558 (ipa_remove_all_referring): ... this one; update.
15559 (ipa_dump_references): Update.
15560 (ipa_dump_referring): Update.
15561 (ipa_clone_references): Update.
15562 (ipa_clone_refering): Rename to ...
15563 (ipa_clone_referring): ... this one; update.
15564 (ipa_ref_cannot_lead_to_return): Update.
15565 (ipa_ref_has_aliases_p): Update.
15566 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
15567 forward typedefs.
15568 (ipa_ref_type): Remove.
15569 (ipa_ref_ptr_u): Remove.
15570 (ipa_ref): Remove referencing, refered, refered_index, refering_type
15571 and refered_type; add referring, referred and referred_index.
15572 (ipa_ref_list): Rename refering to referring.
15573 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
15574 ipa_clone_references, ipa_clone_referring): Update prototypes.
15575 * lto-cgraph.c (referenced_from_other_partition_p): Update.
15576 (lto_output_ref): Update.
15577 (add_references): Update.
15578 (input_varpool_node): Update.
15579 (input_refs): Update.
15580 * ipa-ref-inline.h (ipa_ref_node): Update.
15581 (ipa_ref_varpool_node): Update.
49c45e28 15582 (ipa_ref_referring_node): Update.
5932a4d4 15583 (ipa_ref_referring_varpool_node): Update.
49c45e28 15584 (ipa_ref_referring_ref_list): Update.
5932a4d4
JH
15585 (ipa_ref_referred_ref_list): Update.
15586 (ipa_ref_list_first_referring): Update.
15587 (ipa_empty_ref_list): Update.
15588 (ipa_ref_list_refering_iterate): Rename to ...
15589 (ipa_ref_list_referring_iterate): ... this one.
15590 * cse.c: Update comment.
15591 * ipa-utils.c (ipa_reverse_postorder): Update.
15592 * tree-ssa-alias.c: Update.
15593 * ipa-inline.c (reset_edge_caches): Update.
15594 (update_caller_keys): Update.
15595 * ipa-inline.h: Update comments.
15596 * jump.c: Update comment.
15597 * alias.c: Likewise.
15598 * ipa.c (process_references): Update.
15599 (cgraph_remove_unreachable_nodes): Likewise.
15600 (ipa_discover_readonly_nonaddressable_var): Likewise.
15601 (cgraph_address_taken_from_non_vtable_p): Likewise.
15602 * trans-mem.c (ipa_tm_execute): Update.
15603 * simplify-rtx.c: Fix comment.
15604 * rtl.c: Fix comment.
15605 * symtab.c (symtab_unregister_node): Update.
15606 * varpool.c (dump_varpool_node): Update.
15607 (varpool_analyze_pending_decls): Update.
15608 (assemble_aliases): Update.
15609 (varpool_for_node_and_aliases): Update.
15610
421e6082
RG
156112012-04-18 Richard Guenther <rguenther@suse.de>
15612
15613 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
15614 use_undefined_p parameter.
15615 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
15616 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15617 Likewise.
15618 (estimate_numbers_of_iterations): Likewise.
15619 (estimated_loop_iterations): Adjust.
15620 (max_loop_iterations): Likewise.
15621 (scev_probably_wraps_p): Likewise.
15622 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
15623 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
15624 not max_loop_iterations.
15625 (execute_vrp): Remove explicit number of iterations estimation.
15626
6acc8a3c
EI
156272012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
15628
15629 * config/i386/linux-common.h: New.
15630
15631 * config.gcc: Add i386/linux-common.h before
15632 all i386/linux.h and i386/linux64.h usages.
15633
15634 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
15635 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
15636 * config/i386/gnu-user64.h: Likewise.
15637
15638 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
15639 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
15640 (GNU_USER_TARGET_MATHFILE_SPEC): New.
15641 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
15642
8f940ee6
JH
156432012-04-18 Jan Hubicka <jh@suse.cz>
15644
15645 * cgraph.c (cgraph_node_name): Remove.
15646 (dump_cgraph_node): Use dump_symtab_base; reformat.
15647 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
15648 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
15649 Declare.
15650 (cgraph_node_name, varpool_node_name): Remove.
15651 (cgraph_node_asm_name, varpool_node_asm_name,
15652 cgraph_node_name, varpool_node_name): New.
15653 * tree-pass.h (TODO_dump_cgraph): Rename to ...
15654 (TODO_dump_symtab): ... this one.
15655 * ipa-cp (pass_ipa_cp): Update.
15656 * ia-reference.c (generate_summary, read_write_all_from_decl,
15657 propagate, ipa_reference_read_optimization_summary): Update.
15658 * cgraphunit.c (cgraph_analyze_functions): Update.
15659 (cgraph_optimize): Update.
15660 * ipa-ref.c (ipa_dump_references): Update.
15661 (ipa_dump_refering): Update.
15662 * ipa-inline.c (pass_ipa_inline): Update.
15663 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
15664 * ipa.c (pass_ipa_function_visibility,
15665 pass_ipa_whole_program_visibility): Update.
15666 * tree-sra.c (pass_early_ipa_sra): Update.
15667 * symtab.c: Include langhooks.h
15668 (symtab_node_asm_name): New.
15669 (symtab_node_name): New.
15670 (symtab_type_names): New static var.
15671 (dump_symtab_base): New.
15672 (dump_symtab_node, dump_symtab): New.
15673 (debug_symtab_node, debug_symtab): New.
15674 * tree-ssa-structalias.c: Dump symbol table.
15675 * pases.c (execute_todo): Handle TODO_dump_symtab instead
15676 of TODO_dump_cgraph.
15677 * varpoo.c (varpool_node_name): Remove.
15678 (dump_varpool_node): Use dump_symtab_base; reformat.
15679
dae1c90e
MLI
156802012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
15681
49c45e28 15682 * doc/invoke.texi (Language Independent Options): @item should be
dae1c90e
MLI
15683 before @opindex.
15684
f0184d42
RS
156852012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15686
15687 PR bootstrap/53021
15688 * rtl.c (rtx_code_size): Handle ADDRESS.
15689
a60596b8
TV
156902012-04-17 Tom de Vries <tom@codesourcery.com>
15691
15692 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
15693 is not a STMT_LIST.
15694
6c381d9d
UB
156952012-04-17 Uros Bizjak <ubizjak@gmail.com>
15696
15697 PR target/53020
15698 * config/i386/sync.md (atomic_<code><mode>): Rename to
15699 atomic_<logic><mode>.
15700
9fc37b2b
RS
157012012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15702
15703 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
15704 * alias.c (reg_base_value): Expand and update comment.
15705 (arg_base_value): New variable.
15706 (unique_id): Move up file.
15707 (unique_base_value, unique_base_value_p, known_base_value_p): New.
15708 (find_base_value): Use arg_base_value and known_base_value_p.
15709 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
15710 (find_base_term): Use known_base_value_p.
15711 (base_alias_check): Use unique_base_value_p.
15712 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
15713 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
15714
9f89e66e
PH
157152012-04-17 Pat Haugen <pthaugen@us.ibm.com>
15716
15717 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
15718
7d75abc8
MM
157192012-04-17 Michael Matz <matz@suse.de>
15720
15721 PR tree-optimization/18437
15722 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
15723 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
15724 (vect_check_strided_load): Declare.
15725 * tree-vect-data-refs.c (vect_check_strided_load): New function.
15726 (vect_analyze_data_refs): Use it to accept strided loads.
15727 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
15728
efa26eaa
RG
157292012-04-17 Richard Guenther <rguenther@suse.de>
15730
15731 PR middle-end/53011
15732 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
15733 loops when redirecting an entry or latch edge.
15734
d51e8a2d
BS
157352012-04-17 Bernd Schmidt <bernds@codesourcery.com>
15736
15737 * sel-sched.c (sel_global_init): Revert previous change.
15738
d8279b12
RG
157392012-04-17 Richard Guenther <rguenther@suse.de>
15740
15741 * tree-flow.h (array_at_struct_end_p): Move declaration ...
15742 * tree.h (array_at_struct_end_p): ... here.
15743 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
15744 * expr.c (array_at_struct_end_p): ... here. Rewrite.
15745
c5c20c55
SB
157462012-04-17 Steven Bosscher <steven@gcc.gnu.org>
15747
15748 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
15749 COST_TABLE): Remove.
15750 (estimate_case_costs): Remove.
15751 (expand_case): Do not call estimate_case_costs
15752 to set use_cost_table.
15753 (balance_case_nodes): Do not use use_cost_table.
15754
1ab24192
JH
157552012-04-16 Jan Hubicka <jh@suse.cz>
15756
15757 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
15758 (hash_node, eq_node): Remove.
15759 (cgraph_create_node): Do not handle hashtable.
15760 (cgraph_get_node): Remove.
15761 (cgraph_insert_node_to_hashtable): Remove.
15762 (hash_node_by_assembler_name): Remove.
15763 (eq_assembler_name): Remove.
15764 (cgraph_node_for_asm): Rewrite.
15765 (cgraph_find_replacement_node): Break out from ...
15766 (cgraph_remove_node): ... here; do not maintain hashtables.
15767 (change_decl_assembler_name): Remove.
15768 (cgraph_clone_node): Do not maintain hashtables.
15769 * cgraph.h (const_symtab_node): New typedef.
15770 (cgraph_insert_node_to_hashtable): Remove.
15771 (symtab_get_node, symtab_node_for_asm,
15772 symtab_insert_node_to_hashtable): Declare.
15773 (cgraph_find_replacement_node): Declare.
15774 (cgraph_get_node, varpool_get_node): Turn into inlines.
15775 (cgraph, varpool): Work sanely on NULL pointers.
15776 (FOR_EACH_SYMBOL): New walker.
15777 * ipa-inline-transform.c (save_inline_function_body): Use
15778 symtab_insert_node_to_hashtable.
15779 * symtab.c: Include ggc.h and diagnostics.h
15780 (symtab_hash, assembler_name_hash): New static vars;
15781 (hash_node, eq_node, hash_node_by_assembler_name,
15782 eq_assembler_name, insert_to_assembler_name_hash,
15783 unlink_from_assembler_name_hash): New.
15784 (symtab_register_node): Update hashtables.
15785 (symtab_insert_node_to_hashtable): New.
15786 (symtab_unregister_node): Update hashtables.
15787 (symtab_get_node): New.
15788 (symtab_node_for_asm): New.
15789 (change_decl_assembler_name): New.
15790 * Makefile.in (symtab.o): Needs GTY.
15791 * varpool.c (varpool_hash): Remove.
15792 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
15793 (varpool_node): Rewrite using varpool_get_node.
15794 (varpool_remove_node): DO not maintain hashtables.
49c45e28 15795 (varpool_node_for_asm): Rewrite.
1ab24192 15796
0d63b643
SL
157972012-04-16 Sandra Loosemore <sandra@codesourcery.com>
15798
15799 * doc/invoke.texi: Copy-edit to put verbs in the present tense
15800 when describing the current behavior of GCC.
15801
6b338d0a
RS
158022012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
15803
15804 * genemit.c (gen_exp): Remove ADDRESS handling.
15805 * genoutput.c (scan_operands): Likewise.
15806 * genpeep.c (match_rtx): Likewise.
15807 * genrecog.c (add_to_sequence): Likewise.
15808
a0bc8f9c
DE
158092012-04-16 David Edelsohn <dje.gcc@gmail.com>
15810
49c45e28 15811 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
a0bc8f9c 15812
36e57e16
MJ
158132012-04-16 Martin Jambor <mjambor@suse.cz>
15814
15815 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
15816 bit-fields.
15817
d6cb05db
UW
158182012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
15819
15820 PR target/51819
15821 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
15822 hints for 'A' operand types.
15823
2aae7680
JH
158242012-04-16 Jan Hubicka <jh@suse.cz>
15825
15826 * cgraph.h (symtab_node_base): Add next and previous pointers.
15827 (cgraph_node): Remove next and preivous pointers.
15828 (varpool_node): Likewise; remove next/previous GTY marker;
15829 it is not type safe.
15830 (symtab_node_def): Update GTY marker
15831 (x_cgraph_nodes, cgraph_nodes): Remove.
15832 (symtab_nodes): New function.
15833 (cgraph_order): Rename to ...
15834 (symtab_order): ... this one.
15835 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
15836 Declare.
15837 (x_varpool_nodes, varpool_nodes): Remove.
15838 (FOR_EACH_STATIC_VARIABLE): Update.
15839 (symtab_function_p, symtab_variable_p): New function.
15840 (FOR_EACH_VARIABLE): Update.
15841 (varpool_first_variable, varpool_next_variable): New functions.
15842 (FOR_EACH_VARIABLE): Update.
15843 (cgraph_first_defined_function): Update.
15844 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
15845 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
15846 (cgraph_first_function, cgraph_next_function): New.
15847 (FOR_EACH_FUNCTION): Update.
15848 (cgraph_first_function_with_gimple_body,
15849 cgraph_next_function_with_gimple_body): Update.
15850 * symtab.c: New file.
15851 * cgraph.c: Update copyright dates.
15852 (x_cgraph_nodes, cgraph_order): Remove.
15853 (NEXT_FREE_NODE): Update.
15854 (SET_NEXT_FREE_NODE): New.
15855 (cgraph_create_node_1): Remove common code.
49c45e28 15856 (cgraph_create_node): Remove common code; call symtab_register_node.
2aae7680 15857 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
49c45e28 15858 (cgraph_add_asm_node): Update.
2aae7680
JH
15859 (cgraph_clone_node): Register new node.
15860 * cgraphunit.c (process_function_and_variable_attributes): Update.
15861 (cgraph_analyze_functions): Update.
15862 (cgraph_analyze_functions): Update.
15863 (cgraph_output_in_order): Update.
49c45e28
UB
15864 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
15865 Update.
15866 * ipa-inline.c (recursive_inlining): Update.
15867 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
2aae7680
JH
15868 * ipa.c (cgraph_remove_unreachable_nodes): Update.
15869 * Makefile.in: Add symtab.o
15870 * varpool.c (x_varpool_nodes): Remove
15871 (varpool_node): Remove common code; call symtab_register_node.
49c45e28 15872 (varpool_remove_node): Remove common code; call symtab_unregister_node.
2aae7680 15873
ac9a074c
RG
158742012-04-16 Richard Guenther <rguenther@suse.de>
15875
15876 PR middle-end/52977
15877 * tree.h (VECTOR_CST_NELTS): Adjust.
15878 (struct tree_vector): Add explicit length field.
15879 (make_vector_stat): Declare.
15880 (make_vector): Define.
15881 * tree.c (make_vector_stat): New function.
15882 (build_vector_stat): Use it.
15883 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
15884
fba62120
BS
158852012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15886
15887 PR tree-optimization/52976
15888 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
15889 (undistribute_ops_list): Ops with repeat counts aren't eligible for
15890 undistribution.
15891 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
15892
65c70e6b
JH
158932012-04-16 Jan Hubicka <jh@suse.cz>
15894
15895 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
15896 New macros.
15897 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
15898 walkers to walk cgraph and varpool.
15899 * cgraph.c (cgraph_node_for_asm): Likewise.
15900 (dump_cgraph): Likewise.
15901 * value-prof.c (init_node_map): Likewise.
15902 * tree.c (free_lang_data_in_cgraph): Likewise.
15903 * tree-emutls.c: (ipa_lower_emutls): Likewise.
15904 * ipa-reference.c (generate_summary, propagate): Likewise.
15905 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
15906 cgraph_mark_functions_to_output, cgraph_output_in_order,
15907 output_weakrefs, cgraph_materialize_all_clones,
15908 cgraph_optimize): Likewise.
15909 * lto-cgraph.c (merge_profile_summaries): Likewise.
15910 (input_cgraph): Likewise.
15911 * ipa-pure-const.c (generate_summary): Likewise.
15912 (propagate): Likwise.
15913 * ipa-utils.c (ipa_reduced_postorder): Likewise.
15914 (ipa_free_postorder_info): Likewise.
15915 (ipa_reverse_postorder): Likewise.
15916 * ipa-inline.c (ipa_inline): Likewise.
15917 * matrix-reorg.c (find_matrices_decl): Likewise.
15918 (matrix_reorg): Likewise.
15919 * tree-vectorizer.c (increase_alignment): Likewise.
15920 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
15921 (function_and_variable_visibility): Likewise.
15922 (whole_program_function_and_variable_visibility): Likewise.
15923 (ipa_cdtor_merge): Likewise.
15924 * trans-mem.c (ipa_tm_execute): Likewise.
15925 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
15926 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
15927 (ipa_print_all_params): Likewise.
15928 (ipa_update_after_lto_read): Likewise.
15929 * tree-profie.c (tree_profiling): Likewise.
15930 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
15931 * passes.c (dump_passes): Likewise.
15932 (do_per_function): Likewise.
15933 (ipa_write_summaries): Likewise.
15934 * varpool.c (dump_varpool): Likewise.
15935 (varpool_node_for_asm): Likewise.
15936 (varpool_assemble_pending_decls): Likewise.
15937
8b7db259
RG
159382012-04-16 Richard Guenther <rguenther@suse.de>
15939
15940 PR tree-optimization/52975
15941 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
15942 condition but always mark it with TRUTH_NOT_EXPR.
6c381d9d 15943
2515d916
RG
159442012-04-16 Richard Guenther <rguenther@suse.de>
15945
15946 PR tree-optimization/52975
15947 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
15948 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
15949 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
15950 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
15951
8861ba4d
UB
159522012-04-14 Uros Bizjak <ubizjak@gmail.com>
15953
15954 * config/i386/sse.md (ssse3_plusminus): New code iterator.
15955 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
15956 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
15957 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
15958 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
15959 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
15960 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
15961
15962 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
15963 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
15964 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
15965 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
15966 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
15967 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
15968
15969 (xop_plus): New code iterator.
15970 (macs): New code attribute.
15971 (macds): Ditto.
15972 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
15973 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
15974 iterator.
15975 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
15976 xop_plus code iterator.
15977 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
15978 xop_plus code iterator.
15979 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
15980 xop_plus code iterator.
15981 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
15982 xop_plus code iterator.
15983
15984 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
15985 any_extend code iterator.
15986 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
15987 any_extend code iterator.
15988 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
15989 any_extend code iterator.
15990 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
15991 any_extend code iterator.
15992 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
15993 any_extend code iterator.
15994 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
15995 any_extend code iterator.
15996
03fbe718
TV
159972012-04-14 Tom de Vries <tom@codesourcery.com>
15998
15999 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
16000 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
16001 DELETED_LABEL note, and move it to ...
16002 * cfgrtl.c (delete_insn): ... here. Change return type to void.
16003 (delete_insn_and_edges): Likewise.
16004 (delete_insn_chain): Handle new return type of delete_insn. Delete
16005 chain backwards rather than forwards.
16006 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
16007 void.
16008 * cfglayout.c (fixup_reorder_chain): Delete unused label.
16009
960bfb69
JH
160102012-04-14 Jan Hubicka <jh@suse.cz>
16011
16012 * cgraph.h: Update copyrights;
16013 (symtab_node): Turn to union typedef.
16014 (symtab_node_base): New structure.
16015 (symtab_type): Add SYMTAB_SYMBOL tag.
16016 (cgraph_node): Annotate some pinters with nested_ptr.
16017 (varpool_node): Likewise.
16018 (cgraph_local_info): Remove lto_file_data
16019 and externally_visible.
16020 (cgraph_node): Remove decl; same_comdat_group list;
16021 aux; ref_list; order; address_taken; reachable_from_other_parittion,
16022 in_other_partition; resolution.
16023 (varpool_node): Remove decl; same_comdat_group;
16024 ref_list; lto_file_data; aux; order; resolution; externally_visible;
16025 used_from_other_partition; in_other_partition.
49c45e28 16026 (symtab_node_def): New union.
960bfb69
JH
16027 (cgraph, varpool): Update.
16028 (varpool_first_static_initializer, varpool_next_static_initializer,
16029 cgraph_only_called_directly_or_aliased_p,
16030 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
16031 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
16032 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
16033 field references.
16034 * cgraph.c: Likewise.
16035 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
16036 * cgraphbuild.c: Likewise.
16037 * lto-symtab.c: Likewise.
16038 * c-gimplify.c: Likewise.
16039 * value-prof.c: Likewise.
16040 * tree.c: Likewise.
16041 * ipa-cp.c: Likewise.
16042 * tree-emutls.c: Likewise.
16043 * ipa-inline-transform.c: Likwise.
16044 * ipa-reference.c: Likewise.
16045 * cgraphunit.c: Likewise.
16046 * ipa-ref.c: Likewise.
16047 * lto-cgraph.c: Likewise.
16048 * ipa-ref-inline.h: Likewise.
16049 * ipa-pure-const.c: Likewise.
16050 * lto-streamer-out.c: Likewise.
16051 * ipa-utils.c: Likewise.
16052 * ipa-inline.c: Likewise.
16053 * matrix-reorg.c: Likewise.
16054 * tree-eh.c: Likewise.
16055 * tree-vectorizer.c: Likewise.
16056 * ipa-split.c: Likewise.
16057 * ipa.c: Likewise.
16058 * trans-mem.c: Likewise.
16059 * ipa-inline-analysis.c: Likewise.
16060 * gimplify.c: Likewise.
16061 * cfgexpand.c: Likewise.
16062 * tree-sra.c: Likewise.
16063 * ipa-prop.c: Likewise.
16064 * varasm.c: Likewise.
16065 * tree-nested.c: Likewise.
16066 * tree-inline.c: Likewise.
16067 * tree-profile.c: Likewise.
16068 * tree-ssa-structalias.c: Likewise.
16069 * passes.c: Likewise.
16070 * varpool.c: Likewise.
16071
b2b2f160
TV
160722012-04-14 Tom de Vries <tom@codesourcery.com>
16073
16074 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
16075 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
16076 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
16077 of find_edge.
16078 (gsi_advance_fw_nondebug_nonlocal): New function.
16079 (local_def): Removed function.
16080 (same_succ_hash): Use stmt_local_def.
16081 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
16082 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
16083
6573c644
L
160842012-04-13 H.J. Lu <hongjiu.lu@intel.com>
16085
16086 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
16087 and __ILP32__ for x32.
16088
8e8483e6
MJ
160892012-04-13 Martin Jambor <mjambor@suse.cz>
16090
16091 PR middle-end/52939
16092 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
16093 fold_ctor_reference returns a zero constant.
16094
70a69509
EI
160952012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
16096
16097 * config.gcc: Add i386/gnu-user-common.h before all
16098 i386/gnu-user.h and i386/gnu-user64.h usages.
16099
16100 * config/i386/gnu-user-common.h: New.
16101
16102 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
16103 (CC1_SPEC): Likewise.
16104 (ENDFILE_SPEC): Likewise.
16105 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
16106 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
16107 (TARGET_OS_CPP_BUILTINS): Likewise.
16108 (LIBGCC2_HAS_TF_MODE): Likewise.
16109 (LIBGCC2_TF_CEXT): Likewise.
16110 (TF_SIZE): Likewise.
16111 (TARGET_ASM_FILE_END): Likewise.
16112 (STACK_CHECK_MOVING_SP): Likewise.
16113 (STACK_CHECK_STATIC_BUILTIN): Likewise.
16114 * config/i386/gnu-user64.h: Likewise.
16115
65dc645a
MJ
161162012-04-13 Martin Jambor <mjambor@suse.cz>
16117
16118 * expr.c (expand_expr_real_1): Pass type, not the expression, to
16119 set_mem_attributes for a memory temporary. Do not call the function
16120 for the memory temporary created for a bitfield.
16121
1adbb361
AO
161222012-04-13 Alexandre Oliva <aoliva@redhat.com>
16123
16124 PR debug/48866
16125 * df.h (enum debug_temp_where): New.
16126 (dead_debug_init, dead_debug_finish) Declare.
16127 (dead_debug_add, dead_debug_insert_temp): Declare.
16128 (struct dead_debug_use, struct dead_debug): Moved from...
16129 * df-problems.c: ... here.
16130 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
16131 to a debug temp.
16132 (df_create_unused_note): Likewise.
16133 (df_set_dead_notes_for_mw): Move comment where it belongs.
16134 (dead_debug_init): Export.
16135 (dead_debug_reset_uses): New, factored out of...
16136 (dead_debug_finish): ...this. Export.
16137 (dead_debug_reset): Remove.
16138 (dead_debug_add): Export.
16139 (dead_debug_insert_before): Rename to...
16140 (dead_debug_insert_temp): ... this. Add where argument. Export.
16141 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
16142 Return insertion count.
16143 (df_note_bb_compute): Adjust.
16144 * dce.c (word_dce_process_block): Adjust dead debug uses.
16145 (dce_process_block): Likewise.
16146
6ae1d471
AO
161472012-04-13 Alexandre Oliva <aoliva@redhat.com>
16148
16149 * df-problems.c (df_note_bb_compute): Do not take note of
16150 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
16151
6a184afa
AO
161522012-04-13 Alexandre Oliva <aoliva@redhat.com>
16153
16154 PR debug/51570
16155 * var-tracking.c (expand_depth): New type.
16156 (onepart_aux, expand_loc_callback_data): Change depth type to it.
16157 (loc_exp_dep_alloc): Adjust initializer.
16158 (update_depth): Use new type. Add entryvals.
16159 (vt_expand_var_loc_chain): Take note of expansions with
16160 ENTRY_VALUEs, but don't accept them right away. Run an optional
16161 second pass accepting the minimum ENTRY_VALUE count found in the
16162 first pass.
16163 (vt_expand_loc_callback, INIT_ELCD): Adjust.
16164
46301137
TV
161652012-04-13 Tom de Vries <tom@codesourcery.com>
16166
16167 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
16168 parameters vuse and vuse_escaped.
16169 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
16170 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
16171 vuse1 != vuse2.
16172
95df37bf
RG
161732012-04-13 Richard Guenther <rguenther@suse.de>
16174
16175 PR tree-optimization/52969
16176 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
16177 the condition for the COND_EXPR and handle predicate negation
16178 by swapping the COND_EXPR arms.
16179
7911cc9e
NC
161802012-04-13 Nick Clifton <nickc@redhat.com>
16181
16182 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
16183 TODO_dump_func flag.
16184
d66b8f4b
AB
161852012-04-13 Andrey Belevantsev <abel@ispras.ru>
16186
16187 PR rtl-optimization/52203
16188 PR rtl-optimization/52715
16189
16190 Revert the 2012-03-07 fix for PR 52203.
16191 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
16192 the insn does not modify DFA right before issuing, adjust
16193 issue_rate accordingly.
16194
1e867b22
RG
161952012-04-13 Richard Guenther <rguenther@suse.de>
16196
16197 PR c/52549
16198 * c-typeck.c (pointer_diff): Remove bogus assert.
16199
09c2b6d0
RG
162002012-04-13 Richard Guenther <rguenther@suse.de>
16201
16202 PR c/52862
8861ba4d 16203 * convert.c (convert_to_pointer): Remove special-casing of zero.
09c2b6d0 16204
572a49c8
JY
162052012-04-13 Joey Ye <joey.ye@arm.com>
16206
16207 * config/arm/constraints.md (Pe): New constraint.
16208 * config/arm/arm.md: New split for imm 256-510.
16209
50f75124
TG
162102012-04-13 Terry Guo <terry.guo@arm.com>
16211
16212 * config/arm/arm-cores.def: Added core cortex-m0plus.
16213 * config/arm/arm-tune.md: Regenerated.
16214 * config/arm/arm-tables.opt: Regenerated.
16215 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
16216
e8e029df
AM
162172012-04-13 Alan Modra <amodra@gmail.com>
16218
16219 PR target/52828
16220 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
16221 tie regs on destination of sets. Delete forward declaration.
16222 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
16223 (rs6000_emit_prologue): Likewise.
16224 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
16225 and gen_stack_tie.
16226 (is_mem_ref): Use tie_operand to recognise stack ties.
16227 * config/rs6000/predicates.md (tie_operand): New.
16228 * config/rs6000/rs6000.md (restore_stack_block): Generate new
16229 stack tie rtl.
16230 (restore_stack_nonlocal): Likewise.
16231 (stack_tie): Update.
16232 (frame_tie): Delete.
16233
1ede5f2c
BS
162342012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16235
16236 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
16237 HOST_WIDE_INT_PRINT_DEC in format strings.
16238
2ff5ea2d
UB
162392012-04-12 Uros Bizjak <ubizjak@gmail.com>
16240
16241 PR target/52932
16242 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
16243 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
16244 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
16245 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
16246 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
16247 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
16248 avx2_permvarv8si using VI4F_256 mode iterator.
16249 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
16250 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
16251 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
16252 gen_avx2_permvarv8sf.
16253 (expand_vec_perm_pshufb): Ditto.
16254
c3f8384f
MM
162552012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16256
16257 PR target/52775
16258 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
16259 the list of options to enable the FCFID instruction.
16260 (TARGET_EXTRA_BUILTINS): Adjust comment.
16261
a6f8851e
BS
162622012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16263
16264 PR tree-optimization/18589
16265 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
16266 (operand_entry): Add count field.
16267 (add_repeat_to_ops_vec): New function.
16268 (completely_remove_stmt): Likewise.
16269 (remove_def_if_absorbed_call): Likewise.
16270 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
16271 (acceptable_pow_call): New function.
16272 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
16273 entries with repeat counts when found.
16274 (repeat_factor_d): New struct and associated typedefs.
16275 (repeat_factor_vec): New static vector variable.
16276 (compare_repeat_factors): New function.
16277 (get_reassoc_pow_ssa_name): Likewise.
16278 (attempt_builtin_powi): Likewise.
16279 (reassociate_bb): Call attempt_builtin_powi.
16280 (fini_reassoc): Two new calls to statistics_counter_event.
16281
452aa9c5
RG
162822012-04-12 Richard Guenther <rguenther@suse.de>
16283
16284 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
16285 * cgraph.h (tree_rest_of_compilation): Remove.
16286 * cgraph.c (cgraph_add_new_function): Move ...
16287 * cgraphunit.c (cgraph_add_new_function): ... here.
16288 (tree_rest_of_compilation): Make static.
16289 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
16290 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
16291 gate_all_early_local_passes, execute_all_early_local_passes,
16292 pass_early_local_passes, gate_all_early_optimizations,
16293 pass_all_early_optimizations): Move ...
16294 * passes.c (gate_all_optimizations, pass_all_optimizations,
16295 gate_all_early_local_passes, execute_all_early_local_passes,
16296 pass_early_local_passes, gate_all_early_optimizations,
16297 pass_all_early_optimizations): ... here.
16298 * tree-optimize.c (execute_free_datastructures): Remove.
16299 * tree-flow.h (execute_free_datastructures): Remove.
16300 * tree-optimize.c (execute_init_datastructures,
16301 pass_init_datastructures): Move ...
16302 * tree-ssa.c (execute_init_datastructures,
16303 pass_init_datastructures): ... here.
16304 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
16305 execute_free_datastructures.
16306
acf41a74
BS
163072012-04-12 Bernd Schmidt <bernds@codesourcery.com>
16308
16309 * dbgcnt.def (ira_move): New counter.
16310 * ira-int.h (ira_create_new_reg): Declare function.
16311 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
16312 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
16313 no longer static. All callers changed.
16314 * ira.c: Include "dbgcnt.h".
16315 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
16316 move_unallocated_pseudos): New static functions.
16317 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
16318 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
16319 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
16320 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
16321 to the pseudos generated in find_moveable_pseudos.
16322 * Makefile.in (ira.o): Add $(DBGCNT_H).
16323
5f1fab58
RG
163242012-04-12 Richard Guenther <rguenther@suse.de>
16325
16326 PR tree-optimization/52943
16327 * tree-chrec.h (chrec_is_positive): Remove.
16328 * tree-scalar-evolution.c (chrec_is_positive): Move ...
16329 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
16330 Return false for a constant zero instead of negative.
16331 (analyze_siv_subscript_cst_affine): Handle zero difference
16332 in the initial condition explicitely.
16333
e5b332cd
RG
163342012-04-12 Richard Guenther <rguenther@suse.de>
16335
16336 * tree-parloops.c (parallelize_loops): Also consult the upper
16337 bound for the number of iterations.
16338 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
16339 (loop_prefetch_arrays): Likewise.
16340
652c4c71
RG
163412012-04-12 Richard Guenther <rguenther@suse.de>
16342
16343 * cfgloop.h (estimated_loop_iterations_int): Ditch
16344 'conservative' parameter.
16345 (max_stmt_executions_int): Likewise.
16346 (estimated_loop_iterations): Likewise.
16347 (max_stmt_executions): Likewise.
16348 (max_loop_iterations): Declare.
16349 (max_loop_iterations_int): Likewise.
16350 (estimated_stmt_executions): Likewise.
16351 (estimated_stmt_executions_int): Likewise.
16352 * tree-ssa-loop-niter.c (estimated_loop_iterations):
16353 Split parts to ...
16354 (max_loop_iterations): ... this.
16355 (estimated_loop_iterations_int): Split parts to ...
16356 (max_loop_iterations_int): ... this.
16357 (max_stmt_executions_int): Split parts to ...
16358 (estimated_stmt_executions_int): ... this.
16359 (max_stmt_executions): Split parts to ...
16360 (estimated_stmt_executions): ... this.
16361 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
16362 * predict.c (predict_loops): Likewise.
16363 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
16364 (analyze_siv_subscript_cst_affine): Likewise.
16365 (compute_overlap_steps_for_affine_1_2): Likewise.
16366 (analyze_subscript_affine_affine): Likewise.
16367 (init_omega_for_ddr_1): Likewise.
16368 * tree-parloops.c (parallelize_loops): Likewise.
16369 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
16370 (may_eliminate_iv): Likewise.
16371 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
16372 (loop_prefetch_arrays): Likewise.
16373 * tree-vrp.c (adjust_range_with_scev): Likewise.
16374
23d0939b
OE
163752012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
16376
16377 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
16378 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
16379 Fix line width.
16380 (dump_table): Use bool type for need_align and have_df variables.
16381 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
16382 (regs_used): Remove register modifier.
16383 (barrier_align): Move variables slot, credit, jump_to_next
16384 into if block above for loop. Use bool type for jump_to_next.
16385 (sh_function_arg): Use NULL_RTX instead of 0.
16386
dee16055
AS
163872012-04-11 Andreas Schwab <schwab@linux-m68k.org>
16388
16389 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
16390 (bswapsi2): New expander.
16391
98bf0377
L
163922012-04-11 H.J. Lu <hongjiu.lu@intel.com>
16393
16394 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
16395 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
16396
de6f3f7a
L
163972012-04-11 H.J. Lu <hongjiu.lu@intel.com>
16398
16399 PR rtl-optimization/52876
16400 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
27dd0a95 16401 Don't call mark_reg_pointer for incompatible pointer sign extension.
de6f3f7a 16402
dee16055 16403 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
de6f3f7a
L
16404 directly.
16405
d3ea1dbd
BS
164062012-04-11 Bernd Schmidt <bernds@codesourcery.com>
16407
16408 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
16409 comparisons against TYPE_PRECISION.
16410 * tree-ssa-forwprop.c (combine_conversions): Likewise.
16411
c634f4ba
XDL
164122012-04-11 Xinliang David Li <davidxl@google.com>
16413
16414 * tree-passes.h: Remove TODO_dump_func.
16415 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
16416 * trans-mem.c: Remove TODO_dump_func.
16417 * ira.c: Remove TODO_dump_func.
16418
ed6205b7
L
164192012-04-11 H.J. Lu <hongjiu.lu@intel.com>
16420
16421 * config/i386/i386.c (ix86_option_override_internal): Check
16422 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
16423 after TARGET_64BIT is updated.
16424
a1fa0e6c
OE
164252012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
16426
16427 * config/sh/sh.h: Remove old secondary reload code.
16428
e6b8b8c7
OE
164292012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
16430
16431 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
16432 (ready_reorder): ... this function.
16433
7861732f
BS
164342012-04-11 Bernd Schmidt <bernds@codesourcery.com>
16435
16436 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
16437 sched_init calls.
16438
05641603
BS
16439 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
16440 insns so that no other insn is queued for a time before them.
16441
0c51653d
BS
16442 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
16443 unknown.
16444
754870ed
RG
164452012-04-11 Richard Guenther <rguenther@suse.de>
16446
16447 PR middle-end/52621
16448 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
16449 consider loop nesting.
16450 (evolution_function_is_univariate_p): Properly check the remainder
16451 for chrecs.
16452
405af656
RG
164532012-04-11 Richard Guenther <rguenther@suse.de>
16454
16455 PR middle-end/52918
2ff5ea2d 16456 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
405af656 16457
cf5025b6
NC
164582012-04-11 Nick Clifton <nickc@redhat.com>
16459
16460 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
16461 information, if requested.
16462
84e60183
NC
16463 * config/rx/rx.c (rx_expand_prologue): Likewise.
16464
7bc14a04
PB
164652012-04-11 Peter Bergner <bergner@vnet.ibm.com>
16466 Michael Matz <matz@suse.de>
16467
16468 PR target/16458
16469 * rtlanal.c (unsigned_reg_p): New function.
16470 Update copyright notice dates.
16471 * rtl.h (unsigned_reg_p): Prototype it.
16472 Update copyright notice dates.
16473 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
16474 Update comment.
16475 * expr.c (expand_expr_real_1): Set register attributes.
16476 * stmt.c (expand_case): Likewise.
16477
8c2a3f3b
OE
164782012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
16479
16480 PR target/50751
16481 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
16482 consider_sh2a and allow_zero.
16483 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
16484 (disp_addr_displacement): New function.
16485 (sh_address_cost): Use disp_addr_displacement function instead
16486 of DISP_ADDR_OFFSET.
16487 (sh_legitimate_address_p): Adapt to changed
16488 sh_legitimate_index_p declaration.
16489 (sh_find_mov_disp_adjust): Remove HImode check.
16490 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
16491 disp_addr_displacement and max_mov_insn_displacement.
16492 (max_mov_insn_displacement): Remove HImode check.
cf5025b6 16493 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
8c2a3f3b
OE
16494 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
16495 * config/sh/constraints.md (K05, K13): New constraints.
16496 (K12): Correct comment.
16497 (Sdd): Do not use DISP_ADDR_P macro.
16498 (Snd, Sbw): Use satisfies_constraint_Sdd.
16499 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
16500 (*extendhisi2_compact, movhi_i): Remove.
16501 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
16502 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
16503 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
16504 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
16505 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
16506 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
16507 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
16508 CONST_OK_FOR_Kxx.
16509 Add new peepholes for HImode displacement addressing.
16510
32ed5fcc
OE
165112012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
16512
16513 * config/sh/sh.h (SIDI_OFF): Remove.
16514 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
16515 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
16516 or operand_subword.
16517
ac868f29
EB
165182012-04-11 Eric Botcazou <ebotcazou@adacore.com>
16519
16520 PR target/52624
16521 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
16522 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
16523 * doc/md.texi (Standard Names): Add bswap.
16524 * builtin-types.def (BT_UINT16): New primitive type.
16525 (BT_FN_UINT16_UINT16): New function type.
16526 * builtins.def (BUILT_IN_BSWAP16): New.
16527 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
16528 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
16529 expand_builtin_bswap.
16530 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
16531 (fold_builtin_1): Likewise.
16532 (is_inexpensive_builtin): Likewise.
16533 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
16534 missing bits for bswap to libcall code.
16535 * tree.c (build_common_tree_nodes): Build uint16_type_node.
16536 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
16537 (uint16_type_node): New define.
16538 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
16539 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
16540 above builtin.
16541 (rs6000_init_builtins): Likewise.
16542 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
16543
ada37101
TG
165442012-04-11 Tristan Gingold <gingold@adacore.com>
16545
16546 * doc/extend.texi (Type Attributes): Move paragraph.
16547
9fec0042
MLI
165482012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16549
16550 PR 24985
dee16055 16551 * diagnostic.h (show_caret): Declare.
9fec0042
MLI
16552 (caret_max_width): Declare.
16553 (diagnostic_show_locus): Declare.
dee16055
AS
16554 * diagnostic.c (diagnostic_initialize): Initialize to false.
16555 (diagnostic_show_locus): New.
16556 (diagnostic_report_diagnostic): Call it.
9fec0042
MLI
16557 (getenv_columns): New.
16558 (adjust_line): New.
16559 (diagnostic_set_caret_max_width): New.
dee16055 16560 * input.c (read_line): New.
9fec0042 16561 (location_get_source_line): New.
dee16055
AS
16562 * input.h (location_get_source_line): Declare.
16563 * toplev.c (general_init): Initialize show_caret from options.
16564 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
16565 * opts.c (common_handle_option): Likewise.
9fec0042
MLI
16566 * pretty-print.h (pp_get_prefix): New.
16567 (pp_base_get_prefix): New.
dee16055 16568 * common.opt (fdiagnostics-show-caret): New option.
9fec0042
MLI
16569 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
16570
13a7578b
RG
165712012-04-11 Richard Guenther <rguenther@suse.de>
16572
16573 PR rtl-optimization/52881
16574 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
16575
12df9a2f
RG
165762012-04-11 Richard Guenther <rguenther@suse.de>
16577
16578 PR tree-optimization/52912
16579 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
16580 manipulation code we are threading through a loop header
16581 to an exit destination.
16582
fd4116f4
MLI
165832012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
16584
16585 * tree.h (warn_if_unused_value): Move declaration from here.
16586 * stmt.c (warn_if_unused_value): Move definition from here.
16587
8ca92d04 165882012-04-10 Michael Matz <matz@suse.de>
0d0293ac
MM
16589
16590 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
16591 grouped_stores.
16592 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
16593 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
16594 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
16595 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
16596 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
16597 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
16598 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
16599 (vect_record_strided_load_vectors): Rename to
16600 vect_record_grouped_load_vectors.
16601 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
16602 Rename use of above macros.
16603 (vect_verify_datarefs_alignment): Ditto.
16604 (vector_alignment_reachable_p): Ditto.
16605 (vect_peeling_hash_get_lowest_cost): Ditto.
16606 (vect_enhance_data_refs_alignment): Ditto.
16607 (vect_analyze_group_access): Ditto and rename stride to groupsize.
16608 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
16609 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
16610 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
16611 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
16612 (vect_record_strided_load_vectors): Rename to
16613 vect_record_grouped_load_vectors.
16614 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
16615 (destroy_loop_vec_info): Ditto.
16616 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
16617 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
16618 (vect_analyze_slp): Ditto.
16619 (new_bb_vec_info): Ditto.
16620 (destroy_bb_vec_info): Ditto.
16621 (vect_schedule_slp_instance): Ditto and rename strided_store to
16622 grouped_store.
16623 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
16624 vect_cost_group_size.
16625 (vect_model_store_cost): Rename use of above macros and call
16626 to vect_cost_strided_group_size.
16627 (vect_model_load_cost): Ditto.
16628 (vectorizable_store): Ditto, rename strided_store to grouped_store
16629 and calls to renamed tree-vectorizer.h functions.
16630 (vectorizable_load): Ditto.
16631 (vect_transform_stmt): Rename use of above macros and strided_store
16632 to grouped_store.
16633
1f00098b
JH
166342012-04-10 Jan Hubicka <jh@suse.cz>
16635
16636 * cgraph.h: Remove misledaing comment on ipa-ref.h.
16637 (symtab_type): New enum.
16638 (symtab_node): New structure.
16639 (cgraph_node, varpool_node): Add symbol base type.
16640 (cgraph, varpool): New accestor functions.
16641 * cgraph.c (cgraph_create_node_1): Set symbol type.
16642 * varpool.c (varpool_node): Set symbol type.
16643
ca18edc5
UW
166442012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
16645 Richard Sandiford <rdsandiford@googlemail.com>
16646
16647 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
16648
e30459d5
RG
166492012-04-10 Richard Guenther <rguenther@suse.de>
16650
16651 PR middle-end/52888
16652 * gimple-low.c (gimple_check_call_args): Properly account for
16653 compatible aggregate types.
16654
0878843f
RG
166552012-04-10 Richard Guenther <rguenther@suse.de>
16656
16657 * toplev.h (tree_rest_of_compilation): Remove.
16658 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16659 * cgraph.h (tree_rest_of_compilation): Declare.
16660 * tree-optimize.c (tree_rest_of_compilation): Move ...
16661 * cgraphunit.c (tree_rest_of_compilation): ... here.
16662 * cgraph.c (cgraph_add_new_function): Adjust.
16663 * Makefile.in (tree-optimize.o): Adjust.
16664 (cgraphunit.o): Likewise.
16665
c0d942d2
UW
166662012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
16667
16668 PR tree-optimization/52870
16669 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
16670 presumed pattern statement is within the same loop or basic block.
16671
5973ae1a
TG
166722012-04-10 Tristan Gingold <gingold@adacore.com>
16673
16674 * gengtype.c (main): Make uintptr_t a known type.
16675
26eb69c6
RG
166762012-04-10 Richard Guenther <rguenther@suse.de>
16677
16678 * tree-pass.h (tree_lowering_passes): Remove.
16679 * tree-optimize.c (tree_lowering_passes): Remove.
16680 * cgraph.c (cgraph_add_new_function): Inline relevant parts
2ff5ea2d 16681 of tree_lowering_passes, avoid redundant call of early local passes.
26eb69c6
RG
16682 * cgraphunit.c (cgraph_lower_function): Fold into ...
16683 (cgraph_analyze_function): ... its single caller. Inline
16684 relevant parts of tree_lowering_passes.
16685
3271a0c0
L
166862012-04-09 H.J. Lu <hongjiu.lu@intel.com>
16687
16688 PR other/52777
16689 * config/pa/pa.opt: Remove SIO and GNU_LD.
16690
3c56b037
JH
166912012-04-09 Jan Hubicka <jh@suse.cz>
16692
16693 PR lto/52722
16694 PR lto/51765
dee16055 16695 PR lto/52634
2ff5ea2d
UB
16696 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
16697 boundary, add its target too.
3c56b037
JH
16698 * lto.c (add_references_to_partition): Add also aliased nodes.
16699 (add_cgraph_node_to_partition,
16700 add_varpool_node_to_partition): Work on nodes, not functions/variables;
16701 when adding alias, add also the aliased object.
16702
3cb2b15b
UB
167032012-04-09 Uros Bizjak <ubizjak@gmail.com>
16704
16705 PR target/52883
16706 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
16707 VOIDmode immediate operands.
16708 * config/i386/constraints.md (Wz): New constraint.
16709 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
16710
5ff5b41c
EB
167112012-04-09 Eric Botcazou <ebotcazou@adacore.com>
16712
16713 PR target/52717
16714 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
16715 the DECL generated for the special GOT helper.
16716
7df2d73c
OE
167172012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
16718
16719 * config/sh/constraints.md: Update list of constraints in
16720 comment block.
16721 (Sr0): Remove unused memory constraint.
16722
8772bd54
MLI
167232012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16724
16725 * tree-pretty-print.h: Update comment.
16726
6b45f126
OE
167272012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
16728
4f3dfa27
OE
16729 * config/sh/sh.md: Use braced string notation where applicable.
16730 (*prefetch_i4, prefetch_m2a): Merge into ...
6b45f126
OE
16731 (*prefetch): ... this new insn.
16732
fae61228
OE
167332012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
16734
16735 * config/sh/sh.h (high_life_started): Remove
16736 * config/sh/predicates.md (general_movdst_operand): Use
16737 'reload_in_progress' instead of 'high_life_started'.
16738 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
16739 divsi_inv_fp): Likewise.
16740
2ef6611e
OE
167412012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
16742
16743 * config/sh/sh-protos.h (prepare_move_operands): Return void
16744 instead of int.
16745 * config/sh/sh.c (prepare_move_operands): Likewise.
16746 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
16747
df4f5d5f
OE
167482012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
16749
16750 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
16751 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
16752 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
16753 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
16754 commutative_float_operator, noncommutative_float_operator,
16755 sh_handle_pragma): Remove.
16756
f2dcf9b8
SL
167572012-04-06 Sandra Loosemore <sandra@codesourcery.com>
16758
16759 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
16760 Use @option markup on command-line options. Use @samp markup on
16761 literal keywords to options. Use @code markup on code fragments.
16762 Use other markup in preference to quotation marks in the text.
16763 Add markup to some passages without any.
16764
d25c4172
MS
167652012-04-06 Mike Stump <mikestump@comcast.net>
16766
16767 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
16768
bdb7ddcc
OE
167692012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
16770
16771 * config/sh/sh.c (hi_const): Remove.
16772 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
16773 of hi_const.
16774
10c17a58
OE
167752012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
16776
16777 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
16778 to bool.
16779 * config/sh/sh.c (sh_expand_t_scc): Likewise.
16780 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
16781 calling sh_expand_t_scc.
16782
aaf701c5
OE
167832012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
16784
16785 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
16786 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
16787 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
16788 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
16789 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
16790 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
16791 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
16792 sh2a_is_function_vector_call): Use bool as return type.
16793 (sh_pass_in_reg_p): Remove.
16794 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
16795 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
16796 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
16797 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
16798 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
16799 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
16800 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
3cb2b15b 16801 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
aaf701c5
OE
16802 sh_loads_bankedreg_p): Use bool as return type.
16803 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
16804 'register' modifier.
16805
3805a93e
MT
168062012-04-06 Matt Turner <mattst88@gmail.com>
16807
16808 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
16809
22be5918
EB
168102012-04-06 Eric Botcazou <ebotcazou@adacore.com>
16811
16812 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
16813 of the destination isn't also a FP_REGS register.
16814
7b38ee83
TJ
168152012-04-05 Teresa Johnson <tejohnson@google.com>
16816 H.J. Lu <hongjiu.lu@intel.com>
16817
2ff5ea2d 16818 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
7b38ee83
TJ
16819 * config/i386/i386.md (move immediate to memory peephole2):
16820 Add cases for HImode move when LCP stall avoidance is needed.
16821 * config/i386/i386.c (initial_ix86_tune_features): Initialize
16822 X86_TUNE_LCP_STALL entry.
16823
4bdd6fa6
UB
168242012-04-05 Uros Bizjak <ubizjak@gmail.com>
16825
16826 PR target/52882
16827 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
16828 CONST_INT operands, zero-extended with AND.
16829
9b9ad23f
OE
168302012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
16831
16832 PR target/50751
16833 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
16834 first argument instead of mode size. Move displacement calculations
16835 to ...
4bdd6fa6 16836 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
9b9ad23f
OE
16837 ... these new functions.
16838 (disp_adjust): Remove max_mov_disp field.
16839 (sh_legitimate_index_p): Use max_mov_insn_displacement and
16840 mov_insn_alignment_mask.
16841 (sh_address_cost): Use max_mov_insn_displacement.
16842
14f986ed
AS
168432012-04-05 Andrew Stubbs <ams@codesourcery.com>
16844
16845 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
16846 (arch_enabled): Handle new arch types.
16847 (one_cmpldi2): Add NEON support.
16848
216820a4
RG
168492012-04-05 Richard Guenther <rguenther@suse.de>
16850
16851 * gimple.c (walk_gimple_op): Compute val_only for the LHS
16852 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
16853 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
16854 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
16855 ... here and make static.
16856 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
16857 Remove.
16858
eaf6ca18
RG
168592012-04-05 Richard Guenther <rguenther@suse.de>
16860
16861 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
16862 basic-block before removing it.
16863
14f60a5a
RG
168642012-04-05 Richard Guenther <rguenther@suse.de>
16865
16866 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
16867 version namespace as we release the freelist.
16868
3d3f2249
RG
168692012-04-05 Richard Guenther <rguenther@suse.de>
16870
16871 * tree-nrv.c (tree_nrv): Release VDEFs.
16872 * tree-sra.c (sra_modify_constructor_assign): Likewise.
16873 (sra_modify_assign): Likewise.
16874 * tree-vect-stmts.c (vect_remove_stores): Likewise.
16875 * tree-vect-loop.c (vect_transform_loop): Likewise.
16876 * tree-ssa-dom.c (optimize_stmt): Likewise.
16877 * tree-vect-slp.c (vect_schedule_slp): Likewise.
16878 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
16879
b5b3ec3e
RG
168802012-04-05 Richard Guenther <rguenther@suse.de>
16881
16882 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
16883 cleanup.
16884 * gimple.h (gsi_remove): Adjust.
16885 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
16886 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
16887 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
16888 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
16889 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
16890 * tree-ssa-pre.c (eliminate): Likewise.
16891
929e10f4
MS
168922012-04-04 Mike Stump <mikestump@comcast.net>
16893
16894 * doc/rtl.texi (const_double): Document as sign-extending.
2ff5ea2d 16895 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
929e10f4
MS
16896 * emit-rtl.c (immed_double_int_const): Refine to state the
16897 value is signed.
16898 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
16899 CONST_DOUBLE integers.
16900 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
16901 negative values are converted. Fix conversions bigger than
16902 HOST_BITS_PER_WIDE_INT.
2ff5ea2d 16903 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
929e10f4
MS
16904 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
16905 * explow.c (plus_constant_mode): Add.
16906 (plus_constant): Implement with plus_constant_mode.
16907 * rtl.h (plus_constant_mode): Add.
16908
0b9066cf
RG
169092012-04-04 Richard Guenther <rguenther@suse.de>
16910
16911 PR tree-optimization/52808
2ff5ea2d 16912 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
0b9066cf
RG
16913 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
16914
9516c54e
TG
169152012-04-04 Tristan Gingold <gingold@adacore.com>
16916
16917 * expr.c (expand_expr_real_2): Handle larger sizetype in
16918 POINTER_PLUS_EXPR.
16919
407f43d7
KK
169202012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
16921
16922 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
16923 to m2a-single instead of m2e.
16924
1d0bafd9
EB
169252012-04-03 Eric Botcazou <ebotcazou@adacore.com>
16926
16927 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
16928 Change type of BITOFFSET to signed. Make sure the lower bound of
16929 the computed range is non-negative by adjusting OFFSET and BITPOS.
16930 (expand_assignment): Adjust call to get_bit_range.
16931
f4ea8112
SKS
169322012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
16933
16934 * h8300/h8300.c (h8300_current_function_monitor_function_p):
dee16055
AS
16935 New function. Added to check monitor functions.
16936 (h8300_option_override): Modified to generate error/warning
16937 messages for invalid combinations of different command line
f4ea8112
SKS
16938 options.
16939 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
dee16055 16940 save EXR on stack for monitor function in case of H8S target
f4ea8112 16941 when "-mno-exr" is passed.
2ff5ea2d
UB
16942 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
16943 Add prototype.
f4ea8112
SKS
16944 * doc/invoke.texi: Document H8S options.
16945
2f6935f4
TG
169462012-04-03 Tristan Gingold <gingold@adacore.com>
16947
16948 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
16949 of gcc_AC_FUNC_MMAP_BLACKLIST.
16950 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
16951 * Makefile.in (aclocal_deps): Add mmap.m4.
16952 * configure: Regenerate.
16953 * aclocal.m4: Regenerate.
16954
07b1bf20
RG
169552012-04-03 Richard Guenther <rguenther@suse.de>
16956
16957 PR tree-optimization/52808
16958 * tracer.c (tail_duplicate): Return whether we have duplicated
16959 any block.
16960 (tracer): If we have duplicated any block, cleanup the CFG.
16961 * cfghooks.c (duplicate_block): If we duplicated a loop
16962 header but not its loop, destroy the loop because it now has
16963 multiple entries.
16964 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
16965 the cfg manipulation routines we are not creating a multiple
16966 entry loop.
16967
90b2952f
TG
169682012-04-03 Tristan Gingold <gingold@adacore.com>
16969
16970 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
16971 'byte' alignment.
16972 (vms_c_common_override_options): Allow parameterless variadic
16973 functions.
16974
8a1da634
JJ
169752012-04-03 Jakub Jelinek <jakub@redhat.com>
16976
16977 PR tree-optimization/52835
16978 * tree-data-ref.c (build_rdg): Return NULL if
16979 compute_data_dependences_for_loop failed.
16980
1d3aa466
EB
169812012-04-03 Eric Botcazou <ebotcazou@adacore.com>
16982
16983 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
16984 for REAL_CST as well.
16985 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
16986 In the bitfield case, if the value is a REAL_CST, convert it first to
16987 an INTEGER_CST.
16988
0465e49e
L
169892012-04-02 H.J. Lu <hongjiu.lu@intel.com>
16990
16991 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
16992 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
16993 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
16994
16995 * config/i386/biarchx32.h: New.
16996
107715f0
AS
169972012-04-02 Anatoly Sokolov <aesok@post.ru>
16998
16999 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
17000 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17001 (arm_preferred_reload_class): New function.
17002
18ce8171
RG
170032012-04-02 Richard Guenther <rguenther@suse.de>
17004
17005 PR tree-optimization/52756
17006 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
17007 (thread_through_loop_header): After threading through the loop latch
17008 remove the split part from the loop and clear further threading
17009 opportunities that would create a multiple entry loop.
17010
df09560e
RG
170112012-04-02 Richard Guenther <rguenther@suse.de>
17012
17013 PR rtl-optimization/52800
17014 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
17015 CLEANUP_CFG_CHANGED.
17016
225820ee
RG
170172012-04-02 Richard Guenther <rguenther@suse.de>
17018
17019 PR middle-end/52803
17020 * loop-init.c (gate_handle_loop2): Destroy loops here if
17021 we don't enter RTL loop optimizers.
17022
5bd5034e
UB
170232012-04-02 Uros Bizjak <ubizjak@gmail.com>
17024
17025 Partially revert:
17026 2012-03-29 Richard Guenther <rguenther@suse.de>
17027
17028 * rtl.h (extended_count): Remove.
17029 * combine.c (extended_count): Remove.
17030
cdc30df3
DS
170312012-04-02 Dodji Seketeli <dodji@redhat.com>
17032
17033 PR c++/40942
17034 * pt.c (more_specialized_fn): Don't apply decay conversion to
17035 types of function parameters.
17036
2a6e6fea
TG
170372012-04-02 Tristan Gingold <gingold@adacore.com>
17038
17039 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
17040 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
17041 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
17042 (ggc_pch_this_base): Use uintptr_t instead of size_t.
17043
b6c0357f
L
170442012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17045
17046 PR bootstrap/52784
17047 * config/i386/i386.c (ix86_option_override_internal): Don't
17048 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
17049
8d960eda
EB
170502012-03-31 Eric Botcazou <ebotcazou@adacore.com>
17051
17052 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
17053 (stmt_can_make_abnormal_goto): Use it.
17054 (is_ctrl_altering_stmt): Likewise.
17055
57c7433f
N
170562012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
17057 Kaz Kojima <kkojima@gcc.gnu.org>
17058
17059 * config/sh/sh.c (push_regs): Skip banked registers when
17060 resbank attribute is specified.
17061 (sh_expand_epilogue): Likewise.
17062
3825692d
RH
170632012-03-30 Richard Henderson <rth@redhat.com>
17064
17065 PR debug/52727
17066 * combine-stack-adj.c (prev_active_insn_bb): New.
17067 (next_active_insn_bb): New.
17068 (force_move_args_size_note): New.
17069 (combine_stack_adjustments_for_block): Use it.
17070
e025da0c
RH
170712012-03-30 Richard Henderson <rth@redhat.com>
17072
17073 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
17074 (ix86_expand_vector_init_duplicate): Initialize it.
17075 (expand_vec_perm_palignr): Likewise.
17076 (ix86_expand_vec_perm_const): Likewise.
17077 (ix86_vectorize_vec_perm_const_ok): Likewise.
17078 (expand_vec_perm_blend): Use it.
17079 (expand_vec_perm_vpermil): Likewise.
17080 (expand_vec_perm_pshufb): Likewise.
17081 (expand_vec_perm_1): Likewise.
17082 (expand_vec_perm_pshuflw_pshufhw): Likewise.
17083 (expand_vec_perm_interleave2): Likewise.
17084 (expand_vec_perm_vpermq_perm_1): Likewise.
17085 (expand_vec_perm_vperm2f128): Likewise.
17086 (expand_vec_perm_interleave3): Likewise.
17087 (expand_vec_perm_vperm2f128_vblend): Likewise.
17088 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17089 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
17090 (expand_vec_perm_broadcast): Likewise.
17091 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17092
7b470faf
RH
170932012-03-30 Richard Henderson <rth@redhat.com>
17094
17095 * dwarf2out.c (gen_variable_die): Initialize off.
17096
c531f06a
TG
170972012-03-30 Tristan Gingold <gingold@adacore.com>
17098
17099 * config/vms/vms-f.c: New file.
17100 * config/vms/t-vms (vms-f.o): New rule.
17101 * config.gcc (*-*-*vms*): Define fortran_target_objs.
17102
fef205d5
RG
171032012-03-30 Richard Guenther <rguenther@suse.de>
17104
17105 PR tree-optimization/52754
17106 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
17107 propagate arbitrary addresses into really plain dereferences.
17108
0b7fccfa
RG
171092012-03-30 Richard Guenther <rguenther@suse.de>
17110
17111 PR middle-end/52772
17112 * except.c (emit_to_new_bb_before): Move loop updating ...
17113 (dw2_build_landing_pads): ... here. Use a proper block for
17114 querying the loop father.
17115
fe5798c0
TG
171162012-03-30 Tristan Gingold <gingold@adacore.com>
17117
17118 * config/ia64/ia64.c (ia64_section_type_flags): Remove
17119 common_object attribute handling.
17120 (SECTION_VMS_OVERLAY): Remove
17121 (ia64_vms_common_object_attribute): Replace abort with an assert.
17122 Do not set DECL_SECTION_NAME.
17123 (ia64_vms_output_aligned_decl_common): Handle common_object
17124 attribute.
17125 (ia64_vms_elf_asm_named_section): Remove.
17126 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
17127
5cf01d62
RG
171282012-03-30 Richard Guenther <rguenther@suse.de>
17129
17130 PR middle-end/52786
17131 * double-int.c (rshift_double): Remove not needed cast.
17132
aeb83f09
RG
171332012-03-30 Richard Guenther <rguenther@suse.de>
17134
17135 * tree-affine.h (print_aff): Remove.
17136 * tree-affine.c (print_aff): Make static.
17137 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
17138 (get_references_in_stmt): Likewise.
17139 (print_direction_vector): Likewise.
17140 (print_dir_vectors): Likewise.
17141 (print_dist_vectors): Likewise.
17142 (dump_subscript): Likewise.
17143 (dump_ddrs): Likewise.
17144 (dump_dist_dir_vectors): Likewise.
17145 (dump_data_references): Likewise.
17146 (dump_data_dependence_relation): Likewise.
17147 (dump_data_dependence_direction): Likewise.
17148 (dump_rdg_vertex): Likewise.
17149 (dump_rdg_component): Likewise.
17150 (debug_ddrs): Declare.
17151 (struct data_ref_loc_d): Move ...
17152 * tree-data-ref.c (struct data_ref_loc_d): ... here.
17153 (get_references_in_stmt): Make static.
17154 (dump_data_references): Likewise.
17155 (dump_subscript): Likewise.
17156 (print_direction_vector): Likewise.
17157 (print_dir_vectors): Likewise.
17158 (print_dist_vectors): Likewise.
17159 (dump_data_dependence_relation): Likewise.
17160 (dump_dist_dir_vectors): Likewise.
17161 (dump_ddrs): Likewise.
17162 (dump_rdg_vertex): Likewise.
17163 (dump_rdg_component): Likewise.
17164 (debug_ddrs): New function.
17165 (access_matrix_get_index_for_parameter): Remove.
17166
b9268e55
TG
171672012-03-30 Tristan Gingold <gingold@adacore.com>
17168
17169 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
17170 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
17171 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
17172 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
17173 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
17174 (vms_patch_builtins): Handle new flags
17175 * config/vms/vms-crtlmap.map: Completed using nm on
17176 c and math system libraries.
17177 * config/vms/make-crtlmap.awk: Handle any number of flags.
17178
b9bebd7f
MJ
171792012-03-30 Martin Jambor <mjambor@suse.cz>
17180
17181 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
17182 is a builtin_stack_save in a dominating BB.
17183
a15d0d03
UB
171842012-03-29 Uros Bizjak <ubizjak@gmail.com>
17185
17186 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
17187 crossing 128bit lane boundary.
17188
d79318b7
VM
171892012-03-29 Vladimir Makarov <vmakarov@redhat.com>
17190
17191 * ira-color.c (setup_left_conflict_sizes_p): Process all
17192 conflicting objects.
17193
b84b294a
JJ
171942012-03-29 Jakub Jelinek <jakub@redhat.com>
17195
17196 PR tree-optimization/52760
17197 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
17198 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
17199
711417cd
RG
172002012-03-29 Richard Guenther <rguenther@suse.de>
17201
17202 * cgraph.h (cgraph_materialize_all_clones): Remove.
17203 (reset_inline_failed): Likewise.
17204 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
17205 * cgraphbuild.c (reset_inline_failed): Remove.
17206 * rtl.h (cse_main): Remove.
17207 (extended_count): Likewise.
17208 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
17209 (cse_main): Make static.
17210 * combine.c (extended_count): Remove.
17211 (dump_combine_stats): Mark as DEBUG_FUNCTION.
17212 * basic-block.h (reorder_basic_blocks): Remove.
17213 * bb-reorder.c (reorder_basic_blocks): Make static.
17214 * Makefile.in (dse.o): Remove dse.h dependency.
17215 * dse.h: Remove.
17216 * dse.c (gate_dse): Remove.
17217 (clear_alias_mode_eq): Likewise.
17218 (clear_alias_mode_hash): Likewise.
17219 (dse_record_singleton_alias_set): Likewise.
17220 (dse_invalidate_singleton_alias_set): Likewise.
17221
a1ecc15c
L
172222012-03-29 H.J. Lu <hongjiu.lu@intel.com>
17223
17224 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
17225 crtbegin_so%O%s for -shared.
17226 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
17227
6bcfb753
RG
172282012-03-29 Richard Guenther <rguenther@suse.de>
17229
17230 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
17231 (add_to_value): Remove.
17232 (print_value_expressions): Likewise.
17233 * tree-ssa-pre.c (add_to_value): Make static.
17234 (print_value_expressions): Likewise.
17235 * gimple.h (gimple_adjust_this_by_delta): Remove.
17236 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
17237
477fcae3
RG
172382012-03-29 Richard Guenther <rguenther@suse.de>
17239
17240 PR middle-end/50708
17241 * double-int.h (rshift_double): Remove.
6c381d9d 17242 * double-int.c (lshift_double): Use absu_hwi to make count positive.
477fcae3
RG
17243 (rshift_double): Make static, take unsigned count argument,
17244 remove handling of negative count argument.
17245 (double_int_rshift): Dispatch to lshift_double.
17246
1ab8b791
L
172472012-03-28 H.J. Lu <hongjiu.lu@intel.com>
17248
17249 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
17250 OPTION_MASK_ABI_64.
17251
17252 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
17253 (SPEC_X32): Likewise.
17254 (MULTILIB_DEFAULTS): Likewise.
17255
17256 * config/i386/i386.c (isa_opts): Remove -m64.
17257 (ix86_target_string): Properly handle -m32/-m64/-mx32.
17258 (ix86_option_override_internal): Properly
17259 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
17260 handle -m32, -m64 and -mx32.
17261
17262 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
17263 with OPTION_ABI_X32. Moved after TARGET_LP64.
17264 (TARGET_LP64): Changed to OPTION_ABI_64.
17265
17266 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
17267 (mx32): Replace ISA_X32 with ABI_X32.
17268
2defb110
EB
172692012-03-28 Eric Botcazou <ebotcazou@adacore.com>
17270
17271 * tree.c (tree_size) <VECTOR_CST>: New case.
17272
2310e450
UB
172732012-03-28 Uros Bizjak <ubizjak@gmail.com>
17274
17275 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
17276 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
17277
26a7fca2
JJ
172782012-03-28 Jakub Jelinek <jakub@redhat.com>
17279
f25a65f5
JJ
17280 PR middle-end/52691
17281 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
17282 __builtin_va_start to __builtin_next_arg if the latter is
17283 builtin_decl_explicit_p rather than when it is not.
17284
26a7fca2
JJ
17285 PR middle-end/52750
17286 * tree-vect-generic.c (vector_element): Perform multiplication
17287 for pos in bitsizetype type instead of idx type.
17288
7d776ee2
RG
172892012-03-28 Richard Guenther <rguenther@suse.de>
17290
17291 * loop-init.c (loop_optimizer_init): If loops are preserved
17292 perform incremental initialization of required loop features.
17293 (loop_optimizer_finalize): If loops are to be preserved only
17294 clean up optional loop features.
17295 (rtl_loop_done): Forcefully free loops here.
2310e450 17296 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
7d776ee2
RG
17297 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
17298 to existing loops.
17299 (construct_init_block): Likewise.
17300 (construct_exit_block): Likewise.
17301 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
17302 the CFG after expanding.
2310e450
UB
17303 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
17304 If we needed to calculate them, free them afterwards.
7d776ee2
RG
17305 * tree-pass.h (PROP_loops): New define.
17306 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
17307 * basic-block.h (CLEANUP_CFG_CHANGED): New.
17308 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
2310e450 17309 (cleanup_cfg): If we did something and have loops around, fix them up.
7d776ee2
RG
17310 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
17311 with CLEANUP_CFG_CHANGED.
17312 * cfghooks.c (merge_blocks): If we merge a loop header into
17313 its predecessor, update the loop structure.
17314 (duplicate_block): If we copy a loop latch, adjust loop state
17315 to note we may have multiple latches.
17316 (delete_basic_block): Mark loops for fixup if we remove a loop.
17317 * cfganal.c (forwarder_block_p): Protect loop latches, headers
17318 and preheaders.
17319 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
17320 (cfg_layout_can_merge_blocks_p): Likewise.
17321 * cprop.c (bypass_block): If we create a loop with multiple
17322 entries, mark it for removal.
17323 * except.c (emit_to_new_bb_before): Add the new basic-block
17324 to existing loops.
17325 * tree-eh.c (lower_resx): Likewise.
17326 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
17327 (expand_omp_taskreg): Likewise.
17328 * tree-inline.c (initialize_cfun): Likewise.
17329 * tree-mudflap.c (add_bb_to_loop): Prototype.
17330 (mf_build_check_statement_for): Properly add new basic-blocks
17331 to existing loops.
17332 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
17333 if we remove a loop.
17334 (thread_through_loop_header): Likewise.
17335 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
17336 new basic-blocks to existing loops.
17337 (expand_transaction): Likewise.
17338 * Makefile.in (except.o): Add $(CFGLOOP_H).
17339 (expr.o): Likewise.
17340 (cgraph.o): Likewise.
17341 (cprop.o): Likewise.
17342 (cfgexpand.o): Likewise.
17343 (cfganal.o): Likewise.
17344 (trans-mem.o): Likewise.
17345 (tree-eh.o): Likewise.
17346
911ba855
GJL
173472012-03-28 Georg-Johann Lay <avr@gjlay.de>
17348
17349 PR target/52692
17350 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
17351 (avr_builtin_decl): New static function.
17352 (struct avr_builtin_description, avr_bdesc): Move up.
17353 Add GTY marker. Add field fndecl. Remove redundant field id.
17354 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
17355 (avr_expand_builtin): Code cleanup because .id is removed.
17356
7fd6378e
GJL
173572012-03-28 Georg-Johann Lay <avr@gjlay.de>
17358
17359 PR target/52737
17360 * config.gcc (tm_file): Remove avr/multilib.h.
17361
2310e450 17362 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
7fd6378e
GJL
17363
17364 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
17365 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
17366 * config/avr/t-avr: Remove generation of multilib.h.
17367 * config/avr/t-multilib: Regenerate.
17368 * config/avr/multilib.h: Remove.
17369 * config/avr/avr.opt (-msp8): New option.
17370 (avr_sp8): New variable.
17371 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
17372 * config/avr/avr.h (AVR_HAVE_SPH): New define.
17373 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
17374 (avr_device_to_sp8): New prototype.
17375 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
17376 (DRIVER_SELF_SPECS): New define.
17377 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
17378 __AVR_SP8__, __AVR_HAVE_SPH__.
17379 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
17380 AVR_HAVE_8BIT_SP to decide if SP_H is present.
17381 (avr_file_start): Ditto.
17382
be47bf24
JJ
173832012-03-28 Jakub Jelinek <jakub@redhat.com>
17384
17385 PR target/52736
17386 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
17387 instead of 8 in adjust_address.
17388
00d6b19a
AB
173892012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
17390
17391 PR middle-end/51893
17392 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
17393 targets.
17394
8c6d71c0
OE
173952012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
17396
17397 PR target/50751
17398 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
17399 Rearrange conditional logic. Move displacement address calculations
17400 to ...
17401 (sh_find_mov_disp_adjust): ... this new function.
17402
719e1e80
L
174032012-03-27 H.J. Lu <hongjiu.lu@intel.com>
17404
17405 * config/arm/arm.opt (mapcs): Remove MaskExists.
17406 * config/cris/linux.opt (mno-gotplt): Likewise.
17407 * config/i386/i386.opt (mhard-float): Likewise.
17408 (msse4): Likewise.
17409 (mno-sse4): Likewise.
17410 * config/m68k/m68k.opt (mhard-float): Likewise.
17411 * config/mep/mep.op (mcop32): Likewise.
17412 * config/pa/pa-hpux.opt (msio): Likewise.
17413 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
17414 * config/picochip/picochip.opt (mlittle): Likewise.
17415 * config/sh/sh.opt (mrenesas): Likewise.
17416 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
17417 * config/sparc/sparc.opt (mhard-float): Likewise.
17418 * config/v850/v850.opt (mv850es): Likewise.
17419 * config/vax/vax.opt (mg-float): Likewise.
17420
429576ac
MJ
174212012-03-27 Martin Jambor <mjambor@suse.cz>
17422
17423 PR middle-end/52693
17424 * tree-sra.c (sra_modify_assign): Do not call
17425 load_assign_lhs_subreplacements when working with an unscalarizable
17426 region.
17427
ae1547cc
UB
174282012-03-27 Uros Bizjak <ubizjak@gmail.com>
17429
17430 PR target/52698
17431 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
17432 New prototype.
17433 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
17434 * config/i386/i386.c: Include reload.h.
17435 (ix86_legitimize_reload_address): New function.
17436
1ad36b7e
L
174372012-03-27 H.J. Lu <hongjiu.lu@intel.com>
17438
17439 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
17440 hasn't been allocated. Define a target macro for Mask and
ae1547cc 17441 InverseMask if it hasn't been defined. Remove MaskExists handling.
1ad36b7e 17442
9a0ee5ed 17443 * doc/options.texi: Remove MaskExists.
1ad36b7e 17444
066922e6
CLT
174452012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
17446
17447 PR target/52667
17448 * config/sh/sh.c (find_barrier): Add equality check of last_got
17449 to avoid going above orig insn. Update comments.
17450
005aa1b4
RG
174512012-03-27 Richard Guenther <rguenther@suse.de>
17452
17453 PR middle-end/52720
17454 * fold-const.c (try_move_mult_to_index): Handle &x.array more
17455 explicitely.
17456
a59b038c
EB
174572012-03-27 Eric Botcazou <ebotcazou@adacore.com>
17458
17459 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
17460 of a unit before computing the offset in units.
17461 * expr.c (get_bit_range): Return the null range if the enclosing record
17462 is part of a larger bit field.
17463
2283164d
TG
174642012-03-27 Tristan Gingold <gingold@adacore.com>
17465
17466 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
17467 * config/ia64/ia64.md: Remove mode in template.
17468 Sign extend operand in expand_simple_binop.
17469 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
17470 CASE_VECTOR_MODE instead of TARGET_ILP32.
17471 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
17472
da3237d1
SB
174732012-03-26 Steven Bosscher <steven@gcc.gnu.org>
17474
17475 * varasm.c (assemble_external): #if 0 out the new assert from the
17476 previous commit, it breaks the Java and Go front ends.
17477
ffe5d708
SB
174782012-03-26 Steven Bosscher <steven@gcc.gnu.org>
17479
bbee5843
SB
17480 * toplev.c (check_global_declaration_1): Do not call assemble_external.
17481 * expr.c (emit_block_move_libcall_fn): Likewise.
17482 (clear_storage_libcall_fn): Likewise.
17483 (expand_expr_addr_expr_1): Likewise.
17484 (expand_expr_real_1): Likewise.
17485 * calls.c (rtx_for_function_call): Likewise.
17486
ffe5d708
SB
17487 * varasm.c (assemble_external): Assert this function is only called
17488 during or after expanding to RTL.
17489
3515a00b
MJ
174902012-03-26 Martin Jambor <mjambor@suse.cz>
17491
17492 PR tree-optimization/50052
17493 * tree-sra.c (tree_non_aligned_mem_p): Removed.
17494 (tree_non_aligned_mem_for_access_p): Likewise.
17495 (build_accesses_from_assign): Removed strict alignment requirements
17496 checks.
17497 (access_precludes_ipa_sra_p): Likewise.
17498
ad5d161a
RG
174992012-03-26 Richard Guenther <rguenther@suse.de>
17500
17501 PR tree-optimization/52701
17502 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
17503 compute and set the evolution part of PHI nodes.
17504
5467ee52
RG
175052012-03-26 Richard Guenther <rguenther@suse.de>
17506
17507 PR tree-optimization/52721
17508 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
17509
39f3fed6
UW
175102012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
17511
17512 PR tree-optimization/52686
17513 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
17514 WIDEN_LSHIFT_EXPR.
17515
4b12e93d
TG
175162012-03-26 Tristan Gingold <gingold@adacore.com>
17517
17518 * config/alpha/vms.h (LINK_SPEC): Simplify.
17519 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
17520 (NAME__MAIN, SYMBOL__MAIN): Remove.
17521 (VMS_DEBUG_MAIN_POINTER): Remove.
17522 * config/ia64/vms.h: Likewise.
17523 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
17524 code to vms.c. Call vms_start_function.
17525 * config/ia64/ia64.c (ia64_start_function): Likewise.
17526 * config/vms/vms-protos.h (vms_start_function): Declare.
17527 * config/vms/vms.c (vms_start_function): New function.
17528 * config/vms/vms.h (MATH_LIBRARY): Define.
17529 (VMS_DEBUG_MAIN_POINTER): Define.
17530
2169f14c
EB
175312012-03-26 Eric Botcazou <ebotcazou@adacore.com>
17532
17533 PR rtl-optimization/52629
17534 * reload1.c (count_pseudo): Short-circuit common case.
17535 (count_spilled_pseudo): Return early for pseudos without hard regs.
17536 Assert that the pseudo has got a hard reg before manipulating it.
17537
47a1ae3c
JH
175382012-03-24 Jan Hubicka <jh@suse.cz>
17539
17540 PR lto/51663
17541 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
17542 (decide_is_variable_needed): Do not handle toplevel reorder here.
17543 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
17544 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
17545 even at -O0.
17546
8c5f2327
EB
175472012-03-24 Eric Botcazou <ebotcazou@adacore.com>
17548
17549 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
17550 and str_bitsize instead of more convoluted expressions.
17551
c4133027
EB
175522012-03-24 Eric Botcazou <ebotcazou@adacore.com>
17553
17554 PR target/52610
17555 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
17556
f26c81d6
EB
175572012-03-24 Eric Botcazou <ebotcazou@adacore.com>
17558
17559 PR target/52656
17560 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
17561
d01f346b
MJ
175622012-03-23 Martin Jambor <mjambor@suse.cz>
17563
17564 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
17565
0ac168a1
RG
175662012-03-23 Richard Guenther <rguenther@suse.de>
17567
17568 PR tree-optimization/52678
17569 * tree-vectorizer.h (struct _stmt_vec_info): Add
17570 loop_phi_evolution_part member.
17571 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
17572 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
17573 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
17574 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
17575 Use the cached evolution part and the PHI nodes value from
17576 the loop preheader edge instead of re-analyzing the evolution.
17577
3fd03b93
MK
175782012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17579
17580 * config/mips/mips-tables.opt: Update.
17581 * config/mips/mips.md (processor): Add xlp.
17582 * config/mips/mips-cpus.def: Add xlp.
17583 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
17584 5KF for now.
17585 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
17586 * doc/invoke.texi: Mention XLP.
17587
c140ddf3
JJ
175882012-03-22 Jakub Jelinek <jakub@redhat.com>
17589
17590 PR middle-end/52547
17591 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
17592 on any new_local_var_chain vars declared during recursing on
17593 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
17594
b31a2c5a
UB
175952012-03-22 Uros Bizjak <ubizjak@gmail.com>
17596
17597 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
17598 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
17599 (ASM_OUTPUT_LOCAL): Ditto.
17600 (ASM_OUTPUT_COMMON): Remove.
17601 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
17602 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
17603
b4e93f45
JH
176042012-03-22 Jan Hubicka <jh@suse.cz>
17605
17606 PR middle-end/51737
17607 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
17608 parameter.
17609 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
b31a2c5a
UB
17610 * ipa-inline-transform.c (save_inline_function_body): Remove
17611 copied clone if needed.
b4e93f45
JH
17612 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
17613
e45381b3
RG
176142012-03-22 Richard Guenther <rguenther@suse.de>
17615
17616 PR middle-end/52666
17617 * fold-const.c (fold_ternary_loc): Fix typo.
17618
94236928
GJL
176192012-03-22 Georg-Johann Lay <avr@gjlay.de>
17620
17621 PR target/52496
17622 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
17623 (unspecv): Add UNSPECV_MEMORY_BARRIER.
17624 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
17625 (delay_cycles_1, delay_cycles_2): Ditto.
17626 (delay_cycles_3, delay_cycles_4): Ditto.
17627 (nopv, *nopv): Ditto.
17628 (sleep, *sleep): Ditto.
17629 (wdr, *wdr): Ditto.
17630
cd32bb90
RG
176312012-03-22 Richard Guenther <rguenther@suse.de>
17632
17633 PR tree-optimization/52548
17634 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
17635 because of clobbers.
17636 (prune_clobbered_mems): New function.
17637 (compute_antic_aux): Use it to prune ANTIC_OUT.
17638 (compute_partial_antic_aux): Use it to prune PA_IN.
b31a2c5a
UB
17639 (compute_avail): Only insert expressions into EXP_GEN that are not
17640 invalidated when translated up to the beginning of the block.
cd32bb90 17641
418b7df3
RG
176422012-03-22 Richard Guenther <rguenther@suse.de>
17643
17644 PR tree-optimization/52638
17645 * tree-vect-stmts.c (vect_init_vector_1): New function, split
17646 out from ...
17647 (vect_init_vector): ... here. Handle scalar vector inits.
17648 (vect_get_vec_def_for_operand): Adjust.
17649 (vectorizable_load): Likewise.
17650
8f27fc6b
UB
176512012-03-22 Uros Bizjak <ubizjak@gmail.com>
17652
17653 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
17654 (alpha*-*-freebsd*): Ditto.
17655 (alpha*-*-netbsd*): Ditto.
17656 (alpha*-*-openbsd*): Ditto.
17657 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
17658 (DWARF2_DEBUGGING_INFO): Remove.
17659 (PREFERRED_DEBUGGING_TYPE): Remove.
17660 (ASM_FINAL_SPEC): Remove.
17661 (IDENT_ASM_OP): Remove.
17662 (ASM_OUTPUT_IDENT): Remove.
17663 (SKIP_ASM_OP): Remove.
17664 (ASM_OUTPUT_SKIP): Remove.
17665 (ALIGN_ASM_OP): Remove.
17666 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
17667 (ASM_OUTPUT_CASE_LABEL): Remove.
17668 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
17669 (COMMON_ASM_OP): Remove.
17670 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
17671 (ASCII_DATA_ASM_OP): Remove.
17672 (READONLY_DATA_SECTION_ASM_OP): Remove.
17673 (INIT_SECTION_ASM_OP): Remove.
17674 (FINI_SECTION_ASM_OP): Remove.
17675 (ASM_SECTION_START_OP): Remove.
17676 (ASM_OUTPUT_SECTION_START_FILE): Remove.
17677 (TARGET_ASM_NAMED_SECTION): Remove.
17678 (TARGET_ASM_SELECT_SECTION): Remove.
17679 (MAKE_DECL_ONE_ONLY): Remove.
17680 (TYPE_ASM_OP): Remove.
17681 (SIZE_ASM_OP): Remove.
17682 (ASM_WEAKEN_LABEL): Remove.
17683 (TYPE_OPERAND_FMT): Remove.
17684 (ASM_DECLARE_RESULT): Remove.
17685 (ASM_DECLARE_OBJECT_NAME): Remove.
17686 (ASM_FINISH_DECLARE_OBJECT): Remove.
17687 (ELF_ASCII_ESCAPES): Remove.
17688 (ELF_STRING_LIMIT): Remove.
17689 (STRING_ASM_OP): Remove.
17690 (ASM_OUTPUT_EXTERNAL): Remove.
17691 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
17692 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
17693 before define.
17694 (ASM_DECLARE_FUNCTION_NAME): Ditto.
17695 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
17696 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
17697 (ASM_OUTPUT_SKIP): Ditto.
17698 (READONLY_DATA_SECTION_ASM_OP): Remove.
17699 (USER_LABEL_PREFIX): Remove.
17700 (ASM_OUTPUT_ASCII): Remove.
17701 (ASM_OUTPUT_CASE_LABEL): Remove.
17702 (NO_DOLLAR_IN_LABEL): Undefine.
17703
109a16c2
RG
177042012-03-22 Richard Guenther <rguenther@suse.de>
17705
17706 PR tree-optimization/52459
17707 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
17708 PHI insertion for calls.
17709
7b02f4e0
SB
177102012-03-21 Steven Bosscher <steven@gcc.gnu.org>
17711
17712 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
17713 find_sets_in_insn, canonicalize_insn): Split out from ...
17714 (cse_insn): ... here.
17715 (invalidate_from_clobbers): Take an insn instead of the pattern.
17716
e022193e
OE
177172012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
17718
17719 PR target/52479
17720 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
17721 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
17722 * config/sh/sh.md (sindf2, cosdf2): Remove.
17723
6c5bfec0
KK
177242012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
17725
0dbc5be5 17726 PR target/52642
6c5bfec0 17727 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
8f27fc6b 17728 prologue for unwinder and profiler.
6c5bfec0 17729
a26f86dc
AT
177302012-03-21 Andreas Tobler <andreast@fgznet.ch>
17731
17732 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
17733 Introduce emul_name to select the right linker emulation for
17734 powerpc64-*-freebsd*.
17735 * configure: Regenerate.
17736 * config.gcc: Add bits to support powerpc64-*-freebsd*.
17737 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
17738 * config/rs6000/freebsd64.h: New file.
17739 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
17740 POWERPC_FREEBSD.
17741 (rs6000_savres_strategy): Likewise.
17742 (rs6000_savres_routine_name): Likewise.
17743 (rs6000_elf_file_end): Likewise.
17744 * config/rs6000/t-freebsd64: New file.
17745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
17746 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
17747
ad648ade
AT
17748 * config/rs6000/freebsd64.h: Remove duplicated entries from last
17749 commit.
17750 * config/rs6000/t-freebsd64: Likewise.
17751
03b29b0a
GJL
177522012-03-21 Georg-Johann Lay <avr@gjlay.de>
17753
17754 PR rtl-optimization/52543
17755 PR target/52461
17756 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
17757 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
17758 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
17759 (avr_load_libgcc_p): Restrict to __flash loads.
17760 (avr_out_lpm): Only handle 1-byte loads from __flash.
17761 (avr_load_lpm): New function.
17762 (avr_find_unused_d_reg): Remove.
17763 (avr_out_lpm_no_lpmx): Remove.
17764 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
17765 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
17766 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
17767 (load_<mode>, load_<mode>_clobber): New insns.
17768 (mov<mode>): For multi-byte move from non-generic
17769 16-bit address spaces: Expand to load_<mode> resp.
17770 load_<mode>_clobber.
17771 (load<mode>_libgcc): Remove expander.
17772 (split-lpmx): Remove split.
17773
baeecefc
RE
177742012-03-21 Richard Earnshaw <rearnsha@arm.com>
17775
17776 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
17777 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
17778 All callers changed.
17779 (Fixed_core_reg): New feature.
17780 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
17781 disassembly.
17782 * neon-testgen.ml: Handle Fixed_core_reg.
17783
021afdb4
AS
177842012-03-21 Andrew Stubbs <ams@codesourcery.com>
17785
17786 * config/arm/arm.c (thumb2_reorg): Add complete support
17787 for 16-bit instructions.
17788 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
17789
50eeef09
RG
177902012-03-21 Richard Guenther <rguenther@suse.de>
17791
17792 PR tree-optimizer/52636
17793 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
17794 to the appropriate type.
17795
be147e84
RG
177962012-03-21 Richard Guenther <rguenther@suse.de>
17797
17798 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
17799 dependencies.
17800 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
17801 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
17802 * passes.c (init_optimization_passes): Remove pass_init_function,
17803 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
17804 * tree-pass.h (pass_init_function): Remove.
17805 (pass_jump): Remove.
17806 (pass_initial_value_sets): Remove.
17807 (pass_unshare_all_rtl): Remove.
17808 * integrate.c (pass_initial_value_sets): Remove.
17809 * emit-rtl.c (pass_unshare_all_rtl): Remove.
17810 * tree.h (init_function_for_compilation): Remove.
17811 * function.c (init_function_for_compilation): Remove.
17812 (pass_init_function): Remove.
17813 * cfgcleanup.c (rest_of_handle_jump): Remove.
17814 (pass_jump): Remove.
17815
f78f0473
JM
178162012-03-20 Jason Merrill <jason@redhat.com>
17817
17818 * tree-streamer-in.c (streamer_alloc_tree): Call
17819 ggc_alloc_zone_cleared_tree_node instead of
17820 ggc_alloc_zone_cleared_tree_node_stat.
17821
513d0519
JW
178222012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
17823
17824 * doc/extend.texi (Template Instantiation): Remove anachronisms.
17825
6945a32e
JJ
178262012-03-20 Jakub Jelinek <jakub@redhat.com>
17827
ee289e45
JJ
17828 PR target/52607
17829 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
17830 (ix86_expand_vec_perm_const_1): Call it.
17831
e5069d62
JJ
17832 * config/i386/i386.c (vselect_insn): New variable.
17833 (init_vselect_insn): New function.
17834 (expand_vselect, expand_vselect_insn): Add testing_p argument.
17835 Call init_vselect_insn if vselect_insn is NULL. Adjust
17836 PATTERN (vselect_insn), instead of creating a new insn each time,
17837 only emit a copy of it if not testing and recog has been successful.
17838 (expand_vec_perm_pshufb, expand_vec_perm_1,
17839 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
17840 callers.
17841
6945a32e
JJ
17842 PR target/52607
17843 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
17844 ("enabled" attribute): Handle avx2 and noavx2 isas.
17845 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
17846 New insns.
17847 (vec_dup<mode>): Add avx2 =x,x alternative.
17848 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
17849 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
17850 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
17851 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
17852 for V8SFmode.
17853 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
17854 if possible, handle also V8SFmode.
17855
681676df
RE
178562012-03-20 Richard Earnshaw <rearnsha@arm.com>
17857
17858 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
17859 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
17860 reg_or_zero_operand predicate.
17861 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
17862
999a099c
JJ
178632012-03-20 Jakub Jelinek <jakub@redhat.com>
17864
17865 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
17866 If operand isn't UNSPEC, return 0.
17867
dac1fbf8
RG
178682012-03-20 Richard Guenther <rguenther@suse.de>
17869
17870 * tree-pass.h (pass_rtl_eh): Remove.
17871 * except.c (gate_handle_eh): Likewise.
17872 (rest_of_handle_eh): Likewise.
17873 (pass_rtl_eh): Likewise.
17874 (finish_eh_generation): Export.
17875 * except.h (finish_eh_generation): Declare.
17876 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
17877 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
17878 after expanding stack alignment. Instead of compacting blocks
17879 call cleanup_cfg.
17880
7ebf9677
RG
178812012-03-20 Richard Guenther <rguenther@suse.de>
17882
17883 * stor-layout.c (finish_bitfield_representative): Fallback
17884 to conservative maximum size if the padding up to the next
17885 field cannot be computed as a constant.
17886 (finish_bitfield_layout): If we cannot compute the distance
17887 between the start of the bitfield representative and the
17888 bitfield member start a new representative.
17889 * expr.c (get_bit_range): The distance between the start of
17890 the bitfield representative and the bitfield member is zero
17891 if the field offsets are not constants.
17892
18dae016
TG
178932012-03-20 Tristan Gingold <gingold@adacore.com>
17894
17895 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
17896 convert in lowercase.
17897 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
17898 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
17899 * stor-layout.c (sizetype_tab): Adjust.
17900 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
17901 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
17902 instead of type_kind_last.
17903 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
17904 instead of size_int_kind.
17905 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
17906 * doc/tm.texi: Regenerate.
17907 * defaults.h (SIZETYPE): Provide a default value.
17908 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
17909 (SIZETYPE): Define.
17910
d9241861
OE
179112012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
17912
17913 * config/sh/sh.md: Use braced string notation where applicable.
17914
5ef4f609
UB
179152012-03-19 Uros Bizjak <ubizjak@gmail.com>
17916
17917 * config/i386/i386.md (allocate_stack): Simplify.
17918
18ae1560
UB
179192012-03-19 Uros Bizjak <ubizjak@gmail.com>
17920
17921 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
17922 copy_to_mode_reg (Pmode, ...).
17923 (expand_builtin_frame_address): Ditto.
17924 * expr.c (emit_block_move_via_libcall): Ditto.
17925 (set_storage_via_libcall): Ditto.
17926
17927 * config/i386/i386.c (ix86_expand_movmem): Ditto.
17928 (ix86_expand_setmem): Ditto.
17929 (ix86_trampoline_init): DItto.
17930 * config/i386/i386.md (cmpstrnsi): Ditto.
18ae1560 17931
3e4907f4
SL
179322012-03-19 Sandra Loosemore <sandra@codesourcery.com>
17933
17934 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
17935 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
17936 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
17937 (SH Options): Likewise.
17938
edd8bb12
UB
179392012-03-19 Uros Bizjak <ubizjak@gmail.com>
17940
17941 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
17942 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
17943 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
17944 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
17945 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
17946
17947 Revert:
17948 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
17949
17950 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
17951 * config/i386/i386.c (ix86_decompose_address): Use
17952 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
17953 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
17954 thread pointer to a register.
17955
17956 Revert:
17957 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
17958
17959 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
17960 if Pmode != word_mode.
17961 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
17962 Pmode == SImode for TARGET_X32.
17963
17964 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
17965 (tls_initial_exec_x32): Likewise.
17966
344332e8
OE
179672012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
17968
17969 PR target/50751
17970 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
17971 DISP_ADDR_OFFSET): New macros.
17972 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
17973 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
17974 (sh_legitimize_address): Add QImode displacement handling.
edd8bb12 17975 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
344332e8
OE
17976 vector subregs.
17977 (sh_secondary_reload): Add QImode displacement handling.
17978 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
ae5a8549
OE
17979 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
17980 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
17981 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
17982 to register operands only.
17983 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
17984 (extendqihi2): Change insn to expander.
17985 (*extendqihi2_compact_reg): New insn.
17986 (movqi_i, movqi): Replace with ...
17987 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
17988 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
17989 Add new peepholes for QImode displacement addressing.
344332e8 17990
04398fa8
PC
179912012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
17992
17993 PR c++/14710
17994 * doc/invoke.texi: Document -Wuseless-cast.
17995
b199074d
EB
179962012-03-19 Eric Botcazou <ebotcazou@adacore.com>
17997
17998 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
17999 * tree.h (handled_component_p): Reorder cases.
18000 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
18001 not initialize unsignedp.
18002 (loc_list_from_tree): Likewise.
18003 (fortran_common): Likewise.
18004 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
18005
79f3658a
UB
180062012-03-19 Uros Bizjak <ubizjak@gmail.com>
18007
18008 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
18009 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
18010 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
18011 (ix86_split_long_move): Ditto.
18012 (legitimize_tls_address): Use ix86_gen_sub3.
18013 (construct_plt_address): Assert that Pmode == DImode.
18014
82e86dc6
UB
180152012-03-18 Uros Bizjak <ubizjak@gmail.com>
18016
18017 * config/i386/i386.md: Remove empty predicates and/or constraints.
18018 * config/i386/sync.md: Ditto.
18019 * config/i386/sse.md: Ditto.
18020 * config/i386/mmx.md: Ditto.
18021 * config/i386/pentium.md: Ditto.
18022 * config/i386/athlon.md: Ditto.
18023
d6682315
RG
180242012-03-16 Richard Guenther <rguenther@suse.de>
18025
18026 PR tree-optimization/52603
18027 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
18028 comment.
18029
18030 Revert
18031 2012-03-14 Richard Guenther <rguenther@suse.de>
18032
18033 PR tree-optimization/52571
18034 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
18035 flag_section_anchors check ...
18036 (vect_can_force_dr_alignment_p): ... here.
18037
0a1c20dc
MJ
180382012-03-16 Martin Jambor <mjambor@suse.cz>
18039
b199074d 18040 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
0a1c20dc
MJ
18041 memory through MEM_REFs by calling extract_bit_field.
18042
6814f778
RG
180432012-03-16 Richard Guenther <rguenther@suse.de>
18044
18045 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
18046 and REFERENCE_TYPE interpretations.
18047 (can_native_interpret_type_p): New function.
18048 (fold_ternary_loc): Use native encode/interpret to fold
18049 BIT_FIELD_REFs of constants.
18050
ada3df50
RG
180512012-03-16 Richard Guenther <rguenther@suse.de>
18052
18053 PR middle-end/52584
18054 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
18055 of vector constants and constructors.
18056
b758f602
RG
180572012-03-16 Richard Guenther <rguenther@suse.de>
18058
18059 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
18060 VIEW_CONVERT_EXPR to convert constants.
18061 (vect_is_simple_use): Treat all constants as vec_constant_def.
18062
cf1867a0 180632012-03-16 Richard Guenther <rguenther@suse.de>
82e86dc6 18064 Kai Tietz <ktietz@redhat.com>
cf1867a0
RG
18065
18066 PR middle-end/48814
18067 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
18068 side-effects completely in the pre-queue and use a temporary
18069 for the result.
18070
2447776c
RG
180712012-03-16 Richard Guenther <rguenther@suse.de>
18072
18073 * stor-layout.c (finish_bitfield_representative): Fall back
18074 to the conservative maximum size if we cannot compute the
18075 size of the tail padding.
18076
6ceb677f
TG
180772012-03-16 Tristan Gingold <gingold@adacore.com>
18078
18079 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
18080 __CRTL_VER and __VMS_VER.
18081 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
18082 and vms_c_get_vms_ver.
18083 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
18084 functions.
18085 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
18086 (VMS_DEFAULT_VMS_VER): Define.
18087 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
18088 (VMS_DEFAULT_VMS_VER): Define.
18089
50a763ab
RG
180902012-03-16 Richard Guenther <rguenther@suse.de>
18091
18092 * tree-vect-loop.c (get_initial_def_for_induction): Use
18093 build_constructor directly.
18094 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
18095 build_vector_from_val.
18096 * tree.c (build_vector_from_val): Avoid creating a constructor
18097 first when we want a constant vector.
18098
17246516
RO
180992012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18100
18101 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
18102
d2a12ae7
RG
181032012-03-16 Richard Guenther <rguenther@suse.de>
18104
18105 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
18106 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
18107 (struct tree_vector): Remove elements member, add variable size
18108 elts array member.
18109 (build_vector_stat): Declare.
18110 (build_vector): Define in terms of build_vector_stat.
18111 * tree.c (build_vector): Rename to ...
18112 (build_vector_stat): ... this. Take array of trees as parameter.
18113 (build_vector_from_ctor): Adjust.
18114 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
18115 initializer_zerop): Adjust.
18116 * cfgexpand.c (expand_debug_expr): Likewise.
18117 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
18118 const_vector_from_tree): Likewise.
18119 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
18120 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
18121 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
18122 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
18123 (lto_input_ts_vector_tree_pointers): Adjust.
18124 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
18125 (write_ts_vector_tree_pointers): Adjust.
18126 * varasm.c (const_hash_1, compare_constant, copy_constant,
18127 output_constant): Adjust.
18128 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
18129 * print-tree.c (print_node): Adjust.
18130 * tree-pretty-print.c (dump_generic_node): Adjust.
18131 * tree-vect-generic.c (uniform_vector_p, vector_element,
18132 lower_vec_perm): Adjust.
18133 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
18134 * tree-vect-slp.c (vect_get_constant_vectors,
18135 vect_transform_slp_perm_load): Adjust.
18136 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
18137 * expmed.c (make_tree): Adjust.
18138 * config/i386/i386.c (ix86_expand_builtin): Adjust.
18139 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
18140 and implementation.
18141 (sparc_fold_builtin): Adjust.
18142
20bfad56
TG
181432012-03-16 Tristan Gingold <gingold@adacore.com>
18144
18145 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
18146 * config/vms/vms-stdint.h: New file.
18147
305576a5
TG
181482012-03-16 Tristan Gingold <gingold@adacore.com>
18149
18150 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
18151 (ia64-hp-*vms*): Replaced by ...
18152 (*-*-*vms*): ... This new entry.
18153
b8227739
JJ
181542012-03-15 Jakub Jelinek <jakub@redhat.com>
18155
81de8b03 18156 PR target/52568
82e86dc6 18157 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
81de8b03
JJ
18158 (ix86_expand_vec_perm_const_1): Use it.
18159
b8227739
JJ
18160 PR target/52568
18161 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
18162 (avx2_permv4df): Remove.
18163 (avx2_permv4di): Macroize into...
18164 (avx2_perm<mode>): ... this using VI8F_256 iterator.
18165 (avx2_permv4di_1): Macroize into...
18166 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
18167
df7965e4
UW
181682012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
18169
18170 * combine.c (apply_distributive_law): Do not distribute SUBREG.
18171
bc4fb355
IR
181722012-03-15 Ira Rosen <irar@il.ibm.com>
18173 Ulrich Weigand <ulrich.weigand@linaro.org>
18174
18175 * tree-vect-patterns.c (widened_name_p): Rename to ...
18176 (type_conversion_p): ... this. Add new argument to determine
18177 if it's a promotion or demotion operation. Check for
18178 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
18179 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
18180 widened_name_p.
18181 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
18182 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
18183 Likewise.
18184 (vect_recog_mixed_size_cond_pattern): Likewise and allow
18185 non-constant then and else clauses.
18186
f5709183
IR
181872012-03-15 Ira Rosen <irar@il.ibm.com>
18188 Ulrich Weigand <ulrich.weigand@linaro.org>
18189
18190 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
18191 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
18192 vect_pattern_recog.
18193 * tree-vect-patterns.c (widened_name_p): Pass basic block
18194 info to vect_is_simple_use.
18195 (vect_recog_dot_prod_pattern): Fail for basic blocks.
18196 (vect_recog_widen_sum_pattern): Likewise.
18197 (vect_handle_widen_op_by_const): Support basic blocks.
18198 (vect_operation_fits_smaller_type,
18199 vect_recog_over_widening_pattern): Likewise.
18200 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
18201 Update call to vect_is_simple_use.
18202 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
18203 Add printing.
18204 (check_bool_pattern): Add an argument, update call to
18205 vect_is_simple_use and the recursive calls.
18206 (vect_recog_bool_pattern): Update relevant function calls.
18207 Add printing.
18208 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
18209 (vect_pattern_recog_1): Check for reduction only in loops.
18210 (vect_pattern_recog): Add new argument. Support basic blocks.
18211 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
18212 info to vect_is_simple_use_1.
8f27fc6b 18213 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
f5709183
IR
18214 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
18215
ff63ac4d
JJ
182162012-03-15 Jakub Jelinek <jakub@redhat.com>
18217 Andrew Pinski <apinski@cavium.com>
18218
18219 PR middle-end/52592
18220 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
18221 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
18222 calls instead of __builtin_ir{int,ound}*.
18223
b3781fcb
BRF
182242012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18225
18226 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
18227 documentation.
18228
42183685 182292012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5ab22850
RR
18230
18231 * config.gcc (target_type_format_char): New. Document it. Set it for
b3781fcb 18232 arm*-*-* .
82e86dc6
UB
18233 * configure.ac (gnu_unique_option): Use target_type_format_char
18234 in test. Comment rationale.
5ab22850
RR
18235 * configure: Regenerate .
18236
ad193f32
JJ
182372012-03-15 Jakub Jelinek <jakub@redhat.com>
18238
18239 PR tree-optimization/52267
18240 * tree-vrp.c (masked_increment): New function.
18241 (register_edge_assert_for_2): Derive ASSERT_EXPRs
18242 from (X & CST1) cmp CST2 tests.
18243
9b00587c
RG
182442012-03-15 Richard Guenther <rguenther@suse.de>
18245
18246 PR middle-end/52580
18247 * tree-data-ref.c (subscript_dependence_tester_1): Check
18248 all dimensions for non-conflicting access functions.
18249
a12bf402
MLI
182502012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18251
18252 PR c++/44783
18253 * doc/invoke.texi [C++ Language Options]: Document
18254 -ftemplate-backtrace-limit.
18255
51a1aacf
TG
182562012-03-15 Tristan Gingold <gingold@adacore.com>
18257
18258 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
18259 before a parameter.
18260
b763dcaa
TG
182612012-03-15 Tristan Gingold <gingold@adacore.com>
18262
18263 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
18264 use DW_OP_call_frame_cfa.
18265
28968d91
L
182662012-03-14 H.J. Lu <hongjiu.lu@intel.com>
18267
18268 PR target/50797
18269 * config/i386/i386-opts.h (pmode): New.
18270
18271 * config/i386/i386.c (ix86_option_override_internal): Properly
18272 check and set ix86_pmode.
18273
8f27fc6b 18274 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
28968d91
L
18275
18276 * config/i386/i386.opt (maddress-mode=): New.
18277
18278 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
18279
7c17f335
RO
182802012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18281
18282 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
18283 (dwarf2out_do_cfi_asm): Likewise.
18284 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
18285 handling.
18286 (add_data_member_location_attribute): Likewise.
18287 (gen_array_type_die): Likewise.
18288 (gen_subprogram_die): Likewise.
18289 (gen_producer_string): Likewise.
18290 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
18291 Remove MIPS_DEBUGGING_INFO handling.
18292 (sdb_debug_hooks): Likewise.
18293 (sdbout_begin_block): Likewise.
18294 (sdbout_end_block): Likewise.
18295 (sdbout_begin_prologue): Likewise.
18296 (sdbout_start_source_file): Likewise.
18297 (sdbout_end_source_file): Likewise.
18298 (sdbout_init): Likewise.
18299 * system.h (MIPS_DEBUGGING_INFO): Poison.
18300
46e1a769
RO
183012012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18302
18303 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
18304 (alpha_file_start) [MS_STAMP]: Remove.
18305
18306 * config/alpha/elf.h (TARGET_GAS): Remove.
18307 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
18308 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
18309 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
18310 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
18311 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
18312 (alpha*-*-freebsd*): Likewise.
18313 (alpha*-*-netbsd*): Likewise.
18314 (alpha*-*-openbsd*): Likewise.
18315 (alpha*-*-*): Remove target_cpu_default2.
18316 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
18317 handling.
18318 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
18319 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
18320 * config/alpha/alpha.c (print_operand): Always assume
18321 TARGET_AS_SLASH_BEFORE_SUFFIX.
18322 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
18323 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
18324 ("*builtin_setjmp_receiver_er_1"): Remove.
18325 * config/alpha/alpha.opt (malpha-as): Remove.
18326 (mgas): Ignore.
18327 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
18328 -malpha-as, -mgas.
18329 Remove DEC Unix reference.
18330
18331 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
18332 (EXTENDED_COFF): Remove.
18333 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
18334 (EXTENDED_COFF): Don't undef.
18335 * config/alpha/alpha.c (alpha_file_start): Always assume
18336 OBJECT_FORMAT_ELF.
18337 Don't set targetm.asm_file_start_file_directive.
18338 [!OBJECT_FORMAT_ELF]: Remove.
18339 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
18340
18341 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
18342 (DBX_DEBUGGING_INFO): Remove.
18343 (MIPS_DEBUGGING_INFO): Remove.
18344 (PREFERRED_DEBUGGING_TYPE): Remove.
18345 (DBX_OUTPUT_SOURCE_LINE): Remove.
18346 (SDB_OUTPUT_SOURCE_LINE): Remove.
18347 (DBX_CONTIN_LENGTH): Remove.
18348 (NO_DBX_FUNCTION_END): Remove.
18349 (ASM_STABS_OP): Remove.
18350 (ASM_STABN_OP): Remove.
18351 (ASM_STABD_OP): Remove.
18352 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
18353 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
18354 (PUT_SDB_DEF): Remove.
18355 (PUT_SDB_PLAIN_DEF): Remove.
18356 (PUT_SDB_TYPE): Remove.
18357 (sdb_label_count): Remove.
18358 (PUT_SDB_BLOCK_START): Remove.
18359 (PUT_SDB_BLOCK_END): Remove.
18360 (PUT_SDB_FUNCTION_START): Remove.
18361 (PUT_SDB_FUNCTION_END): Remove.
18362 (PUT_SDB_EPILOGUE_END): Remove.
18363 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
18364 (MIPS_DEBUGGING_INFO): Don't undef.
18365 (DBX_DEBUGGING_INFO): Don't undef.
18366 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
18367 (MIPS_DEBUGGING_INFO): Don't undef.
18368 (DBX_DEBUGGING_INFO): Don't undef.
18369 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
18370 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
18371 handling.
18372 (alpha_start_function): Likewise.
18373 (sdb_label_count): Remove.
18374 (alpha_output_filename): Remove DBX_DEBUG handling.
18375 (alpha_file_start): Likewise.
18376
7888f266
RO
183772012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18378
18379 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
18380 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
18381 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
18382 Solaris 8 support.
18383 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
18384 (ld_tls_support): Remove Solaris 8 references.
18385 (lwp_dir, lwp_spec): Remove support for alternate thread library.
82e86dc6 18386 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
7888f266
RO
18387 * configure: Regenerate.
18388 * config.in: Regenerate.
18389
18390 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
18391 * config/i386/sol2.h: Remove Solaris 8 references.
18392
18393 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
18394 (i?86-*-solaris2.9): ... this.
18395 Remove Solaris 8 references.
18396 (Specific, *-*-solaris2*): Document Solaris 8 removal.
18397 Remove Solaris 8 references.
18398
b24513a1
RO
183992012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18400
18401 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
18402 (mips-sgi-irix6.5*): Remove.
18403 * config.host (mips-sgi-irix*): Remove.
18404 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
18405 (set_have_as_tls): Remove *-*-irix6*.
18406 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
18407 * configure: Regenerate.
18408
18409 * config/mips/iris6.h: Remove.
18410 * config/mips/iris6.opt: Remove.
18411 * config/mips/t-irix6: Remove.
18412
18413 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
18414 (TARGET_IRIX6): Remove.
18415 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
18416 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
18417 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
18418 handling.
18419 (mips_file_start): Likewise.
18420 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
18421
18422 * config/mips/driver-native.c [__sgi__]: Remove.
18423 (host_detect_local_cpu) [__sgi__]: Remove.
18424
18425 * config/mips/gnu-user.h: Remove iris5.h reference.
18426
18427 * config/mips/mips-modes.def: Remove IRIX 6 reference.
18428 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
18429 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
18430 Remove.
18431
18432 * gcc.c (main): Move asm_debug initialization ...
18433 (asm_debug): ... here.
18434
18435 * ginclude/stddef.h (__STDDEF_H__): Don't define.
18436
18437 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
18438 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
18439 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
18440 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
18441 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
18442 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
18443 Remove.
18444 * doc/tm.texi: Regenerate.
18445
18446 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
18447 IRIX 6 reference.
18448 (MIPS Options, -march): Remove IRIX reference.
18449 * doc/install.texi (Binaries, SGI IRIX): Remove.
18450 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
18451 of section.
18452 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
18453
02f6574b
MJ
184542012-03-14 Martin Jambor <mjambor@suse.cz>
18455
18456 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
82e86dc6 18457 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
02f6574b
MJ
18458 (expand_expr_real_1): Do not handle misalignment if modifier is
18459 EXPAND_WRITE.
18460
995ec132
RG
184612012-03-14 Richard Guenther <rguenther@suse.de>
18462
18463 PR middle-end/52584
18464 * tree-vect-generic.c (type_for_widest_vector_mode): Take
18465 element type instead of mode, use build_vector_type_for_mode
18466 instead of the langhook, build a vector of proper signedness.
18467 (expand_vector_operations_1): Adjust.
18468
7501ca28
RG
184692012-03-14 Richard Guenther <rguenther@suse.de>
18470
18471 PR middle-end/52582
82e86dc6
UB
18472 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
18473 a cgraph node for a FUNCTION_DECL that comes from a constructor.
7501ca28
RG
18474 (gimple_get_virt_method_for_binfo): Likewise.
18475
c205d0b3
RG
184762012-03-14 Richard Guenther <rguenther@suse.de>
18477
18478 PR tree-optimization/52571
18479 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
18480 flag_section_anchors check ...
18481 (vect_can_force_dr_alignment_p): ... here. Do not re-align
18482 DECL_COMMON variables.
18483
26c71b93
RG
184842012-03-14 Richard Guenther <rguenther@suse.de>
18485
18486 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
18487 * stor-layout.c (start_bitfield_representative): New function.
18488 (finish_bitfield_representative): Likewise.
18489 (finish_bitfield_layout): Likewise.
18490 (finish_record_layout): Call finish_bitfield_layout.
18491 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
18492 for QUAL_UNION_TYPE fields.
18493 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
18494 Stream DECL_BIT_FIELD_REPRESENTATIVE.
18495 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
18496
18497 PR middle-end/52080
18498 PR middle-end/52097
18499 PR middle-end/48124
18500 * expr.c (get_bit_range): Unconditionally extract bitrange
18501 from DECL_BIT_FIELD_REPRESENTATIVE.
18502 (expand_assignment): Adjust call to get_bit_range.
18503
1caf8dd6
RG
185042012-03-14 Richard Guenther <rguenther@suse.de>
18505
18506 PR middle-end/52578
18507 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
18508 the outermost conversion is a sign-change only.
18509 (fold_binary_loc): Disregard widening and sign-changing
18510 conversions when we determine if two variables are equal
18511 for reassociation.
18512 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
18513 (T1)x if the outermost conversion is a sign-change only.
18514
a1d3d84b
UB
185152012-03-14 Uros Bizjak <ubizjak@gmail.com>
18516
18517 Revert:
18518 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
18519
18520 * config/i386/predicates.md (constant_call_address_operand): Declare
18521 as special predicate. Update all uses.
18522
b7613c91
JJ
185232012-03-13 Jakub Jelinek <jakub@redhat.com>
18524
9243c51d
JJ
18525 PR c/52577
18526 * c-parser.c (c_parser_postfix_expression)
18527 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
18528
b7613c91
JJ
18529 * config/i386/smmintrin.h: Avoid /* within a comment.
18530 * config/i386/nmmintrin.h: Likewise.
18531
9020ff27
UB
185322012-03-13 Uros Bizjak <ubizjak@gmail.com>
18533
18534 * config/i386/i386.md (xbegin): Remove constraint from expander.
18535
6e5c8423
UB
185362012-03-13 Uros Bizjak <ubizjak@gmail.com>
18537
18538 * config/i386/predicates.md (constant_call_address_operand): Declare
18539 as special predicate. Update all uses.
18540 * config/i386/i386.md: Remove mode from constant_call_address_operand
18541 predicates.
18542 * config/i386/i386.c (ix86_output_call_insn): Call
18543 constant_call_address_operand with VOIDmode.
18544
ff71e554
UB
185452012-03-13 Uros Bizjak <ubizjak@gmail.com>
18546
18547 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
18548 AND zero extended address correctly.
18549
62a1c041
UB
185502012-03-13 Uros Bizjak <ubizjak@gmail.com>
18551
18552 * config/i386/predicates.md (tls_symbolic_operand): Declare as
18553 special predicate.
18554 (tls_modbase_operand): Ditto.
18555 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
18556 tls_modbase_operand predicates.
18557
43332529
MJ
185582012-03-13 Martin Jambor <mjambor@suse.cz>
18559
18560 * expr.c (expand_assignment): Handle misaligned scalar writes to
18561 memory through top-level MEM_REFs by calling store_bit_field.
18562
0c12cd5e
RG
185632012-03-13 Richard Guenther <rguenther@suse.de>
18564
18565 PR middle-end/52134
18566 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
18567 if Y is a constant multiple of 1 << CST.
18568
ae606c28
GJL
185692012-03-13 Georg-Johann Lay <avr@gjlay.de>
18570
18571 PR target/52488
18572 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
18573 offset (size) to a value the insns can deal with.
18574 (expand_epilogue): Ditto.
18575
a0a6e3f7
MGD
185762012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
18577
18578 * config/arm/neon.ml (ops): Fixup expected instructions for
18579 unsigned vector compares.
18580
9ec96023
UB
185812012-03-13 Uros Bizjak <ubizjak@gmail.com>
18582
18583 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
18584 addresses only when %reg is not in word mode.
18585
d47657bd
RO
185862012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18587
18588 * config/microblaze/microblaze.md: Fix typo.
18589 * tree-if-conv.c: Likewise.
18590 * tree-vect-patterns.c: Likewise.
18591
d82c57a8
RO
185922012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18593
18594 * config.gcc (extra_passes): Remove.
18595 * configure.ac (extra_passes): Don't substitute.
18596 * configure: Regenerate.
18597 * Makefile.in (EXTRA_PASSES): Remove.
18598 (GCC_PASSES): Remove $(EXTRA_PASSES).
18599 (MOSTLYCLEANFILES): Likewise.
18600 (native): Likewise.
18601 (install-common): Likewise.
18602
6c2f0f83
UB
186032012-03-13 Uros Bizjak <ubizjak@gmail.com>
18604
18605 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
18606 * config/i386/i386.c (ix86_decompose_address): Use
18607 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
18608 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
18609 thread pointer to a register.
18610
a029a154
L
186112012-03-12 H.J. Lu <hongjiu.lu@intel.com>
18612
18613 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
18614 on tls_symbolic_operand.
18615 (tls_global_dynamic_64_<mode>): Likewise.
18616
2dc5ca18
GJL
186172012-03-12 Georg-Johann Lay <avr@gjlay.de>
18618
18619 PR other/52545
18620 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
18621 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
18622
ed2d1466
GJL
186232012-03-12 Georg-Johann Lay <avr@gjlay.de>
18624
18625 PR target/52499
18626 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
18627 type from reg_class_t to enum reg_class.
18628 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
18629
b928d32b
AP
186302012-03-12 Andrew Pinski <apinski@cavium.com>
18631
18632 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
18633 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
18634 (value_replacement): Likewise.
18635 (empty_block_p): Check also if the PHIs for the block are empty.
18636
2f986dce
GJL
186372012-03-12 Georg-Johann Lay <avr@gjlay.de>
18638
18639 PR target/52148
18640 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
18641 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
18642 r184615 from 2012-02-28.
18643
79eeab23
L
186442012-03-12 H.J. Lu <hongjiu.lu@intel.com>
18645
18646 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
18647 (ix86_gen_tls_local_dynamic_base_64): Likewise.
18648 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
18649 and ix86_gen_tls_local_dynamic_base_64.
18650 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
18651 ix86_gen_tls_local_dynamic_base_64.
18652
18653 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
18654 (*tls_global_dynamic_64_<mode>): This.
18655 (tls_global_dynamic_64): Renamed to ...
18656 (tls_global_dynamic_64_<mode>): This.
18657 (*tls_local_dynamic_base_64): Renamed to ...
18658 (*tls_local_dynamic_base_64_<mode>): This.
18659 (tls_local_dynamic_base_64): Renamed to ...
18660 (tls_local_dynamic_base_64_<mode>): This.
18661
986b6423
L
186622012-03-12 H.J. Lu <hongjiu.lu@intel.com>
18663
18664 * config/i386/i386.c (ix86_option_override_internal): Properly
18665 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
18666 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
82e86dc6
UB
18667 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
18668 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
986b6423
L
18669
18670 * config/i386/sse.md (sse3_monitor64): Renamed to ...
18671 (sse3_monitor64_<mode>): This.
18672
472b8fdc
TG
186732012-03-12 Tristan Gingold <gingold@adacore.com>
18674
18675 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
18676 (ia64_function_arg_advance): Ditto.
18677
c4bc5c25
RO
186782012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18679
18680 * config.gcc (mips*-*-openbsd*): Remove.
18681 * config/mips/openbsd.h: Remove.
18682 * config/mips/sdb.h: Remove.
18683
18684 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
18685 * config/mips/mips.c (sdb_label_count): Remove.
18686 (mips_debugger_offset): Remove #if 0 code.
18687 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
18688 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
18689
493dd43c
RO
186902012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18691
18692 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
18693 binutils reference.
18694 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
18695 Update binutils references.
18696 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
18697 Update binutils reference.
18698 Update Sun as/GNU ld caveat.
18699 Document binutils largefile requirement for LTO plugin.
344f61ae 18700 Remove reference to alternate libpthread.
493dd43c 18701
5c30094f
RO
187022012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18703
18704 * config.gcc (alpha*-dec-osf5.1*): Remove.
18705 * config.host (alpha*-dec-osf*): Remove.
18706 * configure.ac (*-*-osf*): Remove.
18707 (alpha*-dec-osf*): Remove.
18708 * configure: Regenerate.
18709
82e86dc6
UB
18710 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
18711 config/alpha/va_list.h, config/alpha/x-osf: Remove.
5c30094f
RO
18712
18713 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
18714 * config/alpha/alpha.c (struct machine_function): Update comment.
18715 (alpha_start_function): Remove Tru64 UNIX as handling for
18716 max_frame_size.
18717 * config/alpha/alpha.md ("exception_receiver"): Remove
18718 TARGET_LD_BUGGY_LDGP.
18719 ("*exception_receiver_2"): Likewise.
18720 * except.c (finish_eh_generation): Remove Tru64 reference.
18721 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
18722 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
18723 * target.def (handle_pragma_extern_prefix): Remove.
18724
18725 * Makefile.in (mips-tfile.o-warn): Remove.
18726 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
18727 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
18728 * mips-tdump.c, mips-tfile.c: Remove.
18729
18730 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
18731 extern_prefix.
18732 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
18733 (Specific, alpha*-dec-osf5.1): Note removal.
18734 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
18735 Remove.
18736 * doc/tm.texi: Regenerate.
18737 * doc/trouble.texi (Cross-Compiler Problems): Remove.
18738
bb008427
RG
187392012-03-12 Richard Guenther <rguenther@suse.de>
18740
18741 * config/arm/arm.c (neon_dereference_pointer): Do not call
18742 covert during RTL expansion.
18743
281740d1
TG
187442012-03-12 Tristan Gingold <gingold@adacore.com>
18745
18746 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
18747 Options. Mention -mpointer-size.
18748
21fa2faf
RG
187492012-03-12 Richard Guenther <rguenther@suse.de>
18750
18751 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
18752 build_nonstandard_integer_type.
18753
7ee6fd68
RG
187542012-03-12 Richard Guenther <rguenther@suse.de>
18755
18756 * tree.c (signed_or_unsigned_type_for): Use
18757 build_nonstandard_integer_type.
18758 (signed_type_for): Adjust documentation.
18759 (unsigned_type_for): Likewise.
18760 * tree-pretty-print.c (dump_generic_node): Use standard names
18761 for non-standard integer types if available.
18762
d8aba32a
TG
187632012-03-12 Tristan Gingold <gingold@adacore.com>
18764
18765 * config/vms/vms.opt: Add vms-opts.h header.
18766 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
18767 target mask.
18768 (-mvms-return-codes): Document.
18769 (-mpointer-size): New option.
18770 (vms_pointer_size): Add enumeration.
18771 * config/vms/vms-opts.h: New file.
18772 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
18773 __INITIAL_POINTER_SIZE.
18774 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
18775 (C_COMMON_OVERRIDE_OPTIONS): Define.
18776 (DWARF2_ADDR_SIZE): Define.
18777 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
18778 * config/vms/vms-protos.h (vms_c_common_override_options):
18779 New prototype.
18780 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
18781 if -mno-pointer-size.
18782 (vms_c_common_override_options): New function.
18783 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
18784 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
18785 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
18786 and flag_vms_pointer_size.
18787 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
18788 * config.gcc (*-*-*vms*): Define xm_file.
18789 (alpha*-dec-*vms*): Do not define xm_file.
18790 (alpha64-dec-*vms*): Remove.
18791 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
18792 and tmake_file.
18793
7b5c5139
JJ
187942012-03-12 Jakub Jelinek <jakub@redhat.com>
18795
18796 PR tree-optimization/51721
18797 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
18798 if (int) unsvar cmp CST.
18799
3f5f6592
RG
188002012-03-12 Richard Guenther <rguenther@suse.de>
18801
82e86dc6
UB
18802 * tree-sra.c (create_access_replacement): Only rename the replacement
18803 if we can rewrite it into SSA form. Properly mark register typed
18804 replacements that we cannot rewrite with TREE_ADDRESSABLE.
3f5f6592
RG
18805 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
18806 for aggregate or BLKmode results.
18807
01c1f20d
JJ
188082012-03-12 Jakub Jelinek <jakub@redhat.com>
18809
18810 PR tree-optimization/52533
18811 * tree-vrp.c (register_edge_assert_for_2): Use double_int
18812 type for mask, only handle shifts by non-zero in-range
18813 shift count, for LE_EXPR and GT_EXPR if new_val is
18814 maximum, don't add the assertion.
18815
bf2eaa3f
KY
188162012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
18817
18818 * doc/invoke.texi: Document -mrtm option.
82e86dc6 18819 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
bf2eaa3f
KY
18820 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
18821 (ix86_handle_option): Handle OPT_mrtm.
18822 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
18823 xtestintrin.h.
18824 (x86_64-*-*): Ditto.
18825 * i386-builtin-types.def (INT_FTYPE_VOID): New.
18826 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18827 __RTM__ if needed.
18828 (ix86_target_string): Define -mrtm option.
18829 (PTA_RTM): New.
82e86dc6
UB
18830 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
18831 Handle new option.
bf2eaa3f
KY
18832 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
18833 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
18834 IX86_BUILTIN_XTEST.
18835 (bdesc_special_args): Ditto.
18836 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
18837 (ix86_expand_special_args_builtin): Handle new built-in type.
18838 (ix86_expand_builtin): Handle XABORT instruction.
18839 * config/i386/i386.h (TARGET_RTM): New.
18840 * config/i386/i386.md (UNSPECV_XBEGIN): New.
18841 (UNSPECV_XEND): Ditto.
18842 (UNSPECV_XABORT): Ditto.
18843 (UNSPECV_XTEST): Ditto.
18844 (xbegin): Ditto.
18845 (xbegin_1): Ditto.
18846 (xend): Ditto.
18847 (xabort): Ditto
18848 (xtest): Ditto.
18849 (xtest_1): Ditto.
18850 * config/i386/i386.opt (mrtm): New.
82e86dc6 18851 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
bf2eaa3f
KY
18852 * config/i386/rtmintrin.h: New header.
18853 * config/i386/xtestintrin.h: Ditto.
18854
914e2f45
TG
188552012-03-12 Tristan Gingold <gingold@adacore.com>
18856
82e86dc6
UB
18857 * ginclude/stddef.h: Adjust previous patch.
18858 Use __VMS__ instead of VMS.
914e2f45 18859
f70c41dd
UB
188602012-03-12 Uros Bizjak <ubizjak@gmail.com>
18861
18862 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
18863 Also convert sequences with CC setting arithmetic instruction.
18864
25d28bd3
SL
188652012-03-11 Sandra Loosemore <sandra@codesourcery.com>
18866
18867 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
18868 from C Language Options to Preprocessor Options.
18869 (C Dialect Options): Move -no-integrated-cpp documentation
18870 from here...
18871 (Preprocessor Options): ...to here. Rewrite the description
82e86dc6 18872 so it makes more sense, and remove discussion of merging front ends.
25d28bd3 18873
8100d8c1
L
188742012-03-11 H.J. Lu <hongjiu.lu@intel.com>
18875
18876 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
18877 needed for loop.
18878 (ix86_expand_setmem): Likewise.
18879
670bb1a1
UB
188802012-03-11 Uros Bizjak <ubizjak@gmail.com>
18881
18882 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
18883 convert_to_mode.
18884
ba61421d
L
188852012-03-11 H.J. Lu <hongjiu.lu@intel.com>
18886
18887 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
18888 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
18889
649507af
L
188902012-03-11 H.J. Lu <hongjiu.lu@intel.com>
18891
670bb1a1 18892 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
649507af 18893
1991321c
L
188942012-03-11 H.J. Lu <hongjiu.lu@intel.com>
18895
18896 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
18897 TARGET_64BIT.
18898
9ec90caa
UB
188992012-03-11 H.J. Lu <hongjiu.lu@intel.com>
18900 Uros Bizjak <ubizjak@gmail.com>
1ce8d925 18901
9ec90caa 18902 * config/i386/predicates.md (call_insn_operand): Allow
1ce8d925
UB
18903 constant_call_address_operand in Pmode only.
18904 (sibcall_insn_operand): Ditto.
18905 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
18906 (*call_vzeroupper): Ditto.
18907 (*sibcall): Ditto.
18908 (*sibcall_vzeroupper): Ditto.
18909 (*call_value): Ditto.
18910 (*call_value_vzeroupper): Ditto.
18911 (*sibcall_value): Ditto.
18912 (*sibcall_value_vzeroupper): Ditto.
18913 (*indirect_jump): Ditto.
18914 (*tablejump_1): Ditto.
18915 (indirect_jump): Convert memory address to word mode for TARGET_X32.
18916 (tablejump): Ditto.
18917 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
18918 to word mode.
18919
07c0b560
OE
189202012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
18921
18922 PR target/51244
18923 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
18924 Use movrt_negc instead of negc pattern for non-SH2A.
18925 (*movnegt): Remove.
18926 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
18927
09255652
L
189282012-03-10 H.J. Lu <hongjiu.lu@intel.com>
18929
18930 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
18931 if Pmode != word_mode.
18932 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
1ce8d925 18933 Pmode == SImode for TARGET_X32.
09255652
L
18934
18935 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
18936 (tls_initial_exec_x32): Likewise.
18937
30823ba6
CLT
189382012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
18939
18940 PR rtl-optimization/52528
18941 * combine.c (can_combine_p): Add setting of subst_low_luid
18942 before call to expand_field_assignment().
18943
b364b425
SL
189442012-03-09 Sandra Loosemore <sandra@codesourcery.com>
18945
18946 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
18947 and related program names.
18948
7bd11aba
SL
189492012-03-09 Sandra Loosemore <sandra@codesourcery.com>
18950
18951 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
18952
080324ac
UB
189532012-03-09 Uros Bizjak <ubizjak@gmail.com>
18954
18955 PR target/52530
18956 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
18957 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
18958 to set code to 'q'.
18959 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
18960 (*movdi_internal_rex64): Use %E operand modifier for lea.
18961 (*movsi_internal): Ditto.
18962 (*lea_1): Ditto.
18963 (*lea<mode>_2): Ditto.
18964 (*lea_{3,4,5,6}_zext): Ditto.
18965 (*tls_global_dynamic_32_gnu): Ditto.
18966 (*tls_global_dynamic_64): Ditto.
18967 (*tls_dynamic_gnu2_lea_32): Ditto.
18968 (*tls_dynamic_gnu2_lea_64): Ditto.
18969 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
18970
45cfa18d
MM
189712012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
18972
18973 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
18974 redefine to be NULL if the current bit-size is different from the
18975 configured bit-size.
18976
18977 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
18978 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
18979 set the default tuning. Add asserts to make sure the cpu and tune
18980 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
18981 test whether the index is set, instead of > 0.
18982 (rs6000_file_start): Do not reset the default cpu if the current
18983 bit-size is different from the configured bit-size.
18984
30da483d
TG
189852012-03-09 Tristan Gingold <gingold@adacore.com>
18986
18987 * config/vms/vms-crtlmap.map: Add comments.
18988 Add entries needed to build Ada RTS.
18989
c8be95e6
TG
189902012-03-09 Tristan Gingold <gingold@adacore.com>
18991
18992 * ginclude/stddef.h: Do not define __size_t on VMS.
18993
412cd719
TG
189942012-03-09 Tristan Gingold <gingold@adacore.com>
18995
18996 * c-tree.h (c_default_pointer_mode): New variable.
18997 * c-decl.c (c_default_pointer_mode): New variable.
18998 (c_build_pointer_type): New function.
18999 (grokdeclarator): Call c_build_pointer_type instead
19000 of build_pointer_type.
19001
19002 * config/vms/vms-c.c: Include c-tree.h
19003 (saved_pointer_mode): New variable.
19004 (handle_pragma_pointer_size): New function.
19005 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
19006 (vms_c_register_pragma): Register __pointer_size and
19007 __required_pointer_size pragmas.
19008
575a6235
TG
190092012-03-09 Tristan Gingold <gingold@adacore.com>
19010
19011 * config/vms/vms-c.c (vms_construct_include_filename): New function.
19012 (vms_c_register_includes): Reference it.
19013
210ac0b7
AP
190142012-03-09 Andrew Pinski <apinski@cavium.com>
19015
19016 PR middle-end/51988
19017 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
19018 print_generic_expr.
19019 (tree_ssa_phiopt_worker): Go through all the PHIs for
19020 value_replacement instead of just the singleton one.
19021 (value_replacement): Change return type to int. Return 0 instead of
19022 false.
575a6235
TG
19023 Allow the middle basic block to contain more than just the defining
19024 statement.
210ac0b7
AP
19025 Handle non empty middle basic blocks.
19026 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
19027
bef28ced
JL
190282012-03-09 Jiangning Liu <jiangning.liu@arm.com>
19029
19030 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
19031 array reference and component reference.
19032 (analyze_scalar_evolution_for_address_of): New.
19033
9916d7ea
JZ
190342012-03-08 Jie Zhang <jzhang918@gmail.com>
19035
19036 PR target/49862
080324ac 19037 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
9916d7ea
JZ
19038 (hwloop_pattern_reg): Fix set but not used warning.
19039 (bfin_reorg_loops): Remove unused parameter.
19040 (bfin_reorg): Update use of bfin_reorg_loops.
19041
cc845923
L
190422012-03-08 H.J. Lu <hongjiu.lu@intel.com>
19043
19044 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
19045 with integer parameters in registers.
19046 (gen_push): Push register in word_mode instead of Pmode.
19047 (ix86_emit_save_regs): Likewise.
080324ac 19048 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
cc845923
L
19049 (gen_pop): Pop register in word_mode instead of Pmode.
19050 (ix86_emit_restore_regs_using_pop): Likewise.
19051 (ix86_expand_prologue): Replace Pmode with word_mode for push
19052 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
19053 restore RAX and R10 in word_mode.
19054 (ix86_emit_restore_regs_using_mov): Restore integer registers
19055 in word_mode.
19056 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
19057 word_mode.
19058 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
19059 (ix86_split_long_move): Likewise.
19060
19061 * config/i386/i386.md (W): New.
19062 (*push<mode>2_prologue): Replace :P with :W.
19063 (*pop<mode>1): Likewise.
19064 (*pop<mode>1_epilogue): Likewise.
19065 (push/pop peephole2): Use word_mode scratch registers.
19066
b9719055
UB
190672012-03-08 Uros Bizjak <ubizjak@gmail.com>
19068
19069 * config/i386/predicates.md (indirect_branch_operand): Simplify.
19070
e04d063b
GJL
190712012-03-08 Georg-Johann Lay <avr@gjlay.de>
19072
19073 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
19074 for constants in [-63,63].
19075
ce19a3f8
UB
190762012-03-08 Uros Bizjak <ubizjak@gmail.com>
19077
19078 PR target/52530
19079 Revert:
19080 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
19081
19082 * config/i386/i386.c (ix86_print_operand_address): Only handle
19083 zero-extended DImode addresses.
19084
2527ff87
RO
190852012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19086
19087 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
19088 * configure: Regenerate.
19089
d93417c8
GJL
190902012-03-08 Georg-Johann Lay <avr@gjlay.de>
19091
19092 PR target/52496
19093 * config/avr/avr.c (avr_mem_clobber): New static function.
19094 (avr_expand_delay_cycles): Add memory clobber operand to
19095 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
19096 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
19097 (enable_interrupt, disable_interrupt): New expander.
19098 (nopv, sleep, wdr): New expanders.
19099 (delay_cycles_1): Add memory clobber.
19100 (delay_cycles_2): Add memory clobber.
19101 (delay_cycles_3): Add memory clobber.
19102 (delay_cycles_4): Add memory clobber.
19103 (cli_sei): New insn from former "enable_interrupt",
19104 "disable_interrupt" with memory clobber.
19105 (*wdt): New insn from former "wdt" with memory clobber.
19106 (*nopv): Similar, but for "nopv".
19107 (*sleep): Similar, but for "sleep".
19108
bed9e870
OE
191092012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
19110 Kaz Kojima <kkojima@gcc.gnu.org>
19111
19112 PR target/52503
19113 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
19114 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
19115 (SUBTARGET_OVERRIDE_OPTIONS): Define.
19116
ca538e97
UB
191172012-03-07 Uros Bizjak <ubizjak@gmail.com>
19118
19119 * config/i386/predicates.md (x86_64_zext_general_operand): New.
19120 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
19121 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
19122
95f2389a
WL
191232012-03-07 Walter Lee <walt@tilera.com>
19124
19125 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
19126 REG_CFA_* notes for the stack pointer.
19127 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
19128 EH_RETURN_STACKADJ_RTX.
19129 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
19130 generate REG_CFA_* notes for the stack pointer.
19131 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
19132 by EH_RETURN_STACKADJ_RTX.
19133
0bd5f4dd
GJL
191342012-03-07 Georg-Johann Lay <avr@gjlay.de>
19135
19136 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
19137 when __AVR_3_BYTE_PC__ is defined.
19138
397c0dc8
UB
191392012-03-07 Uros Bizjak <ubizjak@gmail.com>
19140
19141 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
19142 (ix86_print_operand): Handle '^'.
19143 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
19144 using P mode iterator. Add %^ to asm template to conditionally emit
19145 addr32 prefix.
19146 (*rep_movdi_rex64): Ditto.
19147 (*strsetdi_rex_1): Ditto.
19148 (*rep_stosdi_rex64): Ditto.
19149 (*strmov{si,hi,qi}_1): Add %^ to asm template to
19150 conditionally emit addr32 prefix.
19151 (*rep_mov{si,qi}): Ditto.
19152 (*strset{si,hi,qi}): Ditto.
19153 (*rep_stos{si,qi}): Ditto.
19154 (*cmpstrnqi_nz_1): Ditto.
19155 (*cmpstrnqi_1): Ditto.
19156 (*strlenqi_1): Ditto.
19157
cccff71a
L
191582012-03-07 H.J. Lu <hongjiu.lu@intel.com>
19159
19160 * config/i386/i386.c (function_value_64): Return pointers in
19161 word_mode instead of Pmode.
19162 (ix86_promote_function_mode): Likewise.
19163
0f250839
RG
191642012-03-07 Richard Guenther <rguenther@suse.de>
19165
19166 * coverage.c (get_gcov_type): Use type_for_mode.
19167 (get_gcov_unsigned_t): Likewise.
19168 * expr.c (store_constructor): Use type_for_mode.
19169 (try_casesi): Likewise.
397c0dc8 19170 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
0f250839
RG
19171 (add_standard_iv_candidates): Use standard type trees.
19172 * dojump.c (do_jump): Remove dead code.
19173
647d4b75
RG
191742012-03-07 Richard Guenther <rguenther@suse.de>
19175
19176 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
19177
73ddd02d
RG
191782012-03-07 Richard Guenther <rguenther@suse.de>
19179
19180 * convert.c (strip_float_extensions): Move ...
19181 * tree.c (strip_float_extensions): ... here.
19182
1274e3a4
GJL
191832012-03-07 Georg-Johann Lay <avr@gjlay.de>
19184
19185 PR target/52484
19186 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
19187
96f9265a
RG
191882012-03-07 Richard Guenther <rguenther@suse.de>
19189
19190 * omp-low.c (extract_omp_for_data): Use signed_type_for.
19191 (expand_omp_for_generic): Likewise.
19192 (expand_omp_for_static_nochunk): Likewise.
19193 (expand_omp_for_static_chunk): Likewise.
19194 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
19195 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19196 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19197 Use unsigned_type_for.
19198 (vect_create_cond_for_align_checks): Use signed_type_for.
19199
3f1960ac
AB
192002012-03-07 Andrey Belevantsev <abel@ispras.ru>
19201
19202 PR rtl-optimization/52203
19203 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
19204 all callers to pass NULL except ...
19205 (reset_sched_cycles_in_current_ebb): ... here, save the value
19206 in new variable 'empty'. Increase issue_rate only for
397c0dc8 19207 non-empty insns.
3f1960ac 19208
d6baa446
RC
192092012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
19210
19211 PR target/51417
397c0dc8
UB
19212 * Makefile.in: Let install-gcc-ar depend on installdirs,
19213 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
d6baa446
RC
19214 Don't double canonicalize if cross-compiling.
19215
42601c63
GJL
192162012-03-07 Georg-Johann Lay <avr@gjlay.de>
19217
19218 PR target/52506
19219 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
19220 to: RAMPZ, RAMPY, RAMPX, RAMPD.
19221 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
19222
61108225
GJL
192232012-03-07 Georg-Johann Lay <avr@gjlay.de>
19224
19225 PR target/52505
19226 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
19227 from RAM.
19228 * config/avr/avr.md (xload_8): Adjust insn length.
19229
b30e10ab
GJL
192302012-03-07 Georg-Johann Lay <avr@gjlay.de>
19231
19232 PR target/52461
19233 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
19234 if RAMPZ affects reading from RAM.
19235
eb3e63cc
RG
192362012-03-07 Richard Guenther <rguenther@suse.de>
19237
19238 PR pch/52518
19239 PR pch/38987
19240 * doc/invoke.texi (Precompiled Headers): Remove sentence that
19241 suggests you can include PCHs from inside another header.
19242
788284ef
RS
192432012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
19244
19245 PR middle-end/52515
19246 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
19247
98b1d9b2
KT
192482012-03-07 Kai Tietz <ktietz@redhat.com>
19249
19250 * doc/invoke.texi (fwritable-relocated-rdata): Document
19251 new Cygwin/MinGW target option.
19252 * config/i386/winnt.c (i386_pe_unique_section): Ignore
19253 reloc if flag -fwritable-relocated-rdata is not set.
19254 (i386_pe_section_type_flags): Likewise.
19255 * config/i386/cygming.opt (fwritable-relocated-rdata):
19256 Add new flag variable flag_writable_rel_rdata.
19257
f409d239
RG
192582012-03-07 Richard Guenther <rguenther@suse.de>
19259
19260 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
19261 precision against gimple constraints.
19262
ca4adc91
RS
192632012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
19264
19265 PR middle-end/52372
19266 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
19267 variables.
19268 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
19269 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
19270 variables.
19271 (init_emit_regs): Move associated initialization to...
19272 (init_emit_once): ...here.
19273
22a89c86
RH
192742012-03-06 Richard Henderson <rth@redhat.com>
19275
19276 * config/m68k/m68k.h (ISA_HAS_TAS): New.
19277 * config/m68k/sync.md (atomic_test_and_set): Use it.
19278 (atomic_test_and_set_1): Likewise.
19279
46402cbe
MM
192802012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19281
19282 PR target/50310
19283 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
19284 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
19285 (vector_ltgt<mode>): Likewise.
19286 (vector_ordered<mode>): Likewise.
19287 (vector_unordered<mode>): Likewise.
397c0dc8 19288 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
46402cbe 19289
6342e53f
AH
192902012-03-06 Aldy Hernandez <aldyh@redhat.com>
19291
19292 * trans-mem.c: New typedef for tm_region_p.
19293 Define vector types for tm_region_p.
19294 (tm_region_init): Replace region_worklist to a vector called
19295 bb_regions.
19296
d8f56643
RG
192972012-03-06 Richard Guenther <rguenther@suse.de>
19298
19299 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
19300 MEM_REF with constant pointer operand.
19301
9da5500b
RG
193022012-03-06 Richard Guenther <rguenther@suse.de>
19303
19304 PR middle-end/52493
19305 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
19306
66df6e9e
TG
193072012-03-06 Tristan Gingold <gingold@adacore.com>
19308
397c0dc8 19309 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
66df6e9e
TG
19310 (external_model_kind): Improve documentation.
19311 (vms_pragma_extern_model): Handle relaxed_redef.
19312 (vms_c_register_pragma): Allow expansion for nomember_alignment.
19313
837fd3b0
GJL
193142012-03-06 Georg-Johann Lay <avr@gjlay.de>
19315
19316 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
19317 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
19318 Some more notes on EIND usage and reorder EIND subsection.
19319
17a27c59
TG
193202012-03-06 Tristan Gingold <gingold@adacore.com>
19321
19322 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
19323 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
19324
a2ddaaf5
TG
193252012-03-06 Tristan Gingold <gingold@adacore.com>
19326
19327 * config/vms/t-vmsnative (version): Define.
19328 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
19329
b7b5540a
AB
193302012-03-06 Andrey Belevantsev <abel@ispras.ru>
19331
19332 PR rtl-optimization/52250
19333 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
19334 to put note list into. Unconditionally call move_bb_info.
19335 (move_bb_info): Do not assert the blocks being in the same region,
a2ddaaf5 19336 just drop the note list if they are not.
b7b5540a 19337
9747719a
OE
193382012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
19339
19340 PR target/51244
19341 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
19342 and use unified expansion logic.
19343 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
19344 closer to the existing movt insn.
19345 (negc): Rename insn to *negc. Add new expander.
19346 (movnegt): Use xor pattern for T bit negation. Reserve helper
19347 constant for negc pattern.
19348 (*movnegt): New insn and splitter.
19349
5de72424
BS
193502012-03-05 Bernd Schmidt <bernds@codesourcery.com>
19351
19352 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
19353 PLUS_EXPR.
19354
3b1552c1
RH
193552012-03-05 Richard Henderson <rth@redhat.com>
19356
19357 * genemit.c (main): Include "target.h" in insn-emit.c.
19358 * Makefile.in (insn-emit.o): Depend on TARGET_H.
19359 * config/sh/sync.md (atomic_test_and_set): Reference
19360 targetm.atomic_test_and_set_trueval instead of
19361 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
19362
1565f169
JR
193632012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
19364
19365 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
19366 Make static.
19367
c0814136
SB
193682012-03-05 Steven Bosscher <steven@gcc.gnu.org>
19369
19370 * langhooks.c (add_builtin_type): New function.
19371 * langhooks.h (add_builtin_type): Export it.
19372 * config/mep/mep.c (mep_init_builtins): Use it.
19373 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
19374
1e3c1d95
JJ
193752012-03-05 Jakub Jelinek <jakub@redhat.com>
19376
19377 PR debug/51902
19378 * tree.h (BLOCK_SAME_RANGE): Define.
19379 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
19380 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
19381 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
19382 isn't equal to supercontext fragment's fragment chain.
19383 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
19384 fragment origin.
19385 (blocks_nreverse_all): Likewise.
19386 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
19387 BLOCK_SUPERCONTEXT to supercontext fragment instead of
19388 supercontext fragment's fragment origin.
19389 * dwarf2out.c (add_high_low_attributes): If stmt has the same
19390 range as its parent (or parents thereof etc.), use the parent's
19391 DW_AT_ranges value instead of creating a new .debug_ranges range.
19392
4999c62c
RH
193932012-03-05 Richard Henderson <rth@redhat.com>
19394
19395 PR tree-opt/52242
19396 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
19397 * omp-low.c (expand_omp_atomic): Assume anything aligned to
19398 BIGGEST_ALIGNMENT is aligned.
19399
95a6dda5
RH
194002012-03-05 Richard Henderson <rth@redhat.com>
19401
19402 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
19403 * config/sh/sh.c: ... here.
19404
b7313c30
RH
194052012-03-05 Richard Henderson <rth@redhat.com>
19406
19407 PR target/52481
19408 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
19409 instead of calling negqi2 directly.
19410
f49b12f4
RH
194112012-03-05 Aldy Hernandez <aldyh@redhat.com>
19412
19413 PR middle-end/52463
19414 * trans-mem.c (tm_region_init): Use last_basic_block.
19415
ab649754
OE
194162012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
19417
19418 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
19419 * config/sh/sync.md (atomic_test_and_set): New expander.
19420 (tasb, atomic_test_and_set_soft): New insns.
19421 * config/sh/sh.opt (menable-tas): New option.
19422 * doc/invoke.texi (SH Options): Document it.
19423
510dbcce
RG
194242012-03-05 Richard Guenther <rguenther@suse.de>
19425
19426 * cfgloop.c (verify_loop_structure): Verify dominators before
19427 using them.
19428 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
19429 dominators from here.
19430 * graphite-scop-detection.c (create_sese_edges): Likewise.
19431 * loop-doloop.c (doloop_optimize_loops): Likewise.
19432 * loop-init.c (loop_optimizer_init): Likewise.
19433 * loop-unroll.c (unroll_and_peel_loops): Likewise.
19434 * loop-unswitch.c (unswitch_loops): Likewise.
19435 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
19436 * tree-parloops.c (parallelize_loops): Likewise. Verify
19437 only when checking is enabled.
19438 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
19439
50bcfce0
BS
194402012-03-05 Bernd Schmidt <bernds@codesourcery.com>
19441
19442 * genautomata.c (parse_automata_opt): New static function.
19443 (initiate_automaton_gen): Remove all option handling code. Remove
19444 argc argument. All callers changed.
397c0dc8 19445 (main): Call init_rtx_reader_args_cb with the new function as argument.
50bcfce0 19446
cd7d9fd7
RG
194472012-03-05 Richard Guenther <rguenther@suse.de>
19448
19449 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
19450 * tree-if-conv.c (combine_blocks): Free post-dominator info
19451 after breaking it.
19452 * tree-parloops.c (create_parallel_loop): Free and re-compute
19453 dominator info after breaking it.
19454
b55f62cc
RG
194552012-03-05 Richard Guenther <rguenther@suse.de>
19456
19457 PR middle-end/52353
19458 * optabs.h (trapv_unoptab_p): New function.
19459 (trapv_binoptab_p): Likewise.
19460 * optabs.c (expand_binop): Use emit_libcall_block_1 with
19461 a proper equiv_may_trap argument.
19462 (expand_unop): Likewise.
19463 (emit_libcall_block_1): Take extra argument whether the
19464 instruction may trap. Renamed from ...
19465 (emit_libcall_block): ... this. New wrapper.
19466
f9df6f16
JJ
194672012-03-05 Jakub Jelinek <jakub@redhat.com>
19468
3877a6a6
JJ
19469 PR tree-optimization/51721
19470 * tree-vrp.c (register_edge_assert_for_2): If comparing
19471 lhs of right shift by constant with an integer constant,
19472 add ASSERT_EXPRs for the rhs1 of the right shift.
19473
f9df6f16
JJ
19474 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
19475
45c0175b
RG
194762012-03-05 Richard Guenther <rguenther@suse.de>
19477
19478 * tree.c (integer_zerop): Handle VECTOR_CSTs.
19479 (integer_onep): Likewise.
19480 (integer_all_onesp): Likewise.
19481
d84f3a05
GJL
194822012-03-05 Georg-Johann Lay <avr@gjlay.de>
19483
19484 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
19485
55b86fb0
L
194862012-03-04 H.J. Lu <hongjiu.lu@intel.com>
19487
19488 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
19489 instead of TARGET_64BIT.
19490
4732e8de
L
194912012-03-04 H.J. Lu <hongjiu.lu@intel.com>
19492
19493 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
19494 adjust_stack_insn.
19495
5ca9708b
L
194962012-03-04 H.J. Lu <hongjiu.lu@intel.com>
19497
19498 * config/i386/i386.c (ix86_print_operand_address): Only handle
19499 zero-extended DImode addresses.
19500
f0050a4b
UB
195012012-03-04 Uros Bizjak <ubizjak@gmail.com>
19502
19503 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
19504 taken and cputaken as bool.
19505
904eea2c
UB
195062012-03-04 Uros Bizjak <ubizjak@gmail.com>
19507
19508 * config/i386/constraints.md (Ya): New internal constraint.
19509 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
19510 (*zero_extendsidi2_rex64): Add x,x alternative.
19511 (*zero_extendsidi2): Ditto. Add o,0 alternative.
19512 Remove flags reg clobber. Adjust corresponding splits.
19513 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
19514 zero_extendqisi2 expanders using SWI12 mode iterator.
19515 (zero_extend<mode>si2_and): Macroize insn from
19516 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
19517 splitters.
19518 (*zero_extend<mode>si2): Macroize insn from
19519 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
19520 (*zero_extend*2_movzbl_and): Remove insn patterns.
19521 (zero_extendqihi2_and): Merge corresponding splitter.
19522 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
19523 (*zero_extend*2_movzbl_and): Remove insn patterns.
19524 (*anddi_1): Split TYPE_IMOVX instructions.
19525 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
19526 (*andhi_1): Ditto.
19527 (and->zext splitter): Add splitter pattern.
19528 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
19529
b12866c7
SL
195302012-03-04 Sandra Loosemore <sandra@codesourcery.com>
19531
19532 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
19533 x86-specific text.
19534 (Debugging Options): Likewise.
19535 (Optimize Options): Likewise.
19536 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
19537 with other architectures. Use official processor names with correct
19538 spelling/capitalization. Fix formatting and grammar issues.
19539 (i386 and x86-64 Windows Options): Similar cleanup here.
19540
4feaca8b
KK
195412012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19542
19543 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
19544
59248459
KK
195452012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19546
19547 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
19548 DBX_REGISTER_NUMBER.
19549
dea148c4
KK
195502012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19551
19552 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
19553 operand is CONST_INT. Take COSTS_N_INSNS into account.
19554 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
19555 of shiftcosts.
19556
a6de595f
RH
195572012-03-02 Richard Henderson <rth@redhat.com>
19558
19559 * optabs.c (expand_atomic_test_and_set): Honor
19560 atomic_test_and_set_trueval even when atomic_test_and_set
19561 optab is not in use.
19562
4978c736
KK
195632012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
19564
19565 PR target/48596
19566 PR target/48806
19567 * config/sh/sh.c (sh_register_move_cost): Increase cost between
19568 GENERAL_REGS and FP_REGS for SImode.
19569
5e44ea89
OE
195702012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
19571
19572 PR target/49486
19573 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
19574 (absdi2): New expander.
19575 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
19576
349e6f05
OE
195772012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
19578
b5ea8036
OE
19579 * config/sh/sync.md (atomic_exchange<mode>): New expander.
19580 (atomic_exchange<mode>_soft): New insn.
19581
195822012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
19583
19584 * config/sh/sync.md: Update copyright notice dates.
349e6f05
OE
19585 (atomic_compare_and_swap<mode>): Use SImode for return value instead
19586 of QImode.
b5ea8036 19587 (atomic_compare_and_swap<mode>_soft): Likewise.
349e6f05
OE
19588
195892012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
904eea2c 19590
b6a0df6c
OE
19591 PR target/31640
19592 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
19593 * config/sh/sh.c: Update copyright notice dates.
19594 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
19595 alignment for TARGET_HARD_SH4.
904eea2c 19596 (sh_option_override): Reduce default function alignment. Set
b6a0df6c
OE
19597 loop alignment to 4 bytes when not optimizing for size.
19598
093193be
MK
195992012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
19600
290d87eb 19601 PR middle-end/50335
093193be
MK
19602 * doc/invoke.texi (floop-flatten): Remove.
19603 * toplev.c (process_options): Remove references to flag_loop_flatten.
19604 * tree-ssa-loop.c (gate_graphite_transform): Same.
19605 * common.opt (floop-flatten): Obsolete.
19606 * graphite-poly.c (apply_poly_transforms): Remove reference to
19607 flag_loop_flatten.
19608 * Makefile.in (graphite-flattening.o): Remove.
19609 * graphite-flattening.c: Remove.
19610
34c5f21a
UB
196112012-03-02 Uros Bizjak <ubizjak@gmail.com>
19612
19613 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
19614 having mode compatible with the mode of previous compare. Substitute
19615 compare mode of previous compare with the mode, compatible
19616 with eliminated and previous compare.
19617
6f975f93
PB
196182012-03-02 Peter Bergner <bergner@vnet.ibm.com>
19619
19620 * config/rs6000/dfp.md (floatdidd2): New define_insn.
19621
76945a7c
UB
196222012-03-02 Uros Bizjak <ubizjak@gmail.com>
19623
19624 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
19625 compatible with CCGOCmode and CCGCmode.
19626
2ff16893
PB
196272012-03-02 Peter Bergner <bergner@vnet.ibm.com>
19628
19629 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
19630
5d216c70
UW
196312012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
19632
19633 * config/arm/arm.c (arm_sat_operator_match): New function.
19634 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
19635 * config/arm/arm.md ("insn" attribute): Add "sat" value.
19636 ("SAT", "SATrev"): New code iterators.
19637 ("SATlo", "SAThi"): New code iterator attributes.
19638 ("*satsi_<SAT:code>"): New pattern.
19639 ("*satsi_<SAT:code>_shift"): Likewise.
19640 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
19641 and "shift" attributes.
19642 ("arm_usatsihi"): Add "insn" attribute.
19643 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
19644 by powers of two. Do not allow shift by 32.
19645
2b57045b
UB
196462012-03-02 Uros Bizjak <ubizjak@gmail.com>
19647
19648 PR target/46716
19649 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
19650 to pass the argument in the register of "natural" mode.
19651
c4ddde1b
RG
196522012-03-02 Richard Guenther <rguenther@suse.de>
19653
19654 PR tree-optimization/52406
19655 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
19656 (struct indices): Add unconstrained_base member.
19657 (struct dr_alias): Remove unused vops member.
19658 (DR_UNCONSTRAINED_BASE): New define.
19659 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
19660 add indices to allow their disambiguation. Make DR_BASE_OBJECT
19661 be an artificial access that covers the whole indexed object,
19662 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
19663 plain decl base-objects to their MEM_REF variant.
19664 (dr_may_alias_p): When the base-object of either data reference
19665 has unknown size use only points-to information.
19666 (compute_affine_dependence): Make dumps easier to read and
19667 more verbose.
19668 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
19669 DR_REF when looking for packed references.
19670 (vect_supportable_dr_alignment): Likewise.
19671
2d68f67f
GY
196722012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
19673
2b57045b 19674 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
2d68f67f
GY
19675 Improve conditions for peepholes of loads followed by commutative
19676 operators.
2b57045b 19677 * config/arm/ldmstm.md: Regenerated.
2d68f67f 19678
45c29d4d
RG
196792012-03-02 Richard Guenther <rguenther@suse.de>
19680
19681 * BASE-VER: Set to 4.8.0.
19682
9094e001
RE
196832012-03-01 Richard Earnshaw <rearnsha@arm.com>
19684
19685 * config.gcc (obsolete): Add all ARM targets using the FPA.
19686 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
19687 * doc/install.texi: Avoid references to obsolete ARM ports.
19688
82b06589
JR
196892012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
19690
19691 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
19692
08b03910
JB
196932012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
19694 Joern Rennecke <joern.rennecke@embecosm.com>
19695
19696 * doc/extend.texi: Expand and update information on interrupt
19697 attribute for Epiphany.
19698
1ce35c11
OE
196992012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
19700
19701 * config/sh/sh-protos.h: Update copyright notice dates.
19702 * config/sh/sh.h: Likewise.
19703 * config/sh/sh.md: Likewise.
19704 * config/sh/constraints.md: Likewise.
19705 * config/sh/predicates.md: Likewise.
19706
f51a9d10
OE
197072012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
19708
19709 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
19710 * config/sh/sh.c (tertiary_reload_operand): Likewise.
19711
d4217ae1
OE
197122012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
19713
19714 * config/sh/constraints.md: Fix comment typo.
19715
5d9dc69a
JDA
197162012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19717
19718 PR target/52408
19719 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
19720 unsigned HOST_WIDE_INT.
19721 (zvdep_imm64): Likewise.
19722 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
19723 (vdepi_and): Likewise.
19724 Likewise for unamed 64-bit patterns.
19725 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
19726
0f68ba3e
AO
197272012-03-01 Alexandre Oliva <aoliva@redhat.com>
19728
19729 PR debug/52001
19730 PR rtl-optimization/52417
19731 * cselib.c (cselib_any_perm_equivs): New variable.
19732 (cselib_reset_table): Check that it's not set when not
19733 preserving constants.
19734 (cselib_add_permanent_equiv): Set it.
19735 (cselib_have_permanent_equivalences): New.
19736 (cselib_init, cselib_finish): Reset it.
19737 * cselib.h (cselib_have_permanent_equivalences): Declare.
19738 * alias.c (get_addr): Restore earlier behavior when there
19739 aren't permanent equivalences.
19740
2aceddd8
SB
197412012-03-01 Steven Bosscher <steven@gcc.gnu.org>
19742
19743 * config/mn10300/mn10300-modes.def: Fix copyright notice.
19744 * config/v850/v850-modes.def: Fix copyright notice.
19745
1619fcfc
GJL
197462012-03-01 Georg-Johann Lay <avr@gjlay.de>
19747
19748 * doc/extend.texi (AVR Built-in Functions): Document
19749 __builtin_avr_flash_segment.
19750
19751 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
19752 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
19753 (*split.flash_segment): New insn-and-split.
19754 * config/avr/avr.c (avr_init_builtins): Add local variables:
19755 const_memx_void_node, const_memx_ptr_type_node,
19756 char_ftype_const_memx_ptr.
19757
69ef9a79
JJ
197582012-03-01 Jakub Jelinek <jakub@redhat.com>
19759
19760 PR tree-optimization/52445
19761 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
19762 add ssa_name_ver, offset and size fields and change store field
19763 to bool.
19764 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
19765 (add_or_mark_expr): Likewise. Only consider previous stores
19766 with the same size and offset.
19767 (nt_init_block): Only look at gimple_assign_single_p stmts,
19768 doesn't look at rhs2.
19769
c1d9cb02
RG
197702012-03-01 Richard Guenther <rguenther@suse.de>
19771
19772 PR middle-end/52443
19773 * tree-cfg.c (verify_gimple_assign_unary): Allow any
19774 conversions from integral types to pointer types.
19775
b2ef48ef
GJL
197762012-03-01 Georg-Johann Lay <avr@gjlay.de>
19777
19778 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
2b57045b 19779 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
b2ef48ef
GJL
19780 unintentionally removed in r184616.
19781
283b5296
VK
197822012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19783
19784 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
19785 3DNow from bdver1.
19786
29ebe616
JJ
197872012-02-29 Jakub Jelinek <jakub@redhat.com>
19788 Uros Bizjak <ubizjak@gmail.com>
19789
19790 PR target/52437
19791 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
19792 alternatives, add "e" constraint to the new last alternative
19793 and ! to last 3 alternatives.
19794
fd787640
EB
197952012-02-29 Eric Botcazou <ebotcazou@adacore.com>
19796
19797 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
19798 DW_AT_artificial attributes at the end of the processing.
19799 (gen_array_type_die): Likewise.
19800 (gen_enumeration_type_die): Likewise.
19801 (gen_struct_or_union_type_die): Likewise.
19802 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
19803 the parent type.
19804
598e67d7
JJ
198052012-02-29 Jakub Jelinek <jakub@redhat.com>
19806
a3017cf1
JJ
19807 PR middle-end/52419
19808 * expr.c (expand_assignment): If doing misaligned store that doesn't
19809 cover all mode bits, perform a RMW cycle.
19810
598e67d7
JJ
19811 PR tree-optimization/52429
19812 * tree-parloops.c (separate_decls_in_region_debug): Return early
19813 if var is LABEL_DECL.
19814
529b39d8
BS
198152012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19816
19817 PR tree-optimization/52424
19818 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
19819 calling dom_thread_across_edge.
19820
43c626f0
GJL
198212012-02-29 Georg-Johann Lay <avr@gjlay.de>
19822
19823 * config/avr/avr.c: Move definition of TARGET macros to end of file.
19824
20848609
GJL
198252012-02-29 Georg-Johann Lay <avr@gjlay.de>
19826
19827 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
19828 * config/avr/avr.c (avr_output_bld): Remove unused function.
19829 (avr_out_sbxx_branch): Use "%T" to print bit position.
19830
1edaa8b7
GJL
198312012-02-29 Georg-Johann Lay <avr@gjlay.de>
19832
19833 * config/avr/avr.md: Untabify.
19834
198352012-02-29 Georg-Johann Lay <avr@gjlay.de>
19836
19837 * config/avr/avr.md (eqne): New code iterator.
19838 (*dec-and-branchsi): Use it in text peephole's condition.
19839 (*dec-and-branchhi): Ditto.
19840 (*dec-and-branchqi): Ditto.
19841
df51e502
GJL
198422012-02-29 Georg-Johann Lay <avr@gjlay.de>
19843
19844 PR target/49939
19845 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
19846 the device does not have the skip-bug.
19847
bf997c7d
OE
198482012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
19849
19850 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
19851 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
19852 -mpretend-cmove): New.
19853
bf743fc4
JJ
198542012-02-29 Jakub Jelinek <jakub@redhat.com>
19855
19856 PR bootstrap/52397
19857 * df.h (struct df_d): Adjust comment that hard_regs_live_count
19858 doesn't count DEBUG_INSN refs.
19859 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
19860 for DEBUG_INSN refs.
19861
211bea38
UW
198622012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19863
19864 Partially revert:
19865
19866 2012-02-20 Richard Guenther <rguenther@suse.de>
19867 PR tree-optimization/52298
19868 * tree-vect-stmts.c (vectorizable_load): Properly use
6c381d9d 19869 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
211bea38 19870
19c0d7df
AH
198712012-02-28 Aldy Hernandez <aldyh@redhat.com>
19872
19873 PR middle-end/51752
19874 * gimple.h (gimple_in_transaction): New.
19875 (gimple_set_in_transaction): New.
19876 (struct gimple_statement_base): Add in_transaction field.
19877 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
19878 transaction loads.
19879 (tree_ssa_lim_initialize): Compute transaction bits.
19880 * tree.h (compute_transaction_bits): Protoize.
19881 * trans-mem.c (tm_region_init): Use the heap to store BB
19882 auxilliary data.
19883 (compute_transaction_bits): New.
19884
cdbfc61d
BRF
198852012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19886
19887 * gcc.c (display_help): Document --help=common and sort entries
19888 alphabetically.
19889
6c6b6634
BRF
198902012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19891
19892 * doc/install.texi: Document check-$LANG specific shortcuts
19893
fd92bb80
MGD
198942012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
19895
19896 PR target/51534
19897 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
19898 and vcgtu.
19899 * config/arm/arm_neon.h: Regenerate.
19900 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
19901 (neon_vcgeu): New insn.
19902 (neon_vcgtu): Likewise.
19903 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
2b57045b 19904 (ops): Unsigned comparison intrinsics call a different builtin.
fd92bb80 19905
8eef33ca
RG
199062012-02-28 Richard Guenther <rguenther@suse.de>
19907
19908 PR target/52407
19909 * config/i386/i386.c (ix86_expand_vector_set): Fix element
19910 ordering for the VEC_CONCAT for two element vectors for
19911 V2SFmode, V2SImode and V2DImode.
19912
e3ed9d60
RE
199132012-02-28 Richard Earnshaw <rearnsha@arm.com>
19914
19915 PR target/49448
19916 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
19917 detecting big-endian triplets.
19918
192af6e8
RE
199192012-02-28 Richard Earnshaw <rearnsha@arm.com>
19920
19921 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
19922 mode if there is no type information available.
19923
b0eaa5b4
TK
199242012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
19925
19926 PR tree-optimization/53207
19927 * doc/invoke.texi: Document as experimental and relying on graphite.
19928
f37cf6a9
GJL
199292012-02-28 Georg-Johann Lay <avr@gjlay.de>
19930
19931 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
19932 of initializer to changes from r184614.
2b57045b 19933
85998a93
RG
199342012-02-28 Richard Guenther <rguenther@suse.de>
19935
19936 PR tree-optimization/52395
19937 * tree-sra.c (build_ref_for_offset): Also look at the base
19938 TYPE_ALIGN when figuring out the alignment of the replacement.
19939
3a5a825a
RG
199402012-02-28 Richard Guenther <rguenther@suse.de>
19941
19942 PR tree-optimization/52402
19943 * ipa-prop.c (ipa_modify_call_arguments): Properly use
19944 mis-aligned types when creating the accesses at the call site.
19945
639d0302
GJL
199462012-02-28 Georg-Johann Lay <avr@gjlay.de>
19947
19948 * config/avr/builtins.def: New file.
19949 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
19950 * config/avr/avr.c (enum avr_builtin_id): Use it.
19951 (avr_init_builtins): Use it. And use avr_bdesc.
19952 (bdesc_1arg): Remove.
19953 (bdesc_2arg): Remove.
19954 (bdesc_3arg): Remove.
19955 (struct avr_builtin_description): Add field n_args.
19956 (avr_bdesc): New static variable using builtins.def.
19957 (avr_expand_builtin): Use it.
19958 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
19959 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
19960 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
19961
8310dca7
GJL
199622012-02-28 Georg-Johann Lay <avr@gjlay.de>
19963
19964 PR target/52148
19965 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
19966 match only one single hard register with respective hard reg rtx.
19967 (movmemx_<mode>): Ditto.
19968 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
19969 insn anatomy of movmem[x]_<mode>.
19970 (avr_out_movmem): Same for printing assembler and operand usage.
19971
bae3b1bf
GJL
199722012-02-28 Georg-Johann Lay <avr@gjlay.de>
19973
19974 PR target/49868
19975 PR target/52261
19976 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
19977 address spaces located outside of device flash.
19978
19979 * config/avr/avr.h (base_arch_s): Remove field n_segments.
19980 (mcu_type_s): Add field n_flash.
19981 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
19982 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
19983 (AVR_MCU): Add N_FLASH argument.
19984 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
19985 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
19986 macro __FLASH<n> if that address space makes sense for the device.
19987 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
19988 outside of target flash.
19989 (avr_asm_named_section): Ditto.
19990 (avr_asm_select_section): Ditto.
19991 (avr_addr_space_convert): Ditto.
19992 (avr_emit_movmemhi): Ditto.
19993 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
19994 address space is outside of device flash.
19995 (avr_insert_attributes): Ditto.
19996 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
19997 avr_current_arch->n_segments.
19998
afbf6e97
L
199992012-02-27 H.J. Lu <hongjiu.lu@intel.com>
20000
20001 PR target/52352
2b57045b 20002 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
afbf6e97
L
20003 (*movabs<mode>_2): Likewise.
20004
2e216592
JJ
200052012-02-27 Jakub Jelinek <jakub@redhat.com>
20006
56b15099
JJ
20007 PR target/52375
20008 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
20009 s_register_operand in the test instead of REG_P. Don't call
20010 gen_reg_rtx if it won't be used.
20011
2e216592
JJ
20012 PR tree-optimization/52376
20013 * ipa-split.c (split_function): Ignore CLOBBER stmts.
20014
2662a821
SH
200152012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
20016
20017 * ifcvt.c (noce_get_condition): Check condition variable is not
20018 small_register_classes_for_mode_p before accepting.
20019
f59280cf
UB
200202012-02-27 Uros Bizjak <ubizjak@gmail.com>
20021
20022 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
20023
d2d6bcce
MGD
200242012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20025
20026 Revert:
20027 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20028 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
20029 tuning parameters.
20030 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
20031
dac73555
OE
200322012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
20033
20034 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
20035
2eff0b9d
OE
200362012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
20037
20038 * config/sh/predicates.md: Remove blank lines.
20039 * config/sh/sh.c: Fix typos in comments.
20040 * config/sh/constraints.md: Likewise.
20041 * config/sh/sh.md: Remove blank lines.
20042 Fix typos in comments. Use ;; as comment characters.
20043
7afd1a8e
WL
200442012-02-26 Walter Lee <walt@tilera.com>
20045
f59280cf 20046 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
7afd1a8e
WL
20047 (replace_mov_pcrel_step2): Ditto.
20048
0e224656
AO
200492012-02-25 Alexandre Oliva <aoliva@redhat.com>
20050
a5628378
AO
20051 PR debug/52001
20052 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
20053 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
20054 and locs that reference values newer than the non-canonical value
20055 at hand. Return the canonical value as a worst case.
20056 (memrefs_conflict_p): Walk canonical value's locs.
20057
0e224656
AO
20058 PR debug/52001
20059 * cselib.c (preserve_only_constants): Rename to...
20060 (preserve_constants_and_equivs): ... this. Split out...
20061 (invariant_or_equiv_p): ... this. Preserve plus expressions
20062 of other preserved expressions too.
20063 (cselib_reset_table): Adjust.
20064 * var-tracking.c (reverse_op): Use canonical value to build
20065 reverse operation.
20066
15498cfa
KT
200672012-02-23 Kai Tietz <ktietz@redhat.com>
20068
20069 * config/i386/i386.c (ix86_delegitimize_address): Handle
20070 UNSPEC_PCREL plus displacement.
20071
39e73abc
GJL
200722012-02-24 Georg-Johann Lay <avr@gjlay.de>
20073
20074 PR target/52261
20075 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
20076 to test for unusedness in st X addressing.
20077
b9af73fc
RG
200782012-02-24 Richard Guenther <rguenther@suse.de>
20079
20080 PR middle-end/52361
f59280cf 20081 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
b9af73fc
RG
20082 (is_gimple_reg_type): Move inline ...
20083 * gimple.h (is_gimple_reg_type): ... here.
20084
6ae4eccd
RG
200852012-02-24 Richard Guenther <rguenther@suse.de>
20086
20087 PR middle-end/52361
20088 * passes.c (execute_function_todo): When verifying SSA form
20089 verify gimple form first.
20090 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
20091
bf948210
RG
200922012-02-24 Richard Guenther <rguenther@suse.de>
20093
20094 PR middle-end/52355
20095 * fold-const.c (fold_addr_of_array_ref_difference): New function.
f59280cf 20096 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
bf948210 20097
b8f4632c
BRF
200982012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20099
20100 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
20101
4021ad55
BRF
201022012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20103
20104 * tree-phinodes.c (make_phi_node): Mark static.
20105 * tree-flow.h (make_phi_node): Remove extern decl.
20106 * doc/gimple.texi (make_phi_node): Remove documentation.
20107
0eb09f31
BRF
201082012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20109
f59280cf 20110 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
0eb09f31
BRF
20111 * tree-ssa-sccvn.c (print_scc): Ditto.
20112
6a953a91
BRF
201132012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20114
20115 * doc/passes.texi (Full redundancy elimination): Fix typo.
20116
55532e32
BRF
201172012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20118
20119 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
20120
6cbb4c32
EB
201212012-02-23 Eric Botcazou <ebotcazou@adacore.com>
20122
20123 PR bootstrap/52287
20124 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
20125
560ad308
UB
201262012-02-23 Uros Bizjak <ubizjak@gmail.com>
20127
20128 PR c/52290
20129 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
20130
f71f1418
GJL
201312012-02-23 Georg-Johann Lay <avr@gjlay.de>
20132
20133 * config/avr/avr.md (code_stdname): Add ior, xor.
20134 (xior): New code iterator.
20135 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
20136 (*<code_stdname><mode>qi.byte1-3): Ditto.
20137
a348dc7f
JJ
201382012-02-23 Jakub Jelinek <jakub@redhat.com>
20139
20140 PR tree-optimization/52019
20141 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
20142 CLOBBER stmts.
20143
e10e461e
UW
201442012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20145
20146 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
20147 HAVE_INITFINI_ARRAY to work around namespace pollution in
20148 certain versions of newlib system headers.
20149 * config.in: Regenerate.
20150 * configure: Regenerate.
20151 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
20152 instead of HAVE_INITFINI_ARRAY.
20153
9517e333
UB
201542012-02-22 Uros Bizjak <ubizjak@gmail.com>
20155
20156 PR target/52330
20157 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
20158 is not offsettable memory reference.
20159
219db888
GJL
201602012-02-22 Georg-Johann Lay <avr@gjlay.de>
20161
20162 PR target/18145
20163 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
20164 setting avr_need_clear_bss_p for __gnu_lto* symbols.
20165
45958634
GJL
201662012-02-22 Georg-Johann Lay <avr@gjlay.de>
20167
20168 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
9517e333 20169 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
45958634 20170
bbd6a014
RO
201712012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20172
20173 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
20174 library on Solaris 8 even without TLS support.
20175 * configure: Regenerate.
20176
3e888a5e
RG
201772012-02-22 Richard Guenther <rguenther@suse.de>
20178
20179 PR middle-end/52329
20180 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
20181 for GIMPLE_DEBUG stmts.
bbd6a014 20182
f18a7b25
MJ
201832012-02-22 Martin Jambor <mjambor@suse.cz>
20184
20185 PR middle-end/51782
20186 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
20187 according to the base object.
20188
0b262c28
GJL
201892012-02-22 Georg-Johann Lay <avr@gjlay.de>
20190
20191 PR rtl-optimization/50063
20192 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
20193 and 2 (8-bit SP) in operand 2.
20194 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
20195 setup to use movhi_sp_r instead of vanilla move to write SP.
20196 Adjust REG_CFA notes to superseed unspec.
20197 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
20198 of vanilla move.
20199 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
20200 known to be off) only with TARGET_NO_INTERRUPTS. Never use
20201 irq_state 1 (IRQ known to be on) here.
20202
2805e6c0
BS
202032012-02-21 Bernd Schmidt <bernds@codesourcery.com>
20204
20205 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
20206 WORDS_BIG_ENDIAN.
20207 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
20208 assign_hard_reg): Likewise.
20209
202102012-02-21 Georg-Johann Lay <avr@gjlay.de>
1890e136
GJL
20211
20212 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
20213
2805e6c0 202142012-02-21 Georg-Johann Lay <avr@gjlay.de>
4998825d
GJL
20215
20216 * config/avr/avr.md
20217 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
20218 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
20219
2805e6c0 202202012-02-21 Georg-Johann Lay <avr@gjlay.de>
0545950b
GJL
20221
20222 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
20223 prototype from here to...
20224 * config/avr/avr.h: ...here.
20225
23d2a817
RE
202262012-02-21 Richard Earnshaw <rearnsha@arm.com>
20227
20228 PR target/52294
2805e6c0 20229 * thumb2.md (thumb2_shiftsi3_short): Split register and
23d2a817
RE
20230 immediate shifts. For register shifts tie operands 0 and 1.
20231 (peephole2 for above): Check that register-controlled shifts
20232 have suitably tied operands.
20233
602c3369
QN
202342012-02-21 Quentin Neill <quentin.neill@amd.com>
20235
20236 PR target/52137
20237 * config/i386/bdver1.md (bdver1_call, bdver1_push,
20238 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
20239 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
20240 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
20241 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
20242 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
20243 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
20244 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
20245 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
20246 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
20247 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
20248 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
20249 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
20250 bdver1_ssevector_avx256_unaligned_load,
20251 bdver1_ssevector_sse128_unaligned_load,
20252 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
20253 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
20254 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
20255 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
20256 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
20257 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
20258 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
20259 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
20260 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
20261 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
20262 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
20263 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
20264 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
20265 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
20266 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
20267 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
20268 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
20269 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
20270 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
20271 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
20272 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
20273 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
20274 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
20275 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
20276 bdver1_ssediv_double_load, bdver1_ssediv_double,
20277 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
20278 Add "bdver2" attribute.
20279
61369bb8
AK
202802012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20281
20282 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
20283 default if possible and not specified otherwise.
20284
0c2ad203
RG
202852012-02-21 Richard Guenther <rguenther@suse.de>
20286
20287 PR middle-end/52314
20288 * gimplify.c (create_tmp_from_val): Use the main variant type
20289 for the type of the temporary we create.
20290
01718e96
RG
202912012-02-21 Richard Guenther <rguenther@suse.de>
20292
20293 PR tree-optimization/52324
20294 * gimplify.c (gimplify_expr): When re-gimplifying expressions
20295 do not gimplify a MEM_REF address operand if it is already
20296 in suitable form.
20297
8540e6e8
AK
202982012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20299
20300 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
20301 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
20302
d1e4b493
RG
203032012-02-21 Richard Guenther <rguenther@suse.de>
20304
20305 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
20306 nested_in_vect_loop.
20307
949e47e5
JJ
203082012-02-21 Jakub Jelinek <jakub@redhat.com>
20309
20310 PR tree-optimization/52318
20311 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
20312 vdef also to non-pure/const call stmts in the sequence.
20313
a2ddaaf5
TG
203142012-02-21 Tristan Gingold <gingold@adacore.com>
20315
20316 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
20317
3ed27cf5
DM
203182012-02-20 David S. Miller <davem@davemloft.net>
20319
20320 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
20321 don't use the "rd %pc" instruction on v9 for PIC register loads.
20322
a4d031c7
AH
203232012-02-20 Aldy Hernandez <aldyh@redhat.com>
20324
20325 PR middle-end/52141
20326 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
20327 in a transaction safe function.
20328
9954e17f
KT
203292012-02-20 Kai Tietz <ktietz@redhat.com>
20330
20331 PR target/52238
20332 * stor-layout.c (place_field): Handle desired_align for
20333 ms-bitfields, too.
20334
a7ce6ec3
RG
203352012-02-20 Richard Guenther <rguenther@suse.de>
20336
20337 PR tree-optimization/52298
20338 * tree-vect-stmts.c (vectorizable_store): Properly use
20339 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
20340 outer loops.
20341 (vectorizable_load): Likewise.
20342 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
20343 Access DR_STEP after ensuring it is not NULL.
20344
5a226e0a
JJ
203452012-02-20 Jakub Jelinek <jakub@redhat.com>
20346
20347 PR tree-optimization/52286
20348 * fold-const.c (fold_binary_loc): For (X & C1) | C2
20349 optimization use double_int_to_tree instead of build_int_cst_wide,
20350 rewrite to use double_int vars.
20351
e992fc2e
RO
203522012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20353
20354 PR target/50166
20355 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
20356 Define _start.
20357 Remove -e 0 from $gcc_cv_ld invocation.
20358 Only use __GLIBC_PREREQ if defined.
20359 Enable on Solaris since Solaris 8 patch.
20360 (gcc_SUN_LD_VERSION): New macro.
20361 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
20362 gcc_SUN_LD_VERSION for version number format.
20363 * configure: Regenerate.
20364 * varasm.c (get_elf_initfini_array_priority_section): Set
20365 SECTION_NOTYPE for non-default priority.
20366 Use get_section instead of get_unnamed_section to emit
20367 .init_array/.fini_array with default priority.
20368
78c27266
RS
203692012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
20370
20371 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
20372 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
20373 (mips_start_unique_function, mips_output_mips16_rdhwr)
20374 (mips_code_end): New functions.
20375 (TARGET_ASM_CODE_END): Define.
20376
5adeb246
RS
203772012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
20378
20379 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
20380 to stubs with non-sibling calls.
20381
e1813255
SL
203822012-02-18 Sandra Loosemore <sandra@codesourcery.com>
20383
20384 * doc/invoke.texi (-fira-* options): Copy-edit.
20385 (ira-* parameters): Copy-edit.
20386
141a25c2
SL
203872012-02-17 Sandra Loosemore <sandra@codesourcery.com>
20388
20389 * doc/invoke.texi: Minor copy-edits to bring into conformance with
20390 GCC coding conventions.
20391
195a2e9d
SL
203922012-02-17 Sandra Loosemore <sandra@codesourcery.com>
20393
20394 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
20395 when used as adjectives.
20396
1b015db7
SL
203972012-02-16 Sandra Loosemore <sandra@codesourcery.com>
20398
20399 * doc/invoke.texi: Clean up "that"/"which" confusion.
20400
7feed462
SB
204012012-02-17 Steven Bosscher <steven@gcc.gnu.org>
20402
20403 * system.h: Poison SMALL_REGISTER_CLASSES
20404 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
20405 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
20406
ca786352
JJ
204072012-02-16 Jakub Jelinek <jakub@redhat.com>
20408
20409 PR tree-optimization/52285
20410 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
20411 when deciding if a call is a tail call or tail recursion.
20412
525b3f60
KT
204132012-02-16 Kai Tietz <ktietz@redhat.com>
20414
20415 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
20416 interger-constant displacement for UNSPEC_PCREL.
20417
04c937f5
JJ
204182012-02-16 Jakub Jelinek <jakub@redhat.com>
20419
3db93c89
JJ
20420 PR rtl-optimization/52208
20421 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
20422 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
20423
e20f6b4b
JJ
20424 PR tree-optimization/52255
20425 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
20426 loop->header has virtual PHI, but exit_e->dest doesn't, add
20427 virtual PHI to exit_e->dest and adjust all uses after the loop.
20428
04c937f5
JJ
20429 PR debug/52260
20430 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
20431 children with clone_tree_hash, not after it.
20432
cebb4698
IS
204332012-02-16 Iain Sandoe <iains@gcc.gnu.org>
20434
20435 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
20436 extended identifiers.
20437
cc8b9c31
JJ
204382012-02-16 Jakub Jelinek <jakub@redhat.com>
20439
183d6db2
JJ
20440 PR middle-end/51929
20441 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
20442 a same_body_alias, also test whether e->callee isn't a former
20443 or current clone of the decl this is a same body alias of.
20444
cc8b9c31
JJ
20445 PR translation/52264
20446 * cgraphunit.c (verify_cgraph_node): Fix a typo.
20447
e3a66c38
SL
204482012-02-15 Sandra Loosemore <sandra@codesourcery.com>
20449
20450 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
20451
a0367cc1
MM
204522012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20453
20454 PR target/52199
20455 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20456 force_reg instead of copy_to_reg for better optimization. Force
20457 non-register or memory operands into a register.
20458
b1cef2a5
AM
204592012-02-15 Andrew MacLeod <amacleod@redhat.com>
20460
20461 * extend.texi: Reserve upper bits of memory model for future use.
20462
2da8c1ad
GJL
204632012-01-15 Georg-Johann Lay <avr@gjlay.de>
20464 Anatoly Sokolov <aesok@post.ru>
20465 Eric Weddington <eric.weddington@atmel.com>
20466
20467 PR target/52261
20468 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
20469 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
20470 Rewrite initializers for .macro.
20471 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
20472 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
20473 atxmega32d4, atxmega32x1.
20474 avrxmega4: atxmega64a3, atxmega64d3.
20475 avrxmega5: atxmega64a1, atxmega64a1u.
20476 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
20477 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
20478 avrxmega7: atxmega128a1, atxmega128a1u.
20479 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
20480 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
20481 (struct base_arch_s): Rename reserved to xmega_p.
20482 Rename reserved2 to have_rampd.
20483 (AVR_XMEGA): New define.
20484 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
20485 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
20486 * config/avr/predicates.md (io_address_operand): Take into
20487 account SFR offset.
20488 (low_io_address_operand): Ditto.
20489 (high_io_address_operand): Ditto.
20490 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
20491 (enabled, movhi_sp_r): Use them.
20492 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
20493 cpp_define_formatted to built-in define __AVR_ARCH__.
20494 (__AVR_XMEGA__): New built-in define.
20495 (__AVR_HAVE_RAMPD__): New built-in define.
20496 (__AVR_HAVE_RAMPX__): New built-in define.
20497 (__AVR_HAVE_RAMPY__): New built-in define.
20498 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
20499
20500 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
20501 (avr_option_override): Initialize them.
20502 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
20503 (avr_init_expanders): Initialize them. No more block several calls.
20504 (emit_push_sfr): New static function.
20505 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
20506 Handle AVR_XMEGA.
20507 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
20508 (avr_print_operand): Print addreeses as symbols for
20509 RAMPX, RAMPY, RAMPD, CCP.
20510 (output_movhi): Handle AVR_XMEGA when writing to SP.
20511 (avr_out_movhi_mr_r_xmega): New static function.
20512 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
20513 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
20514 __RAMPD__, __CCP__ as needed.
20515
20516 * config/avr/multilib.h: Regenerate.
20517 * config/avr/t-multilib: Regenerate.
20518 * config/avr/avr-tables.opt: Regenerate.
20519
28db21ee
TG
205202012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
20521
20522 PR tree-optimization/50561
20523 * graphite-flattening.c (lst_project_loop): Do not
20524 remove old scattering dimensions after flattening.
20525 (lst_do_flatten): Likewise.
20526
0c578db6
GJL
205272012-02-15 Georg-Johann Lay <avr@gjlay.de>
20528
20529 * doc/extend.texi (AVR Built-in Functions): Remove doc for
20530 __builtin_avr_map8, __builtin_avr_map16.
20531 Document __builtin_avr_insert_bits.
20532
20533 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
20534 (insert_bits): New insn.
20535 (adjust_len.map_bits): Rename to insert_bits.
20536 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
20537 * avr-protos.h (avr_out_map_bits): Remove.
20538 (avr_out_insert_bits, avr_has_nibble_0xf): New.
20539 * config/avr/constraints.md (Cxf,C0f): New.
20540 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
20541 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
20542 New built-in define __BUILTIN_AVR_INSERT_BITS.
20543 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
20544 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
20545 (avr_move_bits): Rewrite.
20546 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
20547 functions.
20548 (avr_map_op_t): New typedef.
20549 (avr_map_op): New static variable.
20550 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
20551 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
20552 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
20553 (bdesc_3arg, avr_expand_triop_builtin): New.
20554 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
20555 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
20556 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
20557 (avr_map_equal_p, avr_map_sig_p): Remove.
20558 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
20559 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
20560 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
20561 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
20562 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
20563 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
20564
9e7fe10e
BS
205652012-02-14 Bernd Schmidt <bernds@codesourcery.com>
20566
20567 * config/c6x/c6x.md (reserve_cycles): New attribute.
20568 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
20569 don't reserve functional units after the branch occurs.
20570
a7ff6e27
AH
205712012-02-14 Aldy Hernandez <aldyh@redhat.com>
20572
20573 PR middle-end/52142
20574 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
20575 functions into non-tm_pure functions.
20576
aa47290b
EB
205772012-02-14 Eric Botcazou <ebotcazou@adacore.com>
20578
20579 PR lto/52178
20580 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
20581 (iterative_hash_canonical_type): Likewise.
20582 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
20583 the dead edges.
20584
205852012-02-14 Bernd Schmidt <bernds@codesourcery.com>
b75f962c
BS
20586
20587 * haifa-sched.c (prune_ready_list): Ensure that if there is a
9517e333 20588 sched-group insn, it either remains alone or the entire list is pruned.
b75f962c 20589
169264b3
JW
205902012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
20591
20592 * doc/install.texi (Prerequisites): Fix grammar.
20593 (Configuration): Likewise.
20594
7a07ae52
JW
205952012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
20596
20597 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
20598 MPC as part of GCC before describing configuring with --with-gmp etc.
20599 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
20600 sources are present.
20601
a85ce59d
JJ
206022012-02-14 Jakub Jelinek <jakub@redhat.com>
20603
20604 PR debug/51950
20605 * dwarf2out.c (clone_tree_hash): New function.
20606 (copy_decls_walk): Use it instead of clone_tree.
20607
8085c586
RG
206082012-02-14 Richard Guenther <rguenther@suse.de>
20609
20610 PR tree-optimization/52244
20611 PR tree-optimization/51528
20612 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
20613 replacements for integral types.
20614
dd552284
WL
206152012-02-14 Walter Lee <walt@tilera.com>
20616
20617 * config.gcc: Handle tilegx and tilepro.
20618 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
20619 tilegx and tilepro.
20620 Add HAVE_AS_TLS check for tilegx and tilepro.
20621 * configure: Regenerate.
20622 * doc/contrib.texi: Add Mat Hostetter and self.
20623 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
20624 Document instruction intrinsics and network accessing intrinsics.
20625 (TILEPro Built-in Functions): New node. Document instruction
20626 intrinsics and network accessing intrinsics.
20627 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
20628 (Specific, tilepro-*-linux*): Likewise.
20629 * doc/invoke.texi (TILE-Gx Options): New section.
20630 (TILEPro Options): New section.
20631 * doc/md.texi (TILE-Gx): New section.
20632 (TILEPro): New section.
20633 * common/config/tilegx/tilegx-common.c: New file.
20634 * common/config/tilepro/tilepro-common.c: New file.
20635 * config/tilegx/constraints.md: New file.
20636 * config/tilegx/linux.h: New file.
20637 * config/tilegx/mul-tables.c: New file.
20638 * config/tilegx/predicates.md: New file.
20639 * config/tilegx/sync.md: New file.
20640 * config/tilegx/t-tilegx: New file.
20641 * config/tilegx/tilegx-builtins.h: New file.
20642 * config/tilegx/tilegx-c.c: New file.
20643 * config/tilegx/tilegx-generic.md: New file.
20644 * config/tilegx/tilegx-modes.def: New file.
20645 * config/tilegx/tilegx-multiply.h: New file.
20646 * config/tilegx/tilegx-protos.h: New file.
20647 * config/tilegx/tilegx.c: New file.
20648 * config/tilegx/tilegx.h: New file.
20649 * config/tilegx/tilegx.md: New file.
20650 * config/tilegx/tilegx.opt: New file.
20651 * config/tilepro/constraints.md: New file.
20652 * config/tilepro/gen-mul-tables.cc: New file.
20653 * config/tilepro/linux.h: New file.
20654 * config/tilepro/mul-tables.c: New file.
20655 * config/tilepro/predicates.md: New file.
20656 * config/tilepro/t-tilepro: New file.
20657 * config/tilepro/tilepro-builtins.h: New file.
20658 * config/tilepro/tilepro-c.c: New file.
20659 * config/tilepro/tilepro-generic.md: New file.
20660 * config/tilepro/tilepro-modes.def: New file.
20661 * config/tilepro/tilepro-multiply.h: New file.
20662 * config/tilepro/tilepro-protos.h: New file.
20663 * config/tilepro/tilepro.c: New file.
20664 * config/tilepro/tilepro.h: New file.
20665 * config/tilepro/tilepro.md: New file.
20666 * config/tilepro/tilepro.opt: New file.
20667
7daac345
JJ
206682012-02-14 Jakub Jelinek <jakub@redhat.com>
20669
20670 PR tree-optimization/52210
20671 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
20672 vect_model_simple_cost with two entry vect_def_type array instead
20673 of an address of dt.
20674
837487be
RG
206752012-02-14 Richard Guenther <rguenther@suse.de>
20676
20677 PR lto/52178
20678 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
20679 Do not stream DECL_QUALIFIER.
20680 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
20681 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
20682 (find_decls_types_r): Do not walk DECL_QUALIFIER.
20683
45f41865
JJ
206842012-02-14 Jakub Jelinek <jakub@redhat.com>
20685
20686 PR c/52181
20687 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
20688 newdecl.
20689
9a76e83d
JJ
206902012-02-13 Jakub Jelinek <jakub@redhat.com>
20691
20692 PR bootstrap/52172
20693 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
20694 * cselib.c (cselib_subst_to_values_from_insn): New function.
20695 * sched-deps.c (add_insn_mem_dependence,
20696 sched_analyze_1, sched_analyze_2): Use it.
20697
993716bd
JH
206982012-02-13 Jan Hubicka <jh@suse.cz>
20699
20700 PR middle-end/52214
20701 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
20702
255a9a1b
EB
207032012-02-13 Eric Botcazou <ebotcazou@adacore.com>
20704
20705 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
20706 (GTM_SELF_SPECS): Define if not already defined.
20707 (driver_self_specs): Add GTM_SELF_SPECS.
9517e333
UB
20708 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
20709 (GTM_SELF_SPECS): Define.
255a9a1b
EB
20710 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
20711 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
20712
9abd5ed9
JJ
207132012-02-13 Jakub Jelinek <jakub@redhat.com>
20714
67b977ad
JJ
20715 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
20716 away if seen.
20717
9517e333 20718 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
42286976 20719
9abd5ed9 20720 PR middle-end/52230
9517e333
UB
20721 * omp-low.c (expand_omp_for): If a static schedule without chunk size
20722 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
9abd5ed9 20723
8ca1b342
AM
207242012-02-13 Andrew MacLeod <amacleod@redhat.com>
20725
20726 PR c/52190
20727 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
20728
1eb3478f
RG
207292012-02-13 Richard Guenther <rguenther@suse.de>
20730
20731 PR translation/52211
20732 * passes.c (enable_disable_pass): Fix typo.
20733
205ec405
JJ
207342012-02-13 Jakub Jelinek <jakub@redhat.com>
20735
20736 PR middle-end/52209
20737 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
20738 XOR for reduce_bit_field if type is unsigned.
20739
31d7b439
EB
207402012-02-12 Eric Botcazou <ebotcazou@adacore.com>
20741
20742 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
20743 disallow changes from SFmode to mode with different size in FP regs.
20744
207452012-02-12 Robert Millan <rmh@gnu.org>
9517e333 20746 Gerald Pfeifer <gerald@pfeifer.com>
56c534c5
RM
20747
20748 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
20749 Tweak comment.
20750
4cb0fdbc
RS
207512012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
20752
20753 PR rtl-optimization/52175
20754 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
20755 to frame-related instructions.
20756
4e92c31f
JM
207572012-02-10 Jason Merrill <jason@redhat.com>
20758
20759 PR c++/51910
20760 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
20761 (demangle_new_symbols): Fill it.
20762 (scan_linker_output): Walk it.
20763 (start_tweaking): Split out from scan_linker_output.
20764 (maybe_tweak): Update sym->chosen.
20765 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
20766
bd0ba05d
JJ
207672012-02-11 Jakub Jelinek <jakub@redhat.com>
20768
20769 PR debug/52132
9517e333 20770 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
bd0ba05d 20771
28f7ff45
UB
207722012-02-11 Uros Bizjak <ubizjak@gmail.com>
20773
20774 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
20775 having the same mode as previous compare.
20776
8c92f3e8
EB
207772012-02-10 Eric Botcazou <ebotcazou@adacore.com>
20778
20779 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
20780 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
20781 (nonlocal_goto_internal): Likewise.
20782 (nonlocal_goto): Emit a use and an indirect jump directly.
20783
9ac1504b
AM
207842012-02-10 Andrew MacLeod <amacleod@redhat.com>
20785
20786 PR c/52190
20787 * doc/extend.texi : Update comments for __atomic_compare_exchange and
20788 __atomic_{is,always}_lock_free.
20789
877fb450
L
207902012-02-10 Uros Bizjak <ubizjak@gmail.com>
20791
20792 PR target/52146
20793 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
1ce8d925 20794 negative constant address for TARGET_X32.
877fb450 20795
1d4fb493
RH
207962012-02-10 Richard Henderson <rth@redhat.com>
20797
28f7ff45
UB
20798 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
20799 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
20800 for GIMPLE_TRANSACTION. Tidy if's into a switch.
1d4fb493 20801
8bd37302
BS
208022012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20803 Ira Rosen <irar@il.ibm.com>
20804
20805 PR tree-optimization/50031
20806 * targhooks.c (default_builtin_vectorization_cost): Handle
20807 vec_promote_demote.
20808 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
20809 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
20810 all types of reduction and pattern statements.
20811 (vect_estimate_min_profitable_iters): Likewise.
20812 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
20813 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
20814 for explicit realigns.
20815 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
20816 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
20817 vec_promote_demote.
20818 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20819 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
20820 vec_perm for VSX and handle vec_promote_demote.
20821
58d38fd2
JJ
208222012-02-10 Jakub Jelinek <jakub@redhat.com>
20823
20824 PR middle-end/52177
20825 * builtins.c (fold_builtin_atomic_always_lock_free,
20826 expand_builtin_atomic_always_lock_free,
28f7ff45
UB
20827 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
20828 Return and/or test boolean_true_node/boolean_false_node instead of
58d38fd2
JJ
20829 integer_one_node/integer_zero_node.
20830
0f3b7e9a
JH
208312012-02-10 Jan Hubicka <jh@suse.cz>
20832
20833 PR middle-end/48600
20834 * predict.c (predict_paths_for_bb): Prevent looping.
20835 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
20836
76c9058b
RZ
208372012-02-10 Roman Zhuykov <zhroma@ispras.ru>
20838
20839 * config/arm/arm.c (output_move_double): In one case properly
20840 count number of instructions that will be emitted.
20841
7cbf224d
RG
208422012-02-10 Richard Guenther <rguenther@suse.de>
20843
20844 PR translation/52193
20845 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
20846
16e0be9b
PB
208472012-02-09 Peter Bergner <bergner@vnet.ibm.com>
20848
20849 PR middle-end/52140
20850 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
20851
65cca5de
JJ
208522012-02-09 Jakub Jelinek <jakub@redhat.com>
20853
20854 PR debug/52165
20855 * var-tracking.c (emit_note_insn_var_location): If
20856 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
20857 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
20858 non-NOTE_DURING_CALL_P insn.
20859
15ed19ff
BC
208602012-02-09 Bin Cheng <bin.cheng@arm.com>
20861
20862 PR middle-end/51867
20863 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
20864
5371f719
MG
208652012-02-08 Magnus Granberg <zorry@gentoo.org>
20866
20867 PR driver/48524
28f7ff45
UB
20868 * gcc.c (switch_matches) Support switches with separated form,
20869 -D and -U.
5371f719 20870
82b37806
GJL
208712012-02-08 Georg-Johann Lay <avr@gjlay.de>
20872
20873 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
20874 (SP_ADDR): Ditto.
20875 (RAMPZ_ADDR): Ditto.
20876 * config/avr/avr.c (avr_addr_t): New typedef.
20877 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
20878 (avr_init_expanders): Initialize it.
20879 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
20880 SREG_ADDR.
20881 (expand_epilogue): Ditto.
20882 (avr_print_operand): Ditto.
20883 (avr_file_start): Ditto.
20884 (avr_emit_movmemhi): Ditto.
20885
31432e21
RG
208862012-02-08 Richard Guenther <rguenther@suse.de>
20887
20888 PR tree-optimization/46886
20889 * tree-flow.h (do_while_loop_p): Declare.
20890 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
28f7ff45 20891 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
31432e21 20892
c51ec0a3
AM
208932012-02-08 Andrew MacLeod <amacleod@redhat.com>
20894
20895 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
20896 always succeed for integers larger than a native word.
20897
ea72cc1d
RG
208982012-02-08 Richard Guenther <rguenther@suse.de>
20899
20900 PR rtl-optimization/52170
20901 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
20902 properly handle integer vector modes.
20903
bd73623c
JJ
209042012-02-08 Jakub Jelinek <jakub@redhat.com>
20905
9e66e106
JJ
20906 PR gcov-profile/52150
20907 * coverage.c: Include target.h.
20908 (build_var): Call targetm.strip_name_encoding on the assembler name.
20909 Change one _ into . or $ if the target allows it.
20910 * Makefile.in (coverage.o): Depend on $(TARGET_H).
20911
bd73623c
JJ
20912 PR rtl-optimization/52139
20913 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
20914 is a BARRIER after emit_insn_after_noloc, move BB_END
20915 to the last non-BARRIER insn before it.
20916
4566de10
RS
209172012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
20918
20919 PR middle-end/24306
20920 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
20921 (mips_gimplify_va_arg_expr): Call it instead of
20922 std_gimplify_va_arg_expr.
20923
7cb5ce1a
MM
209242012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
20925
20926 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
20927 message for -mno-pointers-to-nested-function.
20928
f22cfd73
EB
209292012-02-07 Eric Botcazou <ebotcazou@adacore.com>
20930
20931 PR middle-end/51994
20932 * expr.c (get_inner_reference): If there is an offset, add a negative
20933 bit position to it (if any).
20934
13a72c0b
JJ
209352012-02-07 Jakub Jelinek <jakub@redhat.com>
20936
20937 PR rtl-optimization/52060
20938 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
20939 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
20940 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
20941 and/or i0src_copy2 when needed.
20942
deb3f362
JJ
209432012-02-07 Jakub Jelinek <jakub@redhat.com>
20944
117cb2bc
JJ
20945 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
20946 or LTOPLUGINSONAME if have_c.
20947
deb3f362
JJ
20948 * config/freebsd-spec.h: Add comment about what macros can be defined
20949 in this header.
20950 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
20951 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
20952 here instead.
20953
b1edf2bc
RG
209542012-02-07 Richard Guenther <rguenther@suse.de>
20955
20956 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
20957 newline in -alias dumps.
20958
26cfb9ab 209592012-02-07 Kai Tietz <ktietz@redhat.com>
28f7ff45 20960 Dave Korn <dave.korn.cygwin@gmail.com>
26cfb9ab
KT
20961
20962 PR target/40068
20963 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
20964 Take care that typinfo gets dllexport-attribute.
20965
b1b95093
JJ
209662012-02-07 Jakub Jelinek <jakub@redhat.com>
20967
20968 PR middle-end/52074
20969 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
20970 if modifier < EXPAND_SUM call force_operand on the result.
20971
60098013
JR
209722012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
20973
20974 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
20975 adding __forwarder_dst__ prefix if a forwarder_section attribute is
20976 present.
20977 (epiphany_function_type): Replace types for specific interrupts with
20978 EPIPHANY_FUNCTION_INTERRUPT.
20979 (EPIPHANY_INTERRUPT_P): Update.
20980 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
20981 New static function.
20982 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
20983 <disinterrupt>: Affects type identity.
20984 (epiphany_handle_interrupt_attribute): Handle variable number of
20985 arguments.
20986 (epiphany_compute_function_type): Update for new
20987 epiphany_function_type definition.
20988 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
20989 handlers with a longcall forwarder.
20990 (epiphany_start_function): Handle multiple interrupt arguments and/or
20991 forwarder_section attribute.
20992
28f7ff45
UB
20993 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
20994 libgloss.
be648db7 20995
30f0eb2d
AM
209962012-02-07 Alan Modra <amodra@gmail.com>
20997
20998 PR target/52107
20999 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
21000 subregs of TFmode.
21001
c5f14d62
BS
210022012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21003
21004 PR tree-optimization/50969
21005 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
21006 use vec_perm rather than vector_stmt.
21007 (vect_model_load_cost): Likewise.
21008 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
21009 vec_perm to be the same as other vector statements.
21010 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
21011 cost of vec_perm for TARGET_VSX.
21012
973a39ae
RG
210132012-02-06 Richard Guenther <rguenther@suse.de>
21014
21015 PR tree-optimization/52115
21016 * tree-sra.c (access_has_replacements_p): New function.
21017 (sra_modify_assign): Use it to decide whether a use is uninitialized.
21018
fe924d9f
PM
210192012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
21020
21021 PR middle-end/52047
21022 * trans-mem.c (expand_call_tm): Add an assertion.
21023 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
21024 functions.
21025
1d30a09a
RG
210262012-02-06 Richard Guenther <rguenther@suse.de>
21027
21028 PR tree-optimization/50955
21029 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
21030 raise cost of expressions that replace an address with an
21031 expression based on a different pointer.
21032
2c8b5d61
JJ
210332012-02-06 Jakub Jelinek <jakub@redhat.com>
21034
21035 PR target/52129
21036 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
21037 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
21038
9039ea91
JW
210392012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21040
21041 PR c++/48680
21042 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
21043 -Weffc++ and specify guidelines come from second edition.
21044
7ca9ea76
RS
210452012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
21046
21047 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
21048 (sibcall_value_multiple_internal, call_split, call_internal_direct)
21049 (call_direct_split, call_value_split, call_value_internal_direct)
21050 (call_value_direct_split, call_value_multiple_split): Use jal and
21051 jal_macro attributes.
21052
7bd8c53f
RS
210532012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
21054
21055 * reload1.c (reload_regs_reach_end_p): Replace with...
21056 (reload_reg_rtx_reaches_end_p): ...this function.
21057 (new_spill_reg_store): Update commentary.
21058 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
21059 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
21060 before setting new_spill_reg_store.
21061 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
21062 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
21063 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
21064 for non-spill reload registers.
21065
24ee1384
IR
210662012-02-05 Ira Rosen <irar@il.ibm.com>
21067
21068 PR tree-optimization/52091
21069 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
21070 (vect_is_simple_use_1): Likewise.
21071 * tree-vect-loop.c (vectorizable_reduction): Update calls
21072 to vect_is_simple_use_1 and vect_is_simple_use.
21073 (vectorizable_live_operation): Likewise.
21074 * tree-vect-patterns.c (widened_name_p,
28f7ff45 21075 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
24ee1384 21076 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
28f7ff45
UB
21077 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21078 vectorizable_shift,vectorizable_operation, vectorizable_store,
21079 vectorizable_load): Likewise.
24ee1384
IR
21080 (vect_is_simple_cond): Add an argument, pass it to
21081 vect_is_simple_use_1.
21082 (vectorizable_condition): Update calls to vect_is_simple_cond,
21083 vect_is_simple_use.
21084 (vect_is_simple_use): Add an argument, the statement in which
21085 OPERAND is used. Check that if OPERAND's def stmt is a double
21086 reduction phi node, the use is a phi node too.
21087 (vect_is_simple_use_1): Add an argument, pass it to
21088 vect_is_simple_use.
21089 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
21090 to vect_is_simple_use.
21091
d5785e76
JJ
210922012-02-04 Jakub Jelinek <jakub@redhat.com>
21093
22439481
JJ
21094 PR rtl-optimization/52095
21095 * modulo-sched.c (dump_insn_locator): New function.
21096 (loop_canon_p, sms_schedule): Use it.
21097
d5785e76
JJ
21098 PR rtl-optimization/52113
21099 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
21100 even for decomposable shift/zext insns.
21101
32410d02
JJ
211022012-02-03 Jakub Jelinek <jakub@redhat.com>
21103 Zdenek Dvorak <ook@ucw.cz>
21104
21105 PR rtl-optimization/52092
21106 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
21107 on get_iv_value result.
21108
75471253
AP
211092012-02-02 Andrew Pinski <apinski@cavium.com>
21110
21111 PR middle-end/47982
21112 PR middle-end/43967
21113 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
21114
1f01c3ec
JJ
211152012-02-02 Jakub Jelinek <jakub@redhat.com>
21116
21117 PR middle-end/48071
21118 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
21119
662f8070
VM
211202012-02-02 Vladimir Makarov <vmakarov@redhat.com>
21121
21122 PR rtl-optimization/49800
21123 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
21124 (sched_finish): Call regstat_free_n_sets_and_refs.
21125
14bc59cb
RS
211262012-02-02 Jia Liu <proljc@gmail.com>
21127
21128 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
21129 than operand 2.
21130
9517e333
UB
211312012-02-02 Jan Hubicka <jh@suse.cz>
21132 Tom de Vries <tom@codesourcery.com>
5ee770bf
JH
21133
21134 PR middle-end/51998
21135 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
21136 * varpool.c (varpool_analyze_pending_decls): Likewise.
21137
b25364a0
S
211382012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
21139 Jayant R Sonar <jayant.sonar@kpitcummins.com>
21140
21141 * config.gcc: Add cr16-* support.
21142
21143 * doc/extend.texi: Document cr16 extensions.
21144 * doc/install.texi: Document cr16 install.
21145 * doc/invoke.texi: Document cr16 options.
21146 * doc/md.texi: Document cr16 constraints.
21147
21148 * common/config/cr16/cr16-common.c: New file.
21149 * config/cr16/cr16.c: New file.
21150 * config/cr16/cr16.h: New file.
21151 * config/cr16/cr16.md: New file.
21152 * config/cr16/cr16.opt: New file.
21153 * config/cr16/cr16-protos.h: New file.
21154 * config/cr16/predicates.md: New file.
21155 * config/cr16/constraints.md: New file.
21156 * config/cr16/t-cr16: New file.
21157
13c931c9
JJ
211582012-02-02 Jakub Jelinek <jakub@redhat.com>
21159
903e49f5
JJ
21160 PR target/52086
21161 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
21162 that operands[2] is either immediate, or q_regs_operand.
21163
13c931c9
JJ
21164 PR tree-optimization/52073
21165 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
21166 a pattern stmt for pattern uses, ignore uses outside of the loop.
21167
c2453253
GJL
211682012-02-01 Georg-Johann Lay <avr@gjlay.de>
21169
21170 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
21171 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
21172 (OUT_AS1, OUT_AS2): Remove.
21173
07ad5438
GJL
211742012-02-01 Georg-Johann Lay <avr@gjlay.de>
21175
21176 PR rtl-optimization/51374
21177 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
21178 to cross other volatile_refs_p insns.
21179
99ea07f8
RG
211802012-02-01 Richard Guenther <rguenther@suse.de>
21181
21182 * doc/invoke.texi (fno-inline): Clarify documentation.
21183 (finline-small-functions): Likewise.
21184 (finline-functions): Likewise.
21185 * common.opt (finline): Adjust comment and documentation.
21186 (finline-small-functions): Clarify documentation.
21187 (finline-functions): Likewise.
21188 (finline-functions-called-once): Likewise.
21189
3db684fb
TG
211902012-02-01 Tristan Gingold <gingold@adacore.com>
21191
21192 * c-typeck.c (composite_type): Keep mode for pointers.
21193
35aebd56
RS
211942012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
21195
21196 * function.h (regno_reg_rtx): Adjust comment.
21197 * reginfo.c (init_reg_modes_target): Only use the previous mode
21198 if it fits within one register. Remove MIPS comment.
21199
8bb1a172
JJ
212002012-01-31 Jakub Jelinek <jakub@redhat.com>
21201
21202 PR bootstrap/52058
21203 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
21204
01496eca
AK
212052012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21206
21207 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
21208 to srak instruction.
21209
a2be33be
MGD
212102012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
21211
28f7ff45 21212 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
a2be33be 21213
dd887943
JJ
212142012-01-31 Jakub Jelinek <jakub@redhat.com>
21215
21216 PR bootstrap/52041
21217 PR bootstrap/52039
21218 PR target/51974
21219 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
21220
63d7ceaa
RG
212212012-01-31 Richard Guenther <rguenther@suse.de>
21222
21223 PR tree-optimization/51528
21224 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
21225 assigns.
21226
68c8a824
JJ
212272012-01-31 Jakub Jelinek <jakub@redhat.com>
21228
21229 PR bootstrap/52041
21230 PR bootstrap/52039
21231 PR target/51974
21232 * ree.c (add_removable_extension): Change def_map argument
21233 to unsigned *, store in def_map 1 + offset into *insn_list vector
21234 instead of pointers into the vector.
21235 (find_removable_extensions): Adjust caller.
21236
a7fd5c6b
GJL
212372012-01-30 Georg-Johann Lay <avr@gjlay.de>
21238
21239 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
21240 Transform all "* quoted-c-code" to { c-code }.
21241 Remove redundant test for "optimize" in combine patterns.
21242 Move (include "avr-dimode.md") to end of file.
21243
ab07692c
BC
212442012-01-30 Bin Cheng <bin.cheng@arm.com>
21245
21246 PR target/51835
21247 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
21248 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
21249
e799d447
RG
212502012-01-30 Richard Guenther <rguenther@suse.de>
21251
21252 PR tree-optimization/52028
21253 * tree-loop-distribution.c (ldist_gen): Properly update
21254 virtual SSA form.
21255
dd44dcb0
JJ
212562012-01-30 Jakub Jelinek <jakub@redhat.com>
21257
2026d51a
JJ
21258 PR debug/52027
21259 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
21260 set_cur_line_info_table if not emitting debug info.
21261
2f326699
JJ
21262 PR tree-optimization/52046
21263 * tree-vect-patterns.c (check_bool_pattern): Give up if
21264 a comparison could throw.
21265
dd44dcb0
JJ
21266 PR debug/52048
21267 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
21268
ab448cfa
RG
212692012-01-30 Richard Guenther <rguenther@suse.de>
21270
21271 PR tree-optimization/52045
21272 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
21273 SSA form if cfgcleanup did anything.
21274
f8698b37
RG
212752012-01-30 Richard Guenther <rguenther@suse.de>
21276
21277 PR tree-optimization/52045
21278 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
21279 before computing final todo.
21280
fdad69c1
RG
212812012-01-30 Richard Guenther <rguenther@suse.de>
21282
21283 PR tree-optimization/51528
21284 * tree-sra.c (sra_modify_assign): Re-factor in preparation
21285 for PR51528 fix.
21286
8203ac49
PB
212872012-01-30 Paolo Bonzini <bonzini@gnu.org>
21288
21289 * df-problems.c (df_kill_notes): Check that the use refers
21290 to the note under examination.
21291
98e4350f
EB
212922012-01-30 Eric Botcazou <ebotcazou@adacore.com>
21293
21294 PR target/51920
21295 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
21296 parameter and use short-lived pseudos.
21297 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
21298 (sparc_expand_vector_init): Const-ify local variables and adjust
21299 calls to above functions.
21300
733ccf09
GJL
213012012-01-30 Georg-Johann Lay <avr@gjlay.de>
21302
21303 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
21304
1d7b264e
SL
213052012-01-29 Sandra Loosemore <sandra@codesourcery.com>
21306
21307 * doc/invoke.texi: Make usage of "compile time" and
21308 "run time"/"runtime" consistent throughout the file.
21309
1e86df8d
UB
213102012-01-29 Uros Bizjak <ubizjak@gmail.com>
21311
28f7ff45 21312 * config/alpha/alpha.c (alpha_option_override): Default to
1e86df8d
UB
21313 full IEEE compliance mode for Go language.
21314
8ca92d04 213152012-01-29 Tijl Coosemans <tijl@coosemans.org>
fc4c0b43
TC
21316
21317 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
21318 (LINK_SSP_SPEC): Define.
21319
df8b5535
JDA
213202012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21321
21322 PR target/51871
21323 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
21324 stubs.
21325
6b6985ba
SL
213262012-01-28 Sandra Loosemore <sandra@codesourcery.com>
21327
21328 * doc/invoke.texi: Correct hyphenation of "floating point",
21329 "double precision", and related terminology throughout the file.
21330
8ea2d689
JJ
213312012-01-28 Jakub Jelinek <jakub@redhat.com>
21332
21333 PR target/52006
21334 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
21335 arm_general_register_operand predicate for operand 2 instead of
21336 register_operand.
21337
183dd130
ILT
213382012-01-27 Ian Lance Taylor <iant@google.com>
21339
21340 PR go/47656
21341 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
21342 * builtins.c (expand_builtin_init_trampoline): Add onstack
21343 parameter. Change caller.
21344 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
21345 * tree.c (build_common_builtin_nodes): Declare
21346 __builtin_init_heap_trampoline.
21347
38ee0815
GJL
213482012-01-27 Georg-Johann Lay <avr@gjlay.de>
21349
21350 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
21351 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
21352 * config/avr/avr.c: Ditto.
21353 (avr_regnames): Remove because unused.
21354 * config/avr/avr.md (*cpse.ne): New peephole.
21355 (*cpse.eq): New peephole from former cpse peepholes.
21356
b6c71f77
ME
213572012-01-27 Michael Eager <eager@eagercon.com>
21358
21359 * config/microblaze.c (microblaze_emit_compare): Correct
21360 test after pcmp instruction.
21361
13604927
RG
213622012-01-27 Richard Guenther <rguenther@suse.de>
21363
21364 PR tree-optimization/52020
21365 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
21366
ace018f9
RG
213672012-01-27 Richard Guenther <rguenther@suse.de>
21368
21369 * ipa-pure-const.c (check_stmt): Clobbers do not make a
21370 function non-const/pure.
21371
aff86594
RG
213722012-01-27 Richard Guenther <rguenther@suse.de>
21373
21374 PR tree-optimization/50444
21375 * tree-sra.c (build_ref_for_offset): Properly adjust the
21376 MEM_REF type for unaligned accesses.
21377
22345357
RG
213782012-01-27 Richard Guenther <rguenther@suse.de>
21379
21380 PR tree-optimization/50444
21381 * expr.c (mem_ref_refers_to_non_mem_p): New function.
21382 (expand_assignment): Use it. Properly handle misaligned
21383 bases when expanding stores to component references.
21384 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
21385 refactor that case.
21386
3881dee9
AB
213872012-01-27 Andrey Belevantsev <abel@ispras.ru>
21388
21389 PR middle-end/51389
21390 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
21391 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
21392 * tree-data-ref.c (find_data_references_in_loop): Make static.
21393 (compute_all_dependences): Change return type to bool. Bail out
21394 for too many datarefs in a loop. Move the hunk resetting the data
21395 dependences vector from ...
21396 (compute_data_dependences_for_loop): ... here. Account for
21397 compute_all_dependences returning false.
21398 (compute_data_dependences_for_bb): Likewise.
21399 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
21400 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
21401
45c83429
RG
214022012-01-27 Richard Guenther <rguenther@suse.de>
21403
21404 PR middle-end/51959
21405 * expr.c (store_field): Use the alias-set of the scratch memory
21406 for storing to it.
21407
842679dc
TV
214082012-01-27 Tom de Vries <tom@codesourcery.com>
21409
21410 PR tree-optimization/51990
1e86df8d
UB
21411 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
21412 WITH_SIZE_EXPR.
842679dc
TV
21413 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
21414
ae25db45
JJ
214152012-01-27 Jakub Jelinek <jakub@redhat.com>
21416
21417 PR debug/52001
21418 * var-tracking.c (reverse_op): Don't add any reverse operation
21419 if V already has any constant locations.
21420
cb485fff
SL
214212012-01-27 Sandra Loosemore <sandra@codesourcery.com>
21422
21423 * doc/invoke.texi: Correct usage of "command line" (noun)
21424 vs "command-line" (adjective) throughout.
21425
e3bd34b8
SL
214262012-01-27 Sandra Loosemore <sandra@codesourcery.com>
21427
21428 * doc/invoke.texi (Language Independent Options): Move
21429 -Wcoverage-mismatch blurb from here....
21430 (Warning Options): ...to here.
21431
b7c0a0d4
PB
214322012-01-27 Peter Bergner <bergner@vnet.ibm.com>
21433
21434 * config/rs6000/rs6000.c (rs6000_option_override_internal):
21435 Set rs6000_always_hint to false for 476.
21436
2fda54bd
MK
214372012-01-27 Matthias Klose <doko@ubuntu.com>
21438
21439 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
21440 system root.
21441 * incpath.c (add_standard_paths): Likewise.
21442
4c1fd084
RH
214432012-01-27 Richard Henderson <rth@redhat.com>
21444
21445 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
21446 * config/m68k/sync.md (atomic_test_and_set): Rename from
21447 sync_test_and_setqi and adjust the operands.
21448 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
21449 and unconditionally enable.
21450
5a843a13
RH
214512012-01-27 Richard Henderson <rth@redhat.com>
21452
21453 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
21454 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
21455 (ldstub): Rename from ldstubqi.
21456 (ldstub<I24MODE>): Remove.
21457
57c5ab1b
RH
214582012-01-27 Richard Henderson <rth@redhat.com>
21459
21460 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
21461 * c-cppbuiltin.c (cpp_atomic_builtins): Define
21462 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
21463 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
21464 * doc/tm.texi: Rebuild.
21465
15e73e06
RH
214662012-01-27 Richard Henderson <rth@redhat.com>
21467
21468 * optabs.c (gen_atomic_test_and_set): Remove default.
21469 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
21470
089dacc5
JJ
214712012-01-26 Jakub Jelinek <jakub@redhat.com>
21472
21473 PR rtl-optimization/51978
1e86df8d 21474 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
089dacc5
JJ
21475 (combine_reaching_defs): Likewise.
21476 (struct re_info): Remove.
21477 (add_removable_extension): Remove x and data arguments,
21478 add insn, insn_list and def_map. Use the arguments directly
21479 instead of using struct re_info.
21480 (find_removable_extensions): Don't call add_removable_extension
21481 through note_stores, instead just call it with single_set
21482 result if non-NULL.
21483 (find_and_remove_re): Pass curr_cand->expr instead of
1e86df8d 21484 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
089dacc5 21485
81bfd197
MM
214862012-01-26 Michael Matz <matz@suse.de>
21487
21488 PR tree-optimization/46590
21489 * cfgexpand.c: Revert last change (r183305).
21490 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
21491 regs.
21492 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
21493 checking for emptiness.
21494
892123df
JJ
214952012-01-26 Jakub Jelinek <jakub@redhat.com>
21496
21497 PR middle-end/51895
21498 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
21499 non-addressable non-BLKmode base correctly.
21500
1a47f99c
MM
215012012-01-26 Michael Matz <matz@suse.de>
21502
21503 PR tree-optimization/48794
21504 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
21505 regions referenced from RESX/EH_DISPATCH.
21506
3d427cc1
AK
215072012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21508
21509 * config/s390/s390.h: Make BRANCH_COST an option.
21510 * config/s390/s390.opt: New option -mbranch-cost.
21511
3be18e47
RH
215122012-01-26 Richard Henderson <rth@redhat.com>
21513
21514 Revert 2012-01-24 change:
21515 * trans-mem.c (requires_barrier): Do not instrument thread local
21516 variables and emit save/restore for them.
21517
21ae439c
JJ
215182012-01-25 Jakub Jelinek <jakub@redhat.com>
21519
21520 PR middle-end/51986
21521 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
21522 for pat == 0.
21523
e906c889
RS
215242012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21525
55d4e75e
RS
21526 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
21527 ASM_OPERANDS.
e906c889 21528
3a840863
GJL
215292012-01-25 Georg-Johann Lay <avr@gjlay.de>
21530
21531 PR target/49868
21532 Rename __pgm to __flash.
21533 Rename __pgm1 to __flash1.
21534 Rename __pgm2 to __flash2.
21535 Rename __pgm3 to __flash3.
21536 Rename __pgm4 to __flash4.
21537 Rename __pgm5 to __flash5.
21538 Rename __pgmx to __memx.
21539 * doc/extend.texi (AVR Named Address Spaces)
21540 Rename address space names as indicated above.
21541 * config/avr/avr.c (avr_addrspace): Ditto.
21542
21543 * config/avr/avr-protos.h
21544 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
21545 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
21546 * config/avr/predicates.md: Ditto.
21547 * config/avr/avr.c Ditto, and
21548 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
21549 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
21550
21551 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
21552 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
21553 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
21554 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
21555 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
21556 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
21557 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
21558 * config/avr/avr.c: Ditto.
21559 * config/avr/avr.md: Ditto.
21560
b3310d49
JM
215612012-01-25 Jason Merrill <jason@redhat.com>
21562
21563 PR c++/51992
21564 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
21565
06e1d03d
JJ
215662012-01-25 Jakub Jelinek <jakub@redhat.com>
21567
21568 PR tree-optimization/51987
21569 * tree-data-ref.c (get_references_in_stmt): Handle references in
21570 non-volatile GIMPLE_ASM.
21571
8bf43909
RG
215722012-01-25 Richard Guenther <rguenther@suse.de>
21573
21574 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
21575 bases are dereferenced.
21576
3dbdd1b9
AB
215772012-01-25 Andrey Belevantsev <abel@ispras.ru>
21578
21579 PR rtl-optimization/48374
1e86df8d 21580 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
3dbdd1b9 21581
9ca3d00e
AB
215822012-01-25 Andrey Belevantsev <abel@ispras.ru>
21583
21584 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
21585 compute_data_dependences_for_loop returns false.
21586 * tree-parloops.c (loop_parallel_p): Likewise.
21587
87c0fb4b
RG
215882012-01-25 Richard Guenther <rguenther@suse.de>
21589
21590 * tree.h (get_pointer_alignment_1): Declare.
21591 * builtins.c (get_pointer_alignment_1): New function.
21592 (get_pointer_alignment): Use it.
21593
2630025d
RR
215942012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21595
21596 PR rtl-optimization/48308
21597 * combine.c (enum undo_kind): Add UNDO_LINKS.
21598 (struct undo): Add member l to other_contents and where.
21599 (do_SUBST_LINK): New.
21600 (SUBST_LINK): New.
21601 (try_combine): Handle LOG_LINKS for the dummy i1 case.
21602 (undo_all): Handle UNDO_LINKS.
21603
42cf0609
RH
216042012-01-25 Richard Henderson <rth@redhat.com>
21605
21606 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
21607 mem inputs.
21608
1efaf134
RS
216092012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
21610
21611 * optabs.c (gen_atomic_test_and_set): Use each argument.
21612
63b9d91a
RS
216132012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
21614
21615 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
21616 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
21617 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
21618 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
21619 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
21620 TARGET_PAIRED_SINGLE_FLOAT.
21621
55356334
RS
216222012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
21623
21624 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
21625 (in_struct, return_val): Remove MEM documentation.
21626 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
21627 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
21628 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
21629 and MEM_SCALAR.
21630 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21631 * cfgexpand.c (add_alias_set_conflicts): Likewise.
21632 * expr.c (store_field): Likewise.
21633 * function.c (assign_stack_temp_for_type): Likewise.
21634 * ifcvt.c (noce_try_cmove_arith): Likewise.
21635 * reload1.c (reload): Likewise.
21636 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
21637 (alpha_set_memflags): Likewise.
21638 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
21639
53d9622b
RS
216402012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
21641
21642 * rtl.h (true_dependence, canon_true_dependence): Remove varies
21643 parameter.
21644 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
21645 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
21646 (true_dependence_1, true_dependence, canon_true_dependence): Remove
21647 varies parameter.
21648 * cselib.c (cselib_rtx_varies_p): Delete.
21649 (cselib_invalidate_mem): Update call to canon_true_dependence.
21650 * dse.c (record_store, check_mem_read_rtx): Likewise.
21651 (scan_reads_nospill): Likewise.
21652 * cse.c (check_dependence): Likewise.
21653 (cse_rtx_varies_p): Delete.
21654 * expr.c (safe_from_p): Update call to true_dependence.
21655 * ira.c (validate_equiv_mem_from_store): Likewise.
21656 (memref_referenced_p): Likewise.
21657 * postreload-gcse.c (find_mem_conflicts): Likewise.
21658 * sched-deps.c (sched_analyze_2): Likewise.
21659 * store-motion.c (load_kills_store): Likewise.
21660 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
21661 * gcse.c (mems_conflict_for_gcse_p): Likewise.
21662 (compute_transp): Update call to canon_true_dependence.
21663
f8a27aa6
RH
216642012-01-25 Richard Henderson <rth@redhat.com>
21665
21666 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
21667 (maybe_emit_atomic_test_and_set): New.
21668 (expand_sync_lock_test_and_set): Use it.
21669 (expand_atomic_test_and_set): Likewise.
21670 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
21671 the implementation; clarify implementation defined details.
21672 * doc/md.texi (atomic_test_and_set): Document.
21673
f1d4a790
RH
216742012-01-25 Richard Henderson <rth@redhat.com>
21675
21676 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
21677
ed6cf318
RH
216782012-01-25 Richard Henderson <rth@redhat.com>
21679
21680 PR target/51968
21681 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
21682 to effect no-op split.
21683
dda6ecae
AH
216842012-01-24 Aldy Hernandez <aldyh@redhat.com>
21685
21686 PR lto/51698
21687 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
21688 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
21689 (BT_FN_VOID_PTR_INT_SIZE): New.
21690 (BT_FN_UINT_UINT_VAR): Remove.
21691 (BT_FN_UINT32_UINT32_VAR): New.
21692 (BT_FN_DOUBLE_VPTR): Remove.
21693 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
21694
1e86df8d 21695 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
dda6ecae
AH
21696 (_ITM_changeTransactionMode): Same.
21697 (_ITM_memmoveRtWt): Change return type to void.
21698 (_ITM_memcpyRtWt): Same.
21699 (_ITM_memsetW): Same.
21700 (_ITM_RaRD): Change types to double.
21701 (_ITM_RD): Same.
21702 (_ITM_RaWD): Same.
21703 (_ITM_RfWD): Same.
21704
21705 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
21706
1aa5d1c7
AH
217072012-01-24 Aldy Hernandez <aldyh@redhat.com>
21708 Patrick Marlier <patrick.marlier@gmail.com>
21709
21710 * trans-mem.c (requires_barrier): Do not instrument thread local
21711 variables and emit save/restore for them.
21712
c5c90089
JM
217132012-01-24 Jason Merrill <jason@redhat.com>
21714
21715 PR c++/51812
21716 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
21717 output static aliases.
21718
5460e1fc
JJ
217192012-01-24 Jakub Jelinek <jakub@redhat.com>
21720
21721 PR driver/47249
21722 * common.opt (-pie, -shared, pie, shared): Change from Common to
21723 Driver.
21724 * gcc.c (display_help): Display help for -pie and -shared.
21725
aa9ec4db
GJL
217262012-01-24 Georg-Johann Lay <avr@gjlay.de>
21727
21728 PR target/49868
21729 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
21730 Remove note on size/offset limitation.
21731 (AVR Variable Attributes): Add example how to read data located
21732 with progmem. Refer to named address spaces.
21733 * doc/invoke.texi (AVR Options): Fix typo.
21734
a9d3ac1e
RG
217352012-01-24 Richard Guenther <rguenther@suse.de>
21736
21737 Forward-port to trunk
21738 2010-09-21 Jakub Jelinek <jakub@redhat.com>
21739
21740 PR middle-end/45678
21741 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
21742 op0 isn't sufficiently aligned and there is movmisalignM
21743 insn for mode, use it to load op0 into a temporary register.
21744
93bcc8c9
JJ
217452012-01-24 Jakub Jelinek <jakub@redhat.com>
21746
21747 PR target/51957
21748 * target.def (const_not_ok_for_debug_p): New hook.
21749 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
21750 documentation.
21751 * doc/tm.texi: Regenerated.
21752 * dwarf2out.c (const_ok_for_output_1): If
21753 targetm.const_not_ok_for_debug_p returns true, fail.
21754 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
21755 function.
21756 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
21757
986ce92f
KT
217582012-01-23 Kai Tietz <ktietz@redhat.com>
21759
21760 PR target/51900
21761 * config/i386/predicates.md (symbolic_operand): Allow
21762 UNSPEC_PCREL as PIC expression for lea.
21763 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
21764 * config/i386/i386.c (ix86_delegitimize_address): Handle
21765 UNSPEC_PCREL for none-MEM, too.
21766
e617b554
AH
217672012-01-23 Aldy Hernandez <aldyh@redhat.com>
21768
21769 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
21770 (ipa_tm_create_version_alias): Same.
21771
1e86df8d 217722012-01-23 Uros Bizjak <ubizjak@gmail.com>
5752c591
UB
21773
21774 PR libitm/51830
21775 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
21776 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
21777
f2ede0ee
AH
217782012-01-23 Aldy Hernandez <aldyh@redhat.com>
21779 Patrick Marlier <patrick.marlier@gmail.com>
21780 Iain Sandoe <developer@sandoe-acoustics.co.uk>
21781
21782 PR lto/51916
21783 * lto-wrapper.c (run_gcc): Pass the LTO section name to
21784 simple_object_start_read.
21785
191879f9
RG
217862012-01-23 Richard Guenther <rguenther@suse.de>
21787
f2ede0ee 21788
191879f9
RG
21789 PR tree-optimization/51895
21790 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
21791 parameter decomposition into BLKmode components.
21792
b31799f4
EB
217932012-01-23 Eric Botcazou <ebotcazou@adacore.com>
21794
21795 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
21796 fake variables for restrict-qualified pointers whose pointed-to type
21797 contains a placeholder.
21798
b2d2adc6
RG
217992012-01-23 Richard Guenther <rguenther@suse.de>
21800
21801 PR tree-optimization/51949
5752c591 21802 * ipa-split.c (execute_split_functions): Do not split malloc functions.
b2d2adc6 21803
b57cca0b
JJ
218042012-01-23 Jakub Jelinek <jakub@redhat.com>
21805
21806 PR rtl-optimization/51933
21807 * ree.c (transform_ifelse): Return true right away if dstreg is
21808 already wider or equal to cand->mode.
21809 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
21810 (make_defs_and_copies_lists): Remove defs_list and copies_list
21811 arguments, add state argument, just truncate state->work_list
21812 instead of always allocating and freeing the vector. Assert that
5752c591 21813 get_defs succeeds instead of returning 2. Changed return type to bool.
b57cca0b
JJ
21814 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
21815 have ext_src_mode, see if it has been modified already with the
21816 right kind of extension and has been extended before from the
21817 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
5752c591 21818 just return true. Remember the original mode in state->modified array.
b57cca0b
JJ
21819 (combine_reaching_defs): Add state argument. Don't allocate and
21820 free here def_list, copied_list and vec vectors, instead just
5752c591 21821 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
b57cca0b
JJ
21822 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
21823 Add state variable, clear vectors in it, initialize state.modified
21824 if needed. Free all the vectors at the end and state.modified too.
21825 Don't skip a candidate if the extension expression has been modified.
21826
daecebc8
DR
218272012-01-22 Douglas B Rupp <rupp@gnat.com>
21828
21829 PR target/47096
21830 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
21831 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
21832 (extra_options) interix.opt -> i386/interix.opt"
21833 (extra_objs):Add winnt-stubs.o
21834 * configure.ac: Add interix to target_os .comm on PE check.
21835 * configure: Regenerate.
21836 * config/interix3.h: Delete and move bits to..
21837 * config/interix.h: Delete and move bits to..
21838 * config/i386/i386-interix3.h: Delete and move bits to..
21839 * config/i386/i386-interix.h: ..here.
21840 (TARGET_CPU_DEFAULT): Remove redefinition.
21841 (TARGET_ASM_CONSTRUCTOR): Undefine.
21842 (SUBTARGET_SWITCHES): Define for ms-bitfields.
21843 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
21844 (PTRDIFF_TYPE): Define.
21845 (LONG_DOUBLE_TYPE_SIZE): Define.
21846 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
21847 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
21848 (TARGET_SECTION_TYPE_FLAGS): Define.
21849 (ASM_DECLARE_FUNCTION_NAME): Define.
21850 (ASM_OUTPUT_EXTERNAL): Define.
21851 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
21852 (ASM_OUTPUT_ALIGNED_BSS): Define.
21853 (PCC_BITFIELD_TYPE_MATTERS): Define.
21854 (USE_CONST_SECTION): Define.
21855 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
21856 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
21857 (SUPPORTS_ONE_ONLY): Remove.
21858 (I386_PE_STRIP_ENCODING): Define.
21859 * config/interix.opt: Delete and move bits to..
21860 * config/i386/interix.opt: ..here. New.
21861 (mpe-aligned-commons): Add.
21862 * config/i386/t-interix: Add copyright header.
21863 (winnt-stubs.o): Add rule.
21864
bbe04f21
JM
218652012-01-22 Jason Merrill <jason@redhat.com>
21866
21867 PR c++/51832
21868 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
21869 for extra name aliases.
21870
ca10595c
EB
218712012-01-22 Eric Botcazou <ebotcazou@adacore.com>
21872
21873 PR rtl-optimization/51924
21874 * ree.c (combine_set_extension): Improve debugging message.
21875 (combine_reaching_defs): Likewise.
21876 (get_defs): Rename confusingly named variable.
21877 (find_and_remove_re): Skip a candidate if the extension expression has
21878 been modified.
21879
4787ac51
RM
218802012-01-21 Robert Millan <rmh@gnu.org>
21881 Gerald Pfeifer <gerald@pfeifer.com>
21882
21883 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
21884 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
21885
82294ec1
JJ
218862012-01-20 Jakub Jelinek <jakub@redhat.com>
21887
21888 PR tree-optimization/51914
21889 * tree-vect-stmts.c (vectorizable_conversion): For
21890 cvt_type && modifier == WIDEN, put temporary with cvt_type
21891 at the beginning of vec_dsts and set vec_dest to temporary
21892 with vectype_out.
21893
68cc3174
EB
218942012-01-20 Eric Botcazou <ebotcazou@adacore.com>
21895
21896 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
21897
8ca92d04 218982012-01-20 Tijl Coosemans <tijl@coosemans.org>
cdee0298
TC
21899
21900 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
21901 * config/rs6000/rs6000.c: Likewise.
21902
4c2708c5
JJ
219032012-01-20 Jakub Jelinek <jakub@redhat.com>
21904
21905 PR target/51915
21906 * config/arm/arm.c (arm_count_output_move_double_insns): Call
21907 output_move_double on a copy of operands array.
21908
5752c591
UB
219092012-01-20 Cary Coutant <ccoutant@google.com>
21910 Dodji Seketeli <dodji@redhat.com>
2d663cb9
CC
21911
21912 PR debug/45682
21913 * dwarf2out.c (copy_declaration_context): Return ref to parent
21914 of declaration DIE, if necessary.
21915 (remove_child_or_replace_with_skeleton): Add new parameter; update
21916 caller. Place skeleton DIE under parent DIE of original declaration.
21917 Move call to copy_declaration_context to here ...
21918 (break_out_comdat_types): ... from here.
21919
afa73d3a
AK
219202012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21921
21922 PR rtl-optimization/51856
21923 * reload.c (find_reloads_subreg_address): Set the address_reloaded
21924 flag to reloaded.
21925
3675f54b
RR
219262012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21927
21928 PR target/51819
21929 * config/arm/arm.c (arm_print_operand): Correct output of alignment
21930 hints for neon loads and stores.
21931
542bf446
GJL
219322012-01-20 Georg-Johann Lay <avr@gjlay.de>
21933
21934 PR target/49868
21935 PR target/50887
21936 * doc/extend.texi (Named Address Spaces): Split into subsections.
21937 (AVR Named Address Spaces): New subsection.
21938 (M32C Named Address Spaces): New subsection.
21939 (RL78 Named Address Spaces): New subsection.
21940 (SPU Named Address Spaces): New subsection.
21941 (Variable Attributes): New anchor "AVR Variable Attributes".
21942 (AVR Variable Attributes): Rewrite and avoid wording
21943 "address space" in this context.
21944 * doc/invoke.texi (AVR Options): Rewrite and add documentation
21945 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
21946 (AVR Built-in Macros): New subsubsection therein.
21947 * doc/md.texi (AVR constraints): Remove "C04", "R".
21948
a88b3135
RG
219492012-01-20 Richard Guenther <rguenther@suse.de>
21950
21951 PR tree-optimization/51903
21952 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
21953 when removing stmts.
21954
f06129ea
RR
219552012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21956
21957 PR target/50313
21958 * config/arm/arm.c (arm_load_pic_register): Use
21959 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
21960 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
21961 (arm_pic_static_addr): Likewise.
21962 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
21963 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
21964 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
21965 (pic_load_addr_unified): New.
21966
229bfbcf
AB
219672012-01-20 Andrey Belevantsev <abel@ispras.ru>
21968
21969 PR target/51106
21970 * function.c (instantiate_virtual_regs_in_insn): Use
21971 delete_insn_and_edges when removing a wrong asm insn.
21972
2608d841
VM
219732012-01-19 Vladimir Makarov <vmakarov@redhat.com>
21974
21975 PR rtl-optimization/40761
5752c591
UB
21976 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
21977 Add new member loop_num.
2608d841
VM
21978 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
21979 (ira_build): Remove the parameter.
21980
5752c591 21981 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
2608d841
VM
21982 (ira.c): Do not build CFG loops for one region allocation. Remove
21983 argument from ira_build call.
21984
21985 * ira-build.c (init_loop_tree_node): New function.
21986 (create_loop_tree_nodes): Use it. Separate the case when CFG
21987 loops are not built.
21988 (more_one_region_p): Check current_loops.
21989 (finish_loop_tree_nodes): Separate the case when CFG loops are not
21990 built.
21991 (add_loop_to_tree): Process loop equal to NULL too.
21992 (form_loop_tree): Separate the case when CFG loops are not built.
21993 Use explicitly number for the root.
21994 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
21995 an assertion.
21996 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
21997 instead of loop->num.
5752c591 21998 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
2608d841
VM
21999 (mark_all_loops_for_removal): Ditto.
22000 (remove_unnecessary_regions): Separate the case when CFG loops
22001 are not built.
22002 (ira_build): Remove the parameter. Use explicit number of regions
22003 when CFG loops are not built.
22004
5752c591
UB
22005 * ira-color.c (print_loop_title): Separate the case for the root node.
22006 Use loop_num instead of loop->num.
2608d841
VM
22007 (move_spill_restore): Use loop_num instead of loop->num.
22008
22009 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
22010 (change_loop): Ditto.
22011 (change_loop): Use loop_num instead of loop->num.
22012
22013 * ira-lives.c (process_bb_node_lives): Ditto.
22014
5752c591 22015 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
2608d841
VM
22016
22017 * ira-conflicts.c (print_allocno_conflicts): Ditto.
22018
dc2c7a52
JJ
220192012-01-19 Jakub Jelinek <jakub@redhat.com>
22020
58b3ebf2
JJ
22021 PR libmudflap/40778
22022 * tree-mudflap.c (mf_artificial): New function.
22023 (execute_mudflap_function_ops, execute_mudflap_function_decls,
22024 mx_register_decls, mudflap_enqueue_decl): Use it.
22025
dc2c7a52
JJ
22026 PR target/51876
22027 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
22028 numbers in the insn pattern.
22029
d5038d06
MM
220302012-01-19 Michael Matz <matz@suse.de>
22031
22032 PR tree-optimization/46590
22033 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
22034 use it in remembering which conflicts we already created.
22035 (add_scope_conflicts): Adjust call to above, (de)allocate helper
22036 bitmap.
22037
aad038ca
AH
220382012-01-19 Aldy Hernandez <aldyh@redhat.com>
22039
22040 PR lto/51280
22041 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
22042 (merge_and_complain): Same.
22043
e9c9f128
JJ
220442012-01-19 Jakub Jelinek <jakub@redhat.com>
22045
22046 PR bootstrap/50237
22047 * config/initfini-array.h: Guard content of the header
22048 with #ifdef HAVE_INITFINI_ARRAY.
22049 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
22050 Add initfini-array.h to tm_file here.
5752c591 22051 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
e9c9f128
JJ
22052 * config.gcc: Don't add initfini-array.h to tm_file here.
22053 * configure: Regenerated.
22054
220552012-01-19 Andrey Belevantsev <abel@ispras.ru>
f90aa714
AB
22056
22057 PR rtl-optimization/51505
22058 * df-problems.c (df_kill_notes): New parameter live. Update comment.
22059 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
5752c591 22060 (df_note_bb_compute): Update the call to df_kill_notes.
f90aa714 22061
63c0efdb
AH
220622012-01-18 Aldy Hernandez <aldyh@redhat.com>
22063
22064 * trans-mem.c (requires_barrier): Remove call to is_global_var.
22065
b8cf611d
RG
220662012-01-18 Richard Guenther <rguenther@suse.de>
22067
22068 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
22069 of conversions to void *.
22070
3bdb97b8
AK
220712012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22072 Richard Sandiford <rdsandiford@googlemail.com>
22073
22074 PR middle-end/50325
22075 PR middle-end/51192
22076 * optabs.h (simplify_expand_binop): Declare.
22077 * optabs.c (simplify_expand_binop): Make global.
22078 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
22079 endian targets if the source cannot be exactly covered by word
22080 mode chunks.
22081
ee3d2ecd
JJ
220822012-01-17 Jakub Jelinek <jakub@redhat.com>
22083
22084 PR bootstrap/51872
22085 * hard-reg-set.h (struct hard_reg_set_container): New type.
22086 * target.h (struct hard_reg_set_container): Forward declare.
22087 * target.def (set_up_by_prologue): New target hook.
22088 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
22089 * doc/tm.texi: Regenerated.
22090 * function.c (thread_prologue_and_epilogue_insns): Change
22091 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
22092 Call targetm.set_up_by_prologue on it.
22093 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
22094 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
22095
be61ce52
NC
220962012-01-17 Nick Clifton <nickc@redhat.com>
22097
22098 * config/rx/rx.c (rx_can_use_simple_return): New function.
22099 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
22100 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
22101
e831c1e8
RG
221022012-01-17 Richard Guenther <rguenther@suse.de>
22103
22104 PR middle-end/51782
22105 * expr.c (expand_assignment): Take address-space information
22106 from the address operand of MEM_REF and TARGET_MEM_REF.
22107 (expand_expr_real_1): Likewise.
22108
67463efb
AK
221092012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22110
22111 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
22112 reload dump is requested.
22113
59cbe98e
AH
221142012-01-17 Aldy Hernandez <aldyh@redhat.com>
22115
22116 PR other/51165
22117 * trans-mem.c (requires_barrier): Call may_be_aliased.
22118
e6fa9204
JJ
221192012-01-17 Jakub Jelinek <jakub@redhat.com>
22120
22121 PR tree-optimization/51877
22122 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
22123 call arguments and fndecls compare equal, instead return false if they
22124 don't. Return true only if lhs1 and lhs2 are either both NULL, or
22125 both SSA_NAMEs that are valueized the same, or they satisfy
22126 operand_equal_p.
22127
26923657
RO
221282012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22129
22130 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
22131 Solaris 11+.
22132 * configure: Regenerate.
22133
c53153e7
JH
221342012-01-16 Jan Hubicka <jh@suse.cz>
22135
22136 PR c/12245
22137 PR c++/14179
22138 * convert.c (convert_to_integer): Use fold_convert for
22139 converting an INTEGER_CST to integer type.
22140
7aeb037b
JM
221412012-01-16 Jason Merrill <jason@redhat.com>
22142
22143 PR c++/14179
22144 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
22145
90dda0e9
JJ
221462012-01-16 Jakub Jelinek <jakub@redhat.com>
22147
00fbd5c8
JJ
22148 PR bootstrap/51860
22149 * config/s390/s390.c (s390_chunkify_start): Don't skip
22150 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
22151 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
22152 If insn is followed by NOTE_INSN_VAR_LOCATION or
22153 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
22154 Don't use location of note insns.
22155
90dda0e9
JJ
22156 PR tree-optimization/51865
22157 * tree-inline.c (tree_function_versioning): Call remap_decl
22158 on DECL_RESULT whenever it has VOID_TYPE_P type.
22159
62835cee
RS
221602012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
22161
22162 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
22163 for calls to locally-binding MIPS16 functions if only the return
22164 type uses float regs.
22165
ddaf8125
RS
221662012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
22167 Richard Sandiford <rdsandiford@googlemail.com>
22168
22169 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
22170 (SYMBOL_32_HIGH): Likewise.
22171 (mips_output_tls_reloc_directive): Declare.
22172 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
22173 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
22174 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
22175 (mips_lo_relocs, mips_hi_relocs): Make extern.
22176 (mips16_stub_function): Move up file.
22177 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
22178 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
22179 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
5752c591
UB
22180 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
22181 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
ddaf8125
RS
22182 (mips_get_tp): Add MIPS16 support.
22183 (mips_legitimize_tls_address): Remove MIPS16 sorry().
22184 Generalize DTPREL and TPREL handling.
22185 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
22186 Add MIPS16 TLS support.
22187 (mips_output_tls_reloc_directive): New function.
22188 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
22189 * config/mips/predicates.md (symbolic_operand_with_high)
22190 (tls_reloc_operand): New predicates.
22191 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
22192 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
22193 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
5752c591 22194 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
ddaf8125
RS
22195 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
22196 (*tls_get_tp_mips16_call_<mode>): Likewise.
22197
bf63ef6c
UB
221982012-01-15 Uros Bizjak <ubizjak@gmail.com>
22199
22200 PR rtl-optimization/51821
22201 * recog.c (peep2_find_free_register): Determine clobbered registers
22202 from insn pattern.
22203
cfbaed3b
DC
222042012-01-14 Denis Chertykov <chertykov@gmail.com>
22205
22206 PR target/50925
22207 * config/avr/avr-protos.h: Revert change of 2012-01-09.
22208 * config/avr/avr.c: Likewise.
22209 * config/avr/avr.h: Likewise.
22210
12448f77
ILT
222112012-01-13 Ian Lance Taylor <iant@google.com>
22212
22213 PR c++/50012
22214 * tree.h (TYPE_QUALS): Add cast to int.
22215 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
22216
9ab6f957
ILT
222172012-01-13 Ian Lance Taylor <iant@google.com>
22218
22219 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
22220 comparing param_index to VEC_length result.
22221
8554df86
SB
222222012-01-13 Steven Bosscher <steven@gcc.gnu.org>
22223
22224 * c-decl.c: Do not include tree-mudflap.h
22225 * tree-optimize.c: Likewise.
22226 * Makefile.in: Update dependencies.
22227
aabb90e5
RG
222282012-01-13 Richard Guenther <rguenther@suse.de>
22229
22230 PR middle-end/8081
22231 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
22232 variable-sized result always use RSO.
22233
639d4bb8
DD
222342012-01-12 DJ Delorie <dj@redhat.com>
22235
22236 * cfgexpand.c (convert_debug_memory_address): Allow any valid
22237 pointer type, not just the default pointer type.
22238
105b876e
RH
222392012-01-09 Richard Henderson <rth@redhat.com>
22240 Denis Chertykov <chertykov@gmail.com>
22241
22242 PR target/50925
22243 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
22244 * config/avr/avr.c (avr_can_eliminate): Simplify.
22245 (avr_initial_elimination_offset): Likewise.
22246 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
22247 (expand_epilogue): Likewise.
22248 (avr_legitimize_address): Gut.
22249 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
22250 (avr_hard_regno_nregs): New.
22251 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
22252 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
22253 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
22254 add soft frame pointer.
22255 (CALL_USED_REGISTERS): Likewise.
22256 (REG_CLASS_CONTENTS): Likewise.
22257 (REGISTER_NAMES): Likewise.
22258 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
22259 (HARD_FRAME_POINTER_REGNUM): New.
22260 (FRAME_POINTER_REGNUM): Use soft frame pointer.
22261 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
22262 remove the HARD_FRAME_POINTER self-elimination.
22263
458652d1 222642012-01-12 Georg-Johann Lay <avr@gjlay.de>
ab8c5093
GJL
22265
22266 PR target/51756
22267 * config/avr/avr.c (avr_encode_section_info): Test for absence of
22268 DECL_EXTERNAL when checking for initializers of progmem variables.
22269
82db3d43
IR
222702012-01-12 Ira Rosen <irar@il.ibm.com>
22271
22272 PR tree-optimization/51799
22273 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
22274 that the last operation is a type demotion.
22275
64668e68
UB
222762012-01-12 Uros Bizjak <ubizjak@gmail.com>
22277
22278 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
22279 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
22280
319638ed
JJ
222812012-01-11 Jakub Jelinek <jakub@redhat.com>
22282
22283 PR bootstrap/51796
22284 * combine.c (distribute_notes): If i3 is a noreturn call,
22285 allow old_size to be equal to args_size and make sure the
22286 noreturn call gets REG_ARGS_SIZE note.
22287 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
22288 on noreturn calls even when the delta is 0.
22289
8f961b22
NS
222902012-01-11 Nathan Sidwell <nathan@acm.org>
22291
22292 * gcov.c (STRING_SIZE): Remove.
22293 (generate_results): Erase annotations for source files with no
22294 coverage information.
22295 (read_line): New.
22296 (output_lines): Use it.
22297
3ad065ef
EB
222982012-01-11 Eric Botcazou <ebotcazou@adacore.com>
22299
22300 * gimple.h (gimplify_body): Remove first argument.
22301 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
22302 pointer set here, instead just pass DATA to walk_tree.
22303 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
22304 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
22305 (unvisit_body): Likewise, but with unmark_visited.
22306 (gimplify_body): Remove BODY_P argument and adjust.
22307 (gimplify_function_tree): Adjust call to gimplify_body.
22308 * omp-low.c (finalize_task_copyfn): Likewise.
22309
1a2c27e9
EB
223102012-01-11 Eric Botcazou <ebotcazou@adacore.com>
22311
22312 * tree.h (build_function_decl_skip_args): Add boolean parameter.
22313 (build_function_type_skip_args): Delete.
22314 * tree.c (build_function_type_skip_args): Make static and add
22315 SKIP_RETURN parameter. Fix thinko in the handling of variants.
22316 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
22317 pass it to build_function_type_skip_args.
22318 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
22319 (tree_function_versioning): Likewise.
22320 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
22321 build_function_decl_skip_args.
22322 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
22323 and pass it to build_function_decl_skip_args/tree_function_versioning.
22324 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
22325 * ipa-inline-transform.c (save_inline_function_body): Likewise.
22326 * trans-mem.c (ipa_tm_create_version): Likewise.
22327 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
22328 * tree-inline.c (declare_return_variable): Remove always-true test.
22329 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
22330 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
22331 * ipa-split.c (split_function): Skip the return value for the split
22332 part if it doesn't return.
22333
b2e25729
BS
223342012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22335
22336 PR tree-optimization/49642
22337 * ipa-split.c (forbidden_dominators): New variable.
22338 (check_forbidden_calls): New function.
22339 (dominated_by_forbidden): Likewise.
22340 (consider_split): Check for forbidden dominators.
22341 (execute_split_functions): Initialize and free forbidden
22342 dominators info; call check_forbidden_calls.
22343
9150e331
MGD
223442012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
22345
22346 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
22347
1c97289f
NC
223482012-01-11 Nick Clifton <nickc@redhat.com>
22349
22350 * config/rx/rx.md (return): Define pattern.
22351
65d5c485
RG
223522012-01-11 Richard Guenther <rguenther@suse.de>
22353
22354 * doc/extend.texi (malloc attribute): Adjust according to
22355 implementation.
22356
594ec92f
AH
223572012-01-10 Aldy Hernandez <aldyh@redhat.com>
22358 Patrick Marlier <patrick.marlier@gmail.com>
22359
22360 PR middle-end/51516
22361 * trans-mem.c (get_cg_data): Traverse aliases if requested.
22362 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
22363 (ipa_tm_note_irrevocable): Same.
22364 (ipa_tm_scan_irr_block): Same.
22365 (ipa_tm_decrement_clone_counts): Same.
22366 (ipa_tm_scan_irr_function): Same.
22367 (ipa_tm_create_version_alias): Same.
22368 (ipa_tm_create_version): Same.
22369 (ipa_tm_transform_calls_redirect): Same.
22370 (ipa_tm_transform_calls): Same.
22371 (ipa_tm_transform_transaction): Same.
22372 (ipa_tm_execute): Same.
22373
aee15221
RG
223742012-01-10 Richard Guenther <rguenther@suse.de>
22375
22376 PR middle-end/51806
22377 * opts.c (common_handle_option): Handle -Werror.
22378
b339cf22
AS
223792012-01-10 Andreas Schwab <schwab@linux-m68k.org>
22380
22381 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
22382 operand number.
22383
90aa444c
JM
223842012-01-10 Jason Merrill <jason@redhat.com>
22385
22386 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
22387 information.
22388
0f24748c
RO
223892012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22390
22391 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
22392 supports R_386_TLS_GD_PLT reloc.
22393 (gcc_cv_as_ix86_tlsldmplt): Check if linker
22394 supports R_386_TLS_LDM_PLT reloc.
22395 * configure: Regenerate.
22396 * config.in: Regenerate.
22397
cba300dd
GJL
223982012-01-10 Georg-Johann Lay <avr@gjlay.de>
22399
22400 PR target/49868
22401 Extend __pgmx semantics to linearize memory.
22402 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
22403 determine if code comes inline or from libgcc.
22404 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
22405 (movmem_qi, movmem_qi): Set constraint #2 to "n".
22406 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
22407 (movmemx_qi, movmemx_hi): New insns.
22408 (xload_<mode>_libgcc): Rewrite to new insn condition.
22409 (xload_<mode>): Remove insns.
22410 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
22411 cases that don't satisfy avr_xload_libgcc_p().
22412 (avr_addr_space_convert): Allow converting in any direction.
22413 (avr_addr_space_subset_p): Return always true.
22414 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
22415 (avr_emit_movmemhi): Ditto.
22416 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
22417 (avr_out_movmem): Ditto.
22418 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
22419 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
22420 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
22421 (avr_encode_section_info): Encode 'progmem' in symbol flags.
22422 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
22423
390b24dc
RG
224242012-01-10 Richard Guenther <rguenther@suse.de>
22425
22426 PR tree-optimization/50913
22427 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
22428 Require data-refs to be representable by Graphite with respect
22429 to any loop nest.
22430
f148a434
UB
224312012-01-10 Uros Bizjak <ubizjak@gmail.com>
22432
22433 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
22434 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
22435
5d1f1cd5
TV
224362012-01-10 Tom de Vries <tom@codesourcery.com>
22437
6fcebe79 22438 PR rtl-optimization/51271
5d1f1cd5
TV
22439 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
22440 handling annulled branch.
22441
b440f324
RH
224422012-01-10 Richard Henderson <rth@redhat.com>
22443
f148a434 22444 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
b440f324
RH
22445 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
22446 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
22447 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
22448 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
22449 arm_expand_vec_perm_const): New.
22450 * config/arm/arm-protos.h: Update.
22451 * config/arm/neon.md (UNSPEC_VCONCAT): New.
22452 (*neon_vswp<VDQX>): New.
22453 (neon_vcombine<VDX>): Use neon_split_vcombine.
22454 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
22455 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
22456 (vec_perm<VE>): New.
22457
18f0fe6b
RH
224582012-01-10 Richard Henderson <rth@redhat.com>
22459
22460 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
22461 use it if reload_completed.
22462 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
22463 arm_output_asm_insn, arm_process_output_memory_barrier,
22464 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
22465 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
22466 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
22467 arm_process_output_sync_insn, arm_output_sync_insn,
22468 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
22469 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
22470 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
22471 (emit_unlikely_jump): New.
22472 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
22473 (arm_split_atomic_op): New.
22474 * config/arm/arm-protos.h: Update.
22475 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
22476 (struct arm_sync_generator): Remove.
22477 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
22478 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
22479 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
22480 (VUNSPEC_LL, VUNSPEC_SC): New.
22481 (sync_result, sync_memory, sync_required_value, sync_new_value,
22482 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
22483 (attr length): Don't use arm_sync_loop_insns.
22484 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
22485 (movsfcc, movdfcc): Likewise.
22486 * config/arm/constraints.md (Ua): New.
22487 * config/arm/prediates.md (mem_noofs_operand): New.
22488 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
22489 (sync_clobber, sync_t2_reqd): Remove.
22490 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
22491 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
22492 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
22493 (arm_sync_compare_and_swap<SIDI>): Remove.
22494 (arm_sync_compare_and_swap<NARROW>): Remove.
22495 (arm_sync_lock_test_and_set<SIDI>): Remove.
22496 (arm_sync_lock_test_and_set<NARROW>): Remove.
22497 (arm_sync_new_<syncop><SIDI>): Remove.
22498 (arm_sync_new_<syncop><NARROW>): Remove.
22499 (arm_sync_new_nand<SIDI>): Remove.
22500 (arm_sync_new_nand<NARROW>): Remove.
22501 (arm_sync_old_<syncop><SIDI>): Remove.
22502 (arm_sync_old_<syncop><NARROW>): Remove.
22503 (arm_sync_old_nand<SIDI>): Remove.
22504 (arm_sync_old_nand<NARROW>): Remove.
22505 (*memory_barrier): Merge arm_output_memory_barrier.
22506 (atomic_compare_and_swap<QHSD>): New.
22507 (atomic_compare_and_swap<NARROW>_1): New.
22508 (atomic_compare_and_swap<SIDI>_1): New.
22509 (atomic_exchange<QHSD>): New.
22510 (cas_cmp_operand, cas_cmp_str): New.
22511 (atomic_op_operand, atomic_op_str): New.
22512 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
22513 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
22514 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
22515 (arm_load_exclusive<NARROW>): New.
22516 (arm_load_exclusivesi, arm_load_exclusivedi): New.
22517 (arm_store_exclusive<QHSD>): New.
22518
225192012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
df5a9a7c
MM
22520
22521 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
22522 reload patterns if -mvsx-scalar-memory.
22523
22524 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
22525 generated, even -mno-vsx-scalar-double was used.
22526 (vsx_xscvdpsp_scalar): Likewise.
22527 (vsx_xscvspdp_scalar2): Likewise.
22528
243b92d1
TV
225292012-01-09 Tom de Vries <tom@codesourcery.com>
22530 Andrew Pinski <apinski@cavium.com>
22531
6fcebe79 22532 PR debug/51471
f148a434
UB
22533 * reorg.c (fill_slots_from_thread): Don't speculate
22534 frame-related insns.
243b92d1 22535
ef2be249
RS
225362012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
22537
22538 * sched-int.h (bb_note): Move to...
22539 * basic-block.h: ...here.
22540 * haifa-sched.c (bb_note): Move to...
22541 * cfgrtl.c: ...here.
22542 * function.c (next_block_for_reg): New function.
22543 (move_insn_for_shrink_wrap): Likewise.
22544 (prepare_shrink_wrap): Rewrite to use the above.
22545
345ae177
AH
225462012-01-09 Aldy Hernandez <aldyh@redhat.com>
22547
22548 * gimple.c (is_gimple_non_addressable): Remove.
22549 * gimple.h: Remove is_gimple_non_addressable.
22550 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
22551 is_gimple_non_addressable.
22552 * trans-mem.c (expand_assign_tm): Same.
22553
06468229
RG
225542012-01-09 Richard Guenther <rguenther@suse.de>
22555
22556 PR tree-optimization/51775
22557 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
22558 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
22559
12aa62e9
MGD
225602012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
22561
22562 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
22563 tuning parameters.
22564 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
22565
fdff9f3d
RB
225662012-01-09 Richard Guenther <rguenther@suse.de>
22567
22568 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
22569
d028561e
JH
225702012-01-08 Jan Hubicka <jh@suse.cz>
22571
22572 PR tree-optimize/51680
fdff9f3d
RB
22573 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
22574 on when known_vals needs to be computed; cleanup.
d028561e 22575
4c8836c6
JH
225762012-01-08 Jan Hubicka <jh@suse.cz>
22577
22578 PR tree-optimize/51694
22579 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
22580
e478624f
JW
225812012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
22582
22583 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
22584 for -std=c++98 and -std=c++11 too.
22585
b78384e0
CLT
225862012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
22587
22588 * cfgloop.c (cancel_loop): Add free() of bbs array.
22589
f45b2a8a
JH
225902012-01-07 Jan Hubicka <jh@suse.cz>
22591
22592 PR tree-optimization/51600
22593 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
22594 that benefits small functions.
22595
225962012-01-07 Jan Hubicka <jh@suse.cz>
22597
22598 * ipa-inline.c (want_inline_small_function_p): Fix formating.
22599
db22a743
JH
226002012-01-07 Jan Hubicka <jh@suse.cz>
22601
22602 PR tree-optimization/51680
22603 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
22604 whose inlining reduce unit size.
22605
faead9f7
AO
226062012-01-07 Alexandre Oliva <aoliva@redhat.com>
22607
22608 PR bootstrap/51725
22609 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
22610 Add canonical node to containing_mem chain after the non-canonical
22611 one, even if there weren't any locs to propagate.
22612 (remove_useless_values): Keep only canonical values.
22613 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
22614 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
22615 canonicalize mem_chain elements that are not discarded.
22616
b71d7f85
JJ
226172012-01-06 Jakub Jelinek <jakub@redhat.com>
22618
0850f694
JJ
22619 PR target/47333
22620 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
22621 before emitting functions.
22622
b71d7f85
JJ
22623 PR gcov-profile/50127
22624 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
22625 clear_aux_for_blocks.
22626
7483eef8
AO
226272012-01-06 Alexandre Oliva <aoliva@redhat.com>
22628
22629 PR debug/51746
22630 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
22631
86d71fca
AC
226322012-01-06 Arnaud Charlet <charlet@adacore.com>
22633
22634 * c-decl.c (ext_block): Moved up.
22635 (collect_all_refs, for_each_global_decl): Take ext_block into account.
22636
17719d09
HS
226372012-01-06 Han Shen <shenhan@google.com>
22638
22639 Translate built-in include paths for sysroot.
22640 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
22641 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
22642
22643 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
22644 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
22645
22646 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
22647 control whether sysroot should be prepended to gxx include dir.
22648
22649 * configure: Regenerate.
22650
b0c99997
TR
226512012-01-06 Torvald Riegel <triegel@redhat.com>
22652
22653 PR rtl-optimization/51771
f148a434 22654 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
b0c99997
TR
22655 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
22656
c3e686a3
EB
226572012-01-05 Eric Botcazou <ebotcazou@adacore.com>
22658
22659 PR tree-optimization/51315
22660 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
22661 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
22662
2d130b31
UB
226632012-01-05 Uros Bizjak <ubizjak@gmail.com>
22664
22665 PR target/51681
22666 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
22667 for shrp pattern. Correctly handle and fixup shift variable.
22668 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
22669
f8f75b16
JJ
226702012-01-05 Jakub Jelinek <jakub@redhat.com>
22671
22672 PR debug/51762
22673 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
22674 note when !ACCUMULATE_OUTGOING_ARGS.
22675
629c2cca
EB
226762012-01-05 Eric Botcazou <ebotcazou@adacore.com>
22677
22678 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
22679 condition.
22680 (extract_range_from_unary_expr_1): Avoid useless computations.
22681
1e69d24e
JJ
226822012-01-05 Jakub Jelinek <jakub@redhat.com>
22683
a3e6a37b
JJ
22684 PR rtl-optimization/51767
22685 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
22686 of jump_block and add an extra edge for degenerated asm gotos.
22687
36363ebb
JJ
22688 PR middle-end/51768
22689 * stmt.c (check_unique_operand_names): Don't ICE during error
22690 reporting if i is from labels chain.
22691
1e69d24e
JJ
22692 PR middle-end/44777
22693 * profile.c (branch_prob): Split bbs that have exit edge
22694 and need a fake entry edge too.
22695
56494762
JH
226962012-01-05 Jan Hubicka <jh@suse.cz>
22697
22698 PR middle-end/49710
22699 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
22700 unlooping loops.
22701
10d12a3e
RG
227022012-01-05 Richard Guenther <rguenther@suse.de>
22703
22704 PR lto/50490
22705 * tree-streamer-out.c (write_ts_optimization): New function.
22706 (streamer_write_tree_body): Call it.
22707 * tree-streamer-in.c (lto_input_ts_optimization): New function.
22708 (streamer_read_tree_body): Call it.
22709 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
22710
32be32af
JJ
227112012-01-05 Jakub Jelinek <jakub@redhat.com>
22712
22713 PR middle-end/51761
2d130b31 22714 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
32be32af
JJ
22715 * gimplify.c (gimplify_cleanup_point_expr): Save and set
22716 in_cleanup_point_expr before gimplify_stmt call and restore it
22717 afterwards.
22718 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
22719 in_cleanup_point_expr is false.
22720
5720c0dc
RG
227212012-01-05 Richard Guenther <rguenther@suse.de>
22722
22723 PR middle-end/51764
22724 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
22725 to c.opt.
22726 * toplev.c (process_options): Reject combining mudflap and LTO.
22727 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
22728
6ad024b4
RG
227292012-01-05 Richard Guenther <rguenther@suse.de>
22730
22731 PR tree-optimization/51760
22732 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
22733 not VARYING.
22734 (bit_value_unop): Handle UNDEFINED operands.
22735 (bit_value_binop): Likewise.
22736
543a341c
GJL
227372012-01-05 Georg-Johann Lay <avr@gjlay.de>
22738
22739 * config/avr/avr.c (avr_replace_prefix): Remove.
22740 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
22741 (avr_asm_function_rodata_section): Ditto.
22742 (avr_asm_select_section): Ditto.
22743
6bfd2688
MS
227442012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22745
22746 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
22747 insertion.
22748
cbd65133
JJ
227492012-01-05 Jakub Jelinek <jakub@redhat.com>
22750
bfeb0869
JJ
22751 PR bootstrap/51648
22752 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
22753 calls that have any non-fake successor edges.
22754
cbd65133
JJ
22755 PR debug/51746
22756 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
22757
8594273a
EB
227582012-01-04 Eric Botcazou <ebotcazou@adacore.com>
22759
22760 PR tree-optimization/51624
22761 * tree-sra.c (build_ref_for_model): When replicating a chain of
22762 COMPONENT_REFs, stop as soon as the offset would become negative.
22763
5dc28f42
JJ
227642012-01-04 Jakub Jelinek <jakub@redhat.com>
22765
22766 PR debug/51695
22767 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
22768 in .debug_loc on the floor.
22769
03a9ba1e
AP
227702012-01-04 Andrew Pinski <apinski@cavium.com>
22771
22772 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
22773
770da00a
AP
227742012-01-04 Andrew Pinski <apinski@cavium.com>
22775 Adam Nemet <anemet@caviumnetworks.com>
22776
22777 * config/mips/mips.md (size): Add SI and DI.
22778 (SIZE): New mode attribute.
22779 (U): New code attribute.
22780 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
22781 (mips_lbux_<mode>): Delete.
22782 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
22783 (mips_lhx): Use gen_mips_lhx_extsi.
22784 (mips_lhx_<mode>): Delete.
22785 (mips_lwx): Delete.
22786 (mips_l<size>x): New expand.
22787 (mips_lwx_<mode>): Delete.
22788 (mips_l<GPR:size>x_<P:mode>): New pattern.
22789 (*mips_lw<u>x_<P:mode>_ext): Likewise.
22790 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
22791 * config/mips/mips.c (mips_lx_address_p): New function.
22792 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
22793 (dsp64): New availability predicate.
22794 (mips_builtins): Add an entry for __builtin_mips_ldx.
22795 * config/mips/mips.h (ISA_HAS_LBX): New define.
22796 (ISA_HAS_LBUX): Likewise.
22797 (ISA_HAS_LHX): Likewise.
22798 (ISA_HAS_LHUX): Likewise.
22799 (ISA_HAS_LWX): Likewise.
22800 (ISA_HAS_LWUX): Likewise.
22801 (ISA_HAS_LDX): Likewise.
22802 * doc/extend.texi (__builtin_mips_ldx): Document.
22803
e2b30a44
TG
228042012-01-04 Tristan Gingold <gingold@adacore.com>
22805
22806 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
22807 when long pointers are used.
22808 * config.build (*-*-*vms*): Handle all OpenVMS targets.
22809 (alpha64-dec-*vms*, alpha*-dec-*vms*)
22810 (ia64-hp-*vms*): Remove.
22811 * config/vms/xm-vms64.h: Delete.
22812
713b8dfb
AH
228132012-01-04 Aldy Hernandez <aldyh@redhat.com>
22814
22815 PR middle-end/51472
22816 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
22817
7ba65723
AH
228182012-01-04 Aldy Hernandez <aldyh@redhat.com>
22819
b6aa8c33 22820 * opts.c (finish_options): Remove duplicate sorry.
7ba65723 22821
3a54c456
AH
228222012-01-04 Aldy Hernandez <aldyh@redhat.com>
22823
22824 PR middle-end/51696
22825 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
22826 correctly.
22827
f5a3d840
RG
228282012-01-04 Richard Guenther <rguenther@suse.de>
22829
22830 PR middle-end/51750
22831 * tree.c (size_low_cst): New function.
22832 * tree.h (size_low_cst): Declare.
22833 * fold-const.c (fold_comparison): Use it to extract the low
22834 part of the POINTER_PLUS_EXPR offset.
22835
299c4b5f
GJL
228362012-01-04 Georg-Johann Lay <avr@gjlay.de>
22837
22838 Fix clearing ZERO_REG
22839 * config/avr/avr.md (cc): Add alternative "ldi".
22840 (movqi_insn): Use it in cc attribute.
22841 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
22842 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
22843 (output_reload_insisf): Use ZERO_REG to pre-clear register.
22844
925b0ed8
AK
228452012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22846
22847 * configure: Regenerate.
22848
b4cf8c9d
RG
228492012-01-04 Richard Guenther <rguenther@suse.de>
22850
22851 PR tree-optimization/49651
22852 * tree-ssa-structalias.c (type_can_have_subvars): New function.
22853 (var_can_have_subvars): Use it.
2d130b31 22854 (get_constraint_for_1): Only consider subfields if there can be any.
b4cf8c9d 22855
c067f6cf
JJ
228562012-01-03 Jakub Jelinek <jakub@redhat.com>
22857
e30afafb 22858 PR bootstrap/51725
2d130b31
UB
22859 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
22860 to its new canonical_cselib_val and the cselib_val was in
22861 first_containing_mem chain, but the canonical_cselib_val was not,
22862 add the latter into the chain.
e30afafb
JJ
22863 (cselib_invalidate_mem): Compare canonical_cselib_val of
22864 addr_list chain elt with v.
22865
c067f6cf
JJ
22866 PR pch/51722
22867 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
22868 dwarf2out_undef): Allocate e.info using ggc_strdup instead
22869 of xstrdup.
22870 (output_macinfo_op): Don't ggc_strdup fd->filename.
22871 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
22872 then ggc_strdup it. Don't free inc->info or cur->info.
22873 (output_macinfo): Don't free ref->info or file->info.
22874
5d2eb24b
IR
228752012-01-03 Ira Rosen <irar@il.ibm.com>
22876
22877 PR tree-optimization/51269
22878 * tree-vect-loop-manip.c (set_prologue_iterations): Make
22879 first_niters a pointer.
22880 (slpeel_tree_peel_loop_to_edge): Likewise.
22881 (vect_do_peeling_for_loop_bound): Update call to
22882 slpeel_tree_peel_loop_to_edge.
22883 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
22884 here. Remove it from the parameters list.
22885 (vect_do_peeling_for_alignment): Update calls and compute
22886 wide_prolog_niters.
22887
c3e85659
RG
228882012-01-03 Richard Guenther <rguenther@suse.de>
22889
22890 PR tree-optimization/51070
22891 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
22892 Properly handle calls.
22893
f1749ec1
RG
228942012-01-03 Richard Guenther <rguenther@suse.de>
22895
22896 PR tree-optimization/51692
22897 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
22898 the LHS of allocation stmts.
22899
75291c57
OH
229002012-01-03 Olivier Hainque <hainque@adacore.com>
22901
22902 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
22903
6588d711
OH
229042012-01-03 Olivier Hainque <hainque@adacore.com>
22905
22906 * collect2.c (main): In AIX specific computations for vector
22907 insertions, use CONST_CAST2 to cast from char ** to const char **.
22908
f3321fd7
RG
229092012-01-03 Richard Guenther <rguenther@suse.de>
22910
22911 PR debug/51650
22912 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
22913 the context of a limbo DIE when it does not already exist.
22914
a9730200
JJ
229152012-01-03 Jakub Jelinek <jakub@redhat.com>
22916
22917 PR tree-optimization/51719
22918 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
22919 but direct call is, clear direct call's lhs and don't add fallthrough
22920 edge from dcall_bb to join_bb and PHIs.
22921
be5de7a1
AK
229222012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22923
22924 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
22925 the instructions emitted by the pattern.
22926 ("*TDC_insn_<mode>"): Add comment.
22927
8b3c2951
RG
229282012-01-03 Richard Guenther <rguenther@suse.de>
22929
22930 PR middle-end/51730
22931 * fold-const.c (fold_comparison): Properly canonicalize
22932 tree offset and HOST_WIDE_INT bit position.
22933
96fda42c
UB
229342012-01-02 Uros Bizjak <ubizjak@gmail.com>
22935
22936 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
22937 operands for extzv pattern.
22938
a4f436ff
JJ
229392012-01-02 Jakub Jelinek <jakub@redhat.com>
22940
22941 PR bootstrap/51725
22942 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
22943 on mem_elt first.
22944
842322d3
SL
229452012-01-02 Sandra Loosemore <sandra@codesourcery.com>
22946
22947 * doc/invoke.texi (-flto and related options): Copy-edit.
22948
21e8e84d
RS
229492012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22950
96fda42c 22951 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
21e8e84d 22952
06046046
JJ
229532012-01-02 Jakub Jelinek <jakub@redhat.com>
22954
22955 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
22956 New patterns.
22957
0d8f5d62
RS
229582012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22959
22960 * expr.h (move_by_pieces_ninsns): Declare.
22961 * expr.c (move_by_pieces_ninsns): Make external.
22962 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
22963 (mips_store_by_pieces_p): Likewise.
22964 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
22965 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
22966 * config/mips/mips.c (mips_move_by_pieces_p): New function.
22967 (mips_store_by_pieces_p): Likewise.
22968
9f929ce6
JJ
229692012-01-02 Jakub Jelinek <jakub@redhat.com>
22970
22971 * passes.c (register_one_dump_file): Free full_name.
22972
96fda42c 22973 * reload1.c (reload): Don't allocate reg_max_ref_width here.
9f929ce6
JJ
22974 (calculate_elim_costs_all_insns): Free offsets_at and
22975 offsets_known_at at the end and clear the pointers.
22976
ce23293b
GJL
229772012-01-02 Georg-Johann Lay <avr@gjlay.de>
22978
22979 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
22980 this option introduced in r180739.
22981
884f56d1
GJL
229822012-01-02 Georg-Johann Lay <avr@gjlay.de>
22983
22984 PR target/51345
22985 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
22986 (tmake_file target=avr): Add avr/t-multilib.
22987
22988 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
22989 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
22990 * config/avr/genmultilib.awk: New file.
22991 * config/avr/t-multilib: New auto-generated file.
22992 * config/avr/multilib.h: New auto-generated file.
22993 * config/avr/t-avr (AVR_MCUS): New variable.
22994 (genopt.sh): Use it.
22995 (s-mlib): Depend on t-multilib.
22996 (t-multilib, multilib.h): New dependencies.
22997 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
22998 (MULTILIB_OPTIONS): Remove.
22999 (MULTILIB_MATCHES): Remove.
23000 (MULTILIB_DIRNAMES): Remove.
23001 (MULTILIB_EXCEPTIONS): Remove:
23002 * config/avr/genopt.sh: Don't use hard coded file name;
23003 pass AVR_MCUS from t-avr instead.
23004
9ecd3a64
GJL
230052012-01-02 Georg-Johann Lay <avr@gjlay.de>
23006
23007 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
23008
8c57e547
GJL
230092012-01-02 Georg-Johann Lay <avr@gjlay.de>
23010
23011 Implement light-weight DImode support.
23012 * config/avr/avr-dimode.md: New file.
23013 * config/avr/avr.md: Include it.
23014 (adjust_len): Add plus64, compare64.
23015 (HIDI): Remove code iterator.
23016 (code_stdname): New code attribute.
23017 (rotx, rotsmode): Remove DI.
23018 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
23019 as code iterator.
23020 * config/avr/avr-protos.h (avr_have_dimode): New.
23021 (avr_out_plus64, avr_out_compare64): New.
23022 * config/avr/avr.c (avr_out_compare): Handle DImode.
23023 (avr_have_dimode): New variable definition and initialization.
23024 (avr_out_compare64, avr_out_plus64): New functions.
23025 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
23026 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
23027 (avr_compare_pattern): Skip DImode comparisons.
23028
8b61e863
RE
230292012-01-02 Revital Eres <revital.eres@linaro.org>
23030
23031 * ddg.c (def_has_ccmode_p): New function.
23032 (add_cross_iteration_register_deps,
23033 create_ddg_dep_from_intra_loop_link): Call it.
23034
ba768e18
RG
230352012-01-02 Richard Guenther <rguenther@suse.de>
23036
23037 PR other/51679
23038 * invoke.texi (fassociative-math): Remove spurious paranthesis.
23039
66f1b195
JJ
230402012-01-01 Jakub Jelinek <jakub@redhat.com>
23041
23042 * gcc.c (process_command): Update copyright notice dates.
23043 * gcov.c (print_version): Likewise.
23044 * gcov-dump.c (print_version): Likewise.
23045 * mips-tfile.c (main): Likewise.
23046 * mips-tdump.c (main): Likewise.
23047
f2c74cc4
IR
230482012-01-01 Ira Rosen <irar@il.ibm.com>
23049
23050 PR tree-optimization/51704
23051 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
96fda42c 23052 a use is inside the basic block or loop before accessing its vect info.
f2c74cc4 23053
06f1716b
JH
230542012-01-01 Jan Hubicka <jhjh@suse.cz>
23055
23056 PR rtl-optimization/51069
23057 * cfgloopmanip.c (remove_path): Removing path making irreducible
23058 region unconditional makes BB part of the region.
23059
45a5b21a
JJ
230602012-01-01 Jakub Jelinek <jakub@redhat.com>
23061
23062 PR tree-optimization/51683
23063 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
23064 calls with side-effects.
23065 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
ad41bd84 23066\f
a7f45047 23067Copyright (C) 2012 Free Software Foundation, Inc.
ad41bd84
JM
23068
23069Copying and distribution of this file, with or without modification,
23070are permitted in any medium without royalty provided the copyright
23071notice and this notice are preserved.