tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants to vector element...
[gcc.git] / gcc / ChangeLog
1 2011-10-24 Richard Guenther <rguenther@suse.de>
2
3 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
4 to vector element type.
5 (vectorizable_assignment): Bail out for non-mode-precision operations.
6 (vectorizable_shift): Likewise.
7 (vectorizable_operation): Likewise.
8 (vectorizable_type_demotion): Likewise.
9 (vectorizable_type_promotion): Likewise.
10 (vectorizable_store): Handle non-mode-precision stores.
11 (vectorizable_load): Handle non-mode-precision loads.
12 (get_vectype_for_scalar_type_and_size): Return a vector type
13 for non-mode-precision integers.
14 * tree-vect-loop.c (vectorizable_reduction): Bail out for
15 non-mode-precision reductions.
16
17 2011-10-24 Julian Brown <julian@codesourcery.com>
18
19 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
20 setting CC_REVERSED for FP comparisons.
21
22 2011-10-24 Richard Guenther <rguenther@suse.de>
23
24 PR tree-optimization/50838
25 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
26 a MEM_REF base if we change it.
27
28 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
29
30 PR bootstrap/50836
31 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
32
33 PR rtl-optimization/50833
34 * function.c (thread_prologue_and_epilogue_insns): Expect the
35 return insn optimization only if optimize.
36
37 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
38
39 * config/avr/avr.c: Break long lines.
40 Define target hooks on the fly if applicable.
41 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
42 overridden later.
43 (targetm): Move definition to end of file.
44 (avr_can_eliminate): Make static on the fly.
45 (avr_frame_pointer_required_p): Ditto.
46 (avr_hard_regno_scratch_ok): Ditto.
47 (avr_builtin_setjmp_frame_value): Make static on the fly.
48 Indent according to coding rules.
49 (avr_case_values_threshold): Ditto.
50 (avr_attribute_table): Move down.
51
52 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
53
54 PR tree-optimization/50730
55 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
56 analysis if encountered unsupported data-ref.
57
58 2011-10-23 David S. Miller <davem@davemloft.net>
59
60 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
61 cpu adjustment.
62 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
63 append -mcpu=v9 when -mv8plus is given.
64
65 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
66 between float and non-float regs when VIS3.
67 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
68 use a restore when the source is a float register.
69 (sparc_split_regreg_legitimate): When VIS3 allow moves between
70 float and integer regs.
71 (sparc_register_move_cost): Adjust to account for VIS3 moves.
72 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
73 integer reg to a class containing EXTRA_FP_REGS, constrain to
74 FP_REGS.
75 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
76 float and integer regs we sometimes need a FP_REGS class
77 intermediate move to satisfy the reload. When this happens
78 specify an extra cost of 2.
79 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3
80 guard.
81 (*movdi_insn_sp32_v9): Likewise.
82 (*movdi_insn_sp64): Likewise.
83 (*movsf_insn): Likewise.
84 (*movdf_insn_sp32_v9): Likewise.
85 (*movdf_insn_sp64): Likewise.
86 (*zero_extendsidi2_insn_sp64): Likewise.
87 (*sign_extendsidi2_insn): Likewise.
88 (*movsi_insn_vis3): New insn.
89 (*movdi_insn_sp32_v9_vis3): New insn.
90 (*movdi_insn_sp64_vis3): New insn.
91 (*movsf_insn_vis3): New insn.
92 (*movdf_insn_sp32_v9_vis3): New insn.
93 (*movdf_insn_sp64_vis3): New insn.
94 (*zero_extendsidi2_insn_sp64_vis3): New insn.
95 (*sign_extendsidi2_insn_vis3): New insn.
96 (TFmode reg/reg split): Make sure both REG operands are float.
97 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
98 easy constant to integer reg alternatives.
99 (*mov<VM64:mode>_insn_sp64): Likewise.
100 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
101 (*mov<VM32:mode>_insn_vis3): New insn.
102 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
103 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
104 (VM64 reg<-->reg split): New spliiter for 32-bit.
105
106 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New
107 function.
108 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
109 Declare it.
110 * config/sparc/sparc.md (DImode reg/reg split): Use it.
111 (DFmode reg/reg split): Likewise.
112
113 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
114 generating fzero and fone instructions.
115 (DImode const_int --> reg splitter): Only trigger for integer regs.
116
117 * config/sparc/predicates.md (input_operand): Disallow vector
118 constants other than 0 and -1.
119 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
120 NO_REGS for vector constants other than 0 and -1.
121
122 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
123 SPARC_INT_REG_P): Define.
124 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
125 (REGNO_OK_FOR_INDEX_P): Likewise.
126 * config/sparc/sparc.c (gen_df_reg): Likewise.
127 (eligible_for_return_delay): Likewise.
128 (eligible_for_sibcall_delay): Likewise.
129 (sparc_legitimate_address_p): Likewise.
130 (emit_save_or_restore_regs): Likewise.
131 (registers_ok_for_ldd_peep): Likewise.
132 * config/spac/sparc.md (DI mode splitters): Likewise.
133 (SF mode const splitters): Likewise.
134 (DF mode splitters): Likewise.
135 (32-bit DI mode logical op splitters): Likewise.
136
137 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
138
139 PR c++/50841
140 Revert:
141 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
142
143 PR c++/50810
144 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
145
146 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
147
148 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
149 (VI248_256): Remove mode iterator.
150 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
151 instead of gen_avx2_lshlv4di3.
152 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
153 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
154
155 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
156
157 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
158 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
159 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
160 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
161 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
162 iterator. Use sseintprefix mode attribute.
163 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
164 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
165 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
166 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
167 iterator. Use sseintprefix mode attribute.
168 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
169 attributes.
170 (*avx2_gatherdi<mode>): Ditto.
171 (*avx2_gatherdi<mode>256): Ditto.
172 (VI48_AVX2): Remove mode iterator.
173 (gthrlastfp): Remove mode attribute.
174
175 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
176
177 PR c++/50810
178 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
179
180 2011-10-23 Tom de Vries <tom@codesourcery.com>
181
182 PR tree-optimization/50763
183 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored out
184 of ...
185 (same_succ_flush_bbs): Use same_succ_flush_bb.
186 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
187 release_last_vdef and delete_basic_block.
188 (unlink_virtual_phi): New function.
189 (update_vuses): Add and use vuse1_phi_args argument. Set var to
190 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that def_stmt2
191 is NULL. Use phi result as phi arg in case vuse1 or vuse2 is NULL_TREE.
192 Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code to limit
193 replacement of uses. Propagate phi argument for phis with a single
194 argument.
195 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
196 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add vuse1_phi_args
197 as argument to call to update_vuses. Call release_last_vdef,
198 same_succ_flush_bb, delete_basic_block. Update CDI_DOMINATORS info.
199 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
200 call to free_dominance_info. Only call calculate_dominance_info once.
201
202 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
203
204 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
205
206 PR tree-optimization/44683
207 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
208 we can be sure that there are no signed zeros involved.
209
210 2011-10-23 Jan Hubicka <jh@suse.cz>
211
212 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
213
214 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
215
216 PR target/50788
217 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
218 Remove (match_dup 0).
219 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
220 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
221 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
222 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
223 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
224 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
225
226 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
227
228 PR tree-optimization/50819
229 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
230 the last argument.
231 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
232 vect_analyze_data_ref_dependences.
233 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
234 the last argument. Check load-after-store dependence for unknown
235 dependencies in basic blocks.
236 (vect_analyze_data_ref_dependences): Update call to
237 vect_analyze_data_ref_dependences.
238 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
239 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
240 (vect_slp_analyze_bb_1): Update call to
241 vect_analyze_data_ref_dependences. Don't call
242 vect_bb_vectorizable_with_dependencies.
243
244 2011-10-22 David S. Miller <davem@davemloft.net>
245
246 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
247 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
248 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
249 (sparc_secondary_reload): New function.
250
251 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
252 (struct processor_costs): Move from here..
253 * config/sparc/sparc.c (struct processor_costs): To here.
254 (sparc_costs): Mark static.
255
256 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
257 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
258 Get rid of declarations.
259
260 2011-10-21 Paul Brook <paul@codesourcery.com>
261
262 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
263 c6x_asm_init_sections): New functions.
264 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
265
266 2011-10-21 Jakub Jelinek <jakub@redhat.com>
267
268 PR target/50813
269 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
270 V4DImode and V8SImode for !TARGET_AVX2.
271
272 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
273
274 PR bootstrap/50825
275 * sched-deps.c (add_dependence): If not doing predication, promote
276 REG_DEP_CONTROL to REG_DEP_ANTI.
277
278 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
279
280 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
281 instead of X to avr_legitimize_reload_address.
282 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
283 first argument's type from rtx to rtx*.
284 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
285 Pass PX to push_reload instead of &X. Change log messages for
286 better distinction.
287
288 2011-10-21 Roland Stigge <stigge@antcom.de>
289
290 PR translation/47064
291 * params.def: Fix typo "compilatoin" -> "compilation".
292
293 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
294 Kirill Yukhin <kirill.yukhin@intel.com>
295
296 PR target/50740
297 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
298 if max_level allows that.
299
300 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
301
302 * reg-notes.def (DEP_CONTROL): New.
303 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
304 not doing speculation.
305 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
306 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
307 * function.c (record_hard_reg_sets, record_hard_reg_uses,
308 record_hard_reg_uses_1): Remove; move to rtlanal.c.
309 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
310 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
311 (MUST_RECOMPUTE_SPEC_P): New macro.
312 (real_insn_for_shadow): New function.
313 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
314 toggle_cancelled_flags): New static functions.
315 (schedule_insn): Relax an assert to only check for empty hard back
316 dependencies. Skip cancelled dependencies. Call
317 check_clobbered_conditions.
318 (copy_insn_list): Remove function, renamed moved to lists.c.
319 (save_backtrack_point): Use new spelling copy_INSN_LIST.
320 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
321 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
322 (estimate_insn_tick): Ignore cancelled dependencies.
323 (haifa_speculate_insn): Move declaration.
324 (try_ready): Move code into recompute_todo_spec and call it. Tweak
325 some asserts. Ensure predicated patterns are restored if necessary.
326 Dump DEP_CONTROL flag.
327 (haifa_change_pattern): Merge with sched_change_pattern.
328 (sched_change_pattern): Remove function.
329 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
330 uses changed to simply not test NON_FLUSH_JUMP_P.
331 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
332 REG_DEP_CONTROL.
333 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
334 (reg_pending_control_uses, control_dependency_cache): New static
335 variables.
336 (sched_get_reverse_condition_uncached): New function.
337 (sd_find_dep_between): Remove pointless assert. Look in
338 control_dependency_cache.
339 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
340 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
341 and control_dependency_cache.
342 (sd_unresolve_dep): Use dep_spec_p.
343 (add_dependence): Now a wrapper around add_dependence_1, handling
344 REG_DEP_CONTROL specially.
345 (flush_pending_lists): Clear pending_jump_insns.
346 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
347 (sched_analyze_2): Unconditionally add to pending memory flushes,
348 keep previous behaviour but apply it to pending_jump_insns instead.
349 (sched_analyze_insn): Defer adding jump reg dependencies using
350 reg_pending_control_uses; add them to the control_uses list. Handle
351 pending_jump_insns and control_uses when adding dependence lists.
352 (deps_analyze_insn): Update INSN_COND_DEPS.
353 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
354 last_pending_memory_flush.
355 (init_deps): Initialize pending_jump_insns.
356 (free_deps): Free control_uses.
357 (remove_from_deps): Remove from pending_jump_insns.
358 (init_deps_global): Allocate reg_pending_control_uses).
359 (finish_deps_global): Free it.
360 (add_dependence_1): Renamed from add_dependence. Handle
361 REG_DEP_CONTROL.
362 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
363 (copy_INSN_LIST, concat_INSN_LIST): Declare.
364 * sched-int.h (struct deps_reg): Add control_uses.
365 (struct deps_desc): Add pending_jump_insns.
366 (struct _haifa_deps_insn_data): Add cond_deps.
367 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
368 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
369 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
370 (DEP_CONTROL): New macro.
371 (DEP_TYPES): Include it.
372 (HARD_DEP): Adjust definition.
373 (DEP_CANCELLED): New macro.
374 (enum SCHED_FLAGS): Add DO_PREDICATION.
375 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
376 * sched-rgn.c (concat_INSN_LIST): Remove function.
377 (deps_join): Handle pending_jump_insns.
378 (free_pending_lists): Likewise.
379 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
380 schedule.
381
382 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
383
384 PR target/50820
385 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
386 (__tablejump__): Consistently use EIND for indirect jump/call.
387 (__tablejump_elpm__): Ditto.
388
389 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
390
391 * config/c6x/c6x.md (attr "op_pattern"): New.
392 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
393 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
394 Likewise.
395 * config/c6x/c6x-mult.md: Regenerate.
396 * config/c6x/c6x.c: Include "regrename.h".
397 (unit_req_table): New typedef.
398 (unit_reqs): Use it for the declaration.
399 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
400 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
401 static functions.
402 (count_unit_reqs): New arg reqs. All callers changed. Use
403 get_unit_reqs, and don't merge here.
404 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
405 using unit_req_factor.
406 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
407 count_unit_reqs.
408 (c6x_reorg): Add reg notes problem, and call df_analyze.
409 * Makefile.in ($(out_object_file)): Depend on regrename.h.
410
411 2011-10-21 Kai Tietz <ktietz@redhat.com>
412
413 * fold-const.c (simple_operand_p_2): Handle integral
414 casts from boolean-operands.
415
416 2011-10-21 Jan Hubicka <jh@suse.cz>
417
418 * cgraph.c (dump_cgraph_node): Dump alias flag.
419 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
420 no destination.
421 (get_alias_symbol): New function.
422 (output_weakrefs): Output also weakrefs with no destinatoin.
423 (lto_output_node): Output weakref alias flag when at function boundary.
424
425 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
426
427 PR target/50809
428 * config/arm/driver-arm.c (vendors): Make static.
429
430 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
431
432 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
433 (ix86_emit_swsqrtsf): Force a into register.
434
435 2011-10-20 Mike Stump <mikestump@comcast.net>
436
437 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
438 after validate_change wipes it out.
439
440 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
441
442 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
443 before using the shufb instruction.
444
445 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
446
447 PR target/50766
448 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
449 memory operand order.
450 (bmi2_bzhi_<mode>3): Ditto.
451 (bmi2_pdep_<mode>3): Ditto.
452 (bmi2_pext_<mode>3): Ditto.
453
454 2011-10-20 Richard Henderson <rth@redhat.com>
455
456 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
457 * optabs.c (can_vec_perm_expr_p): Update to match.
458 (expand_vec_perm_expr): Likewise.
459 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
460 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
461 * doc/tm.texi.in: Likewise.
462
463 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
464
465 PR target/50572
466 * config/i386/i386.c (processor_target_table): Change Atom
467 align_loops_max_skip to 15.
468
469 2011-10-20 Richard Henderson <rth@redhat.com>
470
471 * target.def (builtin_vec_perm): Remove.
472 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
473
474 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
475 (IX86_BUILTIN_VEC_PERM_*): Remove.
476 (bdesc_args): Remove vec_perm builtins
477 (ix86_expand_builtin): Likewise.
478 (ix86_expand_vec_perm_const_1): Rename from
479 ix86_expand_vec_perm_builtin_1.
480 (extract_vec_perm_cst): Merge into...
481 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
482 ix86_vectorize_builtin_vec_perm_ok.
483 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
484
485 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
486 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
487
488 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
489 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
490
491 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
492
493 PR target/47989
494 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
495 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
496 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
497 implements vectorized single float division and vectorized sqrtf(x)
498 with reciprocal sequence with additional Newton-Raphson step with
499 -ffast-math.
500
501 2011-10-20 Dodji Seketeli <dodji@redhat.com>
502
503 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
504 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
505 it was done in ggc-page.c.
506
507 PR other/50659
508 * doc/cppopts.texi: Use @smallexample/@end smallexample in
509 documentation for -fdebug-cpp instead of @quotation/@end quotation
510 that is not supported by contrib/texi2pod.pl.
511
512 2011-10-19 Jan Hubicka <jh@suse.cz>
513
514 * ipa-inline.c (inline_small_functions): Always update all calles after
515 inlining.
516
517 2011-10-19 Jan Hubicka <jh@suse.cz>
518
519 PR bootstrap/50709
520 * ipa-inline.c (inline_small_functions): Fix checking code to not make
521 effect on fibheap stability.
522
523 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
524
525 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
526
527 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
528
529 PR target/50106
530 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
531 reg size from 1-3.
532
533 2011-10-20 Richard Guenther <rguenther@suse.de>
534
535 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
536 and rotates to the set of expensive operations.
537
538 2011-10-19 David S. Miller <davem@davemloft.net>
539
540 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
541 (sparc_emit_set_const32): Likewise.
542 (sparc_emit_set_const64_longway): Likewise.
543 (sparc_emit_set_const64): Likewise.
544 (sparc_legitimize_pic_address): Likewise.
545 (memory_ok_for_ldd): Likewise.
546
547 2011-10-20 Dehao Chen <dehao@google.com>
548
549 * profile.c (compute_branch_probabilities): Compute and dump the
550 overlap between the static estimation and the instrumentation profile.
551 (OVERLAP_BASE): New macro.
552 (compute_frequency_overlap): New function
553
554 2011-10-19 Jakub Jelinek <jakub@redhat.com>
555
556 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
557 d->op1 instead of d->op0 for the second vpshufb.
558 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
559 (ix86_expand_vec_perm_const): If mask indicates two operands are
560 needed, but both are the same and expanding them as d.op0 == d.op1
561 failed, retry with d.op0 != d.op1.
562 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
563 also for d.nelt == 32.
564
565 PR middle-end/50754
566 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
567 VEC_PERM_EXPR.
568
569 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
570
571 * regrename.h: New file.
572 * regrename.c: Include it. Also include "emit-rtl.h".
573 (struct du_head, struct du_chain, du_head_p DEF_VEC and
574 DEF_VEC_ALLOC_P): Move to regrename.h.
575 (do_replace): Remove declaration.
576 (insn_rr): New variable.
577 (cur_operand): New static variable.
578 (regrename_chain_from_id): Renamed from chain_from_id and no longer
579 static. All callers changed.
580 (record_operand_use): New static function.
581 (scan_rtx_reg): Use it.
582 (find_best_rename_reg): New function, broken out of rename_chains.
583 (rename_chains): Use it. Don't update chain regno and nregs here, ...
584 (regrename_do_replace): ... do it here instead. Renamed from
585 do_replace, and no longer static. All callers changed.
586 (regrename_analyze): No longer static. New arg bb_mask.
587 All callers changed. If bb_mask is nonzero, use it to limit the
588 number of basic blocks we analyze. If we failed to analyze a block,
589 clear insn operand data.
590 (record_out_operands): New arg insn_info. Update cur_operand if it is
591 nonnull.
592 (build_def_use): If insn_rr is nonnull, pass an insn_info to
593 record_out_operands, and update cur_operand here as well.
594 (regrename_init, regrename_finish): New functions.
595 (regrename_optimize): Use them.
596 * Makefile.in (regrename.o): Adjust dependencies.
597
598 2011-10-19 Tom de Vries <tom@codesourcery.com>
599
600 PR tree-optimization/50769
601 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
602 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
603 dummy argument .MEM to phi when increasing number of arguments of phi by
604 redirecting edges to the block with phi.
605
606 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
607
608 PR bootstrap/50777
609 * configure.ac: Save and restore CXXFLAGS around
610 gcc_AC_CHECK_DECLS uses.
611 Check for madvise() declaration with g++ if --enable-build-with-cxx.
612 * configure: Regenerate.
613 * config.in: Regenerate.
614 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
615
616 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
617
618 PR debug/49310
619 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
620 (variable_part): Replace offset with union.
621 (enum onepart_enum, onepart_enum_t): New.
622 (variable_def): Drop cur_loc_changed, add onepart.
623 (value_chain_def, const_value_chain): Remove.
624 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
625 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
626 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
627 (value_chain_pool, value_chains): Remove.
628 (dropped_values): New.
629 (struct parm_reg): Only if HAVE_window_save.
630 (vt_stack_adjustments): Don't record register arguments.
631 (dv_as_rtx): New.
632 (dv_onepart_p): Return a onepart_enum_t.
633 (onepart_pool): New.
634 (dv_pool): Remove.
635 (dv_from_rtx): New.
636 (variable_htab_free): Release onepart aux data. Reset flags.
637 (value_chain_htab_hash, value_chain_htab_eq): Remove.
638 (unshare_variable): Use onepart field. Propagate onepart aux
639 data or offset. Drop cur_loc_changed.
640 (val_store): Cope with NULL insn. Rephrase dump output. Check
641 for unsuitable locs. Add FIXME on using cselib locs.
642 (val_reset): Remove FIXME of unfounded concerns.
643 (val_resolve): Check for unsuitable locs. Add FIXME on using
644 cselib locs.
645 (variable_union): Use onepart field, adjust access to offset.
646 (NO_LOC_P): New.
647 (VALUE_CHANGED, DECL_CHANGED): Update doc.
648 (set_dv_changed): Clear NO_LOC_P when changed.
649 (find_loc_in_1pdv): Use onepart field.
650 (intersect_loc_chains): Likewise.
651 (unsuitable_loc): New.
652 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
653 (add_value_chain, add_value_chains): Remove.
654 (add_cselib_value_chains, remove_value_chain): Likewise.
655 (remove_value_chains, remove_cselib_value_chains): Likewise.
656 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
657 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
658 (variable_merge_over_cur): Likewise. Adjust access to offset.
659 Drop cur_loc_changed.
660 (variable_merge_over_src): Use onepart field.
661 (remove_duplicate_values): Likewise.
662 (variable_post_merge_new_vals): Likewise.
663 (find_mem_expr_in_1pdv): Likewise.
664 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
665 and value chains.
666 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
667 (variable_different_p): Use onepart field. Move onepart test out
668 of the loop.
669 (argument_reg_set): Drop.
670 (add_uses, add_stores): Preserve but do not record in dynamic
671 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
672 Avoid unsuitable address expressions.
673 (EXPR_DEPTH): Unlimit.
674 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
675 (prepare_call_arguments): Use DECL_RTL_IF_SET.
676 (dump_var): Adjust access to offset.
677 (variable_from_dropped, recover_dropped_1paux): New.
678 (variable_was_changed): Drop cur_loc_changed. Use onepart.
679 Preserve onepart aux in empty_var. Recover empty_var and onepart
680 aux from dropped_values.
681 (find_variable_location_part): Special-case onepart. Adjust
682 access to offset.
683 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
684 access to offset. Initialize onepaux. Drop value chains.
685 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
686 (VEC (variable, heap), VEC (rtx, stack)): Define.
687 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
688 ignore_cur_loc. Add expanding, pending, depth.
689 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
690 (loc_exp_dep_insert, loc_exp_dep_set): New.
691 (notify_dependents_of_resolved_value): New.
692 (update_depth, vt_expand_var_loc_chain): New.
693 (vt_expand_loc_callback): Revamped.
694 (resolve_expansions_pending_recursion): New.
695 (INIT_ELCD, FINI_ELCD): New.
696 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
697 parameter, adjust all callers.
698 (vt_expand_loc_dummy): Drop.
699 (vt_expand_1pvar): New.
700 (emit_note_insn_var_location): Operate on non-debug decls only.
701 Revamp multi-part cur_loc recomputation and one-part expansion.
702 Drop cur_loc_changed. Adjust access to offset.
703 (VEC (variable, heap)): Drop.
704 (changed_variables_stack, changed_values_stack): Drop.
705 (check_changed_vars_0, check_changed_vars_1): Remove.
706 (check_changed_vars_2, check_changed_vars_3): Remove.
707 (values_to_stack, remove_value_from_changed_variables): New.
708 (notify_dependents_of_changed_value, process_changed_values): New.
709 (emit_notes_for_changes): Revamp onepart updates.
710 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
711 and value chains. Propagate onepaux. Recover empty_var and onepaux
712 from dropped_values.
713 (emit_notes_for_differences_2): Drop value chains.
714 (emit_notes_in_bb): Adjust.
715 (vt_emit_notes): Drop value chains, changed_variables_stack.
716 Initialize and release dropped_values.
717 (create_entry_value): Revamp.
718 (vt_add_function_parameter): Use new interface.
719 (note_register_arguments): Remove.
720 (vt_initialize): Drop value chains and register arguments.
721 (vt_finalize): Drop value chains. Release windowed_parm_regs only
722 if HAVE_window_save.
723 * rtl.h: Document various pass-local uses of RTL flags.
724 * tree.h (DECL_RTL_KNOWN_SET): New.
725 * doc/invoke.texi (param max-vartrack-expr-depth): Update
726 description and default.
727
728 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
729
730 PR target/50447
731 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
732 (adjust_len): Ditto.
733 (addhi3): Don't pipe through short; use gen_int_mode instead.
734 Prior to reload, expand to gen_addhi3_clobber.
735 (*addhi3): Use avr_out_plus_noclobber if applicable, use
736 out_plus_noclobber in cc and adjust_len attribute.
737 (addhi3_clobber): 2 new RTL peepholes.
738 (addhi3_clobber): New insn.
739 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
740 * config/avr/avr.c (avr_out_plus_noclobber): New function.
741 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
742 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
743 Set cc0 to set_zn for adiw on 16-bit values.
744 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
745 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
746
747 2011-10-19 Richard Guenther <rguenther@suse.de>
748
749 PR middle-end/50780
750 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
751 the condition is properly gimple before using it.
752 * tree-eh (stmt_could_throw_1_p): Properly extract the
753 operation type from comparisons.
754
755 2011-10-19 Roland Stigge <stigge@antcom.de>
756
757 PR translation/48638
758 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
759
760 2011-10-19 Roland Stigge <stigge@antcom.de>
761
762 PR translation/49517
763 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
764
765 2011-10-19 Richard Guenther <rguenther@suse.de>
766
767 PR middle-end/50768
768 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
769
770 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
771
772 PR rtl-optimization/50340
773 * sel-sched-ir.c (update_target_availability): LHS register
774 availability is not known if the unavailable LHS of the other
775 expression is a different register.
776
777 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
778
779 PR target/50310
780 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
781 floating-point comparisons.
782
783 2011-10-19 Jan Hubicka <jh@suse.cz>
784
785 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
786 destination declared.
787 (output_weakrefs): New function.
788 * varpool.c (varpool_create_variable_alias): Handle external aliases.
789
790 2011-10-19 Jakub Jelinek <jakub@redhat.com>
791
792 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
793 second argument instead of mode.
794
795 2011-10-18 Jakub Jelinek <jakub@redhat.com>
796
797 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
798 mode SUBREG of operands[0] as target.
799 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
800 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
801 (expand_vec_perm_1): Handle identity and some broadcast
802 permutations.
803 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
804 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
805 For d->testing_p return true earlier to avoid creating more GC
806 garbage.
807 (expand_vec_perm_vpermq_perm_1): New function.
808 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
809 earlier to avoid creating more GC garbage. Fix handling of
810 V16HImode. Avoid some SUBREGs in SET_DEST.
811 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
812 vector modes.
813 (expand_vec_perm_vpshufb4_vpermq2): New function.
814 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
815 and expand_vec_perm_vpshufb4_vpermq2.
816
817 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
818
819 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
820 before exiting.
821
822 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
823
824 PR tree-optimization/50717
825 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
826 parameter. Calculate 'type' from stmt.
827 (convert_mult_to_widen): Update call the is_widening_mult_p.
828 (convert_plusminus_to_widen): Likewise.
829
830 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
831
832 * config/spu/spu.c (struct machine_function): New data structure.
833 (spu_init_machine_status): New function.
834 (spu_option_override): Install it.
835 (get_pic_reg): Set and use cfun->machine->pic_reg.
836 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
837 (need_to_save_reg): Use cfun->machine->pic_reg instead of
838 checking crtl->uses_pic_offset_table.
839 (spu_expand_prologue): Likewise.
840
841 2011-10-18 Jakub Jelinek <jakub@redhat.com>
842
843 PR tree-optimization/50735
844 * function.c (gimplify_parameters): Use create_tmp_var instead of
845 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
846 or vector type, set DECL_GIMPLE_REG_P.
847
848 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
849
850 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
851 * config/arm/arm.opt: Add 'native' processor_type and
852 arm_arch enum values.
853 * config/arm/arm.h (host_detect_local_cpu): New prototype.
854 (EXTRA_SPEC_FUNCTIONS): New define.
855 (MCPU_MTUNE_NATIVE_SPECS): New define.
856 (DRIVER_SELF_SPECS): New define.
857 * config/arm/driver-arm.c: New file.
858 * config/arm/x-arm: New file.
859 * doc/invoke.texi (ARM Options): Document -mcpu=native,
860 -mtune=native and -march=native.
861
862 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
863
864 PR rtl-optimization/50205
865 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
866 p->x is a register. Forbid substitution when the same register is
867 found in a different mode.
868 (count_occurrences_equiv): Assert that 'what' is a register.
869
870 2011-10-18 Richard Guenther <rguenther@suse.de>
871
872 PR tree-optimization/50767
873 * tree-ssa-pre.c (create_expression_by_pieces): Update the
874 folded statement.
875
876 2011-10-18 Julian Brown <julian@codesourcery.com>
877
878 * config/arm/arm.c (arm_block_move_unaligned_straight)
879 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
880 (arm_movmemqi_unaligned): New.
881 (arm_gen_movmemqi): Support unaligned block copies.
882
883 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
884
885 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
886 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
887 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
888 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
889 (op_code_prio): Likewise.
890 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
891 * optabs.c (optab_for_tree_code): Handle
892 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
893 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
894 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
895 * genopinit.c (optabs): Initialize the new optabs.
896 * expr.c (expand_expr_real_2): Handle
897 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
898 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
899 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
900 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
901 VEC_WIDEN_LSHIFT_LO_EXPR): New.
902 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
903 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
904 vect_recog_widen_shift_pattern.
905 (vect_handle_widen_mult_by_const): Rename...
906 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
907 Add a new argument, update documentation.
908 (vect_recog_widen_mult_pattern): Assume that only second
909 operand can be constant. Update call to
910 vect_handle_widen_op_by_const.
911 (vect_recog_over_widening_pattern): Fix typo.
912 (vect_recog_widen_shift_pattern): New.
913 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
914 widening shifts.
915 (supportable_widening_operation): Likewise.
916 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
917 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
918 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
919 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
920 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
921 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
922 Likewise.
923 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
924 New.
925 * config/arm/iterators.md (V_innermode): New.
926 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
927 for widening shift.
928
929 2011-10-18 Richard Guenther <rguenther@suse.de>
930
931 * tree-ssa-alias.h (struct pt_solution): Remove
932 vars_contains_restrict member.
933 (pt_solutions_same_restrict_base): Remove.
934 (pt_solution_set): Adjust.
935 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
936 vars_contains_restrict handling.
937 (dump_points_to_solution): Likewise.
938 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
939 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
940 field.
941 (new_var_info): Do not initialize it.
942 (ipa_escaped_pt): Adjust.
943 (make_constraint_from_restrict): Make the tag global.
944 (make_constraint_from_global_restrict): New function.
945 (make_constraint_from_heapvar): Remove.
946 (create_variable_info_for): Do not make restrict vars point
947 to NONLOCAL.
948 (intra_create_variable_infos): Likewise.
949 (find_what_var_points_to): Remove vars_contains_restrict handling.
950 (pt_solution_set): Adjust.
951 (pt_solution_ior_into): Likewise.
952 (pt_solutions_same_restrict_base): Remove.
953 (compute_points_to_sets): Do not test is_restrict_var.
954 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
955 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
956
957 2011-10-18 Tom de Vries <tom@codesourcery.com>
958
959 PR tree-optimization/50672
960 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
961 factored out of ...
962 (mark_virtual_phi_result_for_renaming): Use
963 mark_virtual_operand_for_renaming.
964 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
965 * tree-ssa-tail-merge.c (release_last_vdef): New function.
966 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
967 deleted basic block.
968 (tail_merge_optimize): Add argument to call to purge_bbs.
969
970 2011-10-18 Richard Guenther <rguenther@suse.de>
971
972 PR middle-end/50716
973 * expr.c (get_object_or_type_alignment): New function.
974 (expand_assignment): Use it.
975 (expand_expr_real_1): Likewise.
976
977 2011-10-18 Dodji Seketeli <dodji@redhat.com>
978
979 PR bootstrap/50760
980 * input.c (dump_line_table_statistics): Use long, not size_t.
981
982 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
983
984 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
985
986 2011-10-17 Simon Baldwin <simonb@google.com>
987 Ian Lance Taylor <iant@google.com>
988
989 * configure.ac: Add --with-native-system-header-dir. Set and
990 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
991 when setting target_header_dir.
992 * config.gcc: Always set native_system_header_dir.
993 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
994 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
995 use i386/t-djgpp.
996 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
997 native_system_header_dir.
998 (spu-*-elf*): Set native_system_header_dir.
999 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
1000 @NATIVE_SYSTEM_HEADER_DIR@.
1001 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
1002 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
1003 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1004 STANDARD_INCLUDE_COMPONENT.
1005 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
1006 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1007 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
1008 STANDARD_INCLUDE_COMPONENT.
1009 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
1010 * config/i386/t-mingw-w32: Likewise.
1011 * config/i386/t-mingw-w64: Likewise.
1012 * config/spu/t-spu-elf: Likewise.
1013 * config/i386/t-djgpp: Remove.
1014 * config/t-gnu: Remove.
1015 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
1016 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1017 STANDARD_INCLUDE_COMPONENT.
1018 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
1019 * config/spu/spu-elf.h: Likewise.
1020 * config/vms/xm-vms.h: Likewise.
1021 * config/gnu.h: Likewise.
1022 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
1023 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
1024 NATIVE_SYSTME_HEADER_COMPONENT.
1025 * doc/install.texi (Configuration): Document
1026 --with-native-system-header-dir. Mention it in the documentation
1027 for --with-sysroot and --with-build-sysroot.
1028 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
1029 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
1030 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
1031 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1032 * doc/fragments.texi (Target Fragment): Don't document
1033 NATIVE_SYSTEM_HEADER_DIR.
1034 * configure, doc/tm.texi: Rebuild.
1035
1036 2011-10-17 Richard Henderson <rth@redhat.com>
1037
1038 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
1039 is the constraint.
1040
1041 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
1042 patterns.
1043 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
1044 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
1045
1046 2011-10-17 David S. Miller <davem@davemloft.net>
1047
1048 * config/sparc/sparc-modes.def: Add single entry vector modes for
1049 DImode and SImode.
1050 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
1051 mode iterators.
1052 (mov<V32:mode>): Revert back to plain SFmode pattern.
1053 (*movsf_insn): Likewise.
1054 (mov<V64:mode>): Revert back to plain DFmode pattern.
1055 (*movdf_insn_sp32): Likewise.
1056 (*movdf_insn_sp32_v9): Likewise.
1057 (*movdf_insn_sp64): Likewise.
1058 (V64 mode splitters) Likewise.
1059 (addsi3): Remove VIS alternatives.
1060 (subsi3): Likewise.
1061 (and<V64I:mode>3): Revert to DImode only pattern.
1062 (and<V64I:mode>3_sp32): Likewise.
1063 (*and<V64I:mode>3_sp64): Likewise.
1064 (and<V32I:mode>3): Likewise.
1065 (*and_not_<V64I:mode>_sp32): Likewise.
1066 (*and_not_<V64I:mode>_sp64): Likewise.
1067 (*and_not_<V32I:mode>): Likewise.
1068 (ior<V64I:mode>3): Likewise.
1069 (*ior<V64I:mode>3_sp32): Likewise.
1070 (*ior<V64I:mode>3_sp64): Likewise.
1071 (ior<V32I:mode>3): Likewise.
1072 (*or_not_<V64I:mode>_sp32): Likewise.
1073 (*or_not_<V64I:mode>_sp64): Likewise.
1074 (*or_not_<V32I:mode>): Likewise.
1075 (xor<V64I:mode>3): Likewise.
1076 (*xor<V64I:mode>3_sp32): Likewise.
1077 (*xor<V64I:mode>3_sp64): Likewise.
1078 (xor<V32I:mode>3): Likewise.
1079 (V64I mode splitters): Likewise.
1080 (*xor_not_<V64I:mode>_sp32): Likewise.
1081 (*xor_not_<V64I:mode>_sp64): Likewise.
1082 (*xor_not_<V32I:mode>): Likewise.
1083 (one_cmpl<V64I:mode>2): Likewise.
1084 (*one_cmpl<V64I:mode>2_sp32): Likewise.
1085 (*one_cmpl<V64I:mode>2_sp64): Likewise.
1086 (one_cmpl<V32I:mode>2): Likewise.
1087 (VM32, VM64, VMALL): New mode iterators.
1088 (vbits, vconstr, vfptype): New mode attributes.
1089 (mov<VMALL:mode>): New expander.
1090 (*mov<VM32:mode>_insn): New insn.
1091 (*mov<VM64:mode>_insn_sp64): New insn.
1092 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
1093 specifically for the register to memory case.
1094 (vec_init<mode>): New expander.
1095 (VADDSUB): New mode iterator.
1096 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
1097 with...
1098 (<plusminus_insn><mode>3): New consolidated pattern.
1099 (VL): New mode iterator for logical operations.
1100 (vlsuf): New more attribute.
1101 (vlop): New code iterator.
1102 (vlinsn, vlninsn): New code attributes.
1103 (<code><mode>3): New insn to non-negated vector logical ops.
1104 (*not_<code><mode>3): Likewise for negated variants.
1105 (*nand<mode>_vis): New insn.
1106 (vlnotop): New code iterator.
1107 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
1108 (one_cmpl<mode>2): New insn.
1109 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
1110 (bshuffle<VM64:mode>_vis): Likewise.
1111 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
1112 (fp<plusminus_insn>64_vis): Use V1DI mode.
1113 (VASS mode iterator): Use V1SI not SI mode.
1114 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
1115 single-entry vector mode changes.
1116 (sparc_expand_builtin): Likewise.
1117 (sparc_expand_vector_init): New function.
1118 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
1119
1120 2011-10-17 Kai Tietz <ktietz@redhat.com>
1121
1122 * fold-const.c (simple_operand_p_2): New function.
1123 (fold_truthop): Rename to
1124 (fold_truth_andor_1): function name.
1125 Additionally remove branching creation for logical and/or.
1126 (fold_truth_andor): Handle branching creation for logical and/or here.
1127
1128 2011-10-17 Andi Kleen <ak@linux.intel.com>
1129
1130 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
1131
1132 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
1133
1134 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
1135 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
1136 (adjust_len): Add alternative "call".
1137 (isa, enabled): New insn attributes.
1138 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
1139 mcu_mega attribute.
1140 (*sbrx_branch<mode>): Ditto.
1141 (*sbrx_and_branch<mode>): Ditto.
1142 (*sbix_branch): Ditto.
1143 (*sbix_branch_bit7): Ditto.
1144 (*sbix_branch_tmp): Ditto.
1145 (*sbix_branch_tmp_bit7): Ditto.
1146 (jump): Ditto.
1147 (negsi2): Use attribute "isa" instead of assembler dialect.
1148 (extendhisi2): Ditto.
1149 (call_insn, call_value_insn): Set adjust_len attribute.
1150 (indirect_jump): Indent to coding rules.
1151 (call_prologue_saves): Use isa attribute instead of mcu_mega.
1152 (epilogue_restores): Ditto. Fix setting of SP as described in the
1153 RTX pattern.
1154 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
1155 and *indirect_jump_avr6.
1156 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
1157 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
1158 (*tablejump_rjmp, *tablejump_lib): Remove.
1159 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
1160
1161 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1162
1163 PR c++/50757
1164 * doc/invoke.texi ([Wnonnull]): Update.
1165
1166 2011-10-17 Richard Henderson <rth@redhat.com>
1167
1168 PR 50746
1169 * optabs.c (expand_vec_perm_expr): Fix indexing error.
1170
1171 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
1172
1173 * configure.ac: Display `yes' if the SystemTap header has been found.
1174 * configure: Regenerate.
1175
1176 2011-10-08 Andi Kleen <ak@linux.intel.com>
1177
1178 PR other/50636
1179 * config.in, configure: Regenerate.
1180 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
1181 * ggc-page.c (USING_MADVISE): Add.
1182 (page_entry): Add discarded field.
1183 (alloc_page): Check for discarded pages.
1184 (release_pages): Add USING_MADVISE branch.
1185
1186 2011-10-17 Richard Guenther <rguenther@suse.de>
1187
1188 PR tree-optimization/50729
1189 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
1190 (simplify_conversion_using_ranges): Properly test the
1191 intermediate result.
1192
1193 2011-10-15 Tom Tromey <tromey@redhat.com>
1194 Dodji Seketeli <dodji@redhat.com>
1195
1196 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
1197 * ggc-none.c (ggc_round_alloc_size): New public stub function.
1198 * ggc-page.c (ggc_alloced_size_order_for_request): New static
1199 function. Factorized from ggc_internal_alloc_stat.
1200 (ggc_round_alloc_size): New public function. Uses
1201 ggc_alloced_size_order_for_request.
1202 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
1203 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
1204 from ggc_internal_alloc_zone_stat.
1205 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
1206 * toplev.c (general_init): Initialize
1207 line_table->alloced_size_for_request.
1208
1209 2011-10-15 Tom Tromey <tromey@redhat.com>
1210 Dodji Seketeli <dodji@redhat.com>
1211
1212 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
1213 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
1214 new counters.
1215 (dump_line_table_statistics): Define new function.
1216 * input.h (dump_line_table_statistics): Declare new function.
1217 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
1218
1219 2011-10-15 Tom Tromey <tromey@redhat.com>
1220 Dodji Seketeli <dodji@redhat.com>
1221
1222 * doc/cppopts.texi: Document -fdebug-cpp.
1223 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
1224
1225 2011-10-15 Tom Tromey <tromey@redhat.com>
1226 Dodji Seketeli <dodji@redhat.com>
1227
1228 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
1229 location parameter.
1230 * diagnostic.c (diagnostic_report_current_module): Add a location
1231 parameter to the function definition. Use it instead of
1232 input_location. Resolve the virtual location rather than just
1233 looking up its map and risking to touch a resulting macro map.
1234 (default_diagnostic_starter): Pass the relevant diagnostic
1235 location to diagnostic_report_current_module.
1236 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
1237 (virt_loc_aware_diagnostic_finalizer): Likewise.
1238 (diagnostic_report_current_function): Pass the
1239 relevant location to diagnostic_report_current_module.
1240 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
1241 new function.
1242 * toplev.c (general_init): By default, use the new
1243 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
1244 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
1245
1246 2011-10-15 Tom Tromey <tromey@redhat.com>
1247 Dodji Seketeli <dodji@redhat.com>
1248
1249 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
1250 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
1251 preprocessor related options.
1252
1253 2011-10-15 Tom Tromey <tromey@redhat>
1254 Dodji Seketeli <dodji@redhat.com>
1255
1256 * input.h (struct expanded_location): Move to libcpp/line-map.h.
1257 (LOCATION_COLUMN): New accessor
1258 (in_system_header_at): Use linemap_location_in_system_header_p.
1259 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
1260 touching the internals of struct line_map. Use the public API instead.
1261 (diagnostic_report_diagnostic): Don't use relational operator '<'
1262 on virtual locations. Use linemap_location_before_p instead.
1263 * input.c (expand_location): Adjust to expand to the tokens'
1264 spelling location when macro location tracking is on.
1265
1266
1267 2011-10-08 Andi Kleen <ak@linux.intel.com>
1268
1269 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
1270
1271 2011-10-13 Andi Kleen <ak@linux.intel.com>
1272
1273 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
1274
1275 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
1276
1277 PR tree-optimization/50727
1278 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
1279 DEF_STMT to the list of statements to be replaced by the
1280 pattern statements.
1281
1282 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
1283
1284 PR rtl-optimization/50615
1285 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
1286
1287 2011-10-16 Jakub Jelinek <jakub@redhat.com>
1288
1289 PR tree-optimization/50596
1290 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
1291 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1292 vect_recog_bool_pattern.
1293 (check_bool_pattern, adjust_bool_pattern_cast,
1294 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
1295
1296 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
1297
1298 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
1299 treat the first load of the node as the first element in its
1300 interleaving chain.
1301 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
1302 necessary and possible.
1303 (vect_build_slp_tree): Add new argument. Allow load groups of any size
1304 in basic blocks. Keep all the loads for further permutation check.
1305 Use the new argument to determine if there is a permutation. Update
1306 the recursive calls.
1307 (vect_supported_load_permutation_p): Allow subchains of interleaving
1308 chains in basic block vectorization.
1309 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
1310 Check load permutation based on the new parameter.
1311 (vect_schedule_slp_instance): Don't start from the first element in
1312 interleaving chain unless the loads are permuted.
1313
1314 2011-10-15 Jan Hubicka <jh@suse.cz>
1315
1316 PR target/48668
1317 PR target/50689
1318 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
1319 after function body.
1320
1321 2011-10-15 Richard Henderson <rth@redhat.com>
1322
1323 * tree-vect-slp.c: Include langhooks.h.
1324 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
1325 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
1326 mask creation for VEC_PERM_EXPR.
1327 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
1328 not the builtin.
1329 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
1330 * Makefile.in (tree-vect-slp.o): Update dependency.
1331 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
1332
1333 2011-10-15 Alan Modra <amodra@gmail.com>
1334
1335 PR bootstrap/50738
1336 * ifcvt.c (dead_or_predicable): Revert accidental commit with
1337 HAVE_simple_return test.
1338
1339 2011-10-15 Alan Modra <amodra@gmail.com>
1340
1341 * ifcvt.c (dead_or_predicable): Disable if-conversion when
1342 doing so is likely to kill a shrink-wrapping opportunity.
1343
1344 PR rtl-optimization/49941
1345 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
1346
1347 * rtl.h (set_return_jump_label): Declare.
1348 * function.c (set_return_jump_label): New function, extracted..
1349 (thread_prologue_and_epilogue_insns): ..from here. Use it in
1350 another instance to set return jump_label.
1351 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
1352 * reorg.c (find_end_label): Likewise.
1353
1354 2011-10-14 David S. Miller <davem@davemloft.net>
1355
1356 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
1357 with a more complete cpp test.
1358 * config/sparc/linux64.h: Likewise.
1359 * config/sparc/linux.h: Likewise.
1360 * config/sparc/sparc.opt (sparc_debug): New target variable.
1361 (mdebug): New target option.
1362 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
1363 TARGET_DEBUG_OPTIONS): New defines.
1364 * config/sparc/sparc.c (debug_target_flag_bits,
1365 debug_target_flags): New functions.
1366 (sparc_option_override): Add name strings back to cpu_table[].
1367 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
1368 out the target flags before and after override processing as well
1369 as the selected cpu. If MASK_V8PLUS, make sure that the selected
1370 cpu is at least v9.
1371
1372 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
1373
1374 PR target/49263
1375 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
1376 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
1377 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
1378 and instruction commutative.
1379 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
1380 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
1381 tstsi_t_zero_extract_subreg_xor_little,
1382 tstsi_t_zero_extract_subreg_xor_big): New insns.
1383 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
1384 asm output.
1385 (*andsi_compact): Reorder alternatives so that K08 is considered first.
1386
1387 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
1388
1389 PR target/50354
1390 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
1391 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
1392
1393 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
1394
1395 * invoke.texi (AVR Options): Avoid \leq{}.
1396
1397 2011-10-14 Kai Tietz <ktietz@redhat.com>
1398
1399 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
1400 transformation the operands have compatible types.
1401
1402 2011-10-14 Jakub Jelinek <jakub@redhat.com>
1403
1404 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
1405 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
1406 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
1407 mode iterator and any_extend code iterator.
1408 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
1409 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
1410 also for TARGET_SSE4_1 using pmuldq insn.
1411 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
1412 (sse2_sse4_1): New code attr.
1413 (udot_prodv4si): Macroize using any_extend code iterator.
1414 (<s>dot_prodv8si): New expander.
1415
1416 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
1417
1418 * config/i386/i386.c (atom_cost): Changed cost for loading
1419 QImode using movzbl.
1420
1421 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1422
1423 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
1424 change on October 11th, 2011.
1425
1426 2011-10-14 Jakub Jelinek <jakub@redhat.com>
1427
1428 * config/i386/sse.md (vec_interleave_high<mode>,
1429 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
1430 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
1431 (ix86_expand_vec_perm_builtin_1): Call it.
1432
1433 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
1434
1435 Fix thinko from r179765
1436 * config/avr/avr.c (avr_option_override): Don't override
1437 flag_omit_frame_pointer if not actually needed.
1438
1439 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
1440
1441 PR target/46278
1442 * doc/invoke.texi (AVR Options): Document -mstrict-X.
1443
1444 * config/avr/avr.opt (-mstrict-X): New option.
1445 (avr_strict_X): New variable reflecting -mstrict-X.
1446 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
1447 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
1448 (avr_legitimate_address_p): Pass outer_code to
1449 avr_reg_ok_for_addr_p and use that function in case PLUS.
1450 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
1451 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
1452 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
1453
1454 2011-10-14 Jakub Jelinek <jakub@redhat.com>
1455
1456 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
1457 of VI_128.
1458
1459 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
1460 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
1461 Use <sseinsnmode> instead of TI in mode attr.
1462
1463 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
1464
1465 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
1466 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
1467 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
1468 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
1469
1470 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
1471
1472 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
1473 (arm_output_strex): Support strexd.
1474 (arm_output_it): New helper to output it in Thumb2 mode only.
1475 (arm_output_sync_loop): Support DI mode. Change comment to
1476 not support const_int.
1477 (arm_expand_sync): Support DI mode.
1478 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
1479 and LDREXD.
1480 * config/arm/iterators.md (NARROW): move from sync.md.
1481 (QHSD): New iterator for all current ARM integer modes.
1482 (SIDI): New iterator for SI and DI modes only.
1483 * config/arm/sync.md (sync_predtab): New mode_attr.
1484 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
1485 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
1486 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
1487 (sync_nandsi): Fold into sync_nand<mode>.
1488 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
1489 (sync_new_nandsi): Fold into sync_new_nand<mode>.
1490 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
1491 (sync_old_nandsi): Fold into sync_old_nand<mode>.
1492 (sync_compare_and_swap<mode>): Support SI & DI.
1493 (sync_lock_test_and_set<mode>): Likewise.
1494 (sync_<sync_optab><mode>): Likewise.
1495 (sync_nand<mode>): Likewise.
1496 (sync_new_<sync_optab><mode>): Likewise.
1497 (sync_new_nand<mode>): Likewise.
1498 (sync_old_<sync_optab><mode>): Likewise.
1499 (sync_old_nand<mode>): Likewise.
1500 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
1501 (arm_sync_lock_test_and_setsi): Likewise.
1502 (arm_sync_new_<sync_optab>si): Likewise.
1503 (arm_sync_new_nandsi): Likewise.
1504 (arm_sync_old_<sync_optab>si): Likewise.
1505 (arm_sync_old_nandsi): Likewise.
1506 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
1507 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
1508 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
1509 (arm_sync_new_nand<mode> NARROW): Likewise.
1510 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
1511 (arm_sync_old_nand<mode> NARROW): Likewise.
1512
1513 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
1514
1515 PR target/48126
1516 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
1517
1518 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
1519
1520 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
1521
1522 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1523
1524 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
1525
1526 2011-10-14 Jakub Jelinek <jakub@redhat.com>
1527
1528 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
1529 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
1530
1531 2011-10-14 Richard Guenther <rguenther@suse.de>
1532
1533 PR tree-optimization/50723
1534 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
1535
1536 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
1537
1538 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
1539 objc/objc-map.c.
1540
1541 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1542
1543 PR c++/17212
1544 * doc/invoke.texi ([Wformat-zero-length]): Update.
1545
1546 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
1547
1548 PR bootstrap/50699
1549 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
1550 build for powerpc targets. (darwin_patch_builtins): Only build for
1551 powerpc targets.
1552
1553 2011-10-14 Jakub Jelinek <jakub@redhat.com>
1554
1555 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
1556 (avx_cvtdq2pd256_2): ... this.
1557 (sseunpackfltmode): New mode attr.
1558 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
1559 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
1560 using VI2_AVX2 iterator.
1561 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
1562
1563 2011-10-13 David S. Miller <davem@davemloft.net>
1564
1565 * config/sparc/sparc.md (plusminus): New code iterator.
1566 (plusminus_insn): New code attr.
1567 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
1568 using plusminus and plusminus_insn.
1569 (fpadd64_vis, fpsub64_vis): Likewise.
1570
1571 2011-10-13 Richard Henderson <rth@redhat.com>
1572
1573 * doc/md.texi (vec_perm): Document fallback to byte permutation.
1574 * genopinit.c (optabs): Add vec_perm_const.
1575 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
1576 Reject non-vector modes. Allow fallback to byte permutation.
1577 (expand_vec_perm_expr_1): Split out from ...
1578 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
1579 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
1580 * tree-vect-generic.c (lower_vec_perm): Update for name change.
1581
1582 2011-10-13 Richard Henderson <rth@redhat.com>
1583
1584 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
1585
1586 * config/rs6000/spu.md (vec_permv16qi): New pattern.
1587
1588 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
1589 * config/i386/i386-protos.h: Update.
1590 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
1591 (vec_perm_const<VEC_PERM_CONST>): New expander.
1592
1593 * optabs.c (expand_vector_broadcast): New.
1594 (expand_binop): Expand scalar shifts of vectors to vector shifts
1595 of vectors, if the former isn't supported.
1596 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
1597 here; always simplify to scalar shift of vector if possible.
1598
1599 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
1600 test for vector splat.
1601
1602 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1603
1604 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
1605
1606 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1607 Richard Guenther <rguenther@suse.de>
1608
1609 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
1610 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
1611
1612 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1613
1614 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
1615 * config/i386/i386.c (ix86_build_const_vector): Handle
1616 also V32QI, V16QI, V16HI and V8HI modes.
1617 (emit_reduc_half): New function.
1618 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
1619 Use emit_reduc_half helper function.
1620
1621 2011-10-13 Lawrence Crowl <crowl@google.com>
1622 Diego Novillo <dnovillo@google.com>
1623
1624 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
1625 (input_function): ... here.
1626 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
1627 (output_function): ... here.
1628
1629 2011-10-13 Gabriel Charette <gchare@google.com>
1630 Diego Novillo <dnovillo@google.com>
1631
1632 * streamer-hooks.h (struct streamer_hooks): Add hooks
1633 input_location and output_location.
1634 * lto-streamer-in.c (lto_input_location): Use
1635 streamer_hooks.input_location, if set.
1636 * lto-streamer-out.c (lto_output_location): Use
1637 streamer_hooks.output_location, if set.
1638
1639 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1640
1641 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
1642 * config/sparc/sparc.opt (mfix-at697f): New option.
1643 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1644 (sparc_reorg): New function.
1645
1646 2011-10-13 Richard Guenther <rguenther@suse.de>
1647
1648 PR tree-optimization/50712
1649 * ipa-split.c (split_function): Always re-gimplify parameters
1650 when they are not gimple vals before passing them. Properly
1651 check for type compatibility.
1652
1653 2011-10-13 Tom de Vries <tom@codesourcery.com>
1654
1655 * function.c (gimplify_parameters): Set number of arguments of call to
1656 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
1657
1658 2011-10-13 Tom de Vries <tom@codesourcery.com>
1659
1660 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
1661 for static const strings.
1662 * varasm.c (build_constant_desc): Generate the memory location of the
1663 constant using gen_const_mem.
1664
1665 2011-10-13 Richard Guenther <rguenther@suse.de>
1666
1667 PR tree-optimization/50698
1668 * tree-data-ref.c (split_constant_offset_1): Also process
1669 offsets of &MEM.
1670
1671 2011-10-12 David S. Miller <davem@davemloft.net>
1672
1673 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
1674 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
1675 unspecs.
1676 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
1677 of a vec_concat.
1678 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
1679 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
1680 Reimplement as unspecs and remove inaccurate comments.
1681 (vis3_shift_patname): New code attr.
1682 (<vis3_shift_insn><vbits>_vis): Rename to
1683 "v<vis3_shift_patname><mode>3".
1684 (vis3_addsub_ss_patname): New code attr.
1685 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
1686 "<vis3_addsub_ss_patname><mode>3".
1687 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
1688 accommodate pattern name changes.
1689
1690 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
1691 to zero when assembler lacks support for such instructions.
1692 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
1693 and MASK_FMAF in defaults when assembler lacks necessary support.
1694
1695 2011-10-12 Jakub Jelinek <jakub@redhat.com>
1696
1697 * config/i386/sse.md (vec_unpacks_lo_<mode>,
1698 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
1699 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
1700 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
1701 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
1702
1703 * config/i386/sse.md (vec_avx2): New mode_attr.
1704 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
1705 (mul<mode>3): ... this.
1706
1707 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
1708 * config/i386/i386.c (ix86_expand_vec_perm): Handle
1709 V16QImode and V32QImode for TARGET_AVX2.
1710 (MAX_VECT_LEN): Increase to 32.
1711 (expand_vec_perm_blend): Add support for 32-byte integer
1712 vectors with TARGET_AVX2.
1713 (valid_perm_using_mode_p): New function.
1714 (expand_vec_perm_pshufb): Add support for 32-byte integer
1715 vectors with TARGET_AVX2.
1716 (expand_vec_perm_vpshufb2_vpermq): New function.
1717 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
1718 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
1719 with TARGET_AVX2.
1720 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
1721 and expand_vec_perm_vpshufb2_vpermq_even_odd.
1722 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
1723 32-byte integer vector modes.
1724 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
1725 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
1726 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
1727 4 new operands.
1728 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
1729 match_dup, instead add 4 new operands and require they have
1730 right cross-lane values.
1731 (avx2_permv4di): Change into define_expand.
1732 (avx2_permv4di_1): New instruction.
1733 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
1734 for "xm" constrained operand.
1735 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
1736
1737 * config/i386/sse.md (avx2_gathersi<mode>,
1738 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
1739 match_scratch, change memory_operand to register_operand,
1740 add (mem:BLK (scratch)) use.
1741 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
1742 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
1743 add earlyclobber to the output operand and match_scratch,
1744 add (mem:BLK (scratch)) use, change the other mem to match_operand.
1745 Use %p6 instead of %c6 in the pattern.
1746 * config/i386/i386.c (ix86_expand_builtin): Adjust for
1747 operand 2 being a Pmode register_operand instead of memory_operand.
1748
1749 2011-10-12 Kai Tietz <ktietz@redhat.com>
1750
1751 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
1752
1753 2011-10-12 Steve Ellcey <sje@cup.hp.com>
1754
1755 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
1756
1757 2011-10-12 Richard Guenther <rguenther@suse.de>
1758
1759 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
1760 of the first store we visit in a basic-block.
1761 (get_continuation_for_phi): Search for a candidate VUSE that
1762 might dominates all others. Do pairwise disambiguation against
1763 that candidate.
1764
1765 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
1766
1767 PR tree-optimization/50189
1768 * tree-vrp.c (extract_range_from_assert): Use the type of
1769 the variable, not the limit.
1770
1771 2011-10-12 Richard Guenther <rguenther@suse.de>
1772
1773 PR tree-optimization/50700
1774 * tree-object-size.c (addr_object_size): Simplify and treat
1775 MEM_REF bases consistently.
1776
1777 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
1778
1779 * function.c (prepare_shrink_wrap, bb_active_p): New function.
1780 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
1781 prepare_shrink_wrap, then recompute bb_active_p for the last block.
1782
1783 2011-10-12 Joseph Myers <joseph@codesourcery.com>
1784
1785 PR c/50565
1786 * convert.c (convert_to_integer): Do not narrow operands of
1787 pointer subtraction.
1788
1789 2011-10-12 Nick Clifton <nickc@redhat.com>
1790
1791 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
1792 emit a .eabi_attribute assembler directive, possibly with a
1793 comment attached.
1794 * config/arm/arm.c (arm_file_start): Use the new macro.
1795 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
1796
1797 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
1798
1799 PR target/49939
1800 * config/avr/avr.md (*movqi): Rename to movqi_insn.
1801 (*call_insn): Rename to call_insn.
1802 (*call_value_insn): Rename to call_value_insn.
1803 * config/avr/avr.c (avr_2word_insn_p): New static function.
1804 (jump_over_one_insn_p): Use it.
1805
1806 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
1807
1808 * expr.h (copy_blkmode_to_reg): Declare.
1809 * expr.c (copy_blkmode_to_reg): New function.
1810 (expand_assignment): Don't expand register RESULT_DECLs before
1811 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
1812 RESULT_DECL register.
1813 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1814 * stmt.c (expand_return): Move BLKmode-to-register code into
1815 copy_blkmode_to_reg.
1816
1817 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
1818
1819 PR target/49965
1820 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1821 (mov<F:mode>cc): Likewise.
1822
1823 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1824
1825 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1826
1827 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1828
1829 * tree.h (built_in_decls): Delete old interface with two parallel
1830 arrays to hold standard builtin declarations, and replace it with
1831 a function based interface that can support creating builtins on
1832 the fly in the future. Change all uses, and poison the old
1833 names. Make sure 0 is not a legitimate builtin index.
1834 (implicit_built_in_decls): Ditto.
1835 (built_in_info): Ditto.
1836 (BUILTIN_VALID_P): Ditto.
1837 (builtin_decl_explicit): Ditto.
1838 (builtin_decl_implicit): Ditto.
1839 (set_builtin_decl): Ditto.
1840 (set_builtin_decl_implicit_p): Ditto.
1841 (builtin_decl_explicit_p): Ditto.
1842 (builtin_decl_implicit_p): Ditto.
1843 * tree-complex.c (expand_complex_libcall): Ditto.
1844 * tree-loop-distribution.c (generate_memset_zero): Ditto.
1845 * tree-ssa-strlen.c (get_string_length): Ditto.
1846 (handle_builtin_strcpy): Ditto.
1847 (handle_builtin_strcat): Ditto.
1848 * tree.c (iterative_hash_expr): Ditto.
1849 (local_define_builtin): Ditto.
1850 (build_common_builtin_nodes): Ditto.
1851 * builtins.c (built_in_decls): Ditto.
1852 (implicit_built_in_decls): Ditto.
1853 (built_in_info): Ditto
1854 (expand_builtin_classify_type): Ditto.
1855 (mathfn_built_in_1): Ditto.
1856 (expand_builtin_cexpi): Ditto.
1857 (expand_builtin_mempcpy_args): Ditto.
1858 (expand_builtin_stpcpy): Ditto.
1859 (gimplify_va_arg_expr): Ditto.
1860 (expand_builtin_sync_operation): Ditto.
1861 (build_builtin_expect_predicate): Ditto.
1862 (fold_builtin_memory_op): Ditto.
1863 (fold_builtin_strcpy): Ditto.
1864 (fold_builtin_stpcpy): Ditto.
1865 (fold_builtin_strncpy): Ditto.
1866 (fold_builtin_interclass_mathfn): Ditto.
1867 (fold_builtin_classify): Ditto.
1868 (fold_builtin_2): Ditto.
1869 (fold_builtin_strstr): Ditto.
1870 (fold_builtin_strrchr): Ditto.
1871 (fold_builtin_strpbrk): Ditto.
1872 (fold_builtin_strcat): Ditto.
1873 (fold_builtin_strncat): Ditto.
1874 (fold_builtin_strcspn): Ditto.
1875 (fold_builtin_fputs): Ditto.
1876 (fold_builtin_sprintf): Ditto.
1877 (fold_builtin_snprintf): Ditto.
1878 (expand_builtin_memory_chk): Ditto.
1879 (fold_builtin_memory_chk): Ditto.
1880 (fold_builtin_stxcpy_chk): Ditto.
1881 (fold_builtin_strncpy_chk): Ditto.
1882 (fold_builtin_strcat_chk): Ditto.
1883 (fold_builtin_strncat_chk): Ditto.
1884 (fold_builtin_sprintf_chk_1): Ditto.
1885 (fold_builtin_snprintf_chk_1): Ditto.
1886 (fold_builtin_printf): Ditto.
1887 (fold_builtin_fprintf): Ditto.
1888 (fold_call_stmt): Ditto.
1889 (set_builtin_user_assembler_name): Ditto.
1890 * tree-emutls.c (emutls_common_1): Ditto.
1891 * omp-low.c (scan_omp): Ditto.
1892 (lower_rec_input_clauses): Ditto.
1893 (lower_reduction_clauses): Ditto.
1894 (expand_parallel_call): Ditto.
1895 (expand_task_call): Ditto.
1896 (maybe_catch_exception): Ditto.
1897 (optimize_omp_library_calls): Ditto.
1898 (expand_omp_for_generic): Ditto.
1899 (expand_omp_for_static_nochunk): Ditto.
1900 (expand_omp_for_static_chunk): Ditto.
1901 (expand_omp_sections): Ditto.
1902 (expand_omp_atomic_fetch_op): Ditto.
1903 (expand_omp_atomic_pipeline): Ditto.
1904 (expand_omp_atomic_mutex): Ditto.
1905 (lower_omp_single_simple): Ditto.
1906 (lower_omp_single_copy): Ditto.
1907 (lower_omp_master): Ditto.
1908 (lower_omp_ordered): Ditto.
1909 (lower_omp_critical): Ditto.
1910 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1911 * builtins.c (DEF_BUILTIN_STUB): Ditto.
1912 (BUILT_IN_NONE): Ditto.
1913 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1914 * gimple-low.c (lower_function_body): Ditto.
1915 (lower_builtin_setjmp): Ditto.
1916 * c-decl.c (merge_decls): Ditto.
1917 * tree-eh.c (lower_resx): Ditto.
1918 (lower_resx): Ditto.
1919 (lower_eh_dispatch): Ditto.
1920 * function (gimplify_parameters): Ditto.
1921 * c-typeck.c (build_function_call_vec): Ditto.
1922 * gimplify.c (build_stack_save_restore): Ditto.
1923 (gimplify_vla_decl): Ditto.
1924 (gimplify_modify_expr_to_memcpy): Ditto.
1925 (gimplify_modify_expr_to_memset): Ditto.
1926 (gimplify_variable_sized_compare): Ditto.
1927 (gimplify_function_tree): Ditto.
1928 * calls.c (emit_call_1): Ditto.
1929 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1930 * tree-nested.c (convert_nl_goto_reference): Ditto.
1931 (convert_tramp_reference_op): Ditto.
1932 (finalize_nesting_tree_1): Ditto.
1933 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1934 (tree_ssa_prefetch_arrays): Ditto.
1935 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1936 * system.h (built_in_decls): Ditto.
1937 (implicit_built_in_decls): Ditto.
1938 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1939 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1940 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1941 (ix86_veclibabi_svml): Ditto.
1942 (ix86_veclibabi_acml): Ditto.
1943 * config/vms/vms.c (vms_patch_builtins): Ditto.
1944 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1945 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1946 (rs6000_builtin_vectorized_libmass): Ditto.
1947 (rs6000_init_builtins): Ditto.
1948 * config/darwin.c (darwin_override_options): Ditto.
1949 (darwin_patch_builtin): Ditto.
1950 (darwin_rename_builtins): Ditto.
1951 * config/pa/pa.c (pa_init_builtins): Ditto.
1952
1953 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1954
1955 * tree.h (copy_ref_info): Expose existing function.
1956 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1957 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1958
1959 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
1960
1961 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1962 prototype.
1963 (avr_regno_mode_code_ok_for_base_p): New prototype.
1964 * config/avr/avr.h (BASE_REG_CLASS): Remove.
1965 (REGNO_OK_FOR_BASE_P): Remove.
1966 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1967 (REG_OK_FOR_BASE_STRICT_P): Remove.
1968 (MODE_CODE_BASE_REG_CLASS): New define.
1969 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1970 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1971 (avr_regno_mode_code_ok_for_base_p): New function.
1972 (avr_reg_ok_for_addr_p): New static function.
1973 (avr_legitimate_address_p): Use it. Beautify.
1974
1975 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
1976
1977 PR target/50447
1978 * config/avr/avr.md (cc): Add out_plus attribute alternative.
1979 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
1980 avr_out_plus for all CONST_INT addends.
1981 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1982 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1983 CC_OUT_PLUS.
1984 (avr_out_plus_1): Change prototype and report effect on cc0.
1985 (avr_out_plus): Ditto.
1986 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1987
1988 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1991 the extra break.
1992
1993 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1994
1995 * doc/invoke.texi: Document new warning.
1996 * common.opt (Wvector-operation-performance): Define new warning.
1997 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1998 vector operation.
1999 (exapnd_vector_parallel): Warn about expanded vector operation.
2000 (lower_vec_shuffle): Warn about expanded vector operation.
2001 * c-typeck.c (c_build_vec_perm_expr): Store correct location
2002 when creating VEC_PERM_EXPR.
2003
2004 2011-10-11 Richard Guenther <rguenther@suse.de>
2005
2006 PR tree-optimization/50204
2007 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
2008 two argument handling from ...
2009 (get_continuation_for_phi): ... here. Handle arbitrary number
2010 of PHI args.
2011
2012 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
2013
2014 * modulo-sched.c: Fix comment typo. Mention the possibility
2015 of using scheduling windows of II+1 cycles.
2016
2017 2011-10-11 Tristan Gingold <gingold@adacore.com>
2018
2019 * doc/invoke.texi (C Dialect Options): Document
2020 -fallow-parameterless-variadic-functions.
2021 * c-parser.c (c_parser_parms_list_declarator): Handle it.
2022
2023 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2024
2025 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
2026 to 0 if frame pointer is needed for unwinding.
2027
2028 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
2029
2030 PR bootstrap/50665
2031 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
2032 optab_index to enum direct_optab_index.
2033 (vec_perm_optab): Update.
2034
2035 2011-10-10 Anatoly Sokolov <aesok@post.ru>
2036
2037 * config/cris/cris.c (cris_preferred_reload_class): New function.
2038 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2039 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
2040
2041 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2042
2043 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
2044 !AVR_HAVE_JMP_CALL.
2045 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
2046 (*tablejump_enh, *tablejump): Remove insns.
2047 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
2048 EIJMP for indirect jump. Use LPM Z+ where available.
2049
2050 2011-10-10 Richard Henderson <rth@redhat.com>
2051
2052 * doc/md.texi (vec_perm_const): Fix typo in cindex.
2053
2054 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
2055 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2056
2057 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
2058
2059 2011-10-10 Richard Guenther <rguenther@suse.de>
2060
2061 PR middle-end/50389
2062 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2063 mark symbols for renaming. Append the VUSE to all statements
2064 that possibly can have one.
2065
2066 2011-10-10 Richard Guenther <rguenther@suse.de>
2067
2068 * ipa-split.c (pass_split_functions): Add verification TODOs.
2069 (pass_feedback_split_functions): Likewise.
2070
2071 2011-10-10 Richard Guenther <rguenther@suse.de>
2072
2073 PR middle-end/50195
2074 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
2075 only when optimizing.
2076
2077 2011-10-10 Nick Clifton <nickc@redhat.com>
2078
2079 PR middle-end/49801
2080 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
2081 df_get_live_out instead of accessing the bitmaps directly.
2082 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
2083 df_live_add_problem and df_analyze.
2084
2085 2011-10-10 Michael Matz <matz@suse.de>
2086
2087 PR middle-end/50638
2088 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
2089
2090 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2091
2092 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
2093 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
2094 (node_sched_params): Remove first_reg_move and nreg_moves.
2095 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
2096 (update_node_sched_params): Move up file.
2097 (print_node_sched_params): Print the stage. Don't dump info related
2098 to first_reg_move and nreg_moves.
2099 (set_columns_for_row): New function.
2100 (set_columns_for_ps): Move up file and use set_columns_for_row.
2101 (schedule_reg_move): New function.
2102 (schedule_reg_moves): Call extend_node_sched_params and
2103 schedule_reg_move. Extend size of uses bitmap. Initialize
2104 num_consecutive_stages. Return false if a move could not be
2105 scheduled.
2106 (apply_reg_moves): Don't emit moves here.
2107 (permute_partial_schedule): Handle register moves.
2108 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
2109 to the same stage-count test as ddg nodes.
2110 (generate_prolog_epilog): Update calls accordingly.
2111 (sms_schedule): Allow move-scheduling to add a new first stage.
2112
2113 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2114
2115 * modulo-sched.c (ps_insn): Adjust comment.
2116 (ps_reg_move_info): New structure.
2117 (partial_schedule): Add reg_moves field.
2118 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
2119 (node_sched_params): Turn first_reg_move into an identifier.
2120 (ps_reg_move): New function.
2121 (ps_rtl_insn): Cope with register moves.
2122 (ps_first_note): Adjust comment and assert that the instruction
2123 isn't a register move.
2124 (node_sched_params): Replace with...
2125 (node_sched_param_vec): ...this vector.
2126 (set_node_sched_params): Adjust accordingly.
2127 (print_node_sched_params): Take a partial schedule instead of a ddg.
2128 Use ps_rtl_insn and ps_reg_move.
2129 (generate_reg_moves): Rename to...
2130 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
2131 move in the partial schedule, but don't emit it here. Don't perform
2132 register substitutions here either.
2133 (apply_reg_moves): New function.
2134 (duplicate_insns_of_cycles): Use register indices directly,
2135 rather than finding instructions using PREV_INSN. Use ps_reg_move.
2136 (sms_schedule): Call schedule_reg_moves before committing to
2137 a partial schedule. Try the next ii if the schedule fails.
2138 Use apply_reg_moves instead of generate_reg_moves. Adjust
2139 call to print_node_sched_params. Free node_sched_param_vec
2140 instead of node_sched_params.
2141 (create_partial_schedule): Initialize reg_moves.
2142 (free_partial_schedule): Free reg_moves.
2143
2144 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2145
2146 * modulo-sched.c (ps_insn): Replace node field with an identifier.
2147 (SCHED_ASAP): Replace with..
2148 (NODE_ASAP): ...this macro.
2149 (SCHED_PARAMS): New macro.
2150 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
2151 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
2152 (node_sched_params): Remove asap.
2153 (ps_rtl_insn, ps_first_note): New functions.
2154 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
2155 asap values.
2156 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
2157 (generate_reg_moves): Pass ids to the SCHED_* macros.
2158 (update_node_sched_params): Take a ps insn identifier rather than
2159 a node as parameter. Use ps_rtl_insn.
2160 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
2161 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
2162 (optimize_sc): Update for above field and SCHED_* macro changes.
2163 Update calls to try_scheduling_node_in_cycle and
2164 update_node_sched_params.
2165 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
2166 macro changes. Use ps_rtl_insn and ps_first_note.
2167 (sms_schedule): Pass ids to the SCHED_* macros.
2168 (get_sched_window): Adjust for above field and SCHED_* macro changes.
2169 Use NODE_ASAP instead of SCHED_ASAP.
2170 (try_scheduling_node_in_cycle): Remove node parameter. Update
2171 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
2172 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
2173 (ps_insert_empty_row): Adjust for above field changes.
2174 (compute_split_row): Use ids rather than nodes.
2175 (verify_partial_schedule): Adjust for above field changes.
2176 (print_partial_schedule): Use ps_rtl_insn.
2177 (create_ps_insn): Take an id rather than a node.
2178 (ps_insn_find_column): Adjust for above field changes.
2179 Use ps_rtl_insn.
2180 (ps_insn_advance_column): Adjust for above field changes.
2181 (add_node_to_ps): Remove node parameter. Update call to
2182 create_ps_insn.
2183 (ps_has_conflicts): Use ps_rtl_insn.
2184 (ps_add_node_check_conflicts): Replace node parameter than an id.
2185
2186 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2187
2188 * modulo-sched.c (undo_replace_buff_elem): Delete.
2189 (generate_reg_moves): Don't build and return an undo list.
2190 (free_undo_replace_buff): Delete.
2191 (sms_schedule): Adjust call to generate_reg_moves.
2192 Don't call free_undo_replace_buff.
2193
2194 2011-10-10 Matthias Klose <doko@ubuntu.com>
2195
2196 * common/config/m32c: Remove empty directory.
2197
2198 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2199
2200 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
2201
2202 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2203
2204 PR target/50652
2205 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
2206 atmega164a to 0x100.
2207
2208 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
2209
2210 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
2211 the replacement if the conversion to the LHS type is not useless.
2212
2213 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
2214
2215 PR tree-optimization/50635
2216 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
2217 DEF_STMT to the list of statements to be replaced by the
2218 pattern statements.
2219 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
2220
2221 2011-10-09 Anatoly Sokolov <aesok@post.ru>
2222
2223 * system.h: Commit forgotten hunk in previous patch.
2224 (OUTPUT_ADDR_CONST_EXTRA): Poison.
2225
2226 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
2227
2228 PR libobjc/50428
2229 * doc/objc.texi (Garbage Collection): Updated example to protect
2230 +initialize against execution in subclasses.
2231
2232 2011-10-07 Richard Henderson <rth@redhat.com>
2233
2234 * doc/extend.texi (__builtin_shuffle): Improve the description to
2235 include the modulus of the selector. Mention OpenCL.
2236 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
2237
2238 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
2239 * genopinit.c (optabs): Rename vshuffle to vec_perm.
2240 * c-typeck.c (c_build_vec_perm_expr): Rename from
2241 c_build_vec_shuffle_expr. Update for name changes.
2242 * optabs.c (expand_vec_perm_expr_p): Rename from
2243 expand_vec_shuffle_expr_p.
2244 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
2245 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
2246 (vec_perm_optab): Rename from vshuffle_optab.
2247 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
2248 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
2249 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
2250
2251 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
2252 ix86_expand_vshuffle.
2253 * config/i386/i386-protos.h: Update.
2254 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
2255 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
2256
2257 2011-10-07 Richard Henderson <rth@redhat.com>
2258
2259 * config/i386/predicates.md (avx2_pblendw_operand): New.
2260 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
2261 (avx2_pblendw, *avx2_pblendw): New expander and insn.
2262
2263 2011-10-07 Richard Henderson <rth@redhat.com>
2264
2265 * config/i386/i386.c (bdesc_args): Update code for
2266 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
2267 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
2268 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
2269 * config/i386/sse.md (mode iterator V16): Add V2TI.
2270 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
2271 (mode attr ssse3_avx2): Add V2TI.
2272 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
2273
2274 2011-10-07 David S. Miller <davem@davemloft.net>
2275
2276 PR 50655
2277 * configure.ac: Add .register directives to VIS3 test.
2278 * configure: Regenerate.
2279
2280 2011-10-07 Richard Henderson <rth@redhat.com>
2281
2282 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
2283
2284 2011-10-07 Richard Henderson <rth@redhat.com>
2285
2286 PR 49752
2287 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
2288
2289 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
2290
2291 * config/arm/predicates.md (shift_amount_operand): Remove constant
2292 range check.
2293 (shift_operator): Check range of constants for all shift operators.
2294
2295 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2296
2297 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
2298 Load GOT pointer for non-pic builds.
2299 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
2300 (s390_emit_call): Likewise.
2301
2302 2011-10-07 Tom de Vries <tom@codesourcery.com>
2303
2304 PR middle-end/50527
2305 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
2306 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
2307 throw.
2308 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
2309 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
2310 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
2311 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
2312 * tree-ssa-ccp.c (evaluate_stmt): Set align for
2313 BUILT_IN_ALLOCA_WITH_ALIGN.
2314 (fold_builtin_alloca_for_var): Rename to ...
2315 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
2316 BUILT_IN_ALLOCA_WITH_ALIGN argument.
2317 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
2318 fold_builtin_alloca_with_align.
2319 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
2320 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
2321 DEF_BUILTIN_STUB.
2322 * ipa-pure-const.c (special_builtin_state): Handle
2323 BUILT_IN_ALLOCA_WITH_ALIGN.
2324 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
2325 (call_may_clobber_ref_p_1): Same.
2326 * function.c (gimplify_parameters): Lower vla to
2327 BUILT_IN_ALLOCA_WITH_ALIGN.
2328 * gimplify.c (gimplify_vla_decl): Same.
2329 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
2330 * tree-mudflap.c (mf_xform_statements): Same.
2331 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2332 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
2333 * varasm.c (incorporeal_function_p): Same.
2334 * tree-object-size.c (alloc_object_size): Same.
2335 * gimple.c (gimple_build_call_from_tree): Same.
2336
2337 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
2338
2339 * function.c (frame_required_for_rtx): Remove function.
2340 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
2341 changed. Compute a set of mentioned registers and compare against
2342 the new arg rather than calling frame_required_for_rtx.
2343 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
2344 reg set. Convert the unconverted_simple_returns mechanism to store
2345 jump insns rather than their basic blocks. Also check the
2346 orig_entry_edge destination for new blocks.
2347
2348 2011-10-07 Jakub Jelinek <jakub@redhat.com>
2349
2350 PR tree-optimization/50650
2351 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
2352 call vect_is_simple_cond here, instead fail if cond_expr isn't
2353 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
2354 for cond_expr's first operand.
2355 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
2356 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
2357
2358 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2359
2360 * config/s390/s390.md (DWH, dwh): New mode macros.
2361 ("umulsidi3"): Extend to support "umulditi3" as well.
2362
2363 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
2364 H.J. Lu <hongjiu.lu@intel.com>
2365
2366 PR target/50603
2367 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
2368 integer PLUS RTX to a register to improve address combine.
2369
2370 2011-10-06 Richard Henderson <rth@redhat.com>
2371
2372 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
2373 parameter; use it to decide whether to merge two notes.
2374 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
2375 for the deallocation case as well.
2376
2377 2011-10-06 Anatoly Sokolov <aesok@post.ru>
2378
2379 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
2380 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
2381 * doc/tm.texi: Regenerate.
2382 * target.def (output_addr_const_extra): Use
2383 hook_bool_FILEptr_rtx_false.
2384 * targhooks.c (default_asm_output_addr_const_extra): Remove.
2385 * targhooks.h (default_asm_output_addr_const_extra): Remove.
2386 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
2387 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
2388
2389 2011-10-06 David S. Miller <davem@davemloft.net>
2390
2391 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
2392 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
2393 SI mode 64-bit code gen case explicitly zero-extend and truncate.
2394 (*popcount<mode>_sp64): Split up into...
2395 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
2396 SImode case use truncate.
2397 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
2398 subtract so the compiler can optimize it.
2399 (SIDI): Remove unused mode iterator.
2400
2401 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
2402
2403 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
2404 on the orig_entry_edge. Don't account for it in prologue_clobbered.
2405
2406 2011-10-06 Jakub Jelinek <jakub@redhat.com>
2407
2408 PR tree-optimization/50596
2409 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
2410 (NUM_PATTERNS): Change to 6.
2411 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
2412 function.
2413 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
2414 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
2415 if it already has one, and don't set STMT_VINFO_VECTYPE in it
2416 if it is already set.
2417 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
2418 COND_EXPR in pattern stmts.
2419 (vect_is_simple_cond): No longer static.
2420
2421 2001-10-06 Richard Henderson <rth@redhat.com>
2422
2423 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
2424 * config/i386/sse.md (sseshuffint): Remove.
2425 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
2426 (VSHUFFLE_AVX2): New mode iterator.
2427 (vshuffle<mode>): Use it.
2428 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
2429
2430 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
2431 for vector_all_ones_operand.
2432 (ix86_expand_int_vcond): Distinguish between comparison mode
2433 and data mode. Allow them to differ.
2434 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
2435
2436 2001-10-06 Richard Henderson <rth@redhat.com>
2437
2438 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
2439 mask operand. Tidy the code.
2440
2441 2011-10-06 Jakub Jelinek <jakub@redhat.com>
2442
2443 * tree-vect-patterns.c (vect_pattern_recog_1): Use
2444 vect_recog_func_ptr typedef for the first argument.
2445 (vect_pattern_recog): Rename vect_recog_func_ptr variable
2446 to vect_recog_func, use vect_recog_func_ptr typedef for it.
2447
2448 PR tree-optimization/49279
2449 * tree-ssa-structalias.c (find_func_aliases): Don't handle
2450 CAST_RESTRICT.
2451 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
2452 restrict propagation.
2453 * tree-ssa.c (useless_type_conversion_p): Don't return false
2454 if TYPE_RESTRICT differs.
2455
2456 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
2457
2458 * function.c (thread_prologue_and_epilogue_insns): Build a vector
2459 of unconverted simple return blocks rather than trying to
2460 recompute them later based on bb_flags bitmap tests.
2461
2462 2011-10-06 Michael Matz <matz@suse.de>
2463
2464 * tree-flow.h (get_var_ann): Don't declare.
2465 * tree-flow-inline.h (get_var_ann): Remove.
2466 (set_is_used): Use var_ann, not get_var_ann.
2467 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
2468 * tree-profile.c (gimple_gen_edge_profiler): Call
2469 find_referenced_var_in.
2470 (gimple_gen_interval_profiler): Ditto.
2471 (gimple_gen_pow2_profiler): Ditto.
2472 (gimple_gen_one_value_profiler): Ditto.
2473 (gimple_gen_average_profiler): Ditto.
2474 (gimple_gen_ior_profiler): Ditto.
2475 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
2476 (gimple_gen_ic_func_profiler): Call add_referenced_var.
2477 * tree-mudflap.c (execute_mudflap_function_ops): Call
2478 add_referenced_var.
2479
2480 2011-10-06 Jakub Jelinek <jakub@redhat.com>
2481
2482 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
2483 don't set SSA_NAME_DEF_STMT that has been already set by
2484 gimple_build_assign_with_ops.
2485 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
2486 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
2487 Likewise.
2488
2489 * tree.h (avoid_folding_inline_builtin): New prototype.
2490 * builtins.c (avoid_folding_inline_builtin): No longer static.
2491 * gimple-fold.c (gimple_fold_builtin): Give up if
2492 avoid_folding_inline_builtin returns true.
2493
2494 2011-10-06 Richard Guenther <rguenther@suse.de>
2495
2496 * tree-vect-generic.c (vector_element): Look at previous
2497 generated results.
2498
2499 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
2500
2501 PR target/39950
2502 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
2503 __powerpc__, __PPC__, __unix__.
2504
2505 2011-10-06 Michael Matz <matz@suse.de>
2506
2507 * i386/i386.opt (recip_mask, recip_mask_explicit,
2508 x_recip_mask_explicit): New variables and cl_target member.
2509 (mrecip=): New option.
2510 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
2511 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
2512 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
2513 TARGET_RECIP_VEC_SQRT): New tests.
2514 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
2515 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
2516 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
2517 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
2518 * i386/i386.c (ix86_option_override_internal): Set recip_mask
2519 for -mrecip and -mrecip=options.
2520 (ix86_function_specific_save): Save recip_mask_explicit.
2521 (ix86_function_specific_restore): Restore recip_mask_explicit.
2522
2523 * doc/invoke.texi (ix86 Options): Document the new option.
2524
2525 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
2526
2527 PR target/49049
2528 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
2529
2530 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
2531
2532 PR target/50305
2533 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
2534 output of a previous pass through legitimize_reload_address.
2535 Do not attempt to optimize addresses if the base register is
2536 equivalent to a constant.
2537
2538 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2539
2540 * function.c (thread_prologue_and_epilogue_insns): Mark
2541 last_bb_active as possibly unused. It is unused for targets which
2542 do neither have "return" nor "simple_return" expanders.
2543
2544 2011-10-06 Richard Guenther <rguenther@suse.de>
2545
2546 * fold-const.c (fold_ternary_loc): Also fold non-constant
2547 vector CONSTRUCTORs. Make more efficient.
2548 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
2549 (cprop_into_stmt): Don't propagate into virtual operands.
2550 (optimize_stmt): Really dump original statement.
2551
2552 2011-10-06 Nick Clifton <nickc@redhat.com>
2553
2554 * config/rx/rx.md (smin3): Revert previous delta.
2555
2556 2011-10-06 Richard Guenther <rguenther@suse.de>
2557
2558 PR tree-optimization/38884
2559 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
2560 reads from aggregate SSA names.
2561
2562 2011-10-05 Jakub Jelinek <jakub@redhat.com>
2563
2564 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
2565 argument, truncate it at the beginning instead of allocating there
2566 and freeing at the end.
2567 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
2568 pass its address to vect_pattern_recog_1.
2569
2570 2011-10-05 David S. Miller <davem@davemloft.net>
2571
2572 * config/sparc/sparc.opt (POPC): New option.
2573 * doc/invoke.texi: Document it.
2574 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
2575 default on Niagara-2 and later.
2576 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2577 * config/sparc/sparc.md (SIDI): New mode iterator.
2578 (ffsdi2): Delete commented out pattern and comments.
2579 (popcount<mode>2, clz<mode>2): New expanders.
2580 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
2581 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
2582
2583 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2584
2585 PR middle-end/50607
2586 * c-tree.h (c_expr_t): New typedef for struct c_expr.
2587 (C_EXPR_APPEND): New macro.
2588 * c-parser.c (c_parser_get_builtin_args): Preserve
2589 original_tree_code of c_expr structure.
2590 (c_parser_postfix_expression): Adjust to the new function.
2591
2592 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2593
2594 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
2595 if profiling after the prologue.
2596
2597 2011-10-05 Jakub Jelinek <jakub@redhat.com>
2598
2599 PR tree-optimization/50613
2600 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
2601 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
2602 and if it is neither that not SSA_NAME, give up.
2603
2604 2011-10-05 Richard Henderson <rth@redhat.com>
2605
2606 * tree-vect-generic.c (vector_element): Never fail. Use
2607 build_zero_cst. Tidy up type references.
2608 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
2609 code duplication. Do update_stmt here ...
2610 (expand_vector_operations_1): ... not here.
2611
2612 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
2613 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
2614 duplication. Handle V2DI without SSE4.1.
2615 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
2616 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
2617
2618 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
2619
2620 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
2621 of "found". Simplify return value calculation.
2622 (distance_agu_use): Ditto.
2623
2624 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2625
2626 PR bootstrap/50621
2627 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
2628 if the function was not shrink-wrapped.
2629 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
2630 to an insn.
2631 * function.c (thread_prologue_and_epilogue_insns): Make sure the
2632 shrink_wrapped flag is set even if there is no dump file.
2633
2634 2011-10-05 DJ Delorie <dj@redhat.com>
2635 Nick Clifton <nickc@redhat.com>
2636
2637 * config/rx/rx.opt (mpid): Define.
2638 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
2639 (MULTILIB_DIRNAMES): Add pid.
2640 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
2641 (rx_num_interrupt_regs): New variable.
2642 (rx_gp_base_regnum): New function. Returns the number of the
2643 small data area register.
2644 (rx_pid_base_regnum): New function. Returns the number of the pid
2645 base register.
2646 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
2647 (rx_pid_data_operand): New function. Returns whether an object is
2648 in the position independent data area.
2649 (rx_legitimize_address): New function. Puts undecided PID
2650 objects in the PID data area.
2651 (rx_is_legitimate_address): Add support for PID operands.
2652 (rx_print_operand_address): Likewise.
2653 (rx_print_operand): Likewise.
2654 (rx_maybe_pidify_operand): New function. Determine if an operand
2655 is suitable for PID addressing.
2656 (rx_gen_move_template): Add PID support.
2657 (rx_conditional_register_usage): Likewise.
2658 (rx_option_override): Initialise rx_num_interrupt_regs.
2659 (rx_is_legitimate_constant): Add support for PID constants.
2660 (TARGET_LEGITIMIZE_ADDRESS): Define.
2661 * config/rx/constraints.md (Rpid): Define.
2662 (Rpda): Define.
2663 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
2664 (tablejump): Add PID support.
2665 (mov<>): Likewise.
2666 (mov<>_internal): Likewise.
2667 (addsi3): Convert to an expander. Add PID support.
2668 (pid_addr): New pattern.
2669 * config/rx/rx.h (CPP_SPEC): Define.
2670 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
2671 (CASE_VECTOR_PC_RELATIVE): Define.
2672 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
2673 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
2674 * doc/invoke.texi (RX Options): Document -mpid command line option.
2675
2676 2011-10-05 Richard Guenther <rguenther@suse.de>
2677
2678 PR tree-optimization/38885
2679 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
2680 from constants.
2681
2682 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2683
2684 * doc/invoke.texi (-fshrink-wrap): Document.
2685 * opts.c (default_options_table): Add it.
2686 * common.opt (fshrink-wrap): Add.
2687 * function.c (emit_return_into_block): Remove useless declaration.
2688 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
2689 requires_stack_frame_p, gen_return_pattern): New static functions.
2690 (emit_return_into_block): New arg simple_p. All callers changed.
2691 Use gen_return_pattern.
2692 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
2693 * config/i386/i386.md (return): Expand into a simple_return.
2694 (simple_return): New expander):
2695 (simple_return_internal, simple_return_internal_long,
2696 simple_return_pop_internal_long, simple_return_indirect_internal):
2697 Renamed from return_internal, return_internal_long,
2698 return_pop_internal_long and return_indirect_internal; changed to use
2699 simple_return.
2700 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
2701 simple returns.
2702 (ix86_pad_returns): Likewise.
2703 * function.h (struct rtl_data): Add member shrink_wrapped.
2704 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
2705 are not jumps or sibcalls can't be compared.
2706
2707 2011-10-05 Richard Guenther <rguenther@suse.de>
2708
2709 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
2710 vector type.
2711 (simplify_unary_expression): Handle BIT_FIELD_REFs.
2712 (try_to_simplify): Handle BIT_FIELD_REFs.
2713
2714 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
2715
2716 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
2717 * config/avr/avr.c (avr_out_addto_sp): New function.
2718 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
2719 * config/avr/avr.md (adjust_len): Add "addto_sp".
2720 (*movhi_sp): Remove insn.
2721 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
2722
2723 2011-10-05 Richard Guenther <rguenther@suse.de>
2724
2725 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
2726 with an embedded expression valueize and fold that as well.
2727 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
2728 results from gimple_fold_stmt_to_constant_1.
2729
2730 2011-10-05 Nick Clifton <nickc@redhat.com>
2731
2732 * config/rx/rx.md (tablejump): Add missing label.
2733 (adddi3_internal): Mark operand 0 as early-clobbered.
2734 (smaxsi3): Revert previous delta.
2735 (adc_internal): Fix whitespace in generated asm.
2736 (adc_flags): Likewise.
2737
2738 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2739
2740 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
2741 with the new widening_optab_handler.
2742
2743 2011-10-05 Richard Guenther <rguenther@suse.de>
2744
2745 PR tree-optimization/50609
2746 * gimple-fold.c (fold_array_ctor_reference): Also handle
2747 vector typed constructors.
2748 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
2749 for vector typed constructors.
2750
2751 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
2752
2753 * config/i386/i386.c (ix86_emit_binop): New static function.
2754 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
2755 instructions.
2756 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
2757
2758 2011-10-04 David S. Miller <davem@davemloft.net>
2759
2760 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
2761 UNSPEC_XMUL): New unspecs.
2762 (muldi3_v8plus): Use output_v8plus_mult.
2763 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
2764 New VIS 3.0 combiner patterns.
2765 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
2766 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
2767 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
2768 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
2769 builtins patterns.
2770 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
2771 (output_v8plus_mult): New function.
2772 * config/sparc/sparc-protos.h: Declare it.
2773 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
2774 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
2775 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
2776 * doc/extend.texi: Document new builtins.
2777
2778 2011-10-04 Richard Henderson <rth@redhat.com>
2779
2780 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
2781 Avoid save_expr unless two_arguments.
2782
2783 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
2784
2785 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
2786 * config/i386/mingw32.h (CPP_SPEC): Likewise.
2787
2788 2011-10-04 David S. Miller <davem@davemloft.net>
2789
2790 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
2791 under Linux.
2792
2793 2011-10-04 Jakub Jelinek <jakub@redhat.com>
2794
2795 PR tree-optimization/50604
2796 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
2797 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
2798 last argument to memcpy has size_type_node type instead of ssizetype.
2799 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
2800 instead of TREE_TYPE (len) as type for newlen.
2801
2802 PR tree-optimization/50522
2803 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
2804 TYPE_RESTRICT.
2805 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
2806 unconditionally.
2807
2808 * fold-const.c (fold_unary_loc): Don't optimize
2809 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
2810 casting the inner pointer if it isn't TYPE_RESTRICT.
2811 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
2812 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
2813
2814 2011-10-04 Joseph Myers <joseph@codesourcery.com>
2815
2816 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2817
2818 2011-10-04 Jan Hubicka <jh@suse.cz>
2819
2820 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2821 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2822 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2823 * lto-cgraph.c (order_base): New static var.
2824 (lto_output_node): Stream in order.
2825 (lto_output_varpool_node): Stream out order.
2826 (input_node): Stream in order.
2827 (input_varpool_node): Stream out order.
2828 (input_cgraph_1): Initialize order base; update call of
2829 lto_input_toplevel_asms.
2830
2831 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
2832
2833 PR target/50566
2834 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2835 prototype.
2836 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2837 from here...
2838 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2839 function. Log if avr_log.legitimize_reload_address.
2840
2841 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
2842
2843 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2844
2845 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2846
2847 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2848 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
2849
2850 2011-10-03 David S. Miller <davem@davemloft.net>
2851
2852 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2853 GSR_REG an input operand to UNSPEC instead of a parallel USE.
2854 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2855 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2856 Reference GSR_REG in DI mode, simplify convoluted expressions by using
2857 zero_extract.
2858 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2859
2860 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
2861
2862 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2863
2864 2011-10-03 Jakub Jelinek <jakub@redhat.com>
2865 Ian Lance Taylor <iant@google.com>
2866
2867 * godump.c (go_output_typedef): Support printing enum values that
2868 don't fit in a signed HOST_WIDE_INT.
2869
2870 2011-10-03 Anatoly Sokolov <aesok@post.ru>
2871
2872 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2873 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2874 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2875 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2876
2877 2011-10-03 Anatoly Sokolov <aesok@post.ru>
2878
2879 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2880 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2881 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2882 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2883
2884 2011-10-03 Steve Ellcey <sje@cup.hp.com>
2885
2886 PR target/49967
2887 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2888 (gcc_cv_ld_static_option): Ditto.
2889 (gcc_cv_ld_dynamic_option): Ditto.
2890 * configure: Regenerate.
2891
2892 2011-10-03 David S. Miller <davem@davemloft.net>
2893
2894 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2895 and 'si' patterns which describe the GSR changes explicitly in the
2896 RTL using zero_extract.
2897 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2898
2899 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2900 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2901
2902 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2903
2904 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2905 if given expression can be expanded by the target.
2906 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2907 using target vector instructions.
2908 * optabs.h: New optab vshuffle.
2909 (expand_vec_shuffle_expr_p): New prototype.
2910 (expand_vec_shuffle_expr): New prototype.
2911 (vshuffle_optab): New optab.
2912 * genopinit.c: Adjust to support vecshuffle.
2913 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2914 * expr.c (expand_expr_real_2): Adjust.
2915 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2916 recognizing the cases of two and three arguments.
2917 (convert_arguments) (build_binary_op)
2918 (scalar_to_vector) (build_array_ref): Spurious whitespace.
2919 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2920 * tree.def: New tree code VEC_SHUFFLE_EXPR.
2921 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2922 * tree-vect-generic.c (vector_element): New function. Returns an
2923 element of the vector at the given position.
2924 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2925 by the backend or expand an expression piecewise.
2926 (expand_vector_operations_1): Adjusted.
2927 (gate_expand_vector_operations_noop): New gate function.
2928 * Makefile.in (tree-vect-generic.o): New include.
2929 * gimple.c (get_gimple_rhs_num_ops): Adjust.
2930 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2931 * passes.c: Move veclower down.
2932 * tree-pretty-print.c (dump_generic_node): Recognize
2933 VEC_SHUFFLE_EXPR as valid expression.
2934 * c-parser.c (c_parser_get_builtin_args): Helper function for the
2935 builtins with variable number of arguments.
2936 (c_parser_postfix_expression): Use a new helper function for
2937 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2938 * tree-ssa-operands: Adjust.
2939 * c-family/c-common.c: New __builtin_shuffle keyword.
2940 * c-family/c-common.h: New __builtin_shuffle keyword.
2941 * gcc/doc/extend.texi: Adjust.
2942
2943 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
2944 between the vector and the type of the mask when shuffling.
2945 (vecshuffle<mode>): New expansion.
2946 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2947 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2948 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2949
2950 2011-10-03 Jakub Jelinek <jakub@redhat.com>
2951
2952 PR tree-optimization/50587
2953 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2954 arg0 is not a SSA_NAME.
2955
2956 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
2957
2958 * ipa-inline-analysis.c (MAX_TIME): Update comment.
2959
2960 2011-10-02 Richard Henderson <rth@redhat.com>
2961 David S. Miller <davem@davemloft.net>
2962
2963 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2964 conditional insn type setting, we always emit a shift.
2965 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2966 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2967 * config/sparc/predicates.md (const_one_operand): Delete.
2968
2969 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
2970
2971 * invoke.texi (SPARC Options): Refer to GNU/Linux.
2972
2973 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
2974
2975 * config/mips/mips.c (mips_frame_barrier): New function.
2976 (mips_expand_prologue): Call it after allocating stack space.
2977 (mips_deallocate_stack): New function.
2978 (mips_expand_epilogue): Call mips_frame_barrier and
2979 mips_deallocate_stack.
2980
2981 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
2982
2983 PR target/49696
2984 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2985 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2986 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2987
2988 2011-10-02 Jan Hubicka <jh@suse.cz>
2989
2990 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2991
2992 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2993 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2994 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2995 functions are reachable when address is taken.
2996 * tree-sra.c (modify_function): Free dominance info.
2997
2998 2011-10-02 Jan Hubicka <jh@suse.cz>
2999
3000 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
3001
3002 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
3003 (reset_inline_summary): New function.
3004 (compute_inline_parameters, inline_node_removal_hook,
3005 inline_edge_removal_hook): Use it.
3006 (inline_free_summary): Reset holders correctly.
3007 (inline_generate_summary): Free summary before computing it.
3008
3009 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
3010
3011 PR preprocessor/36819
3012 * incpath.c (merge_include_chains): Call free_path on
3013 heads[QUOTE] and tails[QUOTE].
3014
3015 2011-10-02 Jan Hubicka <jh@suse.cz>
3016
3017 PR lto/47247
3018 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
3019 when resolution is already availbale from plugin.
3020 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
3021 * cgraph.c (ld_plugin_symbol_resolution): Add
3022 prevailing_def_ironly_exp.
3023 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
3024 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
3025 externally visible.
3026 * varasm.c (resolution_to_local_definition_p): Add
3027 LDPR_PREVAILING_DEF_IRONLY_EXP.
3028 (resolution_local_p): Likewise.
3029
3030 2011-10-01 David S. Miller <davem@davemloft.net>
3031
3032 * config/sparc/sparc.opt (VIS3): New option.
3033 * doc/invoke.texi: Document it.
3034 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
3035 not capable of such instructions.
3036 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
3037 to 0x300 when TARGET_VIS3.
3038 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
3039 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
3040 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
3041 (V64N8, VASS): New mode iterators.
3042 (vis3_shift, vis3_addsub_ss): New code iterators.
3043 (vbits, vconstr): New mode attributes.
3044 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
3045 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
3046 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
3047 fmean16_vis, fpadd64_vis, fpsub64_vis,
3048 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
3049 VIS 3.0 instruction patterns.
3050 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
3051 default when targetting capable cpus. TARGET_VIS3 implies
3052 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
3053 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
3054 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
3055 is ignored.
3056 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
3057 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
3058 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
3059 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
3060 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
3061 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
3062 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
3063 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
3064 * doc/extend.texi: Document new VIS 3.0 builtins.
3065
3066 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
3067
3068 * ira-color.c (assign_hard_reg): Fix typo.
3069
3070 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
3071
3072 * doc/extend.texi: Add missing ','.
3073
3074 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3075
3076 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
3077 Enable -fmodulo-sched at -O2 and above.
3078 * config/c6x/c6x.md (doloop_end): New expander.
3079 (mvilc, sploop, spkernel, loop_end): New patterns.
3080 (loop_end with memory destination splitter): New.
3081 * config/c6x/c6x.c: Include "hw-doloop.h".
3082 (enum unitreqs): New.
3083 (unit_req_table): New typedef.
3084 (unit_reqs): New static variable.
3085 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
3086 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
3087 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
3088 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
3089 (struct c6x_sched_context): New member last_scheduled_iter0.
3090 (init_sched_state): Initialize it.
3091 (c6x_variable_issue): Update it.
3092 (sploop_max_uid_iter0): New static variable.
3093 (c6x_sched_reorder_1): Be careful about issuing sploop.
3094 (c6x_reorg): Call c6x_hwlooops before the final schedule.
3095
3096 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
3097
3098 PR target/50566
3099 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
3100 * config/avr/avr.c (avr_address_cost): Use it.
3101 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
3102 (avr_log_vadump): Unknown %-codes finish printing.
3103
3104 2011-09-30 Jakub Jelinek <jakub@redhat.com>
3105
3106 PR inline-asm/50571
3107 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
3108 input constraints allow mem and not reg, pass true instead of
3109 false as second argument to maybe_fold_reference.
3110
3111 PR tree-optimization/46309
3112 * fold-const.c (make_range, merge_ranges): Remove prototypes.
3113 (make_range_step): New function.
3114 (make_range): Use it.
3115 * tree.h (make_range_step): New prototypes.
3116 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
3117 * tree-ssa-reassoc.c: Include diagnostic-core.h.
3118 (struct range_entry): New type.
3119 (init_range_entry, range_entry_cmp, update_range_test,
3120 optimize_range_tests): New functions.
3121 (reassociate_bb): Call optimize_range_tests.
3122
3123 2011-09-30 Jakub Jelinek <jakub@redhat.com>
3124 Richard Guenther <rguenther@suse.de>
3125
3126 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
3127 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
3128 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
3129 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
3130 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
3131 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
3132
3133 2011-09-30 Jan Beulich <jbeulich@suse.com>
3134
3135 * lto-cgraph.c (output_cgraph): Remove processing of
3136 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
3137 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
3138 lto_input_toplevel_asms() instead.
3139 * lto-section-in.c (lto_section_name): Add "asm" entry.
3140 * lto-streamer-in.c (lto_input_toplevel_asms): New.
3141 * lto-streamer-out.c (lto_output_toplevel_asms): New.
3142 * lto-streamer.h (LTO_minor_version): Bump.
3143 (enum lto_section_type): Add LTO_section_asm.
3144 (struct lto_asm_header): New.
3145 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
3146 * tree-streamer.h (streamer_write_string_cst): Declare.
3147 * tree-streamer-out.c (write_string_cst): Rename to
3148 streamer_write_string_cst and make global. Handle incoming string
3149 being NULL.
3150 (streamer_write_tree_header): Adjust call to renamed function.
3151
3152 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3153
3154 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
3155 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
3156 modulo_last_stage): New static variables.
3157 (set_modulo_params, discard_delay_pairs_above): New functions.
3158 (struct delay_pair): New member stages.
3159 (htab_i2_traverse, htab_i1_traverse): New static functions.
3160 (record_delay_slot_pair): New arg stages. All callers changed.
3161 Record it.
3162 (pair_delay): Take stages into account.
3163 (add_delay_dependencies): Don't do so for stage pairs.
3164 (struct sched_block_state): New member modulo_epilogue.
3165 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
3166 (unschedule_insns_until): Decrease modulo_insns_scheduled.
3167 Set HARD_DEP without using or.
3168 (resolve_dependencies): New static function.
3169 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
3170 If it is true, allow only insns with INSN_EXACT_TICK set.
3171 (schedule_block): Return bool, always true for normal scheduling,
3172 true or false depending on modulo scheduling success otherwise.
3173 Add bookkeeping for modulo scheduling, and call resolve_dependencies
3174 on everything left over after a modulo schedule.
3175 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
3176 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
3177 declarations.
3178 (set_modulo_params, discard_delay_pairs_above): Declare.
3179 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
3180 * doc/invoke.texi (--param): Document it.
3181
3182 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
3183 New arg modulo_scheduling. All callers changed. Move note handling
3184 code here from schedule_ebbs.
3185 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
3186 out of schedule_ebbs.
3187 (schedule_ebbs): Call them. Remove note handling code moved to
3188 schedule_ebb.
3189 * sched-int.h (schedule_ebb, schedule_ebbs_init,
3190 schedule_ebbs_finish): Declare.
3191
3192 2011-09-30 Richard Guenther <rguenther@suse.de>
3193
3194 PR middle-end/50574
3195 * tree-cfg.c (verify_gimple_comparison): Compare component
3196 mode sizes for vector comparisons.
3197
3198 2011-09-30 Revital Eres <revital.eres@linaro.org>
3199
3200 * ddg.c (autoinc_var_is_used_p): New function.
3201 (create_ddg_dep_from_intra_loop_link,
3202 add_cross_iteration_register_deps): Call it.
3203 * ddg.h (autoinc_var_is_used_p): Declare.
3204 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
3205 (sms_schedule): Handle instructions with REG_INC.
3206
3207 2011-09-30 Revital Eres <revital.eres@linaro.org>
3208
3209 * modulo-sched.c (generate_reg_moves): Skip instructions that
3210 do not set a register and verify no regmoves are created for
3211 !single_set instructions.
3212
3213 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3214
3215 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
3216 insns.
3217
3218 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3219
3220 PR target/50099
3221 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
3222 (qhs_zextenddi_op): New.
3223 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
3224 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
3225 Distinguish between ARM and Thumb2 states.
3226
3227 2011-09-30 David S. Miller <davem@davemloft.net>
3228
3229 * config/sparc/sparc.opt (VIS2): New option.
3230 * doc/invoke.texi: Document it.
3231 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
3232 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
3233 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
3234 (define_attr type): New insn type 'edgen'.
3235 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
3236 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
3237 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
3238 patterns.
3239 * niagara.md: Handle edgen.
3240 * niagara2.md: Likewise.
3241 * ultra1_2.md: Likewise.
3242 * ultra3.md: Likewise.
3243 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
3244 to 0x200 when TARGET_VIS2.
3245 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
3246 default when targetting capable cpus. TARGET_VIS2 implies
3247 TARGET_VIS, clear and it when TARGET_FPU is disabled.
3248 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
3249 (sparc_expand_builtin): Fix predicate indexing when builtin returns
3250 void.
3251 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
3252 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
3253 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
3254 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
3255 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
3256 * doc/extend.texi: Document new VIS 2.0 builtins.
3257
3258 2011-09-29 Nick Clifton <nickc@redhat.com>
3259 Bernd Schmidt <bernds@codesourcery.com>
3260
3261 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
3262 * config/frv/frvend.c: Likewise.
3263 * config/frv/frv.c (frv_function_prologue): Move misplaced
3264 CALL_ARG_LOCATION notes back to their proper locations.
3265
3266 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
3267
3268 PR target/50566
3269 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
3270 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
3271 from avr_rtx_costs.
3272 (avr_legitimate_address_p): Use avr_edump to print log information
3273 filtered by avr_log.
3274 (extra_constraint_Q): Ditto.
3275 (avr_legitimize_address): Ditto.
3276 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
3277 (final_prescan_insn): Use avr_log.rtx_costs as filter.
3278
3279 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
3280
3281 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
3282 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
3283 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
3284 NEON vector and structure modes to be tied.
3285
3286 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3287
3288 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
3289 forward declaration.
3290 (remove_duplicate_close_phi): Detect and repair creation of
3291 duplicate close-phis for a containing loop.
3292
3293 2011-09-27 Andi Kleen <ak@linux.intel.com>
3294
3295 * gcc.c (get_local_tick). Rename to get_random_number. Read from
3296 /dev/urandom. Add getpid call.
3297 (compare_debug_dump_opt_spec_function): Drop getpid call.
3298
3299 2011-09-26 Andi Kleen <ak@linux.intel.com>
3300
3301 * toplev.c (init_local_tick): Try reading random seed
3302 from /dev/urandom.
3303
3304 2011-09-26 Andi Kleen <ak@linux.intel.com>
3305
3306 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
3307 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
3308 Handle numerical random seed.
3309 * lto-streamer.h (lto_file_decl_data): Change id to
3310 unsigned HOST_WIDE_INT.
3311 * toplev.c (random_seed): Add.
3312 (init_random_seed): Change for numerical random seed.
3313 (get_random_seed): Return as HOST_WIDE_INT.
3314 (set_random_seed): Crc32 existing string.
3315 * toplev.h (get_random_seed): Change to numercal return.
3316 * tree.c (get_file_function_name): Remove CRC. Handle
3317 numerical random seed.
3318
3319 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
3320
3321 PR target/50566
3322 * config.gcc (extra_objs): Add avr-log.o for $target in:
3323 avr-*-rtems*, avr-*-*.
3324 * config/avr/t-avr (avr-log.o): New rule to compile...
3325 * config/avr/avr-log.c: ...this new file.
3326 * config/avr/avr.opt (mlog=): New option.
3327 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
3328 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
3329 (avr_log_set_avr_log): New prototype.
3330 (avr_log_t): New typedef.
3331 (avr_log): New declaration.
3332 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
3333
3334 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3335
3336 * expr.c (do_store_flag): Expand vector comparison by
3337 building an appropriate VEC_COND_EXPR.
3338 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
3339 (c_objc_common_truthvalue_conversion): Adjust.
3340 * tree-vect-generic.c (do_compare): Helper function.
3341 (expand_vector_comparison): Check if hardware supports
3342 vector comparison of the given type or expand vector piecewise.
3343 (expand_vector_operation): Treat comparison as binary
3344 operation of vector type.
3345 (expand_vector_operations_1): Adjust.
3346
3347 2011-09-29 Richard Guenther <rguenther@suse.de>
3348
3349 * tree.c (build_opaque_vector_type): Make opaque vectors
3350 variant types of the corresponding non-opaque type. Make
3351 sure to share opaque vector types properly.
3352
3353 2011-09-29 David S. Miller <davem@davemloft.net>
3354
3355 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
3356 UNSPEC_ARRAY32): New unspec.
3357 (define_attr type): New type 'array'.
3358 (array{8,16,32}<P:mode>_vis): New patterns.
3359 * config/sparc/ultra1_2.md: Add reservations for 'array'.
3360 * config/sparc/ultra3.md: Likewise.
3361 * config/sparc/niagara.md: Likewise.
3362 * config/sparc/niagara2.md: Likewise.
3363 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
3364 array builtins.
3365 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
3366 __vis_array32): New.
3367 * doc/extend.texi: Document new VIS builtins.
3368
3369 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
3370 (VIS pixel-compare insn): Just use <gcond:name>.
3371
3372 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
3373 code iterator used, so just use <code>. There are two mode iterators
3374 so explicitly use <GCM:gcm_name>.
3375
3376 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
3377
3378 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
3379 Darwin >= 9.
3380
3381 2011-09-28 David S. Miller <davem@davemloft.net>
3382
3383 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
3384 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
3385 (UNSPEC_FCMP): New unspec.
3386 (gcond): New code iterator.
3387 (gcond_name): New code attr.
3388 (GCM): New mode iterator.
3389 (gcm_name): New mode attr.
3390 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
3391
3392 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
3393
3394 PR target/49486
3395 * config/sh/sh.md (negdi2): Move expansion into split to
3396 allow more combination options. Add T_REG clobber.
3397 (abssi2): New expander.
3398 (*negdi2, *abssi2, *negabssi2): New insns.
3399 (cneg): Change from insn to insn_and_split. Rename to
3400 negsi_cond. Add alternative for non-SH4.
3401
3402 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
3403
3404 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
3405 (neon_move_hi_quad_<mode>): Likewise.
3406 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
3407
3408 2011-09-28 Nick Clifton <nickc@redhat.com>
3409
3410 * config/rx/predicates.md (rx_minmax_operand): New predicate.
3411 Accepts immediates and a restricted subset of MEMs.
3412 * config/rx/rx.md (int_modes): New iterator.
3413 (smaxsi3, sminsi3): Delete and replace with...
3414 (smax<int_mode>3, smin<int_mode>3): New patterns.
3415 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
3416
3417 2011-09-28 Richard Guenther <rguenther@suse.de>
3418
3419 PR middle-end/50460
3420 * fold-const.c (try_move_mult_to_index): Handle &a.array the
3421 same as &a.array[0].
3422
3423 2011-09-28 Kai Tietz <ktietz@redhat.com>
3424
3425 * configure.ac: Add test for new section attribute
3426 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
3427 * config.in: Regenerated.
3428 * configure: Regenerated.
3429 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
3430 new section flag "e" for excluded sections, if supported.
3431 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
3432
3433 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
3434
3435 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
3436 throughout file.
3437
3438 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
3439
3440 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
3441 throughout file.
3442
3443 2011-09-27 Sriraman Tallam <tmsriram@google.com>
3444
3445 * output.h (SECTION_EXCLUDE): New macro.
3446 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
3447
3448 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
3449
3450 * fwprop.c (forward_propagate_and_simplify): After checking
3451 reg/subreg combinations, check whether the modes are the same.
3452
3453 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
3454 Richard Sandiford <rdsandiford@googlemail.com>
3455
3456 * config/mips/mips.c (mips_add_cfa_restore): New function.
3457 (mips16e_save_restore_reg): Use it.
3458 (mips_restore_reg): Likewise. Split double FPRs for
3459 REG_CFA_RESTORE notes.
3460
3461 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
3462
3463 PR middle-end/50386
3464 PR middle-end/50326
3465 * tree-sra.c (build_ref_for_model): Use the type of the field as
3466 the type of the COMPONENT_REF.
3467
3468 2011-09-27 Jeff Law <law@redhat.com>
3469
3470 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
3471 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
3472 (find_if_case_1): Use the probability of the THEN clause when
3473 determining if speculation is profitable.
3474 (find_if_case_2): Similarly for the ELSE clause.
3475
3476 2011-09-27 Jakub Jelinek <jakub@redhat.com>
3477
3478 * common.opt: Add -foptimize-strlen option.
3479 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
3480 (tree-sssa-strlen.o): Add dependencies.
3481 * opts.c (default_options_table): Enable -foptimize-strlen
3482 by default at -O2 if not -Os.
3483 * passes.c (init_optimization_passes): Add pass_strlen
3484 after pass_object_sizes.
3485 * timevar.def (TV_TREE_STRLEN): New timevar.
3486 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
3487 * tree-pass.h (pass_strlen): Declare.
3488 * tree-ssa-strlen.c: New file.
3489 * c-decl.c (merge_decls): If compatible stpcpy prototype
3490 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
3491
3492 2011-09-27 Tom de Vries <tom@codesourcery.com>
3493
3494 PR middle-end/43864
3495 * tree-ssa-tail-merge.c: New file.
3496 (struct same_succ_def): Define.
3497 (same_succ, const_same_succ): New typedef.
3498 (struct bb_cluster_def): Define.
3499 (bb_cluster, const_bb_cluster): New typedef.
3500 (struct aux_bb_info): Define.
3501 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
3502 (gvn_uses_equal): New function.
3503 (same_succ_print, same_succ_print_traverse, update_dep_bb)
3504 (stmt_update_dep_bb, local_def, same_succ_hash)
3505 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
3506 (same_succ_reset): New function.
3507 (same_succ_htab, same_succ_edge_flags)
3508 (deleted_bbs, deleted_bb_preds): New var.
3509 (debug_same_succ): New function.
3510 (worklist): New var.
3511 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
3512 (init_worklist, delete_worklist, delete_basic_block_same_succ)
3513 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
3514 (print_cluster, debug_cluster, update_rep_bb)
3515 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
3516 (all_clusters): New var.
3517 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
3518 (merge_clusters, set_cluster): New function.
3519 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
3520 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
3521 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
3522 (find_clusters_1, find_clusters): New function.
3523 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
3524 (update_bbs): New var.
3525 (apply_clusters): New function.
3526 (update_debug_stmt, update_debug_stmts): New function.
3527 (tail_merge_optimize): New function.
3528 tree-pass.h (tail_merge_optimize): Declare.
3529 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
3530 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
3531 (tree-ssa-tail-merge.o): New rule.
3532 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
3533 default at OPT_LEVELS_2_PLUS.
3534 * tree-ssa-sccvn.c (vn_valueize): Move to ...
3535 * tree-ssa-sccvn.h (vn_valueize): Here.
3536 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
3537 * common.opt (ftree-tail-merge): New switch.
3538 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
3539 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
3540 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
3541 (-ftree-tail-merge, max-tail-merge-comparisons)
3542 (max-tail-merge-iterations): New item.
3543
3544 2011-09-27 Jan Hubicka <jh@suse.cz>
3545
3546 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
3547
3548 2011-09-27 Jan Hubicka <jh@suse.cz>
3549
3550 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
3551 parameters passed by reference; handle loads from non-SSA scalars
3552 and update comments.
3553
3554 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
3555
3556 PR rtl-optimization/50249
3557 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
3558 instead of opnum and type. All callers changed. Remove useless
3559 declaration.
3560 Search forward for other reloads of the same type for the same operand
3561 using the same register; if any are found, return false.
3562 (reload_regs_reach_end_p): Same argument changes; all callers changed.
3563
3564 2011-09-27 Andi Kleen <ak@linux.intel.com>
3565 Jan Hubicka <jh@suse.cz>
3566
3567 * doc/invoke.texi (ffat-lto-objects): Document.
3568 * toplev.c (compile_file): Do not output assembly when doing slim lto;
3569 Output __gnu_slim_lto when doing slim lto.
3570 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
3571 (cgraph_optimize): Return early when doing slim lto.
3572 * opts.c (finish_options): Complain about lack of linker plugin
3573 when doing slim lto.
3574 * common.opt (ffat-lto-objects): New.
3575
3576 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
3577
3578 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
3579 between signed and unsigned.
3580
3581 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
3582
3583 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
3584 vectorization.
3585 (vectorizable_type_promotion): Likewise.
3586 (vect_analyze_stmt): Call vectorizable_type_demotion and
3587 vectorizable_type_promotion for basic blocks.
3588 (supportable_widening_operation): Don't assume loop vectorization.
3589 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
3590 basic blocks. Update vectorization factor for basic block
3591 vectorization.
3592 (vect_analyze_slp_instance): Allow multiple types for basic block
3593 vectorization. Recheck unrolling factor after construction of SLP
3594 instance.
3595
3596 2011-09-27 Richard Guenther <rguenther@suse.de>
3597
3598 * tree-object-size.c (compute_object_sizes): Fix dumping of
3599 folded statement.
3600
3601 2011-09-27 Richard Guenther <rguenther@suse.de>
3602
3603 PR tree-optimization/50363
3604 * tree-ssa-pre.c (create_expression_by_pieces): Handle
3605 pointer conversions in POINTER_PLUS_EXPRs properly.
3606
3607 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
3608
3609 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
3610 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
3611 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
3612 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
3613 that produce subreg moves. Define using VQX iterators.
3614
3615 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
3616
3617 * config/avr/avr.md (ashrqi3): Split alternative "n"
3618 into its remaining parts C03, C04, C05, C06, C07 and describe
3619 impact in CC by attribute "cc" appropriately.
3620 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
3621 by digging RTX.
3622
3623 2011-09-27 Jakub Jelinek <jakub@redhat.com>
3624
3625 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
3626 from 3 x MAX_MACHINE_MODE.
3627 (CONSTM1_RTX): Define.
3628 * emit-rtl.c (const_tiny_rtx): Change into array of
3629 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
3630 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
3631 CONSTM1_RTX.
3632 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
3633 MODE_VECTOR_INT modes.
3634 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
3635 Optimize if one operand is CONSTM1_RTX.
3636 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
3637 into mask | x.
3638
3639 2011-09-26 David S. Miller <davem@davemloft.net>
3640
3641 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
3642 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
3643 * config/sparc/visintrin.h: Update edge and pixel-compare
3644 intrinsics to return 'long' instead of 'int'.
3645 * doc/extend.texi: Update documentation to match.
3646 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
3647 flat, allow any instruction. Otherwise, when V9 allow parallels
3648 which consist only of sets to registers outside of %o0 to %o5.
3649 (sparc_vis_init_builtins): Update VIS builtin types for edge
3650 and pixel-compare.
3651
3652 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
3653 is enabled, mark %gsr as global.
3654 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
3655 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
3656
3657 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
3658 which will now define __VIS and __VIS__ when -mvis is enabled.
3659 * config/sparc/t-sparc: Likewise.
3660 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
3661 and add t-sparc to tmake_file for all sparc targets.
3662 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
3663 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
3664
3665 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
3666 builtins for VIS vector addition and subtraction.
3667 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
3668 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
3669 __vis_fpsub32, __vis_fpsub32s): New.
3670 * doc/extend.texi: Document new VIS intrinsics.
3671
3672 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3673
3674 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
3675 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
3676 EQ/NE comparisons against +/-1 in the case of unused-after,
3677 non-ld-regs target.
3678
3679 2011-09-26 Jakub Jelinek <jakub@redhat.com>
3680
3681 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
3682 gctx.into_ssa after push_gimplify_context.
3683
3684 * gimple.c (gimple_build_call_valist): New function.
3685 * gimple.h (gimple_build_call_valist): New prototype.
3686 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
3687 (update_gimple_call): Likewise.
3688 (update_call_from_tree): Use finish_update_gimple_call.
3689 * tree-ssa-propagate.h (update_gimple_call): New prototype.
3690
3691 2011-09-26 Richard Guenther <rguenther@suse.de>
3692
3693 PR tree-optimization/50472
3694 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
3695 volatile references.
3696
3697 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
3698
3699 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
3700 * target.def: (addr_space_subset_p): Likewise.
3701
3702 2011-09-26 Tom de Vries <tom@codesourcery.com>
3703
3704 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
3705 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
3706 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
3707 of new var.
3708
3709 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3710
3711 PR target/50465
3712 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
3713 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
3714 output_reload_insisf.
3715 (adjust_len): Set default to "no".
3716 Remove alternative "yes". Add alternatives: "mov8", "mov16",
3717 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
3718 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
3719 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
3720 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
3721 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
3722 *lshrsi3_const): Set attribute "adjust_len".
3723 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
3724 (output_movsisf): Don't pass insn to output_reload_insisf.
3725 (adjust_insn_length): Handle new alternatives to adjust_len.
3726 Remove handling of ADJUST_LEN_YES. Clean-up code.
3727
3728 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3729
3730 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
3731 may_trap_p to detect loads that may trap of fault.
3732
3733 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3734
3735 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
3736 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
3737 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
3738 prototype.
3739 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
3740 * config/avr/avr.c: Rename output_reload_insisf_1 to
3741 output_reload_in_const.
3742 (avr_popcount_each_byte): Handle SFmode, too.
3743 (output_reload_in_const): Change so it can handle HI loads, too.
3744 Use avr_popcount_each_byte to work out if scratch register must be
3745 created on the fly.
3746 (output_reload_inhi): Rewrite using output_reload_in_const and...
3747 (output_movhi): ...use it to print constants' loads.
3748 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
3749
3750 2011-09-25 David S. Miller <davem@davemloft.net>
3751
3752 * config/sparc/constraints.md (C, P, Z): New constraints for
3753 const_doube, const_int, and const_vector "all ones" values.
3754 Make unused constraint letters comment match reality.
3755 * config/sparc/predicates.md (const_all_ones_operand,
3756 register_or_zero_or_all_ones_operand): New predicates.
3757 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
3758 as well as zero constants when VIS.
3759 (sparc_legitimate_constant_p): Likewise.
3760 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
3761 (movsf_insn): Likewise
3762 (movdi_insn_sp64): Add fone alternative.
3763 (movdf_insn_sp32_v9): Likewise.
3764 (movdf_insn_sp64): Likewise.
3765
3766 * configure.ac: Add feature check to make sure the assembler
3767 supports the FMAF, HPC, and VIS 3.0 instructions found on
3768 Niagara-3 and later cpus.
3769 * configure: Rebuild.
3770 * config.in: Likewise.
3771 * config/sparc/sparc.opt: New option '-mfmaf'.
3772 * config/sparc/sparc.md: Add float fused multiply-add patterns.
3773 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
3774 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
3775 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
3776 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
3777 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
3778 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
3779 disabled.
3780 (sparc_rtx_costs): Handle 'FMA'.
3781 * doc/invoke.texi: Document -mfmaf.
3782
3783 2011-09-25 Jakub Jelinek <jakub@redhat.com>
3784
3785 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
3786 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
3787 DECL_BY_REFERENCE parameters.
3788
3789 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3790
3791 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
3792 if there is no outgoing edge.
3793
3794 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
3795 integral types.
3796
3797 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
3798
3799 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
3800 of vect_analyze_bb here.
3801 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
3802
3803 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
3804
3805 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
3806 Allow not simple iv if analyzing basic block.
3807 (create_data_ref): Update call to dr_analyze_innermost.
3808 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
3809 * tree-loop-distribution.c (generate_memset_zero): Likewise.
3810 * tree-predcom.c (find_looparound_phi): Likewise.
3811 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
3812
3813 2011-09-24 David S. Miller <davem@davemloft.net>
3814
3815 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3816 (SPARC_GSR_REG): Define.
3817 (FIXED_REGISTERS): Mark GSR as fixed.
3818 (CALL_USED_REGISTERS): Mark GSR as call used.
3819 (HARD_REGNO_NREGS): GSR is always 1 register.
3820 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3821 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3822 (REGISTER_NAMES): Add "%gsr".
3823 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3824 (UNSPEC_WRGSR): New unspec.
3825 (GSR_REG): New constant.
3826 (type): Add new insn type 'gsr'.
3827 (fpack16_vis, fpackfix_vis, fpack32_vis,
3828 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3829 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3830 rdgsr_v8plus): New expanders and insns.
3831 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3832 using patterns which show that this is a plus in addition to a
3833 modification of GSR_REG, instead of an unspec.
3834 * config/sparc/ultra1_2.md: Handle 'gsr'.
3835 * config/sparc/ultra3.md: Likewise.
3836 * config/sparc/niagara.md: Likewise.
3837 * config/sparc/niagara2.md: Likewise.
3838 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3839 end of table.
3840 (sparc_option_override): Make -mvis imply -mv8plus.
3841 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3842 for %gsr.
3843 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3844 __builtin_vis_read_gsr.
3845 (sparc_expand_buildin): Handle builtins that take one argument and
3846 return void.
3847 (sparc_fold_builtin): Never fold writes to %gsr.
3848 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3849 * doc/extend.texi: Document new VIS intrinsics.
3850
3851 2011-09-23 Jan Hubicka <jh@suse.cz>
3852
3853 * ipa-inline-transform.c (inline_call): Add comment.
3854 * ipa-inline.h (inline_param_summary): New structure and vector.
3855 (struct inline_edge_summary): Add param field.
3856 * ipa-inline-analysis.c (CHANGED): New constant.
3857 (add_clause): Handle CHANGED and NOT_CONSTANT.
3858 (predicate_probability): New function.
3859 (dump_condition): Dump CHANGED predicate.
3860 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3861 of unknown function wide invariant.
3862 (evaluate_conditions_for_edge): Handle change probabilities.
3863 (inline_edge_duplication_hook): Copy param summaries.
3864 (inline_edge_removal_hook): Free param summaries.
3865 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3866 sizes; dump param summaries.
3867 (will_be_nonconstant_predicate): Use CHANGED predicate.
3868 (record_modified_bb_info): New structure.
3869 (record_modified): New function.
3870 (param_change_prob): New function.
3871 (estimate_function_body_sizes): Compute param summaries.
3872 (estimate_edge_size_and_time): Add probability argument.
3873 (estimate_node_size_and_time): Add inline_param_summary argument;
3874 handle predicate probabilities.
3875 (remap_predicate): Fix formating.
3876 (remap_edge_change_prob): New function.
3877 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3878 (remap_edge_predicates): ... this one.
3879 (inline_merge_summary): Remap edge summaries; handle predicate
3880 probabilities; remove param summaries after we are done.
3881 (do_estimate_edge_time): Update.
3882 (do_estimate_edge_growth): Update.
3883 (read_inline_edge_summary): Read param info.
3884 (inline_read_summary): Fix formating.
3885 (write_inline_edge_summary): Write param summaries.
3886
3887 2011-09-23 Jakub Jelinek <jakub@redhat.com>
3888
3889 * config/i386/i386.c (ix86_print_operand): Handle %~.
3890 (ix86_print_operand_punct_valid_p): Return true also for '~'.
3891 * config/i386/sse.md (i128): New mode_attr.
3892 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3893 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3894 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3895 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3896 patterns, use "<sseinsnmode>" for "mode" attribute.
3897 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3898 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3899 %~128 in the patterns, use "OI" for "mode" attribute.
3900
3901 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3902
3903 PR target/50447
3904 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3905 "tstsi", "compare".
3906 (*cmpqi_sign_extend): Use s8_operand.
3907 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3908 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3909 prototypes.
3910 (out_tsthi, out_tstsi): Remove prototypes.
3911 (avr_out_tsthi, avr_out_tstsi): New prototypes.
3912 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3913 (avr_asm_len): Negative length now sets *plen to -length.
3914 (compare_sign_p): Return bool instead of int.
3915 (compare_diff_p, compare_eq_p): Ditto and make static.
3916 (avr_out_tsthi): New function.
3917 (avr_out_tstsi): New function.
3918 (avr_out_compare): New function.
3919 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3920 ADJUST_LEN_COMPARE.
3921
3922 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3923
3924 PR target/50447
3925 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3926 (addsi3): Rewrite using QI scratch register. Adjust text
3927 peepholes using plus:SI.
3928 (*addsi3_zero_extend.hi): New insn.
3929 (*subsi3_zero_extend.hi): New insn.
3930 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3931 (*subsi3_zero_extend): Ditto.
3932 (subsi3): Change predicate #2 to register_operand.
3933 * config/avr/avr-protos.h (avr_out_plus): New prototype.
3934 (avr_out_plus_1): New static function.
3935 (avr_out_plus): New function.
3936 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3937
3938 2011-09-23 Jakub Jelinek <jakub@redhat.com>
3939
3940 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3941 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3942
3943 2011-09-23 Ian Lance Taylor <iant@google.com>
3944
3945 * godump.c (go_define): Treat a single character in single quotes,
3946 or a string, as an operand.
3947
3948 2011-09-23 Martin Jambor <mjambor@suse.cz>
3949
3950 * ipa-prop.h (jump_func_type): Updated comments.
3951 (ipa_known_type_data): New type.
3952 (ipa_jump_func): Use it to describe known type jump functions.
3953 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3954 reflect the new known type jump function contents.
3955 (compute_known_type_jump_func): Likewise.
3956 (combine_known_type_and_ancestor_jfs): Likewise.
3957 (try_make_edge_direct_virtual_call): Likewise.
3958 (ipa_write_jump_function): Likewise.
3959 (ipa_read_jump_function): Likewise.
3960 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3961 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3962 (propagate_accross_jump_function): Likewise.
3963
3964 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3965
3966 PR target/50446
3967 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3968 (rotlqi3_4): Turn insn into expander.
3969 (*rotlqi3): New insn.
3970 (rotlhi3, rotlsi3): Support rotate left/right by 1.
3971 (*rotlhi2.1, *rotlhi2.15): New insns.
3972 (*rotlsi2.1, *rotlsi2.31): New insns.
3973 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3974
3975 2011-09-23 Bin Cheng <bin.cheng@arm.com>
3976
3977 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3978
3979 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3980
3981 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3982
3983 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3984
3985 * reload.c (find_reloads): Set operand_mode to Pmode for address
3986 operands consisting of just a CONST_INT.
3987
3988 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
3989
3990 PR target/50482
3991 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3992 blendv, force op_true to register if it doesn't satisfy
3993 nonimmediate_operand predicate.
3994
3995 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
3996
3997 PR middle-end/50113
3998 PR middle-end/50061
3999 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
4000 get the locate.where_pad value for register-only arguments.
4001 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
4002 (arm_pad_reg_upward): Handle null types.
4003
4004 2011-09-22 Jan Hubicka <jh@suse.cz>
4005
4006 * ipa-inline-analysis.c: Fix overly long lines.
4007
4008 2011-09-22 Jan Hubicka <jh@suse.cz>
4009
4010 * ipa-inline-transform.c (inline_call): Always update jump functions
4011 after inlining.
4012 * ipa-inline.c (ipa_inline): Likewise; do not call
4013 ipa_create_all_structures_for_iinln.
4014 (ipa_inline): Always free jump functions.
4015 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
4016 (remap_edge_predicates): Fix pasto.
4017 (inline_merge_summary): Remove nlined edge predicate; remove hack.
4018 (inline_analyze_function): Always initialize jump functions.
4019 (inline_generate_summary): Likewise.
4020 (inline_write_summary): Always write jump functions when ipa-cp
4021 is not doing that.
4022 (inline_read_summary): Always read jump functions when ipa-cp
4023 is not doing that.
4024 * ipa-prop.c (iinlining_processed_edges): Remove.
4025 (update_indirect_edges_after_inlining): Do not use
4026 iinlining_processed_edges; instead set param_index to -1.
4027 (propagate_info_to_inlined_callees): Only try to indirect inlining
4028 when asked to do so; update jump functions of indirect calls, too;
4029 remove jump functions of the inlined edge.
4030 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
4031 (ipa_create_all_structures_for_iinln): Remove.
4032 (ipa_free_all_structures_after_iinln): Do not free
4033 iinlining_processed_edges.
4034 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
4035
4036 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4037
4038 * config/arm/predicates.md (expandable_comparison_operator): New
4039 predicate, extracted from...
4040 (arm_comparison_operator): ...here.
4041 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
4042 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
4043 (movdfcc): Use expandable_comparison_operator.
4044
4045 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
4046
4047 PR target/50447
4048 PR target/50465
4049 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
4050 (avr_popcount_each_byte): New prototype.
4051 * config/avr/avr.c (avr_popcount): New static function.
4052 (avr_popcount_each_byte): New function.
4053 (avr_out_bitop): New function.
4054 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
4055 avr_out_bitop. Cleanup code.
4056 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
4057 (Ca4, Co4, Cx4): New constraints.
4058 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
4059 alternative.
4060 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
4061 (andsi3, iorsi3, xorsi3): Ditto.
4062 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
4063
4064 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
4065
4066 PR tree-optimization/50451
4067 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
4068 constant operands in reduction.
4069 (vect_get_slp_defs): Don't create vector operand for NULL scalar
4070 operand.
4071
4072 2011-09-22 David S. Miller <davem@davemloft.net>
4073
4074 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
4075 fpack16, fpack32, fpackfix as const.
4076
4077 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
4078 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
4079 constants. Use them everywhere.
4080
4081 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
4082
4083 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
4084 Added AND special case. Adapted comments.
4085 (sh_rtx_costs): Added XOR and IOR case.
4086
4087 2011-09-21 Jan Hubicka <jh@suse.cz>
4088
4089 * ipa-inline-analsis.c (compute_inline_parameters): Set
4090 cfun and current_function_decl.
4091
4092 2011-09-21 Jan Hubicka <jh@suse.cz>
4093
4094 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
4095 handled components in parameter of builtin_constant_p.
4096 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
4097
4098 2011-09-21 Jan Hubicka <jh@suse.cz>
4099
4100 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
4101 * ipa-inline.h (estimate_edge_time): Fix pasto.
4102 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
4103
4104 2011-09-21 Jakub Jelinek <jakub@redhat.com>
4105
4106 * config/i386/i386.c (ix86_expand_sse_movcc): Use
4107 blendvps, blendvpd and pblendvb if possible.
4108
4109 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
4110
4111 PR target/50464
4112 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
4113 operand 1 predicate to register_operand and operand 2 predicate
4114 to nonimmediate_operand.
4115 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
4116 xop_pcmov, force op_true to register. Also, force op_false to
4117 register if it doesn't satisfy nonimmediate_operand predicate.
4118
4119 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
4120
4121 * config/i386/bmi2intrin.h (_mulx_u64): New.
4122 (_mulx_u32): Ditto.
4123
4124 2011-09-21 Jan Hubicka <jh@suse.cz>
4125
4126 PR tree-optimization/50433
4127 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
4128 Use get_base_address.
4129
4130 2011-09-21 Jakub Jelinek <jakub@redhat.com>
4131
4132 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
4133 nonimmediate_operand instead of register_operand predicate for operands
4134 1 and 2, force them into registers if expanding them as comparison.
4135 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
4136 V8HImode force into register just operand 1.
4137
4138 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
4139
4140 PR target/45099
4141 * config/avr/avr.c (avr_function_arg_advance): Change error to
4142 warning if a fixed register is needed as function argument.
4143
4144 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
4145
4146 PR target/50449
4147 PR target/50465
4148 * config/avr/avr.md (adjust_len): New insn attribute.
4149 (*reload_insi, *reload_insf): Use it.
4150 (*movsi, *movsf): Use new interface of output_movsisf.
4151 * config/avr/avr-protos.h (output_movsisf): Change prototype.
4152 * config/avr/avr.c (output_movsisf): Ditto.
4153 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
4154 lengths of insns *reload_insi, *reload_insf.
4155 (output_reload_insisf_1): New static function.
4156 (output_reload_insisf): Use it.
4157
4158 2011-09-21 David S. Miller <davem@davemloft.net>
4159
4160 * config/sparc/sparc.c (def_builtin): Change from macro into function.
4161 (def_builtin_const): New.
4162 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
4163 other than alignaddr and falignaddr.
4164
4165 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
4166 UNSPEC_FCMPEQ): New unspec codes.
4167 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
4168 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
4169 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
4170 new pixel compare VIS patterns.
4171 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
4172 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
4173 __vis_fcmpeq16, __vis_fcmpeq32): New.
4174 * doc/extend.texi: Document new pixel compare VIS intrinsics.
4175
4176 2011-09-21 Tom de Vries <tom@codesourcery.com>
4177
4178 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
4179
4180 2011-09-20 David S. Miller <davem@davemloft.net>
4181
4182 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
4183 (aligneddrl<P:mode>_vis): New pattern.
4184 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
4185 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
4186 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
4187 alignaddrl insn, and adjust edge operations for updated types.
4188 * config/sparc/visintrin.h: Likewise.
4189 * doc/extend.texi: Make typing in VIS documentation match reality.
4190
4191 2011-09-20 Terry Guo <terry.guo@arm.com>
4192
4193 * config/arm/arm-arches.def: Add armv6s-m.
4194 * config/arm/arm-tables.opt: Regenerate.
4195
4196 2011-09-20 Wei Guozhi <carrot@google.com>
4197
4198 PR rtl-optimization/49452
4199 * postreload.c (reload_combine): Invalidate use information when across
4200 volatile insn.
4201
4202 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
4203
4204 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
4205 Remove maintenance overhead.
4206 (haifa_sched_init, sched_finish): Update.
4207
4208 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
4209
4210 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
4211 to calculate unit, prefix_rep and prefix_data16 attributes.
4212 (*mov<mode>_internal): Ditto for unit attribute.
4213 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
4214 (*movv2sf_internal): Ditto.
4215 * config/i386/sse.md (VI1248_256): Remove mode iterator.
4216 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
4217 (*avx2_eq<mode>3): Ditto.
4218 (avx2_gt<mode>3): Ditto.
4219
4220 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
4221
4222 * config/i386/i386.md (maxmin): New code iterator.
4223 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
4224 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
4225 code iterator.
4226 (*avx2_<maxmin:code><mode>3): Macroize isn from
4227 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
4228 maxmin code iterator.
4229 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
4230 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
4231 <umaxmin:code>v16qi3.
4232
4233 2011-09-19 Alan Modra <amodra@gmail.com>
4234 Michael Meissner <meissner@linux.vnet.ibm.com>
4235
4236 PR target/50341
4237 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
4238 split the load of the indirect function's TOC from the call to
4239 prevent the compiler from moving the load of the new TOC above
4240 code that references the current function's TOC.
4241 (call_indirect_aix<ptrsize>_internal): Ditto.
4242 (call_indirect_aix<ptrsize>_nor11): Ditto.
4243 (call_indirect_aix<ptrsize>_internal2): Ditto.
4244 (call_value_indirect_aix<ptrsize>): Ditto.
4245 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4246 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4247 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4248
4249 2011-09-19 Jakub Jelinek <jakub@redhat.com>
4250
4251 * config/i386/sse.md (*sse4_1_extractps): Change into
4252 define_insn_and_split, add =x 0 n and =x x n alternatives
4253 and split them after reload.
4254
4255 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
4256
4257 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
4258
4259 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
4260
4261 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
4262
4263 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
4264
4265 PR tree-optimization/50413
4266 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
4267 a basic block if one of its data-refs can't be analyzed.
4268
4269 2011-09-19 Paul Brook <paul@codesourcery.com>
4270
4271 * config/arm/predicates.md (shift_amount_operand): Check constant
4272 shift count is in range.
4273 (const_shift_operand): Remove.
4274
4275 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
4276 Iain Sandoe <developer@sandoe-acoustics.co.uk>
4277
4278 PR target/50091
4279 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
4280 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
4281
4282 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
4283
4284 * config/i386/bmiintrin.h: Remove tmp.
4285 * config/i386/tbmintrin.h: Likewise.
4286
4287 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
4288
4289 PR tree-optimization/50414
4290 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
4291 MIN_EXPR.
4292
4293 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
4294
4295 PR tree-optimization/50412
4296 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
4297 acceses that require epilogue loop if vectorizing outer loop.
4298
4299 2011-09-17 David S. Miller <davem@davemloft.net>
4300
4301 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
4302 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
4303 New unspecs.
4304 (define_attr type): New type 'edge'.
4305 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
4306 edge32l_vis): New patterns.
4307 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
4308 * config/sparc/ultra3.md: Likewise.
4309 * config/sparc/niagara.md: Likewise.
4310 * config/sparc/niagara2.md: Likewise.
4311 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
4312 builtins for VIS edge instructions.
4313 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
4314 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
4315 intrinsics.
4316 (__v8qi, __v4qi): Make unsigned.
4317 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
4318 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
4319 __vis_fpack32): Fix types.
4320 * doc/extend.texi: Document new 'edge' VIS intrinsics.
4321
4322 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
4323 divide costs.
4324 (niagara3_costs): New.
4325 (sparc_option_override): Use it.
4326 * gcc/config/sparc/niagara2.md: Adjust with more accurate
4327 Niagara-3 reservations.
4328
4329 2011-09-17 Jakub Jelinek <jakub@redhat.com>
4330
4331 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
4332 (sse2_avx, sseinsnmode): Add V2TI.
4333 (REDUC_SMINMAX_MODE): New mode iterator.
4334 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
4335 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
4336 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
4337 (sse2_lshrv1ti3): Rename to...
4338 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
4339 iterator. Move before umaxmin expanders.
4340 * config/i386/i386.h (VALID_AVX256_REG_MODE,
4341 SSE_REG_MODE_P): Accept V2TImode.
4342 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
4343 V16HImode, V8SImode and V4DImode.
4344
4345 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
4346 and V4DImode.
4347 (ix86_build_signbit_mask): Likewise.
4348 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
4349 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
4350 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
4351 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
4352 (<code><mode>3) ... this.
4353 (avx2_<code><mode>3 smaxmin expand): Rename to...
4354 (<code><mode>3) ... this.
4355 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
4356 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
4357 VI8_AVX2 mode iterator.
4358 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
4359 VI8_AVX2 mode iterator.
4360 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
4361 New expanders.
4362
4363 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
4364
4365 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
4366 throughout file.
4367
4368 2011-09-16 David S. Miller <davem@davemloft.net>
4369
4370 * config/sparc/visintrin.h: New file.
4371 * config.gcc: Add it to extra_headers on sparc.
4372
4373 2011-09-16 Jakub Jelinek <jakub@redhat.com>
4374
4375 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
4376 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
4377 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
4378 reduc_smin_v4sf): Adjust callers.
4379 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
4380 New expanders.
4381
4382 * config/i386/sse.md (vec_extract_hi_<mode>,
4383 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
4384 vextracti128 instead of vextractf128 for -mavx2 and
4385 integer vectors. For V4DFmode fix up mode attribute.
4386 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
4387 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
4388 instead of V8SF mode attribute.
4389 (avx2_extracti128): Change into define_expand.
4390 * config/i386/i386.c (ix86_expand_vector_extract): Handle
4391 32-byte vector modes if TARGET_AVX.
4392
4393 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
4394
4395 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
4396 (umulqi3_highpart, smulqi3_highpart): Ditto.
4397 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
4398 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
4399 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
4400
4401 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
4402
4403 PR target/50358
4404 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
4405 (*maddqi4, *maddqi4.const): New insns.
4406 (*msubqi4, *msubqi4.const): New insns.
4407 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
4408 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
4409 HImode by 1 in the case of multiplying with a CONST_INT.
4410 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
4411
4412 2011-09-15 Jan Hubicka <jh@suse.cz>
4413
4414 PR lto/50430
4415 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
4416 error_mark_node in the DECL_INITIAL of vtable.
4417
4418 2011-09-15 Diego Novillo <dnovillo@google.com>
4419
4420 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
4421 @SYSROOT_CFLAGS_FOR_TARGET@.
4422 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
4423 * configure: Regenerate.
4424 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
4425 Remove setting of GCC_UNDER_TEST.
4426
4427 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
4428
4429 * config/i386/i386.c (output_fp_compare): Return %v prefixed
4430 instruction mnemonics for TARGET_AVX.
4431
4432 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
4433 "type" attribute calculation.
4434 (*movdf_internal): Ditto.
4435 (*movsf_internal): Ditto.
4436
4437 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
4438
4439 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
4440
4441 2011-09-15 Jason Merrill <jason@redhat.com>
4442
4443 PR c++/50361
4444 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
4445
4446 2011-09-15 Jan Hubicka <jh@suse.cz>
4447
4448 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
4449 simplify obviously true clauses.
4450 (and_predicates, or_predicates): Add conditions parameter.
4451 (inline_duplication_hoook): Update.
4452 (mark_modified): New function.
4453 (unmodified_parm): New function.
4454 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
4455 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
4456 Use unmodified_parm.
4457 (estimate_function_body_sizes): Update.
4458 (remap_predicate): Update.
4459
4460 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
4461
4462 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
4463 read-after-read dependencies in basic block SLP.
4464
4465 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4466
4467 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
4468 throughout file.
4469
4470 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4471
4472 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
4473 throughout file.
4474
4475 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4476
4477 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
4478 throughout file.
4479
4480 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4481
4482 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
4483 throughout file.
4484 * config/rs6000/constraints.md: Likewise.
4485
4486 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4487
4488 * config/microblaze/microblaze.md: Use match_test rather than
4489 eq/ne symbol_ref throughout file.
4490
4491 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4492
4493 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
4494 throughout file.
4495
4496 2011-09-14 Tom de Vries <tom@codesourcery.com>
4497
4498 PR middle-end/50251
4499 * explow.c (emit_stack_restore): Set crtl->need_drap if
4500 stack_restore is emitted.
4501
4502 2011-09-14 Julian Brown <julian@codesourcery.com>
4503
4504 * config/arm/arm.c (arm_override_options): Add unaligned_access
4505 support.
4506 (arm_file_start): Emit attribute for unaligned access as appropriate.
4507 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
4508 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
4509 (insv, extzv): Add unaligned-access support.
4510 (extv): Change to expander. Likewise.
4511 (extzv_t1, extv_regsi): Add helpers.
4512 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
4513 (unaligned_storesi, unaligned_storehi): New.
4514 (*extv_reg): New (previous extv implementation).
4515 * config/arm/arm.opt (munaligned_access): Add option.
4516 * config/arm/constraints.md (Uw): New constraint.
4517 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
4518 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
4519 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
4520 volatile accesses when -fstrict-volatile-bitfields is in effect.
4521 (extract_bit_field_1): Likewise.
4522
4523 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
4524
4525 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
4526 a scalar integer before applying integer-only optimisations to
4527 inner arithmetic.
4528
4529 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
4530
4531 * config/mips/mips.c (mips_expand_epilogue): Generate a
4532 simple_return only if the return address is in r31.
4533
4534 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
4535
4536 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
4537 NULL for a jump that is a cc0 insn, pick the previous insn for
4538 move_before.
4539
4540 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4541
4542 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
4543 throughout file.
4544
4545 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4546
4547 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
4548 throughout file.
4549
4550 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4551
4552 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
4553 symbol_ref throughout file.
4554
4555 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4556
4557 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
4558 throughout file.
4559
4560 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4561
4562 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
4563 throughout file.
4564
4565 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4566
4567 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
4568 throughout file.
4569 * config/arm/neon.md: Likewise.
4570 * config/arm/vfp.md: Likewise.
4571 * config/arm/thumb2.md: Likewise.
4572 * config/arm/cortex-m4.md: Likewise.
4573
4574 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
4575
4576 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
4577 define_insn patterns for combine.
4578
4579 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
4580
4581 * reorg.c: Always define make_return_insns.
4582
4583 2011-09-13 Jan Hubicka <jh@suse.cz>
4584
4585 PR other/49533
4586 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
4587
4588 2011-09-13 Jan Hubicka <jh@suse.cz>
4589
4590 PR other/49533
4591 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
4592
4593 2011-09-13 Paul Brook <paul@codesourcery.com>
4594
4595 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4596 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
4597 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
4598 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
4599 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
4600 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
4601 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
4602 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
4603 enabling unwind tables.
4604 (c6x_debug_unwind_info): New function.
4605 (TARGET_ARM_EABI_UNWINDER): Define.
4606 (TARGET_DEBUG_UNWIND_INFO): Define.
4607 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
4608 (TARGET_EXTRA_CFI_SECTION): Remove.
4609 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
4610 * ginclude/unwind-arm-common.h: New file.
4611
4612 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
4613
4614 PR target/50358
4615 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
4616 * config/avr/avr.md: (extend_s): New code attribute.
4617 (mul_r_d): New code attribute.
4618 (*maddqihi4, *umaddqihi4): New insns.
4619 (*msubqihi4, *umsubqihi4): New insns.
4620 (*usmaddqihi4, *sumaddqihi4): New insns.
4621 (*usmsubqihi4, *susubdqihi4): New insns.
4622 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
4623 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
4624 (*umsubqihi4.uconst.ashift): New insn-and-split.
4625 (*msubqihi4.sconst.ashift): New insn-and-split.
4626 (*sumaddqihi4.uconst): New insn-and-split.
4627 (*sumsubqihi4.uconst): New insn-and-split.
4628 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
4629 PLUS:HI and MINUS:HI.
4630
4631 2011-09-13 Revital Eres <revital.eres@linaro.org>
4632
4633 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
4634 (optimize_sc): Adjust call to remove_node_from_ps.
4635 (sms_schedule): Add print info.
4636
4637 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
4638
4639 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
4640 flags specially.
4641
4642 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4643
4644 PR bootstrap/50010
4645 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
4646 NOTE_INSN_CFI notes, with the exception of
4647 NOTE_INSN_SWITCH_TEXT_SECTIONS.
4648
4649 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
4650 Richard Sandiford <rdsandiford@googlemail.com>
4651
4652 * config/mips/mips.c (mips_epilogue): New structure.
4653 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
4654 restoring registers.
4655 (mips_epilogue_emit_cfa_restores): New function.
4656 (mips_epilogue_set_cfa): Likewise.
4657 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
4658 the current CFA register from the stack, redefine the CFA in terms
4659 of the stack pointer.
4660 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
4661 to the epilogue instructions.
4662
4663 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
4664
4665 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
4666 argument.
4667 (mips16e_build_save_restore): Update accordingly.
4668
4669 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4670
4671 PR rtl-optimization/50212
4672 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4673 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
4674
4675 PR debug/50299
4676 * calls.c (load_register_parameters): Use use_reg_mode instead
4677 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
4678 entry.
4679 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
4680 for stack CALL_INSN_FUNCTION_USAGE uses.
4681 * expr.h (use_reg_mode): New prototype.
4682 (use_reg): Changed into inline around use_reg_mode.
4683 * expr.c (use_reg): Renamed to...
4684 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
4685 mode to that mode instead of VOIDmode.
4686 * var-tracking.c (prepare_call_arguments): Don't track parameters
4687 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
4688 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
4689 EXPR_LIST mode.
4690
4691 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
4692
4693 PR target/43746
4694 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
4695 (progmem_section): New Variable.
4696 (avr_asm_init_sections): Initialize it.
4697 (TARGET_ASM_SELECT_SECTION): Define to...
4698 (avr_asm_select_section): ... this new Function.
4699 (avr_replace_prefix): New Function.
4700 (avr_asm_function_rodata_section): Use it.
4701 (avr_insert_attributes): Don't add section attribute for PROGMEM.
4702 (avr_section_type_flags): Use avr_progmem_p instead of section
4703 name to detect if object is in PROGMEM.
4704 (avr_asm_named_section): Set section name prefix for objects in
4705 PROGMEM.
4706
4707 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4708
4709 PR bootstrap/50352
4710 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
4711 sprintf format string.
4712
4713 2011-09-12 Richard Guenther <rguenther@suse.de>
4714
4715 PR tree-optimization/50343
4716 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
4717 that the reduction is over an SSA name before checking its definition.
4718
4719 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
4720
4721 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
4722 throughout file.
4723
4724 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
4725
4726 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
4727 throughout file.
4728 * config/mips/sb1.md: Likewise.
4729 * config/mips/predicates.md: Replace (match_test "!...")
4730 with (not (match_test "..."))
4731 * config/mips/constraints.md: Likewise.
4732
4733 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
4734
4735 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
4736 * config/arm/arm-tables.opt: Regenerate.
4737 * config/arm/arm-tune.md: Regenerate.
4738 * config/arm/arm.c (arm_file_start): Output .arch directive when
4739 user passes -mcpu=generic-*.
4740 (arm_issue_rate): Add genericv7a support.
4741 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
4742 (ASM_CPU_SPEC): New define.
4743 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
4744 * config/arm/semi.h (ASM_SPEC): Likewise.
4745 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
4746 and -mtune=generic-*.
4747
4748 2011-09-09 Richard Guenther <rguenther@suse.de>
4749
4750 PR tree-optimization/50328
4751 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
4752 constant or default-def operand.
4753
4754 2011-09-09 Richard Guenther <rguenther@suse.de>
4755
4756 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
4757 last statement.
4758
4759 2011-09-09 Richard Guenther <rguenther@suse.de>
4760
4761 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
4762 instead of a statement.
4763 * gimple-fold.c (fold_stmt_inplace): Likewise.
4764 * sese.c (graphite_copy_stmts_from_block): Adjust.
4765 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4766 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
4767 fold_stmt.
4768 (forward_propagate_addr_into_variable_array_index): Likewise.
4769 (forward_propagate_addr_expr_1): adjust.
4770 (associate_plusminus): Likewise.
4771 (ssa_forward_propagate_and_combine): Likewise.
4772 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
4773 (execute_cse_reciprocals): Likewise.
4774 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
4775
4776 2011-09-09 Nick Clifton <nickc@redhat.com>
4777
4778 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
4779 Return a positive value to indicate that the bits at the
4780 bottom of the register should be cleared.
4781
4782 2011-09-09 Richard Guenther <rguenther@suse.de>
4783
4784 * tree-ssa-operands.c (swap_tree_operands): Always adjust
4785 existing operand positions.
4786
4787 2011-09-09 Richard Guenther <rguenther@suse.de>
4788
4789 PR middle-end/50333
4790 * tree-data-ref.c (split_constant_offset): Do not try to handle
4791 ternary ops.
4792
4793 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
4794
4795 PR tree-optimization/50318
4796 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
4797 typo in use of mult_rhs1 and mult_rhs2.
4798
4799 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
4800
4801 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
4802 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
4803
4804 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
4805
4806 * config/arm/arm.md (push_multi): Emit predicates.
4807 (push_fp_multi): Likewise.
4808 * config/arm/arm.c (vfp_output_fstmd): Likewise.
4809
4810 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4811
4812 PR c++/33255 - Support -Wunused-local-typedefs warning
4813 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4814 (pushdecl): Use the new record_locally_defined_typedef.
4815 (store_parm_decls): Allocate cfun->language.
4816 (finish_function): Use the new maybe_warn_unused_local_typedefs,
4817 and free cfun->language.
4818 (c_push_function_context): Allocate cfun->language here only if needed.
4819 (c_pop_function_context): Likewise, mark cfun->language
4820 for collection only when it should be done.
4821 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4822 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4823 maybe_record_local_typedef_use.
4824 * doc/invoke.texi: Update documentation for
4825 -Wunused-local-typedefs.
4826
4827 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
4828
4829 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4830 (ix86_avoid_lea_for_add): Likewise.
4831 (ix86_avoid_lea_for_addr): Likewise.
4832 (ix86_split_lea_for_addr): Likewise.
4833
4834 * config/i386/i386.c (LEA_MAX_STALL): New.
4835 (increase_distance): Likewise.
4836 (insn_defines_reg): Likewise.
4837 (insn_uses_reg_mem): Likewise.
4838 (distance_non_agu_define_in_bb): Likewise.
4839 (distance_agu_use_in_bb): Likewise.
4840 (ix86_lea_outperforms): Likewise.
4841 (ix86_ok_to_clobber_flags): Likewise.
4842 (ix86_avoid_lea_for_add): Likewise.
4843 (ix86_avoid_lea_for_addr): Likewise.
4844 (ix86_split_lea_for_addr): Likewise.
4845 (distance_non_agu_define): Search in pred BBs added.
4846 (distance_agu_use): Search in succ BBs added.
4847 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4848 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4849 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4850
4851 * config/i386/i386.md: Split added to transform non destructive
4852 add into move and add.
4853 (lea_1): transformed into insn_and_split to avoid AGU stalls.
4854 (lea<mode>_2): Likewise.
4855
4856 2011-09-08 Martin Jambor <mjambor@suse.cz>
4857
4858 PR tree-optimization/50287
4859 * ipa-split.c (split_function): Do not create SSA names for
4860 non-gimple-registers.
4861
4862 2011-09-08 Richard Guenther <rguenther@suse.de>
4863
4864 PR tree-optimization/19831
4865 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4866 skip builtins with vdefs that do not really store something.
4867 (propagate_necessity): For calls to free that we can associate
4868 with an allocation function do not mark the freed pointer
4869 definition necessary.
4870 (eliminate_unnecessary_stmts): Remove a call to free if
4871 the associated call to an allocation function is not necessary.
4872
4873 2011-09-08 Richard Guenther <rguenther@suse.de>
4874
4875 PR tree-optimization/19831
4876 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4877 allocation functions as necessary.
4878
4879 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
4880
4881 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4882 cut from ...
4883 (darwin_default_min_version): Amended to provide defaults
4884 for the cross directory case.
4885 (darwin_driver_init): call darwin_default_min_version unconditionally.
4886 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4887 * config/darwin9.h: Likewise.
4888 * config/darwin10.h: Likewise.
4889 * config/rs6000/darwin7.h: Likewise.
4890
4891 2011-09-08 Jakub Jelinek <jakub@redhat.com>
4892
4893 PR target/50310
4894 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4895 code early if TARGET_AVX.
4896 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4897
4898 2011-09-07 Jakub Jelinek <jakub@redhat.com>
4899
4900 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4901 duplicates.
4902
4903 PR target/50310
4904 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4905 "mode" attribute computation.
4906
4907 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
4908
4909 * regrename.c (struct du_head): Make nregs signed.
4910 (closed_chains): Remove.
4911 (create_new_chain): Return the new chain.
4912 (chain_from_id): New static function.
4913 (dump_def_use_chain): Change argument to be an int, indicating
4914 the first ID to print. All callers changed.
4915 (merge_overlapping_regs): Use chain_from_id. Assert that
4916 chains don't conflict with themselves.
4917 (rename_chains): Take no argument. Iterate over id_to_chain
4918 rather to find chains to rename. Clear tick before the main loop.
4919 (struct incoming_reg_info): New struct.
4920 (struct bb_rename_info): New struct.
4921 (init_rename_info, set_incoming_from_chain, merge_chains): New
4922 static functions.
4923 (regrename_analyze): New static function, broken out of
4924 regrename_optimize. Record and make use of open chain information
4925 at basic block boundaries, and merge chains where possible.
4926 (scan_rtx_reg): Make this_nregs signed. Don't update
4927 closed_chains.
4928 (build_def_use): Return a bool to indicate success. All callers
4929 changed. Don't initialize global data here.
4930 (regrename_optimize): Move most code out of here into
4931 regrename_analyze.
4932 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4933 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4934 static inline functions.
4935 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4936
4937 * bb-reorder.c (insert_section_boundary_note): Don't check
4938 optimize_function_for_speed_p.
4939 (gate_handle_partition_blocks): Do it here instead.
4940 (gate_handle_reorder_blocks): Move preliminary checks here ...
4941 (rest_of_handle_reorder_blocks): ... from here.
4942
4943 2011-09-07 Martin Jambor <mjambor@suse.cz>
4944
4945 PR middle-end/50301
4946 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4947 function index bounds.
4948 (perhaps_add_new_callers): Likewise.
4949
4950 2011-09-07 Martin Jambor <mjambor@suse.cz>
4951
4952 PR tree-optimization/49911
4953 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4954 enumerations to the corresponding plain integer type.
4955
4956 2011-09-07 Richard Guenther <rguenther@suse.de>
4957
4958 PR tree-optimization/50319
4959 * tree-if-conv.c (set_bb_predicate): Assert we only set
4960 canonical predicates.
4961 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
4962 around canonical predicates.
4963 (predicate_bbs): Do not re-gimplify already canonical
4964 predicates. Properly unshare them though.
4965 (find_phi_replacement_condition): Simplify.
4966
4967 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
4968
4969 PR target/49030
4970 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4971 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4972 reusing the old code from get_arm_condition_code. Return ARM_NV
4973 for invalid comparison codes.
4974 (get_arm_condition_code): Redefine in terms of
4975 maybe_get_arm_condition_code.
4976 * config/arm/predicates.md (arm_comparison_operator): Use
4977 maybe_get_arm_condition_code.
4978
4979 2011-09-07 Richard Guenther <rguenther@suse.de>
4980
4981 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4982 Canonicalize negated predicates by swapping edges.
4983 (forward_propagate_into_cond): Likewise.
4984
4985 2011-09-07 Richard Guenther <rguenther@suse.de>
4986
4987 PR tree-optimization/50213
4988 * tree-flow.h (simple_iv_increment_p): Declare.
4989 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
4990 POINTER_PLUS_EXPR.
4991 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4992 not propagate simple IV counter increments.
4993
4994 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
4995 Iain Sandoe <iains@gcc.gnu.org>
4996
4997 * config/rs6000/rs6000.c (compute_save_world_info): Test
4998 cfun->has_nonlocal_label to determine if the out-of-line save
4999 world call may be used.
5000
5001 2011-09-07 Nick Clifton <nickc@redhat.com>
5002
5003 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
5004 label on the parallel part of the insn.
5005
5006 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5007
5008 PR debug/50191
5009 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
5010 avoid_constant_pool_reference first instead of last.
5011
5012 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5013
5014 * doc/configfiles.texi (Configuration Files): Update documentation
5015 about tm_p.h and remove FIXME comment.
5016
5017 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
5018
5019 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
5020 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
5021
5022 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
5023
5024 * config/darwin10.h Remove duplicate LIB_SPEC.
5025
5026 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
5027
5028 PR middle-end/44382
5029 * target.def (reassociation_width): New hook.
5030
5031 * doc/tm.texi.in (reassociation_width): Likewise.
5032
5033 * doc/tm.texi (reassociation_width): Likewise.
5034
5035 * doc/invoke.texi (tree-reassoc-width): New param documented.
5036
5037 * hooks.h (hook_int_uint_mode_1): New default hook.
5038
5039 * hooks.c (hook_int_uint_mode_1): Likewise.
5040
5041 * config/i386/i386.h (ix86_tune_indices): Add
5042 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5043
5044 (TARGET_REASSOC_INT_TO_PARALLEL): New.
5045 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
5046
5047 * config/i386/i386.c (initial_ix86_tune_features): Add
5048 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5049
5050 (ix86_reassociation_width): New function.
5051
5052 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
5053
5054 * tree-ssa-reassoc.c (get_required_cycles): New function.
5055 (get_reassociation_width): Likewise.
5056 (swap_ops_for_binary_stmt): Likewise.
5057 (rewrite_expr_tree_parallel): Likewise.
5058
5059 (rewrite_expr_tree): Refactored. Part of code moved into
5060 swap_ops_for_binary_stmt.
5061
5062 (reassociate_bb): Now checks reassociation width to be used and
5063 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
5064
5065 2011-09-06 Richard Guenther <rguenther@suse.de>
5066
5067 PR tree-optimization/47025
5068 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
5069 uses nothing.
5070 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
5071 BUILT_IN_FREE.
5072 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
5073 definitely points to.
5074 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5075 BUILT_IN_VA_START doesn't let its va_list argument escape.
5076 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
5077 not make any previous stores necessary.
5078
5079 2011-09-06 Martin Jambor <mjambor@suse.cz>
5080
5081 * ipa-inline.h (struct inline_summary): Move versionable flag...
5082 * cgraph.h (struct cgraph_local_info): ...here
5083 * ipa-cp.c (determine_versionability): Use the new versionable flag.
5084 (determine_versionability): Likewise.
5085 (ipcp_versionable_function_p): Likewise.
5086 (ipcp_generate_summary): Likewise.
5087 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
5088 versionable flag.
5089 (compute_inline_parameters): Do not clear the versionable flag.
5090 (inline_read_section): Do not stream the versionable flag.
5091 (inline_write_summary): Likewise.
5092 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
5093 (input_overwrite_node): Likewise.
5094
5095 2011-09-06 Richard Guenther <rguenther@suse.de>
5096
5097 PR tree-optimization/48149
5098 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
5099 (vn_valueize): Move earlier.
5100 (valueize_expr): Use vn_valueize.
5101 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
5102 operands.
5103 (simplify_unary_expression): Simplify.
5104
5105 2011-09-06 Richard Guenther <rguenther@suse.de>
5106
5107 PR tree-optimization/48317
5108 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
5109 trailing array.
5110 (sizeof_vn_nary_op): New inline function.
5111 (vn_nary_op_lookup_pieces): Adjust.
5112 (vn_nary_op_insert_pieces): Likewise.
5113 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
5114 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
5115 any number of operands.
5116 (vn_nary_length_from_stmt): New function.
5117 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
5118 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
5119 sized temporary.
5120 (vn_nary_op_lookup): Likewise.
5121 (vn_nary_op_lookup_stmt): Likewise.
5122 (vn_nary_op_insert_into): Likewise.
5123 (vn_nary_op_insert_stmt): Likewise.
5124 (visit_use): Handle CONSTRUCTOR as nary.
5125 * tree-ssa-pre.c (phi_translate_1): Adjust.
5126 (create_expression_by_pieces): Likewise.
5127 (compute_avail): Likewise.
5128
5129 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
5130
5131 * config/arm/arm.c (arm_preferred_simd_mode): Check
5132 TARGET_NEON_VECTORIZE_DOUBLE instead of
5133 TARGET_NEON_VECTORIZE_QUAD.
5134 (arm_autovectorize_vector_sizes): Likewise.
5135 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
5136 mask of mvectorize-with-neon-double. Add RejectNegative.
5137 (mvectorize-with-neon-double): New.
5138
5139 2011-09-06 Richard Guenther <rguenther@suse.de>
5140
5141 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
5142
5143 2011-09-06 Tom de Vries <tom@codesourcery.com>
5144
5145 * recog.c (asm_labels_ok): New function.
5146 (check_asm_operands): Use asm_labels_ok.
5147
5148 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
5149
5150 PR target/49606
5151 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
5152 (PMODE_INSN): New macro.
5153 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
5154 (mips_got_load, mips_expand_synci_loop): Likewise.
5155 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
5156 cprestore patterns.
5157 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
5158 copygp_mips16 patterns.
5159 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
5160 and use_cprestore patterns.
5161 (mips_override_options): Check for incompatible -mabi and -mlong
5162 combinations.
5163 * config/mips/mips.md (unspec_got<mode>): Rename to...
5164 (unspec_got_<mode>): ...this.
5165 (copygp_mips16): Use the Pmode iterator.
5166 (potential_cprestore, cprestore, use_cprestore): Likewise.
5167 (clear_cache, indirect_jump): Use PMODE_INSN.
5168 (indirect_jump<mode>): Rename to...
5169 (indirect_jump_<mode>): ...this.
5170 (tablejump): Use PMODE_INSN.
5171 (tablejump<mode>): Rename to...
5172 (tablejump_<mode>): ...this.
5173 (exception_receiver): Handle restore_gp_si and restore_gp_di.
5174 (restore_gp): Use the Pmode iterator.
5175 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
5176 PMODE_INSN.
5177
5178 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
5179
5180 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
5181 Fix the type of the BIT_AND_EXPR.
5182
5183 2011-09-05 David S. Miller <davem@davemloft.net>
5184
5185 * config.host: Add driver-sparc.o and sparc/x-sparc on
5186 native sparc*-*-linux* builds.
5187 * config/sparc/driver-sparc.c: Correct Linux strings.
5188 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
5189 * config/sparc/linux64.h: Likewise.
5190 * doc/invoke.texi: Document that Linux also supports
5191 -mcpu=native and -mtune=native on sparc.
5192
5193 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
5194 PROCESSOR_NIAGARA4): New.
5195 * config/sparc/sparc.opt: Handle new processor types.
5196 * config/sparc/sparc.md: Add to "cpu" attribute.
5197 * config/sparc/sparc.h (TARGET_CPU_niagara3,
5198 TARGET_CPU_niagara4): New, treat as niagara2.
5199 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
5200 * config/sparc/sol2.h: Likewise.
5201 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
5202 * config/sparc/sparc.c (sparc_option_override): Add
5203 niagara3 and niagara4 handling.
5204 (sparc32_initialize_trampoline): Likewise.
5205 (sparc64_initialize_trampoline): Likewise.
5206 (sparc_use_sched_lookahead): Likewise.
5207 (sparc_issue_rate): Likewise.
5208 (sparc_register_move_cost): Likewise.
5209 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
5210 and niagara4 as appropriate.
5211 * doc/invoke.texi: Document new processor types.
5212 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
5213 and --with-tune options.
5214
5215 * config/sparc/sol2-64.h: Move ...
5216 * config/sparc/default-64.h: ... to here. Update comment.
5217 * config.gcc: Update Solaris sparc to use default-64.h, also
5218 prefix this header into the list on sparc64-*-linux.
5219 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
5220 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
5221 to MASK_HARD_QUAD.
5222
5223 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
5224
5225 PR target/50289
5226 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
5227 that contain global register variable.
5228
5229 2011-09-05 Richard Guenther <rguenther@suse.de>
5230
5231 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
5232
5233 2011-09-05 Richard Guenther <rguenther@suse.de>
5234
5235 * stor-layout.c (layout_type): Use size_binop for array size
5236 calculations.
5237
5238 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
5239
5240 * config/avr/avr.h (progmem_section): Remove Declaration.
5241 * config/avr/avr.c (progmem_section): Make static and rename to
5242 progmem_swtable_section.
5243 (avr_output_addr_vec_elt): No need to switch sections.
5244 (avr_asm_init_sections): Use output_section_asm_op as section
5245 callback for progmem_swtable_section.
5246 (avr_output_progmem_section_asm_op): Remove Function.
5247 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
5248 (avr_asm_function_rodata_section): New static Function.
5249 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
5250 alignment 2**1 for jump tables.
5251
5252 2011-09-04 Jan Hubicka <jh@suse.cz>
5253
5254 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
5255 parameter is SSA name.
5256
5257 2011-09-04 Richard Guenther <rguenther@suse.de>
5258
5259 Revert
5260 2011-08-31 Richard Guenther <rguenther@suse.de>
5261
5262 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
5263 special-casing.
5264
5265 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
5266
5267 PR debug/49901
5268 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
5269
5270 2011-09-04 Jakub Jelinek <jakub@redhat.com>
5271 Ira Rosen <ira.rosen@linaro.org>
5272
5273 PR tree-optimization/50208
5274 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
5275 argument. Check that def_stmt is inside the loop.
5276 (vect_recog_widen_mult_pattern): Update calls to
5277 vect_handle_widen_mult_by_cons.
5278 (vect_operation_fits_smaller_type): Check that def_stmt is
5279 inside the loop.
5280
5281 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
5282
5283 * tree-vectorizer.c (vect_print_dump_info): Print line
5284 number when dumping to a file.
5285 (vectorize_loops): Add new messages to dump file.
5286
5287 2011-09-03 Martin Jambor <mjambor@suse.cz>
5288
5289 * ipa-prop.h (ipa_jump_func_t): New typedef.
5290 (struct ipa_edge_args): Removed field argument_count, field
5291 jump_functions turned into a vector.
5292 (ipa_set_cs_argument_count): Removed.
5293 (ipa_get_cs_argument_count): Updated to work on vectors.
5294 (ipa_get_ith_jump_func): Likewise.
5295 * ipa-prop.c (ipa_count_arguments): Removed.
5296 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
5297 jump functions. Update caller.
5298 (compute_pass_through_member_ptrs): Likewise.
5299 (compute_cst_member_ptr_arguments): Likewise.
5300 (ipa_compute_jump_functions_for_edge): Get number of arguments from
5301 the statement, allocate vector.
5302 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
5303 (duplicate_ipa_jump_func_array): Removed.
5304 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
5305 (ipa_read_node_info): Allocate vector.
5306
5307 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5308
5309 PR middle-end/50232
5310 * config/pa/pa.md (return): Define "return" insn pattern.
5311 (epilogue): Use it when no epilogue is needed.
5312 * config/pa/pa.c (pa_can_use_return_insn): New function.
5313 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
5314
5315 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
5316
5317 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
5318 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
5319 Force at least BITS_PER_UNIT alignment on the new variable.
5320
5321 2011-09-02 Gary Funck <gary@intrepid.com>
5322
5323 * opts.c (print_specific_help): Fix off-by-one compare in
5324 assertion check.
5325 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5326 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
5327 Increase by +5 to allow for more languages.
5328 * optc-gen.awk: Generate #if that ensures that the number of
5329 languages is within the implementation-defined limit.
5330
5331 2011-09-02 Michael Matz <matz@suse.de>
5332
5333 PR middle-end/50260
5334 * ipa-split.c (split_function): Call add_referenced_var.
5335
5336 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
5337 (cond_if_else_store_replacement_1): Ditto.
5338 * tree-ssa-pre.c (get_representative_for): Ditto.
5339 (create_expression_by_pieces): Ditto.
5340 (insert_into_preds_of_block): Ditto.
5341 * tree-sra.c (create_access_replacement): Ditto.
5342 (get_replaced_param_substitute): Ditto.
5343
5344 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
5345
5346 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
5347 automata_options.
5348 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
5349 (l1w, s1w, l2w, s2w): Define in the main automaton.
5350 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
5351 units.
5352 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
5353 (c6x_unit_names): Add the new units.
5354 (c6x_unit_codes): New static array.
5355 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
5356 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
5357 UNIT_QID_SIDE_OFFSET): New macros.
5358 (RESERVATION_S2): Adjust value.
5359 (c6x_option_override): Compute c6x_unit_codes.
5360 (assign_reservations): Take the unit_mask of the last instruction
5361 into account. Detect floating point reservations by looking for
5362 the new units. Don't assign reservations if the field is already
5363 nonzero.
5364 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
5365 (init_sched_state): Initialize it.
5366 (c6x_clear_sched_context): Free it.
5367 (insn_set_clock): Clear reservation.
5368 (prev_cycle_state): New static variable.
5369 (c6x_init_sched_context): Save it.
5370 (c6x_sched_init): Allocate space for it and clear it.
5371 (c6x_sched_dfa_pre_cycle_insn): New static function.
5372 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
5373 (c6x_variable_issue): Only record units in the unit_mask that
5374 were not set at the start of the cycle.
5375 (c6x_variable_issue): Compute and store the unit_mask from the
5376 current state.
5377 (reorg_split_calls): Ensure the new information remains correct.
5378 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
5379 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
5380 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
5381 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
5382 Add special reservations.
5383 * config/c6x/c6x-sched.md: Regenerate.
5384
5385 2011-09-02 Martin Jambor <mjambor@suse.cz>
5386
5387 * ipa-prop.h (ipa_node_params): Removed fields
5388 called_with_var_arguments and node_versionable.
5389 (ipa_set_called_with_variable_arg): Removed.
5390 (ipa_is_called_with_var_arguments): Likewise.
5391 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
5392 (determine_versionability): Do not check for type attributes and va
5393 builtins. Record versionability into inline summary.
5394 (initialize_node_lattices): Do not check
5395 ipa_is_called_with_var_arguments.
5396 (propagate_constants_accross_call): Likewise, ignore arguments we do
5397 not have PARM_DECLs for, set variable flag for parameters that were
5398 not passed a value.
5399 (create_specialized_node): Dump info that we cannot change signature.
5400 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
5401 number of arguments.
5402 (ipa_make_edge_direct_to_target): Likewise.
5403 (ipa_update_after_lto_read): Likewise.
5404 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
5405 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
5406 they were remapped.
5407
5408 2011-09-02 Richard Guenther <rguenther@suse.de>
5409
5410 PR tree-optimization/27460
5411 PR middle-end/29269
5412 * doc/md.texi (vcond): Document.
5413 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
5414 optab with two modes.
5415 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
5416 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
5417 (vcond_optab): Adjust.
5418 (vcondu_optab): Likewise.
5419 (expand_vec_cond_expr_p): Adjust prototype.
5420 * optabs.c (get_vcond_icode): Adjust.
5421 (expand_vec_cond_expr_p): Likewise.
5422 (expand_vec_cond_expr): Likewise.
5423 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
5424 vector type.
5425 (vectorizable_condition): Allow differing types for comparison
5426 and result.
5427 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
5428 for the comparison.
5429 * config/i386/sse.md (vcond<mode>): Split to
5430 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
5431 vcond<V_128:mode><VI124_128:mode> and
5432 vcondu<V_128:mode><VI124_128:mode>.
5433 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
5434 (vconduv2di): Likewise.
5435 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
5436 (vcondu<mode>): Likewise.
5437 * config/ia64/vect.md (vcond<mode>): Likewise.
5438 (vcondu<mode>): Likewise.
5439 (vcondv2sf): Likewise.
5440 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
5441 * config/rs6000/paired.md (vcondv2sf): Likewise.
5442 * config/rs6000/vector.md (vcond<mode>): Likewise.
5443 (vcondu<mode>): Likewise.
5444 * config/spu/spu.md (vcond<mode>): Likewise.
5445 (vcondu<mode>): Likewise.
5446
5447 2011-09-02 Richard Guenther <rguenther@suse.de>
5448
5449 * pretty-print.h (pp_unsigned_wide_integer): New.
5450 * tree-pretty-print.c (dump_generic_node): Print unsigned
5451 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
5452
5453 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
5454
5455 PR target/49987
5456 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
5457 valid CONST_VECTOR operands.
5458 (rs6000_expand_vector_init): Likewise.
5459
5460 2011-09-02 Martin Jambor <mjambor@suse.cz>
5461
5462 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
5463 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
5464 BINFO_VTABLE. Parameter delta removed, all callers updated.
5465 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
5466 BINFO_VTABLE.
5467 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
5468 all calls.
5469 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
5470 handling of thunk_delta.
5471 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
5472 (devirtualization_time_bonus): Do not handle thunk deltas.
5473 (ipcp_discover_new_direct_edges): Likewise.
5474 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5475 (try_make_edge_direct_simple_call): Likewise.
5476 (try_make_edge_direct_virtual_call): Likewise.
5477 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
5478 parameter set as unused.
5479 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
5480 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
5481 parameter set as unused.
5482 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
5483 (input_edge_opt_summary): Likewise.
5484 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
5485 BINFO_VIRTUALS at all.
5486 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
5487
5488 2011-09-02 Richard Guenther <rguenther@suse.de>
5489
5490 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
5491 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
5492
5493 2011-08-31 Richard Guenther <rguenther@suse.de>
5494
5495 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
5496 handling here, from ...
5497 (expand_expr_real_1): ... here.
5498 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
5499 and VEC_COND_EXPR.
5500 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
5501 a GIMPLE_TERNARY_RHS.
5502 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
5503 and VEC_COND_EXPR here ...
5504 (verify_gimple_assign_single): ... not here.
5505 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
5506 * tree-object-size.c (cond_expr_object_size): Adjust.
5507 (collect_object_sizes_for): Likewise.
5508 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
5509 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
5510 (ssa_forward_propagate_and_combine): Adjust.
5511 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
5512 as ternary.
5513 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
5514 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
5515 * tree-vect-stmt.c (vectorizable_condition): Likewise.
5516 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
5517 (extract_range_from_assignment): Likewise.
5518
5519 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
5520
5521 * config/i386/i386.md: Use (match_test ...) for attribute tests.
5522 * config/i386/mmx.md: Likewise.
5523 * config/i386/sse.md: Likewise.
5524 * config/i386/predicates.md (call_insn_operand): Use
5525 (not (match_test "...")) instead of (match_test "!...")
5526 * config/i386/constraints.md (w): Likewise.
5527
5528 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
5529
5530 * doc/md.texi: Describe the use of match_tests in attribute tests.
5531 * rtl.def (MATCH_TEST): Update commentary.
5532 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
5533 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
5534
5535 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
5536
5537 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
5538 (attr_string): Use copy_md_ptr_loc.
5539
5540 2011-08-31 Martin Jambor <mjambor@suse.cz>
5541
5542 PR middle-end/49886
5543 * ipa-inline-analysis.c (compute_inline_parameters): Set
5544 can_change_signature of noes with typde attributes.
5545 * ipa-split.c (split_function): Do not skip any arguments if
5546 can_change_signature is set.
5547
5548 2011-08-31 Martin Jambor <mjambor@suse.cz>
5549
5550 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
5551 check removed.
5552
5553 2011-08-31 Richard Guenther <rguenther@suse.de>
5554
5555 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
5556 special-casing.
5557
5558 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
5559
5560 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
5561
5562 2011-08-31 Tom de Vries <tom@codesourcery.com>
5563
5564 PR middle-end/43513
5565 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
5566 * tree-ssa-ccp.c (params.h): Include.
5567 (fold_builtin_alloca_for_var): New function.
5568 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
5569
5570 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
5571
5572 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5573 Handle FMA option.
5574
5575 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
5576
5577 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
5578 b3 and b4 unsigned.
5579
5580 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
5581
5582 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
5583 when code is SET.
5584
5585 2011-08-30 Richard Guenther <rguenther@suse.de>
5586
5587 PR middle-end/48571
5588 * gimple.h (maybe_fold_offset_to_address): Remove.
5589 (maybe_fold_offset_to_reference): Likewise.
5590 (maybe_fold_stmt_addition): Likewise.
5591 (may_propagate_address_into_dereference): Likewise.
5592 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
5593 array references.
5594 * gimple-fold.c (canonicalize_constructor_val): Likewise.
5595 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
5596 addresses instead.
5597 (may_propagate_address_into_dereference): Remove.
5598 (maybe_fold_offset_to_array_ref): Likewise.
5599 (maybe_fold_offset_to_reference): Likewise.
5600 (maybe_fold_offset_to_address): Likewise.
5601 (maybe_fold_stmt_addition): Likewise.
5602 (fold_gimple_assign): Do not reconstruct array references but
5603 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
5604 MEM_REF addresses.
5605 (gimple_fold_stmt_to_constant_1): Likewise.
5606 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5607 * gimplify.c (gimplify_conversion): Likewise.
5608 (gimplify_expr): Likewise.
5609
5610 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
5611
5612 * config/i386/fmaintrin.h: New.
5613 * config.gcc: Add fmaintrin.h.
5614 * config/i386/i386.c
5615 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
5616 <IX86_BUILTIN_VFMADDSD3>: Likewise.
5617 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
5618 (*fmai_fmadd_<mode>): Likewise.
5619 (*fmai_fmsub_<mode>): Likewise.
5620 (*fmai_fnmadd_<mode>): Likewise.
5621 (*fmai_fnmsub_<mode>): Likewise.
5622 * config/i386/immintrin.h: Add fmaintrin.h.
5623
5624 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
5625
5626 * genautomata.c (NO_COMB_OPTION): New macro.
5627 (no_comb_flag): New static variable.
5628 (gen_automata_option): Handle NO_COMB_OPTION.
5629 (comb_vect_p): False if no_comb_flag.
5630 (add_vect): Move computation of min/max values. Return early if
5631 no_comb_flag.
5632 * doc/md.texi (automata_option): Document no-comb-vect.
5633
5634 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
5635 "__x86.get_pc_thunk".
5636
5637 * bb-reorder.c (insert_section_boundary_note): Only do it if
5638 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
5639
5640 2011-08-30 Christian Bruel <christian.bruel@st.com>
5641
5642 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
5643 flag_profile_use.
5644
5645 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5646
5647 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
5648 to off. Document switch.
5649 * doc/invoke.texi (-msave-toc-indirect): Ditto.
5650
5651 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5652
5653 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
5654 conditionals and comments inside macro arguments.
5655
5656 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5657 Richard Guenther <rguenther@suse.de>
5658
5659 * tree.h (constant_boolean_node): Adjust prototype.
5660 * fold-const.c (fold_convert_loc): Move aggregate conversion
5661 leeway down.
5662 (constant_boolean_node): Make value parameter boolean, add
5663 vector type handling.
5664 (fold_unary_loc): Use constant_boolean_node.
5665 (fold_binary_loc): Preserve types properly when folding
5666 COMPLEX_EXPR <__real x, __imag x>.
5667 * gimplify.c (gimplify_expr): Handle vector comparison.
5668 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
5669 comparison.
5670 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
5671 comparisons.
5672
5673 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5674
5675 PR middle-end/48722
5676 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
5677 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
5678 (verify_rtl_sharing): Likewise and verify_rtx_sharing
5679 in there too.
5680 (unshare_all_rtl_in_chain): For CALL_INSNs
5681 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
5682
5683 2011-08-29 Richard Guenther <rguenther@suse.de>
5684
5685 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
5686 on the built ADDR_EXPR.
5687
5688 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5689
5690 PR debug/50215
5691 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
5692 before adding ENTRY_VALUE to val->locs.
5693
5694 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
5695
5696 PR bootstrap/50218
5697 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
5698 comp.
5699
5700 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
5701
5702 * doc/rtl.texi (simple_return): Document.
5703 (parallel, PATTERN): Here too.
5704 * doc/md.texi (return): Mention it's allowed to expand to simple_return
5705 in some cases.
5706 (simple_return): Document standard pattern.
5707 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
5708 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
5709 * reorg.c (function_return_label, function_simple_return_label):
5710 New static variables, replacing...
5711 (end_of_function_label): ... this.
5712 (simplejump_or_return_p): New static function.
5713 (optimize_skip, steal_delay_list_from_fallthrough,
5714 fill_slots_from_thread): Use it.
5715 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
5716 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
5717 (find_end_label): Take a new arg which is one of the two return
5718 rtxs. Depending on which, set either function_return_label or
5719 function_simple_return_label. All callers changed.
5720 (make_return_insns): Make both kinds.
5721 (dbr_schedule): Adjust for two kinds of end labels.
5722 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
5723 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
5724 (gen_expand, gen_split): Use ANY_RETURN_P.
5725 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
5726 * rtl.def (SIMPLE_RETURN): New code.
5727 * ifcvt.c (find_if_case_1): Be more careful about
5728 redirecting jumps to the EXIT_BLOCK.
5729 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
5730 returnjump_p_1): Handle SIMPLE_RETURNs.
5731 * print-rtl.c (print_rtx): Likewise.
5732 * rtl.c (copy_rtx): Likewise.
5733 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
5734 * combine.c (simplify_set): Likewise.
5735 * resource.c (find_dead_or_set_registers, mark_set_resources):
5736 Likewise.
5737 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
5738 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
5739 (init_emit_regs): Initialize simple_return_rtx.
5740 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
5741 force_nonfallthru_and_redirect.
5742 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
5743 (GR_SIMPLE_RETURN): New enum value.
5744 (simple_return_rtx): New macro.
5745 * basic-block.h (force_nonfallthru_and_redirect): Adjust
5746 declaration.
5747 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
5748 argument. All callers changed. Be careful about what kinds of
5749 returnjumps to generate.
5750 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
5751 ix86_pad_short_function): Likewise.
5752 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
5753 of return.
5754 * config/mips/mips.md (any_return): New code_iterator.
5755 (optab): Add cases for return and simple_return.
5756 (return): Expand to a simple_return.
5757 (simple_return): New pattern.
5758 (*<optab>, *<optab>_internal for any_return): New patterns.
5759 (return_internal): Remove.
5760 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
5761 a simple_return_internal.
5762
5763 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5764
5765 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
5766 (vec_extract_lo_<mode>): Prevent both operands in memory.
5767 (vec_extract_lo_v16hi): Ditto.
5768 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
5769
5770 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5771
5772 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
5773 (*sse2_mulv4si3): Ditto.
5774 (mulv2di3): Ditto.
5775 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
5776 notes to REG_EQUAL.
5777
5778 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5779
5780 PR target/50202
5781 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
5782 when all outputs are unused.
5783 (sse4_2_pcmpistr): Ditto.
5784
5785 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
5786
5787 * config/i386/i386.md (round<mode>2): New expander.
5788 * config/i386/i386.c (enum ix86_builtins): Add
5789 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
5790 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
5791 descriptions.
5792 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
5793 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
5794
5795 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
5796
5797 PR middle-end/50083
5798 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
5799 only when TARGET_C99_FUNCTIONS.
5800 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
5801 <BUILT_IN_RINT{,F,L}>: Ditto.
5802
5803 2011-08-26 Michael Matz <matz@suse.de>
5804 Jakub Jelinek <jakub@redhat.com>
5805
5806 PR lto/50165
5807 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
5808 don't call strlen twice, use memcpy.
5809
5810 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
5811
5812 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
5813 * config/i386/bmiintrin.h: Likewise.
5814 * config/i386/lzcntintrin.h: Likewise.
5815
5816 * config/i386/immintrin.h: Include <lzcntintrin.h>,
5817 <bmiintrin.h> and <bmi2intrin.h>.
5818
5819 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5820
5821 PR target/50166
5822 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5823 * configure: Regenerate.
5824
5825 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5826
5827 PR c/50179
5828 * c-typeck.c (c_process_expr_stmt): Skip over nops and
5829 call mark_exp_read even if exprv is ADDR_EXPR.
5830
5831 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
5832
5833 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5834 to df_set_dead_notes_for_mw.
5835
5836 2011-08-26 Richard Guenther <rguenther@suse.de>
5837
5838 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5839
5840 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
5841 Tom de Vries <tom@codesourcery.com>
5842
5843 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5844 (struct ivopts_data): Add loop_single_exit_p field.
5845 (niter_for_exit): Change parameter desc_p into return value. Return
5846 desc if desc->may_be_zero. Free desc if unused.
5847 (niter_for_single_dom_exit): Change return type.
5848 (find_induction_variables): Handle changed return type of
5849 niter_for_single_dom_exit. Dump may_be_zero.
5850 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5851 (set_use_iv_cost): Add and handle comp parameter.
5852 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5853 comp argument to set_use_iv_cost.
5854 (strip_wrap_conserving_type_conversions, expr_equal_p)
5855 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5856 (may_eliminate_iv): Add comp parameter. Handle new return type of
5857 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
5858 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5859 and may_eliminate_iv.
5860 (rewrite_use_compare): Move call to iv_elimination_compare to ...
5861 (may_eliminate_iv): Here.
5862 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5863
5864 2011-08-26 Tom de Vries <tom@codesourcery.com>
5865
5866 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5867 accessing TREE_TYPE.
5868
5869 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
5870
5871 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5872 (*ior_scc_scc_cmp): Likewise
5873 (*and_scc_scc): Likewise.
5874 (*and_scc_scc_cmp): Likewise.
5875 (*and_scc_scc_nodom): Likewise.
5876 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5877
5878 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5879
5880 * rtlanal.c (nonzero_bits1): Handle CLRSB.
5881
5882 2011-08-26 Richard Guenther <rguenther@suse.de>
5883
5884 * expr.c (string_constant): Handle &MEM_REF.
5885
5886 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
5887
5888 * config/arm/arm.c (struct four_ints): New type.
5889 (count_insns_for_constant): Delete function.
5890 (find_best_start): Delete function.
5891 (optimal_immediate_sequence): New function.
5892 (optimal_immediate_sequence_1): New function.
5893 (arm_gen_constant): Move constant splitting code to
5894 optimal_immediate_sequence.
5895 Rewrite constant negation/invertion code.
5896
5897 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
5898
5899 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5900 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5901 Remove prototype. Remove static function type.
5902 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5903 Add arch attribute.
5904 * config/arm/constraints.md (Pj, PJ): New constraints.
5905
5906 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5907
5908 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5909 ("cortex_a9_multiply_long"): New and use above. Handle all
5910 long multiply cases.
5911 ("cortex_a9_multiply"): Handle smmul and smmulr.
5912 ("cortex_a9_mac"): Handle smmla.
5913
5914 2011-08-25 Richard Henderson <rth@redhat.com>
5915
5916 PR 50132
5917 PR 49864
5918 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5919 non-constant stack adjutment.
5920 * expr.c (find_args_size_adjust): Break out from ...
5921 (fixup_args_size_notes): ... here.
5922 * rtl.h (find_args_size_adjust): Declare.
5923
5924 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
5925
5926 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5927 sse4 and sse4_noavx.
5928 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5929 (*pushdf_rex64): Change Y2 register constraint to x.
5930 (*movdf_internal_rex64): Ditto.
5931 (*zero_extendsidi2_rex64): Ditto.
5932 (*movdi_internal): Change Y2 register constraint to x
5933 and update "isa" attribute.
5934 (*pushdf): Ditto.
5935 (*movdf internal): Ditto.
5936 (zero_extendsidi2_1): Ditto.
5937 (*truncdfdf_mixed): Ditto.
5938 (*truncxfdf2_mixed): Ditto.
5939 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5940 register constraint to x.
5941 (*movv2sf_internal_rex64): Ditto.
5942 (*mov<mode>_internal): Change Y2 register constraint to x
5943 and add "isa" attribute.
5944 (*movv2sf_internal): Ditto.
5945 (*vec_extractv2si_1): Ditto.
5946 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5947 constraints to x and update "isa" attribute.
5948 (*vec_interleave_highv2df): Change Y3 registerconstraint
5949 to x and update "isa" attribute.
5950 (*vec_interleave_lowv2df): Ditto.
5951 (*vec_concatv2df): Change Y2 register constraint to x and
5952 update "isa" attribute.
5953 (sse2_loadld): Ditto.
5954 (*vec_extractv2di_1): Ditto.
5955 (*vec_dupv4si): Ditto.
5956 (*vec_dupv2di): Ditto.
5957 (*vec_concatv4si): Ditto.
5958 (vec_concatv2di): Ditto.
5959 * config/i386/constraints.md (Y2): Remove.
5960 (Y3): Ditto.
5961 (Y4): Ditto.
5962
5963 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5964
5965 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5966 dump_def_use_chain): Don't declare.
5967 (mark_conflict, create_new_chain): Move before users.
5968 (regrename_optimize): Move to near end of file.
5969
5970 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5971
5972 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5973 (secondary_input_reload_class): Remove Prototype.
5974 * config/avr/avr.c (byte_immediate_operand): Remove Function.
5975 * config/avr/avr.md (setmemhi): Use u8_operand.
5976 (strlenhi): Use const0_rtx for comparison.
5977 * config/avr/avr.h (avr_reg_order): Remove Declaration.
5978
5979 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5980
5981 * config/avr/avr.c (reg_class_tab): Make local to
5982 avr_regno_reg_class. Return smallest register class available.
5983
5984 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5985
5986 * config/avr/avr.c (STR_PREFIX_P): New Define.
5987 (avr_asm_declare_function_name): Use it.
5988 (avr_asm_named_section): Use it.
5989 (avr_section_type_flags): Use it.
5990
5991 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5992
5993 * doc/md.texi (automata_option): Document collapse-ndfa.
5994 * genautomata.c (COLLAPSE_OPTION): New macro.
5995 (collapse_flag): New static variable.
5996 (struct description): New member normal_decls_num.
5997 (struct automaton): New members advance_ainsn and collapse_ainsn.
5998 (gen_automata_option): Check for COLLAPSE_OPTION.
5999 (collapse_ndfa_insn_decl): New static variable.
6000 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
6001 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
6002 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
6003 necessary. Use normal_decls_num rather than decls_num, remove
6004 test for special decls.
6005 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
6006 (make_automaton); Likewise. Use the new advance_cycle_insn member
6007 of struct automaton.
6008 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
6009 is set.
6010 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
6011 transition. Create the necessary transitions for it.
6012 (create_ainsns): Return void. Take an automaton_t argument, and
6013 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
6014 callers changed.
6015 (COLLAPSE_NDFA_VALUE_NAME): New macro.
6016 (output_tables): Output code to define it.
6017 (output_internal_insn_code_evaluation): Output code to accept
6018 const0_rtx as collapse-ndfa transition.
6019 (output_default_latencies, output_print_reservation_func,
6020 output_print_description): Reorganize loops to use normal_decls_num
6021 as loop bound; remove special case for advance_cycle_insn_decl.
6022 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
6023 (check_automata_insn_issues): Check for collapse_ainsn.
6024 (expand_automate): Allocate sufficient space. Initialize
6025 normal_decls_num.
6026
6027 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6028
6029 * config/avr/avr.md: Fix indentation from r177991.
6030
6031 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6032
6033 * regrename.c (struct du_head): Remove member terminated.
6034 (create_new_chain): Don't initialize it.
6035 (scan_rtx_reg): Don't set or test it, test the open_chains_set
6036 bitmap instead.
6037 (tick, this_tick): New global variables, moved out of
6038 regrename_optimize.
6039 (current_id, open_chains, closed_chains, open_chains_set,
6040 live_in_chains, live_hard_regs): Reorder declarations.
6041 (dump_def_use_chain): Move function earlier in the file.
6042 (rename_chains): New static function, broken out of
6043 regrename_optimize.
6044 (regrename_optimize): Use it. Remove #if 0'ed code.
6045
6046 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6047
6048 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
6049
6050 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
6051
6052 PR target/50172
6053 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
6054
6055 2011-08-24 Richard Guenther <rguenther@suse.de>
6056
6057 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
6058 ref in the basic-block case. Move stripping array-refs
6059 to the place we create an access-function for it. Remove
6060 bogus stripping down a MEM_REF to its base.
6061
6062 2011-08-24 Richard Guenther <rguenther@suse.de>
6063
6064 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
6065 with -fno-strict-overflow.
6066
6067 2011-08-24 Richard Guenther <rguenther@suse.de>
6068
6069 * tree-vectorizer.c (vect_print_dump_info): Avoid the
6070 file and location clutter when dumping to dump files.
6071
6072 2011-08-24 Simon Baldwin <simonb@google.com>
6073
6074 * gengtype-state.c (write_state): Remove timestamped header line.
6075
6076 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6077
6078 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
6079 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
6080 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
6081 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
6082 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
6083 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
6084 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
6085 rules.
6086 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
6087
6088 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6089
6090 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
6091
6092 2011-08-24 Richard Guenther <rguenther@suse.de>
6093
6094 PR tree-optimization/50067
6095 * tree-data-ref.c (dr_analyze_indices): Do not add an access
6096 function for a MEM_REF base that has no evolution in the loop
6097 nest or that is not analyzable.
6098
6099 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
6100
6101 * ira.c (ira_init_register_move_cost): Check small subclasses
6102 through ira_reg_class_max_nregs and ira_available_class_regs.
6103
6104 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
6105
6106 * config/i386/constraints.md (Yp): New register constraint.
6107 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
6108 Yp register constraint.
6109 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
6110 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
6111 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
6112
6113 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
6114
6115 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
6116
6117 2011-08-23 Mark Heffernan <meheff@google.com>
6118
6119 PR middle-end/38509
6120 * common.opt (Wfree-nonheap-object): New option.
6121 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
6122 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
6123 to warning.
6124 (expand_builtin): Make warning conditional.
6125
6126 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
6127
6128 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
6129 (length_immediate): Handle imulx, ishiftx and rotatex.
6130 (imm_disp): Ditto.
6131 (isa): Add bmi2.
6132 (enabled): Handle bmi2.
6133 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
6134 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
6135 (*bmi2_umulditi3_1): New insn pattern.
6136 (*bmi2_umulsidi3_1): Ditto.
6137 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
6138 (*bmi2_ashl<mode>3_1): New insn pattern.
6139 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
6140 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
6141 (*bmi2_ashlsi3_1_zext): New insn pattern.
6142 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
6143 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
6144 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
6145 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
6146 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
6147 flags dependency.
6148 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
6149 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
6150 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
6151 flags dependency.
6152 (*bmi2_rorx<mode>3_1): New insn pattern.
6153 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
6154 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
6155 (*rotatert<mode>3_1 splitter): Ditto.
6156 (*bmi2_rorxsi3_1_zext): New insn pattern.
6157 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
6158 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
6159 (*rotatertsi3_1_zext splitter): Ditto.
6160
6161 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
6162
6163 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
6164 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
6165 (ix86_handle_option): Handle OPT_mbmi2 case.
6166 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
6167 (x86_64-*-*): Likewise.
6168 * config/i386/bmi2intrin.h: New file.
6169 * config/i386/cpuid.h (bit_BMI2): New.
6170 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6171 BMI2 feature.
6172 * config/i386/i386-c.c (ix86_target_macros_internal):
6173 Conditionally define __BMI2__.
6174 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
6175 Handle BMI2 option.
6176 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
6177 (print_reg): New code.
6178 (ix86_print_operand): Likewise.
6179 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
6180 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
6181 IX86_BUILTIN_PEXT64.
6182 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
6183 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
6184 IX86_BUILTIN_PEXT64.
6185 * config/i386/i386.h (TARGET_BMI2): New.
6186 * config/i386/i386.md (UNSPEC_PDEP): New.
6187 (UNSPEC_PEXT): Likewise.
6188 (*bmi2_bzhi_<mode>3): Likewise.
6189 (*bmi2_pdep_<mode>3): Likewise.
6190 (*bmi2_pext_<mode>3): Likewise.
6191 * config/i386/i386.opt (mbmi2): New.
6192 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
6193 is defined.
6194 * doc/extend.texi: Document BMI2 built-in functions.
6195 * doc/invoke.texi: Document -mbmi2.
6196
6197 2011-08-23 Jakub Jelinek <jakub@redhat.com>
6198
6199 PR middle-end/50161
6200 * simplify-rtx.c (simplify_const_unary_operation): If
6201 op is CONST_INT, don't look at op_mode, but use instead mode.
6202 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
6203 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
6204 operation and TRUNCATE/ZERO_EXTEND if needed.
6205 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
6206 Document that operand mode must be same as operation mode,
6207 or VOIDmode.
6208 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
6209 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
6210 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
6211 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
6212 use the mode of operand for the operation and add truncate
6213 or zero_extend around if needed.
6214 * config/c6x/c6x.md (ctzdi2): Likewise.
6215 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
6216
6217 2011-08-12 Michael Matz <matz@suse.de>
6218
6219 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
6220 (gimple_expand_cfg): Merge alignment info for coalesced pointer
6221 SSA names.
6222
6223 2011-08-23 Richard Guenther <rguenther@suse.de>
6224
6225 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
6226 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
6227 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
6228 from ...
6229 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
6230 (mem_refs_may_alias_p): Adjust.
6231 * tree-data-ref.h (dr_may_alias_p): Adjust.
6232 * tree-data-ref.c: Include tree-affine.h.
6233 (dr_analyze_indices): Do nothing for the non-loop case.
6234 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
6235 more cases in the non-loop case.
6236 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
6237 calls to dr_may_alias_p.
6238 (write_alias_graph_to_ascii_ecc): Likewise.
6239 (write_alias_graph_to_ascii_dot): Likewise.
6240 (build_alias_set_optimal_p): Likewise.
6241
6242 2011-08-23 Richard Guenther <rguenther@suse.de>
6243
6244 PR tree-optimization/50162
6245 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
6246
6247 2011-08-23 Richard Guenther <rguenther@suse.de>
6248
6249 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
6250 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
6251 (create_data_ref): Also dump access functions for the created data-ref.
6252
6253 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
6254 Kirill Yukhin <kirill.yukhin@intel.com>
6255
6256 PR target/50155
6257 * config/i386/sse.md (VI_AVX2): New.
6258 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
6259 (*<plusminus_insn><mode>3): Ditto.
6260 (<sse2_avx2>_andnot<mode>3): Ditto.
6261 (*andnot<mode>3): Fix order of cond operands.
6262 Add asserts for correct TARGET_xxx.
6263 (*<any_logic:code><mode>3): Ditto.
6264
6265 2011-08-22 Anatoly Sokolov <aesok@post.ru>
6266
6267 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
6268 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
6269 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
6270 regclass argument type to reg_class_t. Change 'max' and 'v' vars
6271 and return types to unsigned char. Use reg_class_contents instead
6272 of class_contents.
6273 (TARGET_CLASS_MAX_NREGS): Define.
6274
6275 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
6276
6277 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
6278 to make computed_jump_p return true.
6279
6280 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6281
6282 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
6283 (PICFLAG_FOR_TARGET): Substitute.
6284 * aclocal.m4: Regenerate.
6285 * configure: Regenerate.
6286
6287 2011-08-22 Dodji Seketeli <dodji@redhat.com>
6288
6289 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
6290 after reading in the pch.
6291
6292 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
6293
6294 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
6295 * configure: Regenerated.
6296
6297 2011-08-22 Jakub Jelinek <jakub@redhat.com>
6298
6299 PR tree-optimization/50133
6300 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
6301 from stmt instead of some statement around gsi.
6302
6303 PR middle-end/50141
6304 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
6305 innerdecl is a VAR_DECL.
6306
6307 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
6308
6309 * config/i386/avx2intrin.h: New file.
6310 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
6311 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
6312 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
6313 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
6314 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
6315 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
6316 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
6317 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
6318 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
6319 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
6320 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
6321 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
6322 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
6323 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
6324 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
6325 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
6326 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
6327 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
6328 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
6329 VOID_FTYPE_PV8SI_V8SI_V8SI,
6330 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
6331 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
6332 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
6333 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
6334 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
6335 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
6336 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
6337 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
6338 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
6339 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
6340 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
6341 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
6342 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
6343 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
6344 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
6345 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
6346 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
6347 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
6348 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
6349 V4DI_FTYPE_V4DI_INT_CONVERT,
6350 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
6351 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
6352 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
6353 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
6354 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
6355 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
6356 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
6357 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
6358 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
6359 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
6360 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
6361 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
6362 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
6363 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
6364 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
6365 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
6366 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
6367 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
6368 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
6369 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
6370 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
6371 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
6372 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
6373 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
6374 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
6375 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
6376 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
6377 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
6378 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
6379 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
6380 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
6381 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
6382 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
6383 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
6384 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
6385 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
6386 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
6387 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
6388 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
6389 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
6390 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
6391 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
6392 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
6393 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
6394 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
6395 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
6396 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
6397 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
6398 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
6399 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
6400 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
6401 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
6402 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
6403 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
6404 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
6405 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
6406 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
6407 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
6408 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
6409 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
6410 IX86_BUILTIN_VBROADCASTSS_PS256,
6411 IX86_BUILTIN_VBROADCASTSD_PD256,
6412 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
6413 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
6414 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
6415 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
6416 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
6417 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
6418 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
6419 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
6420 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
6421 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
6422 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
6423 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
6424 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
6425 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
6426 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
6427 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
6428 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
6429 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
6430 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
6431 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
6432 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
6433 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
6434 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
6435 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
6436 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
6437 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
6438 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
6439 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
6440 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
6441 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
6442 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
6443 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
6444 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
6445 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
6446 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
6447 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
6448 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
6449 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
6450 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
6451 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
6452 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
6453 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
6454 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
6455 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
6456 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
6457 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
6458 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
6459 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
6460 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
6461 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
6462 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
6463 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
6464 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
6465 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
6466 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
6467 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
6468 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
6469 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
6470 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
6471 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
6472 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
6473 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
6474 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
6475 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
6476 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
6477 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
6478 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
6479 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
6480 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
6481 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
6482 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
6483 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
6484 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
6485 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
6486 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
6487 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
6488 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
6489 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
6490 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
6491 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
6492 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
6493 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
6494 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
6495 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
6496 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
6497 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
6498 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
6499 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
6500 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
6501 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
6502 IX86_BUILTIN_VBROADCASTSD_PD256,
6503 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
6504 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
6505 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
6506 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
6507 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
6508 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
6509 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
6510 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
6511 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
6512 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
6513 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
6514 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
6515 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
6516 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
6517 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
6518 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
6519 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
6520 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
6521 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
6522 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
6523 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
6524 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
6525 IX86_BUILTIN_GATHERDIV8SI.
6526 (ix86_preferred_simd_mode): Support AVX2 modes.
6527 (ix86_expand_args_builtin): Support AVX2 builtins.
6528 (ix86_expand_special_args_builtin): Likewise.
6529 (ix86_expand_builtin): Likewise.
6530 * config/i386/i386.md (UNSPEC_VPERMSI): New.
6531 (UNSPEC_VPERMDF): Likewise.
6532 (UNSPEC_VPERMSF): Likewise.
6533 (UNSPEC_VPERMDI): Likewise.
6534 (UNSPEC_VPERMTI): Likewise.
6535 (UNSPEC_GATHER): Likewise.
6536 (ssemodesuffix): Extend.
6537 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
6538 is defined.
6539 * config/i386/predicates.md (const1248_operand): New.
6540 * config/i386/sse.md (VI1_AVX2): New mode iterator.
6541 (VI2_AVX2): Likewise.
6542 (VI4_AVX2): Likewise.
6543 (VI8_AVX2): Likewise.
6544 (VIMAX_AVX2): Likewise.
6545 (SSESCALARMODE): Likewise.
6546 (VI12_AVX2): Likewise.
6547 (VI24_AVX2): Likewise.
6548 (VI124_AVX2): Likewise.
6549 (VI248_AVX2): Likewise.
6550 (VI48_AVX2): Likewise.
6551 (VI4SD_AVX2): Likewise.
6552 (V48_AVX2): Likewise.
6553 (AVX256MODE2P): Likewise.
6554 (AVXMODE48P_DI): Likewise.
6555 (sse2_avx2): New mode attribute.
6556 (ssse3_avx2): Likewise.
6557 (sse4_1_avx2): Likewise.
6558 (avx_avx2): Likewise.
6559 (ssebytemode): Likewise.
6560 (AVXTOSSEMODE): Likewise.
6561 (AVXMODE48P_DI): Likewise.
6562 (gthrfirstp): Likewise.
6563 (gthrlastp): Likewise.
6564 (lshift): New code_iterator
6565 (lshift): New code attribute.
6566 (lshift): Likewise.
6567 (ssescalarmodesuffix): Update.
6568 (sseunpackmode): Likewise.
6569 (ssepackmode): Likewise.
6570 (avx2_vec_dupv4sf): New insn pattern.
6571 (avx2_vec_dupv8sf): Likewise.
6572 (avx2_interleave_highv4di): Likewise.
6573 (avx2_interleave_lowv4di): Likewise.
6574 (avx2_umulv4siv4di3): Likewise
6575 (*avx2_umulv4siv4di3): Likewise
6576 (avx2_pmaddwd): Likewise.
6577 (*avx2_pmaddwd): Likewise.
6578 (avx2_lshrqv4di3): Likewise.
6579 (avx2_lshlqv4di3): Likewise.
6580 (avx2_lshl<mode>3): Likewise.
6581 (avx2_<umaxmin:code><mode>3): Likewise.
6582 (*avx2_<umaxmin:code><mode>3): Likewise.
6583 (avx2_<smaxmin:code><mode>3): Likewise.
6584 (*avx2_<smaxmin:code><mode>3): Likewise.
6585 (avx2_eq<mode>3): Likewise.
6586 (*avx2_eq<mode>3): Likewise.
6587 (avx2_gt<mode>3): Likewise.
6588 (avx2_interleave_highv32qi): New.
6589 (avx2_interleave_lowv32qi): Likewise.
6590 (avx2_interleave_highv16hi): Likewise.
6591 (avx2_interleave_lowv16hi): Likewise.
6592 (avx2_interleave_highv8si): Likewise.
6593 (avx2_interleave_lowv8si): Likewise.
6594 (avx2_pshufd): Likewise.
6595 (avx2_pshufd_1): Likewise.
6596 (avx2_pshuflwv3): Likewise.
6597 (avx2_pshuflw_1): Likewise.
6598 (avx2_pshufhwv3): Likewise.
6599 (avx2_pshufhw_1): Likewise.
6600 (avx2_uavgv32qi3): Likewise.
6601 (*avx2_uavgv32qi3): Likewise.
6602 (avx2_uavgv16hi3): Likewise.
6603 (*avx2_uavgv16hi3): Likewise.
6604 (avx2_pmovmskb): Likewise.
6605 (avx2_phaddwv16hi3): Likewise.
6606 (avx2_phadddv8si3): Likewise.
6607 (avx2_phaddswv16hi3): Likewise.
6608 (avx2_phsubwv16hi3): Likewise.
6609 (avx2_phsubdv8si3): Likewise.
6610 (avx2_phsubswv16hi3): Likewise.
6611 (avx2_pmaddubsw256): Likewise.
6612 (avx2_umulhrswv16hi3): Likewise.
6613 (*avx2_umulhrswv16hi3): Likewise.
6614 (avx2_packusdw): Likewise.
6615 (avx2_pblendd<mode>): Likewise.
6616 (avx2_<code>v16qiv16hi2): Likewise.
6617 (avx2_<code>v8qiv8si2): Likewise.
6618 (avx2_<code>v8hiv8si2): Likewise.
6619 (avx2_<code>v4qiv4di2): Likewise.
6620 (avx2_<code>v4hiv4di2): Likewise.
6621 (avx2_<code>v4siv4di2): Likewise.
6622 (avx2_pbroadcast<mode>): Likewise.
6623 (avx2_permvarv8si): Likewise.
6624 (avx2_permv4df): Likewise.
6625 (avx2_permvarv8sf): Likewise.
6626 (avx2_permv4di): Likewise.
6627 (avx2_permv2ti): Likewise.
6628 (avx2_vec_dupv4df): Likewise.
6629 (avx2_vbroadcasti128_<mode>): Likewise.
6630 (avx2_vec_set_lo_v4di): Likewise.
6631 (avx2_vec_set_hi_v4di): Likewise.
6632 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
6633 (avx2_extracti128): Likewise.
6634 (avx2_inserti128): Likewise.
6635 (avx2_ashrvv8si): Likewise.
6636 (avx2_ashrvv4si): Likewise.
6637 (avx2_<lshift>vv8si): Likewise.
6638 (avx2_<lshift>v<mode>): Likewise.
6639 (avx2_<lshift>vv2di): Likewise.
6640 (avx2_gathersi<mode>): Likewise.
6641 (*avx2_gathersi<mode>): Likewise.
6642 (avx2_gatherdi<mode>): Likewise.
6643 (*avx2_gatherdi<mode>): Likewise.
6644 (avx2_gatherdi<mode>256): Likewise.
6645 (*avx2_gatherdi<mode>256): Likewise.
6646 (<plusminus_insn><mode>3): Use VI mode iterator.
6647 (*<plusminus_insn><mode>3): Use VI mode iterator.
6648 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6649 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
6650 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6651 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
6652 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
6653 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
6654 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
6655 Use VI2_AVX2 mode iterator.
6656 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
6657 Use VI2_AVX2 mode iterator.
6658 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
6659 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
6660 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
6661 Use VI4_AVX2 mode iterator.
6662 (ashr<mode>3): Use VI24_AVX2 mode iterator.
6663 (lshr<mode>3): Use VI248_AVX2 mode iterator.
6664 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
6665 Use VIMAX_AVX2 mode iterator.
6666 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
6667 Use VI mode iterator.
6668 (*andnot<mode>3): Update for AVX2.
6669 (*<any_logic:code><mode>3): Likewise.
6670 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
6671 Use VI1_AVX mode iterator.
6672 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
6673 Use VI2_AVX mode iterator.
6674 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
6675 Use VI1_AVX mode iterator.
6676 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
6677 Use VI8_AVX2 mode iterator.
6678 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
6679 Use VI1_AVX2 mode iterator.
6680 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
6681 Use VI124_AVX2 mode iterator.
6682 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
6683 Use SSESCALARMODE mode iterator.
6684 (abs<mode>2): Use VI124_AVX2 mode iterator.
6685 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
6686 Use VI8_AVX2 mode iterator.
6687 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
6688 Use VI1_AVX2 mode iterator.
6689 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
6690 Use VI1_AVX2 mode iterator.
6691 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
6692 Use VI2_AVX2 mode iterator.
6693 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
6694 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
6695 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
6696 avx_maskstore<ssemodesuffix><avxsizesuffix>.
6697 Use V48_AVX2 mode iterator.
6698 * doc/extend.texi: Document AVX2 built-in functions.
6699 * doc/invoke.texi: Document -mavx2.
6700
6701 2011-08-22 Matthias Klose <doko@debian.org>
6702
6703 Revert:
6704 2011-07-11 Arthur Loiret <aloiret@debian.org>
6705 Matthias Klose <doko@debian.org>
6706 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6707 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6708 convention.
6709 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6710
6711 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
6712
6713 PR bootstrap/50146
6714 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
6715 to #ifndef HONOR_REG_ALLOC_ORDER block.
6716
6717 2011-08-21 Richard Henderson <rth@redhat.com>
6718
6719 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
6720 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
6721 * resource.c (next_insn_no_annul): Likewise.
6722 (mark_set_resources): Likewise.
6723 * reorg.c (delete_from_delay_slot): Likewise.
6724 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
6725 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
6726
6727 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
6728
6729 * config/i386/i386.md (any_div): Remove.
6730 (sgnprefix): Update for removal.
6731 (u): Ditto.
6732
6733 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
6734
6735 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
6736 for ira_reg_class_max_nregs. Increase pressure by 1.
6737 (mark_pseudo_regno_subword_dead): Use allocno class
6738 for ira_reg_class_max_nregs.
6739
6740 2011-08-20 Richard Henderson <rth@redhat.com>
6741
6742 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
6743 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
6744 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
6745 config/c6x/ltf.c: Adjust include path for soft-fp.
6746
6747 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
6748
6749 PR other/46770
6750 * config.gcc (tm_file): Add initfini-array.h if
6751 .init_arrary/.fini_array are supported.
6752
6753 * crtstuff.c: Don't generate .ctors nor .dtors sections if
6754 USE_INITFINI_ARRAY is defined.
6755
6756 * output.h (default_elf_init_array_asm_out_constructor): New.
6757 (default_elf_fini_array_asm_out_destructor): Likewise.
6758 * varasm.c (elf_init_array_section): Likewise.
6759 (elf_fini_array_section): Likewise.
6760 (get_elf_initfini_array_priority_section): Likewise.
6761 (default_elf_init_array_asm_out_constructor): Likewise.
6762 (default_elf_fini_array_asm_out_destructor): Likewise.
6763
6764 * config/initfini-array.h: New.
6765
6766 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6767
6768 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
6769 OK for ST_REGS and FP_REGS before taking those classes into account.
6770
6771 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6772
6773 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
6774 before checking for annulled branches.
6775
6776 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
6777
6778 * config/i386/i386.c (ix86_binary_operator_ok): Use
6779 satisfies_constraint_L.
6780
6781 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
6782 Michael Matz <matz@suse.de>
6783
6784 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
6785 trunc (a + copysign (nextafter (0.5, 0.0), a)).
6786
6787 2011-08-20 Anatoly Sokolov <aesok@post.ru>
6788
6789 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6790 * doc/tm.texi: Regenerate.
6791 * targhooks.c (default_preferred_output_reload_class): Don't use
6792 PREFERRED_OUTPUT_RELOAD_CLASS macro.
6793 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
6794
6795 2011-08-20 Jakub Jelinek <jakub@redhat.com>
6796
6797 PR tree-optimization/48739
6798 * tree-ssa.c: Include cfgloop.h.
6799 (execute_update_addresses_taken): When updating ssa, if in loop closed
6800 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
6801 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
6802
6803 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
6804
6805 PR rtl-optimization/49936
6806 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
6807 for calculation of max register move costs.
6808
6809 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6810
6811 * c-parser.c (c_parser_postfix_expression): Convert operands of
6812 __builtin_complex to their semantic types.
6813
6814 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
6815
6816 PR middle-end/49721
6817 * explow.c (convert_memory_address_addr_space): Also permute the
6818 conversion and addition of constant for zero-extend.
6819
6820 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6821
6822 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6823 * doc/extend.texi (__builtin_complex): Document.
6824
6825 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6826
6827 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6828 beyond conversions.
6829 (convert_mult_to_widen): Convert constant inputs to the right type.
6830 (convert_plusminus_to_widen): Don't automatically reject inputs that
6831 are not an SSA_NAME.
6832 Convert constant inputs to the right type.
6833
6834 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6835
6836 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6837 to the correct type.
6838
6839 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6840
6841 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6842 unsigned inputs of different modes.
6843 (convert_plusminus_to_widen): Likewise.
6844
6845 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6846
6847 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6848 'type'.
6849 Use 'type' from caller, not inferred from 'rhs'.
6850 Don't reject non-conversion statements. Do return lhs in this case.
6851 (is_widening_mult_p): Add new argument 'type'.
6852 Use 'type' from caller, not inferred from 'stmt'.
6853 Pass type to is_widening_mult_rhs_p.
6854 (convert_mult_to_widen): Pass type to is_widening_mult_p.
6855 (convert_plusminus_to_widen): Likewise.
6856
6857 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6858
6859 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6860 Ensure the the larger type is the first operand.
6861
6862 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6863
6864 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6865 unsupported unsigned multiplies to signed.
6866 (convert_plusminus_to_widen): Likewise.
6867
6868 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6869
6870 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6871 conversion statement separating multiply-and-accumulate.
6872
6873 2011-08-19 Richard Guenther <rguenther@suse.de>
6874
6875 PR tree-optimization/50067
6876 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6877 offset only if we accounted for it.
6878
6879 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6880
6881 * config/arm/arm.md (maddhidi4): Remove '*' from name.
6882 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6883 * optabs.c (find_widening_optab_handler_and_mode): New function.
6884 (expand_widen_pattern_expr): Use find_widening_optab_handler.
6885 (expand_binop_directly): Likewise.
6886 (expand_binop): Likewise.
6887 * optabs.h (find_widening_optab_handler): New macro define.
6888 (find_widening_optab_handler_and_mode): New prototype.
6889 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6890 type precision rules.
6891 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6892 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6893 (is_widening_mult_rhs_p): Allow widening by more than one mode.
6894 Explicitly disallow mis-matched input types.
6895 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6896 input types to fit the new handler.
6897 (convert_plusminus_to_widen): Likewise.
6898
6899 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6900
6901 * expr.c (expand_expr_real_2): Use widening_optab_handler.
6902 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6903 (gen_insn): $N now means $a must be wider than $b, not consecutive.
6904 * optabs.c (widened_mode): New function.
6905 (expand_widen_pattern_expr): Use widening_optab_handler.
6906 (expand_binop_directly): Likewise.
6907 (expand_binop): Likewise.
6908 * optabs.h (widening_optab_handlers): New struct.
6909 (optab_d): New member, 'widening'.
6910 (widening_optab_handler): New function.
6911 (set_widening_optab_handler): New function.
6912 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6913 widening_optab_handler.
6914 (convert_plusminus_to_widen): Likewise.
6915
6916 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6917
6918 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6919 pedantic.
6920 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6921 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6922
6923 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6924
6925 * opth-gen.awk: Do not declare target save/restore structures and
6926 functions if IN_RTS defined.
6927
6928 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6929
6930 PR target/49437
6931 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6932 when stack was realigned in interrupt handler prologue.
6933
6934 2011-08-18 Joseph Myers <joseph@codesourcery.com>
6935
6936 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6937 (quals_from_declspecs): Assert _Noreturn not present.
6938 (grokdeclarator): Handle _Noreturn.
6939 (build_null_declspecs): Initialize noreturn_p.
6940 (declspecs_add_scspec): Handle RID_NORETURN.
6941 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6942 (c_parser_attributes): Handle RID_NORETURN.
6943 * c-tree.h (struct c_declspecs): Add noreturn_p.
6944 * ginclude/stdnoreturn.h: New.
6945 * Makefile.in (USER_H): Add stdnoreturn.h.
6946
6947 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
6948
6949 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6950 (OPTION_MASK_ISA_AVX_UNSET): Update.
6951 (OPTION_MASK_ISA_AVX2_UNSET): New.
6952 (ix86_handle_option): Handle OPT_mavx2 case.
6953 * config/i386/cpuid.h (bit_AVX2): New.
6954 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6955 AVX2 feature.
6956 * config/i386/i386-c.c (ix86_target_macros_internal):
6957 Conditionally define __AVX2__.
6958 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6959 Define "core-avx2" processor alias. Handle avx2 option.
6960 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6961 * config/i386/i386.h (TARGET_AVX2): New.
6962 * config/i386/i386.opt (mavx2): New.
6963 * doc/invoke.texi: Document -mavx2.
6964
6965 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
6966
6967 PR rtl-optimization/49890
6968 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6969 subclasses of class which is superset of a pressure class.
6970
6971 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
6972 Igor Zamyatin <igor.zamyatin@intel.com>
6973
6974 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6975 with HOST_WIDE_INT for isa_flag.
6976 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6977 isa variables.
6978
6979 * config/i386/i386.c (ix86_target_string): Replace int with
6980 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
6981 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6982 (pta_flags): Removed.
6983 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6984 (pta): Use HOST_WIDE_INT on flags.
6985 (builtin_isa): Use HOST_WIDE_INT on isa.
6986 (ix86_add_new_builtins): Likewise.
6987 (def_builtin): Use HOST_WIDE_INT on mask.
6988 (def_builtin_const): Likewise.
6989 (builtin_description): Likewise.
6990
6991 * config/i386/i386.opt (ix86_isa_flags): Replace int with
6992 HOST_WIDE_INT.
6993 (ix86_isa_flags_explicit): Likewise.
6994 (x_ix86_isa_flags_explicit): Likewise.
6995
6996 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
6997
6998 PR rtl-optimization/50107
6999 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
7000 (ira_hard_reg_in_set_p): New.
7001
7002 * ira-color.c (calculate_saved_nregs): New.
7003 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
7004 hard regs.
7005 (allocno_reload_assign, fast_allocation): Use
7006 ira_hard_reg_set_intersection_p instead of
7007 ira_hard_reg_not_in_set_p.
7008
7009 * ira.c (setup_reg_renumber): Use
7010 ira_hard_reg_set_intersection_p instead of
7011 ira_hard_reg_not_in_set_p.
7012 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
7013 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
7014
7015 * ira-costs.c (ira_tune_allocno_costs): Use
7016 ira_hard_reg_set_intersection_p instead of
7017 ira_hard_reg_not_in_set_p.
7018
7019 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7020 Igor Zamyatin <igor.zamyatin@intel.com>
7021
7022 * hwint.h (HOST_WIDE_INT_1): New.
7023
7024 * opt-functions.awk (switch_bit_fields): Initialize the
7025 host_wide_int field.
7026 (host_wide_int_var_name): New.
7027 (var_type_struct): Check and return HOST_WIDE_INT.
7028
7029 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
7030
7031 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
7032
7033 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
7034 check masks for HOST_WIDE_INT.
7035
7036 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
7037 (option_enabled): Likewise.
7038 (get_option_state): Likewise.
7039
7040 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
7041 to HOST_WIDE_INT.
7042
7043 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7044 Marc Glisse <marc.glisse@normalesup.org>
7045
7046 PR libstdc++-v3/1773
7047 * target.def (decl_mangling_context): New C++ hook.
7048 * doc/tm.texi: Regenerate.
7049 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
7050 * config/sol2-protos.h: Group by source file.
7051 (solaris_cxx_decl_mangling_context): Declare.
7052 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
7053 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
7054 Use $<.
7055 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
7056 Add sol2-stubs.o to extra_objs.
7057
7058 2011-08-18 Jakub Jelinek <jakub@redhat.com>
7059
7060 PR target/50009
7061 * stor-layout.c (update_alignment_for_field): Don't ICE on
7062 packed flexible array members if ms_bitfield_layout_p.
7063
7064 PR target/50092
7065 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
7066 on the result before returning it.
7067
7068 PR debug/50017
7069 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
7070 is a debug stmt, use location of the first non-debug stmt after it.
7071
7072 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7073
7074 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
7075 (arm_size_rtx_costs): Likewise.
7076
7077 2011-08-18 Richard Guenther <rguenther@suse.de>
7078
7079 * tree.h (tree_int_cst_msb): Remove.
7080 * tree.c (tree_int_cst_msb): Likewise.
7081 (tree_int_cst_sign_bit): Move from ...
7082 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
7083
7084 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7085
7086 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
7087 * doc/tm.texi: Regenerate.
7088 * target.def (rtx_costs): Add an opno parameter.
7089 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7090 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7091 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7092 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7093 * cse.c (COST_IN): Add an opno parameter.
7094 (notreg_cost): Likewise. Update call to rtx_cost.
7095 (COST, fold_rtx): Update accordingly.
7096 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
7097 * expmed.c (emit_store_flag): Likewise.
7098 * optabs.c (avoid_expensive_constant): Add an opno parameter.
7099 Update call to rtx_cost.
7100 (expand_binop_directly, expand_binop): Likewise.
7101 (expand_twoval_binop, prepare_cmp_insn): Likewise.
7102 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
7103 (set_src_cost, get_full_set_src_cost): Update accordingly.
7104 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
7105 to target hook.
7106 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
7107 (default_adress_cost): Update calls to rtx_cost.
7108
7109 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
7110 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
7111 (arm_rtx_costs): Add an opno parameter.
7112 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
7113 adjust any recursive rtx-cost calls.
7114 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
7115 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7116 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
7117 * config/cris/cris.c (cris_rtx_costs): Likewise.
7118 * config/frv/frv.c (frv_rtx_costs): Likewise.
7119 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
7120 * config/i386/i386.c (ix86_rtx_costs): Likewise.
7121 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
7122 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
7123 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
7124 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
7125 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
7126 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
7127 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
7128 * config/mep/mep.c (mep_rtx_cost): Likewise.
7129 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
7130 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
7131 (mips_zero_extend_cost): Add an opno parameter.
7132 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
7133 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
7134 to rtx_cost.
7135 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
7136 rtx-cost calls.
7137 * config/pa/pa.c (hppa_rtx_costs): Likewise.
7138 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
7139 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
7140 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
7141 (rs6000_debug_rtx_costs): Likewise.
7142 * config/s390/s390.c (s390_rtx_costs): Likewise.
7143 * config/score/score-protos.h (score_rtx_costs): Likewise.
7144 * config/score/score.c (score_rtx_costs): Likewise.
7145 * config/sh/sh.c (andcosts): Update call to rtx_cost.
7146 (sh_rtx_costs): Add an opno parameter.
7147 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
7148 * config/spu/spu.c (spu_rtx_costs): Likewise.
7149 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7150 * config/v850/v850.c (v850_rtx_costs): Likewise.
7151 * config/vax/vax.c (vax_rtx_costs): Likewise.
7152 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7153
7154 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7155
7156 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
7157 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
7158 rtx_cost.
7159 * calls.c (precompute_register_parameters): Likewise.
7160 * combine.c (expand_compound_operation, make_extraction): Likewise.
7161 (force_to_mode, distribute_and_simplify_rtx): Likewise.
7162 * dse.c (find_shift_sequence): Likewise.
7163 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
7164 * expr.c (compress_float_constant): Likewise.
7165 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
7166 * gcse.c (want_to_gcse_p): Likewise.
7167 * ifcvt.c (noce_try_sign_mask): Likewise.
7168 * loop-doloop.c (doloop_optimize): Likewise.
7169 * loop-invariant.c (create_new_invariant): Likewise.
7170 * optabs.c (avoid_expensive_constant): Likewise.
7171 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
7172 (try_replace_in_use, reload_cse_move2add): Likewise.
7173 * reload1.c (calculate_elim_costs_all_insns): Likewise.
7174 (note_reg_elim_costly): Likewise.
7175 * rtlanal.c (insn_rtx_cost): Likewise.
7176 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7177 * stmt.c (lshift_cheap_p): Likewise.
7178 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
7179 * config/avr/avr.c (final_prescan_insn): Likewise.
7180 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7181 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
7182
7183 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7184
7185 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
7186 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
7187 * cfgloopanal.c (seq_cost): Likewise.
7188 * loop-invariant.c (create_new_invariant): Likewise.
7189 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
7190 (reload_cse_move2add): Use get_full_set_rtx_cost.
7191
7192 2011-08-18 Richard Guenther <rguenther@suse.de>
7193
7194 * expr.c (get_inner_reference): Fix typo in last change.
7195
7196 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
7197 Joseph Myers <joseph@codesourcery.com>
7198
7199 PR tree-optimization/49963
7200 * hwint.c (absu_hwi): Define.
7201 * hwint.h (absu_hwi): Declare.
7202 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
7203 of abs_hwi.
7204 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
7205 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
7206
7207 2011-08-18 Richard Guenther <rguenther@suse.de>
7208
7209 * expr.c (get_inner_reference): Sign-extend the constant
7210 twos-complement offset before doing arbitrary precision
7211 arithmetic on it.
7212 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
7213 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
7214 to get_constraint_for_ptr_offset.
7215
7216 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
7217
7218 PR target/50068
7219 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
7220
7221 2011-08-17 Richard Guenther <rguenther@suse.de>
7222
7223 * tree.h (convert_to_ptrofftype_loc): New function.
7224 (convert_to_ptrofftype): Define.
7225 * builtins.c (expand_builtin_bzero): Use size_type_node.
7226 (fold_builtin_bzero): Likewise.
7227 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
7228 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
7229 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
7230 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
7231 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
7232 * fold-const.c (build_range_check): Negate using the original type.
7233 (fold_unary_loc): Use fold_build_pointer_plus_loc.
7234 * gimple-fold.c (gimple_adjust_this_by_delta): Use
7235 convert_to_ptrofftype.
7236 * gimplify.c (gimplify_self_mod_expr): Likewise.
7237 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
7238 (graphite_create_new_loop_guard): Likewise.
7239 * graphite-sese-to-poly.c (my_long_long): Remove.
7240 (scop_ivs_can_be_represented): Adjust.
7241 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
7242 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
7243 * tree-loop-distribution.c (build_size_arg_loc): Use
7244 size_type_node.
7245 (generate_memset_zero): Simplify.
7246 * tree-mudflap.c: Use fold_convert, not convert.
7247 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
7248 its own type.
7249 (determine_offset): Likewise for DR_STEP.
7250 (valid_initializer_p): Likewise.
7251 * tree-profile.c (prepare_instrumented_value): Convert the pointer
7252 to an integer type of same size.
7253 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
7254 to sizetype without need.
7255 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7256 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
7257 * tree-ssa-loop-manip.c (create_iv): Likewise.
7258 (determine_exit_conditions): Adjust comment.
7259 * tree-ssa-pre.c (create_expression_by_pieces): Use
7260 convert_to_ptrofftype.
7261 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
7262 * varasm.c (array_size_for_constructor): Compute using double_ints.
7263
7264 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7265
7266 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
7267 when generating an integer result where possible. Short-cut
7268 comparison against 0 also for QImode.
7269
7270 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7271
7272 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
7273 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
7274 prototype.
7275 * config/spu/spu.c (spu_legitimize_reload_address): New function.
7276 (spu_legitimate_address_p): Do not check displacement if the base
7277 is an eliminable stack register.
7278
7279 2011-08-16 Anatoly Sokolov <aesok@post.ru>
7280
7281 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
7282 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
7283 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
7284 m32c_preferred_output_reload_class): Remove.
7285 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
7286 Change rclass argument and return types to reg_class_t. Use
7287 reg_class_subset_p instead of class_sizes.
7288 (m32c_preferred_output_reload_class): Make static. Change rclass
7289 argument and return types to reg_class_t.
7290 (TARGET_PREFERRED_RELOAD_CLASS,
7291 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7292
7293 2011-08-16 Kai Tietz <ktietz@redhat.com>
7294
7295 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
7296
7297 2011-08-16 Richard GUenther <rguenther@suse.de>
7298
7299 PR tree-optimization/50082
7300 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
7301 warnings here, instead of ...
7302 (ssa_forward_propagate_and_combine): ... here.
7303 (forward_propagate_into_comparison_1): Adjust.
7304 (forward_propagate_into_comparison): Likewise.
7305 (forward_propagate_into_gimple_cond): Likewise.
7306 (forward_propagate_into_cond): Likewise.
7307
7308 2011-08-16 Andreas Schwab <schwab@redhat.com>
7309
7310 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
7311 instead of ggc_alloc_zone_vec_rtvec_def.
7312
7313 2011-08-16 Richard Guenther <rguenther@suse.de>
7314
7315 * tree.h (ptrofftype_p): New helper function.
7316 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
7317 offset verification.
7318 (verify_gimple_assign_binary): Likewise.
7319 * tree.c (build2_stat): Likewise.
7320 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
7321 (reset_evolution_in_loop): Likewise.
7322 * tree-chrec.h (build_polynomial_chrec): Likewise.
7323
7324 2011-08-16 Liang Wang <lwang1@marvell.com>
7325
7326 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
7327 ggc_alloc_zone_vec_rtvec_def.
7328
7329 2011-08-16 Richard Guenther <rguenther@suse.de>
7330
7331 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
7332 helper factored out from ...
7333 (extract_range_from_binary_expr_1): ... here. Re-structure
7334 to not glob handling too different tree codes.
7335
7336 2011-08-15 Richard Henderson <rth@redhat.com>
7337
7338 PR middle-end/50006
7339 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
7340 setting out to include allocate_stack named pattern as well.
7341 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
7342 * stmt.c (expand_stack_restore): Likewise.
7343
7344 2011-08-15 Richard Guenther <rguenther@suse.de>
7345
7346 PR middle-end/50082
7347 * fold-const.c (maybe_canonicalize_comparison_1): Properly
7348 convert the modified operand to the other operand type.
7349 (fold_comparison): Call maybe_canonicalize_comparison_1 with
7350 useless conversions stripped from comparison operands.
7351
7352 2011-08-15 Richard Guenther <rguenther@suse.de>
7353
7354 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
7355 (extract_range_from_unary_expr_1): Restructure.
7356
7357 2011-08-15 Richard Guenther <rguenther@suse.de>
7358
7359 PR tree-optimization/50058
7360 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
7361 copy matching.
7362
7363 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7364
7365 PR target/50022
7366 * config/arm/arm.c (output_move_double): Add 2 parameters
7367 to count the number of insns emitted and whether to emit or not.
7368 Use the flag to decide when to emit and count number of instructions
7369 that will be emitted.
7370 Handle case where output_move_double might be called for calculating
7371 lengths with an invalid constant.
7372 (arm_count_output_move_double_insns): Define.
7373 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
7374 (output_move_double): Adjust prototype.
7375 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
7376 output_move_double.
7377 ("*movdi_vfp_cortexa8"): Likewise and add attribute
7378 for ce_count.
7379 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
7380 ("*movdf_soft_insn"): Likewise.
7381 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
7382 ("*cirrus_thumb2_movdi"): Likewise.
7383 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
7384 ("*cirrus_movdf_hard_insn"): Likewise.
7385 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
7386 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
7387 ("mov<mode>_internal VMMX"): Likewise.
7388 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
7389
7390 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
7391
7392 * config/i386/i386.c (ix86_expand_round_sse4): New function.
7393 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
7394 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
7395 for TARGET_ROUND.
7396
7397 (rint<mode>2): Simplify TARGET_ROUND check.
7398 (floor<mode>2): Ditto.
7399 (ceil<mode>2): Ditto.
7400 (btrunc<mode>2): Ditto.
7401
7402 2011-08-14 Anatoly Sokolov <aesok@post.ru>
7403
7404 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
7405 as mmix_preferred_output_reload_class.
7406
7407 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
7408
7409 * PR target/49903
7410 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
7411 (branch_unspec): New insn.
7412 (branch): Beauty farm.
7413 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
7414 to be IF_THEN_ELSE.
7415 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
7416 New static functions.
7417 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
7418 Use CONST_INT_P. Beauty.
7419
7420 2011-08-12 Richard Henderson <rth@redhat.com>
7421
7422 PR rtl-opt/49994
7423 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
7424 * sched-deps.c (init_deps): Clear it.
7425 (deps_analyze_insn): Consume it.
7426 (sched_analyze_insn): Fill it.
7427
7428 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7429
7430 PR target/48328
7431 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
7432 for tbh instructions.
7433
7434 2011-08-12 Diego Novillo <dnovillo@google.com>
7435
7436 * data-streamer.h (streamer_write_zero): Rename from output_zero.
7437 (streamer_write_uhwi): Rename from lto_output_uleb128.
7438 (streamer_write_hwi): Rename from output_sleb128.
7439 (streamer_write_string): Rename from lto_output_string.
7440 (streamer_string_index): Rename from lto_string_index.
7441 (streamer_write_string_with_length): Rename from
7442 lto_output_string_with_length.
7443 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
7444 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
7445 (streamer_read_string): Rename from lto_input_string.
7446 (streamer_read_indexed_string): Rename from input_string_internal.
7447 (streamer_read_uhwi): Rename from lto_input_uleb128.
7448 (streamer_read_hwi): Rename from lto_input_sleb128.
7449 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
7450 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
7451 (streamer_write_enum): Rename from lto_output_enum.
7452 (streamer_read_enum): Rename from lto_input_enum.
7453 (streamer_write_record_start): Rename from output_record_start.
7454 (streamer_read_record_start): Rename from input_record_start.
7455 (streamer_write_bitpack): Rename from lto_output_bitpack.
7456 (streamer_read_bitpack): Rename from lto_input_bitpack.
7457 (streamer_write_char_stream): Rename from lto_output_1_stream.
7458 (streamer_read_uchar): Rename from lto_input_1_unsigned.
7459 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
7460 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
7461 (streamer_read_string_cst): Rename from input_string_cst.
7462 (streamer_read_chain): Rename from lto_input_chain.
7463 (streamer_alloc_tree): Rename from lto_materialize_tree.
7464 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
7465 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
7466 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
7467 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
7468 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
7469 (streamer_write_chain): Rename from lto_output_chain.
7470 (streamer_write_tree_header): Rename from lto_output_tree_header.
7471 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
7472 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
7473 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
7474 (streamer_write_builtin): Rename from lto_output_builtin_tree.
7475 (streamer_check_handled_ts_structures): Rename from
7476 check_handled_ts_structures.
7477 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
7478 (streamer_tree_cache_insert_at): Rename from
7479 lto_streamer_cache_insert_at.
7480 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
7481 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
7482 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
7483 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
7484 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
7485 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
7486 (write_identifier): Rename from output_identifier.
7487 (write_ts_common_tree_pointers): Rename from
7488 lto_output_ts_common_tree_pointers.
7489 (write_ts_vector_tree_pointers): Rename from
7490 lto_output_ts_vector_tree_pointers.
7491 (write_ts_complex_tree_pointers): Rename from
7492 lto_output_ts_complex_tree_pointers.
7493 (write_ts_decl_minimal_tree_pointers): Rename from
7494 lto_output_ts_decl_minimal_tree_pointers.
7495 (write_ts_decl_common_tree_pointers): Rename from
7496 lto_output_ts_decl_common_tree_pointers.
7497 (write_ts_decl_non_common_tree_pointers): Rename from
7498 lto_output_ts_decl_non_common_tree_pointers.
7499 (write_ts_decl_with_vis_tree_pointers): Rename from
7500 lto_output_ts_decl_with_vis_tree_pointers.
7501 (write_ts_field_decl_tree_pointers): Rename from
7502 lto_output_ts_field_decl_tree_pointers.
7503 (write_ts_function_decl_tree_pointers): Rename from
7504 lto_output_ts_function_decl_tree_pointers.
7505 (write_ts_type_common_tree_pointers): Rename from
7506 lto_output_ts_type_common_tree_pointers.
7507 (write_ts_type_non_common_tree_pointers): Rename from
7508 lto_output_ts_type_non_common_tree_pointers.
7509 (write_ts_list_tree_pointers): Rename from
7510 lto_output_ts_list_tree_pointers.
7511 (write_ts_vec_tree_pointers): Rename from
7512 lto_output_ts_vec_tree_pointers.
7513 (write_ts_exp_tree_pointers): Rename from
7514 lto_output_ts_exp_tree_pointers.
7515 (write_ts_block_tree_pointers): Rename from
7516 lto_output_ts_block_tree_pointers.
7517 (write_ts_binfo_tree_pointers): Rename from
7518 lto_output_ts_binfo_tree_pointers.
7519 (write_ts_constructor_tree_pointers): Rename from
7520 lto_output_ts_constructor_tree_pointers.
7521 (write_ts_target_option): Rename from lto_output_ts_target_option.
7522 (write_ts_translation_unit_decl_tree_pointers): Rename from
7523 lto_output_ts_translation_unit_decl_tree_pointers.
7524 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
7525 Rename from lto_streamer_cache_add_to_node_array.
7526 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
7527 (record_common_node): Rename from lto_record_common_node.
7528
7529 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
7530 declarations.
7531 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
7532 function.
7533 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
7534 unused function.
7535 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
7536 (ipa-reference.o): Likewise.
7537 * lto-section-out.c: Include data-streamer.h.
7538 * ipa-reference.c: Include data-streamer.h.
7539
7540 2011-08-12 Nick Clifton <nickc@redhat.com>
7541
7542 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
7543 * doc/md.texi (cmpstrn): Note that the comparison stops if both
7544 fetched bytes are zero.
7545 (cmpstr): Likewise.
7546 (cmpmem): Note that the comparison does not stop if both of the
7547 fetched bytes are zero.
7548
7549 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
7550
7551 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
7552 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
7553 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
7554 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
7555 to integer_type_node.
7556 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
7557 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
7558 * builtins.c (expand_builtin_in): Ditto.
7559 (mathfn_built_in_1): Ditto.
7560 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
7561 BUILT_IN_IFLOOR.
7562 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
7563 BUILT_IN_IROUND.
7564 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
7565 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
7566 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
7567
7568 2011-08-12 Richard Guenther <rguenther@suse.de>
7569
7570 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
7571
7572 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
7573
7574 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
7575
7576 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
7577
7578 * config/arm/arm.c (get_label_padding): New function.
7579 (create_fix_barrier, arm_reorg): Use it.
7580
7581 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
7582
7583 PR target/49781
7584 * config/i386/i386.md (*lea_5_zext): New.
7585 (*lea_6_zext): Ditto.
7586 * config/i386/predicates.md (const_32bit_mask): New predicate.
7587 (lea_address_operand): Reject AND.
7588 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
7589 const_32bit_mask immediate.
7590 (ix86_print_operand_address): Handle AND.
7591 (memory_address_length): Ditto.
7592
7593 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
7594 Brian Hackett <bhackett1024@gmail.com>
7595
7596 * plugin.def: Add event for finish_decl.
7597 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
7598 * c-decl.c (finish_decl): Invoke callbacks on above event.
7599 * doc/plugins.texi: Document above event.
7600
7601 2011-08-11 Richard Guenther <rguenther@suse.de>
7602
7603 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
7604 lookups, make looking through aggregate copies stronger.
7605
7606 2011-08-11 Richard Henderson <rth@redhat.com>
7607
7608 PR bootstrap/50018
7609 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
7610
7611 2011-08-11 Richard Guenther <rguenther@suse.de>
7612
7613 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
7614 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
7615 (vrp_visit_stmt): Likewise.
7616
7617 2011-08-11 Richard Guenther <rguenther@suse.de>
7618
7619 PR middle-end/50040
7620 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
7621 load of the other piece with TREE_NO_WARNING.
7622 * tree-flow.h (warn_uninit): Adjust prototype.
7623 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
7624 the base variable and the expression that is used separately.
7625 Properly query all TREE_NO_WARNING flags.
7626 (struct walk_data): Remove.
7627 (warn_uninitialized_var): Likewise.
7628 (warn_uninitialized_vars): Do not walk gimple pieces but simply
7629 look at all SSA uses of the statement. Handle unused memory
7630 separately.
7631 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
7632
7633 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
7634
7635 * config/rx/rx.md (movsicc): Allow register to register transfers.
7636 (*movsicc): Likewise.
7637 (*stcc): Restrict this pattern to EQ and NE compares.
7638 (*stcc_reg): New pattern. Works for any comparison but only for
7639 register transfers.
7640
7641 2011-08-11 Diego Novillo <dnovillo@google.com>
7642
7643 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
7644 Call stream_write_tree instead of output_record_start.
7645 (lto_output_ts_binfo_tree_pointers): Likewise.
7646
7647 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
7648 Convert it to a macro.
7649 (stream_read_tree): Likewise.
7650
7651 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
7652 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
7653
7654 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
7655 and tree_read_bitfields.
7656 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
7657 (lto_write_tree): Call it.
7658 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
7659 * streamer-hooks.h (struct streamer_hooks): Remove fields
7660 name, is_streamable and alloc_tree. Update all users.
7661 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
7662 (lto_materialize_tree): ... here.
7663 Handle CALL_EXPR codes.
7664 Remove call to lto_streamer_cache_append.
7665 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
7666 * tree-streamer.h (tree_read_bitfields): Declare.
7667
7668 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
7669 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
7670 * tree-streamer.h (stream_read_tree): New. Replace all calls
7671 to lto_input_tree with it.
7672 (stream_write_tree): New. Replace all calls to lto_output_tree,
7673 lto_output_tree_ref and lto_output_tree_or_ref with it.
7674 * lto-streamer-in.c (lto_read_tree): Inline code from
7675 lto_streamer_read_tree.
7676 (lto_input_tree): Move from tree-streamer-in.c.
7677 * lto-streamer-out.c (lto_output_tree_ref): Make static.
7678 Remove handling of NULL values for EXPR.
7679 Do not handle EXPRs that are not indexable.
7680 (lto_write_tree): Move from tree-streamer-out.c.
7681 Inline lto_streamer_write_tree.
7682 (lto_output_tree): Move from tree-streamer-out.c.
7683 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
7684 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
7685 (lto_preload_common_nodes): Likewise.
7686 Remove assertions and adjustments for nodes
7687 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
7688 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
7689 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
7690 * lto-streamer.h (lto_input_tree): Declare.
7691 (lto_output_tree_ref): Remove.
7692 * streamer-hooks.h (struct streamer_hooks): Remove fields
7693 preload_common_nodes, indexable_with_decls_p,
7694 pack_value_fields, unpack_value_fields and output_tree_header.
7695 Update all users.
7696 * tree-streamer-in.c (lto_materialize_tree): Make extern.
7697 (lto_input_tree_pointers): Likewise.
7698 (lto_read_tree): Move to lto-streamer-in.c.
7699 (lto_input_integer_cst): Make extern.
7700 (lto_get_pickled_tree): Likewise.
7701 (lto_get_builtin_tree): Likewise.
7702 (lto_input_tree): Move to lto-streamer-in.c.
7703 * tree-streamer-out.c (pack_value_fields): Make extern.
7704 (lto_output_tree_or_ref): Remove. Replace all callers with
7705 calls to stream_write_tree.
7706 (lto_output_builtin_tree): Make extern.
7707 (lto_streamer_write_tree): Inline into lto_write_tree.
7708 (lto_output_tree_pointers): Make extern.
7709 (lto_output_tree_header): Likewise.
7710 (lto_output_integer_cst): Likewise.
7711 (lto_write_tree): Move to lto-streamer-out.c.
7712 (lto_output_tree): Likewise.
7713 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
7714 (preload_common_nodes): Likewise.
7715 (lto_streamer_cache_create): Call it.
7716 * tree-streamer.h: Include streamer-hooks.h.
7717 (stream_write_tree): New.
7718 (stream_read_tree): New.
7719 (lto_input_tree): Remove.
7720 (lto_materialize_tree): Declare.
7721 (lto_input_tree_pointers): Declare.
7722 (lto_get_pickled_tree): Declare.
7723 (lto_get_builtin_tree): Declare.
7724 (lto_input_integer_cst): Declare.
7725 (lto_output_tree_header): Declare.
7726 (pack_value_fields): Declare.
7727 (lto_output_tree_pointers): Declare.
7728 (lto_output_integer_cst): Declare.
7729 (lto_output_builtin_tree): Declare.
7730
7731 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7732
7733 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
7734 only if producer writes to the register given by regno.
7735
7736 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7737 Alexander Monakov <amonakov@ispras.ru>
7738
7739 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
7740 (sched_get_condition_with_rev_uncached): ... this. Factor out
7741 condition caching logic into ...
7742 (sched_get_condition_with_rev): ... this. Reimplement. Do not
7743 attempt to use cache for instructions with zero luid.
7744 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
7745 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
7746
7747 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7748
7749 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
7750 get_seqno_for_a_jump. Update the caller.
7751 (get_seqno_by_succs): New. Use it ...
7752 (get_seqno_for_a_jump): ... here to find a seqno if looking at
7753 predecessors was not sufficient.
7754 (get_seqno_by_preds): Include head in iteration range, exclude insn.
7755
7756 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7757
7758 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
7759
7760 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7761
7762 * sel-sched-ir.h (register_unavailable_p): Declare.
7763 * sel-sched-ir.c (register_unavailable_p): New. Use it...
7764 (set_unavailable_target_for_expr): ... here to properly test
7765 availability of a register.
7766 (speculate_expr): Ditto.
7767 * sel-sched.c (substitute_reg_in_expr): Ditto.
7768 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
7769
7770 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7771
7772 * sel-sched.c (verify_target_availability): Fix usage of
7773 hard_regno_nregs.
7774
7775 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7776
7777 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
7778 recognized by cannot_copy_insn_p hook and volatile instructions.
7779
7780 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7781
7782 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
7783
7784 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
7785
7786 * doc/md.texi (define_bypass): Say that the instruction names can
7787 be filename-style globs.
7788 * Makefile.in (FNMATCH_H): Define.
7789 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
7790 * genattrtab.c: Include fnmatch.h.
7791 (bypass_list): Change field name from "insn" to "pattern".
7792 (gen_bypass_1): Update accordingly.
7793 (process_bypasses): Use fnmatch to check for matches between
7794 insn reservations and define_bypasses.
7795 * genautomata.c: Include fnmatch.h.
7796 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
7797 and out_pattern respectively.
7798 (gen_bypass, insert_bypass): Update accordingly.
7799 (for_each_matching_insn, process_bypass_2, process_bypass_1)
7800 (process_bypass): New functions.
7801 (process_decls): Use process_bypass. Update after field name changes.
7802
7803 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
7804
7805 PR target/49687
7806 * config/avr/avr.md (smulqi3_highpart): New insn.
7807 (umulqi3_highpart): New insn.
7808 (*subqi3.ashiftrt7): New insn.
7809 (smulhi3_highpart): New expander.
7810 (umulhi3_highpart): Nex expander.
7811 (*smulhi3_highpart_call): New insn.
7812 (*umulhi3_highpart_call): New insn.
7813 (extend_u): New code attribute.
7814 (extend_prefix): Rename code attribute to extend_su.
7815 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7816 widening QI/HI multiply.
7817
7818 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
7819
7820 PR tree-optimization/50039
7821 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7822 that DEF_STMT has a stmt_vec_info.
7823
7824 2011-08-10 Richard Guenther <rguenther@suse.de>
7825
7826 * tree.h (can_trust_pointer_alignment): Remove.
7827 * builtins.c (can_trust_pointer_alignment): Remove.
7828
7829 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7830
7831 * c-typeck.c (scalar_to_vector): New function. Try scalar to
7832 vector conversion.
7833 (stv_conv): New enum for scalar_to_vector return type.
7834 (build_binary_op): Adjust.
7835 * doc/extend.texi: Description of scalar to vector expansion.
7836
7837 2011-08-10 Richard Guenther <rguenther@suse.de>
7838
7839 * tree.h (get_pointer_alignment): Remove max-align argument.
7840 (get_object_alignment): Likewise.
7841 * builtins.c (get_object_alignment_1): Adjust.
7842 (get_object_alignment): Remove max-align argument.
7843 (get_pointer_alignment): Likewise.
7844 (expand_builtin_strlen): Adjust.
7845 (expand_builtin_memcpy): Likewise.
7846 (expand_builtin_mempcpy_args): Likewise.
7847 (expand_builtin_strncpy): Likewise.
7848 (expand_builtin_memset_args): Likewise.
7849 (expand_builtin_memcmp): Likewise.
7850 (expand_builtin_strcmp): Likewise.
7851 (expand_builtin_strncmp): Likewise.
7852 (get_builtin_sync_mem): Likewise.
7853 (fold_builtin_memset): Likewise.
7854 (fold_builtin_memory_op): Likewise.
7855 (expand_builtin_memory_chk): Likewise.
7856 * emit-rtl.c (get_mem_align_offset): Likewise.
7857 (set_mem_attributes_minus_bitpos): Likewise.
7858 * expr.c (expand_assignment): Likewise.
7859 (expand_expr_real_1): Likewise.
7860 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7861 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7862 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7863 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7864 * value-prof.c (gimple_stringops_transform): Likewise.
7865
7866 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
7867
7868 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7869 * doc/tm.texi: Regenerate.
7870
7871 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
7872
7873 PR target/29560
7874 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7875 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7876 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7877 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7878 shift target is unused.
7879
7880 2011-08-10 Richard Guenther <rguenther@suse.de>
7881
7882 PR tree-optimization/49937
7883 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7884 using get_object_alignment_1.
7885
7886 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
7887
7888 * config/i386/i386.c (ix86_emit_i387_round): New function.
7889 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7890 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7891 Use ix86_emit_i387_round to expand round function for i387 math.
7892 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7893 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7894
7895 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7896
7897 * config/sync.c: Move to ../libgcc.
7898 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7899 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7900 Remove.
7901
7902 2011-08-09 Anatoly Sokolov <aesok@post.ru>
7903
7904 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7905 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7906 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7907 Change 'from' and 'to' arguments type to reg_class_t.
7908 (TARGET_REGISTER_MOVE_COST): Define.
7909
7910 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
7911
7912 PR target/50026
7913 Revert:
7914 PR rtl-optimization/49990
7915 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7916 ignore classes which can not change mode.
7917 (find_costs_and_classes): Ditto.
7918
7919 2011-08-09 Richard Guenther <rguenther@suse.de>
7920
7921 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7922 information for ranges with only negative values.
7923 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7924 BIT_AND_EXPR handling to handle ranges with negative values.
7925
7926 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
7927
7928 * config/i386/i386.c: Remove traling spaces.
7929 * config/i386/sse.md: Likewise.
7930 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7931 (*fma_fmsub_<mode>): Likewise.
7932 (*fma_fnmadd_<mode>): Likewise.
7933 (*fma_fnmsub_<mode>): Likewise.
7934
7935 2011-08-09 Nick Clifton <nickc@redhat.com>
7936
7937 * config/rx/rx.md: Disable extender peepholes at -O3.
7938
7939 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
7940
7941 PR target/49781
7942 * config/i386/i386.md (reload_noff_load): New.
7943 (reload_noff_store): Ditto.
7944 * config/i386/i386.c (ix86_secondary_reload): Use
7945 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7946 double-word moves from/to non-offsetable addresses instead of
7947 generating XMM temporary.
7948
7949 2011-08-09 Anatoly Sokolov <aesok@post.ru>
7950
7951 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7952
7953 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
7954
7955 PR tree-optimization/50014
7956 * tree-vect-loop.c (vectorizable_reduction): Get def type before
7957 calling vect_get_vec_def_for_stmt_copy ().
7958
7959 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
7960
7961 PR rtl-optimization/49990
7962 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7963 ignore classes which can not change mode.
7964 (find_costs_and_classes): Ditto.
7965
7966 2011-08-08 Richard Henderson <rth@redhat.com>
7967
7968 PR middle-end/49990
7969 * config/i386/i386.c (ix86_expand_prologue): Call
7970 for SEH target gen_prologue_use instead of gen_blockage
7971 at prologue's end.
7972
7973 2011-08-08 Martin Jambor <mjambor@suse.cz>
7974
7975 PR middle-end/49923
7976 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7977 memory alignment.
7978
7979 2011-08-08 Diego Novillo <dnovillo@google.com>
7980
7981 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7982 (DATA_STREAMER_H): New.
7983 (GIMPLE_STREAMER_H): New.
7984 (TREE_STREAMER_H): New.
7985 (STREAMER_HOOKS_H): New.
7986 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7987 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7988 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7989 (data-streamer.o): New.
7990 (data-streamer-in.o): New.
7991 (data-streamer-out.o): New.
7992 (gimple-streamer-in.o): New.
7993 (gimple-streamer-out.o): New.
7994 (streamer-hooks.o): New.
7995 (tree-streamer.o): New.
7996 (tree-streamer-in.o): New.
7997 (tree-streamer-out.o): New.
7998 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7999 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
8000 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8001 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
8002 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8003 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
8004 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8005 (ipa-inline-analysis.o): Likewise.
8006 (ipa-pure-const.o): Likewise.
8007 * data-streamer-in.c: New.
8008 * data-streamer-out.c: New.
8009 * data-streamer.c: New.
8010 * data-streamer.h: New.
8011 * gimple-streamer-in.c: New.
8012 * gimple-streamer-out.c: New.
8013 * gimple-streamer.h: New.
8014 * ipa-inline-analysis.c: Include data-streamer.h.
8015 * ipa-prop.c: Include data-streamer.h.
8016 * ipa-pure-const.c: Include data-streamer.h.
8017 * lto-cgraph.c: Include data-streamer.h.
8018 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
8019 (lto_input_widest_uint_uleb128): Likewise.
8020 (lto_input_sleb128): Likewise.
8021 (bp_unpack_var_len_unsigned): Likewise.
8022 (bp_unpack_var_len_int): Likewise.
8023 * lto-section-out.c (lto_output_uleb128_stream): Move to
8024 data-streamer-out.c.
8025 (lto_output_widest_uint_uleb128_stream): Likewise.
8026 (lto_output_sleb128_stream): Likewise.
8027 (bp_pack_var_len_unsigned): Likewise.
8028 (bp_pack_var_len_int): Likewise.
8029 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
8030 (struct string_slot): Remove. Update all users.
8031 (lto_tag_check_set): Make extern.
8032 (lto_tag_check_range): Move to lto-streamer.h.
8033 (lto_tag_check): Likewise.
8034 (hash_string_slot_node): Remove. Update all users.
8035 (eq_string_slot_node): Remove. Update all users.
8036 (string_for_index): Move to data-streamer-in.c
8037 (input_string_internal): Likewise.
8038 (input_string_cst): Move to tree-streamer-in.c.
8039 (input_identifier): Likewise.
8040 (lto_input_string): Move to data-streamer-in.c
8041 (input_record_start): Move to data-streamer.h
8042 (canon_file_name): Use new definition of struct string_slot
8043 from data-streamer.h. Set S_SLOT.LEN.
8044 (lto_input_location): Make extern.
8045 (lto_input_chain): Move to tree-streamer-in.c.
8046 (lto_init_eh): Make extern.
8047 (input_phi): Move to gimple-streamer-in.c.
8048 (input_gimple_stmt): Likewise.
8049 (input_bb): Likewise.
8050 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
8051 (unpack_ts_real_cst_value_fields): Likewise.
8052 (unpack_ts_fixed_cst_value_fields): Likewise.
8053 (unpack_ts_decl_common_value_fields): Likewise.
8054 (unpack_ts_decl_wrtl_value_fields): Likewise.
8055 (unpack_ts_decl_with_vis_value_fields): Likewise.
8056 (unpack_ts_function_decl_value_fields): Likewise.
8057 (unpack_ts_type_common_value_fields): Likewise.
8058 (unpack_ts_block_value_fields): Likewise.
8059 (unpack_ts_translation_unit_decl_value_fields): Likewise.
8060 (unpack_value_fields): Likewise.
8061 (lto_materialize_tree): Likewise.
8062 (lto_input_ts_common_tree_pointers): Likewise.
8063 (lto_input_ts_vector_tree_pointers): Likewise.
8064 (lto_input_ts_complex_tree_pointers): Likewise.
8065 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
8066 (lto_input_ts_decl_common_tree_pointers): Likewise.
8067 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
8068 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
8069 (lto_input_ts_field_decl_tree_pointers): Likewise.
8070 (lto_input_ts_function_decl_tree_pointers): Likewise.
8071 (lto_input_ts_type_common_tree_pointers): Likewise.
8072 (lto_input_ts_type_non_common_tree_pointers): Likewise.
8073 (lto_input_ts_list_tree_pointers): Likewise.
8074 (lto_input_ts_vec_tree_pointers): Likewise.
8075 (lto_input_ts_exp_tree_pointers): Likewise.
8076 (lto_input_ts_block_tree_pointers): Likewise.
8077 (lto_input_ts_binfo_tree_pointers): Likewise.
8078 (lto_input_ts_constructor_tree_pointers): Likewise.
8079 (lto_input_ts_target_option): Likewise.
8080 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
8081 (lto_input_tree_pointers): Likewise.
8082 (lto_get_pickled_tree): Likewise.
8083 (lto_get_builtin_tree): Likewise.
8084 (lto_read_tree): Likewise.
8085 (lto_input_integer_cst): Likewise.
8086 (lto_input_tree): Likewise.
8087 * lto-streamer-out.c: Include data-streamer.h,
8088 gimple-streamer.h and streamer-hooks.h.
8089 (struct string_slot): Move to data-streamer.h.
8090 (hash_string_slot_node): Likewise.
8091 (eq_string_slot_node): Likewise.
8092 (lto_string_index): Move to data-streamer-out.c.
8093 (lto_output_string_with_length): Likewise.
8094 (lto_output_string): Likewise.
8095 (output_string_cst): Move to tree-streamer-out.c.
8096 (output_identifier): Likewise.
8097 (output_zero): Move to data-streamer-out.c
8098 (output_uleb128): Likewise.
8099 (output_sleb128): Likewise.
8100 (output_record_start): Move to data-streamer.h
8101 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
8102 (pack_ts_real_cst_value_fields): Likewise.
8103 (pack_ts_fixed_cst_value_fields): Likewise.
8104 (pack_ts_decl_common_value_fields): Likewise.
8105 (pack_ts_decl_wrtl_value_fields): Likewise.
8106 (pack_ts_decl_with_vis_value_fields): Likewise.
8107 (pack_ts_function_decl_value_fields): Likewise.
8108 (pack_ts_type_common_value_fields): Likewise.
8109 (pack_ts_block_value_fields): Likewise.
8110 (pack_ts_translation_unit_decl_value_fields): Likewise.
8111 (pack_value_fields): Likewise.
8112 (lto_output_chain): Likewise.
8113 (lto_output_ts_common_tree_pointers): Likewise.
8114 (lto_output_ts_vector_tree_pointers): Likewise.
8115 (lto_output_ts_complex_tree_pointers): Likewise.
8116 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
8117 (lto_output_ts_decl_common_tree_pointers): Likewise.
8118 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
8119 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
8120 (lto_output_ts_field_decl_tree_pointers): Likewise.
8121 (lto_output_ts_function_decl_tree_pointers): Likewise.
8122 (lto_output_ts_type_common_tree_pointers): Likewise.
8123 (lto_output_ts_type_non_common_tree_pointers): Likewise.
8124 (lto_output_ts_list_tree_pointers): Likewise.
8125 (lto_output_ts_vec_tree_pointers): Likewise.
8126 (lto_output_ts_exp_tree_pointers): Likewise.
8127 (lto_output_ts_block_tree_pointers): Likewise.
8128 (lto_output_ts_binfo_tree_pointers): Likewise.
8129 (lto_output_ts_constructor_tree_pointers): Likewise.
8130 (lto_output_ts_target_option): Likewise.
8131 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
8132 (lto_output_tree_pointers): Likewise.
8133 (lto_output_tree_header): Likewise.
8134 (lto_output_builtin_tree): Likewise.
8135 (lto_write_tree): Likewise.
8136 (lto_output_integer_cst): Likewise.
8137 (lto_output_tree): Likewise.
8138 (output_phi): Move to gimple-streamer-out.c.
8139 (output_gimple_stmt): Likewise.
8140 (output_bb): Likewise.
8141 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
8142 (streamer_hooks): Move to streamer-hooks.c.
8143 (check_handled_ts_structures): Move to tree-streamer.c
8144 (lto_streamer_cache_add_to_node_array): Likewise.
8145 (lto_streamer_cache_insert_1): Likewise.
8146 (lto_streamer_cache_insert): Likewise.
8147 (lto_streamer_cache_insert_at): Likewise.
8148 (lto_streamer_cache_append): Likewise.
8149 (lto_streamer_cache_lookup): Likewise.
8150 (lto_streamer_cache_get): Likewise.
8151 (lto_record_common_node): Likewise.
8152 (lto_preload_common_nodes): Likewise.
8153 (lto_streamer_cache_create): Likewise.
8154 (lto_streamer_cache_delete): Likewise.
8155 (streamer_hooks_init): Move to streamer-hooks.c.
8156 * lto-streamer.h: Include diagnostic.h
8157 (struct output_block, struct lto_input_block,
8158 struct data_in, struct bitpack_d): Remove forward declarations.
8159 (struct bitpack_d): Move to data-streamer.h.
8160 (struct lto_streamer_cache_d): Move to tree-streamer.h.
8161 (struct streamer_hooks): Move to streamer-hooks.h.
8162 (bp_pack_var_len_unsigned): Move to data-streamer.h.
8163 (bp_pack_var_len_int): Likewise.
8164 (bp_unpack_var_len_unsigned): Likewise.
8165 (bp_unpack_var_len_int): Likewise.
8166 (lto_input_location): Declare.
8167 (lto_tag_check_set): Declare.
8168 (lto_init_eh): Declare.
8169 (lto_output_tree_ref): Declare.
8170 (lto_output_location): Declare.
8171 (bitpack_create): Move to data-streamer.h.
8172 (bp_pack_value): Likewise.
8173 (lto_output_bitpack): Likewise.
8174 (lto_input_bitpack): Likewise.
8175 (bp_unpack_value): Likewise.
8176 (lto_output_1_stream): Likewise.
8177 (lto_input_1_unsigned): Likewise.
8178 (lto_output_int_in_range): Likewise.
8179 (lto_input_int_in_range): Likewise.
8180 (bp_pack_int_in_range): Likewise.
8181 (bp_unpack_int_in_range): Likewise.
8182 (lto_output_enum): Likewise.
8183 (lto_input_enum): Likewise.
8184 (bp_pack_enum): Likewise.
8185 (bp_unpack_enum): Likewise.
8186 * streamer-hooks.c: New.
8187 * streamer-hooks.h: New.
8188 * tree-streamer-in.c: New.
8189 * tree-streamer-out.c: New.
8190 * tree-streamer.c: New.
8191 * tree-streamer.h: New.
8192
8193 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8194
8195 * gthr-posix95.h: Remove.
8196 * gthr.h [_PTHREADS95]: Remove.
8197 * configure.ac (enable_threads): Remove posix95.
8198 * configure: Regenerate.
8199 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
8200
8201 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
8202
8203 PR target/49781
8204 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
8205 SImode addresses.
8206 (ix86_print_operand_address): Handle zero-extended addresses.
8207 (memory_address_length): Add length of addr32 prefix for
8208 zero-extended addresses.
8209 (ix86_secondary_reload): Handle moves to/from double-word general
8210 registers from/to zero-extended addresses.
8211 * config/i386/predicates.md (lea_address_operand): Reject
8212 zero-extended operands.
8213
8214 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
8215
8216 PR other/48007
8217 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
8218
8219 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
8220 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
8221
8222 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
8223 (_Unwind_Context_Reg_Val): Likewise.
8224 (_Unwind_Get_Unwind_Word): Likewise.
8225 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
8226 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
8227 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
8228 for EXTENDED_CONTEXT_BIT.
8229 (__frame_state_for): Likewise.
8230 (uw_init_context_1): Likewise.
8231 (_Unwind_GetGR): Updated.
8232 (_Unwind_SetGR): Likewise.
8233 (_Unwind_GetGRPtr): Likewise.
8234 (_Unwind_SetGRPtr): Likewise.
8235 (_Unwind_SetGRValue): Likewise.
8236 (_Unwind_GRByValue): Likewise.
8237 (uw_install_context_1): Likewise.
8238
8239 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
8240 ASSUME_EXTENDED_UNWIND_CONTEXT.
8241 * doc/tm.texi: Regenerated.
8242
8243 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8244
8245 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
8246
8247 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8248
8249 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
8250 Linux/GNU-specific.
8251 (DEC Alpha Options, -mtune): Likewise.
8252 (MIPS Options, -march): native is supported on IRIX.
8253
8254 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8255
8256 * config/sparc/driver-sparc.c: New file.
8257 * config/sparc/x-sparc: New file.
8258 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
8259 * config/sparc/sparc.opt (native): New value for enum processor_type.
8260 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
8261 * config/sparc/sparc.c (sparc_option_override): Abort if
8262 PROCESSOR_NATIVE gets here.
8263 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
8264 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
8265 DRIVER_SELF_SPECS): Define.
8266 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
8267 (SPARC Options, -mtune): Likewise.
8268 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
8269 Substitute result.
8270 * configure: Regenerate.
8271 * Makefile.in (EXTRA_GCC_LIBS): Set.
8272 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
8273 (cpp$(exeext)): Likewise.
8274
8275 2011-08-08 Richard Guenther <rguenther@suse.de>
8276
8277 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
8278 split out from ...
8279 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
8280 by composition.
8281
8282 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
8283
8284 PR tree-optimization/50005
8285 * ipa-inline-analysis (remap_predicate): Add cast to
8286 silence signed/unsigned comparison warning.
8287
8288 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
8289
8290 * modulo-sched.c (get_sched_window): Use a table for the debug output.
8291 Print the current ii.
8292 (sms_schedule_by_order): Reduce whitespace in dump line.
8293
8294 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
8295
8296 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
8297 and one loop for successors. Fix upper bound of memory range.
8298
8299 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
8300
8301 PR target/50001
8302 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
8303 (TARGET_INSTANTIATE_DECLS): New define.
8304
8305 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
8306 Mikael Morin <mikael.morin@sfr.fr>
8307
8308 * Makefile.in (INCLUDES_FOR_TARGET): New.
8309 (LIBGCC2_CFLAGS): Use it.
8310 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
8311
8312 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
8313
8314 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
8315 frame->save_regs_using_mov calculation.
8316
8317 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
8318
8319 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
8320 * config/i386/sse.md (castmode): New mode attribute.
8321 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
8322 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
8323
8324 2011-08-05 Jan Hubicka <jh@suse.cz>
8325
8326 PR middle-end/49494
8327 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
8328
8329 2011-08-05 Jan Hubicka <jh@suse.cz>
8330
8331 PR middle-end/49500
8332 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
8333 handle aliases.
8334 (create_emultls_var):New function.
8335 (ipa_lower_emutls): Handle aliases correctly.
8336
8337 2011-08-05 Jan Hubicka <jh@suse.cz>
8338
8339 PR middle-end/49735
8340 * ipa-inline.c (recursive_inlining): Look through aliases.
8341
8342 2011-08-05 Jason Merrill <jason@redhat.com>
8343
8344 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
8345 declarations to beginning of function.
8346
8347 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
8348
8349 PR rtl-optimization/49900
8350 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
8351 ensure basic blocks stay in the same order.
8352
8353 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
8354
8355 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
8356 store_bit_field.
8357 (s390_expand_atomic): Same.
8358
8359 2011-08-05 Richard Henderson <rth@redhat.com>
8360
8361 PR rtl-opt/49977
8362 * dwarf2cfi.c (scan_insn_after): Split out of ...
8363 (scan_trace): ... here. Correctly place notes wrt sequences.
8364
8365 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
8366 Richard Henderson <rth@redhat.com>
8367
8368 PR rtl-opt/49982
8369 * expr.c (fixup_args_size_notes): Look through no-op moves.
8370
8371 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
8372
8373 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
8374 of "m" for operand 0. Add type and mode attribute.
8375 (*pushxf_nointeger"): Use "<" constraint for operand 0.
8376 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
8377 constraint instead of "o" for opreand 1.
8378 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
8379 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
8380 operand 0, alternative 4.
8381 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
8382
8383 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
8384
8385 * config/i386/predicates.md (lea_address_operand): Rename from
8386 no_seg_address_operand.
8387 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
8388 (*lea_1_zext): Ditto.
8389 (*lea_2): Ditto.
8390 (*lea_2_zext): Ditto.
8391
8392 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
8393
8394 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
8395 parts.base and parts.index.
8396 * config/i386/predicates.md (aligned_operand): Ditto.
8397 (cmpxchg8b_pic_memory_operand): Ditto.
8398
8399 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8400
8401 * config/soft-fp: Move to ../libgcc.
8402 * Makefile.in (SFP_MACHINE): Remove.
8403 (libgcc-support): Remove $(SFP_MACHINE) dependency.
8404 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
8405 * config/arm/t-arm-softfp: Move to
8406 ../libgcc/config/arm/t-softfp.
8407 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
8408 * config/c6x/t-c6x-softfp: Remove.
8409 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
8410 * config/i386/t-fprules-softfp: Move to
8411 ../libgcc/config/t-softfp-tf.
8412 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
8413 * config/ia64/t-fprules-softfp: Remove.
8414 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
8415 * config/lm32/t-fprules-softfp: Remove.
8416 * config/moxie/sfp-machine.h: Remove.
8417 * config/moxie/t-moxie-softfp: Remove.
8418 * config/rs6000/darwin-ldouble-format: Move to
8419 ../libgcc/config/rs6000/ibm-ldouble-format.
8420 * config/rs6000/darwin-ldouble.c: Move to
8421 ../libgcc/config/rs6000/ibm-ldouble.c
8422 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
8423 * config/rs6000/libgcc-ppc64.ver: Likewise.
8424 * config/rs6000/sfp-machine.h: Likewise.
8425 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
8426 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
8427 (LIB2FUNCS_EXTRA): Remove.
8428 (TARGET_LIBGCC2_CFLAGS): Remove.
8429 * config/rs6000/t-aix52: Likewise
8430 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
8431 $(srcdir)/config/rs6000/darwin-ldouble.c.
8432 (SHLIB_MAPFILES): Remove.
8433 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
8434 $(srcdir)/config/rs6000/darwin-ldouble.c.
8435 * config/rs6000/t-fprules-softfp: Move to
8436 ../libgcc/config/t-softfp-sfdf.
8437 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
8438 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
8439 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
8440 $(srcdir)/config/rs6000/darwin-ldouble.c.
8441 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
8442 * config/score/t-score-softfp: Remove.
8443 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
8444 soft-fp/t-softfp from tmake_file.
8445 (arm*-*-uclinux*): Likewise.
8446 (arm*-*-ecos-elf): Likewise.
8447 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
8448 (arm*-*-rtems*): Likewise.
8449 (arm*-*-elf): Likewise.
8450 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
8451 tmake_file.
8452 (moxie-*-uclinux*): Likewise.
8453 (moxie-*-rtems*): Likewise.
8454 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
8455 tmake_file.
8456 (lm32-*-rtems*): Likewise.
8457 (lm32-*-uclinux*): Likewise.
8458 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
8459 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
8460 (powerpc-*-linux*, powerpc64-*-linux*): Remove
8461 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
8462 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
8463 tmake_file.
8464 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
8465 tmake_file.
8466 (tic6x-*-uclinux): Likewise.
8467 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
8468 soft-fp/t-softfp from tmake_file.
8469 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
8470 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
8471 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
8472 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
8473 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
8474
8475 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8476
8477 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
8478 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
8479 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
8480 TPBIT, TPBIT_FUNCS.
8481 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
8482 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
8483 Remove.
8484 * config/arm/t-vxworks: Likewise.
8485 * config/arm/t-wince-pe: Likewise.
8486 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
8487 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8488 * config/bfin/t-bfin-elf: Likewise.
8489 * config/bfin/t-bfin-linux: Likewise.
8490 * config/bfin/t-bfin-uclinux: Likewise.
8491 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
8492 Remove.
8493 * config/fr30/t-fr30: Likewise.
8494 * config/frv/t-frv: Likewise.
8495 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
8496 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8497 * config/m32c/t-m32c: Likewise.
8498 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
8499 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8500 * config/mcore/t-mcore: Likewise.
8501 * config/mep/t-mep: Likewise.
8502 * config/microblaze/t-microblaze: Likewise.
8503 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
8504 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8505 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
8506 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8507 * config/mn10300/t-linux: Remove.
8508 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8509 * config/pdp11/t-pdp11: Likewise.
8510 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
8511 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
8512 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8513 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
8514 * config/rs6000/t-aix52: Likewise.
8515 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
8516 $(srcdir)/config/rs6000/ppc64-fp.c.
8517 * config/rs6000/t-fprules-fpbit: Remove.
8518 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
8519 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8520 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
8521 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8522 * config/sparc/t-elf: Likewise.
8523 * config/sparc/t-leon: Likewise.
8524 * config/sparc/t-leon3: Likewise.
8525 * config/spu/t-spu-elf: Likewise.
8526 (DPBIT_FUNCS): Remove.
8527 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8528 * config/v850/t-v850: Likewise.
8529 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
8530 (avr-*-*): Likewise.
8531 (h8300-*-rtems*): Set libgcc_tm_file.
8532 (h8300-*-elf*): Likewise.
8533 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
8534 tmake_file.
8535 (powerpc-*-eabisim*): Likewise.
8536 (powerpc-*-elf*): Likewise.
8537 (powerpc-*-eabialtivec*): Likewise.
8538 (powerpc-xilinx-eabi*): Likewise.
8539 (powerpc-*-eabi*): Likewise.
8540 (powerpc-*-rtems*): Likewise.
8541 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
8542 (powerpcle-*-elf*): Likewise.
8543 (powerpcle-*-eabisim*): Likewise.
8544 (powerpcle-*-eabi*): Likewise.
8545 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
8546 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
8547 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
8548 Remove.
8549
8550 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8551
8552 * Makefile.in (UNWIND_H): Remove.
8553 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
8554 ../libgcc/Makefile.in.
8555 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
8556 (LIBUNWINDDEP): Remove.
8557 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
8558 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
8559 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
8560 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
8561 Don't copy $(UNWIND_H).
8562 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
8563 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
8564 * aclocal.m4: Regenerate.
8565 * configure: Regenerate.
8566 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
8567 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
8568 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
8569 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
8570 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
8571 * config/arm/libunwind.S, config/arm/pr-support.c,
8572 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
8573 ../libgcc/config/arm.
8574 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
8575 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
8576 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
8577 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
8578 ($(T)frvend$(objext)): Likewise.
8579 * config/ia64/t-glibc (LIB2ADDEH): Remove.
8580 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
8581 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
8582 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
8583 ../libgcc/config/ia64.
8584 * config/ia64/t-hpux (LIB2ADDEH): Remove.
8585 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
8586 * config/ia64/t-vms (LIB2ADDEH): Remove.
8587 * config/ia64/vms.h (UNW_IVMS_MODE,
8588 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
8589 * config/picochip/t-picochip (LIB2ADDEH): Remove.
8590 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
8591 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
8592 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
8593 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
8594 $(srcdir)/../libgcc to refer to unwinder sources.
8595 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
8596 * config/t-darwin (LIB2ADDEH): Remove.
8597 * config/t-freebsd (LIB2ADDEH): Remove.
8598 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
8599 * config/t-libunwind-elf: Move to ../libgcc/config.
8600 * config/t-linux (LIB2ADDEH): Remove.
8601 * config/t-sol2 (LIB2ADDEH): Remove.
8602 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
8603 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
8604
8605 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
8606
8607 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
8608
8609 * doc/invoke.texi: Document core-avx-i.
8610
8611 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8612
8613 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
8614
8615 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
8616
8617 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
8618 result of multiple results reduction when extracting the final
8619 value using scalar code.
8620
8621 2011-08-05 Richard Guenther <rguenther@suse.de>
8622
8623 PR tree-optimization/49984
8624 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
8625
8626 2011-08-05 Richard Guenther <rguenther@suse.de>
8627
8628 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
8629 return true for constant integer ranges.
8630 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
8631 BIT_IOR_EXPR handling.
8632
8633 2011-08-04 Kai Tietz <ktietz@redhat.com>
8634
8635 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
8636 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
8637
8638 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
8639
8640 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
8641 pattern def statement, and its access macro.
8642 (NUM_PATTERNS): Set to 5.
8643 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8644 pattern def statement.
8645 (vect_transform_loop): Likewise.
8646 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
8647 function vect_recog_over_widening_pattern ().
8648 (vect_operation_fits_smaller_type): New function.
8649 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
8650 Likewise.
8651 (vect_pattern_recog_1): Move the code that marks pattern
8652 statements to vect_mark_pattern_stmts (), and call it. Update
8653 documentation.
8654 * tree-vect-stmts.c (vect_supportable_shift): New function.
8655 (vect_analyze_stmt): Handle pattern def statement.
8656 (new_stmt_vec_info): Initialize pattern def statement.
8657
8658 2011-08-04 Richard Henderson <rth@redhat.com>
8659
8660 PR target/49964
8661 * config/i386/i386.c (ix86_expand_call): Don't create nested
8662 PARALLELs for TARGET_VZEROUPPER.
8663 (ix86_split_call_vzeroupper): Fix extraction of the original call.
8664 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
8665 recognize nested PARALLELs.
8666 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
8667 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
8668 *sibcall_value_pop_vzeroupper): Likewise.
8669
8670 2011-08-04 Richard Henderson <rth@redhat.com>
8671
8672 PR middle-end/49968
8673 * calls.c (expand_call): Use fixup_args_size_notes for
8674 emit_stack_restore.
8675 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
8676 in non-standard modes.
8677
8678 2011-08-04 Jakub Jelinek <jakub@redhat.com>
8679
8680 * gcc.c (self_spec): New variable.
8681 (static_specs): Add self_spec.
8682 (main): Call do_self_spec on "self_spec" specs after reading
8683 user specs files. Move compare_debug handling right after that.
8684
8685 2011-08-04 Richard Guenther <rguenther@suse.de>
8686
8687 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
8688 (value_range_nonnegative_p): New function.
8689 (ssa_name_nonnegative_p): Use it.
8690 (value_range_constant_singleton): New function.
8691 (op_with_constant_singleton_value_range): Use it.
8692 (extract_range_from_binary_expr_1): New function, split out from ...
8693 (extract_range_from_binary_expr): ... this. Remove fallback
8694 constant folding done here.
8695
8696 2011-08-04 Richard Guenther <rguenther@suse.de>
8697
8698 PR tree-optimization/49806
8699 * tree-vrp.c (op_with_boolean_value_range_p): New function.
8700 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
8701 a new statement for a final conversion to bool.
8702
8703 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
8704
8705 * gengtype-state.c: Include "bconfig.h" if
8706 GENERATOR_FILE is defined, "config.h" otherwise.
8707 * gengtype.c: Likewise.
8708 * gengtype-lex.l: Likewise.
8709 * gengtype-parse.c: Likewise.
8710 * Makefile.in (gengtype-lex.o-warn): New variable.
8711 (plugin_resourcesdir): Likewise.
8712 (plugin_bindir): Likewise.
8713 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
8714 (MOSTLYCLEANFILES): Add gengtype$(exeext).
8715 (native): Depend on gengtype$(exeext) is $enable_plugin
8716 is set to "yes".
8717 (gtype.state): Depend on s-gtype. Use temporary file.
8718 (gengtype-lex.o): New rule.
8719 (gengtype-parse.o): Likewise.
8720 (gengtype-state.o): Likewise.
8721 (gengtype$(exeext)): Likewise.
8722 (install-gengtype): Likewise.
8723 (gengtype.o): Likewise.
8724 (build/gengtype.o): Depend on version.h.
8725 (build/gengtype-state): Depend on double-int.h, version.h,
8726 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
8727 (install-plugin): Depend on install-gengtype.
8728
8729 2011-08-04 Jakub Jelinek <jakub@redhat.com>
8730
8731 PR middle-end/49905
8732 * tree.h (init_attributes): New prototype.
8733 * attribs.c (init_attributes): No longer static.
8734
8735 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8736
8737 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
8738 maybe_suffix.
8739
8740 2011-08-03 David Li <davidxl@google.com>
8741
8742 * tree-optimize.c (execute_fixup_cfg): Fix up entry
8743 outgoing edge counts after inlining.
8744
8745 2011-08-03 David Li <davidxl@google.com>
8746
8747 * profile.c (compute_branch_probabilities): Compute
8748 function frequency after profile annotation.
8749
8750 2011-08-04 Alan Modra <amodra@gmail.com>
8751
8752 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
8753 use_backchain_to_restore_sp initialisation.
8754 (rs6000_legitimate_offset_address_p): Simplify offset test.
8755
8756 2011-08-03 Richard Henderson <rth@redhat.com>
8757
8758 * config/spu/spu.md: Use define_c_enum instead of define_constants.
8759 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
8760 (UNSPECV_NOP): New.
8761
8762 2011-08-03 Richard Henderson <rth@redhat.com>
8763
8764 PR target/34888
8765 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
8766
8767 2011-08-03 Jakub Jelinek <jakub@redhat.com>
8768
8769 PR tree-optimization/49948
8770 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
8771
8772 2011-08-03 Anatoly Sokolov <aesok@post.ru>
8773
8774 * config/m32c/m32c.c (class_sizes): Remove.
8775 (reduce_class): Change arguments and return type to reg_class_t.
8776 Change type cc var to HARD_REG_SET. Change type best var to
8777 reg_class_t. Change type best_size var to unsigned int. Remove
8778 initialization class_sizes var. Use reg_class_size array instead
8779 of class_sizes. Use reg_class_contents array instead
8780 of class_contents.
8781
8782 2011-08-03 Richard Guenther <rguenther@suse.de>
8783
8784 PR middle-end/49958
8785 * fold-const.c (fold_binary_loc): Only associate
8786 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
8787 overflow wraps.
8788
8789 2011-08-03 Alan Modra <amodra@gmail.com>
8790
8791 PR rtl-optimization/49941
8792 * jump.c (mark_jump_label): Comment.
8793 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
8794 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
8795 (mark_used_flags): Don't mark RETURN.
8796
8797 2011-08-03 Richard Guenther <rguenther@suse.de>
8798
8799 PR tree-optimization/49938
8800 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
8801 deal with a POLYNOMIAL_CHREC.
8802
8803 2011-08-03 Revital Eres <revital.eres@linaro.org>
8804
8805 * modulo-sched.c (calculate_stage_count,
8806 calculate_must_precede_follow, get_sched_window,
8807 try_scheduling_node_in_cycle, remove_node_from_ps): Add
8808 declaration.
8809 (update_node_sched_params, set_must_precede_follow, optimize_sc):
8810 New functions.
8811 (reset_sched_times): Call update_node_sched_params.
8812 (sms_schedule): Call optimize_sc.
8813 (get_sched_window): Change function arguments.
8814 (sms_schedule_by_order): Update call to get_sched_window.
8815 Call set_must_precede_follow.
8816 (calculate_stage_count): Add function argument.
8817
8818 2011-08-02 Richard Henderson <rth@redhat.com>
8819
8820 PR target/49864
8821 PR target/49879
8822 * reg-notes.def (REG_ARGS_SIZE): New.
8823 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8824 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8825 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8826 different stack levels.
8827 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8828 (maybe_move_args_size_note): New.
8829 (combine_stack_adjustments_for_block): Use it.
8830 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8831 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8832 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8833 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8834 (cur_cfa): New.
8835 (queued_args_size): Remove.
8836 (add_cfi_args_size): Assert size is non-negative.
8837 (stack_adjust_offset, dwarf2out_args_size): Remove.
8838 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8839 (notice_args_size, notice_eh_throw): New.
8840 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8841 (dwarf2out_frame_debug_adjust_cfa): Likewise.
8842 (dwarf2out_frame_debug_cfa_offset): Likewise.
8843 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
8844 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8845 (change_cfi_row): Don't emit args_size.
8846 (maybe_record_trace_start_abnormal): Split out from ...
8847 (maybe_record_trace_start): Here. Set args_size_undefined.
8848 (create_trace_edges): Update to match.
8849 (scan_trace): Handle REG_ARGS_SIZE.
8850 (connect_traces): Connect args_size between EH insns.
8851 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8852 * explow.c (suppress_reg_args_size): New.
8853 (adjust_stack_1): Split out from ...
8854 (adjust_stack): ... here.
8855 (anti_adjust_stack): Use it.
8856 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8857 * expr.c (mem_autoinc_base): New.
8858 (fixup_args_size_notes): New.
8859 (emit_single_push_insn_1): Rename from emit_single_push_insn.
8860 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
8861 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8862 * reload1.c (reload_as_needed): Likewise.
8863 * rtl.h (fixup_args_size_notes): Declare.
8864
8865 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
8866
8867 PR bootstrap/49914
8868 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8869 of abs.
8870 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8871 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8872
8873 2011-08-02 Richard Henderson <rth@redhat.com>
8874
8875 * config/h8300/h8300.c (push, pop): Return the insn.
8876 (h8300_swap_into_er6): Generate correct unwind info.
8877 (h8300_swap_out_of_er6): Likewise.
8878 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8879 complex cfa expression.
8880 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8881
8882 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8883
8884 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8885
8886 2011-08-02 Richard Henderson <rth@redhat.com>
8887
8888 PR target/49878
8889 * config/h8300/h8300.c (h8300_move_ok): New.
8890 * config/h8300/h8300-protos.h: Declare it.
8891 * config/h8300/h8300.md (P): New mode iterator.
8892 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8893 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8894 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8895 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8896 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8897 and pushqi1_h8300hs_normal; use PRE_MODIFY and
8898 register_no_sp_elim_operand.
8899 (*pushhi1_h8300hs_<P>): Similarly.
8900 (pushqi1, pushhi1, pushhi1_h8300): Remove.
8901 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8902
8903 2011-08-02 Richard Henderson <rth@redhat.com>
8904
8905 PR target/49881
8906 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8907
8908 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8909
8910 * c-parser.c (enum c_parser_prec): New enum, moved from within
8911 c_parser_binary_expression.
8912 (c_parser_binary_expression): Add PREC argument. Stop parsing
8913 if operator has lower or equal precedence than PREC.
8914 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8915 callers.
8916 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8917 Adjust c_finish_omp_atomic caller.
8918 (c_parser_omp_taskyield): New function.
8919 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8920 (c_parser_omp_clause_name): Handle final and mergeable clauses.
8921 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8922 functions.
8923 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8924 and PRAGMA_OMP_CLAUSE_MERGEABLE.
8925 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8926 (c_parser_omp_clause_reduction): Handle min and max.
8927 * c-typeck.c (c_finish_omp_clauses): Don't complain about
8928 const qualified predetermined vars in firstprivate clause.
8929 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8930 Handle MIN_EXPR and MAX_EXPR.
8931 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8932 and OMP_CLAUSE_MERGEABLE.
8933 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8934 and OMP_ATOMIC_CAPTURE_NEW.
8935 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8936 OMP_CLAUSE_MERGEABLE.
8937 (omp_clause_code_name): Likewise.
8938 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8939 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8940 and OMP_CLAUSE_MERGEABLE.
8941 (OMP_CLAUSE_FINAL_EXPR): Define.
8942 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8943 OMP_CLAUSE_MERGEABLE.
8944 (expand_task_call): Likewise.
8945 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8946 (expand_omp_atomic_fetch_op): Handle cases where old or new
8947 value is needed afterwards.
8948 (expand_omp_atomic): Call expand_omp_atomic_load resp.
8949 expand_omp_atomic_store.
8950 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8951 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8952 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8953 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8954 * tree-nested.c (convert_nonlocal_omp_clauses,
8955 convert_local_omp_clauses): Likewise.
8956 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8957 OMP_ATOMIC_CAPTURE_NEW): New.
8958 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8959 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8960 New inlines.
8961 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8962 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8963 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8964
8965 2011-08-02 Kai Tietz <ktietz@redhat.com>
8966
8967 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8968 boolean-type.
8969 (ssa_forward_propagate_and_combine): Interprete result of
8970 forward_propagate_comparison.
8971 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8972 boolean-typed operands for comparisons.
8973
8974 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
8975
8976 * config/avr/libgcc.S: Gather related function in the
8977 same input section.
8978 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8979 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8980 references.
8981 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8982 __udivmodsi4, __divmodsi4, __prologue_saves__,
8983 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8984 __do_copy_data, __do_clear_bss, __do_global_ctors,
8985 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8986
8987 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
8988
8989 PR target/47766
8990 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8991 (stack_protect_test): The pattern compares ptr_mode value.
8992
8993 2011-08-02 Alan Modra <amodra@gmail.com>
8994
8995 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8996 note for save_LR_around_toc_setup sequence.
8997
8998 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8999
9000 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
9001
9002 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
9003 Joseph Myers <joseph@codesourcery.com>
9004
9005 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
9006 * hwint.c: Include diagnostic-core.h.
9007 (abs_hwi): New.
9008 (gcd): Moved here...
9009 (pos_mul_hwi): New.
9010 (mul_hwi): New.
9011 (least_common_multiple): Moved here...
9012 * hwint.h (gcd): ... from here.
9013 (least_common_multiple): ... from here.
9014 (HOST_WIDE_INT_MIN): New.
9015 (HOST_WIDE_INT_MAX): New.
9016 (abs_hwi): Declared.
9017 (gcd): Declared.
9018 (pos_mul_hwi): Declared.
9019 (mul_hwi): Declared.
9020 (least_common_multiple): Declared.
9021 * omega.c (check_pos_mul): Removed.
9022 (check_mul): Removed.
9023 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
9024 mul_hwi instead of check_mul.
9025
9026 2011-08-01 Richard Henderson <rth@redhat.com>
9027
9028 PR target/49881
9029 * config/avr/avr.h (PUSH_ROUNDING): New.
9030 * config/avr/avr.md (pushqi1): Rename from *pushqi.
9031 (*pushhi, *pushsi, *pushsf): Remove.
9032 (MPUSH): New mode iterator.
9033 (push<MPUSH>1): New expander.
9034
9035 2011-08-01 Anatoly Sokolov <aesok@post.ru>
9036
9037 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
9038 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9039 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
9040 mmix_preferred_output_reload_class): Remove.
9041 * config/mmix/mmix.c (mmix_preferred_reload_class,
9042 mmix_preferred_output_reload_class): Make static. Change rclass
9043 argument and return type to reg_class_t.
9044 (TARGET_PREFERRED_RELOAD_CLASS,
9045 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9046
9047 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
9048
9049 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
9050 handling.
9051
9052 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9053
9054 PR target/47766
9055 * config/i386/i386.md (PTR): New.
9056 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
9057 (stack_protect_test): Likewise.
9058 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
9059 (stack_tls_protect_set_<mode>): Likewise.
9060 (stack_tls_protect_test_<mode>): Likewise.
9061
9062 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
9063
9064 PR target/49927
9065 * config/i386/i386.c (ix86_address_subreg_operand): New.
9066 (ix86_decompose_address): Use ix86_address_subreg_operand.
9067 (ix86_legitimate_address_p): Do not assert that subregs satisfy
9068 register_no_elim_operand in DImode.
9069
9070 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
9071
9072 PR tree-optimization/49926
9073 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
9074 in a chain doesn't have uses both inside and outside the loop.
9075
9076 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
9077
9078 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
9079 * config/avr/avr-devices.c (avr_mcu_types): Use it.
9080 * config/avr/avr-mcus.def (AVR_MCU): Use it.
9081 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
9082 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
9083 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
9084 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
9085 to detect if XJMP must not be skipped.
9086
9087 2011-08-02 Alan Modra <amodra@gmail.com>
9088
9089 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
9090 Delete.
9091 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
9092 (rs6000_emit_prologue): Don't prematurely return when
9093 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
9094 save_toc_in_prologue case.
9095 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
9096 calls_alloca.
9097
9098 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
9099
9100 * config/avr/avr-devices.c: Delete SVN property svn:executable.
9101 * config/avr/predicates.md: Ditto.
9102 * config/avr/driver-avr.c: Ditto.
9103 * config/avr/genopt.sh: Set SVN property svn:executable to *.
9104
9105 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9106
9107 * calls.c (emit_library_call_value_1): Declare size only if
9108 BLOCK_REG_PADDING is defined.
9109
9110 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
9111
9112 PR target/49547
9113 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
9114 (x86_64-*-*): Likewise.
9115 * config/i386/i386.opt (mlzcnt): New.
9116 * config/i386/abmintrin.h: File removed.
9117 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
9118 * config/i386/lzcntintrin.h: ... here. New file.
9119 (__lzcnt): Rename to ...
9120 (__lzcnt32): ... this.
9121 * config/i386/bmiintrin.h (head): Update copyright year.
9122 (__lzcnt_u16): Removed.
9123 (__lzcnt_u32): Likewise.
9124 (__lzcnt_u64): Likewise.
9125 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
9126 is defined, remove abmintrin.h.
9127 * config/i386/cpuid.h (bit_LZCNT): New.
9128 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9129 LZCNT feature.
9130 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9131 __LZCNT__ if needed.
9132 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
9133 (ix86_option_override_internal): Handle LZCNT option.
9134 (ix86_valid_target_attribute_inner_p): Likewise.
9135 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
9136 * config/i386/i386.h (TARGET_LZCNT): New.
9137 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
9138 * config/i386/i386.md (clz<mode>2): Update insn constraint.
9139 (clz<mode>2_lzcnt): Likewise.
9140 * doc/invoke.texi: Mention -mlzcnt option.
9141 * doc/extend.texi: Likewise.
9142
9143 2011-08-01 Julian Brown <julian@codesourcery.com>
9144
9145 * configure.ac (fixed-point): Add ARM support.
9146 * configure: Regenerate.
9147 * config/arm/arm.c (arm_fixed_mode_set): New struct.
9148 (arm_set_fixed_optab_libfunc): New.
9149 (arm_set_fixed_conv_libfunc): New.
9150 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
9151 ARM-specific names.
9152 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
9153 return values in SImode.
9154 (arm_return_in_msb): Return fixed-point types in the msb.
9155 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
9156 upwards.
9157 (arm_scalar_mode_supported_p): Support fixed-point modes.
9158 (arm_vector_mode_supported_p): Support vector fixed-point modes.
9159 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
9160 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
9161 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
9162 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
9163 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
9164 New mode iterators.
9165 (qaddsub_suf): New mode attribute.
9166 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
9167 vector modes.
9168 * config/arm/predicates.md (sat_shift_operator): New predicate.
9169 * config/arm/arm-fixed.md: New.
9170 * config/arm/arm.md: Include arm-fixed.md.
9171 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
9172
9173 2011-08-01 Julian Brown <julian@codesourcery.com>
9174
9175 * calls.c (emit_library_call_value_1): Support padding for libcall
9176 arguments and return values.
9177 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
9178 downwards in big-endian mode.
9179
9180 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9181
9182 PR debug/49887
9183 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
9184 * config/sol2-protos.h: Likewise.
9185 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
9186 solaris_code_end.
9187 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
9188 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
9189 solaris_file_end.
9190 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
9191
9192 2011-08-01 Julian Brown <julian@codesourcery.com>
9193
9194 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
9195
9196 2011-08-01 Julian Brown <julian@codesourcery.com>
9197
9198 * final.c (output_addr_const): Print fixed-point constants as
9199 decimal not hex.
9200
9201 2011-08-01 Richard Guenther <rguenther@suse.de>
9202
9203 * stor-layout.c (initialize_sizetypes): Properly sign-extend
9204 bitsiztype TYPE_MAX_VALUE.
9205
9206 2011-08-01 Julian Brown <julian@codesourcery.com>
9207
9208 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
9209 comparison helpers.
9210
9211 2011-07-31 Richard Henderson <rth@redhat.com>
9212
9213 * config/h8300/crti.asm: Add flags to .section directive.
9214 * config/h8300/crtn.asm: Likewise.
9215
9216 2011-07-31 Richard Henderson <rth@redhat.com>
9217
9218 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
9219 * tree.c (build_common_tree_nodes): Likewise.
9220
9221 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
9222
9223 PR target/49880
9224 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
9225 (divsi3_i1): Likewise.
9226
9227 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9228
9229 PR tree-optimization/49749
9230 * tree-ssa-reassoc.c (get_rank): New forward declaration.
9231 (PHI_LOOP_BIAS): New macro.
9232 (phi_rank): New function.
9233 (loop_carried_phi): Likewise.
9234 (propagate_rank): Likewise.
9235 (get_rank): Add calls to phi_rank and propagate_rank.
9236
9237 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
9238
9239 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
9240 of TARGET_64BIT.
9241 (PTRDIFF_TYPE): Likewise.
9242
9243 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
9244
9245 PR target/49920
9246 * config/i386/i386.md (strset): Do not expand strset_singleop
9247 when %eax or $edi are fixed.
9248 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
9249 (*strsetsi_1): Ditto.
9250 (*strsethi_1): Ditto.
9251 (*strsetqi_1): Ditto.
9252 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
9253 (*rep_stossi): Ditto.
9254 (*rep_stosqi): Ditto.
9255 (*strlenqi_1): Ditto.
9256 (cmpstrnsi): Also fail when %ecx is fixed.
9257 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
9258 (*cmpstrnqi_1): Ditto.
9259 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
9260 (*strmovsi_1): Ditto.
9261 (*strmovhi_1): Ditto.
9262 (*strmovqi_1): Ditto.
9263 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
9264 (*rep_movsi): Ditto.
9265 (*rep_movqi): Ditto.
9266
9267 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
9268
9269 PR target/47908
9270 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
9271 Disable instruction scheduling for non-ColdFire targets.
9272 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9273
9274 2011-07-31 Revital Eres <revital.eres@linaro.org>
9275
9276 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
9277 of anti-dep edge from a branch.
9278 (add_cross_iteration_register_deps): Create anti-dep edge from
9279 a branch.
9280
9281 2011-07-31 Revital Eres <revital.eres@linaro.org>
9282
9283 * modulo-sched.c: Change comment.
9284 (reset_sched_times): Fix print message.
9285 (print_partial_schedule): Add print info.
9286
9287 2011-07-31 Tom de Vries <tom@codesourcery.com>
9288
9289 PR middle-end/43513
9290 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
9291 get_object_alignment and TYPE_ALIGN.
9292
9293 2011-07-30 Tom de Vries <tom@codesourcery.com>
9294
9295 PR middle-end/43513
9296 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
9297 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
9298
9299 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9300
9301 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
9302 <sys/sbd.h>.
9303 (cpu_types): New array.
9304 (cputype): New function.
9305 (host_detect_local_cpu): Only define buf, f if !__sgi__.
9306 Use scaninvent instead of /proc/cpuinfo if __sgi__.
9307 * config.host: Also use driver-native.o, mips/x-native on
9308 mips-sgi-irix*.
9309 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
9310 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
9311 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
9312
9313 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9314
9315 PR middle-end/49897
9316 PR middle-end/49898
9317 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
9318 in nested parallel and outer is a gimple_reg, mark it as addressable
9319 and set its bit in task_shared_vars bitmap too.
9320
9321 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
9322
9323 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
9324
9325 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9326
9327 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
9328 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
9329 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
9330 AMASK_LOCKPFTCHOK): Define.
9331 (host_detect_local_cpu): Remove buf, f, cpu_names.
9332 Define cpu_types, implver, amask.
9333 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
9334 native CPU.
9335 * config.host: Also use driver-alpha.o, alpha/x-alpha on
9336 alpha*-dec-osf*.
9337 * config/alpha/osf5.h [__alpha__ || __alpha]
9338 (host_detect_local_cpu): Declare.
9339 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
9340 (DRIVER_SELF_SPECS): Define.
9341
9342 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
9343
9344 PR target/47715
9345 * config/i386/i386.md (*load_tp_x32): New.
9346 (*load_tp_x32_zext): Ditto.
9347 (*add_tp_x32): Ditto.
9348 (*add_tp_x32_zext): Ditto.
9349 (*load_tp_<mode>): Disable for TARGET_X32 targets.
9350 (*add_tp_<mode>): Ditto.
9351 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
9352 ptr_mode and convert to Pmode if needed.
9353
9354 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
9355
9356 PR target/49687
9357 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
9358 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
9359 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
9360 Add X to register footprint: Clobber r26/r27.
9361
9362 2011-07-29 Richard Guenther <rguenther@suse.de>
9363
9364 * builtins.c (fold_builtin_signbit): Build the comparison
9365 with a proper type.
9366
9367 2011-07-29 Richard Guenther <rguenther@suse.de>
9368
9369 PR tree-optimization/49893
9370 * tree-predcom.c (suitable_reference_p): Volatile references
9371 are not suitable.
9372
9373 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
9374
9375 PR target/49313
9376 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
9377 (__ctzsi2): Result for 0 may be undefined.
9378 (__ctzhi2): Result for 0 may be undefined.
9379 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
9380 (__popcountsi2): Ditto. And don't clobber r26.
9381 (__popcountdi2): Ditto. And don't clobber r27.
9382 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
9383 (parityhi2): New expand.
9384 (paritysi2): New expand.
9385 (popcounthi2): New expand.
9386 (popcountsi2): New expand.
9387 (clzhi2): New expand.
9388 (clzsi2): New expand.
9389 (ctzhi2): New expand.
9390 (ctzsi2): New expand.
9391 (ffshi2): New expand.
9392 (ffssi2): New expand.
9393 (copysignsf3): New insn.
9394 (bswapsi2): New expand.
9395 (*parityhi2.libgcc): New insn.
9396 (*parityqihi2.libgcc): New insn.
9397 (*paritysihi2.libgcc): New insn.
9398 (*popcounthi2.libgcc): New insn.
9399 (*popcountsi2.libgcc): New insn.
9400 (*popcountqi2.libgcc): New insn.
9401 (*popcountqihi2.libgcc): New insn-and-split.
9402 (*clzhi2.libgcc): New insn.
9403 (*clzsihi2.libgcc): New insn.
9404 (*ctzhi2.libgcc): New insn.
9405 (*ctzsihi2.libgcc): New insn.
9406 (*ffshi2.libgcc): New insn.
9407 (*ffssihi2.libgcc): New insn.
9408 (*bswapsi2.libgcc): New insn.
9409
9410 2011-07-29 Richard Guenther <rguenther@suse.de>
9411
9412 * tree-vrp.c (get_value_range): Only set parameter default
9413 definitions to varying, leave others at undefined.
9414 (extract_range_from_binary_expr): Fix undefined handling.
9415 (vrp_visit_phi_node): Handle merged undefined state.
9416
9417 2011-07-29 Wei Guozhi <carrot@google.com>
9418
9419 PR rtl-optimization/49799
9420 * combine.c (make_compound_operation): Check if the bit field is valid
9421 before change it to bit field extraction.
9422
9423 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
9424
9425 PR rtl-optimization/49891
9426 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
9427 newly created returnjumps.
9428
9429 2011-07-28 DJ Delorie <dj@redhat.com>
9430
9431 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
9432 local frame in a naked function, and produce a suitable error for
9433 that specific case.
9434
9435 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
9436 registers to be reloaded in HI classes when the target is HI.
9437
9438 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
9439
9440 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
9441 bound_one, bound_two.
9442
9443 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
9444
9445 PR middle-end/48648
9446 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
9447 CLAST assignments.
9448 (translate_clast): Same.
9449 (translate_clast_assignment): New.
9450
9451 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
9452
9453 PR tree-optimization/49876
9454 * sese.c (rename_uses): Do not return false on gloog_error: set
9455 the new_expr to integer_zero_node and continue code generation.
9456 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
9457
9458 2011-07-28 Jakub Jelinek <jakub@redhat.com>
9459
9460 PR debug/49846
9461 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
9462 arguments also check if they aren't initialized with a MODE_INT
9463 mode of the same size.
9464
9465 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
9466
9467 * expr.c (get_bit_range): Handle *MEM_REF's.
9468
9469 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
9470
9471 * rtlanal.c (tablejump_p): False for returns.
9472 * reorg.c (first_active_target_insn): New static function.
9473 (find_end_label): Set JUMP_LABEL for a new returnjump.
9474 (optimize_skip, get_jump_flags, rare_destination,
9475 mostly_true_jump, get_branch_condition,
9476 steal_delay_list_from_target, own_thread_p,
9477 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
9478 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
9479 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
9480 * jump.c (delete_related_insns): Likewise.
9481 (jump_to_label_p): New function.
9482 (redirect_target): New static function.
9483 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
9484 (redirect_jump_1): Assert that the new label is nonnull.
9485 (redirect_jump): Likewise.
9486 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
9487 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
9488 exit block.
9489 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
9490 changed. Ensure that the right label is passed to redirect_jump.
9491 * function.c (emit_return_into_block,
9492 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
9493 ret_rtx in their JUMP_LABEL.
9494 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
9495 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
9496 pass ret_rtx as label.
9497 * cfglayout.c (fixup_reorder_chain): Use
9498 force_nonfallthru_and_redirect rather than force_nonfallthru.
9499 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
9500 * rtl.h (ANY_RETURN_P): New macro.
9501 (jump_to_label_p): Declare.
9502 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
9503 JUMP_LABELs.
9504 (mark_target_live_regs): Likewise.
9505 * basic-block.h (force_nonfallthru_and_redirect): Declare.
9506 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
9507 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
9508 alpha_tablejump_best_label): Remove functions.
9509 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
9510 alpha_tablejump_best_label): Remove declarations.
9511 * config/sh/sh.c (barrier_align, split_branches): Adjust for
9512 ret_rtx in JUMP_LABELs.
9513 * config/arm/arm.c (is_jump_table): Likewise.
9514
9515 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
9516
9517 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
9518 special predicate. Remove explicit mode checks.
9519
9520 2011-07-28 Jakub Jelinek <jakub@redhat.com>
9521
9522 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
9523 DW_AT_data_member_location containing just DW_OP_plus_uconst.
9524
9525 PR debug/49871
9526 * dwarf2out.c (size_of_die, value_format, output_die): Use
9527 DW_FORM_udata instead of DW_FORM_data[48] for
9528 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
9529
9530 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9531
9532 * config/i386/i386.md (*tls_global_dynamic_64): Update
9533 length attribute.
9534
9535 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
9536
9537 PR target/47715
9538 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
9539 tls_symbolic_operand check. Update code sequence for TARGET_X32.
9540 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
9541 (tls_dynamic_gnu2_64): Ditto.
9542 (*tls_dynamic_gnu2_lea_64): Ditto.
9543 (*tls_dynamic_gnu2_call_64): Ditto.
9544 (*tls_dynamic_gnu2_combine_64): Ditto.
9545
9546 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9547
9548 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
9549
9550 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9551
9552 PR target/47364
9553 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
9554
9555 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9556
9557 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
9558 before the core constraints. Adjust attributes.
9559 ("*thumb2_movdf_vfp"): Likewise.
9560
9561 2011-07-28 Kai Tietz <ktietz@redhat.com>
9562
9563 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
9564 (simplify_truth_ops_using_ranges): Likewise.
9565 (build_assert_expr_for): Likewise.
9566 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
9567 and handle BIT_NOT_EXPR for truth-operation.
9568
9569 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
9570
9571 PR target/49313
9572 Undo r176835 from trunk
9573 2011-07-27 Georg-Johann Lay
9574
9575 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
9576
9577 PR target/49687
9578 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
9579 Add _muluhisi3, _mulshisi3, _usmulhisi3.
9580 * config/avr/libgcc.S (__mulsi3): Rewrite.
9581 (__mulhisi3): Rewrite.
9582 (__umulhisi3): Rewrite.
9583 (__usmulhisi3): New.
9584 (__muluhisi3): New.
9585 (__mulshisi3): New.
9586 (__mulohisi3): New.
9587 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
9588 declare.
9589 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
9590 (pseudo_register_or_const_int_operand): New.
9591 (combine_pseudo_register_operand): New.
9592 (u16_operand): New.
9593 (s16_operand): New.
9594 (o16_operand): New.
9595 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
9596 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
9597 (any_extend, any_extend2): New code iterators.
9598 (extend_prefix): New code attribute.
9599 (mulsi3): Rewrite. Turn insn to expander.
9600 (mulhisi3): Ditto.
9601 (umulhisi3): Ditto.
9602 (usmulhisi3): New expander.
9603 (*mulsi3): New insn-and-split.
9604 (mulu<mode>si3): New insn-and-split.
9605 (muls<mode>si3): New insn-and-split.
9606 (mulohisi3): New insn-and-split.
9607 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
9608 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
9609 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
9610 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
9611 insn-and-split.
9612 (*mulsi3_call): Rewrite.
9613 (*mulhisi3_call): Rewrite.
9614 (*umulhisi3_call): Rewrite.
9615 (*usmulhisi3_call): New insn.
9616 (*muluhisi3_call): New insn.
9617 (*mulshisi3_call): New insn.
9618 (*mulohisi3_call): New insn.
9619 (extendqihi2): Use combine_pseudo_register_operand as predicate
9620 for operand 1.
9621 (extendqisi2): Ditto.
9622 (zero_extendqihi2): Ditto.
9623 (zero_extendqisi2): Ditto.
9624 (zero_extendhisi2): Ditto.
9625 (extendhisi2): Ditto. Don't early-clobber operand 0.
9626
9627 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
9628
9629 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
9630
9631 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9632
9633 PR tree-optimization/49471
9634 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
9635 iv only when the largest type is unsigned. Do not call
9636 lang_hooks.types.type_for_size.
9637
9638 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9639
9640 PR middle-end/45450
9641 * graphite-poly.c (apply_poly_transforms): Disable legality check
9642 after an openscop read.
9643
9644 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9645
9646 PR middle-end/47691
9647 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
9648 copy_bb_and_scalar_dependences.
9649 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
9650 (graphite_copy_stmts_from_block): Update call to rename_uses.
9651 (copy_bb_and_scalar_dependences): Update call to
9652 graphite_copy_stmts_from_block.
9653 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
9654
9655 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
9656
9657 PR target/49313
9658 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
9659 (__ctzsi2): Result for 0 may be undefined.
9660 (__ctzhi2): Result for 0 may be undefined.
9661 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
9662 (__popcountsi2): Ditto. And don't clobber r26.
9663 (__popcountdi2): Ditto. And don't clobber r27.
9664 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
9665 (parityhi2): New expand.
9666 (paritysi2): New expand.
9667 (popcounthi2): New expand.
9668 (popcountsi2): New expand.
9669 (clzhi2): New expand.
9670 (clzsi2): New expand.
9671 (ctzhi2): New expand.
9672 (ctzsi2): New expand.
9673 (ffshi2): New expand.
9674 (ffssi2): New expand.
9675 (copysignsf3): New insn.
9676 (bswapsi2): New expand.
9677 (*parityhi2.libgcc): New insn.
9678 (*parityqihi2.libgcc): New insn.
9679 (*paritysihi2.libgcc): New insn.
9680 (*popcounthi2.libgcc): New insn.
9681 (*popcountsi2.libgcc): New insn.
9682 (*popcountqi2.libgcc): New insn.
9683 (*popcountqihi2.libgcc): New insn-and-split.
9684 (*clzhi2.libgcc): New insn.
9685 (*clzsihi2.libgcc): New insn.
9686 (*ctzhi2.libgcc): New insn.
9687 (*ctzsihi2.libgcc): New insn.
9688 (*ffshi2.libgcc): New insn.
9689 (*ffssihi2.libgcc): New insn.
9690 (*bswapsi2.libgcc): New insn.
9691
9692 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
9693
9694 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
9695 the mode of symbolic_opreand RTXes.
9696
9697 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
9698
9699 * config/i386/predicates.md (x86_64_movabs_operand): Return false
9700 for pic_32bit_operand RTXes.
9701 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
9702 in DImode.
9703
9704 2011-07-27 Kai Tietz <ktietz@redhat.com>
9705
9706 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
9707 for 32-bit, too.
9708 (ix86_handle_abi_attribute): Allow function attributes
9709 ms_abi/sysv_abi in 32-bit mode, too.
9710 * doc/extend.texi: Adjust attribute documentation.
9711
9712 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
9713 expression handling.
9714 (and_var_with_comparison_1): Likewise.
9715
9716 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
9717
9718 * params.h (ALLOW_STORE_DATA_RACES): New.
9719 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
9720 * Makefile.in (expr.o): Depend on PARAMS_H.
9721 * machmode.h (get_best_mode): Add argument.
9722 * fold-const.c (optimize_bit_field_compare): Add argument to
9723 get_best_mode.
9724 (fold_truthop): Same.
9725 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
9726 * expr.c (emit_group_store): Same.
9727 (copy_blkmode_from_reg): Same.
9728 (write_complex_part): Same.
9729 (optimize_bitfield_assignment_op): Add argument.
9730 Add argument to get_best_mode.
9731 (get_bit_range): New.
9732 (expand_assignment): Calculate maxbits and pass it down accordingly.
9733 (store_field): New argument.
9734 (expand_expr_real_2): New argument to store_field. Include params.h.
9735 * expr.h (store_bit_field): New argument.
9736 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
9737 into account maxbits.
9738 * calls.c (store_unaligned_arguments_into_pseudos): New argument
9739 to store_bit_field.
9740 * expmed.c (store_bit_field_1): New argument. Use it.
9741 (store_bit_field): Same.
9742 (store_fixed_bit_field): Same.
9743 (store_split_bit_field): Same.
9744 (extract_bit_field_1): Pass new argument to get_best_mode.
9745 (extract_bit_field): Same.
9746 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
9747 * doc/invoke.texi: Document parameter allow-store-data-races.
9748
9749 2011-07-27 Jakub Jelinek <jakub@redhat.com>
9750
9751 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
9752
9753 2011-07-27 Kai Tietz <ktietz@redhat.com>
9754
9755 * tree-vrp.c (extract_range_from_binary_expr): Remove
9756 TRUTH-binary cases and add new bitwise-cases.
9757 (extract_range_from_assignment): Likewise.
9758 (register_edge_assert_for_1): Likeiwise.
9759 (register_edge_assert_for): Likewise.
9760 (simplify_truth_ops_using_ranges): Likewise.
9761 (simplify_stmt_using_ranges): Likewise.
9762
9763 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
9764
9765 PR target/47372
9766 * config/i386/i386.c (ix86_delegitimize_address): Call
9767 simplify_gen_subreg for PIC with mode of x only if modes of
9768 x and orig_x are different.
9769
9770 2011-07-26 Jakub Jelinek <jakub@redhat.com>
9771
9772 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
9773 to GC allocated copy of the string.
9774 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
9775 before .debug_line, not after it.
9776
9777 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9778
9779 PR middle-end/47046
9780 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
9781 evolution_function_is_affine_p on CHREC_RIGHT.
9782
9783 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9784
9785 * tree-data-ref.c (max_stmt_executions_tree): Do not call
9786 lang_hooks.types.type_for_size.
9787
9788 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9789
9790 PR middle-end/47653
9791 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
9792 loops using wrapping semantics.
9793
9794 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9795
9796 PR middle-end/48805
9797 * tree-scalar-evolution.c (instantiate_scev_r): Return
9798 chrec_dont_know for ADDR_EXPR.
9799
9800 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9801 H.J. Lu <hongjiu.lu@intel.com>
9802
9803 PR target/47369
9804 PR target/49853
9805 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
9806 if legitimize_tls_address returned operand in wrong mode. Allow
9807 SImode and DImode symbolic operand for PIC. Call convert_to_mode
9808 if legitimize_pic_address returned operand in wrong mode.
9809
9810 2011-07-26 Martin Jambor <mjambor@suse.cz>
9811
9812 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
9813 return false for invariants.
9814
9815 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9816
9817 * config/i386/i386.md (add->lea splitter): Implement using SWI
9818 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
9819 (add->lea zext splitter): Change operand 2 predicate to
9820 x86_64_nonmemory_operand.
9821
9822 2011-07-26 Richard Guenther <rguenther@suse.de>
9823
9824 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9825 frequency makes everything hot.
9826
9827 2011-07-26 Richard Guenther <rguenther@suse.de>
9828
9829 PR tree-optimization/49840
9830 * tree-vrp.c (range_fits_type_p): Properly handle full
9831 double-int precision.
9832
9833 2011-07-26 Martin Jambor <mjambor@suse.cz>
9834
9835 PR bootstrap/49786
9836 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9837 counts.
9838 (update_specialized_profile): Likewise.
9839
9840 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9841 H.J. Lu <hongjiu.lu@intel.com>
9842
9843 PR target/47381
9844 PR target/49832
9845 PR target/49833
9846 * config/i386/i386.md (i): Change SImode attribute to "e".
9847 (g): Change SImode attribute to "rme".
9848 (di): Change SImode attribute to "nF".
9849 (general_operand): Change SImode attribute to x86_64_general_operand.
9850 (general_szext_operand): Change SImode attribute to
9851 x86_64_szext_general_operand.
9852 (immediate_operand): Change SImode attribute to
9853 x86_64_immediate_operand.
9854 (nonmemory_operand): Change SImode attribute to
9855 x86_64_nonmemory_operand.
9856 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9857 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
9858 (*lea_1): Use SWI48 mode iterator.
9859 (*lea_1_zext): New insn pattern.
9860 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9861 (*bt<mode>): Ditto.
9862 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9863 Update operand constraints.
9864 (addsi_1_zext): Ditto.
9865 (*add<mode>2): Ditto.
9866 (*addsi_3_zext): Ditto.
9867 (*subsi_1_zext): Ditto.
9868 (*subsi_2_zext): Ditto.
9869 (*subsi_3_zext): Ditto.
9870 (*addsi3_carry_zext): Ditto.
9871 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9872 (*mulsi3_1_zext): Ditto.
9873 (*andsi_1): Ditto.
9874 (*andsi_1_zext): Ditto.
9875 (*andsi_2_zext): Ditto.
9876 (*<any_or:code>si_1_zext): Ditto.
9877 (*<any_or:code>si_2_zext): Ditto.
9878 (*test<mode>_1): Use <general_operand> predicate for operand 1.
9879 (*and<mode>_2): Ditto.
9880 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
9881 (add->lea splitter): Check operand modes in insn constraint. Extend
9882 operands less than SImode wide to SImode.
9883 (add->lea zext splitter): Do not extend input operands to DImode.
9884 (*lea_general_1): Handle only QImode and HImode operands.
9885 (*lea_general_2): Ditto.
9886 (*lea_general_3): Ditto.
9887 (*lea_general_1_zext): Remove.
9888 (*lea_general_2_zext): Ditto.
9889 (*lea_general_3_zext): Ditto.
9890 (*lea_general_4): Check operand modes in insn constraint. Extend
9891 operands less than SImode wide to SImode.
9892 (ashift->lea splitter): Ditto.
9893 * config/i386/i386.c (ix86_print_operand_address): Print address
9894 registers with 'q' modifier on 64bit targets.
9895 * config/i386/predicates.md (pic_32bit_opreand): Define as special
9896 predicate. Reject non-SI and non-DI modes.
9897
9898 2011-07-25 Andrew Pinski <apinski@cavium.com>
9899
9900 PR tree-opt/49671
9901 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9902 TREE_THIS_NOTRAP into the inner most MEM_REF.
9903 Always copy TREE_THIS_VOLATILE.
9904 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9905 arguments are not volatile references.
9906
9907 2011-07-25 Richard Henderson <rth@redhat.com>
9908
9909 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9910 * final.c (final_scan_insn): Don't test for it.
9911 (rest_of_clean_state): Likewise.
9912
9913 2011-07-25 Richard Henderson <rth@redhat.com>
9914
9915 PR debug/49841
9916 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9917 (emit_frame_save): Likewise.
9918 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9919 insn onto a dummy blockage insn after the join label.
9920
9921 2011-07-25 Richard Henderson <rth@redhat.com>
9922
9923 * dwarf2cfi.c (dw_trace_info): Add ID member.
9924 (get_trace_index): Remove. Change users to use ID member.
9925 (before_next_cfi_note): New.
9926 (connect_traces): Remove unreachable traces before the main loop.
9927 Look across one trace and generate remember/restore_state if needed.
9928
9929 2011-07-25 Richard Henderson <rth@redhat.com>
9930
9931 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9932
9933 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
9934
9935 * genattr.c (write_upcase, gen_attr <enum definition writing>):
9936 Move to ...
9937 * genattr-common.c ... here.
9938 (main): Call gen_attr.
9939 * optc-gen.awk: Make generated program include insn-attr-common.h .
9940 * Makefile.in (oprions.o): Depend on insn-attr-common.h
9941
9942 2011-07-25 Anatoly Sokolov <aesok@post.ru>
9943
9944 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9945 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9946 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9947 m32c_print_operand, m32c_print_operand_address): Remove.
9948 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9949 Change return type to bool. Change argument type to bool.
9950 (m32c_print_operand, m32c_print_operand_address): Make static.
9951 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9952 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9953
9954 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9955
9956 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9957 attributes): Document mmap.
9958
9959 2011-07-25 Anatoly Sokolov <aesok@post.ru>
9960
9961 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9962 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9963 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9964 mmix_print_operand, mmix_print_operand_address): Remove.
9965 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9966 Change return type to bool. Change argument type to bool.
9967 (mmix_print_operand, mmix_print_operand_address): Make static.
9968 (mmix_intval, mmix_output_condition): Change 'x' argument type
9969 to const_rtx.
9970 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9971 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9972
9973 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
9974
9975 PR target/39386
9976 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9977 shift counter for x << x and x >> x shifts.
9978
9979 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9980
9981 PR target/47124
9982 * config.gcc: Reject *-*-solaris2 configuration.
9983
9984 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
9985
9986 PR tree-optimization/49809
9987 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9988 gimple_get_lhs instead of gimple_assign_lhs.
9989
9990 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9991
9992 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9993
9994 2011-07-25 Richard Guenther <rguenther@suse.de>
9995
9996 PR tree-optimization/49822
9997 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9998 more. Make sure to preserve stmts with side-effects. Properly
9999 handle virtual defs, follow a longer def chain.
10000
10001 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
10002
10003 PR plugins/45348
10004 PR plugins/48425
10005 PR plugins/46577
10006 * Makefile.in: Do not flatten c-family directory when installing
10007 plugin headers.
10008
10009 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
10010
10011 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
10012 original nodes if we are dealing with virtual clones.
10013
10014 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
10015
10016 * common/config/c6x/c6x-common.c: New file.
10017
10018 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
10019
10020 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
10021
10022 2011-07-25 Richard Guenther <rguenther@suse.de>
10023
10024 PR tree-optimization/49715
10025 * tree-vrp.c: Include expr.h and optabs.h.
10026 (range_fits_type_): New function.
10027 (simplify_float_conversion_using_ranges): Likewise.
10028 (simplify_stmt_using_ranges): Call it.
10029 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
10030 * optabs.c (can_float_p): Export.
10031 * optabs.h (can_float_p): Declare.
10032
10033 2011-07-25 Richard Guenther <rguenther@suse.de>
10034
10035 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
10036 (get_value_range): For out-of-range SSA names or names created
10037 after propagation return a read-only varying range.
10038 (dump_all_value_ranges): Adjust.
10039 (vrp_initialize): Likewise.
10040 (vrp_finalize): Likewise.
10041
10042 2011-07-24 Richard Henderson <rth@redhat.com>
10043
10044 PR debug/49831
10045 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
10046 them entirely.
10047
10048 2011-07-24 Richard Henderson <rth@redhat.com>
10049
10050 PR debug/49825
10051 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
10052 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
10053
10054 2011-07-24 Richard Henderson <rth@redhat.com>
10055
10056 PR debug/49827
10057 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
10058
10059 2011-07-24 Richard Henderson <rth@redhat.com>
10060
10061 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
10062 Zero args_size for abnormal edges. Adjust all callers.
10063
10064 2011-07-24 Richard Henderson <rth@redhat.com>
10065
10066 PR debug/49825
10067 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
10068
10069 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
10070
10071 PR bootstrap/49835
10072 * collect2.c (demangle_flag): Removed.
10073
10074 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
10075
10076 * configure.ac (demangler_in_ld): Default to yes.
10077 * configure: Regenerated.
10078 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
10079 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
10080 --no-demangle options straight through to ld. When
10081 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
10082 way that has the intended effect on Windows.
10083
10084 2011-07-23 Richard Henderson <rth@redhat.com>
10085
10086 * dwarf2cfi.c: Include basic-block.h.
10087 (dw_label_info): Remove.
10088 (trace_work_list, trace_index): New.
10089 (remember_row, emit_cfa_remember): Remove.
10090 (dw_trace_info_hash, dw_trace_info_eq): New.
10091 (get_trace_index, get_trace_info): New.
10092 (save_point_p): New.
10093 (free_cfi_row): Remove.
10094 (add_cfi): Do not emit DW_CFA_remember_state.
10095 (cfa_row_equal_p): New.
10096 (barrier_args_size): Remove.
10097 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
10098 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
10099 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
10100 (dwarf2out_cfi_begin_epilogue): Remove.
10101 (dwarf2out_frame_debug_restore_state): Remove.
10102 (connect_traces, create_pseudo_cfg): New.
10103 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
10104 * Makefile.in (dwarf2cfi.o): Update.
10105
10106 2011-07-23 Richard Henderson <rth@redhat.com>
10107
10108 * dwarf2cfi.c (dw_trace_info): New.
10109 (dw_label_info): New.
10110 (cie_return_save): New.
10111 (cur_trace): New.
10112 (queued_args_size): Rename from args_size. Update all users.
10113 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
10114 (def_cfa_1): Use cur_trace instead of cfa_*.
10115 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
10116 (clobbers_queued_reg_save, reg_saved_in): Likewise.
10117 (dwarf2out_frame_debug_expr): Likewise.
10118 (create_cie_data): Split out from ...
10119 (execute_dwarf2_frame): ... here. Initialize cur_trace.
10120
10121 2011-07-23 Richard Henderson <rth@redhat.com>
10122
10123 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
10124 Update all users to match.
10125 (execute_dwarf2_frame): Free reg_saved_in_data.
10126
10127 2011-07-23 Richard Henderson <rth@redhat.com>
10128
10129 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
10130 (queued_reg_saves): Don't GTY. Change to a VEC.
10131 (queue_reg_save): Update to match.
10132 (dwarf2out_flush_queued_reg_saves): Likewise.
10133 (clobbers_queued_reg_save): Likewise.
10134 (reg_saved_in): Likewise.
10135 (execute_dwarf2_frame): Free queued_reg_saves.
10136
10137 2011-07-23 Richard Henderson <rth@redhat.com>
10138
10139 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
10140
10141 2011-07-23 Richard Henderson <rth@redhat.com>
10142
10143 * dwarf2cfi.c (add_cfi_args_size): Split out from...
10144 (dwarf2out_args_size): ... here.
10145 (add_cfi_restore): Split out from ...
10146 (dwarf2out_frame_debug_cfa_restore): ... here.
10147 (def_cfa_0): Split out from ...
10148 (def_cfa_1): ... here.
10149 (cfi_oprnd_equal_p, cfi_equal_p): New.
10150 (change_cfi_row): New.
10151 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
10152 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
10153 (output_cfis): Remove.
10154 * dwarf2out.c (output_fde): Simplify output_cfi loop.
10155 (dwarf2out_switch_text_section): Don't call output_cfis.
10156 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
10157 * dwarf2out.h: Update decls.
10158 (enum dw_val_class): Add dw_val_class_none.
10159
10160 2011-07-23 Richard Henderson <rth@redhat.com>
10161
10162 * dwarf2cfi.c (update_row_reg_save): New.
10163 (dwarf2out_frame_debug_cfa_expression): Use it.
10164 (dwarf2out_frame_debug_cfa_restore): Likewise.
10165 (reg_save): Likewise. Do not emit DW_CFA_same_value.
10166
10167 2011-07-23 Richard Henderson <rth@redhat.com>
10168
10169 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
10170
10171 2011-07-23 Richard Henderson <rth@redhat.com>
10172
10173 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
10174 (cie_cfi_row): New.
10175 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
10176 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
10177 (cur_row, remember_row): New.
10178 (def_cfa_1): Use cur_row instead of the old_* variables.
10179 (dwarf2out_frame_debug_restore_state): Similarly.
10180 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
10181 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
10182 (dwarf2out_frame_debug_adjust_cfa): Likewise.
10183 (dwarf2out_frame_debug_cfa_offset): Likewise.
10184 (dwarf2out_frame_debug_expr): Likewise.
10185 (execute_dwarf2_frame): Set up cur_row.
10186 * dwarf2out.h (struct cfa_loc): Mark for GTY.
10187
10188 2011-07-23 Richard Henderson <rth@redhat.com>
10189
10190 * basic-block.h (EDGE_PRESERVE): New.
10191 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
10192 * bb-reorder.c: Include except.h.
10193 (fix_up_crossing_landing_pad): New.
10194 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
10195 landing pads in the right partition. Duplicate as necessary.
10196 (partition_hot_cold_basic_blocks): Fix up DF info after
10197 duplicating landing pads.
10198 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
10199 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
10200 is set properly. Validate that EH edges are not CROSSING.
10201 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
10202 (dw2_build_landing_pads): ... here.
10203 (convert_to_eh_region_ranges): Remove code to fixup crossing
10204 landing pads.
10205 * except.h (expand_dw2_landing_pad_for_region): Declare.
10206 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
10207
10208 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
10209
10210 PR target/49816
10211 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
10212
10213 2011-07-22 Jason Merrill <jason@redhat.com>
10214
10215 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
10216
10217 2011-07-22 Richard Henderson <rth@redhat.com>
10218
10219 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
10220
10221 2011-07-22 Richard Henderson <rth@redhat.com>
10222
10223 * jump.c (maybe_propagate_label_ref): Split out of...
10224 (mark_all_labels): ... here. Do not attempt label_ref
10225 propagation while in cfglayout mode.
10226
10227 2011-07-22 Jakub Jelinek <jakub@redhat.com>
10228
10229 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
10230 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
10231 (dwarf_attr_name): Handle DW_AT_GNU_macros.
10232 (dwarf2out_define): If the vector is empty and
10233 lineno is 0, emit a dummy entry first.
10234 (dwarf2out_undef): Likewise. Remove redundant semicolon.
10235 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
10236 optimize_macinfo_range): New functions.
10237 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
10238 mergeable, optimize longer strings using
10239 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
10240 optimize longer sequences of define/undef ops from headers
10241 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
10242 emit a section headers.
10243 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
10244 and macinfo_section_label to DEBUG_MACRO_SECTION
10245 resp. DEBUG_MACRO_SECTION_LABEL.
10246 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
10247 instead of DW_AT_macro_info.
10248
10249 PR other/32998
10250 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
10251 options.
10252 * dwarf2out.c: Include opts.h.
10253 (dchar_p): New typedef. Define heap VEC for it.
10254 (producer_string): New variable.
10255 (gen_producer_string): New function.
10256 (gen_compile_unit_die): Use it.
10257 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
10258 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
10259 * doc/invoke.texi: Document -grecord-gcc-switches and
10260 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
10261 to -frecord-gcc-switches description.
10262
10263 2011-07-22 Jason Merrill <jason@redhat.com>
10264
10265 PR c++/30112
10266 * c-decl.c (c_linkage_bindings): Define.
10267
10268 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
10269
10270 PR debug/49815
10271 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
10272
10273 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
10274
10275 * config/i386/i386.c (ix86_option_override_internal): Disallow
10276 MS ABI in x32 mode.
10277 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
10278 only for TARGET_LP64.
10279 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
10280
10281 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10282
10283 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
10284 avoid warnings when GCC is built with a C++ compiler.
10285
10286 2011-07-22 Martin Jambor <mjambor@suse.cz>
10287
10288 PR lto/49796
10289 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
10290 if decl node is in another partition, call cgraph_get_node only once.
10291
10292 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
10293
10294 * config.gcc (x86_64-*-linux*): Set
10295 default_gnu_indirect_function to yes.
10296
10297 2011-07-22 Richard Guenther <rguenther@suse.de>
10298
10299 PR tree-optimization/45819
10300 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
10301 preserve volatile and notrap flags.
10302
10303 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10304 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10305
10306 PR bootstrap/49794
10307 * configure.ac: Test AM_ICONV with CXX.
10308 * configure: Regenerate.
10309 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
10310
10311 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10312
10313 PR bootstrap/49797
10314 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
10315 (set_cloog_options): Use it.
10316
10317 2011-07-22 Jakub Jelinek <jakub@redhat.com>
10318
10319 PR c++/49756
10320 * gcc.c (main): Call stack_limit_increase (64MB).
10321 * toplev.c (toplev_main): Likewise.
10322
10323 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
10324
10325 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
10326 instead of force_reg.
10327
10328 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
10329
10330 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
10331 needed and use force_reg after convert.
10332 (ix86_expand_call): Likewise.
10333 (ix86_expand_special_args_builtin): Likewise.
10334 (ix86_expand_builtin): Likewise.
10335
10336 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10337
10338 PR middle-end/47654
10339 PR middle-end/49649
10340 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
10341 in parameter. Initialize v1 and v2 based on the values returned
10342 by clast_name_to_lb_ub.
10343 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
10344 values.
10345 (type_for_clast_bin): Same.
10346 (type_for_clast_expr): Same.
10347 (type_for_clast_eq): Update calls to type_for_clast_expr.
10348 (type_for_clast_for): Same.
10349 (build_iv_mapping): Same.
10350 * graphite-ppl.h (value_min): New.
10351
10352 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10353
10354 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
10355 types whenever possible.
10356
10357 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10358
10359 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
10360 and ub fields.
10361 (new_clast_name_index): Add lb and ub parameters.
10362 (free_clast_name_index): New.
10363 (clast_name_to_lb_ub): New.
10364 (save_clast_name_index): Add lb and ub parameters.
10365 (compute_bounds_for_param): New.
10366 (type_for_level): Removed.
10367 (type_for_clast_for): Removed level parameter. Do not call
10368 type_for_level.
10369 (graphite_create_new_loop): Store the lb and ub for the clast_name
10370 of the iterator of the loop that has been generated.
10371 (graphite_create_new_loop_guard): Remove parameter level.
10372 (create_params_index): Store the lb and ub of each parameter.
10373 (gloog): Use free_clast_name_index. Pass to create_params_index
10374 the current scop.
10375
10376 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10377
10378 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
10379 (max_precision_type): Inline max_signed_precision_type.
10380 (type_for_clast_red): Use max_precision_type.
10381 (type_for_clast_bin): Same.
10382 (type_for_clast_for): Same.
10383
10384 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10385
10386 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
10387 type_for_interval.
10388 (gcc_type_for_value): Renamed type_for_value.
10389 (gcc_type_for_clast_term): Renamed type_for_clast_term.
10390 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
10391 (gcc_type_for_clast_red): Renamed type_for_clast_red.
10392 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
10393 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
10394 (graphite_translate_clast_equation): Update calls.
10395 (compute_type_for_level): Renamed type_for_level.
10396 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
10397 (build_iv_mapping): Update calls.
10398 (graphite_create_new_loop_guard): Same.
10399
10400 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10401
10402 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
10403 comment.
10404
10405 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10406
10407 * graphite-clast-to-gimple.c (struct ivs_params): New.
10408 (clast_name_to_gcc): Use ivs_params to pass around parameters.
10409 (clast_to_gcc_expression): Same.
10410 (clast_to_gcc_expression_red): Same.
10411 (gcc_type_for_clast_term): Same.
10412 (gcc_type_for_clast_expr): Same.
10413 (gcc_type_for_clast_red): Same.
10414 (gcc_type_for_clast_bin): Same.
10415 (gcc_type_for_clast_eq): Same.
10416 (graphite_translate_clast_equation): Same.
10417 (graphite_create_guard_cond_expr): Same.
10418 (graphite_create_new_guard): Same.
10419 (graphite_create_new_loop): Same.
10420 (build_iv_mapping): Same.
10421 (translate_clast_user): Same.
10422 (graphite_create_new_loop_guard): Same.
10423 (translate_clast): Same.
10424 (translate_clast_for_loop): Same.
10425 (translate_clast_for): Same.
10426 (translate_clast_guard): Same.
10427 (initialize_cloog_names): Fix typo.
10428 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
10429
10430 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10431
10432 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
10433 (new_clast_name_index): Add level parameter.
10434 (clast_name_to_level): New.
10435 (save_clast_name_index): Add level parameter.
10436 (newivs_to_depth_to_newiv): Removed.
10437 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
10438 (graphite_create_new_loop): Add level parameter. Pass level to
10439 save_clast_name_index.
10440 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
10441 (create_params_index): Pass level to save_clast_name_index.
10442
10443 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10444
10445 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
10446 recompute type, lb, and ub. Get them from...
10447 (graphite_create_new_loop_guard): ...here. Pass in parameter
10448 pointers to type, lb, and ub.
10449 (translate_clast_for_loop): Update function calls.
10450 (translate_clast_for): Same.
10451
10452 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10453
10454 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
10455 psct_dynamic_dim.
10456 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
10457 (gcc_type_for_iv_of_clast_loop): Update use of level.
10458 (gloog): Start counting nesting level from 0.
10459 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
10460 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
10461 psct_dynamic_dim on level.
10462
10463 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
10464
10465 * config/i386/i386.c (ix86_legitimize_address): Convert to
10466 Pmode if needed.
10467
10468 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
10469
10470 * config/i386/i386.c (function_value_64): Always return pointers
10471 in Pmode.
10472 (ix86_promote_function_mode): New.
10473 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
10474
10475 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10476
10477 PR tree-optimization/49749
10478 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
10479 remove no-longer-used maxrank variable.
10480
10481 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
10482
10483 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
10484
10485 2011-07-21 Jason Merrill <jason@redhat.com>
10486
10487 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
10488 * recog.h (struct insn_data_d): Check it instead of
10489 HAVE_DESIGNATED_INITIALIZERS.
10490 * genoutput.c (output_insn_data): Likewise.
10491
10492 2011-07-21 Richard Guenther <rguenther@suse.de>
10493
10494 PR tree-optimization/49770
10495 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
10496 valueized any operand. Renamed from ...
10497 (valueize_refs): ... this. New wrapper around valueize_refs_1.
10498 (valueize_shared_reference_ops_from_ref): Return whether we
10499 valueized any operand.
10500 (vn_reference_lookup): Only when we valueized any operand
10501 use the valueized reference for alias analysis. Do not preserve
10502 the original reference tree in this case.
10503
10504 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
10505
10506 * config/i386/i386.c (ix86_decompose_address): Reject all but
10507 register operands and subregs of DImode hard registers in index.
10508
10509 2011-07-21 Kai Tietz <ktietz@redhat.com>
10510
10511 * fold-const.c (fold_unary_loc): Preserve indirect
10512 comparison cast to none-boolean type.
10513 * tree-ssa.c (useless_type_conversion_p): Preserve cast
10514 from/to boolean-type.
10515 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
10516 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
10517 * tree-cfg.c (verify_gimple_comparison): Check result
10518 type of comparison expression.
10519 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
10520 of condition result and disallow type-cast sinking into comparison.
10521
10522 2011-07-21 Richard Guenther <rguenther@suse.de>
10523
10524 * tree-ssa-forwprop.c (combine_conversions): Return whether
10525 we have to run cfg-cleanup. Properly remove dead stmts.
10526 (ssa_forward_propagate_and_combine): Adjust.
10527
10528 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
10529
10530 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
10531
10532 2011-07-21 Kai Tietz <ktietz@redhat.com>
10533
10534 * tree-ssa-propagate.c (substitute_and_fold): Use
10535 do_dce flag to deside, if BB's statements are scanned
10536 in last to first, or first to last order.
10537
10538 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
10539
10540 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
10541
10542 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
10543 Uros Bizjak <ubizjak@gmail.com>
10544 Richard Henderson <rth@redhat.com>
10545
10546 * config/i386/constraints.md (w): New.
10547
10548 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
10549 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
10550
10551 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
10552 instead of TARGET_64BIT.
10553
10554 * config/i386/i386.md (indirect_jump): Replace
10555 nonimmediate_operand with indirect_branch_operand.
10556 (*indirect_jump): Likewise. Replace constraint "m" with "w".
10557 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
10558 Convert operand 0 to Pmode for x32 if not PIC.
10559 (*tablejump_1): Replace nonimmediate_operand with
10560 indirect_branch_operand. Replace constraint "m" with "w".
10561 (*call_vzeroupper): Replace constraint "m" with "w".
10562 (*call): Likewise.
10563 (*call_rex64_ms_sysv_vzeroupper): Likewise.
10564 (*call_rex64_ms_sysv): Likewise.
10565 (*call_value_vzeroupper): Likewise.
10566 (*call_value): Likewise.
10567 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
10568 (*call_value_rex64_ms_sysv): Likewise.
10569 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
10570
10571 * config/i386/predicates.md (indirect_branch_operand): New.
10572 (call_insn_operand): Support x32.
10573
10574 2011-07-20 Michael Eager <eager@eagercon.com>
10575
10576 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
10577
10578 2011-07-20 Richard Henderson <rth@redhat.com>
10579
10580 * cfg.c (dump_bb_info): Dump basic_block->flags.
10581 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
10582
10583 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
10584
10585 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10586 of DImode hard registers in index.
10587 (ix86_legitimate_address_p): Allow subregs of base and index to span
10588 more than a word. Assert that subregs of base and index satisfy
10589 register_no_elim_operand predicates. Reject addresses where
10590 base and index have different modes.
10591
10592 2011-07-20 Robert Millan <rmh@gnu.org>
10593
10594 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
10595
10596 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10597
10598 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
10599 removing now-unnecessary assignment.
10600
10601 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10602
10603 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
10604 memory address space to the type's address space.
10605
10606 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
10607
10608 PR target/36467
10609 PR target/49687
10610 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
10611 and expand appropriately if there is a CONST_INT in operand2.
10612 (usmulqihi3): New insn.
10613 (*sumulqihi3): New insn.
10614 (*osmulqihi3): New insn.
10615 (*oumulqihi3): New insn.
10616 (*muluqihi3.uconst): New insn_and_split.
10617 (*muluqihi3.sconst): New insn_and_split.
10618 (*mulsqihi3.sconst): New insn_and_split.
10619 (*mulsqihi3.uconst): New insn_and_split.
10620 (*mulsqihi3.oconst): New insn_and_split.
10621 (*ashifthi3.signx.const): New insn_and_split.
10622 (*ashifthi3.signx.const7): New insn_and_split.
10623 (*ashifthi3.zerox.const): New insn_and_split.
10624 (mulsqihi3): New insn.
10625 (muluqihi3): New insn.
10626 (muloqihi3): New insn.
10627 * config/avr/predicates.md (const_2_to_7_operand): New.
10628 (const_2_to_6_operand): New.
10629 (u8_operand): New.
10630 (s8_operand): New.
10631 (o8_operand): New.
10632 (s9_operand): New.
10633 (register_or_s9_operand): New.
10634
10635 2011-07-20 Kai Tietz <ktietz@redhat.com>
10636
10637 * builtins.c (fold_builtin_expect): See through the cast
10638 from truthvalue_type_node to long.
10639
10640 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10641
10642 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
10643 where we can use them from the standard and altivec instruction
10644 sets, instead of always using the 3 operand VSX forms that require
10645 the destination to overlap one of the inputs.
10646 (vsx_fms*): Ditto.
10647 (vsx_fnma*): Ditto.
10648 (vsx_fnms*): Ditto.
10649
10650 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
10651 for DF types.
10652 (fmsdf4_fpr): Ditto.
10653 (nfmadf4_fpr): Ditto.
10654 (nfmsdf4_fpr): Ditto.
10655
10656 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
10657
10658 * genrecog.c (make_insn_sequence): Correct position numbering
10659 when filtering out match_scratch and match_dup.
10660
10661 2011-07-20 Richard Guenther <rguenther@suse.de>
10662
10663 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10664 against already removed statements.
10665 (forward_propagate_into_comparison): Remove dead defining stmts.
10666 (forward_propagate_into_gimple_cond): Likewise.
10667 (forward_propagate_into_cond): Simplify.
10668 (ssa_forward_propagate_and_combine): Handle changed cfg from
10669 forward_propagate_into_comparison.
10670 * tree-ssa-phiopt.c (conditional_replacement): Use proper
10671 locations for newly built statements.
10672
10673 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
10674
10675 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
10676
10677 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10678
10679 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
10680 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
10681
10682 2011-07-20 Richard Guenther <rguenther@suse.de>
10683
10684 PR middle-end/18908
10685 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
10686 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
10687 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
10688
10689 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
10690
10691 * config/frv/frv.c (frv_register_move_cost): Define explicitly
10692 costs for subclasses of GR_REGS.
10693
10694 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
10695
10696 PR target/49780
10697 * config/i386/predicates.md (no_seg_addres_operand): No more special.
10698 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10699 of DImode hard registers in base.
10700 (ix86_legitimate_address_p): Allow SImode and DImode base and index
10701 registers.
10702
10703 2011-07-20 Richard Guenther <rguenther@suse.de>
10704
10705 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
10706 (unify_nodes): Deal with that.
10707 (solve_graph): Likewise.
10708
10709 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
10710
10711 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
10712 canonicalize left operand from ZERO_EXTEND to AND.
10713
10714 2011-07-20 Anatoly Sokolov <aesok@post.ru>
10715
10716 * target.def (class_max_nregs): New hook.
10717 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
10718 * doc/tm.texi: Regenerate.
10719 * targhooks.c (default_class_max_nregs): New function.
10720 * targhooks.h (default_class_max_nregs): Declare.
10721 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
10722 x_ira_reg_class_min_nregs arrays to unsigned char.
10723 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
10724 hook instead of CLASS_MAX_NREGS macro.
10725 * reginfo.c (restore_register_info): Ditto.
10726 * ira-conflicts.c (process_regs_for_copy): Use
10727 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10728 Change type rclass and aclass vars to reg_class_t.
10729 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
10730 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
10731 reg_class_t.
10732 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
10733 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10734
10735 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
10736 * config/i386/i386.c (ix86_class_max_nregs): New function.
10737 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
10738 instead of CLASS_MAX_NREGS macro.
10739 (TARGET_CLASS_MAX_NREGS): Define.
10740 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
10741 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
10742 * config/avr/avr.c (class_max_nregs): Remove function.
10743 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
10744 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
10745 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
10746 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
10747 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
10748 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
10749 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
10750 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
10751 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
10752 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
10753 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
10754 * config/score/score.h (CLASS_MAX_NREGS): Remove.
10755 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
10756 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
10757 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
10758
10759 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
10760
10761 * cif-code.def (OVERWRITABLE): Fix typo and move around.
10762 (TARGET_OPTIMIZATION_MISMATCH): Delete.
10763 (EH_PERSONALITY): Fix typo.
10764 (NON_CALL_EXCEPTIONS): Fix message.
10765 (OPTIMIZATION_MISMATCH): Adjust message.
10766 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
10767
10768 2011-07-19 Ian Lance Taylor <iant@google.com>
10769
10770 * doc/install.texi (Configuration): Document
10771 --enable-build-poststage1-with-cxx.
10772
10773 2011-07-19 Robert Millan <rmh@gnu.org>
10774
10775 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
10776 (GLIBC_DYNAMIC_LINKER): Remove.
10777
10778 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
10779 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10780 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10781 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
10782 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
10783 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
10784
10785 * config/mips/linux.h: Remove everything except for ...
10786 (GLIBC_DYNAMIC_LINKER): ... this macro.
10787
10788 * config/mips/linux64.h: Remove everything except for ...
10789 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10790 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10791 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
10792 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
10793 (GNU_USER_LINK_EMULATIONN32): New macros.
10794
10795 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
10796 Use the new headers.
10797
10798 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10799
10800 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
10801 Add offset_known_p and size_known_p fields.
10802 (MEM_OFFSET_KNOWN_P): Update accordingly.
10803 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
10804 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
10805 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
10806 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
10807 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
10808 (init_emit_regs): Likewise.
10809
10810 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10811
10812 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
10813 (MEM_OFFSET): Change from returning an rtx to returning a
10814 HOST_WIDE_INT.
10815 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10816 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10817 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10818 (clear_mem_offset): Declare.
10819 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10820 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10821 MEM_OFFSET to get a HOST_WIDE_INT offset.
10822 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
10823 (adjust_offset_for_component_ref): Take a bool "known_p"
10824 parameter and a HOST_WIDE_INT "offset" parameter.
10825 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10826 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10827 than an rtx. Use clear_mem_offset to clear the offset.
10828 * cfgcleanup.c (merge_memattrs): Likewise.
10829 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10830 * function.c (assign_parm_find_stack_rtl): Likewise.
10831 (assign_parm_setup_stack): Likewise.
10832 * print-rtl.c (print_rtx): Likewise.
10833 * reload.c (find_reloads_subreg_address): Likewise.
10834 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10835 * var-tracking.c (INT_MEM_OFFSET): Likewise.
10836 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10837 (get_mem_align_offset): Likewise.
10838 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10839 (clear_mem_offset): New function.
10840 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10841 offset rather than an rtx. Assume both the expressio and offset
10842 are available.
10843 (r10k_needs_protection_p_1): Update accordingly, checking the
10844 expression and offset availability here instead.
10845
10846 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10847
10848 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10849 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10850 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10851 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10852 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10853 (clear_mem_size): Declare.
10854 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10855 (clear_mem_size): New function.
10856 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10857 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10858 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
10859 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
10860 to clear the size.
10861 (nonoverlapping_memrefs_p): Likewise.
10862 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10863 (expand_builtin_init_trampoline): Likewise.
10864 * calls.c (compute_argument_addresses): Likewise.
10865 * cfgcleanup.c (merge_memattrs): Likewise.
10866 * dce.c (find_call_stack_args): Likewise.
10867 * dse.c (record_store, scan_insn): Likewise.
10868 * dwarf2out.c (dw_sra_loc_expr): Likewise.
10869 * expr.c (emit_block_move_hints): Likewise.
10870 * function.c (assign_parm_find_stack_rtl): Likewise.
10871 * print-rtl.c (print_rtx): Likewise.
10872 * reload.c (find_reloads_subreg_address): Likewise.
10873 * rtlanal.c (may_trap_p_1): Likewise.
10874 * var-tracking.c (track_expr_p): Likewise.
10875 * varasm.c (assemble_trampoline_template): Likewise.
10876 * config/arm/arm.c (arm_print_operand): Likewise.
10877 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10878 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10879 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10880 (expand_constant_setmem_prologue): Likewise.
10881 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10882 * config/rs6000/rs6000.c (expand_block_move): Likewise.
10883 (adjacent_mem_locations): Likewise.
10884 * config/s390/s390.c (s390_expand_setmem): Likewise.
10885 (s390_expand_insv): Likewise.
10886 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10887 (*extendqi<mode>2_short_displ): Likewise.
10888 * config/sh/sh.c (expand_block_move): Likewise.
10889 * config/sh/sh.md (extv, extzv): Likewise.
10890
10891 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10892
10893 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10894 (mem_attrs_htab_eq): ...here.
10895 (find_mem_attrs): Replace with...
10896 (set_mem_attrs): ...this function. Take a mem_attrs structure
10897 rather than individual fields.
10898 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10899 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10900 (set_mem_size, change_address, adjust_address_1, offset_address)
10901 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10902 Update accordingly.
10903
10904 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10905
10906 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10907 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10908 Provide a dummy definition of MEM_ADDR_SPACE for generators.
10909 (target_rtl): Add x_mode_mem_attrs.
10910 (mode_mem_attrs): New macro.
10911 (get_mem_attrs): New function.
10912 * emit-rtl.c (get_mem_attrs): Rename to...
10913 (find_mem_attrs): ...this.
10914 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10915 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10916 (set_mem_size, change_address, adjust_address_1, offset_address)
10917 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10918 Update accordingly.
10919 (init_emit_regs): Initialize mode_mem_attrs.
10920
10921 2011-07-19 Richard Guenther <rguenther@suse.de>
10922
10923 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10924 TRUTH_*_EXPR handling.
10925 * tree-ssa-operands.c (get_expr_operands): Likewise.
10926 * tree-ssa-pre.c (fully_constant_expression): Likewise.
10927 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10928 Likewise.
10929 (is_and_or_or): Likewise.
10930 (is_norm_cond_subset_of): Likewise.
10931
10932 2011-07-19 Richard Guenther <rguenther@suse.de>
10933
10934 * tree.h (fold_build_pointer_plus_loc): New helper function.
10935 (fold_build_pointer_plus_hwi_loc): Likewise.
10936 (fold_build_pointer_plus): Define.
10937 (fold_build_pointer_plus_hwi): Likewise.
10938 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10939 (fold_builtin_memory_op): Likewise.
10940 (fold_builtin_stpcpy): Likewise.
10941 (fold_builtin_memchr): Likewise.
10942 (fold_builtin_strstr): Likewise.
10943 (fold_builtin_strchr): Likewise.
10944 (fold_builtin_strrchr): Likewise.
10945 (fold_builtin_strpbrk): Likewise.
10946 (fold_builtin_strcat): Likewise.
10947 (expand_builtin_memory_chk): Likewise.
10948 (fold_builtin_memory_chk): Likewise.
10949 * c-typeck.c (build_unary_op): Likewise.
10950 * cgraphunit.c (thunk_adjust): Likewise.
10951 * fold-const.c (build_range_check): Likewise.
10952 (fold_binary_loc): Likewise.
10953 * omp-low.c (extract_omp_for_data): Likewise.
10954 (expand_omp_for_generic): Likewise.
10955 (expand_omp_for_static_nochunk): Likewise.
10956 (expand_omp_for_static_chunk): Likewise.
10957 * tree-affine.c (add_elt_to_tree): Likewise.
10958 * tree-data-ref.c (split_constant_offset_1): Likewise.
10959 * tree-loop-distribution.c (generate_memset_zero): Likewise.
10960 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10961 * tree-predcom.c (ref_at_iteration): Likewise.
10962 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10963 (add_to_parts): Likewise.
10964 (create_mem_ref): Likewise.
10965 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10966 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10967 (number_of_iterations_le): Likewise.
10968 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10969 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10970 (vect_create_addr_base_for_vector_ref): Likewise.
10971 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10972 (vect_create_cond_for_alias_checks): Likewise.
10973 * tree-vrp.c (extract_range_from_assert): Likewise.
10974 * config/alpha/alpha.c (alpha_va_start): Likewise.
10975 (alpha_gimplify_va_arg_1): Likewise.
10976 * config/i386/i386.c (ix86_va_start): Likewise.
10977 (ix86_gimplify_va_arg): Likewise.
10978 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10979 * config/mep/mep.c (mep_expand_va_start): Likewise.
10980 (mep_gimplify_va_arg_expr): Likewise.
10981 * config/mips/mips.c (mips_va_start): Likewise.
10982 (mips_gimplify_va_arg_expr): Likewise.
10983 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10984 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10985 (rs6000_gimplify_va_arg): Likewise.
10986 * config/s390/s390.c (s390_va_start): Likewise.
10987 (s390_gimplify_va_arg): Likewise.
10988 * config/sh/sh.c (sh_va_start): Likewise.
10989 (sh_gimplify_va_arg_expr): Likewise.
10990 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10991 * config/spu/spu.c (spu_va_start): Likewise.
10992 (spu_gimplify_va_arg_expr): Likewise.
10993 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10994 Likewise.
10995 (xstormy16_gimplify_va_arg_expr): Likewise.
10996 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10997 (xtensa_gimplify_va_arg_expr): Likewise.
10998
10999 2011-07-19 Richard Guenther <rguenther@suse.de>
11000
11001 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
11002 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
11003 handling.
11004
11005 PR middle-end/18908
11006 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
11007 result of BIT_*_EXPR to bitfield precision.
11008
11009 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
11010
11011 PR tree-optimization/49742
11012 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
11013 as a potential write.
11014
11015 2011-07-19 Richard Guenther <rguenther@suse.de>
11016
11017 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
11018 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
11019 (forward_propagate_comparison): Simplify, remove obsolete code.
11020
11021 2011-07-19 Richard Guenther <rguenther@suse.de>
11022
11023 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
11024 BIT_XOR_EXPR, same as the RTL expander does.
11025 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
11026 (verify_gimple_assign_unary): Likewise.
11027 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
11028 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
11029 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
11030
11031 2011-07-19 Jakub Jelinek <jakub@redhat.com>
11032
11033 PR tree-optimization/49768
11034 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
11035 if offset is smaller than bitoffset, but offset+size is bigger
11036 than bitoffset.
11037
11038 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
11039
11040 PR tree-optimization/49771
11041 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
11042 zero step, set segment length to the size of the data-ref's type.
11043
11044 2011-07-18 Martin Jambor <mjambor@suse.cz>
11045
11046 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
11047 comments.
11048 (ipcp_values_pool): Declare.
11049 (ipcp_sources_pool): Likewise.
11050 (ipcp_lattice): Changed to forward declaration.
11051 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
11052 cannot_devirtualize.
11053 (ipa_node_params): New fields descriptors, lattices, known_vals,
11054 clone_for_all_contexts and node dead, removed fields params and
11055 count_scale.
11056 (ipa_set_param_count): Removed.
11057 (ipa_get_param_count): Made to work with descriptors vector.
11058 (ipa_get_param): Updated.
11059 (ipa_param_cannot_devirtualize_p): Removed.
11060 (ipa_param_types_vec_empty): Likewise.
11061 (ipa_set_param_used): New function.
11062 (ipa_get_param_used): Updated to use descriptors vector.
11063 (ipa_func_list): Removed.
11064 (ipa_init_func_list): Removed declaration.
11065 (ipa_push_func_to_list_1): Likewise.
11066 (ipa_pop_func_from_list): Likewise.
11067 (ipa_push_func_to_list): Removed.
11068 (ipa_lattice_from_jfunc): Remove declaration.
11069 (ipa_get_jf_pass_through_result): Declare.
11070 (ipa_get_jf_ancestor_result): Likewise.
11071 (ipa_value_from_jfunc): Likewise.
11072 (ipa_get_lattice): Update.
11073 (ipa_lat_is_single_const): New function.
11074 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
11075 (ipa_init_func_list): Likewise.
11076 (ipa_pop_func_from_list): Likewise.
11077 (ipa_get_param_decl_index): Fix coding style.
11078 (count_formal_params): Removed.
11079 (count_formal_params_1): Renamed to count_formal_params.
11080 (ipa_populate_param_decls): Update to use descriptors vector.
11081 (ipa_initialize_node_params): Likewise.
11082 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
11083 (ipa_analyze_params_uses): Likewise.
11084 (ipa_free_node_params_substructures): Likewise and free also lattices
11085 and known values.
11086 (duplicate_array): Removed.
11087 (ipa_edge_duplication_hook): Add the new edge to the list of edge
11088 clones.
11089 (ipa_node_duplication_hook): Update to use new lattices.
11090 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
11091 (ipa_free_all_structures_after_iinln): Likewise.
11092 (ipa_write_node_info): Update to use new lattices.
11093 (ipa_read_node_info): Likewise.
11094 (ipa_get_jf_pass_through_result): New function.
11095 (ipa_get_jf_ancestor_result): Likewise.
11096 (ipa_value_from_jfunc): Likewise.
11097 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
11098 * ipa-cp.c: Reimplemented.
11099 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
11100 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
11101 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
11102 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
11103 * doc/invoke.texi (devirt-type-list-size): Removed description.
11104 (ipa-cp-value-list-size): Added description.
11105
11106 2011-07-18 Richard Henderson <rth@redhat.com>
11107
11108 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
11109 before calling create_basic_block.
11110
11111 2011-07-18 Jakub Jelinek <jakub@redhat.com>
11112
11113 PR middle-end/49675
11114 * tree.c (build_common_builtin_nodes): Register
11115 __builtin_return_address, __cyg_profile_func_enter
11116 and __cyg_profile_func_exit.
11117
11118 2011-07-18 Richard Henderson <rth@redhat.com>
11119
11120 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
11121 (add_labels_and_missing_jumps): ... here.
11122 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
11123
11124 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
11125
11126 PR target/47744
11127 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11128 of DImode hard registers in PLUS address chains.
11129
11130 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11131
11132 PR bootstrap/49769
11133 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
11134 (alpha*-*-freebsd*): Likewise.
11135 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11136 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11137 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
11138 crtprec80.o, crtfastmath.o to extra_parts for all targets.
11139 (ia64*-*-elf*): Remove extra_parts.
11140 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
11141 (sparc64-*-linux*): Likewise.
11142 (sparc64-*-freebsd*): Likewise.
11143
11144 Revert:
11145 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
11146 (ia64*-*-linux*): Likewise.
11147 (mips64*-*-linux*): Likewise.
11148 (mips*-*-linux*): Likewise.
11149
11150 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
11151
11152 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
11153
11154 2011-07-18 Richard Guenther <rguenther@suse.de>
11155
11156 * gimplify.c (gimplify_expr): Use input_location, not saved_location
11157 when building new trees.
11158
11159 2011-07-18 Richard Guenther <rguenther@suse.de>
11160
11161 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
11162 expansion result to bitfield precision if required.
11163
11164 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11165
11166 * config.gcc (i[3456x]86-*-netware*): Remove.
11167
11168 * gthr-nks.h: Remove.
11169 * configure.ac (enable_threads): Remove nks.
11170 * configure: Regenerate.
11171
11172 * config/i386/i386.c (ix86_encode_section_info): Remove netware
11173 reference.
11174 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
11175 <netware.h> reference.
11176
11177 * config/i386/netware-libgcc.c,
11178 gcc/config/i386/netware-libgcc.def,
11179 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
11180 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
11181 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
11182 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
11183
11184 * doc/extend.texi (Function Attributes,
11185 callee_pop_aggregate_return): Remove i?86-netware reference.
11186 * doc/install.texi (Configuration, --enable-threads): Remove nks.
11187
11188 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11189
11190 PR target/49746
11191 Revert:
11192 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11193
11194 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
11195 patterns.
11196
11197 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
11198
11199 PR middle-end/49732
11200 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
11201
11202 2011-07-16 Matthias Klose <doko@ubuntu.com>
11203
11204 * doc/install.texi: Document --enable-static-libjava.
11205
11206 2011-07-15 Richard Henderson <rth@redhat.com>
11207
11208 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11209 Replace all three arguments by returning a VEC of edges.
11210 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
11211 pointers and counts.
11212 (fix_edges_for_rarely_executed_code): Merge ...
11213 (rest_of_handle_partition_blocks): ... into...
11214 (partition_hot_cold_basic_blocks): ... here. Return todo items if
11215 any work was performed.
11216 (pass_partition_blocks): Clear todo_flags_finish.
11217
11218 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
11219 Jakub Jelinek <jakub@redhat.com>
11220 Jonathan Wakely <jwakely.gcc@gmail.com>
11221
11222 PR libstdc++/49745
11223 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
11224 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
11225
11226 2011-07-15 Jason Merrill <jason@redhat.com>
11227
11228 PR testsuite/49741
11229 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
11230 rather than --tool_opts.
11231
11232 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
11233
11234 * doc/plugins.texi (Building GCC plugins): gengtype needs its
11235 corresponding gtype.state.
11236
11237 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11238
11239 PR target/49723
11240 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
11241
11242 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
11243
11244 PR target/48220
11245 * doc/md.texi (Standard Names): Document window_save.
11246 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
11247 expand_debug_expr and expand_debug_source_expr. If the target has
11248 a window_save instruction, adjust the ENTRY_VALUE_EXP.
11249 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
11250 SSA_NAME_VAR is a parameter.
11251 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
11252 * var-tracking.c (parm_reg_t): New type and associated vector type.
11253 (windowed_parm_regs): New variable.
11254 (adjust_insn): If the target has a window_save instruction and this
11255 is the instruction, make its effect on parameter registers explicit.
11256 (next_non_note_insn_var_location): New function.
11257 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
11258 (vt_add_function_parameter): If the target has a window_save insn,
11259 adjust the incoming RTL and record that in windowed_parm_regs.
11260 (vt_finalize): Free windowed_parm_regs.
11261
11262 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
11263
11264 * doc/invoke.texi (C6X Options): New section.
11265 * doc/md.texi (TI C6X family): New section.
11266 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
11267 tic6x-*-uclinux.
11268 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
11269 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
11270 Provide C6X definitions.
11271 * config/c6x/c6x.md: New file.
11272 * config/c6x/constraints.md: New file.
11273 * config/c6x/predicates.md: New file.
11274 * config/c6x/c6x-sched.md.in: New file.
11275 * config/c6x/c6x-sched.md: New file.
11276 * config/c6x/gensched.sh: New file.
11277 * config/c6x/c6x-mult.md.in: New file.
11278 * config/c6x/genmult.sh: New file.
11279 * config/c6x/c6x-mult.md: New file.
11280 * config/c6x/sync.md: New file.
11281 * config/c6x/c6x-protos.h: New file.
11282 * config/c6x/sfp-machine.h: New file.
11283 * config/c6x/c6x.c: New file.
11284 * config/c6x/c6x.h: New file.
11285 * config/c6x/crti.s: New file.
11286 * config/c6x/crtn.s: New file.
11287 * config/c6x/lib1funcs.asm: New file.
11288 * config/c6x/c6x-modes.def: New file.
11289 * config/c6x/genopt.sh: New file.
11290 * config/c6x/c6x.opt: New file.
11291 * config/c6x/c6x-tables.opt: New file.
11292 * config/c6x/c6x-opts.h: New file.
11293 * config/c6x/c6x-isas.def: New file.
11294 * config/c6x/elf.h: New file.
11295 * config/c6x/elf-common.h: New file.
11296 * config/c6x/uclinux-elf.h: New file.
11297 * config/c6x/t-c6x: New file.
11298 * config/c6x/t-c6x-elf: New file.
11299 * config/c6x/t-c6x-uclinux: New file.
11300 * config/c6x/t-c6x-softfp: New file.
11301 * config/c6x/gtd.c: New file.
11302 * config/c6x/gtf.c: New file.
11303 * config/c6x/ltd.c: New file.
11304 * config/c6x/ltf.c: New file.
11305 * config/c6x/ged.c: New file.
11306 * config/c6x/gef.c: New file.
11307 * config/c6x/led.c: New file.
11308 * config/c6x/lef.c: New file.
11309 * config/c6x/eqd.c: New file.
11310 * config/c6x/eqf.c: New file.
11311 * config/c6x/libgcc-c6xeabi.ver: New file.
11312
11313 Revert
11314 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
11315 PR rtl-optimization/11320
11316 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
11317 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
11318 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
11319 current_sched_info->compute_jump_reg_dependencies. Record which
11320 registers are used and which registers are set by the jump.
11321 Clear deps->reg_conditional_sets after a barrier.
11322 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
11323 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
11324 (init_deps): Initialize reg_conditional_sets.
11325 (free_deps): Clear reg_conditional_sets.
11326 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
11327 Mark registers live on entry of the fallthrough block and conditionally
11328 set as set by the jump. Mark registers live on entry of non-fallthrough
11329 blocks as used by the jump.
11330 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
11331 Mark new parameters as unused.
11332
11333 2011-07-14 Andrew Pinski <pinskia@gmail.com>
11334
11335 PR tree-opt/49309
11336 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
11337 Use fold_build2_loc instead of build2.
11338 Use the correct type for the new tree.
11339
11340 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
11341
11342 PR rtl-optimization/11320
11343 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
11344 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
11345
11346 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
11347
11348 PR target/49487
11349 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
11350 of REG.
11351 (*rotw<mode>): Use const_int_operand for operand2.
11352 Use match_scatch for operand3.
11353 (*rotb<mode>): Ditto
11354 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
11355
11356 2011-07-14 Richard Guenther <rguenther@suse.de>
11357
11358 PR tree-optimization/49651
11359 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11360 handle dereferences with subvariables.
11361
11362 2011-07-14 Richard Guenther <rguenther@suse.de>
11363
11364 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
11365 (fold_stmt_1): Do it here directly on gimple and as a first thing.
11366
11367 2011-07-14 Richard Guenther <rguenther@suse.de>
11368
11369 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
11370 not bool_var when folding bool_var != 1 or bool_var == 0.
11371
11372 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
11373
11374 * haifa-sched.c (schedule_insns): Remove outdated comment.
11375 (schedule_block): When computing a known value for TODO_SPEC,
11376 just set it rather than using logical operations.
11377 (try_ready): Likewise. Use a local variable rather than a
11378 pointer to TODO_SPEC. Reorder an if statement to move the
11379 easy case to the then block.
11380 * sched-deps.c (dep_spec_p): New static function.
11381 (update_dep): Use it to decide whether to call
11382 change_spec_dep_to_hard.
11383 (get_back_and_forw_lists): Use it.
11384 (sd_resolve_dep): Likewise.
11385 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
11386 (haifa_note_mem_dep): Likewise.
11387 (check_dep): Likewise.
11388 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
11389 (sched_free_deps): Free in two passes.
11390
11391 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
11392
11393 PR middle-end/49736
11394 * expr.c (all_zeros_p): Undo bogus part of last change.
11395
11396 2011-07-14 Matthias Klose <doko@ubuntu.com>
11397
11398 * doc/extend.texi (optimize attribute): Fix typo.
11399
11400 2011-07-14 Richard Guenther <rguenther@suse.de>
11401
11402 * gimplify.c (gimplify_expr): Only do required conversions.
11403
11404 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
11405
11406 PR target/43746
11407 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
11408 i.e. use default_elf_select_section.
11409 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
11410 (READONLY_DATA_SECTION_ASM_OP): Remove.
11411 (TARGET_ASM_NAMED_SECTION): Move from here...
11412 * config/avr/avr.c: ...to here.
11413 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
11414 (avr_asm_named_section): Make static.
11415
11416 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11417
11418 PR bootstrap/49739
11419 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
11420 and crtfastmath.o for Linux/x86.
11421
11422 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
11423
11424 * haifa-sched.c: Include "hashtab.h"
11425 (sched_no_dce): New global variable.
11426 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
11427 SHADOW_P): New macros.
11428 (last_clock_var, cycle_issued_insns): Move declarations.
11429 (must_backtrack): New static variable.
11430 (struct delay_pair): New structure.
11431 (delay_htab, delay_htab_i2): New static variables.
11432 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
11433 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
11434 functions.
11435 (dep_cost_1): If delay pairs exist, try to look up the insns and
11436 use the correct pair delay if we find them.
11437 (rank-for_schedule): Tweak priority for insns that must be scheduled
11438 soon to avoid backtracking.
11439 (queue_insn): Detect conditions which force backtracking.
11440 (ready_add): Likewise.
11441 (struct sched_block_state): Add member shadows_only_p.
11442 (struct haifa_save_data): New structure.
11443 (backtrack_queue): New static variable.
11444 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
11445 unschedule_insns_until, restore_last_backtrack_point,
11446 free_topmost_backtrack_point, free_backtrack_queue,
11447 estimate_insn_tick, estimate_shadow_tick): New functions.
11448 (prune_ready_list): New arg shadows_only_p. All callers changed.
11449 If true, remove everything that isn't SHADOW_P. Look up delay
11450 pairs and estimate ticks to avoid scheduling the first insn too early.
11451 (verify_shadows): New function.
11452 (schedule_block): Add machinery to enable backtracking.
11453 (sched_init): Take sched_no_dce into account when setting
11454 DF_LR_RUN_DCE.
11455 (free_delay_pairs): New function.
11456 (init_h_i_d): Initialize INSN_EXACT_TICK.
11457 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
11458 * sched-deps.c (sd_unresolve_dep): New function.
11459 * sched-int. (struct haifa_sched_info): New fields save_state
11460 and restore_state.
11461 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
11462 feeds_backtrack_insn and shadow_p.
11463 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
11464 (sched_no_dce): Declare variable.
11465 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
11466 sd_unresolve_dep): Declare functions.
11467 * modulo-sched.c (sms_sched_info): Clear the two new fields.
11468 * sched-rgn.c (rgn_const_sched_info): Likewise.
11469 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11470 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
11471 (ebb_sched_info): Add them for the two new fields.
11472 (add_deps_for_risky_insns): Call add_delay_dependencies.
11473
11474 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11475
11476 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
11477 Rename -mr11.
11478 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
11479 (rs6000_call_indirect_aix): Ditto.
11480 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
11481 (call_indirect_aix<ptrsize>_internal): Ditto.
11482 (call_indirect_aix<ptrsize>_nor11): Ditto.
11483 (call_indirect_aix<ptrsize>_internal2): Ditto.
11484 (call_value_indirect_aix<ptrsize>): Ditto.
11485 (call_value_indirect_aix<ptrsize>_internal): Ditto.
11486 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11487 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11488 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
11489
11490 2011-07-13 Jason Merrill <jason@redhat.com>
11491
11492 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
11493
11494 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11495
11496 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
11497 * config/spu/spu.md ("clrsb<mode>2"): New expander.
11498
11499 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
11500
11501 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
11502 * configure: Regenerate.
11503
11504 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11505
11506 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
11507 (asm_file_start): Remove.
11508 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
11509 free_bb_for_insn around code that modifies insns before
11510 restarting df analysis.
11511
11512 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11513
11514 PR target/49541
11515 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
11516 (LINK_SPEC): ... here.
11517
11518 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
11519
11520 * haifa-sched.c (struct sched_block_state): New.
11521 (schedule_block): Move some local variables into such a structure.
11522
11523 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11524
11525 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
11526 * config/i386/t-crtpc: Remove.
11527 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
11528 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
11529 tmake_file.
11530 (x86_64-*-darwin*): Likewise.
11531 (i[34567]86-*-linux*): Likewise.
11532 (x86_64-*-linux*): Likewise.
11533
11534 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
11535 Handle -mpc32, -mpc64, -mpc80.
11536
11537 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11538
11539 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
11540 * config/alpha/t-crtfm: Remove.
11541 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
11542 * config/i386/t-crtfm: Remove.
11543 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
11544 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
11545 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
11546 * config/sparc/t-crtfm: Remove.
11547
11548 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
11549 (alpha*-*-freebsd*): Likewise.
11550 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
11551 (x86_64-*-darwin*): Likewise.
11552 (i[34567]86-*-linux*): Likewise.
11553 (x86_64-*-linux*): Likewise.
11554 (x86_64-*-mingw*): Likewise.
11555 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
11556 (ia64*-*-freebsd*): Likewise.
11557 (ia64*-*-linux*): Likewise.
11558 (mips64*-*-linux*): Likewise.
11559 (mips*-*-linux*): Likewise.
11560 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
11561 (sparc64-*-linux*): Likewise.
11562 (sparc64-*-freebsd*): Likewise.
11563
11564 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11565
11566 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
11567 * config/darwin-crt3.c: Move to ../libgcc/config.
11568 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
11569 ($(T)crt3$(objext)): Remove.
11570 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
11571 ($(T)crt2$(objext)): Remove.
11572 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
11573 (powerpc64-*-darwin*): Likewise.
11574
11575 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
11576
11577 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
11578
11579 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
11580 (addsi_1_zext): This.
11581
11582 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
11583
11584 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
11585 * doc/tm.texi: Regenerate.
11586 * target.def (mergeable_rodata_prefix): New defhookpod.
11587 * varasm.c (mergeable_string_section, mergeable_constant_section):
11588 Use it. Allocate name with alloca.
11589
11590 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
11591
11592 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
11593
11594 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11595
11596 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
11597 overlap check.
11598
11599 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11600
11601 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
11602 (count_type_elements): Delete.
11603 (complete_ctor_at_level_p): Declare.
11604 * expr.c (flexible_array_member_p): New function, split out from...
11605 (count_type_elements): ...here. Make static. Replace allow_flexarr
11606 parameter with for_ctor_p. When for_ctor_p is true, return the
11607 number of elements that should appear in the top-level constructor,
11608 otherwise return an estimate of the number of scalars.
11609 (categorize_ctor_elements): Replace p_must_clear with p_complete.
11610 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
11611 (complete_ctor_at_level_p): New function, borrowing union logic
11612 from old categorize_ctor_elements_1.
11613 (mostly_zeros_p): Return true if the constructor is not complete.
11614 (all_zeros_p): Update call to categorize_ctor_elements.
11615 * gimplify.c (gimplify_init_constructor): Update call to
11616 categorize_ctor_elements. Don't call count_type_elements.
11617 Unconditionally prevent clearing for variable-sized types,
11618 otherwise rely on categorize_ctor_elements to detect
11619 incomplete initializers.
11620
11621 2011-07-13 Richard Guenther <rguenther@suse.de>
11622
11623 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
11624 the final type is integral.
11625
11626 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
11627
11628 * sched-int.h (struct _dep): Add member cost.
11629 (DEP_COST, UNKNOWN_DEP_COST): New macros.
11630 * sched-deps.c (init_dep_1): Initialize DEP_COST.
11631 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
11632 (sched_change_pattern): Reset it for dependent insns.
11633
11634 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11635
11636 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
11637 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
11638 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
11639 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
11640 (CRT0_S, MCRT0_S): Remove.
11641 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
11642 Remove.
11643 (s-crt0): Remove.
11644 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
11645
11646 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
11647
11648 * cse.c (insert_with_costs): Put semi-colon after empty loop body
11649 on the next line.
11650 * emit-rtl.c (push_to_sequence): Likewise.
11651 * haifa-sched.c (max_issue): Likewise.
11652 * matrix-reorg.c (add_allocation_site): Likewise.
11653 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11654 * reload.c (alternative_allows_const_pool_ref): Likewise.
11655 * sched-rgn.c (rgn_add_block): Likewise.
11656 (rgn_fix_recovery_cfg): Likewise.
11657 * tree.c (attribute_list_contained): Likewise.
11658
11659 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
11660
11661 * config/i386/i386.c: Tidy processor feature bitmasks.
11662 (m_P4_NOCONA): New.
11663
11664 2011-07-12 Andrew Pinski <pinskia@gmail.com>
11665
11666 PR rtl-opt/49474
11667 * cprop.c (find_implicit_sets): Correct the condition.
11668
11669 2011-07-12 Richard Henderson <rth@redhat.com>
11670
11671 PR target/49713
11672 * dwarf2out.h (dwarf_frame_regnum): Remove.
11673 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
11674 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
11675 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
11676 (execute_dwarf2_frame): Initialize them.
11677 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
11678 users of the macros with the variables.
11679 (expand_builtin_dwarf_sp_column): Revert last change.
11680 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
11681 result of DWARF_FRAME_REGNUM into a local variable.
11682
11683 2011-07-12 Richard Henderson <rth@redhat.com>
11684
11685 PR target/49714
11686 * config/i386/i386.c (x86_output_mi_thunk): Use
11687 machopic_indirect_call_target instead of machopic_indirection_name
11688 directly.
11689
11690 2011-07-12 Laurent GUERBY <laurent@guerby.net>
11691 Eric Botcazou <ebotcazou@adacore.com>
11692
11693 * prefix.h: Wrap up in extern "C" block.
11694
11695 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
11696
11697 AMD bdver2 Enablement
11698 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
11699 (case ${target}): Add bdver2.
11700 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11701 -march=native recognize bdver2 processors.
11702 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11703 bdver2 def_and_undef
11704 * config/i386/i386.c (struct processor_costs bdver2_cost): New
11705 bdver2 cost table.
11706 (m_BDVER2): New definition.
11707 (m_AMD_MULTIPLE): Includes m_BDVER2.
11708 (initial_ix86_tune_features): Add bdver2 tuning.
11709 (processor_target_table): Add bdver2 entry.
11710 (static const char *const cpu_names): Add bdver2 entry.
11711 (ix86_option_override_internal): Add bdver2 instruction sets.
11712 (ix86_issue_rate): Add bdver2.
11713 (ix86_adjust_cost): Add bdver2.
11714 (has_dispatch): Add bdver2.
11715 * config/i386/i386.h (TARGET_BDVER2): New definition.
11716 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
11717 (enum processor_type): Add PROCESSOR_BDVER2.
11718 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
11719 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
11720 description.
11721
11722 2011-07-12 Richard Henderson <rth@redhat.com>
11723
11724 PR target/49714
11725 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
11726 destination address in memory on some paths.
11727
11728 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
11729
11730 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
11731 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
11732 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
11733 * function.c (locate_and_pad_parm): Take it into account.
11734 * target.def (function_arg_round_boundary): New hook.
11735 * targhooks.c (default_function_arg_round_boundary): New function.
11736 * targhooks.h (default_function_arg_round_boundary): Declare.
11737 * doc/tm.texi: Regenerate.
11738
11739 2011-07-12 Richard Guenther <rguenther@suse.de>
11740
11741 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
11742 Do not perform no-op changes.
11743
11744 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
11745
11746 * config/arm/predicates.md (neon_struct_operand): Make a normal
11747 predicate.
11748 (neon_struct_or_register_operand): New predicate.
11749 * config/arm/neon.md (movmisalign<mode>): Replace predicates
11750 with neon_struct_or_register_operand.
11751 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
11752 neon_struct_operand instead of memory_operand.
11753
11754 2011-07-12 Martin Jambor <mjambor@suse.cz>
11755
11756 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
11757 * cgraph.c (cgraph_get_node_or_alias): Removed.
11758 (change_decl_assembler_name): Changed all calls to
11759 cgraph_get_node_or_alias to a call to cgraph_get_node.
11760 (cgraph_make_decl_local): Likewise.
11761 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
11762 * varasm.c (default_binds_local_p_1): Likewise.
11763 (decl_binds_to_current_def_p): Likewise.
11764
11765 2011-07-12 Jakub Jelinek <jakub@redhat.com>
11766
11767 PR tree-optimization/49712
11768 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
11769
11770 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
11771
11772 * genautomata.c (add_arc): Return void. All callers changed.
11773 (make_automaton): Remove dead code.
11774
11775 2011-07-11 Richard Henderson <rth@redhat.com>
11776
11777 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
11778 (DW_FRAME_POINTER_REGNUM): New.
11779 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
11780 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
11781 (dwf_regno): New.
11782 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
11783 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
11784 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
11785 Use it.
11786 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
11787 * dwarf2out.h (dwarf_frame_regnum): New.
11788 (struct cfa_loc): Document the domain of the reg member.
11789
11790 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
11791
11792 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
11793 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
11794
11795 2011-07-11 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR debug/49676
11798 * dwarf2out.c (int_shift_loc_descriptor): New function.
11799 (int_loc_descriptor): If shorter, emit i as
11800 (i >> shift), shift, DW_OP_shl for suitable shift value.
11801 Similarly, try to optimize large negative values using
11802 DW_OP_neg of a positive value if shorter.
11803 (size_of_int_shift_loc_descriptor): New function.
11804 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
11805 changes.
11806 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
11807 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
11808 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
11809 is shorter.
11810 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
11811 addend as added DW_OP_plus if it is shorter.
11812
11813 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11814
11815 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11816 (DTORS_SECTION_ASM_OP): Define.
11817
11818 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11819
11820 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11821 * config/t-dfprules: Move to ../libgcc/config.
11822 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11823 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11824 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11825 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11826 Likewise.
11827 (i[34567]86-*-cygwin*): Likewise.
11828 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
11829 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11830 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11831 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11832 D64PBIT_FUNCS, D128PBIT_FUNCS.
11833
11834 2011-07-11 Richard Guenther <rguenther@suse.de>
11835
11836 * tree-vrp.c (simplify_conversion_using_ranges): Manually
11837 translate the source value-range through the conversion chain.
11838
11839 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
11840
11841 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11842
11843 2011-07-11 Arthur Loiret <aloiret@debian.org>
11844
11845 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11846 a bi-arch compiler defaulting to 31-bit. In this case:
11847 (tmake_file): Add s390/t-linux64.
11848 * doc/install.texi: Add s390-linux to the list of targets supporting
11849 --enable-targets=all.
11850
11851 2011-07-11 Arthur Loiret <aloiret@debian.org>
11852 Matthias Klose <doko@debian.org>
11853
11854 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11855 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11856 (tm_file): Add mips/linux64.h.
11857 (tmake_file): Add mips/t-linux64.
11858 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11859 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11860 instead of hardcoded mabi=n32.
11861 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11862 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11863 convention.
11864
11865 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11866
11867 * passes.c (init_optimization_passes): Add invariant motion pass
11868 after induction variable optimization.
11869
11870 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
11871
11872 PR target/39633
11873 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11874 offsets 1..5 set cc0 in a usable way.
11875
11876 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
11877
11878 * tree.h (call_expr_arg): Remove.
11879 (call_expr_argp): Likewise.
11880
11881 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
11882
11883 * config/sparc/sparc.md (save_register_window_1): Rename to...
11884 (window_save): ...this.
11885 * config/sparc/sparc.c (emit_save_register_window): Rename to...
11886 (emit_window_save): ...this.
11887 (sparc_expand_prologue): Adjust to above renaming.
11888
11889 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
11890
11891 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11892 of movabs for x32.
11893
11894 2011-07-10 Richard Henderson <rth@redhat.com>
11895
11896 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11897 run final, instead of emitting text directly.
11898
11899 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
11900
11901 * config/i386/i386.c (ix86_option_override_internal): Turn on
11902 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
11903 small PIC models for TARGET_X32.
11904
11905 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
11906
11907 PR target/49684
11908 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11909 $(LIBGCC2_CFLAGS).
11910
11911 PR bootstrap/49680
11912 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11913 stray notes and debug insns by using prev_nonnote_nondebug_insn
11914 instead of PREV_INSN.
11915
11916 2011-07-09 Richard Henderson <rth@redhat.com>
11917
11918 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11919 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11920 * dwarf2out.c: ... here.
11921 (output_all_cfis): Remove.
11922 (dwarf2out_switch_text_section): Use output_cfis directly.
11923 (size_of_locs): Export.
11924 (output_loc_sequence, output_loc_sequence_raw): Export.
11925 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11926 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11927 output_cfa_loc_raw): Move to ...
11928 * dwarfcfi.c: ... here.
11929 * dwarf2out.h: Update decls.
11930
11931 2011-07-09 Richard Henderson <rth@redhat.com>
11932
11933 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11934 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11935 * dwarf2cfi.c: ... here.
11936 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11937 (DWARF_ROUND, DWARF_CIE_ID): Remove.
11938 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11939 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11940 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11941
11942 2011-07-09 Richard Henderson <rth@redhat.com>
11943
11944 * dwarf2cfi.c (cie_return_save): New.
11945 (queue_reg_save): Use compare_reg_or_pc.
11946 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11947 (dwarf2out_frame_debug_expr): Likewise.
11948 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11949 (initial_return_save): Likewise.
11950 (execute_dwarf2_frame): Save and restore initial return save from
11951 the cie to the fde.
11952 * config/mips/mips.c (mips_frame_set): Remove special case for
11953 DWARF_FRAME_RETURN_COLUMN.
11954
11955 2011-07-09 Richard Henderson <rth@redhat.com>
11956
11957 * dwarf2cfi.c (lookup_cfa): Remove.
11958 (execute_dwarf2_frame): Assert queues are empty on entry.
11959 Setup initial cfa directly, not via lookup_cfa.
11960 Don't clear args_size state here.
11961
11962 2011-07-09 Richard Henderson <rth@redhat.com>
11963
11964 * dwarf2cfi.c (add_cfi_vec): New.
11965 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
11966 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
11967 (execute_dwarf2_frame): Set add_cfi_vec.
11968
11969 2011-07-09 Richard Henderson <rth@redhat.com>
11970
11971 * defaults.h (ASM_COMMENT_START): Move here...
11972 * dwarf2asm.c: ... from here.
11973 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11974 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11975 * varasm.c: Likewise.
11976
11977 2011-07-09 Richard Henderson <rth@redhat.com>
11978
11979 PR debug/49686
11980 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11981 (create_cfi_notes): ... do it here instead.
11982
11983 2011-07-09 Jakub Jelinek <jakub@redhat.com>
11984
11985 PR debug/49676
11986 * dwarf2out.c (size_of_int_loc_descriptor): New function.
11987 (address_of_int_loc_descriptor): Use it.
11988 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11989
11990 2011-07-09 Richard Henderson <rth@redhat.com>
11991
11992 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11993 (prologue, epilogue): New.
11994 (return, *rts): New.
11995 (blockage, setd, seti): New.
11996 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11997 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11998 (pdp11_saved_regno): New.
11999 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
12000 generate rtl instead of text.
12001 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
12002 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
12003 * config/pdp11/pdp11-protos.h: Update.
12004
12005 2011-07-09 Richard Henderson <rth@redhat.com>
12006
12007 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
12008 try to insert an rtl prologue here.
12009 (rs6000_output_function_epilogue): Similarly.
12010 * config/rs6000/rs6000.md (prologue): Emit a barrier to
12011 satisfy !TARGET_SCHED_PROLOG.
12012 (epilogue, sibcall_epilogue): Likewise.
12013
12014 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
12015
12016 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
12017 (FP_REG_P): Delete.
12018 (IN_OR_GLOBAL_P): Likewise.
12019
12020 2011-07-08 Jason Merrill <jason@redhat.com>
12021
12022 PR c++/45437
12023 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
12024 compound assignment.
12025
12026 * cgraph.c (cgraph_add_to_same_comdat_group): New.
12027 * cgraph.h: Declare it.
12028 * ipa.c (function_and_variable_visibility): Make sure thunks
12029 have the right visibility.
12030
12031 2011-07-08 Richard Henderson <rth@redhat.com>
12032
12033 PR bootstrap/49680
12034 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
12035 any tablejump vector.
12036
12037 PR bootstrap/49680
12038 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
12039 end of the prologue.
12040
12041 2011-07-08 Jakub Jelinek <jakub@redhat.com>
12042
12043 PR target/49621
12044 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
12045 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
12046 * config/rs6000/vector.md (vector_select_<mode>,
12047 vector_select_<mode>_uns): Change second operand of NE to
12048 CONST0_RTX (<MODE>mode) instead of const0_rtx.
12049 * config/rs6000/altivec.md (*altivec_vsel<mode>,
12050 *altivec_vsel<mode>_uns): Expect second operand of NE to be
12051 zero_constant of the corresponding vector mode.
12052 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
12053 Likewise.
12054
12055 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
12056
12057 * graphite-dependences.c (build_alias_set_powerset): Remove
12058 continue from loop, add one more assert.
12059
12060 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
12061
12062 PR target/46779
12063 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
12064 In particular, allow 8-bit values in r28 and r29.
12065 (avr_hard_regno_scratch_ok): Disallow any register that might be
12066 part of the frame pointer.
12067 (avr_hard_regno_rename_ok): Same.
12068 (avr_legitimate_address_p): Don't allow SUBREGs.
12069
12070 2011-07-08 Julian Brown <julian@codesourcery.com>
12071
12072 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
12073 big-endian mode.
12074 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
12075 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
12076 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
12077 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
12078 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
12079 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
12080 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
12081 registers in big-endian mode.
12082
12083 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
12084
12085 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
12086 in terms of another.
12087 (write_attr_value): Write a cast if necessary.
12088
12089 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
12090 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
12091 (REG_WORDS_BIG_ENDIAN): Document.
12092 * doc/tm.texi: Regenerate.
12093 * reload.c (operands_match_p): Take it into account.
12094 (reload_adjust_reg_for_mode): Likewise.
12095 * rtlanal.c (subreg_get_info): Likewise.
12096
12097 2011-07-08 Richard Guenther <rguenther@suse.de>
12098
12099 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
12100 folding.
12101
12102 2011-07-08 Kai Tietz <ktietz@redhat.com>
12103
12104 * fold-const.c (fold_truth_andor): Factored out truth_andor
12105 label from fold_binary as function.
12106 (fold_binary_loc): Replace truth_andor lable
12107 by function fold_truth_andor.
12108
12109 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
12110
12111 PR middle-end/49519
12112 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
12113 check if address is stored in register. If so - give up.
12114 (check_sibcall_argument_overlap_1): Do not perform check of
12115 overlapping when it is call to address.
12116
12117 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
12118
12119 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
12120 of magic '31'.
12121
12122 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
12123
12124 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
12125 GET_MODE_BITSIZE where appropriate.
12126 (widen_leading, expand_parity, expand_ctz, expand_ffs,
12127 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
12128 expand_float, expand_fix): Likewise.
12129 * expr.c (convert_move, convert_modes, expand_expr_real_2,
12130 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12131 * stor-layout.c (get_mode_bounds): Likewise.
12132 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
12133 Likewise.
12134 * convert.c (convert_to_integer): Likewise.
12135 * expmed.c (expand_shift_1): Likewise.
12136
12137 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
12138 a bitsize.
12139
12140 * optabs.c (expand_binop): Tighten conditions for doubleword
12141 expansions.
12142 (widen_bswap): Assert that mode bitsize and precision are the same.
12143 * stor-layout.c (get_best_mode): Skip modes that have lower
12144 precision than bitsize.
12145 * recog.c (simplify_while_replacing): Assert that bitsize and
12146 precision are the same.
12147
12148 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12149
12150 * Makefile.in (LIBGCOV): Remove.
12151 (libgcc.mvars): Remove LIBGCOV.
12152 * libgov.c: Move to ../libgcc.
12153
12154 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12155
12156 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
12157
12158 2011-07-08 Martin Jambor <mjambor@suse.cz>
12159
12160 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
12161 is too big for total scalarization.
12162
12163 2011-07-07 Richard Henderson <rth@redhat.com>
12164
12165 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
12166 (DBX_DEBUGGING_INFO): Undef.
12167
12168 2011-07-07 Richard Henderson <rth@redhat.com>
12169
12170 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
12171 Handle some opcodes specially for debugging.
12172 * print-rtl.c: Include dwarf2out.h
12173 (print_rtx): Handle NOTE_INSN_CFI.
12174 * Makefile.in (print-rtl.o): Update.
12175
12176 2011-07-07 Richard Henderson <rth@redhat.com>
12177
12178 * tree-pass.h (pass_dwarf2_frame): Declare.
12179 * passes.c (init_optimization_passes): Add it.
12180 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
12181 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
12182 make static, do not call add_cfis_to_fde.
12183 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
12184 dwarf2out_frame_init): Merge into...
12185 (execute_dwarf2_frame): ... here. New function.
12186 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
12187 saved_do_cfi_asm to a tri-state variable.
12188 (gate_dwarf2_frame, pass_dwarf2_frame): New.
12189 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
12190 if it has yet to be done. Don't call dwarf2cfi_function_init.
12191 * dwarf2out.h, debug.h: Update decls.
12192 * final.c (final_start_function): Don't call
12193 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
12194 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
12195 * toplev.c (lang_dependent_init): Likewise.
12196
12197 2011-07-07 Richard Henderson <rth@redhat.com>
12198
12199 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
12200 FDE_TABLE_INCREMENT): Replace with...
12201 (fde_vec): ... this, a new vector.
12202 (current_fde): Remove. Replace all users with cfun->fde.
12203 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
12204 (size_of_aranges, dwarf2out_finish): Likewise.
12205 (dwarf2out_alloc_current_fde): Break out from ...
12206 (dwarf2out_begin_prologue): ... here.
12207 (dwarf2out_frame_init): Remove.
12208 * dwarf2cfi.c: Update all users of current_fde.
12209 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
12210 * dwarf2out.h: Update decls.
12211 (dw_fde_node): Add fde_index member.
12212 * function.h (struct function): Add fde member.
12213
12214 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
12215 Richard Henderson <rth@redhat.com>
12216
12217 * dwarf2cfi.c (add_cfi): Remove.
12218 (dwarf2out_cfi_label): Remove force argument. Only generate the
12219 label name.
12220 (add_fde_cfi): Simplify the different code paths.
12221 (add_cie_cfi): New.
12222 (old_cfa, old_cfa_remember): New.
12223 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
12224 (last_reg_save_label): Remove.
12225 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
12226 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
12227 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
12228 dwarf2out_frame_debug_cfa_expression,
12229 dwarf2out_frame_debug_cfa_restore,
12230 dwarf2out_frame_debug_cfa_window_save,
12231 dwarf2out_frame_debug_expr): Remove label parameter.
12232 (cfi_label_required_p, add_cfis_to_fde): New.
12233 (dwarf2out_frame_debug_after_prologue): New.
12234 (dwarf2cfi_frame_init): Initialize old_cfa.
12235 (dwarf2out_frame_debug_restore_state): Likewise.
12236 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
12237 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
12238 * final.c (final_start_function): Call
12239 dwarf2out_frame_debug_after_prologue.
12240
12241 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
12242 Richard Henderson <rth@redhat.com>
12243
12244 * dwarf2cfi.c (cfi_insn): New.
12245 (dwarf2out_cfi_label): Don't emit cfi label here.
12246 (add_fde_cfi): Create a NOTE_INSN_CFI.
12247 (dwarf2out_frame_debug): Setup cfi_insn.
12248 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
12249 (dwarf2out_cfi_begin_epilogue): Make static.
12250 (dwarf2out_frame_debug_restore_state): Make static.
12251 * dwarf2out.c (output_cfi_directive): Make static.
12252 (dwarf2out_emit_cfi): New.
12253 * dwarf2out.h: Update.
12254 * final.c (final): Remove CFI notes.
12255 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
12256 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
12257 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
12258 * insn-notes.def (NOTE_INSN_CFI): New.
12259 (NOTE_INSN_CFI_LABEL): New.
12260 * rtl.h (union rtunion_def): Add rt_cfi member.
12261 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
12262
12263 2011-07-07 Richard Henderson <rth@redhat.com>
12264
12265 * dwarf2cfi.c: New file.
12266 * Makefile.in (OBJS): Add it.
12267 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
12268 * gengtype.c (open_base_files): Include dwarf2out.h.
12269 * coretypes.h (enum var_init_status): Move from ...
12270 * rtl.h: ... here.
12271 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
12272 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
12273 expand_builtin_dwarf_sp_column, init_return_column_size,
12274 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
12275 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
12276 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
12277 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
12278 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
12279 compute_barrier_args_size, dwarf2out_args_size,
12280 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
12281 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
12282 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
12283 queue_reg_save, dwarf2out_flush_queued_reg_saves,
12284 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
12285 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
12286 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
12287 dwarf2out_frame_debug_cfa_expression,
12288 dwarf2out_frame_debug_cfa_restore,
12289 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
12290 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
12291 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
12292 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
12293 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
12294 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
12295 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
12296 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
12297 dw_loc_descr_node): Move to dwarf2out.h.
12298 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
12299 mem_loc_descriptor): Export.
12300 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
12301 (dwarf2out_frame_init): Extract CIE generation code to
12302 dwarf2cfi_frame_init.
12303
12304 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
12305
12306 PR target/49660
12307 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
12308 MASK_V8PLUS, remove commented out flag and reorder.
12309
12310 2011-07-07 Jakub Jelinek <jakub@redhat.com>
12311
12312 PR c/49644
12313 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
12314 one non-complex and one complex argument, call c_save_expr on both
12315 operands.
12316
12317 2011-07-07 Martin Jambor <mjambor@suse.cz>
12318
12319 PR middle-end/49495
12320 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
12321 (verify_cgraph_node): Some functinality moved to
12322 verify_edge_corresponds_to_fndecl, call it.
12323
12324 2011-07-07 Joseph Myers <joseph@codesourcery.com>
12325
12326 * config.gcc (*local*): Remove.
12327 * doc/install-old.texi: Don't mention local configurations.
12328
12329 2011-07-07 Jakub Jelinek <jakub@redhat.com>
12330
12331 PR debug/49522
12332 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
12333 referencing debug insns that have been reset.
12334 (dead_debug_insert_before): Don't assert reg is non-NULL,
12335 instead return immediately if it is NULL.
12336
12337 2011-07-07 Joseph Myers <joseph@codesourcery.com>
12338
12339 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
12340
12341 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
12342
12343 * hw-doloop.c: New file.
12344 * hw-doloop.h: New file.
12345 * Makefile.in (OBJS): Add hw-doloop.o.
12346 (hw-doloop.o): New rule.
12347 ($(obj_out_file)): Add hw-doloop.h dependency.
12348 * config/bfin/bfin.c: Include "hw-doloop.h".
12349 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
12350 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
12351 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
12352 type changed to hwloop_info. Return bool, true if the loop was
12353 successfully optimized. Remove code that was moved to
12354 hw-doloop.c, and adjust other parts.
12355 (hwloop_fail): New static function, containing parts that used
12356 to be in bfin_optimize_loop.
12357 (bfin_discover_loop, bfin_discover_loops, free_loops,
12358 bfin_reorder_loops): Remove.
12359 (hwloop_pattern_reg): New static function.
12360 (bfin_doloop_hooks): New variable.
12361 (bfin_reorg_loops): Remove most code, call reorg_loops.
12362 * config/bfin/bfin.md (doloop_end splitter): Also enable if
12363 loop counter is a memory_operand.
12364
12365 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
12366
12367 * config.gcc: Support --with-multilib-list for x86 Linux targets.
12368
12369 * configure.ac: Mention x86-64 for --with-multilib-list.
12370 * configure: Regenerated.
12371
12372 * config/i386/gnu-user64.h (SPEC_64): Support x32.
12373 (SPEC_32): Likewise.
12374 (ASM_SPEC): Likewise.
12375 (LINK_SPEC): Likewise.
12376 (TARGET_THREAD_SSP_OFFSET): Likewise.
12377 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
12378 (SPEC_X32): New.
12379
12380 * config/i386/i386.h (TARGET_X32): New.
12381 (TARGET_LP64): New.
12382 (LONG_TYPE_SIZE): Likewise.
12383 (POINTER_SIZE): Likewise.
12384 (POINTERS_EXTEND_UNSIGNED): Likewise.
12385 (OPT_ARCH64): Support x32.
12386 (OPT_ARCH32): Likewise.
12387
12388 * config/i386/i386.opt (mx32): New.
12389
12390 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
12391 (GLIBC_DYNAMIC_LINKERX32): Likewise.
12392 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
12393 (GLIBC_DYNAMIC_LINKERX32): Likewise.
12394
12395 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
12396 (BIONIC_DYNAMIC_LINKERX32): Likewise.
12397 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
12398
12399 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
12400
12401 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
12402
12403 * doc/invoke.texi: Document -mx32.
12404
12405 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
12406
12407 * doc/invoke.texi (mwords-little-endian): Deprecate.
12408 * config/arm/arm.opt (mwords-little-endian): Likewise.
12409 * config/arm/arm.c (arm_option_override): Warn about the deprecation
12410 of -mwords-little-endian.
12411
12412 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
12413
12414 * reload1.c (choose_reload_regs): Use mode sizes to check whether
12415 an old reload register completely defines the required value.
12416
12417 2011-07-07 Richard Guenther <rguenther@suse.de>
12418
12419 * fold-const.c (fold_unary_loc): Do not strip sign-changes
12420 for NEGATE_EXPR.
12421
12422 2011-07-07 Richard Guenther <rguenther@suse.de>
12423
12424 * tree-vrp.c (simplify_conversion_using_ranges): New function.
12425 (simplify_stmt_using_ranges): Call it.
12426
12427 2011-07-07 Kai Tietz <ktietz@redhat.com>
12428
12429 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
12430 (lookup_logical_inverted_value): Likewise.
12431 (simplify_bitwise_binary_1): Likewise.
12432 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
12433
12434 2011-07-07 Joseph Myers <joseph@codesourcery.com>
12435
12436 * gcc.c (%[Spec]): Don't document.
12437 (struct spec_list): Update comment.
12438 (do_spec_1): Don't handle %[Spec].
12439 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
12440
12441 2011-07-07 Joseph Myers <joseph@codesourcery.com>
12442
12443 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
12444 default based on TARGET_ASM_NAMED_SECTION.
12445 * common/common-target.def (have_named_sections): Default to true.
12446 * common/config/default-common.c: Don't include tm.h.
12447 * common/config/picochip/picochip-common.c
12448 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
12449 * common/config/m32c/m32c-common.c: Remove.
12450 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
12451 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
12452 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
12453 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
12454 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
12455 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
12456 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
12457
12458 2011-07-07 Jakub Jelinek <jakub@redhat.com>
12459
12460 PR middle-end/49640
12461 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
12462 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
12463
12464 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12465
12466 PR libmudflap/49550
12467 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
12468
12469 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12470
12471 PR target/39150
12472 * configure.ac (gcc_cv_as_hidden): Also accept
12473 x86_64-*-solaris2.1[0-9]*.
12474 (gcc_cv_as_cfi_directive): Likewise.
12475 (gcc_cv_as_comdat_group_group): Likewise.
12476 (set_have_as_tls): Likewise.
12477 * configure: Regenerate.
12478 * config.gcc (i[34567]86-*-solaris2*): Also handle
12479 x86_64-*-solaris2.1[0-9]*.
12480 * config.host (i[34567]86-*-solaris2*): Likewise.
12481 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
12482 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
12483 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
12484 (TARGET_LD_EMULATION): Use it.
12485 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
12486 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
12487 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
12488 (ASM_CPU64_DEFAULT_SPEC): Define.
12489 (ASM_CPU_SPEC): Use %(asm_cpu_default).
12490 (ASM_SPEC): Redefine.
12491 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
12492 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
12493 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
12494 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
12495 configuration.
12496 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
12497
12498 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12499
12500 * config/sol2.h (ASM_SPEC): Split into ...
12501 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
12502 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
12503 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
12504 (ASM_SPEC): Use ASM_SPEC_BASE.
12505 * config/sparc/sol2.h (ASM_SPEC): Redefine.
12506
12507 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
12508
12509 * config/avr/avr.md (*reload_insi): Change predicate #1 to
12510 const_int_operand. Ditto for peep2 producing this insn.
12511 Add argument to output_reload_insisf call.
12512 (*movsi,*movsf): Add argument to output_movsisf call.
12513 (*reload_insf): New insn and new peep2 to produce it.
12514 * config/avr/avr-protos.h (output_movsisf): Change prototype.
12515 (output_reload_insisf): Change prototype.
12516 * config/avr/avr.c (avr_asm_len): New function.
12517 (output_reload_insisf): Rewrite.
12518 (output_movsisf): Change prototype. output_reload_insisf for
12519 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
12520 (adjust_insn_length): Add argument to output_movsisf and
12521 output_reload_insisf call.
12522
12523 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
12524
12525 * emit-rtl.c (paradoxical_subreg_p): New function.
12526 * rtl.h (paradoxical_subreg_p): Declare.
12527 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
12528 apply_distributive_law, simplify_comparison, simplify_set): Use it.
12529 * cse.c (record_jump_cond, cse_insn): Likewise.
12530 * expr.c (force_operand): Likewise.
12531 * rtlanal.c (num_sign_bit_copies1): Likewise.
12532 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
12533 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
12534 (push_reload): Use precision to check for paradoxical subregs.
12535 * expmed.c (extract_bit_field_1): Likewise.
12536
12537 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
12538 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
12539 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
12540 simplify_set, simplify_logical, expand_compound_operation,
12541 make_extraction, force_to_mode, if_then_else_cond, extended_count,
12542 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
12543 record_value_for_reg): Likewise.
12544 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
12545 * simplify-rtx. c (simplify_unary_operation_1,
12546 simplify_binary_operation_1, simplify_const_relational_operation):
12547 Likewise.
12548
12549 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
12550 instead of GET_MODE_BITSIZE where appropriate.
12551 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
12552 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
12553 init_num_sign_bit_copies_in_rep): Likewise.
12554 * cse.c (fold_rtx, cse_insn): Likewise.
12555 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
12556 * simplify-rtx.c (simplify_unary_operation_1,
12557 simplify_const_unary_operation, simplify_binary_operation_1,
12558 simplify_const_binary_operation, simplify_ternary_operation,
12559 simplify_const_relational_operation, simplify_subreg): Likewise.
12560 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
12561 simplify_if_then_else, simplify_set, expand_compound_operation,
12562 expand_field_assignment, make_extraction, if_then_else_cond,
12563 make_compound_operation, force_to_mode, make_field_assignment,
12564 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
12565 extended_count, try_widen_shift_mode, simplify_shift_const_1,
12566 simplify_comparison, record_promoted_value, simplify_compare_const,
12567 record_dead_and_set_regs_1): Likewise.
12568
12569 Revert:
12570 * simplify-rtx.c (simplify_const_binary_operation): Use the
12571 shift_truncation_mask hook instead of performing modulo by width.
12572 Compare against mode precision, not bitsize.
12573 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12574 Use shift_truncation_mask instead of constructing the value manually.
12575
12576 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12577
12578 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
12579 declaration.
12580 (rs6000_save_toc_in_prologue_p): Ditto.
12581
12582 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
12583 up the static chain (r11) during indirect function calls.
12584 (-msave-toc-indirect): New undocumented debug switch.
12585
12586 * config/rs6000/rs6000.c (struct machine_function): Add
12587 save_toc_in_prologue field to note whether the prologue needs to
12588 save the TOC value in the reserved stack location.
12589 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
12590 to save the TOC in the prologue, do so.
12591 (rs6000_trampoline_init): Don't allow creating AIX style
12592 trampolines if -mno-r11 is in effect.
12593 (rs6000_call_indirect_aix): New function to create AIX style
12594 indirect calls, adding support for -mno-r11 to suppress loading
12595 the static chain, and saving the TOC in the prologue instead of
12596 the call body.
12597 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
12598 TOC in the prologue.
12599
12600 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
12601 register numbers.
12602 (TOC_REGNUM): Ditto.
12603 (STATIC_CHAIN_REGNUM): Ditto.
12604 (ARG_POINTER_REGNUM): Ditto.
12605 (SFP_REGNO): Delete, unused.
12606 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
12607 function descriptor offsets.
12608 (TOC_SAVE_OFFSET_64BIT): Ditto.
12609 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
12610 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
12611 (AIX_FUNC_DESC_SC_32BIT): Ditto.
12612 (AIX_FUNC_DESC_SC_64BIT): Ditto.
12613 (ptrload): New mode attribute for the appropriate load of a pointer.
12614 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
12615 (call_indirect_aix64): Ditto.
12616 (call_value_indirect_aix32): Ditto.
12617 (call_value_indirect_aix64): Ditto.
12618 (call_indirect_nonlocal_aix32_internal): Ditto.
12619 (call_indirect_nonlocal_aix32): Ditto.
12620 (call_indirect_nonlocal_aix64_internal): Ditto.
12621 (call_indirect_nonlocal_aix64): Ditto.
12622 (call): Rewrite AIX indirect function calls. Add support for
12623 eliminating the static chain, and for moving the save of the TOC
12624 to the function prologue.
12625 (call_value): Ditto.
12626 (call_indirect_aix<ptrsize>): Ditto.
12627 (call_indirect_aix<ptrsize>_internal): Ditto.
12628 (call_indirect_aix<ptrsize>_internal2): Ditto.
12629 (call_indirect_aix<ptrsize>_nor11): Ditto.
12630 (call_value_indirect_aix<ptrsize>): Ditto.
12631 (call_value_indirect_aix<ptrsize>_internal): Ditto.
12632 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12633 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12634 (call_nonlocal_aix32): Relocate in the rs6000.md file.
12635 (call_nonlocal_aix64): Ditto.
12636
12637 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
12638 -mno-r11 documentation.
12639
12640 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12641
12642 PR other/49658
12643 * doc/extend.texi (Compound Literals): Fix typo.
12644
12645 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
12646
12647 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
12648
12649 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
12650
12651 * configure.ac (plugin-version.h): Generate
12652 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
12653 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
12654 macros.
12655
12656 * configure: Regenerate.
12657
12658 * doc/plugins.texi (Building GCC plugins): Mention
12659 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
12660
12661 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12662
12663 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
12664 * combine.c (make_extraction, gen_lowpart_or_truncate,
12665 apply_distributive_law, simplify_comparison,
12666 reg_truncated_to_mode, record_truncated_value): Use it.
12667 * cse.c (notreg_cost): Likewise.
12668 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12669 * expr.c (convert_move, convert_modes): Likewise.
12670 * optabs.c (expand_binop, expand_unop): Likewise.
12671 * postreload.c (move2add_last_label): Likewise.
12672 * regmove.c (optimize_reg_copy_3): Likewise.
12673 * rtlhooks.c (gen_lowpart_general): Likewise.
12674 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12675
12676 2011-07-06 Joseph Myers <joseph@codesourcery.com>
12677
12678 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
12679
12680 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12681
12682 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
12683 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
12684 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
12685 (simplify_const_unary_operation, simplify_binary_operation_1,
12686 simplify_const_binary_operation, simplify_const_relational_operation):
12687 Use them. Use GET_MODE_MASK for masking and sign-extensions.
12688 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
12689 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
12690 simplify_shift_const_1, simplify_comparison): Likewise.
12691 * expr.c (convert_modes): Likewise.
12692 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
12693 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
12694 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
12695
12696 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
12697
12698 2011-07-06 Richard Guenther <rguenther@suse.de>
12699
12700 PR tree-optimization/49645
12701 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
12702 register variables.
12703 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
12704 in type qualification here ...
12705 (copy_reference_ops_from_ref): ... not here.
12706 (vn_reference_lookup_3): ... or here.
12707 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
12708 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
12709
12710 2011-07-06 Ian Lance Taylor <iant@google.com>
12711
12712 * doc/install.texi (Configuration): It's
12713 --enable-gnu-indirect-function, not --enable-indirect-function.
12714
12715 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12716
12717 * simplify-rtx.c (simplify_const_binary_operation): Use the
12718 shift_truncation_mask hook instead of performing modulo by width.
12719 Compare against mode precision, not bitsize.
12720 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12721 Use shift_truncation_mask instead of constructing the value manually.
12722
12723 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
12724
12725 PR middle-end/47383
12726 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
12727 address computation and convert to address_mode if needed.
12728
12729 2011-07-06 Richard Guenther <rguenther@suse.de>
12730
12731 * tree.c (build_common_tree_nodes_2): Merge with
12732 build_common_tree_nodes.
12733 * tree.h (build_common_tree_nodes): Adjust prototype.
12734 (build_common_tree_nodes_2): Remove.
12735 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
12736 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
12737
12738 2011-07-05 Jakub Jelinek <jakub@redhat.com>
12739
12740 PR tree-optimization/49618
12741 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
12742 t recurse on the decl.
12743 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
12744 return true if expr isn't known to be defined in current
12745 TU or some other LTO partition.
12746
12747 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12748
12749 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
12750 override CASE_VALUES_THRESHOLD.
12751
12752 * stmt.c (toplevel): Include params.h.
12753 (case_values_threshold): Use the --param case-values-threshold
12754 value if non-zero, otherwise use machine dependent value.
12755 (expand_case): Use case_values_threshold.
12756
12757 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
12758
12759 * doc/invoke.texi (--param case-values-threshold): Document.
12760
12761 2011-07-05 Richard Henderson <rth@redhat.com>
12762
12763 * dwarf2out.c (dwarf2out_cfi_label): Make static.
12764 (dwarf2out_flush_queued_reg_saves): Make static.
12765 (dwarf2out_reg_save): Remove.
12766 (dwarf2out_return_save): Remove.
12767 (dwarf2out_return_reg): Remove.
12768 (dwarf2out_reg_save_reg): Remove.
12769 (dwarf2out_def_cfa): Merge into ...
12770 (dwarf2out_frame_init): ... here.
12771 * dwarf2out.h, tree.h: Remove declarations as necessary.
12772
12773 2011-07-05 Richard Henderson <rth@redhat.com>
12774
12775 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
12776 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12777 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
12778 the alloc insn.
12779
12780 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
12781 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
12782 (process_epilogue): Don't call dwarf2out_def_cfa.
12783
12784 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
12785 indicate the return address save.
12786 (process_cfa_register): Likewise.
12787
12788 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
12789 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
12790
12791 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
12792 for ar.pfs save at alloc insn.
12793
12794 2011-07-05 Richard Henderson <rth@redhat.com>
12795
12796 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12797 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12798 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
12799 stack pointer save.
12800 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
12801 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
12802 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
12803 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
12804
12805 2011-07-05 Richard Henderson <rth@redhat.com>
12806
12807 * config/vax/vax.md (define_c_enum unspecv): New. Define the
12808 VUNSPEC_* constants here instead of via define_constants.
12809 (VUNSPEC_PEM): New constant.
12810 (procedure_entry_mask): New insn.
12811 (prologue): New expander.
12812 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
12813 (vax_expand_prologue): Rename from vax_output_function_prologue;
12814 emit rtl instead of text.
12815 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12816 (print_operand): Add 'x' prefix.
12817
12818 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
12819
12820 PR middle-end/47715
12821 * calls.c (precompute_register_parameters): Promote the function
12822 argument before checking non-legitimate constant.
12823
12824 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12825
12826 PR tree-optimization/47654
12827 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12828 (lst_do_strip_mine_loop): Return an int.
12829 (lst_do_strip_mine): Same.
12830 (scop_do_strip_mine): Same.
12831 (scop_do_block): Loop blocking should strip-mine at least two loops.
12832 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12833 (scop_do_interchange): Same.
12834 * graphite-poly.h (scop_do_interchange): Update declaration.
12835 (scop_do_strip_mine): Same.
12836
12837 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12838
12839 * graphite-clast-to-gimple.c (precision_for_value): Removed.
12840 (precision_for_interval): Removed.
12841 (gcc_type_for_interval): Use mpz_sizeinbase.
12842
12843 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12844
12845 * graphite-ppl.h (value_max): Correct computation of max.
12846
12847 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12848
12849 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12850
12851 2011-07-05 Richard Guenther <rguenther@suse.de>
12852
12853 * c-decl.c (c_init_decl_processing): Defer building common
12854 tree nodes to c_common_nodes_and_builtins.
12855
12856 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
12857
12858 PR tree-optimization/49580
12859 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12860 the loop's number of iterations.
12861 * tree-parloops.c (transform_to_exit_first_loop): Add the
12862 handling of the loop's number of iterations before the call
12863 to gimple_duplicate_sese_tail.
12864 Insert the stmt caclculating the new rhs of the loop's
12865 condition stmt to the preheader instead of iters_bb.
12866
12867 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
12868
12869 PR rtl-optimization/47449
12870 * fwprop.c (forward_propagate_subreg): Don't propagate hard
12871 register nor zero/sign extended hard register.
12872
12873 2011-07-05 Richard Guenther <rguenther@suse.de>
12874
12875 PR tree-optimization/49518
12876 PR tree-optimization/49628
12877 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12878 irrelevant and invariant data-references.
12879 (vect_analyze_data_ref_access): For invariant loads clear the
12880 group association.
12881
12882 2011-07-04 Jakub Jelinek <jakub@redhat.com>
12883
12884 PR rtl-optimization/49619
12885 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12886 pass VOIDmode as op0_mode to recursive call, and return temp even
12887 when different from tor, just if it is not IOR of the original
12888 PLUS arguments.
12889
12890 PR rtl-optimization/49472
12891 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12892 negating MULT, negate the second operand instead of first.
12893 (simplify_binary_operation_1) <case MULT>: If one operand is
12894 a NEG and the other is MULT, don't attempt to optimize by negation
12895 of the MULT operand if it only moves the NEG operation around.
12896
12897 PR debug/49602
12898 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12899 get_current_def return value if it can't be trusted to be
12900 the current value of the variable in the current bb.
12901
12902 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
12903
12904 PR target/49600
12905 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12906 general register to memory for !TARGET_INTER_UNIT_MOVES.
12907
12908 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12909
12910 PR target/44643
12911 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12912 instead of TREE_READONLY.
12913
12914 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12915
12916 * doc/extend.texi (AVR Built-in Functions): Update documentation
12917 of __builtin_avr_fmul*.
12918 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12919 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12920 * config/avr/avr.md (fmul): Rename to fmul_insn.
12921 (fmuls): Rename to fmuls_insn.
12922 (fmulsu): Rename to fmulsu_insn.
12923 (fmul,fmuls,fmulsu): New expander.
12924 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12925 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12926 * config/avr/libgcc.S (__fmul): New function.
12927 (__fmuls): New function.
12928 (__fmulsu,__fmulsu_exit): New function.
12929
12930 2011-07-04 Richard Guenther <rguenther@suse.de>
12931
12932 PR tree-optimization/49615
12933 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12934 basic-block index check.
12935
12936 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12937
12938 * longlong.h (count_leading_zeros, count_trailing_zeros,
12939 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12940 resp. 64.
12941
12942 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
12943
12944 PR tree-optimization/49610
12945 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12946 a basic block.
12947
12948 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
12949 Olivier Hainque <hainque@adacore.com>
12950 Nicolas Setton <setton@adacore.com>
12951
12952 * tree.h (TYPE_ARTIFICIAL): New flag.
12953 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12954 the DIE of the type if it is artificial.
12955 (gen_array_type_die): Likewise.
12956 (gen_enumeration_type_die): Likewise.
12957 (gen_struct_or_union_type_die): Likewise.
12958 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12959 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12960
12961 2011-07-01 Jakub Jelinek <jakub@redhat.com>
12962
12963 * tree-object-size.c (pass_through_call): Handle
12964 BUILT_IN_ASSUME_ALIGNED.
12965
12966 2011-07-01 Martin Jambor <mjambor@suse.cz>
12967
12968 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12969
12970 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
12971
12972 PR middle-end/48016
12973 * explow.c (update_nonlocal_goto_save_area): Use proper mode
12974 for stack save area.
12975 * function.c (expand_function_start): Likewise.
12976
12977 2011-07-01 Richard Guenther <rguenther@suse.de>
12978
12979 PR middle-end/49596
12980 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12981 may have unknown refs.
12982
12983 2011-07-01 Kai Tietz <ktietz@redhat.com>
12984
12985 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12986
12987 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12988
12989 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12990 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12991 (Specific, mips-sgi-irix6): Likewise.
12992
12993 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12994
12995 PR libmudflap/49549
12996 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12997
12998 2011-07-01 Jakub Jelinek <jakub@redhat.com>
12999
13000 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
13001 [idx]= and [idx1 ... idx2]= before initializers if needed for
13002 array initializers.
13003
13004 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
13005
13006 * config.gcc (score-*-elf): Remove score7.o.
13007 * config/score/t-score-elf: Likewise.
13008 * config/score/score.c: Merge score7 to score.c and
13009 remove forwarding functions.
13010 * config/score/score7.c: Deleted.
13011 * config/score/score7.h: Deleted.
13012
13013 2011-07-01 Richard Guenther <rguenther@suse.de>
13014
13015 PR tree-optimization/49603
13016 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
13017
13018 2011-06-30 Martin Jambor <mjambor@suse.cz>
13019
13020 * tree-sra.c (struct access): Rename total_scalarization to
13021 grp_total_scalarization
13022 (completely_scalarize_var): New function.
13023 (sort_and_splice_var_accesses): Set total_scalarization in the
13024 representative access.
13025 (analyze_access_subtree): Propagate total scalarization accross the
13026 tree, no holes in totally scalarized trees, simplify coverage
13027 computation.
13028 (analyze_all_variable_accesses): Call completely_scalarize_var instead
13029 of completely_scalarize_record.
13030
13031 2011-06-30 Richard Henderson <rth@redhat.com>
13032
13033 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
13034 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
13035 * config/i386/i386.c: Don't include dwarf2out.h.
13036 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
13037 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
13038 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
13039 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
13040 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
13041
13042 2011-06-30 Richard Henderson <rth@redhat.com>
13043
13044 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
13045 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13046 * final.c (final_scan_insn): Look for it, and invoke
13047 dwarf2out_frame_debug before the insn if found.
13048
13049 2011-06-30 Richard Henderson <rth@redhat.com>
13050
13051 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
13052 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
13053
13054 2011-06-30 Richard Henderson <rth@redhat.com>
13055
13056 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
13057 Define a vector of this type.
13058 (regs_saved_in_regs): Use a VEC.
13059 (num_regs_saved_in_regs): Remove.
13060 (compare_reg_or_pc): New.
13061 (record_reg_saved_in_reg): Split out from...
13062 (dwarf2out_flush_queued_reg_saves): ... here.
13063 (clobbers_queued_reg_save): Update for VEC.
13064 (reg_saved_in): Likewise.
13065 (dwarf2out_frame_debug_init): Likewise.
13066 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
13067 (dwarf2out_frame_debug_cfa_register): Likewise.
13068
13069 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13070
13071 PR tree-optimization/49572
13072 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
13073 type of the RHS instead of that of the LHS for the expression type.
13074
13075 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13076
13077 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
13078 unconditionally.
13079
13080 2011-06-30 Richard Guenther <rguenther@suse.de>
13081
13082 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
13083 * tree-ssa-structalias.c (create_variable_info_for): Do not
13084 add initial constraints for non-var-decls. Properly handle
13085 globals in other ltrans partitions.
13086 (intra_create_variable_infos): Manually create constraints for
13087 the fake no-alias parameter.
13088 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
13089 and assert there are no clones.
13090
13091 2011-06-30 Richard Guenther <rguenther@suse.de>
13092
13093 PR tree-optimization/46787
13094 * tree-data-ref.c (dr_address_invariant_p): Remove.
13095 (find_data_references_in_stmt): Invariant accesses are ok now.
13096 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
13097 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
13098 invariant loads.
13099
13100 2011-06-30 Martin Jambor <mjambor@suse.cz>
13101
13102 PR tree-optimization/49094
13103 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
13104 (build_accesses_from_assign): Use it.
13105
13106 2011-06-30 Jakub Jelinek <jakub@redhat.com>
13107
13108 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
13109 handling of BUILT_IN_ASSUME_ALIGNED.
13110
13111 PR debug/49364
13112 * dwarf2out.c (output_abbrev_section): Don't return early
13113 if abbrev_die_table_in_use is 1.
13114 (dwarf2out_finish): Instead don't call output_abbrev_section
13115 nor emit abbrev_section_label in that case.
13116
13117 2011-06-30 Nick Clifton <nickc@redhat.com>
13118
13119 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
13120 for the V850E.
13121
13122 2011-06-30 Jakub Jelinek <jakub@redhat.com>
13123
13124 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
13125 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
13126
13127 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
13128
13129 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
13130 both pattern and original statements if necessary.
13131 (vect_transform_loop): Likewise.
13132 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
13133 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
13134 Mark the pattern statement only if the original statement doesn't
13135 have its own uses.
13136 (process_use): Call vect_mark_relevant with additional parameter.
13137 (vect_mark_stmts_to_be_vectorized): Likewise.
13138 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
13139 (vect_analyze_stmt): Handle both pattern and original statements
13140 if necessary.
13141 (vect_transform_stmt): Don't store vectorized pattern statement
13142 in the original statement.
13143 (vect_is_simple_use_1): Use related pattern statement only if the
13144 original statement is irrelevant.
13145 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
13146
13147 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
13148
13149 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
13150 option.
13151 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
13152 entry.
13153 (TARGET_AVX128_OPTIMAL): New definition.
13154 * config/i386/i386.c (initial_ix86_tune_features): Initialize
13155 X86_TUNE_AVX128_OPTIMAL entry.
13156 (ix86_option_override_internal): Enable the generation
13157 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
13158 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
13159 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
13160
13161 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
13162
13163 PR tree-optimization/49539
13164 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
13165 names by means of stmt_references_abnormal_ssa_name.
13166 (associate_plusminus): Call can_propagate_from before propagating
13167 from definition statements.
13168 (ssa_forward_propagate_and_combine): Remove superfluous newline.
13169
13170 2011-06-29 Richard Guenther <rguenther@suse.de>
13171
13172 * doc/invoke.texi: Document -scev dump modifier.
13173 * tree-pass.h (TDF_SCEV): New dump flag.
13174 * tree-dump.c (dump_option_value_in): Add scev.
13175 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
13176 * tree-scalar-evolution.c: Likewise.
13177
13178 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
13179
13180 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
13181 (cxa_type_match): Correct declaration.
13182 (__gnu_unwind_pr_common): Reconstruct additional indirection
13183 when __cxa_type_match returns succeeded_with_ptr_to_base.
13184
13185 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13186
13187 PR rtl-optimization/49114
13188 * reload.c (struct replacement): Remove SUBREG_LOC member.
13189 (push_reload): Do not set it.
13190 (push_replacement): Likewise.
13191 (subst_reload): Remove dead code.
13192 (copy_replacements): Remove assertion.
13193 (copy_replacements_1): Do not handle SUBREG_LOC.
13194 (move_replacements): Likewise.
13195 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
13196 Detect subregs via recursive descent instead of via SUBREG_LOC.
13197
13198 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
13199
13200 * config/avr/avr.c (avr_encode_section_info): Dispatch to
13201 default_encode_section_info.
13202
13203 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
13204
13205 PR tree-optimization/49545
13206 * builtins.c (get_object_alignment_1): Update function comment.
13207 Do not use DECL_ALIGN for functions, but test
13208 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
13209 * fold-const.c (get_pointer_modulus_and_residue): Don't check
13210 for functions here.
13211 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
13212
13213 2011-06-29 Jakub Jelinek <jakub@redhat.com>
13214
13215 PR debug/49567
13216 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
13217 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
13218
13219 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
13220
13221 PR target/34734
13222 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
13223 about uninitialized data attributed 'progmem' from here...
13224 (avr_encode_section_info): ...to this new function.
13225 (TARGET_ENCODE_SECTION_INFO): New define.
13226 (avr_section_type_flags): For data in ".progmem.data", remove
13227 section flag SECTION_WRITE.
13228
13229 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
13230
13231 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
13232 _xmulhisi3_exit.
13233 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
13234 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
13235 (__umulhisi3): Ditto.
13236 * config/avr/avr.md (mulhisi3): New insn expender.
13237 (umulhisi3): New insn expender.
13238 (*mulhisi3_call): New insn.
13239 (*umulhisi3_call): New insn.
13240
13241 2011-06-28 Joseph Myers <joseph@codesourcery.com>
13242
13243 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
13244
13245 2011-06-28 Richard Henderson <rth@redhat.com>
13246
13247 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
13248 all code and arguments that handled pushes. Update all callers.
13249
13250 2011-06-28 Richard Henderson <rth@redhat.com>
13251
13252 * config/arm/arm.c (arm_output_function_prologue): Don't call
13253 thumb1_output_function_prologue.
13254 (arm_expand_prologue): Avoid dead store.
13255 (number_of_first_bit_set): Use ctz_hwi.
13256 (thumb1_emit_multi_reg_push): New.
13257 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
13258 to emit the entire prologue as rtl.
13259 (thumb1_output_interwork): Split out from
13260 thumb1_output_function_prologue.
13261 (thumb1_output_function_prologue): Remove.
13262 (arm_attr_length_push_multi): Handle thumb1.
13263 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
13264 (prologue_thumb1_interwork): New.
13265 (*push_multi): Allow thumb1; use push_mult_memory_operand.
13266 * config/arm/predicates.md (push_mult_memory_operand): New.
13267
13268 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
13269
13270 * config/sparc/sync.md (*stbar): Delete.
13271 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
13272
13273 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
13274
13275 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
13276
13277 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13278
13279 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
13280 (TARGET_64BIT_DEFAULT): Define.
13281 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
13282 of tm_file.
13283 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
13284
13285 2011-06-28 Joseph Myers <joseph@codesourcery.com>
13286
13287 * common.opt (in_lto_p): New Variable entry.
13288 * flags.h (in_lto_p): Move to common.opt.
13289 * gcc.c: Include params.h.
13290 (set_option_handlers): Also use common_handle_option and
13291 target_handle_option.
13292 (main): Call global_init_params, finish_params and init_options_struct.
13293 * opts.c (debug_type_names): Move from toplev.c.
13294 (print_filtered_help): Access quiet_flag through opts pointer.
13295 (common_handle_option): Return early in the driver for some options.
13296 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
13297 opts pointer.
13298 * toplev.c (in_lto_p): Move to common.opt.
13299 (debug_type_names): Move to opts.c.
13300 * Makefile.in (OBJS): Remove opts.o.
13301 (OBJS-libcommon-target): Add opts.o.
13302 (gcc.o): Update dependencies.
13303
13304 2011-06-28 Kai Tietz <ktietz@redhat.com>
13305
13306 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
13307
13308 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13309
13310 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
13311 with '=' constraint modifier.
13312 (*divdf3_vfp): Likewise.
13313 ("*mulsf3_vfp"): Likewise.
13314 ("*muldf3_vfp"): Likewise.
13315 ("*mulsf3negsf_vfp"): Likewise.
13316 ("*muldf3negdf_vfp"): Likewise.
13317
13318 2011-06-28 Nick Clifton <nickc@redhat.com>
13319
13320 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
13321 relaxation when performing an incremental link.
13322
13323 2011-06-28 Kai Tietz <ktietz@redhat.com>
13324
13325 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
13326 within BB from last to first.
13327
13328 2011-06-28 Joseph Myers <joseph@codesourcery.com>
13329
13330 * genattr-common.c: New. Based on genattr.c.
13331 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
13332 (MOSTLYCLEANFILES): Add insn-attr-common.h.
13333 (opts.o): Update dependencies.
13334 (.PRECIOUS): Add insn-attr-common.h.
13335 (simple_rtl_generated_h): Add insn-attr-common.h.
13336 (build/genattr-common.o): New.
13337 (genprogrtl): Add attr-common.
13338 * genattr.c (main): Include insn-attr-common.h. Don't generate
13339 definitions of DELAY_SLOTS or INSN_SCHEDULING.
13340 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
13341
13342 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
13343
13344 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
13345 avr-*-* and avr-*-rtems* targets.
13346
13347 * config/avr/elf.h: New file.
13348 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
13349 (TARGET_ASM_SELECT_SECTION): Define.
13350 (INIT_SECTION_ASM_OP): Undefine.
13351 (FINI_SECTION_ASM_OP): Undefine.
13352 (READONLY_DATA_SECTION_ASM_OP): Undefine.
13353 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
13354 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
13355 * config/avr/avr.h:
13356 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
13357 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
13358 (MAX_OFILE_ALIGNMENT): Move to elf.h.
13359 (STRING_LIMIT): Move to elf.h.
13360 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
13361 (ASM_DECLARE_OBJECT_NAME): Remove.
13362 (ESCAPES): Remove.
13363 (ASM_OUTPUT_SKIP): Remove.
13364 (DWARF2_DEBUGGING_INFO): Remove.
13365 (OBJECT_FORMAT_ELF): Remove.
13366 (USER_LABEL_PREFIX): Remove.
13367 (ASM_OUTPUT_EXTERNAL): Remove.
13368 (ASM_OUTPUT_ASCII): Remove.
13369 (TYPE_ASM_OP): Remove.
13370 (SIZE_ASM_OP): Remove.
13371 (WEAK_ASM_OP): Remove.
13372 (STRING_ASM_OP): Remove.
13373 (SET_ASM_OP): Remove.
13374 (ASM_WEAKEN_LABEL): Remove.
13375 (TYPE_OPERAND_FMT): Remove.
13376 (ASM_DECLARE_FUNCTION_SIZE): Remove.
13377 (ASM_FINISH_DECLARE_OBJECT): Remove.
13378 (NO_DOLLAR_IN_LABEL): Remove.
13379 (ASM_GENERATE_INTERNAL_LABEL): Remove.
13380 (ASM_OUTPUT_CASE_LABEL): Remove.
13381 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
13382 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
13383 (gas_output_ascii): Remove.
13384 (gas_output_limited_string): Remove.
13385 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
13386 * config/avr/avr-protos.h
13387 (gas_output_ascii): Remove prototye.
13388 (gas_output_limited_string): Remove prototype.
13389
13390 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
13391
13392 PR target/48637
13393 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
13394 asm operands.
13395
13396 2011-06-27 Jan Hubicka <jh@suse.cz>
13397
13398 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
13399 node instead of references in node.
13400
13401 2011-06-27 Richard Henderson <rth@redhat.com>
13402
13403 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
13404 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
13405 inside ifdef.
13406
13407 2011-06-27 Jakub Jelinek <jakub@redhat.com>
13408
13409 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
13410
13411 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
13412 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
13413 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
13414 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
13415 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
13416 (evaluate_stmt, execute_fold_all_builtins): Handle
13417 BUILT_IN_ASSUME_ALIGNED.
13418 * tree-ssa-dce.c (propagate_necessity): Likewise.
13419 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13420 call_may_clobber_ref_p_1): Likewise.
13421 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
13422 (expand_builtin_assume_aligned): New function.
13423 * doc/extend.texi (__builtin_assume_aligned): Document.
13424
13425 PR debug/49544
13426 * cselib.c (promote_debug_loc): If cselib_preserve_constants
13427 and l has two DEBUG_INSN owned locs instead of just one, adjust
13428 the second location's setting_insn too.
13429
13430 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13431
13432 PR libmudflap/38738
13433 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
13434
13435 2011-06-27 Nick Clifton <nickc@redhat.com>
13436
13437 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
13438 bit position of highest bit set into a count of the high zero bits.
13439
13440 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
13441
13442 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
13443
13444 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
13445
13446 PR lto/48492
13447 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
13448 to a NULL parent.
13449
13450 2011-06-27 Richard Guenther <rguenther@suse.de>
13451
13452 PR tree-optimization/49394
13453 * passes.c (execute_one_pass): Restore current_pass after
13454 applying IPA transforms.
13455
13456 2011-06-27 Kai Tietz <ktietz@redhat.com>
13457
13458 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
13459 out of type precision after operation.
13460 (find_bswap): Take for limit value the integer auto-promotion
13461 into account.
13462
13463 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
13464
13465 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
13466 forward scan as well.
13467
13468 2011-06-27 Tristan Gingold <gingold@adacore.com>
13469
13470 PR target/44241
13471 * config/vms/vms-protos.h: New file.
13472 * config/vms/vms-crtlmap.map: New file.
13473 * config/vms/vms.c: New file.
13474 * config/vms/make-crtlmap.awk: New file.
13475 * config/vms/vms-crtl.h: File removed.
13476 * config/vms/vms-crtl-64.h: File removed.
13477 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
13478 * config/alpha/vms64.h: Do not include vms-crtl-64.h
13479 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
13480 clear some builtins on VMS. Calls vms_patch_builtins.
13481 (avms_asm_output_external): Remove.
13482 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
13483 (struct crtl_name_spec): Remove
13484 (DO_CTRL_NAMES): Remove.
13485 * config/ia64/vms.h (struct crtl_name_spec): Remove
13486 (DO_CTRL_NAMES): Remove.
13487 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
13488 clear some builtins on VMS. Calls vms_patch_builtins.
13489 (ia64_asm_output_external): Remove DO_CRTL_NAME.
13490 * config/ia64/vms64.h: Do not include vms-crtl-64.h
13491 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
13492
13493 2011-06-27 Tristan Gingold <gingold@adacore.com>
13494
13495 * config/alpha/alpha.c (alpha_end_function): Always generate .end
13496 directive on VMS.
13497
13498 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
13499
13500 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
13501 the function receives nonlocal gotos.
13502
13503 2011-06-27 Richard Guenther <rguenther@suse.de>
13504
13505 PR tree-optimization/49536
13506 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
13507 For non-scalar inner types use a scalar type according to
13508 the scalar inner mode.
13509
13510 2011-06-27 Richard Guenther <rguenther@suse.de>
13511
13512 PR tree-optimization/49365
13513 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
13514
13515 2011-06-27 Richard Guenther <rguenther@suse.de>
13516
13517 PR tree-optimization/49169
13518 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
13519 the alignment of function decls.
13520
13521 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
13522
13523 PR target/47997
13524 * config/darwin.c (darwin_mergeable_string_section): Place string
13525 constants in '.cstring' rather than '.const' when CF/NSStrings are
13526 active.
13527
13528 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
13529
13530 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
13531 (emit_save_register_window): Likewise.
13532 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
13533 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
13534 Swap back %o7/%i7 in register naming.
13535
13536 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
13537
13538 PR driver/49371
13539 * config/darwin.c (darwin_override_options): Improve warning when
13540 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
13541 is given with fpie/fPIE.
13542 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
13543 * config/darwin9.h (PIE_SPEC): New.
13544
13545 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
13546
13547 * timevar.c (timevar_print): Increase width for display of timevar
13548 name.
13549
13550 2011-06-24 Jakub Jelinek <jakub@redhat.com>
13551
13552 PR c++/46400
13553 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
13554 instead of TYPE_CHAIN for chain_next for types.
13555
13556 2011-06-24 Richard Henderson <rth@redhat.com>
13557
13558 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
13559 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
13560 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
13561 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
13562 (sparc_flat_expand_prologue): Emit individual instructions
13563 instead of one of the above.
13564
13565 2011-06-24 Easwaran Raman <eraman@google.com>
13566
13567 PR rtl-optimization/49429
13568 PR target/49454
13569 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
13570 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
13571 used to copy y into x.
13572 * calls.c (initialize_argument_information): Mark
13573 an argument addressable if it is passed by invisible reference.
13574 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
13575 if it is passed by reference.
13576
13577 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
13578
13579 PR rtl-optimization/49504
13580 * rtlanal.c (nonzero_bits1): Properly handle addition or
13581 subtraction of a pointer in Pmode if pointers extend unsigned.
13582 (num_sign_bit_copies1): Likewise.
13583
13584 2011-06-24 Martin Jambor <mjambor@suse.cz>
13585
13586 PR tree-optimizations/49516
13587 * tree-sra.c (sra_modify_assign): Choose the safe path for
13588 aggregate copies if we also did scalar replacements.
13589
13590 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13591
13592 PR target/49335
13593 * config/arm/predicates.md (add_operator): New.
13594 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
13595
13596 2011-06-24 Andi Kleen <ak@linux.intel.com>
13597
13598 * tree-sra.c (type_internals_preclude_sra_p): Add msg
13599 parameter. Split up ifs and report reason in *msg.
13600 (reject): Add.
13601 (find_var_candiate): Add msg variable.
13602 Split up ifs and report reason to reject.
13603 (find_param_candidates): Add msg variable.
13604 Pass msg to type_internals_preclude_sra_p.
13605
13606 2011-06-23 Jeff Law <law@redhat.com>
13607
13608 PR middle-end/48770
13609 * reload.h (reload): Change to return a bool.
13610 * ira.c (ira): If requested by reload, run a fast DCE pass after
13611 reload has completed. Fix comment typo.
13612 * reload1.c (need_dce): New file scoped static.
13613 (reload): Set reload_completed here. Return whether or not a DCE
13614 pass after reload is needed.
13615 (delete_dead_insn): Set need_dce as needed.
13616
13617 PR middle-end/49465
13618 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
13619 to detect threading through joiner block. If there was already
13620 an edge to the new target, then do not change the PHI nodes.
13621
13622 2011-06-23 Jakub Jelinek <jakub@redhat.com>
13623
13624 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
13625 get_pointer_alignment to see if base isn't sufficiently aligned.
13626
13627 2011-06-23 Jan Hubicka <jh@suse.cz>
13628
13629 PR tree-optimize/49373
13630 * tree-pass.h (all_late_ipa_passes): Declare.
13631 * cgraphunit.c (init_lowered_empty_function): Fix properties.
13632 (cgraph_optimize): Execute late passes; remove unreachable funcions
13633 after materialization.
13634 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
13635 LTOing.
13636 * passes.c (all_late_ipa_passes): Declare.
13637 (dump_passes, register_pass): Handle late ipa passes.
13638 (init_optimization_passes): Move ipa_pta to late passes; schedule
13639 fixup_cfg at beggining of all_passes.
13640 (apply_ipa_transforms): New function.
13641 (execute_one_pass): When doing simple ipa pass, apply all transforms.
13642
13643 2011-06-23 Joseph Myers <joseph@codesourcery.com>
13644
13645 * params.c: Include common/common-target.h. Don't include tm.h.
13646 (lang_independent_params): Move from toplev.c.
13647 (global_init_params): New.
13648 * params.h (global_init_params): Declare.
13649 * target.def (default_params): Move to common-target.def.
13650 * toplev.c (lang_independent_options): Remove.
13651 (lang_independent_params): Move to params.c.
13652 (general_init): Use global_init_params.
13653 * common/common-target.def (option_default_params): Move from
13654 target.def.
13655 * common/config/ia64/ia64-common.c: Include params.h.
13656 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13657 from ia64.c.
13658 * common/config/rs6000/rs6000-common.c: Include params.h.
13659 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13660 from rs6000.c.
13661 * common/config/sh/sh-common.c: Include params.h.
13662 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13663 from sh.c.
13664 * common/config/spu/spu-common.c: Include params.h.
13665 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13666 from spu.c.
13667 * config/ia64/ia64.c (ia64_option_default_params,
13668 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
13669 * config/rs6000/rs6000.c (rs6000_option_default_params,
13670 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
13671 * config/sh/sh.c (sh_option_default_params,
13672 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
13673 * config/spu/spu.c (spu_option_default_params,
13674 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
13675 * Makefile.in (OBJS): Remove params.o.
13676 (OBJS-libcommon-target): Add params.o.
13677 (params.o, $(common_out_object_file)): Update dependencies.
13678 * doc/tm.texi: Regenerate.
13679
13680 2011-06-23 Alan Modra <amodra@gmail.com>
13681
13682 PR bootstrap/49383
13683 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
13684 invocation for 2011-06-09 changes.
13685
13686 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13687
13688 PR libgomp/49490
13689 * omp-low.c (expand_omp_for_static_nochunk): Only
13690 use n ceil/ nthreads size for the first n % nthreads threads in the
13691 team instead of all threads except for the last few ones which
13692 get less work or none at all.
13693
13694 PR debug/49496
13695 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
13696 uses.
13697
13698 2011-06-22 Richard Guenther <rguenther@suse.de>
13699
13700 PR tree-optimization/49493
13701 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
13702 Refer to the alias target of variables.
13703 (associate_varinfo_to_alias_1): Remove.
13704 (ipa_pta_execute): Do not associate aliases with anything.
13705 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
13706 (cgraph_function_node): Likewise.
13707 (cgraph_function_or_thunk_node): Likewise.
13708 (varpool_variable_node): Likewise.
13709
13710 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
13711
13712 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
13713 * config.gcc (arm*-*-linux*): Default to gnu tls.
13714 (arm*-*-*): Add --with-tls option.
13715 (all_defaults): Add 'tls'.
13716
13717 2011-06-22 Richard Henderson <rth@redhat.com>
13718
13719 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
13720 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13721 (dwarf2out_frame_debug_cfa_window_save): Rename from
13722 dwarf2out_window_save; make static.
13723 * tree.h (dwarf2out_window_save): Don't declare.
13724
13725 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
13726 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13727 (emit_save_register_window): Rename from gen_save_register_window;
13728 emit the insn and add REG_CFA_* notes.
13729 (sparc_expand_prologue): Update to match.
13730 * config/sparc/sparc.md (save_register_window_1): Simplify from
13731 save_register_window<P:mode>.
13732
13733 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
13734
13735 PR target/49497
13736 * config/i386/i386.md (*lea_general_2): Always allow SImode.
13737 (*lea_general_2_zext): Likewise.
13738 (imul to lea peepholes): Use const359_operand and check
13739 TARGET_PARTIAL_REG_STALL.
13740
13741 * config/i386/predicates.md (const359_operand): New.
13742
13743 2011-06-22 Michael Matz <matz@suse.de>
13744
13745 * cgraphunit.c (assemble_thunk): Use correct return type.
13746
13747 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
13748 Dmitry Melnik <dm@ispras.ru>
13749
13750 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
13751 (neon_output_shift_immediate): Ditto.
13752 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
13753 prototype.
13754 (neon_output_shift_immediate): Ditto.
13755 * config/arm/neon.md (vashl<mode>3): Modified constraint.
13756 (vashr<mode>3_imm): New insn pattern.
13757 (vlshr<mode>3_imm): Ditto.
13758 (vashr<mode>3): Modified constraint.
13759 (vlshr<mode>3): Ditto.
13760 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
13761 predicate.
13762 (imm_for_neon_rshift_operand): Ditto.
13763 (imm_lshift_or_reg_neon): Ditto.
13764 (imm_rshift_or_reg_neon): Ditto.
13765
13766 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
13767
13768 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13769
13770 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
13771 builtin calls even if likelyvalue is not CONSTANT.
13772 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
13773 Return get_value_for_expr of first operand
13774 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
13775 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13776 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
13777 their non-checking counterparts.
13778 (call_may_clobber_ref_p_1): Likewise.
13779 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
13780 like their non-checking counterparts.
13781 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13782 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
13783 like their non-checking counterparts.
13784 (find_func_clobbers): Likewise.
13785 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
13786 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
13787
13788 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
13789 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
13790 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
13791 of base type reference as argument.
13792 (resolve_addr_in_expr): Likewise. Fix keep computation.
13793 (convert_descriptor_to_signed): Renamed to...
13794 (convert_descriptor_to_mode): ... this. For wider types convert to
13795 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
13796 (typed_binop): New function.
13797 (scompare_loc_descriptor, ucompare_loc_descriptor,
13798 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
13799 default to unsigned type instead of signed.
13800
13801 PR debug/47858
13802 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
13803 (gimple_build_debug_source_bind_stat): New prototype.
13804 (gimple_build_debug_source_bind): Define.
13805 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
13806 gimple_debug_source_bind_get_value,
13807 gimple_debug_source_bind_get_value_ptr,
13808 gimple_debug_source_bind_set_var,
13809 gimple_debug_source_bind_set_value): New inlines.
13810 * gimple.c (gimple_build_debug_source_bind_stat): New function.
13811 * gimple-pretty-print.c (dump_gimple_debug): Handle
13812 GIMPLE_DEBUG_SOURCE_BIND.
13813 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13814 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13815 * tree-parloops.c (eliminate_local_variables,
13816 separate_decls_in_region): Likewise.
13817 (separate_decls_in_region_debug): Renamed from
13818 separate_decls_in_region_debug_bind. Handle
13819 gimple_debug_source_bind_p.
13820 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13821 prototypes.
13822 (DECL_HAS_DEBUG_ARGS_P): Define.
13823 (struct tree_function_decl): Add has_debug_args_flag field.
13824 * tree.c (debug_args_for_decl): New variable.
13825 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13826 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13827 (rewrite_debug_stmt_uses): New function.
13828 (rewrite_stmt): Use it to rewrite debug stmt uses.
13829 * rtl.def (DEBUG_PARAMETER_REF): New.
13830 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13831 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13832 DEBUG_PARAMETER_REF.
13833 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13834 * print-rtl.c (print_rtx): Likewise.
13835 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13836 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13837 debug stmts in the first bb.
13838 * tree-inline.c (remap_ssa_name): If remapping default def
13839 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13840 a source bind debug stmt.
13841 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13842 (maybe_move_debug_stmts_to_successors): Likewise.
13843 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
13844 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13845 debug args vector from old_decl to new_decl.
13846 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13847 or modified parameters, add debug bind stmts before call
13848 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13849 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13850 on DECL_DEBUG_EXPRs from debug args vector.
13851 (expand_debug_source_expr): New function.
13852 (expand_debug_locations): Use it for source bind insns.
13853 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13854 * var-tracking.c (prepare_call_arguments): Add debug args
13855 to call_arguments if any.
13856 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13857 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13858 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13859 (get_ref_die_offset, parameter_ref_descriptor): New functions.
13860 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13861 (gen_subprogram_die): Handle parameters identified by
13862 DEBUG_PARAMETER_REF.
13863
13864 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
13865
13866 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13867 * doc/install.texi (Configuration): Document --with-tls.
13868 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13869 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13870 (arm_tls_descseq_addr): New.
13871 (legitimize_tls_address): Add tlsdesc support.
13872 (arm_cannot_copy_insn_p): Check for tlscall.
13873 (arm_emit_tls_decoration): Likewise.
13874 * config/arm/arm.h (TARGET_GNU2_TLS): New.
13875 (OPTION_DEFAULT_SPECS): Add with-tls support.
13876 * config/arm/arm.md (R1_REGNUM): Define.
13877 (tlscall): New.
13878 * config/arm/arm.opt (tls_type): New enumeration type and values.
13879 (mtls-dialect): New switch.
13880 * config/arm/arm-opts.h (enum tls_type): New.
13881
13882 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
13883
13884 * attribs.c (register_attribute): Added assert to check that all
13885 attribute specs are registered with a name that is not empty and
13886 does not start with '_'.
13887 (decl_attributes): Avoid the lookup of the "naked" attribute spec
13888 if the function has no attributes.
13889 * tree.c (is_attribute_with_length_p): Removed.
13890 (is_attribute_p): Removed.
13891 (private_is_attribute_p): New.
13892 (private_lookup_attribute): New.
13893 (lookup_attribute): Removed.
13894 (lookup_ident_attribute): New.
13895 (remove_attribute): Require the first argument to be in the form
13896 'text', not '__text__'. Updated asserts.
13897 (merge_attributes): Use lookup_ident_attributes instead of
13898 lookup_attribute.
13899 (merge_dllimport_decl_attributes): Use remove_attribute.
13900 (attribute_list_contained): Likewise.
13901 (attribute_list_equal): Immediately return 1 if the arguments are
13902 identical pointers.
13903 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
13904 'int'. Require the first argument to be in the form 'text', not
13905 '__text__'. Require the second argument to be an identifier.
13906 (lookup_attribute): Made inline. Require the first argument to be
13907 in the form 'text', not '__text__'.
13908 (private_is_attribute_p, private_lookup_attribute): New.
13909 Updated comments.
13910
13911 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
13912
13913 * builtins.c: Add sync_ or SYNC__ to builtin names.
13914 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13915 * omp-low.c: Add sync_ or SYNC__ to builtin names.
13916
13917 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
13918
13919 PR target/33049
13920 * config/avr/avr.md (extzv): New expander.
13921 (*extzv): New insn.
13922 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13923 * config/avr/constraints.md (C04): New constraint.
13924 * doc/md.texi (Machine Constraints): Document it.
13925
13926 2011-06-21 Jakub Jelinek <jakub@redhat.com>
13927
13928 PR middle-end/49489
13929 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13930 unsignedp argument instead of 1 for clrsb_optab.
13931 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13932 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
13933 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13934 * optabs.c (widen_leading): Call widen_operand and expand_unop
13935 with 0 as unsignedp argument instead of 1 for clrsb_optab.
13936 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13937
13938 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
13939
13940 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13941
13942 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
13943
13944 * gensupport.c (add_define_attr): New static function.
13945 (is_predicable): Allow multi-alternative lists for the "predicable"
13946 attribute.
13947 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13948 (process_one_cond_exec): Call alter_attrs_for_insn.
13949 * doc/md.texi (Defining Attributes): Mention some standard names.
13950 (Conditional Execution): Update documentation for "predicable".
13951
13952 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13953 __builtin_clrsbll): Document.
13954 * doc/rtl.texi (clrsb): New entry.
13955 * optabs.c (widen_leading): Renamed from widen_clz. New argument
13956 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
13957 (expand_unop): Handle clrsb_optab.
13958 (init_optabs): Initialize it.
13959 * optabs.h (enum optab_index): New entry OTI_clrsb.
13960 (clrsb_optab): Define.
13961 * genopinit.c (optabs): Add an entry for it.
13962 * builtins.c (expand_builtin): Handle clrsb builtin functions.
13963 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13964 BUILT_IN_CLRSBLL): New.
13965 * rtl.def (CLRSB): New code.
13966 * dwarf2out.c (mem_loc_descriptor): Handle it.
13967 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13968 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13969 and popcount.
13970 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13971 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13972 (__ctzDI2): Move declaration.
13973 * config/bfin/bfin.md (clrsbsi2): New expander.
13974 (signbitssi2): Use the CLRSB rtx.
13975 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
13976 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13977
13978 2011-06-21 Richard Guenther <rguenther@suse.de>
13979
13980 * ipa-inline-transform.c (inline_transform): Fix previous change.
13981
13982 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
13983
13984 PR tree-optimization/49478
13985 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13986 with constant operand.
13987
13988 2011-06-21 Richard Guenther <rguenther@suse.de>
13989
13990 * ipa-inline-transform.c (inline_transform): Fix typo.
13991
13992 2011-06-21 Richard Guenther <rguenther@suse.de>
13993
13994 PR tree-optimization/49483
13995 * tree-vect-stmts.c (vectorizable_assignment): Also handle
13996 VIEW_CONVERT_EXPR conversions.
13997
13998 2011-06-21 Joseph Myers <joseph@codesourcery.com>
13999
14000 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
14001 * config/avr/avr-tables.opt: New file (generated).
14002 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
14003 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
14004 avr-mcus.def.
14005 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
14006 (avr_option_override): Don't process -mmcu= argument here. Set
14007 avr_current_device using avr_mcu_index.
14008 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
14009 * config/avr/avr.opt (mmcu=): Use Enum.
14010 * config/avr/t-avr (avr-devices.o): Update dependencies.
14011 ($(srcdir)/config/avr/avr-tables.opt): New.
14012 * target.def (help): Remove.
14013 * doc/tm.texi.in (TARGET_HELP): Remove.
14014 * doc/tm.texi: Regenerate.
14015 * opts.c: Don't include target.h.
14016 (common_handle_option): Don't call targetm.help.
14017 * system.h (TARGET_HELP): Poison.
14018 * Makefile.in (opts.o): Update dependencies.
14019
14020 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14021
14022 * config/usegld.h: New file.
14023 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
14024 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
14025 (LIB_SPEC): Likewise. Search /lib.
14026 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
14027 (RDYNAMIC_SPEC): Handle GNU ld.
14028 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
14029 Define.
14030 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
14031 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
14032 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
14033 (STACK_CHECK_STATIC_BUILTIN): Define.
14034 * config/sol2.opt (compat-bsd): Remove.
14035 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
14036 * config/sol2-bi.h: New file.
14037 * config/sol2-gld.h: Remove.
14038 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
14039 (NO_DBX_BNSYM_ENSYM): Remove.
14040 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14041 (STACK_CHECK_STATIC_BUILTIN): Remove.
14042 Test USE_GLD instead of TARGET_GNU_LD.
14043 * config/i386/sol2-10.h: Rename to ...
14044 * config/i386/sol2-bi.h .. this.
14045 (SUBTARGET_EXTRA_SPECS): Redefine.
14046 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
14047 (MULTILIB_DEFAULTS): Remove.
14048 (DEFAULT_ARCH32_P): Define.
14049 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
14050 (ARCH64_SUBDIR): Define.
14051 Test USE_GLD instead of TARGET_GNU_LD.
14052 (I386_EMULATION): Rename to ...
14053 (ARCH32_EMULATION): ... this.
14054 (X86_64_EMULATION): Rename to ...
14055 (ARCH64_EMULATION): ... this.
14056 (TARGET_LD_EMULATION): Remove.
14057 (LINK_ARCH_SPEC): Remove.
14058 * config/i386/sol2-gas.h: Remove.
14059 * config/i386/t-sol2-10: Rename to ...
14060 * config/i386/t-sol2-64: ... this.
14061 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
14062 (AS_SPARC64_FLAG): Define.
14063 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
14064 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
14065 depending on TARGET_CPU_DEFAULT.
14066 (CPP_CPU_SPEC): Redefine.
14067 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
14068 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
14069 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
14070 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
14071 ASM_ARCH_DEFAULT_SPEC): Redefine.
14072 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14073 LINK_ARCH_DEFAULT_SPEC.
14074 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
14075 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
14076 (ARCH64_SUBDIR): Define.
14077 (LINK_ARCH64_SPEC): Redefine.
14078 (CC1_SPEC): Redefine.
14079 (OPTION_DEFAULT_SPECS): Redefine.
14080 (MULTILIB_DEFAULTS): Define.
14081 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
14082 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
14083 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
14084 (NO_DBX_BNSYM_ENSYM): Remove.
14085 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14086 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
14087 (TARGET_ASM_NAMED_SECTION): Likewise.
14088 (STACK_CHECK_STATIC_BUILTIN): Remove.
14089 * config/sparc/sol2-bi.h: Remove.
14090 * config/sparc/sol2-gas-bi.h: Remove.
14091 * config/sparc/sol2-gas.h: Remove.
14092 * config/sparc/sol2-gld-bi.h: Remove.
14093 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
14094 common parts ...
14095 (*-*-solaris2*): ... here.
14096
14097 2011-06-21 Christian Bruel <christian.bruel@st.com>
14098
14099 PR other/43564
14100 * ipa-inline.c (can_inline_edge_p): Check
14101 !DECL_DISREGARD_INLINE_LIMITS.
14102
14103 2011-06-21 Christian Bruel <christian.bruel@st.com>
14104
14105 PR middle-end/49139
14106 * cgraphunit.c (process_function_and_variable_attributes): warn when
14107 always_inline functions that are not inline.
14108 * ipa-inline-transform.c (inline_transform): Always call
14109 optimize_inline.
14110 * tree-inline.c (tree_inlinable_function_p): Use error instead
14111 of sorry.
14112 (expand_call_inline): Likewise.
14113
14114 2011-06-21 Jakub Jelinek <jakub@redhat.com>
14115
14116 * Makefile.in (dg_target_exps): Set.
14117 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
14118 instead of 7, try to divide it more evenly.
14119
14120 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
14121
14122 PR target/49089
14123 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
14124 (avx256_split_unaligned_store): New definition.
14125 (ix86_option_override_internal): Enable avx256 unaligned load/store
14126 splitting only when avx256_split_unaligned_load/store is set.
14127
14128 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
14129
14130 * regrename.c (scan_rtx_reg): Handle the case where we write to an
14131 open chain in a smaller mode without failing the entire block.
14132
14133 2011-06-21 Alan Modra <amodra@gmail.com>
14134
14135 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
14136 CONST high part large-toc address.
14137 (rs6000_tls_referenced_p): Make static.
14138 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
14139
14140 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14141
14142 PR target/49385
14143 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
14144 one of the operands is a register.
14145
14146 2011-06-20 Kai Tietz <ktietz@redhat.com>
14147
14148 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
14149 operations in combination with binary and.
14150
14151 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
14152
14153 * regrename.c (do_replace): Don't update notes.
14154
14155 2011-06-20 Alan Modra <amodra@gmail.com>
14156
14157 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
14158 of toc-relative address in CONST.
14159 (rs6000_delegitimize_address): Recognize changed address.
14160 (rs6000_legitimize_reload_address): Likewise.
14161 (rs6000_emit_move): Don't force these constants to memory.
14162 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
14163 toc-relative address in CONST.
14164 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
14165 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
14166
14167 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
14168
14169 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
14170 (count_trailing_zeros): Likewise.
14171
14172 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
14173
14174 PR other/49325
14175 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
14176 .init_array can be used with .ctors on targets.
14177 * configure: Regenerated.
14178
14179 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14180
14181 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
14182 if the element type is volatile.
14183
14184 2011-06-18 Jan Hubicka <jh@suse.cz>
14185
14186 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
14187 extra name aliases.
14188 (lto_symtab_resolve_can_prevail_p): Likewise.
14189 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
14190 * cgraphbuild.c (record_reference): Remove extra body alias code.
14191 (mark_load): Likewise.
14192 (mark_store): Likewise.
14193 * cgraph.h (varpool_node): Remove extra_name filed;
14194 add alias_of and extraname_alias.
14195 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
14196 (varpool_alias_aliased_node): New inline function.
14197 (varpool_variable_node): New function.
14198 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
14199 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
14200 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
14201 (input_varpool_node): Likewise.
14202 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
14203 (varpool_externally_visible_p): Remove extra body alias code.
14204 (function_and_variable_visibility): Likewise.
14205 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
14206 (ipa_pta_execute): Use it.
14207 * varpool.c (varpool_remove_node): Remove extra name alias code.
14208 (varpool_mark_needed_node): Likewise.
14209 (varpool_analyze_pending_decls): Analyze aliases.
14210 (assemble_aliases): New functoin.
14211 (varpool_assemble_decl): Use it.
14212 (varpool_create_variable_alias): New function.
14213 (varpool_extra_name_alias): Rewrite.
14214 (varpool_for_node_and_aliases): New function.
14215
14216 2011-06-18 Jakub Jelinek <jakub@redhat.com>
14217
14218 PR target/49411
14219 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
14220 last_arg_constant and last argument doesn't match its predicate,
14221 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
14222 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
14223 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
14224 spelling of error message.
14225 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
14226 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
14227 const_0_to_255_operand instead of const_int_operand.
14228
14229 Revert:
14230 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14231
14232 * config/i386/sse.md (blendbits): Remove mode attribute.
14233 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14234 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14235 Check integer value of operand 3 in insn constraint.
14236
14237 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
14238
14239 PR rtl-optimization/48542
14240 * reload.c (find_equiv_reg): Stop looking when finding a
14241 setjmp-type call.
14242 * reload1.c (reload_as_needed): Invalidate all reload
14243 registers when crossing a setjmp-type call.
14244
14245 2011-06-16 Jeff Law <law@redhat.com>
14246
14247 * tree-ssa-threadupdate.c (struct redirection_data): New field
14248 intermediate_edge.
14249 (THREAD_TARGET2): Define.
14250 (redirection_data_eq): Also check that the intermediate edge is equal.
14251 (lookup_redirection_data): Drop useless argument. Extract the
14252 outgoing_edge and intermediate edge from E. Callers updated.
14253 (copy_phi_args, update_destination_phis): New functions.
14254 (fix_duplicate_block_edges): Likewise.
14255 (create_edge_and_update_destination_phis): Duplicate all the edges
14256 hung off e->aux. Use copy_phi_args.
14257 (create_duplicates): Use fix_duplicate_block_edges.
14258 (fixup_template_block): Likewise.
14259 (redirect_edges): If necessary, redirect the joiner block's incoming
14260 edge to the duplicate of the joiner block.
14261 (thread_block): Don't muck up loops when threading through a joiner
14262 block.
14263 (thread_through_loop_header): Handle threading through a joiner block.
14264 (mark_threaded_blocks, register_jump_thread): Likewise.
14265 * tree-flow.h (register_jump_thread): Add new argument. Callers
14266 updated.
14267 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
14268 (thread_across_edge): Handle threading through a joiner block.
14269
14270 2011-06-16 Martin Jambor <mjambor@suse.cz>
14271
14272 PR tree-optimization/49343
14273 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
14274 calculate offset, provide 2nd operand for the new COMPONENT_REF.
14275
14276 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
14277
14278 * config/darwin-protos.h (machopic_select_rtx_section): Move to
14279 inside RTX_CODE ifdef.
14280
14281 2011-06-16 Tom de Vries <tom@codesourcery.com>
14282
14283 PR target/45098
14284 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
14285 Disallow NULL pointer for pointer arithmetic.
14286
14287 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14288
14289 PR target/49398
14290 Revert.
14291 2011-06-10 Wei Guozhi <carrot@google.com>
14292
14293 PR target/45335
14294 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14295 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14296 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14297 related peephole2.
14298 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14299 related peephole2.
14300 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14301 (arm_legitimate_ldrd_p): New prototype.
14302 (arm_output_ldrd): New prototype.
14303 * config/arm/arm.c (arm_check_ldrd_operands): New function.
14304 (arm_legitimate_ldrd_p): New function.
14305 (arm_output_ldrd): New function.
14306
14307 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
14308
14309 PR middle-end/46500
14310 * doc/tm.texi.in: Update Copyright date.
14311 * doc/tm.texi: Regenerate.
14312 * targhooks.c (default_setup_incoming_varargs): Replace
14313 CUMULATIVE_ARGS* argument type with cumulative_args_t.
14314 (default_pretend_outgoing_varargs_named): Likewise.
14315 (hook_pass_by_reference_must_pass_in_stack): Likewise.
14316 (hook_callee_copies_named): Likewise.
14317 (default_function_arg_advance): Likewise.
14318 (default_function_arg): Likewise.
14319 (default_function_incoming_arg): Likewise.
14320 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
14321 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
14322 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
14323 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14324 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
14325 * targhooks.h (default_setup_incoming_varargs): Likewise.
14326 (default_pretend_outgoing_varargs_named): Likewise.
14327 (hook_pass_by_reference_must_pass_in_stack): Likewise.
14328 (hook_callee_copies_named): Likewise.
14329 (default_function_arg_advance): Likewise.
14330 (default_function_arg): Likewise.
14331 (default_function_incoming_arg): Likewise.
14332 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
14333 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
14334 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
14335 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14336 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
14337 * target.def (pass_by_reference): Likewise.
14338 (setup_incoming_varargs, strict_argument_naming): Likewise.
14339 (pretend_outgoing_varargs_named, callee_copies): Likewise.
14340 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
14341 (function_incoming_arg): Likewise.
14342 * target.h: Don't include "tm.h" .
14343 (cumulative_args_t): New typedef.
14344 [GCC_TM_H] (get_cumulative_args): New static inline function.
14345 [GCC_TM_H] (pack_cumulative_args): Likewise.
14346 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
14347 argument type with cumulative_args_t.
14348 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
14349 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
14350 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14351 (frv_arg_partial_bytes, frv_function_arg): Likewise.
14352 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
14353 (frv_function_arg_1): Likewise.
14354 * config/s390/s390.c (s390_pass_by_reference): Likewise.
14355 (s390_function_arg_advance, s390_function_arg): Likewise.
14356 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14357 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
14358 (m32c_strict_argument_naming): Likewise.
14359 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
14360 (spu_function_arg_advance): Likewise.
14361 (spu_setup_incoming_varargs): Likewise. Make static.
14362 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
14363 Remove prototype.
14364 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
14365 CUMULATIVE_ARGS* argument type with cumulative_args_t.
14366 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
14367 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
14368 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
14369 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
14370 (mep_pass_by_reference, mep_function_arg): Likewise.
14371 (mep_function_arg_advance): Likewise.
14372 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14373 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
14374 (m32r_function_arg, m32r_function_arg_advance): Likewise.
14375 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
14376 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14377 (ix86_function_arg, ix86_pass_by_reference): Likewise.
14378 (ix86_setup_incoming_varargs): Likewise.
14379 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14380 (sh_strict_argument_naming): Likewise.
14381 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
14382 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
14383 (sh_function_arg_advance, sh_function_arg): Likewise.
14384 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14385 (pdp11_function_arg_advance): Likewise.
14386 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14387 Likewise.
14388 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
14389 * config/avr/avr.c (avr_function_arg): Likewise.
14390 (avr_function_arg_advance): Likewise.
14391 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14392 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
14393 (xtensa_function_arg_1): Likewise.
14394 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
14395 Likewise.
14396 (xstormy16_function_arg): Likewise.
14397 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14398 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14399 (fr30_function_arg_advance): Likewise.
14400 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14401 (lm32_function_arg, lm32_function_arg_advance): Likewise.
14402 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14403 (moxie_function_arg, moxie_function_arg_advance): Likewise.
14404 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
14405 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14406 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
14407 (cris_function_arg, cris_function_incoming_arg): Likewise.
14408 (cris_function_arg_advance, cris_function_arg_1): Likewise.
14409 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14410 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
14411 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
14412 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14413 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
14414 (mn10300_arg_partial_bytes): Likewise.
14415 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14416 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
14417 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
14418 (ia64_function_arg_1): Likewise.
14419 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14420 (m68k_function_arg): Likewise.
14421 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
14422 (rs6000_function_arg, setup_incoming_varargs): Likewise.
14423 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
14424 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
14425 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
14426 (picochip_arg_advance): Likewise.
14427 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14428 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
14429 (mcore_function_arg_advance): Likewise.
14430 * config/score/score.c (score_pass_by_reference): Likewise.
14431 (score_function_arg_advance): Likewise.
14432 (score_arg_partial_bytes): Likewise. Make static.
14433 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
14434 * config/arm/arm.c (arm_arg_partial_bytes): Replace
14435 CUMULATIVE_ARGS* argument type with cumulative_args_t.
14436 (arm_function_arg, arm_function_arg_advance): Likewise.
14437 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
14438 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14439 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
14440 (pa_function_arg): Likewise.
14441 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
14442 (mips_function_arg, mips_function_arg_advance): Likewise.
14443 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
14444 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
14445 * config/vax/vax.c (vax_function_arg): Likewise.
14446 (vax_function_arg_advance): Likewise.
14447 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14448 (h8300_function_arg_advance): Likewise.
14449 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14450 (v850_strict_argument_naming, v850_function_arg): Likewise.
14451 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
14452 (v850_setup_incoming_varargs): Likewise.
14453 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14454 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
14455 (mmix_function_arg, mmix_pass_by_reference): Likewise.
14456 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
14457 with const void *.
14458 * config/bfin/bfin.c (setup_incoming_varargs): Replace
14459 CUMULATIVE_ARGS* argument type with cumulative_args_t.
14460 (bfin_function_arg_advance, bfin_function_arg): Likewise.
14461 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
14462 * calls.c (emit_call_1): Change type of args_so_far to
14463 cumulative_args_t. Changed all callers.
14464 (initialize_argument_information): Likewise.
14465 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
14466 * dse.c (get_call_args): Likewise.
14467 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14468 * function.c (pass_by_reference, reference_callee_copied): Likewise.
14469 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
14470 New member args_so_far_v. Changed all users.
14471 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
14472 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14473 * config/mips/mips.c (mips_output_args_xfer): Likewise.
14474 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14475 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
14476 * config/microblaze/microblaze.c (microblaze_expand_prologue):
14477 Likewise.
14478 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
14479 m32r_pass_by_reference.
14480
14481 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
14482
14483 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
14484 argument to be a VEC of statements.
14485 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
14486 assert that pattern statements have to have their vector type set.
14487 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
14488 Change the first argument to be a VEC of statements. Update
14489 documentation.
14490 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
14491 (vect_handle_widen_mult_by_const): New function.
14492 (vect_recog_widen_mult_pattern): Change the first argument to be a
14493 VEC of statements. Update documentation. Check that the constant is
14494 INTEGER_CST. Support multiplication by a constant that fits an
14495 intermediate type - call vect_handle_widen_mult_by_const.
14496 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
14497 call. Handle additional pattern statements if necessary.
14498
14499 2011-06-16 Nick Clifton <nickc@redhat.com>
14500
14501 PR target/49427
14502 * config.gcc: Set cpu_type to v850 for any V850 architecture.
14503 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
14504 md_file, extra_modes, out_file and extra_options are these are all
14505 deduced from cpu_type.
14506
14507 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
14508
14509 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
14510 truncation mask to 63.
14511
14512 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
14513
14514 PR target/49313
14515 PR target/29524
14516 * longlong.h: Add AVR support:
14517 (count_leading_zeros): New macro.
14518 (count_trailing_zeros): New macro.
14519 (COUNT_LEADING_ZEROS_0): New macro.
14520 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
14521 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
14522 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
14523 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
14524 (LIB2FUNCS_EXCLUDE): Add _clz.
14525 * config/avr/libgcc.S (XCALL): Move up in file.
14526 (XJMP): New C Macro.
14527 (DEFUN): New asm macro.
14528 (ENDF): New asm macro.
14529 (__ffssi2): New function.
14530 (__ffshi2): New function.
14531 (__loop_ffsqi2): New function.
14532 (__ctzsi2): New function.
14533 (__ctzhi2): New function.
14534 (__clzdi2): New function.
14535 (__clzsi2): New function.
14536 (__clzhi2): New function.
14537 (__paritydi2): New function.
14538 (__paritysi2): New function.
14539 (__parityhi2): New function.
14540 (__parityqi2): New function.
14541 (__popcounthi2): New function.
14542 (__popcountsi2): New function.
14543 (__popcountdi2): New function.
14544 (__popcountqi2): New function.
14545 (__bswapsi2): New function.
14546 (__bswapdi2): New function.
14547 (__ashldi3): New function.
14548 (__ashrdi3): New function.
14549 (__lshrdi3): New function.
14550 Fix suspicous lines.
14551
14552 2011-06-16 Richard Guenther <rguenther@suse.de>
14553
14554 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
14555 the same as x != 0.
14556 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
14557 to (bool) X & 1.
14558 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
14559 equality compares against zero for the lower bit.
14560
14561 2011-06-16 Jakub Jelinek <jakub@redhat.com>
14562
14563 PR tree-optimization/49419
14564 * tree-vrp.c (execute_vrp): Call init_range_assertions
14565 before estimate_numbers_of_iterations, call
14566 free_number_of_iterations_estimates before calling
14567 remove_range_assertions.
14568
14569 2011-06-16 Revital Eres <revital.eres@linaro.org>
14570
14571 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
14572 (struct partial_schedule): Add rows_length field.
14573 (verify_partial_schedule): Check rows_length.
14574 (ps_insert_empty_row): Handle rows_length.
14575 (create_partial_schedule): Likewise.
14576 (free_partial_schedule): Likewise.
14577 (reset_partial_schedule): Likewise.
14578 (create_ps_insn): Remove rest_count argument.
14579 (remove_node_from_ps): Update rows_length.
14580 (add_node_to_ps): Update rows_length and call create_ps_insn
14581 without passing row_rest_count.
14582 (rotate_partial_schedule): Update rows_length.
14583
14584 2011-06-16 Revital Eres <revital.eres@linaro.org>
14585
14586 * ddg.c (add_intra_loop_mem_dep): New function.
14587 (build_intra_loop_deps): Call it.
14588
14589 2011-06-13 Jeff Law <law@redhat.com>
14590
14591 * df-problems.c (df_lr_local_compute): Manually CSE
14592 PIC_OFFSET_TABLE_REGNUM.
14593 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
14594 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
14595
14596 2011-06-13 Jan Hubicka <jh@suse.cz>
14597
14598 * cgraphunit.c (handle_alias_pairs): New function.
14599 (cgraph_finalize_compilation_unit): Use it.
14600 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
14601 as externally visible.
14602
14603 2011-06-15 Richard Guenther <rguenther@suse.de>
14604
14605 * expr.c (expand_expr_real_2): Reduce all integral types to
14606 bitfield precision.
14607 (expand_expr_real_1): Likewise.
14608
14609 2011-06-15 Martin Jambor <mjambor@suse.cz>
14610
14611 PR tree-optimization/48613
14612 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
14613 ipa_node_params_vector is NULL.
14614
14615 2011-06-15 Jakub Jelinek <jakub@redhat.com>
14616
14617 PR debug/49382
14618 * dwarf2out.c (dw_loc_list_node): Add force field.
14619 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
14620 location in the list, even if it is modified before first real insn.
14621 (output_loc_list): Emit empty ranges with force flag set.
14622 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
14623
14624 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
14625
14626 PR target/49349
14627 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
14628 (fence_to_rewind). Use it to notice when bookkeeping will be placed
14629 above a fence. Update comments.
14630 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
14631 placed just above it. Do not allow NULL place_to_insert.
14632
14633 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
14634
14635 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
14636 (slpeel_tree_peel_loop_to_edge): Don't call
14637 remove_dead_stmts_from_loop.
14638 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14639 remove irrelevant pattern statements. For irrelevant statements
14640 check if it is the last statement of a detected pattern, use
14641 corresponding pattern statement instead.
14642 (destroy_loop_vec_info): No need to remove pattern statements,
14643 only free stmt_vec_info.
14644 (vect_transform_loop): For irrelevant statements check if it is
14645 the last statement of a detected pattern, use corresponding
14646 pattern statement instead.
14647 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
14648 pattern statements. Set basic block for the new statement.
14649 (vect_pattern_recog): Update documentation.
14650 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
14651 operands of pattern statements.
14652 (vectorizable_call): Fix printing. In case of a pattern statement
14653 use the lhs of the original statement when creating a dummy
14654 statement to replace the original call.
14655 (vect_analyze_stmt): For irrelevant statements check if it is
14656 the last statement of a detected pattern, use corresponding
14657 pattern statement instead.
14658 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
14659 statements use gsi of the original statement.
14660
14661 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14662
14663 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
14664 common/common-target-def.h.
14665 * target.def (default_target_flags, handle_option,
14666 supports_split_stack, optimization_table, init_struct,
14667 except_unwind_info, unwind_tables_default, have_named_sections):
14668 Move to common/common-target.def.
14669 * target.h (enum opt_levels, struct default_options): Move to
14670 common/common-target.h.
14671 * targhooks.c (default_except_unwind_info,
14672 dwarf2_except_unwind_info, sjlj_except_unwind_info,
14673 default_target_handle_option, empty_optimization_table): Move to
14674 common/common-targhooks.c.
14675 * targhooks.h (default_except_unwind_info,
14676 dwarf2_except_unwind_info, sjlj_except_unwind_info,
14677 default_target_handle_option, empty_optimization_table): Move to
14678 common/common-targhooks.h.
14679 * common/common-target-def.h: Include common/common-targhooks.h.
14680 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
14681 defined.
14682 * common/common-target.def (handle_option, option_init_struct,
14683 option_optimization_table, default_target_flags,
14684 except_unwind_info, supports_split_stack, unwind_tables_default,
14685 have_named_sections): Move from target.def.
14686 (HOOK_PREFIX): Undefine at end of file.
14687 * common/common-target.h: Include input.h.
14688 (enum opt_levels, struct default_options): Move from target.h.
14689 * common/common-targhooks.c, common/common-targhooks.h: New.
14690 * config.gcc (target_has_targetm_common): Default to yes.
14691 (moxie*): Set target_has_targetm_common=no.
14692 (hppa*-*-*): Don't set target_has_targetm_common=yes.
14693 * doc/tm.texi: Regenerate.
14694 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
14695 (C_TARGET_DEF_H): Add common/common-targhooks.h.
14696 (GCC_OBJS): Remove vec.o.
14697 (OBJS): Remove hooks.o and vec.o.
14698 (OBJS-libcommon-target): Add vec.o, hooks.o and
14699 common/common-targhooks.o.
14700 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
14701 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
14702 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
14703 cfglayout.o, $(out_object_file), $(common_out_object_file)):
14704 Update dependencies.
14705 (common/common-targhooks.o): New.
14706 * common/config/default-common.c: Include tm.h. Add FIXME comment.
14707 * common/config/pa/pa-common.c: Include more headers. Take
14708 copyright dates from pa.c.
14709 (pa_option_optimization_table, pa_handle_option,
14710 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
14711 TARGET_HANDLE_OPTION): Move from pa.c.
14712 * common/config/alpha/alpha-common.c,
14713 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
14714 common/config/bfin/bfin-common.c,
14715 common/config/cris/cris-common.c,
14716 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
14717 common/config/h8300/h8300-common.c,
14718 common/config/i386/i386-common.c,
14719 common/config/ia64/ia64-common.c,
14720 common/config/iq2000/iq2000-common.c,
14721 common/config/lm32/lm32-common.c,
14722 common/config/m32c/m32c-common.c,
14723 common/config/m32r/m32r-common.c,
14724 common/config/m68k/m68k-common.c,
14725 common/config/mcore/mcore-common.c,
14726 common/config/mep/mep-common.c,
14727 common/config/microblaze/microblaze-common.c,
14728 common/config/mips/mips-common.c,
14729 common/config/mmix/mmix-common.c,
14730 common/config/mn10300/mn10300-common.c,
14731 common/config/pdp11/pdp11-common.c,
14732 common/config/picochip/picochip-common.c,
14733 common/config/rs6000/rs6000-common.c,
14734 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
14735 common/config/score/score-common.c, common/config/sh/sh-common.c,
14736 common/config/sparc/sparc-common.c,
14737 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
14738 common/config/vax/vax-common.c,
14739 common/config/xstormy16/xstormy16-common.c,
14740 common/config/xtensa/xtensa-common.c: New.
14741 * config/alpha/alpha.c: Include common/common-target.h.
14742 (alpha_option_optimization_table, alpha_handle_option,
14743 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14744 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
14745 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
14746 * config/arm/arm.c (arm_option_optimization_table,
14747 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14748 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
14749 arm-common.c.
14750 * config/avr/avr.c (avr_option_optimization_table,
14751 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14752 to avr-common.c.
14753 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
14754 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
14755 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
14756 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
14757 * config/cris/cris.c (cris_option_optimization_table,
14758 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14759 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
14760 cris-common.c.
14761 * config/fr30/fr30.c (fr30_option_optimization_table,
14762 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
14763 to fr30-common.c.
14764 * config/frv/frv.c (frv_option_optimization_table,
14765 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
14766 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
14767 * config/h8300/h8300.c (h8300_option_optimization_table,
14768 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14769 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
14770 * config/i386/i386-protos.h (ix86_handle_option): Declare.
14771 * config/i386/i386.c: Include common/common-target.h.
14772 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
14773 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
14774 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
14775 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
14776 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
14777 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
14778 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
14779 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
14780 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
14781 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
14782 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
14783 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
14784 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
14785 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
14786 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
14787 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
14788 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
14789 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
14790 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
14791 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
14792 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
14793 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
14794 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
14795 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
14796 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
14797 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
14798 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
14799 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
14800 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
14801 ix86_option_optimization_table, ix86_option_init_struct,
14802 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
14803 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14804 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
14805 i386-common.c.
14806 * config/i386/t-i386 (i386.o): Update dependencies.
14807 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
14808 * config/ia64/ia64.c (ia64_option_optimization_table,
14809 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14810 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14811 ia64_handle_option): Move to ia64-common.c.
14812 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
14813 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14814 * config/lm32/lm32.c (lm32_option_optimization_table,
14815 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14816 to lm32-common.c.
14817 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14818 m32c-common.c.
14819 * config/m32r/m32r.c (m32r_option_optimization_table,
14820 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14821 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14822 m32r_handle_option): Move to m32r-common.c.
14823 (m32r_memory_move_cost): Remove comment referring to
14824 TARGET_HANDLE_OPTION.
14825 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14826 Move to m68k-common.c.
14827 * config/mcore/mcore.c (mcore_option_optimization_table,
14828 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14829 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14830 * config/mep/mep.c (mep_option_optimization_table,
14831 mep_handle_option, TARGET_HANDLE_OPTION,
14832 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14833 Move to mep-common.c.
14834 * config/microblaze/microblaze.c
14835 (microblaze_option_optimization_table,
14836 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14837 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14838 * config/mips/mips.c (mips_handle_option,
14839 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14840 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14841 mips-common.c.
14842 * config/mmix/mmix.c (mmix_option_optimization_table,
14843 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14844 Move to mmix-common.c.
14845 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14846 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14847 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14848 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14849 * config/pa/pa.c: Include common/common-target.h.
14850 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14851 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14852 pa_handle_option): Move to pa-common.c.
14853 (pa_option_override): Use targetm_common.except_unwind_info.
14854 (pa_asm_output_mi_thunk, pa_function_section): Use
14855 targetm_common.have_named_sections.
14856 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14857 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14858 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14859 pdp11_handle_option, pdp11_option_init_struct): Move to
14860 pdp11-common.c.
14861 * config/picochip/picochip.c (picochip_option_optimization_table,
14862 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14863 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14864 * config/rs6000/rs6000.c: Include common/common-target.h.
14865 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14866 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14867 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14868 rs6000_handle_option): Move to rs6000-common.c.
14869 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14870 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14871 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14872 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14873 * config/s390/s390.c (processor_flags_table,
14874 s390_option_optimization_table, s390_option_init_struct,
14875 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14876 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14877 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14878 * config/s390/s390.h (processor_flags_table): Declare.
14879 * config/score/score.c (score_option_optimization_table,
14880 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14881 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14882 score_handle_option): Move to score-common.c.
14883 * config/sh/sh.c (sh_option_optimization_table,
14884 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14885 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14886 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14887 * config/sparc/sparc.c: Include common/common-target.h.
14888 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14889 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14890 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14891 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14892 spu_option_init_struct): Move to spu-common.c.
14893 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14894 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14895 * config/v850/v850.c (small_memory_physical_max,
14896 v850_handle_memory_optionn v850_handle_option,
14897 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14898 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14899 v850-common.c.
14900 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14901 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14902 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14903 Move to xtensa-common.c.
14904 * cfglayout.c: Include common/common-target.h.
14905 (fixup_reorder_chain): Use targetm_common.have_named_sections.
14906 * cfgrtl.c: Include common/common-target.h.
14907 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14908 targetm_common.have_named_sections.
14909 * dbxout.c: Include common/common-target.h.
14910 (dbxout_function_end): Use targetm_common.have_named_sections.
14911 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14912 targetm_common.except_unwind_info.
14913 * dwarf2out.c: Include common/common-target.h.
14914 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14915 dwarf2out_begin_prologue, dwarf2out_frame_init,
14916 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14917 targetm_common.except_unwind_info.
14918 * except.c: Include common/common-target.h.
14919 (init_eh, finish_eh_generation,
14920 output_one_function_exception_table): Use
14921 targetm_common.except_unwind_info.
14922 (switch_to_exception_section): Use targetm_common.have_named_sections.
14923 * explow.c: Include common/common-target.h.
14924 * expr.c: Include common/common-target.h.
14925 (build_personality_function): Use targetm_common.except_unwind_info.
14926 * function.c: Include common/common-target.h.
14927 (expand_function_end): Use targetm_common.except_unwind_info.
14928 * haifa-sched.c: Include common/common-target.h.
14929 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14930 * lto-opts.c: Include common/common-target.h instead of target.h.
14931 (lto_reissue_options): Use targetm_common.handle_option.
14932 * opts.c: Include common/common-target.h.
14933 (target_handle_option): Use targetm_common.handle_option.
14934 (init_options_struct): Update comment referring to
14935 targetm.target_option.optimization. Use
14936 targetm_common.default_target_flags,
14937 targetm_common.unwind_tables_default and
14938 targetm_common.option_init_struct.
14939 (default_options_optimization): Use
14940 targetm_common.option_optimization_table.
14941 (finish_options): Use targetm_common.except_unwind_info,
14942 targetm_common.unwind_tables_default,
14943 targetm_common.have_named_sections and
14944 targetm_common.supports_split_stack.
14945 * toplev.c: Include common/common-target.h.
14946 (process_options): Use targetm_common.have_named_sections.
14947 * tree-tailcall.c: Include common/common-target.h.
14948 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14949 * tree.c: Include common/common-target.h.
14950 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14951 * varasm.c: Include common/common-target.h.
14952 (resolve_unique_section, hot_function_section,
14953 default_function_section): Use targetm_common.have_named_sections.
14954
14955 2011-06-14 Easwaran Raman <eraman@google.com>
14956
14957 PR rtl-optimization/44194
14958 * dse.c: Include tree-flow.h
14959 (insn_info): Add new field non_frame_wild_read.
14960 (group_info): Add new fields escaped_n and escaped_p.
14961 (kill_on_calls): New variable.
14962 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14963 (dse_step0): Initialize kill_on_calls.
14964 (can_escape): New function.
14965 (set_usage_bits): Add additional parameter; record information
14966 about escaped locations.
14967 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14968 (dse_step2_nospill): Set kill_on_calls based on
14969 group->escaped_n and group->escaped_n.
14970 (add_wild_read): Refactor into...
14971 (reset_active_stores): ... New function, and
14972 (free_read_records): ... New function.
14973 (add_non_frame_wild_read): New function.
14974 (scan_insn): Call add_non_frame_wild_read on non-const calls.
14975 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14976 (dse_step5_nospill): Call scan_reads_nospill for instructions
14977 marked as non_frame_wild_read.
14978 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14979
14980 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14981
14982 * common/common-target-def.h, common/common-target.def,
14983 common/common-target.h, common/config/default-common.c,
14984 common/config/pa/pa-common.c: New files.
14985 * Makefile.in (common_out_file, common_out_object_file,
14986 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14987 (OBJS-libcommon-target): Include $(common_out_object_file).
14988 (prefix.o): Update dependencies.
14989 ($(common_out_object_file), common/common-target-hooks-def.h,
14990 s-common-target-hooks-def-h): New.
14991 (s-tm-texi): Also check timestamp on common-target.def.
14992 (build/genhooks.o): Update dependencies.
14993 * config.gcc (common_out_file, target_has_targetm_common): Define.
14994 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14995 TARGET_ALWAYS_STRIP_DOTDOT.
14996 * configure.ac (common_out_object_file): Define.
14997 (common_out_file, common_out_object_file): Substitute.
14998 (common): Create directory.
14999 * configure: Regenerate.
15000 * doc/tm.texi.in (targetm_common): Document.
15001 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
15002 * doc/tm.texi: Regenerate.
15003 * genhooks.c (hook_array): Also include common/common-target.def.
15004 * prefix.c (tm.h): Don't include.
15005 (common/common-target.h): Include.
15006 (ALWAYS_STRIP_DOTDOT): Don't define.
15007 (update_path): Use targetm_common.always_strip_dotdot instead of
15008 ALWAYS_STRIP_DOTDOT.
15009 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
15010
15011 2011-06-14 David Li <davidxl@google.com>
15012
15013 * passes.c (execute_function_todo): Remove TODO_dump_func.
15014 (execute_one_pass): Remove TODO_dump_func.
15015 (execute_function_dump): New function.
15016 * tree-vrp.c: Remove TODO_dump_func.
15017 * regrename.c: Remove TODO_dump_func.
15018 * fwprop.c: Remove TODO_dump_func.
15019 * tree-into-ssa.c: Remove TODO_dump_func.
15020 * tree-complex.c: Remove TODO_dump_func.
15021 * tracer.c: Remove TODO_dump_func.
15022 * tree-loop-distribution.c: Remove TODO_dump_func.
15023 * postreload-gcse.c: Remove TODO_dump_func.
15024 * postreload.c: Remove TODO_dump_func.
15025 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
15026 * tree-tailcall.c: Remove TODO_dump_func.
15027 * ipa-cp.c: Remove TODO_dump_func.
15028 * final.c: Remove TODO_dump_func.
15029 * tree-emutls.c: Remove TODO_dump_func.
15030 * omp-low.c: Remove TODO_dump_func.
15031 * tree-ssa-dse.c: Remove TODO_dump_func.
15032 * tree-ssa-uncprop.c: Remove TODO_dump_func.
15033 * auto-inc-dec.c: Remove TODO_dump_func.
15034 * reorg.c: Remove TODO_dump_func.
15035 * tree-ssa-copyrename.c: Remove TODO_dump_func.
15036 * tree-ssa-ccp.c: Remove TODO_dump_func.
15037 * compare-elim.c: Remove TODO_dump_func.
15038 * mode-switching.c: Remove TODO_dump_func.
15039 * modulo-sched.c: Remove TODO_dump_func.
15040 * tree-call-cdce.c: Remove TODO_dump_func.
15041 * cse.c: Remove TODO_dump_func.
15042 * web.c: Remove TODO_dump_func.
15043 * tree-stdarg.c: Remove TODO_dump_func.
15044 * lto-streamer-out.c: Remove TODO_dump_func.
15045 * tree-ssa-math-opts.c: Remove TODO_dump_func.
15046 * tree-ssa-dom.c: Remove TODO_dump_func.
15047 * tree-nrv.c: Remove TODO_dump_func.
15048 * loop-init.c: Remove TODO_dump_func.
15049 * gimple-low.c: Remove TODO_dump_func.
15050 * ipa-inline.c: Remove TODO_dump_func.
15051 * tree-ssa-sink.c: Remove TODO_dump_func.
15052 * jump.c: Remove TODO_dump_func.
15053 * ifcvt.c: Remove TODO_dump_func.
15054 * tree-ssa-loop.c: Remove TODO_dump_func.
15055 * recog.c: Remove TODO_dump_func.
15056 * dse.c: Remove TODO_dump_func.
15057 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
15058 * matrix-reorg.c: Remove TODO_dump_func.
15059 * tree-eh.c: Remove TODO_dump_func.
15060 * regmove.c: Remove TODO_dump_func.
15061 * function.c: Remove TODO_dump_func.
15062 * tree-vectorizer.c: Remove TODO_dump_func.
15063 * ipa-split.c: Remove TODO_dump_func.
15064 * gcse.c: Remove TODO_dump_func.
15065 * tree-if-conv.c: Remove TODO_dump_func.
15066 * init-regs.c: Remove TODO_dump_func.
15067 * tree-ssa-phiopt.c: Remove TODO_dump_func.
15068 * implicit-zee.c: Remove TODO_dump_func.
15069 * lower-subreg.c: Remove TODO_dump_func.
15070 * bt-load.c: Remove TODO_dump_func.
15071 * tree-dfa.c: Remove TODO_dump_func.
15072 * except.c: Remove TODO_dump_func.
15073 * emit-rtl.c: Remove TODO_dump_func.
15074 * store-motion.c: Remove TODO_dump_func.
15075 * cfgexpand.c: Remove TODO_dump_func.
15076 * tree-cfgcleanup.c: Remove TODO_dump_func.
15077 * cfgcleanup.c: Remove TODO_dump_func.
15078 * tree-ssa-pre.c: Remove TODO_dump_func.
15079 * tree-sra.c: Remove TODO_dump_func.
15080 * tree-mudflap.c: Remove TODO_dump_func.
15081 * tree-ssa-copy.c: Remove TODO_dump_func.
15082 * cfglayout.c: Remove TODO_dump_func.
15083 * tree-ssa-forwprop.c: Remove TODO_dump_func.
15084 * tree-ssa-dce.c: Remove TODO_dump_func.
15085 * ira.c: Remove TODO_dump_func.
15086 * tree-ssa.c: Remove TODO_dump_func.
15087 * integrate.c: Remove TODO_dump_func.
15088 * tree-optimize.c: Remove TODO_dump_func.
15089 * tree-ssa-phiprop.c: Remove TODO_dump_func.
15090 * tree-object-size.c: Remove TODO_dump_func.
15091 * combine.c: Remove TODO_dump_func.
15092 * bb-reorder.c: Remove TODO_dump_func.
15093 * cprop.c: Remove TODO_dump_func.
15094 * var-tracking.c: Remove TODO_dump_func.
15095 * tree-profile.c: Remove TODO_dump_func.
15096 * tree-vect-generic.c: Remove TODO_dump_func.
15097 * reg-stack.c: Remove TODO_dump_func.
15098 * sched-rgn.c: Remove TODO_dump_func.
15099 * tree-ssa-structalias.c: Remove TODO_dump_func.
15100 * tree-switch-conversion.c: Remove TODO_dump_func.
15101 * tree-cfg.c: Remove TODO_dump_func.
15102 * tree-ssa-reassoc.c: Remove TODO_dump_func.
15103 * combine-stack-adj.c: Remove TODO_dump_func.
15104 * dce.c: Remove TODO_dump_func.
15105 * tree-ssanames.c: Remove TODO_dump_func.
15106 * regcprop.c: Remove TODO_dump_func.
15107
15108 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
15109
15110 PR middle-end/47364
15111 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
15112 and properly handle result not in Pmode.
15113
15114 2011-06-14 Robert Millan <rmh@gnu.org>
15115
15116 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
15117 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
15118 `config/linux.h'.
15119
15120 * config/i386/kfreebsd-gnu64.h: New file.
15121 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
15122 with `i386/kfreebsd-gnu64.h'.
15123
15124 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
15125 (GNU_USER_LINK_EMULATION64): New macros.
15126 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
15127 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
15128 of hardcoding `elf_i386' and `elf_x86_64'.
15129
15130 2011-06-14 Nick Clifton <nickc@redhat.com>
15131
15132 PR target/49403
15133 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
15134
15135 PR target/49402
15136 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
15137
15138 2011-06-14 Jakub Jelinek <jakub@redhat.com>
15139
15140 PR fortran/49103
15141 * tree.h (DECL_NONSHAREABLE): Define.
15142 (struct tree_decl_common): Change decl_common_unused to
15143 decl_nonshareable_flag.
15144 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
15145 Ignore vars with DECL_NONSHAREABLE bit set.
15146 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
15147 on stores to automatic aggregate vars.
15148
15149 PR rtl-optimization/49390
15150 Revert:
15151 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
15152
15153 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
15154 MEM_ALIAS_SET.
15155
15156 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
15157 Tom de Vries <tom@codesourcery.com>
15158
15159 PR target/45098
15160 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
15161 Document changed semantics.
15162 (max_stmt_executions, max_stmt_executions_int): Declare.
15163 * tree-data-ref.c (estimated_loop_iterations)
15164 (estimated_loop_iterations_int): Move functions...
15165 * tree-ssa-loop-niter.c (estimated_loop_iterations)
15166 (estimated_loop_iterations_int): here.
15167 (record_estimate): Change nb_iterations_upper_bound and
15168 nb_iterations_estimate semantics.
15169 (max_stmt_executions, max_stmt_executions_int): New function.
15170 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
15171 (max_stmt_executions_tree): this.
15172 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
15173 estimated_loop_iterations_tree.
15174 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
15175 max_stmt_executions_int instead of estimated_loop_iterations_int.
15176 * predict.c (predict_loops): Idem.
15177 * tree-parloops.c (parallelize_loops): Idem.
15178 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
15179 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
15180 (init_omega_for_ddr_1): Idem.
15181 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
15182 (loop_prefetch_arrays): Idem
15183 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
15184 max_stmt_executions instead of estimated_loop_iterations.
15185 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
15186 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
15187 instead of nb_iterations_upper_bound.
15188
15189 2011-06-13 Jan Hubicka <jh@suse.cz>
15190
15191 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
15192
15193 2011-06-14 Richard Henderson <rth@redhat.com>
15194
15195 PR debug/48459
15196 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
15197 (based_loc_descr): Assert it's true.
15198 (compute_frame_pointer_to_fb_displacement): Set it, rather than
15199 aborting immediately.
15200
15201 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
15202 Mingfeng Wu <mingfeng@faraday-tech.com>
15203
15204 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
15205
15206 2011-06-13 Jan Hubicka <jh@suse.cz>
15207
15208 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
15209
15210 2011-06-13 Jan Hubicka <jh@suse.cz>
15211
15212 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
15213 similarly to DECL_COMDAT.
15214 * cgraphunit.c (cgraph_analyze_function): Likewise.
15215 * ipa.c (function_and_variable_visibility): Likewise.
15216
15217 2011-06-13 Jan Hubicka <jh@suse.cz>
15218
15219 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
15220 BINFO_VIRTUALS when streaming for ltrans unit.
15221
15222 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
15223
15224 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
15225 (movdi_internal64): Same.
15226
15227 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
15228
15229 PR target/44618
15230 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
15231 a set of similar patterns, where the MATCH_OPERAND for the function
15232 argument is replaced with individual references to hardware registers.
15233 (save_fpregs_<mode>): Ditto
15234 (restore_gpregs_<mode>): Ditto
15235 (return_and_restore_gpregs_<mode>): Ditto
15236 (return_and_restore_fpregs_<mode>): Ditto
15237 (return_and_restore_fpregs_aix_<mode>): Ditto
15238
15239 2011-06-13 Jan Hubicka <jh@suse.cz>
15240
15241 * ipa-utils.c (postorder_stack): New structure.
15242 (ipa_reverse_postorder): Handle aliases.
15243
15244 2011-06-13 Jan Hubicka <jh@suse.cz>
15245
15246 * ipa-inline.c (reset_edge_caches): Walk aliases.
15247 (update_caller_keys): Do not test inlinability of aliases.
15248 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
15249 (do_estimate_growth): Fix typo.
15250
15251 2011-06-13 Jan Hubicka <jh@suse.cz>
15252
15253 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
15254 (can_remove_node_now_p): ... here; handle same comdat groups.
15255 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
15256 (inline_call): Update use of can_remove_node_now_p.
15257
15258 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15259
15260 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
15261 condition to disallow non-identical memory locations.
15262 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
15263 preference to bit manipulation instructions.
15264
15265 2011-06-13 Jan Hubicka <jh@suse.cz>
15266
15267 * cgraph.c (cgraph_for_node_thunks_and_aliases,
15268 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
15269 (nonremovable_p): New function.
15270 (cgraph_can_remove_if_no_direct_calls_p): New function.
15271 (used_from_object_file_p): New functoin.
15272 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
15273 references from aliases.
15274 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
15275 * ipa-inline.c (check_caller_edge): New function.
15276 (want_inline_function_called_once_p): Use it; accept aliases called
15277 once, too.
15278 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
15279
15280 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15281
15282 PR target/48454
15283 * config/arm/neon.md (vec_pack_trunc): Set the lengths
15284 correctly for the case with Quad vectors.
15285
15286 2011-06-13 Jakub Jelinek <jakub@redhat.com>
15287 Ira Rosen <ira.rosen@linaro.org>
15288
15289 PR tree-optimization/49352
15290 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
15291 all, make sure loop_use_stmt after the loop is a def stmt of a used
15292 SSA_NAME that is the only one defined inside of the loop. Don't
15293 check for COND_EXPR and GIMPLE_BINARY_RHS.
15294 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
15295 check_reduction is true.
15296
15297 2011-06-11 Jan Hubicka <jh@suse.cz>
15298
15299 PR middle-end/49373
15300 * ipa.c (cgraph_externally_visible_p): Check resolution info.
15301
15302 2011-06-11 Jan Hubicka <jh@suse.cz>
15303
15304 PR middle-end/48836
15305 * ipa-inline-transform.c: Include tree-pass.h
15306 (inline_transform): Set TODO_update_ssa_only_virtuals.
15307 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
15308
15309 2011-06-11 Jan Hubicka <jh@suse.cz>
15310
15311 PR middle-end/49378
15312 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
15313 aliases and thunks.
15314
15315 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
15316
15317 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
15318 Take number of iterations to peel into account for equally frequent
15319 misalignment values.
15320
15321 2011-06-11 Jan Hubicka <jh@suse.cz>
15322
15323 * lto-streamer-out.c (produce_symtab): Stream out the newly
15324 represented aliases.
15325
15326 2011-06-11 Jan Hubicka <jh@suse.cz>
15327
15328 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
15329 varying args.
15330 (ipa_update_after_lto_read): Likewise.
15331 (ipa_write_node_info): Do not sream call_with_var_arguments.
15332 (ipa_read_node_info): Likewise.
15333
15334 2011-06-11 Jan Hubicka <jh@suse.cz>
15335
15336 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
15337
15338 2011-06-11 Jan Hubicka <jh@suse.cz>
15339
15340 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
15341 (lto_symtab_resolve_can_prevail_p): Likewise.
15342 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
15343 * cgraph.c (same_body_aliases_done): New global var.
15344 (cgraph_same_body_alias_1): Rename to ...
15345 (cgraph_create_function_alias): ... this one; reorg to new
15346 representation.
15347 (cgraph_same_body_alias): Use cgraph_create_function_alias;
15348 record references when asked to.
15349 (cgraph_add_thunk): Fix formating.
15350 (cgraph_get_node): Kill same body alias code.
15351 (cgraph_node_for_asm): Likewise.
15352 (cgraph_remove_same_body_alias): Remove.
15353 (cgraph_remove_node): Kill same body alias code.
15354 (cgraph_mark_address_taken_node): Mark also the aliased function
15355 as having address taken.
15356 (dump_cgraph_node): Dump same body aliases.
15357 (cgraph_for_node_thunks_and_aliases): Update for new alias
15358 representation.
15359 (cgraph_for_node_and_aliases): Likewise.
15360 * cgraph.h (same_body): Kll pointer.
15361 (same_body_alias): Update comment.
15362 (same_body_aliases_done): Declare.
15363 (cgraph_remove_same_body_alias): Remove declaration.
15364 (cgraph_create_function_alias): Declare.
15365 (cgraph_process_same_body_aliases): Declare.
15366 (cgraph_function_with_gimple_body_p): Check for alias.
15367 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
15368 (cgraph_alias_aliased_node): New function.
15369 (cgraph_function_node): Update for new aliases.
15370 (cgraph_function_or_thunk_node): Likewise.
15371 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
15372 (inline_call): Remove dead aliases.
15373 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
15374 name hack for same body aliases.
15375 (clone_of_p): Look through aliases.
15376 (verify_cgraph_node): Verify aliases.
15377 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
15378 (cgraph_process_same_body_aliases): New function.
15379 (process_function_and_variable_attributes): Disable weakref warning on
15380 alias.
15381 (cgraph_analyze_functions): Handle aliases.
15382 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
15383 (assemble_thunks): Rename to ...
15384 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
15385 (cgraph_expand_function): Remove alias output code.
15386 (cgraph_output_in_order): Skip aliases.
15387 (cgraph_preserve_function_body_p): Aliases don't need preserving.
15388 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
15389 (ipa_record_reference): Do not assert on alias references.
15390 (ipa_ref_has_aliases_p): New function.
15391 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
15392 (ipa_ref_has_aliases_p): Declare.
15393 * lto-cgraph.c (lto_output_node): Handle aliases.
15394 (input_node): Likewise.
15395 * lto-streamer-out.c (lto_output): Skip aliases.
15396 (produce_symtab): Kill same_body_alias code.
15397 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
15398 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
15399 * ipa-inline.c (update_caller_keys): Walk aliases.
15400 (inline_small_functions): Fix thinko in previous patch.
15401 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
15402 (function_and_variable_visibility): Do not walk same body aliases.
15403 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
15404 (ipa_pta_execute): Use it.
15405
15406 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
15407
15408 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
15409 (*vec_dupv2df): Rename from vec_dupv2df.
15410 (vec_dupv2df): New expander.
15411
15412 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
15413
15414 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
15415
15416 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
15417
15418 * config/i386/i386.md: Use default value in "isa" attribute.
15419 * config/i386/sse.md: Ditto.
15420 * config/i386/mmx.md: Ditto.
15421
15422 2011-06-10 Wei Guozhi <carrot@google.com>
15423
15424 PR target/45335
15425 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
15426 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
15427 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
15428 related peephole2.
15429 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
15430 related peephole2.
15431 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
15432 (arm_legitimate_ldrd_p): New prototype.
15433 (arm_output_ldrd): New prototype.
15434 * config/arm/arm.c (arm_check_ldrd_operands): New function.
15435 (arm_legitimate_ldrd_p): New function.
15436 (arm_output_ldrd): New function.
15437
15438 2011-06-10 David Li <davidxl@google.com>
15439
15440 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15441 * passes.c (passr_eq): New function.
15442 (create_pass_tab): New function.
15443 (pass_traverse): New function.
15444 (dump_one_pass): New function.
15445 (dump_pass_list): New function.
15446 (dump_passes): New function.
15447
15448 2011-06-10 Jan Hubicka <jh@suse.cz>
15449
15450 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
15451 setting the nothrow flag.
15452 * ipa-reference.c (propagate): Skip aliases.
15453 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
15454 (propagate_nothrow): Skip aliases; do not update cgraph.
15455 (local_pure_const): Do not update cgraph.
15456 * tree-profile.c (tree_profiling): Do fixup_cfg.
15457
15458 2011-06-10 Jan Hubicka <jh@suse.cz>
15459
15460 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
15461 (cgraph_local_node_p): ... here; handle aliases.
15462 (has_addr_references_p): Break out from ...;
15463 (cgraph_remove_unreachable_nodes) ... here.
15464
15465 2011-06-10 Jan Hubicka <jh@suse.cz>
15466
15467 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
15468 * common.opt (flag_inline_functions_called_once): Do not
15469 initialize to 1.
15470
15471 2011-06-10 Jan Hubicka <jh@suse.cz>
15472
15473 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
15474 (ipcp_initialize_node_lattices): Do not deal with aliases;
15475 Do not try to propagate through thunks.
15476 (ipcp_change_tops_to_bottom): Do not deal with aliases.
15477
15478 2011-06-10 Jan Hubicka <jh@suse.cz>
15479
15480 * ipa-prop.c (ipa_write_node_info): Stream jump functions
15481 for indirect calls.
15482 (ipa_read_node_info): Likewise.
15483
15484 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15485
15486 PR lto/49302
15487 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
15488 (build_and_insert_call): Likewise.
15489 (build_and_insert_ref): New.
15490 (gimple_expand_builtin_pow): Minor cleanup.
15491 (gimple_expand_builtin_cabs): New.
15492 (execute_cse_sincos): Add case for BUILT_IN_CABS.
15493
15494 2011-06-10 Jan Hubicka <jh@suse.cz>
15495
15496 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
15497 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
15498 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
15499 (ipcp_propagate_stage): Skip aliases when propagating.
15500 (ipcp_need_redirect_p): Skip aliases.
15501 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
15502 collect_callers_of_node.
15503 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
15504 for aliases.
15505 (ipa_compute_jump_functions): Look through aliases.
15506
15507 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15508
15509 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
15510
15511 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15512
15513 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
15514 Adjust comments.
15515 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
15516
15517 2011-06-10 Jan Hubicka <jh@suse.cz>
15518
15519 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
15520 Update call of gimple_get_virt_method_for_binfo.
15521 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
15522 refuse_thunks parameter.
15523 (gimple_fold_call): Update.
15524 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
15525
15526 2011-06-10 Jan Hubicka <jh@suse.cz>
15527
15528 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
15529 (not_all_callers_have_enough_arguments_p): ... this one; turn into
15530 worker for cgraph_for_node_and_aliases.
15531 (convert_callers_for_node): Break out from ...
15532 (convert_callers): ... here.
15533 (modify_function): Use collect_callers_of_node.
15534 (ipa_early_sra): Use cgraph_for_node_and_aliases.
15535
15536 2011-06-10 Richard Guenther <rguenther@suse.de>
15537
15538 PR tree-optimization/49361
15539 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
15540 when not already in gimple form.
15541
15542 2011-06-10 Richard Guenther <rguenther@suse.de>
15543
15544 PR bootstrap/49344
15545 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
15546 FOR_EACH_PHI_OR_STMT_USE.
15547
15548 2011-06-10 Jan Hubicka <jh@suse.cz>
15549
15550 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
15551 (clone_inlined_nodes): ... here.
15552 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
15553 to real destination prior inlining.
15554 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
15555 can_early_inline_edge_p, want_early_inline_function_p,
15556 want_early_inline_function_p, want_inline_small_function_p,
15557 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
15558 edge_badness, update_all_callee_keys, lookup_recursive_calls,
15559 add_new_edges_to_heap, inline_small_functions, flatten_function,
15560 inline_always_inline_functions, early_inline_small_functions): Use
15561 cgraph_function_or_thunk_node.
15562 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
15563 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
15564 (do_estimate_edge_growth_1): Break out from ...
15565 (do_estimate_growth) ... here; walk aliases.
15566 (inline_generate_summary): Skip aliases.
15567
15568 2011-06-10 Richard Guenther <rguenther@suse.de>
15569
15570 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
15571 forward when combining, visit inserted stmts when a stmt was changed.
15572
15573 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
15574
15575 * tree.h (error_operand_p): Add.
15576 * dbxout.c (dbxout_type_fields): Use the latter.
15577 * c-decl.c (add_stmt): Likewise.
15578 * gimplify.c (omp_add_variable, omp_notice_variable,
15579 gimplify_scan_omp_clauses): Likewise.
15580
15581 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
15582
15583 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
15584 when a value is actually passed in regs.
15585
15586 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
15587 Laurent Rougé <laurent.rouge@menta.fr>
15588
15589 * doc/invoke.texi (SPARC options): Add -mflat.
15590 * config/sparc/sparc.opt: Likewise.
15591 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
15592 (sparc_flat_expand_prologue): Declare.
15593 (sparc_flat_expand_epilogue): Likewise.
15594 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
15595 (CPP_ENDIAN_SPEC): Replace with...
15596 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
15597 (CPP_SPEC): Adjust to above change.
15598 (EXTRA_SPECS): Likewise.
15599 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
15600 (INCOMING_REGNO): Likewise.
15601 (OUTGOING_REGNO): Likewise.
15602 (LOCAL_REGNO): Likewise.
15603 (SETUP_FRAME_ADDRESSES): Likewise.
15604 (FIXED_REGISTERS): Set 0 for %fp.
15605 (CALL_USED_REGISTERS): Likewise.
15606 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
15607 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
15608 (RETURN_ADDR_REGNUM): Define.
15609 (RETURN_ADDR_RTX): Use it.
15610 (INCOMING_RETURN_ADDR_REGNUM): Define.
15611 (INCOMING_RETURN_ADDR_RTX): Use it.
15612 (DWARF_FRAME_RETURN_COLUMN): Likewise.
15613 (EH_RETURN_REGNUM): Define.
15614 (EH_RETURN_STACKADJ_RTX): Use it.
15615 (EH_RETURN_HANDLER_RTX): Delete.
15616 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
15617 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
15618 Delete.
15619 (struct machine_function): Add frame_size, apparent_frame_size,
15620 frame_base_reg, frame_base_offset, n_global_fp_regs and
15621 save_local_in_regs_p fields.
15622 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
15623 sparc_frame_base_offset, sparc_n_global_fp_regs,
15624 sparc_save_local_in_regs_p): New macros.
15625 (sparc_option_override): Error out if -fcall-saved-REG is specified
15626 for Out registers.
15627 (eligible_for_restore_insn): Fix formatting.
15628 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
15629 (eligible_for_sibcall_delay): Likewise.
15630 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
15631 (sparc_legitimate_address_p): Adjust to above change.
15632 (save_global_or_fp_reg_p): New predicate.
15633 (return_addr_reg_needed_p): Likewise.
15634 (save_local_or_in_reg_p): Likewise.
15635 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
15636 (SORR_SAVE, SORR_RESTORE): Delete.
15637 (sorr_pred_t): New typedef.
15638 (sorr_act_t): New enum.
15639 (save_or_restore_regs): Rename to...
15640 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
15641 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
15642 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
15643 mechanism. Add CFI information for double-word saves in 32-bit mode.
15644 (emit_adjust_base_to_offset): New function extracted from...
15645 (emit_save_or_restore_regs): ...this. Rename the rest to...
15646 (emit_save_or_restore_regs_global_fp_regs): ...this.
15647 (emit_save_or_restore_regs_local_in_regs): New function.
15648 (gen_create_flat_frame_[123]): New functions.
15649 (sparc_expand_prologue): Use SIZE local variable. Adjust.
15650 (sparc_flat_expand_prologue): New function.
15651 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
15652 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
15653 (sparc_flat_expand_epilogue): New function.
15654 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
15655 (output_return): Likewise.
15656 (output_sibcall): Likewise.
15657 (sparc_output_mi_thunk): Likewise.
15658 (sparc_frame_pointer_required): Likewise.
15659 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
15660 function optimization.
15661 * config/sparc/sparc.md (flat): New attribute.
15662 (prologue): Add TARGET_FLAT handling.
15663 (save_register_window): Disable if TARGET_FLAT.
15664 (create_flat_frame_[123]): New patterns.
15665 (epilogue): Add TARGET_FLAT handling.
15666 (sibcall_epilogue): Likewise.
15667 (eh_return): New expander.
15668 (eh_return_internal): New insn and splitter.
15669 (return_internal): Add TARGET_FLAT handling.
15670 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
15671 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
15672 (nonlocal_goto): Add TARGET_FLAT handling.
15673 * config/sparc/t-elf: Add -mflat multilib.
15674 * config/sparc/t-leon: Likewise.
15675
15676 2011-06-10 Jan Hubicka <jh@suse.cz>
15677
15678 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
15679 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
15680 (self_recursive_p): Use cgraph_function_node.
15681 (propagate_pure_const): Likewise.
15682 (propagate_nothrow): Likewise.
15683 * ipa-reference.c (ipa_reference_get_not_read_global): Use
15684 cgraph_function_node.
15685 (propagate_bits): Likewise.
15686 (propagate): Likewise.
15687
15688 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15689 Richard Earnshaw <rearnsha@arm.com>
15690
15691 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
15692 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
15693 (*thumb2_movdi_vfp): Delete.
15694 (*arm_movdi_vfp_cortexa8): Delete.
15695 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
15696 (*movdi_vfp_cortexa8): Likewise.
15697
15698 2011-06-10 Richard Guenther <rguenther@suse.de>
15699
15700 * stor-layout.c (initialize_sizetypes): Give names to all
15701 sizetype kinds.
15702
15703 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
15704
15705 PR tree-optimization/49318
15706 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
15707 irrelevant pattern statements.
15708
15709 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15710
15711 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
15712
15713 PR bootstrap/49354
15714 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
15715 to last assignment.
15716
15717 2011-06-09 Jan Hubicka <jh@suse.cz>
15718
15719 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
15720 do not recompute reachable flag.
15721 (cgraph_finalize_function, cgraph_analyze_functions): Set
15722 redefined_extern_inline here.
15723
15724 2011-06-09 Jan Hubicka <jh@suse.cz>
15725
15726 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
15727 (cgraph_only_called_directly_p): ... this one; bring offline.
15728 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
15729 varpool_used_from_object_file_p): Drop names from the declaratoin.
15730 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
15731 collect_callers_of_node): New.
15732 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
15733 (cgraph_edge_recursive_p): Use cgraph_function_node.
15734 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
15735 (cgraph_node_cannot_be_local_p_1): Break out from ...
15736 (cgraph_node_can_be_local_p): ... here; walk aliases.
15737 (cgraph_for_node_thunks_and_aliases): New function.
15738 (cgraph_for_node_and_aliases): New function.
15739 (cgraph_make_node_local_1): Break out from ...
15740 (cgraph_make_node_local) ... here; use
15741 cgraph_for_node_thunks_and_aliases.
15742 (cgraph_set_nothrow_flag_1): Break out from ...
15743 (cgraph_set_nothrow_flag) ... here;
15744 use cgraph_for_node_thunks_and_aliases.
15745 (cgraph_set_const_flag_1): Break out from ...
15746 (cgraph_set_const_flag) ... here;
15747 use cgraph_for_node_thunks_and_aliases.
15748 (cgraph_set_pure_flag_1): Break out from ...
15749 (cgraph_set_pure_flag) ... here;
15750 use cgraph_for_node_thunks_and_aliases.
15751 (cgraph_propagate_frequency_1): Break out from ...
15752 (cgraph_propagate_frequency) ... here; use
15753 cgraph_for_node_thunks_and_aliases.
15754 (cgraph_used_from_object_file_p): Do not care about aliases.
15755 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
15756 New functions.
15757 (collect_callers_of_node_1, collect_callers_of_node): New functions.
15758
15759 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15760
15761 PR rtl-optimization/49154
15762 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
15763 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
15764 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
15765 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
15766 * config/cris/cris.h (cris_register_move_cost): Remove
15767 !TARGET_V32 code. Tweak comments.
15768
15769 2011-06-09 Jan Hubicka <jh@suse.cz>
15770
15771 * cgraphbuild.c (record_eh_tables): Mark personality function as having
15772 address taken.
15773
15774 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15775
15776 PR rtl-optimization/49154
15777 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
15778 is a matching slot in the hashtable, assign it to classes_ptr.
15779
15780 PR rtl-optimization/49154
15781 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
15782 register classes.
15783 * doc/tm.texi: Regenerate.
15784
15785 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
15786
15787 PR target/49307
15788 * config/sh/sh.md (UNSPEC_CHKADD): New.
15789 (chk_guard_add): New define_insn_and_split.
15790 (symGOT_load): Use chk_guard_add instead of blockage.
15791
15792 2011-06-09 Kai Tietz <ktietz@redhat.com>
15793
15794 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
15795
15796 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
15797
15798 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
15799
15800 2011-06-09 Wei Guozhi <carrot@google.com>
15801
15802 PR target/46975
15803 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
15804 (peephole2 for conditional move): Generate 16 bit instructions.
15805
15806 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
15807
15808 * config/i386/i386.md (*movdi_internal_rex64): Merge
15809 alternatives 6 and 8.
15810
15811 2011-06-09 David Li <davidxl@google.com>
15812
15813 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15814 * passes.c (passr_eq): New function.
15815 (create_pass_tab): New function.
15816 (pass_traverse): New function.
15817 (dump_one_pass): New function.
15818 (dump_pass_list): New function.
15819 (dump_passes): New function.
15820
15821 2011-06-09 David Li <davidxl@google.com>
15822
15823 * tree-complex.c (tree_lower_complex): Gate cleanup.
15824 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15825 (execute_optimize_stdarg): Ditto.
15826 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15827 (execute_cleanup_eh_1): Ditto.
15828 (execute_cleanup_eh): Ditto.
15829 * gcse.c (gate_rtl_pre): Ditto.
15830 (execute_rtl_pre): Ditto.
15831 * except.c (finish_eh_generation): Ditto.
15832 (convert_to_eh_region_ranges): Ditto.
15833 * cprop.c (one_cprop_pass): Ditto.
15834
15835 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
15836
15837 PR target/48673
15838 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15839 in all basic blocks.
15840
15841 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15842
15843 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15844 (HAVE_ENABLE_EXECUTE_STACK): Define.
15845 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15846 (HAVE_ENABLE_EXECUTE_STACK): Define.
15847 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15848 (HAVE_ENABLE_EXECUTE_STACK): Define.
15849 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15850 (ENABLE_EXECUTE_STACK): Remove.
15851 (HAVE_ENABLE_EXECUTE_STACK): Define.
15852 [IN_LIBGCC2]: Don't include <windows.h>.
15853 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15854 (HAVE_ENABLE_EXECUTE_STACK): Define.
15855 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15856 (HAVE_ENABLE_EXECUTE_STACK): Define.
15857 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15858 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15859 (HAVE_ENABLE_EXECUTE_STACK): Define.
15860 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15861 (HAVE_ENABLE_EXECUTE_STACK): Define.
15862 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15863 (HAVE_ENABLE_EXECUTE_STACK): Define.
15864 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15865 (HAVE_ENABLE_EXECUTE_STACK): Define.
15866 * config/alpha/alpha.c (alpha_trampoline_init): Test
15867 HAVE_ENABLE_EXECUTE_STACK.
15868 * config/i386/i386.c (ix86_trampoline_init): Likewise.
15869 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15870 (sparc64_initialize_trampoline): Likewise.
15871 * libgcc2.c [L_enable_execute_stack]: Remove.
15872 * system.h (ENABLE_EXECUTE_STACK): Poison.
15873 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15874 * doc/tm.texi: Regenerate.
15875 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15876
15877 2011-06-09 Jakub Jelinek <jakub@redhat.com>
15878
15879 PR middle-end/49308
15880 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15881 variable. After resetting and rescanning insn continue with previous
15882 statement.
15883
15884 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15885
15886 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15887 (gcc_cv_ld_hidden): Likewise.
15888 * configure: Regenerate.
15889 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15890 (ix86_stack_protect_fail): Mark unused.
15891 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15892 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15893 [TARGET_MACHO]: Don't define.
15894 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15895 (TARGET_STACK_PROTECT_FAIL): Likewise.
15896 (rs6000_stack_protect_fail): Mark unused.
15897 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15898 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
15899
15900 2011-06-08 Andi Kleen <ak@linux.intel.com>
15901
15902 * varasm.c (get_section): Print location of other conflict
15903 for section conflicts.
15904
15905 2011-06-08 Andi Kleen <ak@linux.intel.com>
15906
15907 * config/i386/driver-i386.c (host_detect_local_cpu):
15908 Add model 0x2d Intel CPU.
15909
15910 2011-06-08 Andi Kleen <ak@linux.intel.com>
15911
15912 * reginfo.c (global_regs_decl): Add.
15913 (globalize_reg): Add decl parameter. Compute location. Pass location
15914 to warnings and add inform. Store decl in global_regs_decl.
15915 * rtl.h (globalize_reg): Update prototype.
15916 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15917
15918 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
15919
15920 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15921
15922 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15923
15924 PR target/49305
15925 * config/sh/predicates.md (general_movsrc_operand): Check
15926 mode for memory with indexed address for QI and HImode.
15927 (general_movdst_operand): Likewise.
15928
15929 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
15930
15931 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15932
15933 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
15934
15935 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15936 (num_ssa_operands): Likewise.
15937 (op_iter_init_phiuse): Forward-declare.
15938 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15939
15940 2011-06-08 Nick Clifton <nickc@redhat.com>
15941
15942 * doc/invoke.texi (ARM Options): Update description of
15943 -mthumb-interwork.
15944
15945 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
15946
15947 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15948 unknown Intel family 0x6 CPUs.
15949
15950 2011-06-08 Martin Jambor <mjambor@suse.cz>
15951
15952 * tree-sra.c (mark_rw_status): Removed.
15953 (analyze_access_subtree): New parameter parent instead of
15954 mark_read and mark_write, propagate from that.
15955
15956 2011-06-08 Julian Brown <julian@codesourcery.com>
15957
15958 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15959 for double-precision helper functions in hard-float mode if only
15960 single-precision arithmetic is supported in hardware.
15961
15962 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
15963
15964 PR rtl-optimization/49303
15965 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
15966 code_motion_path_driver returned 0 or 1.
15967 (sel_region_finish): Clear h_d_i_d.
15968
15969 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15970
15971 * config/sh/sh.c (prepare_move_operands): Set pic register
15972 appropriately for global and local dynamic tls models even
15973 if flag_pic is unset.
15974
15975 2011-06-07 Jason Merrill <jason@redhat.com>
15976
15977 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15978
15979 2011-06-07 Xinliang David Li <davidxl@google.com>
15980 * passes.c (enable_disable_pass): Handle assembler name.
15981 (is_pass_explicitly_enabled_or_disabled): Ditto.
15982
15983 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15984
15985 PR tree-optimization/48497
15986 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15987
15988 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15989
15990 PR tree-optimization/46728
15991 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15992 to use gimple_val_nonnegative_real_p.
15993 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15994 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15995
15996 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
15997
15998 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15999
16000 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
16001
16002 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
16003 constant vectors.
16004
16005 2011-06-07 Richard Guenther <rguenther@suse.de>
16006
16007 * stor-layout.c (initialize_sizetypes): Initialize all
16008 sizetypes based on target definitions.
16009 (set_sizetype): Remove.
16010 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
16011 * tree.h (set_sizetype): Remove.
16012
16013 2011-06-07 Nick Clifton <nickc@redhat.com>
16014
16015 * config.gcc: Unify V850 architecture options and add support for
16016 newer V850 architectures.
16017 * config/v850/t-v850e: Delete.
16018
16019 2011-06-07 Richard Guenther <rguenther@suse.de>
16020
16021 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
16022 Call set_sizetype from here.
16023
16024 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
16025
16026 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
16027 (*maddhisi4tb, *maddhisi4tt): New define_insns.
16028
16029 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
16030 Andrew Stubbs <ams@codesourcery.com>
16031
16032 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
16033 multiplies.
16034 * doc/md.texi (Canonicalization of Instructions): Document widening
16035 multiply canonicalization.
16036
16037 2011-06-07 Jakub Jelinek <jakub@redhat.com>
16038
16039 PR gcov-profile/49299
16040 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
16041
16042 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
16043
16044 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
16045 a pointer.
16046 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
16047 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
16048 vect_recog_pow_pattern): Likewise.
16049 (vect_pattern_recog_1): Remove declaration.
16050 (widened_name_p): Remove declaration. Add new argument to specify
16051 whether to check that both types are either signed or unsigned.
16052 (vect_recog_widen_mult_pattern): Update documentation. Handle
16053 unsigned patterns and multiplication by constants.
16054 (vect_pattern_recog_1): Update vect_recog_func references. Use
16055 statement information from the statement returned from pattern
16056 detection functions.
16057 (vect_pattern_recog): Update vect_recog_func reference.
16058 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
16059 multiplication by a constant use the type of the other operand.
16060
16061 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16062
16063 PR rtl-optimization/49145
16064 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
16065
16066 2011-06-06 Jakub Jelinek <jakub@redhat.com>
16067
16068 PR debug/49262
16069 * dwarf2out.c (native_encode_initializer): Decrement count in each
16070 iteration.
16071
16072 PR debug/49294
16073 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
16074 non-MODE_INT modes.
16075
16076 PR c++/49264
16077 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
16078 if stmt folded into nothing.
16079 * tree-inline.c (fold_marked_statements): If a builtin at the end of
16080 a bb folded into nothing, just update cgraph edges and move to next bb.
16081 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
16082 to be NULL. Don't compute count and frequency if new_call is NULL.
16083
16084 2011-06-04 Diego Novillo <dnovillo@google.com>
16085
16086 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
16087 (cgraph.o): Likewise.
16088 (cgraphunit.o): Likewise.
16089 * cgraphunit.c: Include lto-streamer.h
16090 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
16091 if LTO is enabled.
16092 * lto-streamer-in.c (unpack_value_fields): Call
16093 streamer_hooks.unpack_value_fields if set.
16094 (lto_materialize_tree): For unhandled nodes, first try to
16095 call lto_streamer_hooks.alloc_tree, if it exists.
16096 (lto_input_ts_decl_common_tree_pointers): Move reading of
16097 DECL_INITIAL to lto_streamer_read_tree.
16098 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
16099 (lto_streamer_read_tree): New.
16100 (lto_reader_init): Rename from lto_init_reader.
16101 Move initialization code to lto/lto.c.
16102 * lto-streamer-out.c (pack_value_fields): Call
16103 streamer_hooks.pack_value_fields if set.
16104 (lto_output_tree_ref): For tree nodes that are not normally indexable,
16105 call streamer_hooks.indexable_with_decls_p before giving up.
16106 (lto_output_ts_decl_common_tree_pointers): Move handling
16107 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
16108 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
16109 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
16110 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
16111 (lto_streamer_write_tree): New.
16112 (lto_output): Call lto_streamer_init directly.
16113 (lto_writer_init): Remove.
16114 * lto-streamer.c (streamer_hooks): New.
16115 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
16116 instead of lto_preload_common_nodes.
16117 (lto_is_streamable): Move from lto-streamer.h
16118 (lto_streamer_hooks_init): New.
16119 (streamer_hooks): New.
16120 (streamer_hooks_init): New.
16121 * lto-streamer.h (struct output_block): Forward declare.
16122 (struct lto_input_block): Likewise.
16123 (struct data_in): Likewise.
16124 (struct bitpack_d): Likewise.
16125 (struct streamer_hooks): Declare.
16126 (streamer_hooks): Declare.
16127 (lto_streamer_hooks_init): Declare.
16128 (lto_streamer_write_tree): Declare.
16129 (lto_streamer_read_tree): Declare.
16130 (streamer_hooks_init): Declare.
16131 (lto_is_streamable): Move to lto-streamer.c
16132
16133 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16134
16135 * longlong.h (smul_ppmm): The resulting register pair contains the
16136 higher order word first.
16137
16138 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16139
16140 PR tree-optimization/46728
16141 * builtins.c (powi_table): Remove.
16142 (powi_lookup_cost): Remove.
16143 (powi_cost): Remove.
16144 (expand_powi_1): Remove.
16145 (expand_powi): Remove.
16146 (expand_builtin_pow_root): Remove.
16147 (expand_builtin_pow): Remove.
16148 (expand_builtin_powi): Eliminate handling of constant exponent.
16149 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
16150
16151 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16152
16153 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
16154
16155 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16156
16157 * dce.c (reset_unmarked_insns_debug_uses): New.
16158 (delete_unmarked_insns): Skip debug insns.
16159 (prescan_insns_for_dce): Likewise.
16160 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
16161 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
16162 active reg can be found.
16163 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
16164 (convert_regs_1): Use it.
16165
16166 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16167
16168 * tree-pretty-print.c (dump_function_header): Add flags.
16169 Don't dump decl_uid with nouid.
16170 * tree-pretty-print.h (dump_function_header): Adjust.
16171 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
16172 * passes.c (pass_init_dump_file): Pass dump_flags on.
16173 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
16174
16175 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
16176
16177 PR bootstrap/49270
16178 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
16179
16180 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
16181
16182 PR tree-optimization/49243
16183 * calls.c (setjmp_call_p): Also check if fndecl has the
16184 returns_twice attribute.
16185
16186 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16187
16188 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
16189 -ffast-math etc.
16190
16191 2011-06-06 Richard Henderson <rth@redhat.com>
16192 Georg-Johann Lay <avr@gjlay.de>
16193
16194 PR target/42210
16195 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
16196 New predicates.
16197 * config/avr/avr.md ("insv"): New insn expander.
16198 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
16199 "*insv.not.io", "*insv.reg"): New insns.
16200
16201 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
16202
16203 PR target/49285
16204 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
16205 to nonimmediate_operand from memory_operand for the operand that is to
16206 be forced to memory by the expander. Lose the constraints.
16207
16208 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
16209
16210 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
16211 EH return when delayed branches are disabled.
16212
16213 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
16214
16215 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
16216 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
16217 calculation.
16218 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
16219 Simplify MODE_V1DF and MODE_V2SF handling.
16220 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
16221 Simplify MODE_SF handling.
16222
16223 2011-06-04 Jan Hubicka <jh@suse.cz>
16224
16225 PR tree-optimization/48893
16226 PR tree-optimization/49091
16227 PR tree-optimization/49179
16228 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
16229 Bounds check.
16230
16231 2011-06-04 Jan Hubicka <jh@suse.cz>
16232
16233 PR lto/48954
16234 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
16235 bitmaps.
16236
16237 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
16238
16239 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
16240
16241 2011-06-04 Jakub Jelinek <jakub@redhat.com>
16242
16243 PR target/49281
16244 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
16245 to be strictly smaller than 1 << shiftcount.
16246
16247 2011-06-04 Jan Hubicka <jh@suse.cz>
16248
16249 PR tree-optimize/48929
16250 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
16251 of empty predicate.
16252
16253 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
16254
16255 PR debug/48333
16256 * calls.c (emit_call_1): Prefer the __builtin declaration of
16257 builtin functions.
16258
16259 2011-06-03 Diego Novillo <dnovillo@google.com>
16260
16261 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
16262 (lto_input_tree_pointers): Likewise.
16263 * lto-streamer-out.c (pack_value_fields): Likewise.
16264 (lto_output_tree_pointers): Likewise.
16265 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
16266 and OPTIMIZATION_NODE.
16267
16268 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16269
16270 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
16271 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
16272 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
16273 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
16274 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
16275 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
16276 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
16277 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
16278 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
16279 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
16280 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
16281 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
16282 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
16283 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
16284 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
16285 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
16286 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
16287 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
16288 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
16289 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
16290 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
16291 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
16292 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
16293 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
16294 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
16295 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
16296 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
16297 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
16298 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
16299 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
16300 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
16301 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
16302 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
16303 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
16304 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
16305 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
16306 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
16307 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
16308 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
16309 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
16310 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
16311 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
16312 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
16313 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
16314 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
16315 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
16316 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
16317 * system.h (MD_UNWIND_SUPPORT): Poison.
16318 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
16319 * doc/tm.texi: Regenerate.
16320 * unwind-dw2.c: Include md-unwind-support.h instead of
16321 MD_UNWIND_SUPPORT.
16322 * config/ia64/unwind-ia64.c: Likewise.
16323 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
16324
16325 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
16326
16327 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
16328
16329 2011-06-03 Richard Henderson <rth@redhat.com>
16330 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16331
16332 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
16333 (sigill_hdlr): Correct insn, insn size.
16334 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
16335
16336 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16337
16338 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
16339 t-slibgcc-dummy.
16340 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
16341 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
16342 * config/mips/t-iris: Remove.
16343 * config/mips/t-irix6: New file.
16344 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
16345
16346 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16347
16348 * Makefile.in (LIB2ADDEHDEP): Remove.
16349 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
16350 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
16351 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
16352 * config/t-darwin (LIB2ADDEHDEP): Remove.
16353 * config/t-freebsd (LIB2ADDEHDEP): Remove.
16354 * config/t-linux (LIB2ADDEHDEP): Remove.
16355
16356 2011-06-03 Diego Novillo <dnovillo@google.com>
16357
16358 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
16359 (lto_register_var_decl_in_symtab): Likewise.
16360 (lto_register_function_decl_in_symtab): Likewise.
16361 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
16362 logic to uniquify_nodes.
16363
16364 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16365
16366 * config/alpha/t-osf5: Remove.
16367 * config/alpha/t-osf-pthread: Remove.
16368 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
16369 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
16370
16371 2011-06-03 Julian Brown <julian@codesourcery.com>
16372
16373 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
16374 (strongarm1110): Use strongarm tuning.
16375 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16376 * config/arm/arm.c (arm_strongarm_tune): New.
16377 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
16378 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
16379 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
16380 setting, using previous defaults or 1 for Cortex-A5.
16381 (arm_option_override): Set max_insns_skipped from current tuning.
16382
16383 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
16384
16385 * doc/install.texi (Options specification): Document --with-specs.
16386
16387 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16388
16389 * config/arm/neon.md (orndi3_neon): Actually split it.
16390
16391 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
16392
16393 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
16394 * var-tracking.c (reverse_op): Limite recurse depth to 5.
16395
16396 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
16397
16398 PR debug/47590
16399 * target.def (delay_sched2, delay_vartrack): New.
16400 * doc/tm.texi.in: Update.
16401 * doc/tm.texi: Rebuild.
16402 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
16403 * var-tracking.c (gate_handle_var_tracking): Likewise.
16404 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
16405 (bfin_flag_var_tracking): Drop.
16406 (output_file_start): Don't save and override flag_var_tracking.
16407 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
16408 (bfin_reorg): Test original variables.
16409 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
16410 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
16411 (ia64_flag_var_tracking): Drop.
16412 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
16413 (ia64_file_start): Don't save and override flag_var_tracking.
16414 (ia64_override_options_after_change): Ditto
16415 flag_schedule_insns_after_reload.
16416 (ia64_reorg): Test original variables.
16417 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
16418 (picochip_flag_var_tracking): Drop.
16419 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
16420 (picochip_option_override): Don't save and override
16421 flag_schedule_insns_after_reload.
16422 (picochip_asm_file_start): Ditto flag_var_tracking.
16423 (picochip_reorg): Test original variables.
16424 * config/spu/spu.c (spu_flag_var_tracking): Drop.
16425 (TARGET_DELAY_VARTRACK): Define.
16426 (spu_var_tracking): New.
16427 (spu_machine_dependent_reorg): Call it.
16428 (asm_file_start): Don't save and override flag_var_tracking.
16429
16430 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16431
16432 PR target/49163
16433 * config/sh/predicates.md (general_movsrc_operand): Return 0
16434 for memory and memory subreg of which address is an invalid
16435 indexed address for QI and HImode.
16436 (general_movdst_operand): Likewise.
16437
16438 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
16439
16440 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
16441 edges only, when there is a non-local label in the function.
16442 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
16443
16444 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
16445
16446 * config/i386/constraints.md (Y3): New register constraint.
16447 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
16448 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
16449 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
16450 *sse2_interleave_lowv2df.
16451
16452 2011-06-02 Julian Brown <julian@codesourcery.com>
16453
16454 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
16455 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
16456 (arm_cortex_a5_tune): New.
16457
16458 2011-06-02 Julian Brown <julian@codesourcery.com>
16459
16460 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
16461 * config/arm/arm.c (arm_default_branch_cost): New.
16462 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
16463 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
16464 (arm_fa726_tune): Set branch_cost field using
16465 arm_default_branch_cost.
16466 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
16467 current_tune structure.
16468 * dojump.c (tm_p.h): Include file.
16469
16470 2011-06-02 Julian Brown <julian@codesourcery.com>
16471
16472 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
16473 tuning.
16474 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
16475 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
16476 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
16477 field.
16478 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
16479 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
16480 (arm_fa726te_tune): Add prefer_constant_pool setting.
16481 (arm_v6t2_tune, arm_cortex_tune): New.
16482 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
16483 prefer_constant_pool setting.
16484
16485 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
16486
16487 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
16488 switch statement.
16489 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
16490 (*movdf_internal) <case 6,7,8>: Ditto.
16491
16492 * config/i386/constraints.md (Y4): New register constraint.
16493 * config/i386/sse.md (vec_set<mode>_0): Merge with
16494 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
16495 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
16496 *vec_extractv2di_1_sse.
16497 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
16498 and *vec_concatv2di_rex64_sse.
16499
16500 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
16501
16502 PR target/48807
16503 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
16504 of cgraph_local_info for null before attempting to use it.
16505
16506 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
16507
16508 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
16509 (current_function_dynamic_alloc_count): Delete.
16510 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
16511 (expand_builtin_nonlocal_goto): Remove obsolete comment.
16512 (expand_builtin_update_setjmp_buf): Remove dead code.
16513 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
16514 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
16515 support.
16516 * function.c (instantiate_virtual_regs): Likewise.
16517 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
16518 for a block with a single abnormal incoming edge.
16519 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
16520 (SETJMP_VIA_SAVE_AREA): Delete.
16521 * config/sparc/sparc-protos.h (load_got_register): Declare.
16522 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
16523 (load_got_register): Make global.
16524 (sparc_frame_pointer_required): Add 'static'.
16525 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
16526 (sparc_builtin_setjmp_frame_value): New function.
16527 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
16528 (save_stack_nonlocal): New expander.
16529 (restore_stack_nonlocal): Likewise.
16530 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
16531 (nonlocal_goto_internal): New insn.
16532 (goto_handler_and_restore): Delete.
16533 (builtin_setjmp_setup): Likewise.
16534 (do_builtin_setjmp_setup): Likewise.
16535 (setjmp): Likewise.
16536 (builtin_setjmp_receiver): New expander.
16537
16538 2011-06-01 David Li <davidxl@google.com>
16539
16540 PR middle-end/49261
16541 * tree-pretty-print.c (dump_function_header): Format cleanup.
16542
16543 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
16544
16545 PR target/49238
16546 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
16547 needed when original operands are used for msw_skip comparison.
16548
16549 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16550
16551 PR debug/49250
16552 * var-tracking.c (add_uses, add_stores): Don't call
16553 cselib_subst_to_values on ENTRY_VALUE.
16554
16555 2011-06-01 Diego Novillo <dnovillo@google.com>
16556
16557 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
16558 output_record_start with LTO_null instead of output_zero.
16559 (lto_output_ts_binfo_tree_pointers): Likewise.
16560 (lto_output_tree): Likewise.
16561 (output_eh_try_list): Likewise.
16562 (output_eh_region): Likewise.
16563 (output_eh_lp): Likewise.
16564 (output_eh_regions): Likewise.
16565 (output_bb): Likewise.
16566 (output_function): Likewise.
16567 (output_unreferenced_globals): Likewise.
16568 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
16569 instead of NUM_TREE_CODES.
16570 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
16571 (lto_output_int_in_range): Change << to >> when shifting VAL.
16572
16573 2011-06-01 Diego Novillo <dnovillo@google.com>
16574
16575 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
16576 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
16577
16578 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16579
16580 PR target/45074
16581 * optabs.h (valid_multiword_target_p): Declare.
16582 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
16583 doing multi-word operations.
16584 * optabs.c (expand_binop): Likewise.
16585 (expand_doubleword_bswap): Likewise.
16586 (expand_absneg_bit): Likewise.
16587 (expand_unop): Likewise.
16588 (expand_copysign_bit): Likewise.
16589 (multiword_target_p): New function.
16590
16591 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16592
16593 PR rtl-optimization/48830
16594 PR rtl-optimization/48808
16595 PR rtl-optimization/48792
16596 * reload.c (push_reload): Check contains_reg_of_mode.
16597 * reload1.c (strip_paradoxical_subreg): New function.
16598 (gen_reload_chain_without_interm_reg_p): Use it to handle
16599 paradoxical subregs.
16600 (emit_output_reload_insns, gen_reload): Likewise.
16601
16602 2011-06-01 David Li <davidxl@google.com>
16603
16604 * predict.c : Change pass name
16605 * ipa.c: Ditto.
16606 * dce.c: Ditto.
16607 * tree-profile.c: Ditto.
16608 * except.c: Ditto.
16609
16610 2011-06-01 David Li <davidxl@google.com>
16611
16612 * tree-pretty-print.c (dump_function_header): New function.
16613 * final.c (rest_of_clean_state): Use header dumper.
16614 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
16615 * passes.c (pass_init_dump_file): Use header dumper.
16616
16617 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16618
16619 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
16620 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
16621 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
16622 New functions.
16623 (mem_loc_descriptor): Use them.
16624
16625 * var-tracking.c (create_entry_value): New function.
16626 (vt_add_function_parameter): Use it.
16627
16628 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16629
16630 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
16631 Include <signal.h>, <ucontext.h>.
16632 (sigill_caught): Define.
16633 (sigill_hdlr): New function.
16634 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
16635 insns can be executed.
16636 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
16637 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
16638
16639 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16640
16641 * config/t-slibgcc-darwin: Move to ...
16642 * config/t-slibgcc-dummy: ... this. Clarify comments.
16643 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
16644 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
16645 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
16646 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
16647 Remove i386/t-crtstuff from tmake_file.
16648 (i[34567]86-*-solaris2*): Remove t-svr4,
16649 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
16650 t-slibgcc-dummy.
16651 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
16652 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
16653 sparc/t-crtfm from tmake_file.
16654 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
16655 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
16656 Remove extra_parts.
16657 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
16658 * config/i386/t-nwld (SHLIB_LINK): Remove.
16659 * config/i386/t-rtems-i386: Rename to ...
16660 * config/i386/t-rtems: ... this.
16661 ($(T)crti.o, $(T)crtn.o): Remove.
16662 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
16663 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
16664 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
16665 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
16666 EXTRA_MULTILIB_PARTS): Remove.
16667 * config/sparc/t-sol2-64: Likewise.
16668 * config/sparc/t-sol2: Remove.
16669 * config/sparc/t-crtin: Remove.
16670 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
16671 * config/i386/gmon-sol2.c: Remove.
16672 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
16673 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
16674 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
16675 * config/i386/sol2-gc1.asm: Remove.
16676 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
16677 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
16678 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
16679 * config/t-slibgcc-sld: Remove.
16680
16681 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16682
16683 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
16684 base_type_for_mode with op_mode instead of mode.
16685
16686 2011-06-01 Paul Brook <paul@cpodesourcery.com>
16687
16688 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
16689 Cortex-A15.
16690 * config/arm/arm-tune.md: Regenerate.
16691 * config/arm/arm-tables.opt: Regenerate.
16692 * config/arm/arm.c (FL_DIV): Rename...
16693 (FL_THUMB_DIV): ... to this.
16694 (FL_ARM_DIV): Define.
16695 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
16696 (arm_arch_hwdiv): Remove.
16697 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
16698 (arm_issue_rate): Add cortexr5.
16699 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
16700 __ARM_ARCH_EXT_IDIV__.
16701 (TARGET_IDIV): Define.
16702 (arm_arch_hwdiv): Remove.
16703 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
16704 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
16705 (divsi3, udivsi3): New patterns.
16706 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
16707 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
16708
16709 2011-06-01 Martin Jambor <mjambor@suse.cz>
16710
16711 * ipa-utils.c (ipa_dfs_info): New field scc_no.
16712 * ipa-utils.c (searchc): Set scc_no.
16713
16714 2011-06-01 Martin Jambor <mjambor@suse.cz>
16715
16716 * ipa-utils.c (searchc_env): New field allow_overwritable.
16717 (searchc): do not ignore edges to overwritable nodes if indicated
16718 by env->allow_overwritable.
16719 (ipa_reduced_postorder): Set env.allow_overwritable.
16720
16721 2011-06-01 Richard Guenther <rguenther@suse.de>
16722
16723 * tree.c (free_lang_data): Do not reset boolean_type_node nor
16724 char_type_node.
16725 * lto-streamer.c (lto_record_common_node): Take node pointer,
16726 do not register types.
16727 (lto_preload_common_nodes): Explicitly skip preloading nodes
16728 that differ between frontends.
16729
16730 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
16731
16732 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
16733 NON_FLOAT_REGS.
16734
16735 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
16736
16737 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
16738 parameter value for dump. Dump cost on outermost call only.
16739 (rs6000_memory_move_cost): Dump cost on outermost call only.
16740
16741 2011-05-31 Jakub Jelinek <jakub@redhat.com>
16742
16743 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
16744 DW_OP_GNU_convert ops.
16745
16746 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
16747 cselib_preserve_constants.
16748 (cselib_lookup_1): If cselib_preserve_constants,
16749 a new VALUE is being created for REG and there is a VALUE for the
16750 same register in wider mode, add another loc with lowpart SUBREG of
16751 the wider VALUE.
16752 (cselib_subst_to_values): Handle ENTRY_VALUE.
16753 * var-tracking.c (replace_expr_with_values): Return NULL for
16754 ENTRY_VALUE too.
16755 * dwarf2out.c (convert_descriptor_to_signed): New function.
16756 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
16757 instead of two shifts.
16758 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
16759 the right mode if needed.
16760 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
16761 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
16762 convert_descriptor_to_signed.
16763 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
16764 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
16765
16766 PR target/48688
16767 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
16768
16769 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16770
16771 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
16772 of X87MODEI12 and SWI48x instead of SSEMODEI24.
16773 (SWI248x): New mode iterator, rename from X87MODEI.
16774 (X87MODEI): Remove mode iterator.
16775 (X87MODEI12): Ditto.
16776 (SSEMODEI24): Ditto.
16777
16778 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16779
16780 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
16781 * doc/invoke.texi: Document max-vartrack-expr-depth.
16782 * var-tracking.c (EXPR_DEPTH): New.
16783 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
16784
16785 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16786
16787 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
16788 * config/i386/sse.md: Add n to negated FMA pattern names.
16789
16790 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16791
16792 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
16793
16794 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16795
16796 * gengtype-state.c (read_state_params_structs): Initialize previous.
16797
16798 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16799
16800 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
16801 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
16802
16803 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16804
16805 * config/i386/i386.md (*movtf_internal): Avoid allocating general
16806 registers. Penalize F*r->o alternative to prevent partial memory
16807 stalls. Slightly penalize *roF->*r alternative. Generate SSE
16808 CONST_DOUBLE immediates when optimizing function for size. Do not move
16809 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16810 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
16811 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
16812 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
16813 alternatives.
16814 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16815
16816 (fp_register_operand splitters): Use fp_register_operand
16817 constraint. Do not use FP_REG_P in insn condition.
16818 (any_fp_register_operand splitters): Use any_fp_register_operand
16819 constraint. Do not use ANY_FP_REG_P in insn condition.
16820
16821 2011-05-31 Jan Hubicka <jh@suse.cz>
16822
16823 * cgraph.h (cgraph_inline_failed_t): Give enum a name
16824 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16825 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16826 (lto_output_edge): Use output_enum and var_len_unsigned.
16827 (lto_output_varpool_node): Likewise.
16828 (input_overwrite_node): Do not take resolution parameter;
16829 extract it from a bitpack.
16830 (input_node): Do not read resolution; use input_enum and
16831 var_len_unsigned.
16832 (input_varpool_node): Likewise.
16833 (input_edge): Likewise.
16834 (input_cgraph_1): Likewise.
16835
16836 2011-05-31 Richard Guenther <rguenther@suse.de>
16837
16838 * gimple.c (gimple_register_canonical_type): Do not register
16839 any types via gimple_register_type.
16840
16841 2011-05-31 Jan Hubicka <jh@suse.cz>
16842
16843 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16844 of thunks.
16845
16846 2011-05-31 Jakub Jelinek <jakub@redhat.com>
16847
16848 PR rtl-optimization/49235
16849 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16850 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16851
16852 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
16853
16854 PR tree-optimization/49093
16855 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16856 data references.
16857
16858 2011-05-31 Dodji Seketeli <dodji@redhat.com>
16859
16860 PR debug/49047
16861 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16862 for concrete functions containing the code of cloned functions.
16863
16864 2011-05-31 Richard Guenther <rguenther@suse.de>
16865
16866 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16867 to ...
16868 (forward_propagate_into_comparison_1): ... this.
16869 (forward_propagate_comparison): Rename to ...
16870 (forward_propagate_into_comparison): ... this. Split out
16871 real forward propagation code to ...
16872 (forward_propagate_comparison): ... this.
16873 (forward_propagate_into_gimple_cond): Remove looping.
16874 (forward_propagate_into_cond): Likewise.
16875 (simplify_not_neg_expr): Return whether we have done something.
16876 (simplify_gimple_switch): Likewise.
16877 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16878 (ssa_forward_propagate_and_combine): ... this. Re-structure
16879 to do a forward forward-propagation walk on BBs and a backward
16880 stmt combining walk on BBs. Consistently re-scan changed statements.
16881 (pass_forwprop): Adjust.
16882
16883 2011-05-30 Ian Lance Taylor <iant@google.com>
16884
16885 * godump.c (go_format_type): Correct length of name added to
16886 obstack for anonymous field.
16887
16888 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
16889
16890 PR target/49186
16891 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16892 part of the second operand is 0.
16893
16894 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
16895
16896 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16897 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
16898 to memory for !TARGET_MEMORY_MISMATCH_STALL.
16899 (*movdf_internal_rex64): Do not penalize F->r alternative.
16900 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16901 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
16902 when optimizing function for size. Do not move CONST_DOUBLEs
16903 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16904 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
16905 SUBREGs. Do not check for MEM_P operands in the insn condition,
16906 check for ANY_FP_REGNO_P instead.
16907 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16908 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16909 function for speed.
16910 * config/i386/i386.c (ix86_option_override_internal): Do not
16911 set TARGET_INTEGER_DFMODE_MOVES here.
16912
16913 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
16914
16915 PR target/49168
16916 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16917
16918 2011-05-30 Jakub Jelinek <jakub@redhat.com>
16919
16920 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16921 DW_TAG_rvalue_reference_type even for
16922 -gdwarf-4 -fno-debug-types-section.
16923
16924 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16925
16926 PR tree-optimization/46728
16927 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16928 (build_and_insert_binop): New.
16929 (gimple_expand_builtin_pow): Reorder args for
16930 build_and_insert_call; use build_and_insert_binop; add more
16931 optimizations for fractional exponents.
16932
16933 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
16934
16935 PR bootstrap/49190
16936
16937 Revert:
16938 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16939
16940 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16941 tree_common.
16942 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16943 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16944 TS_BASE instead of TS_COMMON.
16945 * varasm.c (assemble_name): Remove assert.
16946
16947 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16948
16949 * config.gcc: Keep obselete list sorted.
16950
16951 2011-05-30 Jakub Jelinek <jakub@redhat.com>
16952 Eric Botcazou <ebotcazou@adacore.com>
16953
16954 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16955 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16956 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16957 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16958 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16959
16960 2011-05-30 Richard Guenther <rguenther@suse.de>
16961
16962 * gimple.c (gimple_types_compatible_p_1): Compare record
16963 and union type members properly.
16964
16965 2011-05-30 Richard Guenther <rguenther@suse.de>
16966
16967 PR tree-optimization/49210
16968 * ipa-split.c (split_function): Care for the case where the call
16969 result is not trivially convertible to the result holding variable.
16970
16971 2011-05-30 Richard Guenther <rguenther@suse.de>
16972
16973 PR tree-optimization/49218
16974 * tree-vrp.c (adjust_range_with_scev): Properly check whether
16975 overflow occured.
16976
16977 2011-05-30 Richard Guenther <rguenther@suse.de>
16978
16979 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16980 New function split out from ...
16981 (forward_propagate_into_gimple_cond): ... here. Adjust.
16982 (forward_propagate_into_cond): Likewise.
16983 (forward_propagate_comparison): Also propagate into
16984 comparisons on assignment RHS. Change return value to
16985 behave similar to forward_propagate_into_cond.
16986 (tree_ssa_forward_propagate_single_use_vars): Handle
16987 strict-overflow warnings properly for forward_propagate_comparison.
16988
16989 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16990
16991 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16992 from plugin linker.
16993 * configure: Regenerate.
16994
16995 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
16996
16997 PR tree-optimization/49199
16998 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16999 non-reduction operands are either defined in the loop or by induction.
17000
17001 2011-05-29 Xinliang David Li <davidxl@google.com>
17002
17003 * opts-global.c (handle_common_deferred_options): Handle new options.
17004 * passes.c (register_one_dump_file): Call register_pass_name.
17005 (execute_one_pass): Check explicit enable/disable flag.
17006 (passr_hash): New function.
17007 (passr_eq): Ditto.
17008 (register_pass_name): Ditto.
17009 (get_pass_by_name): Ditto.
17010 (pass_hash): Ditto.
17011 (pass_eq): Ditto.
17012 (enable_pass): Ditto.
17013 (disable_pass): Ditto.
17014 (is_pass_explicitly_enabled_or_disabled): Ditto.
17015
17016 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
17017
17018 * config/i386/i386.md (*movoi_internal_avx): Use
17019 standard_sse_constant_opcode for alternative 0.
17020 (*movti_internal_sse): Ditto.
17021 (*movti_internal_rex64): Use standard_sse_constant_opcode for
17022 alternative 2.
17023 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
17024 sselog1 type moves.
17025 (*movsi_internal): Ditto.
17026 (*movdi_internal): Ditto. Add ssecvt type moves.
17027
17028 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
17029
17030 PR target/48830
17031 * rtlanal.c (simplify_subreg_regno): Adjust comment.
17032
17033 2011-05-29 Jakub Jelinek <jakub@redhat.com>
17034
17035 PR rtl-optimization/49095
17036 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
17037 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
17038
17039 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17040
17041 PR target/43995
17042 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
17043 recurse_p argument. Only follow register copies if it is set,
17044 and prevent mips_find_pic_call_symbol from recursing.
17045 (mips_find_pic_call_symbol): Add a recurse_p argument.
17046 Pass it to mips_pic_call_symbol_from_set.
17047 (mips_annotate_pic_calls): Update accordingly.
17048
17049 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17050
17051 * emit-rtl.c (try_split): Use a loop to search for
17052 NOTE_INSN_CALL_ARG_LOCATIONs.
17053
17054 2011-05-29 Richard Guenther <rguenther@suse.de>
17055
17056 PR tree-optimization/49217
17057 * ipa-pure-const.c (propagate_pure_const): Fix typos.
17058
17059 2011-05-28 Jan Hubicka <jh@suse.cz>
17060
17061 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
17062 length.
17063 (string_slot_free): Remove
17064 (create_output_block): Initialize obstack.
17065 (destroy_output_block): Free obstack.
17066 (lto_string_index): Add PERSISTENT parameter; do not duplicate
17067 the string unless it needs to be added into the hash.
17068 (lto_output_string_with_length): Add persistent attribute;
17069 handle NULL strings.
17070 (lto_output_string): Add PERSISTENT parameter.
17071 (output_string_cst, output_identifier): Simplify.
17072 (lto_output_location_bitpack): Update.
17073 (lto_output_builtin_tree): Update.
17074 * lto-streamer.h (struct output_block): Add obstack.
17075 (lto_output_string, lto_output_string_with_length): Remove
17076 declarations; functions are static now.
17077
17078 2011-05-28 Jan Hubicka <jh@suse.cz>
17079
17080 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
17081 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
17082 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
17083 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
17084 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
17085 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
17086 unpack_ts_decl_with_vis_value_fields,
17087 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
17088 lto_get_builtin_tree): Use enum and variable length i/o.
17089 * basic-block.h (profile_status_d): Add PROFILE_LAST.
17090 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
17091 New functions.
17092 (bp_pack_enum, bp_unpack_enum): New macros.
17093
17094 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17095
17096 * genrecog.c: Remove redundant forward declarations.
17097
17098 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17099
17100 * config.gcc: Deprecate mips*-*-openbsd*.
17101
17102 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17103
17104 PR bootstrap/49195
17105 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
17106 for match_op_dup.
17107
17108 2011-05-27 Andrew Pinski <pinskia@gmail.com>
17109
17110 PR middle-end/48981
17111 * gengtype.c (vec_prefix_type): New function.
17112 (note_def_vec): Use vec_prefix_type and change the length
17113 attribute to be based on the prefix.
17114 * vec.c: Include coretypes.h before vec.h.
17115 (struct vec_prefix): Remove.
17116 (vec_gc_p_reserve): Change the offsetof to sizeof.
17117 (vec_gc_p_reserve_exact): Likewise.
17118 (vec_heap_p_reserve): Likewise.
17119 (vec_heap_p_reserve_exact): Likewise.
17120 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
17121 (vec_stack_p_reserve): Change the offsetof to sizeof.
17122 (vec_stack_p_reserve_exact): Likewise.
17123 * vec.h (struct vec_prefix): New struct definition.
17124 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
17125 (VEC_T_GTY(T,B)): Likewise.
17126 (DEF_VEC_FUNC_P(T)): Use prefix field.
17127 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
17128 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
17129
17130 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17131
17132 PR tree-optimization/46728
17133 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
17134 (powi_as_mults): Add gimple_set_location.
17135 (build_and_insert_call): New.
17136 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
17137 0.5, 0.25, 0.75, 1./3., or 1./6.
17138
17139 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
17140
17141 * doc/contrib.texi: Update copyright years.
17142 (Contributors): Add Zdenek Sojka.
17143
17144 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
17145
17146 * c-decl.c (c_push_function_context): Copy the current statement
17147 list stack.
17148 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
17149 (finish_struct): Call building_stmt_list_p instead of checking
17150 cur_stmt_list.
17151 * c-parser.c (c_parser_postfix_expression): Likewise.
17152 * c-typeck.c (c_end_compound_stmt): Likewise.
17153 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
17154 * tree-iterator.c (stmt_list_cache): Change to a VEC.
17155 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
17156 (free_stmt_list): Likewise.
17157 * tree.h (struct tree_statement_list): Include typed_tree instead
17158 of tree_common.
17159 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
17160 as TS_TYPED instead of TS_COMMON.
17161
17162 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17163 Uros Bizjak <ubizjak@gmail.com>
17164
17165 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
17166 (HAVE_AS_IX86_TLSGDPTL): Define.
17167 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
17168 (HAVE_AS_IX86_TLSLDMPLT): Define.
17169 * configure: Regenerate.
17170 * config.in: Regenerate.
17171 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
17172 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
17173 TARGET_SUN_TLS, use @tlsgdplt or @plt.
17174 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
17175 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
17176 @tlsldmplt or @plt.
17177 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
17178
17179 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
17180
17181 * sched-int.h (struct _haifa_deps_insn_data): New members cond
17182 and reverse_cond.
17183 (INSN_COND, INSN_REVERSE_COND): New macros.
17184 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
17185 once.
17186 (sched_get_condition_with_rev): Cache the results, and look them up
17187 if possible.
17188 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
17189 are clobbered by the current insn.
17190 * target.def (exposed_pipline): New sched data hook.
17191 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
17192 * doc/tm.texi: Regenerate.
17193
17194 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17195
17196 PR tree-optimization/49170
17197 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
17198 sincos or cexp.
17199
17200 2011-05-27 Richard Guenther <rguenther@suse.de>
17201
17202 PR middle-end/49189
17203 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
17204 of comparisons.
17205
17206 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
17207
17208 * haifa-sched.c (sched_scan_info): Remove.
17209 (schedule_block): Call sched_extend_luids rather than sched_init_luids
17210 with NULL args.
17211 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
17212 Remove functions.
17213 (sched_scan): Remove.
17214 (sched_extend_luids): Renamed from luids_extend_insn and no longer
17215 static. All callers changed.
17216 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
17217 static. All callers changed.
17218 (sched_init_luids): Remove all arguments except the first. All
17219 callers changed. Don't use sched_scan.
17220 (haifa_init_h_i_d): Likewise.
17221 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
17222 manually rather than using sched_init_luids. Likewise with
17223 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
17224 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
17225 rather than sched_init_luids with NULL args.
17226 * sel-sched-ir.c (new_insns): Remove variable.
17227 (sched_scan): New static function, previously in haifa-sched.c. Remove
17228 all arguments but the first two; all callers changed.
17229 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
17230 rather than sched_init_luids.
17231 (sel_init_bbs): Remove second argument. All callers changed.
17232 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
17233 with NULL arguments.
17234 (create_insn_rtx_from_pattern): Likewise.
17235 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
17236 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
17237 (sched_init_insn_luid, sched_extend_luids): Declare.
17238 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
17239 declarations.
17240
17241 2011-05-27 Richard Guenther <rguenther@suse.de>
17242
17243 PR middle-end/49177
17244 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
17245 A CMP B ? (T) true : (T) false for non-integral types T again.
17246
17247 2011-05-27 Jan Hubicka <jh@suse.cz>
17248
17249 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
17250 so 0 means NULL string.
17251 (lto_output_string_with_length): ... here.
17252 (lto_output_string, output_string_cst, output_identifier): Update
17253 handling of NULL strings.
17254 (lto_output_location_bitpack): New function.
17255 (lto_output_location): Use it.
17256 (lto_output_tree_ref): Use output_record_start.
17257 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
17258 len values.
17259 * lto-streamer-in.c (string_for_index): Break out from ...; offset
17260 values by 1.
17261 (input_string_internal): ... here;
17262 (input_string_cst, input_identifier, lto_input_string): Update handling
17263 of NULL strings.
17264 (lto_input_location_bitpack): New function
17265 (lto_input_location): Use it.
17266 (unpack_ts_type_common_value_fields): Pack align & alias in var len
17267 values.
17268 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
17269 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
17270 (bp_pack_value): Sanity check the value range.
17271 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
17272 New functions.
17273 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
17274 New functions.
17275
17276 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
17277
17278 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
17279 call_arg_location instructions down the floor.
17280
17281 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
17282
17283 PR rtl-optimization/49154
17284 * ira.c (setup_pressure_classes): Process class without sublcasses
17285 as a candidate for pressure classes.
17286
17287 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
17288
17289 PR rtl-optimization/48575
17290 * genrecog.c (position_type): New enum.
17291 (position): New structure.
17292 (decision): Use position structure instead of a string.
17293 (root_pos, peep2_insn_pos_list): New variables.
17294 (next_position, compare_positions): New functions.
17295 (new_decision): Use position structures instead of strings.
17296 (maybe_both_true): Likewise.
17297 (change_state): Likewise.
17298 (write_tree): Likewise.
17299 (make_insn_sequence): Likewise.
17300
17301 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
17302
17303 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
17304 TS_BASE instead of TS_COMMON.
17305 (find_decls_types_r): Check for TS_TYPED structure before looking at
17306 TREE_TYPE.
17307 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
17308 Add chain field.
17309 (BLOCK_CHAIN): Use new chain field.
17310
17311 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
17312
17313 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
17314 moves expensive on Power7 also.
17315
17316 2011-05-26 Richard Guenther <rguenther@suse.de>
17317
17318 * fold-const.c (fold_unary_loc): Remove bogus code.
17319
17320 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
17321
17322 * tree.h (struct tree_identifier): Inherit from tree_typed, not
17323 tree_common.
17324 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
17325 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
17326 TS_BASE instead of TS_COMMON.
17327 * varasm.c (assemble_name): Remove assert.
17328
17329 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
17330
17331 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
17332 substituted first.
17333 * libgcc-std.ver: Delete file.
17334
17335 2011-05-26 Richard Guenther <rguenther@suse.de>
17336
17337 PR tree-optimization/48702
17338 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
17339 only when we know the base address is within bounds.
17340 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
17341 assume the base address of TARGET_MEM_REFs is in bounds.
17342
17343 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17344
17345 PR target/49099
17346 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
17347 declaration in TARGET_SOLARIS.
17348
17349 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
17350
17351 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
17352 The instruction is then expanded explicitly.
17353 (supported_compare): Callable instruction.
17354 (compare): Likewise.
17355
17356 2011-05-26 Jakub Jelinek <jakub@redhat.com>
17357
17358 PR c++/49165
17359 * gimplify.c (shortcut_cond_r): Don't special case
17360 COND_EXPRs if they have void type on one of their arms.
17361
17362 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
17363
17364 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
17365 to reduce duplication, and to achieve a slightly more logical order
17366 of operations.
17367
17368 2011-05-26 Jakub Jelinek <jakub@redhat.com>
17369
17370 PR tree-optimization/49161
17371 * tree-vrp.c (struct case_info): New type.
17372 (compare_case_labels): Sort case_info structs instead of
17373 trees, and not primarily by CASE_LABEL uids but by
17374 label_for_block indexes.
17375 (find_switch_asserts): Put case labels into struct case_info
17376 array instead of TREE_VEC, adjust sorting, compare label_for_block
17377 values instead of CASE_LABELs.
17378
17379 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17380
17381 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
17382 ("orndi3_neon"): Likewise.
17383 ("bic<mode>3_neon"): Likewise.
17384
17385 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
17386
17387 PR tree-optimization/49038
17388 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
17389 Ensure at least one epilogue iteration if required by data
17390 accesses with gaps.
17391 * tree-vectorizer.h (struct _loop_vec_info): Add new field
17392 to mark loops that require peeling for gaps.
17393 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
17394 (vect_get_known_peeling_cost): Take peeling for gaps into
17395 account.
17396 (vect_transform_loop): Generate epilogue if required by data
17397 access with gaps.
17398 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
17399 loop as requiring an epilogue if there are gaps in the end of
17400 the strided group.
17401
17402 2011-05-25 Ian Lance Taylor <iant@google.com>
17403
17404 * godump.c (go_format_type): Output the first field with a usable
17405 Go type, if any.
17406
17407 2011-05-25 Ian Lance Taylor <iant@google.com>
17408
17409 * godump.c (go_format_type): Check for invalid type names, pointer
17410 target types, and struct field types.
17411
17412 2011-05-25 Jason Merrill <jason@redhat.com>
17413
17414 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
17415
17416 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
17417
17418 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
17419
17420 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
17421
17422 * config/i386/i386.md (*movqi_extv_1)): Put back
17423 "register_operand" check in "type" calculation.
17424 (*movqi_extzv_2): Likewise.
17425
17426 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
17427
17428 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
17429
17430 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
17431
17432 PR bootstrap/49160
17433 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
17434 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
17435 __divxc3, __divtc3): Wrap definitions in #ifndef.
17436
17437 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
17438
17439 PR target/49142
17440 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
17441 "register_operand" check and replace q_regs_operand with
17442 QIreg_operand in "type" calculation.
17443 (*movqi_extv_1): Likewise.
17444 (*movqi_extzv_2_rex64): Likewise.
17445 (*movqi_extzv_2): Likewise.
17446
17447 * config/i386/predicates.md (QIreg_operand): New.
17448
17449 2011-05-25 Richard Guenther <rguenther@suse.de>
17450
17451 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
17452 type-based offset disambiguation, streamline MEM_REF and
17453 TARGET_MEM_REF handling.
17454
17455 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
17456
17457 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
17458 (bdesc_special_args): Add pause intrinsic.
17459
17460 * config/i386/i386.md (UNSPEC_PAUSE): New.
17461 (pause): Likewise.
17462 (*pause): Likewise.
17463 * config/i386/ia32intrin.h (__pause): Likewise.
17464
17465 * doc/extend.texi (X86 Built-in Functions): Add documentation for
17466 pause intrinsic.
17467
17468 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17469
17470 PR tree-optimization/46728
17471 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
17472 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
17473
17474 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
17475
17476 * tree.h (struct tree_exp): Inherit from struct tree_typed.
17477 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
17478 instead of TS_COMMON.
17479
17480 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
17481
17482 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
17483 LIBGCC2_GNU_PREFIX is defined.
17484 (__N): New macro.
17485 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
17486 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
17487 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
17488 __clz_tab): Define using __N.
17489 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
17490 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
17491 * target.def (libfunc_gnu_prefix): New hook.
17492 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
17493 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
17494 * doc/tm.texi: Regenerate.
17495 * system.h (LIBGCC2_GNU_PREFIX): Poison.
17496 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
17497 account.
17498 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
17499 (init_optabs): Likewise for the bswap libfuncs.
17500 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
17501 and divide.
17502 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
17503 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
17504 * libgcc-std.ver: Remove.
17505 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
17506 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
17507 libgcc-std.ver.
17508 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
17509 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
17510 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
17511 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
17512 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
17513 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
17514 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
17515 * config/fixed-bit.h (FIXED_OP): Define differently depending on
17516 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
17517 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
17518
17519 2011-05-25 Jan Hubicka <jh@suse.cz>
17520
17521 * lto-streamer-out.c (output_record_start): Use lto_output_enum
17522 (lto_output_tree): Use output_record_start.
17523 * lto-streamer-in.c (input_record_start): Use lto_input_enum
17524 (lto_get_pickled_tree): Use input_record_start.
17525 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
17526 (lto_value_range_error): New function.
17527 * lto-streamer.h (lto_value_range_error): Declare.
17528 (lto_output_int_in_range, lto_input_int_in_range): New functions.
17529 (lto_output_enum, lto_input_enum): New macros.
17530
17531 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
17532
17533 * common.opt (flag_stack_usage_info): New variable.
17534 (-Wstack-usage): New option.
17535 * doc/invoke.texi (Warning options): Document -Wstack-usage.
17536 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
17537 <OPT_fstack_usage>: Likewise.
17538 * toplev.c (output_stack_usage): Handle -Wstack-usage.
17539 * calls.c (expand_call): Test flag_stack_usage_info variable instead
17540 of flag_stack_usage.
17541 (emit_library_call_value_1): Likewise.
17542 * explow.c (allocate_dynamic_stack_space): Likewise.
17543 * function.c (instantiate_virtual_regs ): Likewise.
17544 (prepare_function_start): Likewise.
17545 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
17546 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
17547 * config/arm/arm.c (arm_expand_prologue): Likewise.
17548 (thumb1_expand_prologue): Likewise.
17549 * config/avr/avr.c (expand_prologue): Likewise.
17550 * config/i386/i386.c (ix86_expand_prologue): Likewise.
17551 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
17552 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
17553 * config/mips/mips.c (mips_expand_prologue): Likewise.
17554 * config/pa/pa.c (hppa_expand_prologue): Likewise.
17555 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
17556 * config/s390/s390.c (s390_emit_prologue): Likewise.
17557 * config/sh/sh.c (sh_expand_prologue): Likewise.
17558 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
17559 * config/spu/spu.c (spu_expand_prologue): Likewise.
17560
17561 2011-05-25 Richard Guenther <rguenther@suse.de>
17562
17563 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
17564 (gimple_canonical_types_compatible_p): Likewise.
17565
17566 2011-05-25 Jan Hubicka <jh@suse.cz>
17567
17568 PR middle-end/49062
17569 * ipa.c (function_and_variable_visibility): Only add to same
17570 comdat group list if DECL_ONE_ONLY.
17571
17572 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
17573
17574 PR rtl-optimization/49014
17575 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
17576
17577 2011-05-25 Jakub Jelinek <jakub@redhat.com>
17578
17579 PR target/49128
17580 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
17581
17582 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17583
17584 PR rtl-optimization/48757
17585 * ira-build.c (loop_with_eh_edge_p): Rename to
17586 loop_with_complex_edge_p, check edges on complexity, make function
17587 conditional.
17588 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
17589 conditional.
17590
17591 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17592
17593 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
17594 force flag_ira_share_save_slots to 0.
17595
17596 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17597
17598 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
17599 (vt_initialize): Set PROLOGUE_BB unconditionally.
17600 Add block comment about CFA_BASE_RTX machinery.
17601 Reset FP_CFA_OFFSET to -1 on all invalid paths.
17602 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
17603
17604 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
17605
17606 PR objc/48187
17607 * c-parser.c (c_parser_objc_class_instance_variables): More robust
17608 parsing of syntax error in ObjC instance variable lists. In
17609 particular, avoid an infinite loop if there is a stray ']'.
17610 Updated error message.
17611
17612 2011-05-24 Ian Lance Taylor <iant@google.com>
17613
17614 * godump.c (go_define): Don't accept a string immediately after
17615 another operand.
17616
17617 2011-05-24 Ian Lance Taylor <iant@google.com>
17618
17619 * godump.c (struct godump_container): Add invalid_hash field.
17620 (go_format_type): Return false if type is found in invalid_hash.
17621 (go_output_typedef): Add invalid type to invalid_hash.
17622 (go_finish): Create and delete invalid_hash.
17623
17624 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17625
17626 PR tree-optimization/46728
17627 * tree-ssa-math-opts.c (powi_table): New.
17628 (powi_lookup_cost): New.
17629 (powi_cost): New.
17630 (powi_as_mults_1): New.
17631 (powi_as_mults): New.
17632 (gimple_expand_builtin_powi): New.
17633 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
17634 (gate_cse_sincos): Remove sincos/cexp restriction.
17635
17636 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17637
17638 PR target/3746
17639 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
17640 mips-tdump native.
17641 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
17642 * mips-tdump.c: Likewise.
17643
17644 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
17645
17646 PR target/49128
17647 * config/i386/driver-i386.c (host_detect_local_cpu): Always
17648 add -mno-XXX. Handle FMA.
17649
17650 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17651
17652 PR rtl-optimization/48633
17653 * ira-build.c (loop_with_eh_edge_p): New function.
17654 (mark_loops_for_removal): Use it.
17655
17656 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17657
17658 PR rtl-optimization/48971
17659 * ira.c (setup_pressure_classes): Don't check register move cost
17660 for classes with one registers. Don't add pressure class if there
17661 is a pressure class with the same available hard registers.
17662 Check contains_reg_of_mode. Fix a typo in collecting
17663 temp_hard_regset. Ignore hard registers not belonging to a class.
17664
17665 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
17666
17667 PR target/49133
17668 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
17669
17670 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17671 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17672
17673 PR gcov-profile/48845
17674 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
17675
17676 2011-05-24 Richard Guenther <rguenther@suse.de>
17677
17678 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
17679 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
17680 (gimple_types_compatible_p_1): Adjust.
17681 (iterative_hash_canonical_type): Do not bother about complete vs.
17682 incomplete types.
17683 (gimple_canonical_types_compatible_p): Likewise.
17684
17685 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17686
17687 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
17688
17689 2011-05-24 Richard Guenther <rguenther@suse.de>
17690
17691 PR bootstrap/49078
17692 * gimple.c (gimple_register_canonical_type): Revert
17693 previous change.
17694 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
17695 does not for a tree for the case where it matters. Cache
17696 pointer-type alias-sets.
17697
17698 2011-05-24 Joseph Myers <joseph@codesourcery.com>
17699
17700 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
17701 (OBJS): Remove options.o, opts-common.o and prefix.o.
17702 (OBJS-libcommon-target): New.
17703 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
17704 (BACKEND): Include libcommon-target.a.
17705 (MOSTLYCLEANFILES): Include libcommon-target.a.
17706 (libcommon-target.a): New.
17707 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
17708 prefix.o.
17709
17710 2011-05-23 Joseph Myers <joseph@codesourcery.com>
17711
17712 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
17713 parts of output shared with the driver.
17714 * optc-gen.awk: Don't generate parts of output not shared with the
17715 driver.
17716 * opth-gen.awk: Remove GCC_DRIVER conditionals.
17717 * doc/options.texi (SourcerInclude): Mention options-save.c.
17718 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
17719 (OBJS): Add options-save.o.
17720 (options-save.c, options-save.o): New.
17721 (options.o): Update dependencies.
17722 (gcc-options.o): Remove.
17723 (mostlyclean): Remove options-save.c.
17724
17725 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17726
17727 PR debug/49032
17728 * dbxout.c: Include cgraph.h.
17729 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
17730 and without value expr, return NULL if no varpool node exists for
17731 it or if it is not needed.
17732 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
17733
17734 PR c/49120
17735 * c-decl.c (start_decl): Convert expr to void_type_node.
17736
17737 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
17738
17739 PR rtl-optimization/48826
17740 * emit-rtl.c (try_split): When splitting a call that is followed
17741 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
17742
17743 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17744
17745 * cfgexpand.c (expand_debug_expr): For unused non-addressable
17746 parameters passed in memory prefer using DECL_INCOMING_RTL over
17747 the pseudos it will be copied into.
17748
17749 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
17750
17751 PR target/47315
17752 * config/i386/i386.c (ix86_option_override_internal): Save the
17753 initial options after checking vzeroupper.
17754
17755 2011-05-23 David Li <davidxl@google.com>
17756
17757 PR tree-optimization/48988
17758 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
17759 Initialize has_valid_pred for each pred chain.
17760
17761 2011-05-23 Richard Guenther <rguenther@suse.de>
17762
17763 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
17764 (iterative_hash_gimple_type): Always hash type names.
17765
17766 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
17767
17768 * c-typeck.c (build_function_call_vec): Tweak call to
17769 check_function_arguments.
17770
17771 2011-05-23 Richard Guenther <rguenther@suse.de>
17772
17773 PR tree-optimization/49115
17774 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
17775 is not necessarily carried out, do not claim it kills the ref.
17776 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
17777
17778 2011-05-23 Richard Guenther <rguenther@suse.de>
17779
17780 PR middle-end/15419
17781 * builtins.c (fold_builtin_memory_op): Be less restrictive about
17782 what pointer types we accept for folding.
17783
17784 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17785
17786 * gthr-gnat.c: Remove.
17787 * gthr-gnat.h: Remove.
17788 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
17789 * config/t-freebsd (LIB2ADDEH): Likewise.
17790 * config/t-linux (LIB2ADDEH): Likewise.
17791 * config/t-sol2 (LIB2ADDEH): Likewise.
17792 * config/ia64/t-vms (LIB2ADDEH): Likewise.
17793 * configure.ac (target_thread_file): Remove gnat handling.
17794 * configure: Regenerate.
17795 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
17796
17797 2011-05-23 Tristan Gingold <gingold@adacore.com>
17798 Eric Botcazou <ebotcazou@adacore.com>
17799
17800 * gcov.c (create_file_names): If no object directory is specified,
17801 keep the directory of the file.
17802
17803 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17804
17805 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
17806 * configure: Regenerate.
17807
17808 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17809
17810 PR middle-end/48973
17811 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
17812 failed and the comparison has a single bit signed type, use
17813 constm1_rtx instead of const1_rtx for true value.
17814 (do_store_flag): If ops->type is single bit signed type, disable
17815 signel bit test optimization and pass -1 instead of 1 as last
17816 parameter to emit_store_flag_force.
17817
17818 2011-05-23 Tom de Vries <tom@codesourcery.com>
17819
17820 PR target/45098
17821 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17822 function.
17823 (infer_loop_bounds_from_undefined): Use new function.
17824
17825 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
17826
17827 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17828 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
17829 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17830 and -O0 otherwise.
17831 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17832
17833 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17834
17835 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17836 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17837 returns true.
17838
17839 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
17840
17841 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17842
17843 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17844
17845 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17846 UNSPEC_MOVE_PIC pattern.
17847
17848 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17849
17850 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17851 (sparc-*-rtems*): Likewise.
17852 (sparc64-*-elf*): Likewise.
17853 (sparc64-*-rtems*): Likewise.
17854 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
17855 * config/sparc/t-crtin: New file.
17856 * config/sparc/t-sol2 (crti.o): Delete rule.
17857 (crtn.o): Likewise.
17858 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17859 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17860 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17861 (ENDFILE_SPEC): Add crtn.o.
17862
17863 2011-05-22 Tom de Vries <tom@codesourcery.com>
17864
17865 PR middle-end/48689
17866 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17867 CODE_CONTAINS_STRUCT (TS_COMMON).
17868
17869 2011-05-22 Jakub Jelinek <jakub@redhat.com>
17870
17871 PR middle-end/49029
17872 * expmed.c (extract_fixed_bit_field): Test whether target can be used
17873 only after deciding which mode to use.
17874
17875 2011-05-22 Tom de Vries <tom@codesourcery.com>
17876
17877 PR target/45098
17878 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17879 for call to get_shiftadd_cost.
17880
17881 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
17882
17883 PR target/49104
17884 * config/i386/cpuid.h (bit_MMXEXT): New define.
17885
17886 2011-05-22 Nick Clifton <nickc@redhat.com>
17887
17888 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17889 initialisation of non-existant args[2] element. Use args[] array
17890 not arg[] array to pass arguments to build_function_type_list.
17891
17892 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
17893
17894 PR tree-optimization/49087
17895 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17896
17897 2011-05-21 Jason Merrill <jason@redhat.com>
17898
17899 PR c++/49092
17900 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17901 static storage duration.
17902
17903 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
17904
17905 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17906 frame pointer.
17907
17908 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
17909
17910 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17911 false if there are call-saved registers here...
17912 (sparc_can_use_return_insn_p): ...but here instead.
17913 (save_or_restore_regs): Fix thinko.
17914 (sparc_expand_prologue): Use current_function_is_leaf.
17915 (sparc_frame_pointer_required): Likewise.
17916
17917 2011-05-21 Nick Clifton <nickc@redhat.com>
17918
17919 PR target/49098
17920 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17921
17922 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
17923
17924 * gengtype.c (walk_type): Implemented "atomic" GTY option.
17925 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17926
17927 2011-05-21 Joseph Myers <joseph@codesourcery.com>
17928
17929 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
17930 * optc-gen.awk: Move common code to opt-read.awk.
17931 * opth-gen.awk: Likewise.
17932 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17933
17934 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
17935
17936 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17937
17938 2011-05-20 Tom de Vries <tom@codesourcery.com>
17939
17940 PR target/45098
17941 * tree-ssa-loop-ivopts.c: Include expmed.h.
17942 (get_shiftadd_cost): New function.
17943 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
17944
17945 2011-05-20 Jakub Jelinek <jakub@redhat.com>
17946
17947 PR bootstrap/49086
17948 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17949 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17950
17951 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17952
17953 * Makefile.in: Update comment referring to $(OBJS-common).
17954
17955 2011-05-20 Ian Lance Taylor <iant@google.com>
17956
17957 * godump.c (go_output_typedef): Put enum constants in the macro
17958 hash table to avoid duplicate Go const definitions.
17959
17960 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17961
17962 * Makefile.in (LIBDEPS): Add libcommon.a.
17963 (LIBS): Likewise.
17964 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17965 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17966 pretty-print.o and version.o.
17967 (OBJS-libcommon): New.
17968 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17969 (BACKEND): Add libcommon.a.
17970 (MOSTLYCLEANFILES): Likewise.
17971 (libcommon.a): New.
17972 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17973 (cpp$(exeext)): Likewise.
17974 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17975 pretty-print.o and input.o.
17976 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17977 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17978 (errors.o): Remove.
17979 (mips-tfile): Don't explicitly use version.o.
17980 (mips-tdump): Likewise.
17981 (gcov.o): Depend on $(DIAGNOSTIC_H).
17982 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17983 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17984 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17985 * gcov-dump.c: Include intl.h and diagnostic.h.
17986 (main): Initialize diagnostics.
17987 * gcov.c: Include diagnostic.h.
17988 (fnotice): Remove.
17989 (main): Initialize diagnostics.
17990 * lto-wrapper.c: Include diagnostic.h.
17991 (main): Initialize diagnostics.
17992
17993 2011-05-20 Michael Matz <matz@suse.de>
17994
17995 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17996
17997 2011-05-20 Michael Matz <matz@suse.de>
17998 Richard Guenther <rguenther@suse.de>
17999
18000 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
18001 use lto_streamer_cache_append directly instead of returning a VEC.
18002 (preload_common_node): Remove.
18003 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
18004 track seen nodes.
18005 (lto_streamer_cache_create): Call lto_preload_common_nodes.
18006
18007 2011-05-20 Richard Guenther <rguenther@suse.de>
18008
18009 PR tree-optimization/49079
18010 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
18011 MEM_REFs correctly for the trailing array access detection.
18012 Special case constants the same way as decls for overall size
18013 constraining.
18014
18015 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
18016
18017 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
18018 argument expansion.
18019
18020 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18021
18022 PR tree-optimization/49073
18023 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
18024 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
18025 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
18026
18027 2011-05-20 Richard Guenther <rguenther@suse.de>
18028
18029 PR middle-end/48849
18030 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
18031 of pointer types the same way the middle-end does.
18032
18033 2011-05-20 Richard Guenther <rguenther@suse.de>
18034
18035 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
18036 or pointer-to chains. Delay all fixup to uniquify_nodes.
18037
18038 2011-05-19 Quentin Neill <quentin.neill@amd.com>
18039
18040 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
18041 (fma4_fmaddsub): Likewise
18042
18043 2011-05-19 Jan Hubicka <jh@suse.cz>
18044
18045 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
18046 (GIMPLE_TYPE_PAIR_SIZE): New macro.
18047 (type_pair_cache): New static var.
18048 (lookup_type_pair): Use fixed sized custom hash; make inline.
18049 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
18050 calls of lookup_type_pair.
18051 (print_gimple_types_stats): Remove cache stats.
18052 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
18053 and gtc_ob.
18054
18055 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
18056
18057 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
18058 when TARGET_RDRND is active.
18059 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
18060 Generate dummy SImode target register when target is NULL.
18061
18062 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18063
18064 * config/arm/arm-fpus.def: New.
18065 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
18066 arm-fpus.def.
18067 * config/arm/arm-tables.opt: Regenerate.
18068 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
18069 (arm_option_override): Don't decode FPU name to string here.
18070 * config/arm/arm.opt (mfpu=): Use Enum.
18071 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
18072 Update dependencies.
18073
18074 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18075
18076 * collect2.c: Include diagnostic.h.
18077 (fatal_perror, fatal, error, fancy_abort): Remove.
18078 (main): Set progname. Call xmalloc_set_program_name and
18079 diagnostic_initialize.
18080 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
18081 scan_libraries, resolve_lib_name): Call fatal_error instead of
18082 fatal and fatal_perror.
18083 * collect2.h (error, fatal, fatal_perror): Don't declare.
18084 * tlink.c: Include diagnostic-core.h.
18085 (recompile_files): Call fatal_error instead of fatal_perror.
18086 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
18087 pretty-print.o and input.o.
18088 (collect2.o, tlink.o): Update dependencies.
18089
18090 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18091
18092 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
18093
18094 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18095
18096 PR target/40483
18097 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
18098 COMDAT group syntax, both SPARC and x86 variants.
18099 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
18100 * configure: Regenerate.
18101 * config/sol2.h (TARGET_SOLARIS): Define.
18102 (PUSHSECTION_FORMAT): Remove.
18103 (SECTION_NAME_FORMAT): Define.
18104 * config/sol2.c: Include hashtab.h.
18105 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
18106 expansion, using SECTION_NAME_FORMAT.
18107 (solaris_comdat_htab): New variable.
18108 (struct comdat_entry): Define.
18109 (comdat_hash): New function.
18110 (comdat_eq): New function.
18111 (solaris_elf_asm_comdat_section): New function.
18112 (solaris_define_comdat_signature): New function.
18113 (solaris_code_end): New function.
18114 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
18115 (solaris_code_end): Declare.
18116 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
18117 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
18118 solaris_code_end.
18119 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
18120 Remove ATTRIBUTE_UNUSED.
18121 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
18122 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
18123 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
18124 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
18125 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
18126 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
18127 (PUSHSECTION_FORMAT): Remove.
18128 (SECTION_NAME_FORMAT): Redefine.
18129
18130 2011-05-19 Kai Tietz <ktietz@redhat.com>
18131
18132 * tree-cfg.c (verify_gimple_assign_binary): Barf on
18133 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
18134 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
18135
18136 2011-05-19 Anatoly Sokolov <aesok@post.ru>
18137 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18138
18139 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
18140
18141 2011-05-19 Richard Guenther <rguenther@suse.de>
18142
18143 PR middle-end/48985
18144 * tree-object-size.c (addr_object_size): If the pointed-to
18145 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
18146
18147 2011-05-19 Richard Guenther <rguenther@suse.de>
18148
18149 * gimple.c (gimple_types_compatible_p_1): Compare names of
18150 the types themselves.
18151 (iterative_hash_gimple_type): And hash them that way.
18152 (gimple_register_type_1): If we register a main variant properly
18153 initialize the leader to ourselves.
18154
18155 2011-05-19 Tom de Vries <tom@codesourcery.com>
18156
18157 PR target/45098
18158 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
18159 get_loop_invariant_expr_id.
18160 (get_loop_invariant_expr_id): Use get_expr_id.
18161 (parm_decl_cost): New function.
18162 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
18163 Improve bound cost estimation. Use different inv_expr_id for elim and
18164 express cases.
18165
18166 2011-05-19 Tom de Vries <tom@codesourcery.com>
18167
18168 PR target/45098
18169 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
18170 cost_base.cost == 0.
18171
18172 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
18173
18174 PR target/49002
18175 * config/i386/sse.md
18176 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
18177 load cast.
18178
18179 2011-05-18 Jakub Jelinek <jakub@redhat.com>
18180
18181 PR tree-optimization/49039
18182 * tree-vrp.c (extract_range_from_binary_expr): For
18183 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
18184 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
18185
18186 2011-05-18 Tom de Vries <tom@codesourcery.com>
18187
18188 PR target/45098
18189 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
18190
18191 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
18192
18193 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
18194 (*tls_global_dynamic_64): Ditto.
18195 (*tls_local_dynamic_base_32_gnu): Ditto.
18196 (*tls_local_dynamic_base_64): Ditto.
18197 (tls_initial_exec_64_sun): Ditto.
18198
18199 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
18200
18201 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
18202 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
18203 bf592-none.
18204 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
18205 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
18206 * config/bfin/bfin.c (bfin_cpus): Add bf592.
18207 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
18208 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
18209 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
18210 * config/bfin/elf.h (LIB_SPEC): Add bf592.
18211
18212 2011-05-18 Joseph Myers <joseph@codesourcery.com>
18213
18214 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
18215 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
18216 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
18217 target_thread_pointer, arm_structure_size_boundary, struct
18218 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
18219 struct abi_name, arm_all_abis): Remove.
18220 (arm_option_override) Don't process most enumerated option values here.
18221 Don't process target_fpe_name here. Work with integer not string for
18222 structure size boundary; use separate diagnostics for each case.
18223 * config/arm/arm.h (enum float_abi_type, enum
18224 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
18225 to arm-opts.h.
18226 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
18227 arm_structure_size_boundary): Remove.
18228 * config/arm/arm.opt (mabi=): Use Enum and Init.
18229 (arm_abi_type): New Enum and EnumValue entries.
18230 (mfloat-abi=): Use Enum and Init.
18231 (float_abi_type): New Enum and EnumValue entries.
18232 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
18233 (mfp16-format=): Use Enum and Init.
18234 (arm_fp16_format_type): New Enum and EnumValue entries.
18235 (mstructure-size-boundary=): Use UInteger and Init.
18236 (mtp=): Use Enum and Init.
18237 (arm_tp_type): New Enum and EnumValue entries.
18238
18239 2011-05-18 Richard Guenther <rguenther@suse.de>
18240
18241 PR tree-optimization/49018
18242 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
18243 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
18244 gimple_has_side_effects.
18245
18246 2011-05-18 Richard Guenther <rguenther@suse.de>
18247
18248 * gimple.c (gimple_register_type_1): New function, split out from ...
18249 (gimple_register_type): ... here. Avoid infinite recursion.
18250
18251 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
18252
18253 PR tree-optimization/41881
18254 * tree-vectorizer.h (struct _loop_vec_info): Add new field
18255 reduction_chains along with a macro for its access.
18256 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
18257 (destroy_loop_vec_info): Free reduction chains.
18258 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
18259 (vect_is_slp_reduction): New function.
18260 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
18261 (vect_create_epilog_for_reduction): Support SLP reduction chains.
18262 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
18263 definition types for reduction chains.
18264 (vect_supported_load_permutation_p): Don't allow permutations for
18265 reduction chains.
18266 (vect_analyze_slp_instance): Support reduction chains.
18267 (vect_analyze_slp): Try to build SLP instance from reduction chains.
18268 (vect_get_constant_vectors): Handle reduction chains.
18269 (vect_schedule_slp_instance): Mark the first statement of the
18270 reduction chain as reduction.
18271
18272 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
18273
18274 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
18275 names for group elements access.
18276 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
18277 reduction chains as well. Remove data reference and interleaving
18278 related words from the fields names.
18279 * tree-vect-loop.c (vect_transform_loop): Use new names for group
18280 elements access.
18281 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
18282 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
18283 vect_update_interleaving_chain, vect_same_range_drs,
18284 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
18285 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
18286 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
18287 vect_analyze_group_access, vect_analyze_data_ref_access,
18288 vect_create_data_ref_ptr, vect_transform_strided_load,
18289 vect_record_strided_load_vectors): Likewise.
18290 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
18291 vect_model_load_cost, vectorizable_store, vectorizable_load,
18292 vect_remove_stores, new_stmt_vec_info): Likewise.
18293 * tree-vect-slp.c (vect_build_slp_tree,
18294 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
18295
18296 2011-05-18 Richard Guenther <rguenther@suse.de>
18297
18298 PR middle-end/48989
18299 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
18300 operand verification.
18301 (verify_gimple_assign_binary): Likewise.
18302 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
18303 to non-1-precision BOOLEAN_TYPEs.
18304
18305 2011-05-18 Tom de Vries <tom@codesourcery.com>
18306
18307 PR target/45098
18308 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
18309
18310 2011-05-18 Jakub Jelinek <jakub@redhat.com>
18311
18312 PR tree-optimization/49000
18313 * tree-ssa.c (execute_update_addresses_taken): Call
18314 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
18315 be rewritten and decl has been marked for renaming, reset
18316 the debug stmt.
18317
18318 2011-05-17 Joseph Myers <joseph@codesourcery.com>
18319
18320 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
18321 enum_opts_set when testing if attributes have set -mfpmath=.
18322
18323 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18324
18325 * config/mips/mips.c (mips_handle_option): Remove unused variable.
18326
18327 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
18328
18329 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
18330 info->entry with 0
18331 * tree-inline.c (maybe_inline_call_in_expr): Initialize
18332 id.transform_lang_insert_block with NULL.
18333
18334 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
18335
18336 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
18337 (output_fp_compare): Change args 3 and 4 to bool.
18338 (ix86_expand_call): Change arg 6 to bool.
18339 (ix86_attr_length_immediate_default): Change arg 2 to bool.
18340 (ix86_attr_length_vex_default): Change arg 3 to bool.
18341 * config/i386/i386.md: Update all uses.
18342 * config/i386/i386.c: Ditto.
18343 (ix86_flags_dependent): Change return type to bool.
18344
18345 2011-05-17 Richard Guenther <rguenther@suse.de>
18346
18347 * gimple.c (type_hash_pair_compare): Fix comparison.
18348
18349 2011-05-17 Richard Guenther <rguenther@suse.de>
18350
18351 * gimple.c (iterative_hash_gimple_type): Simplify singleton
18352 case some more, fix final hash value of the non-singleton case.
18353
18354 2011-05-17 Richard Guenther <rguenther@suse.de>
18355
18356 PR bootstrap/49013
18357 Revert
18358 2011-05-16 Richard Guenther <rguenther@suse.de>
18359
18360 * gimple.c (gimple_types_compatible_p_1): Use names of the
18361 type itself, not its main variant.
18362 (iterative_hash_gimple_type): Likewise.
18363
18364 2011-05-17 Richard Guenther <rguenther@suse.de>
18365
18366 * gimple.c (gimple_register_canonical_type): Use the main-variant
18367 leader for computing the canonical type.
18368
18369 2011-05-17 Nick Clifton <nickc@redhat.com>
18370
18371 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
18372 moves.
18373
18374 * config/rx/rx.md: Add peephole to remove redundant extensions
18375 after loads.
18376 (bitset_in_memory): Use rx_restricted_mem_operand.
18377 (bitinvert_in_memory): Likewise.
18378 (bitclr_in_memory): Likewise.
18379
18380 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
18381 Nick Clifton <nickc@redhat.com>
18382
18383 * config/rx/rx.md: Add peepholes to match a register move followed
18384 by a comparison of the moved register. Replace these with an
18385 addition of zero that does both actions in one instruction.
18386
18387 2011-05-17 Jakub Jelinek <jakub@redhat.com>
18388
18389 PR target/48986
18390 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
18391 predicate to allow CONST_INT.
18392 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
18393
18394 2011-05-16 Joseph Myers <joseph@codesourcery.com>
18395
18396 * opts-common.c (opt_enum_arg_to_value): New.
18397 * opts.h (opt_enum_arg_to_value): Declare.
18398 * config/i386/i386.opt (fpmath): Remove.
18399 (mfpmath=): Use Enum, Init and Save.
18400 (fpmath_unit): New Enum and EnumValue entries.
18401 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
18402 name for function fpmath state.
18403 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
18404 * config/i386/i386.c: Include diagnostic.h.
18405 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
18406 (ix86_target_string): Take enum fpmath_unit value instead of string.
18407 (ix86_debug_options): Update call to ix86_target_string.
18408 (ix86_option_override_internal): Don't process fpmath strings here.
18409 (x86_function_specific_save, ix86_function_specific_restore):
18410 Don't handle fpmath state specially.
18411 (ix86_function_specific_print): Pass fpmath state to
18412 ix86_target_string instead of printing in this function.
18413 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
18414 Handle enum attributes.
18415 (IX86_ATTR_ENUM, ix86_opt_enum): New.
18416 (ix86_valid_target_attribute_tree): Update option_strings
18417 handling. Handle fpmath as enum option.
18418 (ix86_can_inline_p): Update field names for function fpmath state.
18419 (ix86_expand_builtin): Update call to ix86_target_string.
18420 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
18421 (ix86_fpmath): Remove.
18422 * config/i386/t-i386 (i386.o): Update dependencies.
18423
18424 2011-05-16 Joseph Myers <joseph@codesourcery.com>
18425
18426 PR preprocessor/48677
18427 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
18428 from decoded_options[0], not from itself.
18429
18430 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
18431
18432 * config/i386/constraints.md (z): New constraint.
18433 * config/i386/i386.c (c): New mode attribute.
18434 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
18435 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
18436 constraint for operand 0.
18437 (*call_vzeroupper): Ditto.
18438 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
18439 (*call_rex64_ms_sysv_vzeroupper): Ditto.
18440 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
18441 Use "lzm" constraint for operand 0.
18442 (*call_pop_vzeroupper): Ditto.
18443 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
18444 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
18445 constraint for operand 0.
18446 (*sibcall_vzeroupper): Ditto.
18447 (*sibcall_rex64_ms_sysv): Ditto.
18448 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
18449 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
18450 *sibcall_pop_1. Use "Uz" constraint for operand 0.
18451 (*sibcall_pop_vzeroupper): Ditto.
18452 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
18453 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
18454 mode iterator. Use "<c>zm" constraint for operand 1.
18455 (*call_value_vzeroupper): Ditto.
18456 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
18457 for operand 1.
18458 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
18459 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
18460 *call_value_pop_1. Use "lzm" constraint for operand 1.
18461 (*call_value_pop_vzeroupper): Ditto.
18462 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
18463 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
18464 mode iterator. Use "Uz" constraint for operand 1.
18465 (*sibcall_value_vzeroupper): Ditto.
18466 (*sibcall_value_rex64_ms_sysv): Ditto.
18467 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
18468 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
18469 constraint for operand 1.
18470 (*sibcall_value_pop_vzeroupper): Ditto.
18471 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
18472 and "z" constraint for operand 2.
18473 (*tls_global_dynamic_32_gnu): Ditto.
18474 (*tls_local_dynamic_base_32_gnu): Ditto.
18475 (*tls_local_dynamic_base_64): Ditto.
18476 (*tls_local_dynamic_32_once): Ditto.
18477 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
18478 Update all callers.
18479 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
18480
18481 2011-05-16 Richard Guenther <rguenther@suse.de>
18482
18483 * gimple.c (gimple_types_compatible_p_1): Use names of the
18484 type itself, not its main variant.
18485 (iterative_hash_gimple_type): Likewise.
18486
18487 2011-05-16 Richard Guenther <rguenther@suse.de>
18488
18489 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
18490 always visit pointer target and function result and argument types.
18491
18492 2011-05-16 Jason Merrill <jason@redhat.com>
18493
18494 PR c++/48999
18495 * tree-inline.c (copy_statement_list): Put back recursion.
18496
18497 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
18498
18499 PR target/27663
18500 PR target/41076
18501 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
18502 * config/avr/avr.md ("*ior<mode>qi.byte0",
18503 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
18504
18505 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
18506
18507 PR target/45099
18508 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
18509 register is needed for a function argument.
18510
18511 2011-05-16 Richard Guenther <rguenther@suse.de>
18512
18513 * gimple.c (struct type_hash_pair): New type.
18514 (type_hash_pair_compare): New function.
18515 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
18516
18517 2011-05-16 Revital Eres <revital.eres@linaro.org>
18518
18519 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
18520
18521 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
18522
18523 * config/i386/i386.md (floating point move splitters): Fix
18524 usage of standard_80387_constant_p.
18525 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
18526
18527 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
18528
18529 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
18530
18531 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
18532
18533 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
18534 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
18535 (tree_ssa_lim_finalize): Likewise.
18536
18537 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
18538
18539 * config/i386/constraint.md (Yd, Yx): New register constraints.
18540 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
18541 Yd conditional register constraint.
18542 (*movtf_internal): Use standard_sse_constant_opcode.
18543 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
18544 Yx conditional register constraint.
18545 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
18546 Yd conditional register constraint. Use standard_sse_constant_p to
18547 check for valid SSE constants and call standard_sse_constant_opcode to
18548 output SSE insn.
18549 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
18550 constants and call standard_sse_constant_opcode to output SSE insn.
18551 * config/i386/i386.c (ix86_option_ovverride_internal): Set
18552 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
18553 optimize_size is set.
18554 (standard_sse_constant_opcode): Output conditional AVX insn templates.
18555
18556 2011-05-14 Tobias Burnus <burnus@net-b.de>
18557
18558 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
18559
18560 2011-05-13 Martin Jambor <mjambor@suse.cz>
18561
18562 * ipa-prop.c (ipa_cst_from_jfunc): New function.
18563 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
18564 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
18565 (evaluate_conditions_for_ipcp_clone): Removed.
18566 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
18567 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
18568 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
18569
18570 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
18571
18572 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
18573 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
18574 lieu of MAY_HAVE_DEBUG_STMTS.
18575 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
18576 debug statements if !MAY_HAVE_DEBUG_STMTS.
18577
18578 2011-05-13 Martin Thuresson <martint@google.com>
18579
18580 PR gcov-profile/47793
18581 * libgcov.c (gcov_exit): Support relative profile paths.
18582 * doc/invoke.texi (-fprofile-dir): Update for above change.
18583
18584 2011-05-13 Richard Guenther <rguenther@suse.de>
18585
18586 * gimple.c (gimple_canonical_types_compatible_p): Do not use
18587 type-pair caching, do not compare hashes.
18588
18589 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
18590
18591 PR middle-end/48965
18592 * tree-cfg.c (edge_to_cases_cleanup): Return true.
18593 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
18594
18595 2011-05-13 Kai Tietz <ktietz@redhat.com>
18596
18597 * gimplify.c (gimplify_expr): Make sure operand is boolified.
18598 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
18599 compatible type for TRUTH_NOT_EXPR.
18600
18601 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
18602
18603 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
18604 (ix86_hard_regno_mode_ok): Change return value to bool. Use
18605 can_create_pseudo_p ().
18606
18607 2011-05-13 Richard Guenther <rguenther@suse.de>
18608
18609 PR lto/48978
18610 * gimple.c (iterative_hash_gimple_type): Revert change in
18611 pointer target and function result and argument hashing.
18612
18613 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
18614
18615 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
18616 (*movxf_internal_nointeger): Ditto.
18617 (*movdf_internal_rex64): Ditto.
18618 (*movdf_internal): Ditto.
18619 (*movdf_internal_nointeger): Ditto.
18620 (*movsf_internal): Ditto.
18621 (sincos splitters): Use can_create_pseudo ().
18622
18623 2011-05-13 Joseph Myers <joseph@codesourcery.com>
18624
18625 * config/i386/i386-opts.h: New.
18626 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
18627 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
18628 ix86_section_threshold): Remove.
18629 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
18630 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
18631 OPT_mbranch_cost_.
18632 (ix86_option_override_internal): Don't decode strings for options
18633 other than -march=, -mtune= and -mfpmath=. Don't allow for
18634 __attribute__ uses in remaining diagnostics for options with
18635 string arguments. Don't check for integer arguments being negative.
18636 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
18637 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
18638 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
18639 ix86_branch_cost, ix86_section_threshold): Remove.
18640 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
18641 HeaderInclude.
18642 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
18643 but not Var.
18644 (masm=): Use Enum and Init.
18645 (asm_dialect): New Enum and EnumValue entries.
18646 (mbranch-cost=): Use UInteger.
18647 (mlarge-data-threshold=): Use UInteger and Init.
18648 (mcmodel=): Use Enum and Init.
18649 (cmodel): New Enum and EnumValue entries.
18650 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
18651 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
18652 mregparm=): Use UInteger.
18653 (mstringop-strategy=): Use Enum and Init.
18654 (stringop_alg): New Enum and EnumValue entries.
18655 (mtls-dialect=): Use Enum and Init.
18656 (tls_dialect): New Enum and EnumValue entries.
18657 (mabi=): Use Enum and Init.
18658 (calling_abi): New Enum and EnumValue entries.
18659 (mveclibabi=): Use Enum and Init.
18660 (ix86_veclibabi): New Enum and EnumValue entries.
18661
18662 2011-05-13 Nick Clifton <nickc@redhat.com>
18663
18664 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
18665 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
18666
18667 2011-05-13 Kai Tietz <ktietz@redhat.com>
18668
18669 PR middle-end/48984
18670 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
18671 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
18672 (gimple_boolify): Check for cast for boolean_type_node instead for
18673 BOOLEAN_TYPE.
18674
18675 2011-05-13 Richard Guenther <rguenther@suse.de>
18676
18677 PR tree-optimization/48172
18678 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
18679 multiplying by number of iterations for equal step.
18680 (vect_create_cond_for_alias_checks): Likewise.
18681
18682 2011-05-13 Andreas Schwab <schwab@redhat.com>
18683
18684 * configure.ac: Use AS_HELP_STRING throughout.
18685 * configure: Regenerate.
18686
18687 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
18688
18689 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
18690 (ix86_emit_restore_regs_using_mov): Likewise.
18691 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18692
18693 2011-05-12 Anatoly Sokolov <aesok@post.ru>
18694
18695 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
18696 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
18697 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
18698 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
18699 RTX_OK_FOR_OLO10_P): ...here.
18700 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
18701 SYMBOLIC_CONST.
18702
18703 2011-05-12 Kai Tietz <ktietz@redhat.com>
18704
18705 * gimplify.c (gimple_boolify): Re-boolify expression
18706 arguments even if expression type is of kind BOOLEAN_TYPE.
18707 (gimplify_boolean_expr): Removed.
18708 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
18709 and XOR. Additional take care that we keep expression's type.
18710 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
18711 of TRUTH_AND|OR|XOR_EXPR.
18712
18713 2011-05-12 Jakub Jelinek <jakub@redhat.com>
18714
18715 PR tree-optimization/48975
18716 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
18717 on all bbs here and free and clear ifc_bbs at the end.
18718
18719 2011-05-12 Richard Guenther <rguenther@suse.de>
18720
18721 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
18722 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
18723 until after simple checks.
18724 (gimple_types_compatible_p): Likewise.
18725 (iterative_hash_gimple_type): Always hash pointer targets
18726 and function return and argument types.
18727 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
18728 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
18729 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
18730 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
18731 completely in the simple compare section.
18732 (gimple_register_canonical_type): Query the cache again after
18733 registering.
18734
18735 2011-05-12 Richard Guenther <rguenther@suse.de>
18736
18737 PR tree-optimization/48172
18738 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
18739 the number of iterations from the segment size calculation.
18740 (vect_create_cond_for_alias_checks): Adjust.
18741
18742 2011-05-12 Jakub Jelinek <jakub@redhat.com>
18743
18744 PR debug/48967
18745 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
18746 if validate_subreg fails.
18747
18748 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
18749
18750 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
18751 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
18752 early.
18753
18754 2011-05-12 DJ Delorie <dj@redhat.com>
18755
18756 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
18757 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
18758 created builtin into rx_builtins array.
18759 (rx_builtin_decl): New function.
18760 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
18761
18762 2011-05-12 DJ Delorie <dj@redhat.com>
18763 Nick Clifton <nickc@redhat.com>
18764
18765 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
18766 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
18767 (rx_is_legitimate_address): Add pre-decrement and post-increment
18768 addressing in HImode and QImode. Fix test for out of range
18769 REG+INT addressing.
18770 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
18771 (rx_align_for_label): Test label before extracting its usage count.
18772 (rx_adjust_insn_lengths): Fix selection of insn codes.
18773 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
18774
18775 2011-05-11 Jason Merrill <jason@redhat.com>
18776
18777 * tree.c (type_hash_canon): Use struct tree_type_non_common.
18778
18779 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
18780
18781 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
18782 reindent the subsequent block.
18783
18784 2011-05-11 Satoru Takabayashi <satorux@google.com>
18785 Paul Pluzhnikov <ppluzhnikov@google.com>
18786
18787 * doc/install.texi (Configuration): Document --with-linker-hash-style.
18788 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
18789 * config.in: Add LINKER_HASH_STYLE.
18790 * configure.ac: Add --with-linker-hash-style.
18791 * configure: Regenerate.
18792
18793 2011-05-11 Richard Guenther <rguenther@suse.de>
18794
18795 PR middle-end/48964
18796 * gimple.c (iterative_hash_canonical_type): Fix typo.
18797
18798 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
18799
18800 * config/i386/i386.c (legitimize_tls_address)
18801 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18802 expanders directly for TARGET_GNU2_TLS. Determine pic and
18803 __tls_get_addr symbol reference here. Update call to
18804 gen_tls_global_dynamic_{32,64} for added arguments.
18805 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18806 expanders directly for TARGET_GNU2_TLS. Determine
18807 __tls_get_addr symbol reference here. Update call to
18808 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
18809 unique UNSPEC REG_EQUIV to libcall block.
18810 (ix86_tls_get_addr): Declare static.
18811 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
18812 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
18813 Do not determine pic and __tls_get_addr symbol reference here. Do not
18814 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18815 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18816 (tls_global_dynamic_64): Add operand 2. Do not determine
18817 __tls_get_addr symbol reference here. Do not call
18818 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18819 (tls_local_dynamic_base64): Ditto for operand 1.
18820
18821 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
18822
18823 * function.c (expand_function_start): Initialize stack_check_probe_note
18824 only if the generic stack checking mechanism is used.
18825
18826 2011-05-11 Richard Guenther <rguenther@suse.de>
18827
18828 PR tree-optimization/15256
18829 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18830 (A & B) | C, combine (A op CST1) op CST2.
18831 (tree_ssa_forward_propagate_single_use_vars): Only bother to
18832 visit assigns that have uses.
18833
18834 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
18835
18836 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18837 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18838 (unpack_ts_type_common_value_fields): ...this. Update comment.
18839 (unpack_value_fields): Adjust for renaming.
18840 (lto_input_ts_type_tree_pointers): Split into...
18841 (lto_input_ts_type_common_tree_pointer): ...this and...
18842 (lto_input_ts_type_non_common_tree_pointers): ...this.
18843 (lto_input_tree_pointers): Adjust for above split.
18844 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18845 (pack_ts_type_common_value_fields): ...this. Update comment.
18846 (lto_output_ts_type_tree_pointers): Split into...
18847 (lto_output_ts_type_common_tree_pointers): ...this and...
18848 (lto_output_ts_type_non_common_tree_pointers): ...this.
18849 (lto_output_tree_pointers): Adjust for above split.
18850 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18851 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18852 * stor-layout.c (vector_type_mode): Adjust location of mode field.
18853 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18854 Define.
18855 (struct tree_type): Split into...
18856 (struct tree_type_common: ...this and...
18857 (struct tree_type_with_lang_specific): ...this and...
18858 (struct tree_type_non_common): ...this. Adjust accessor macros
18859 accordingly.
18860 (TYPE_VALUES_RAW): Define.
18861 (union tree_node): Update for above changes.
18862 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18863 TS_TYPE_NON_COMMON.
18864 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18865 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18866 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18867 * treestructu.def (TS_TYPE): Remove.
18868 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18869 Define.
18870
18871 2011-05-11 Jakub Jelinek <jakub@redhat.com>
18872
18873 PR debug/48159
18874 * tree-ssa.c (reset_debug_uses): New function.
18875 * tree-flow.h (reset_debug_uses): New prototype.
18876 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18877 * tree-loop-distribution.c (generate_loops_for_partition): Call
18878 reset_debug_uses on the stmts that will be removed. Keep around
18879 all debug stmts, don't count them as bits in partition bitmap.
18880 (generate_builtin): Don't count debug stmts or labels as bits in
18881 partition bitmap.
18882
18883 2011-05-11 Richard Guenther <rguenther@suse.de>
18884
18885 * gimple.c (gimple_type_hash_1): Merge with ...
18886 (gimple_type_hash): ... this.
18887 (gtc_visit): Remove mode parameter and simplify accordingly.
18888 (gimple_types_compatible_p_1): Likewise.
18889 (gimple_types_compatible_p): Likewise.
18890 (iterative_hash_gimple_type): Likewise.
18891 (visit): Likewise.
18892 (gimple_type_eq): Adjust.
18893
18894 2011-05-11 Revital Eres <revital.eres@linaro.org>
18895
18896 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18897 enters the branch create an anti edge in the opposite direction
18898 to prevent the creation of reg-moves.
18899 * modulo-sched.c: Adjust comment to reflect the fact we are
18900 scheduling closing branch.
18901 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18902 (stage_count): New field in struct partial_schedule.
18903 (calculate_stage_count): New function.
18904 (normalize_sched_times): Rename to reset_sched_times and handle
18905 incrementing the sched time of the nodes by a constant value
18906 passed as parameter.
18907 (duplicate_insns_of_cycles): Skip closing branch.
18908 (sms_schedule_by_order): Schedule closing branch.
18909 (ps_insn_find_column): Handle closing branch.
18910 (sms_schedule): Call reset_sched_times and adjust the code to
18911 support scheduling of the closing branch.
18912 (ps_insert_empty_row): Update calls to normalize_sched_times
18913 and rotate_partial_schedule functions.
18914
18915 2011-05-11 Richard Guenther <rguenther@suse.de>
18916
18917 PR middle-end/48953
18918 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18919
18920 2011-05-11 Joseph Myers <joseph@codesourcery.com>
18921
18922 * opts.c (finish_options): Move warning settings from process_options.
18923 * toplev.c (process_options): Move warning settings to finish_options.
18924
18925 2011-05-11 Richard Guenther <rguenther@suse.de>
18926
18927 PR tree-optimization/18041
18928 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18929 (simplify_bitwise_binary): ... this. Handle operand conversions
18930 by applying them to the result instead.
18931 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
18932
18933 2011-05-11 Richard Guenther <rguenther@suse.de>
18934
18935 * gimple.c (gimple_canonical_types_compatible_p): Split out
18936 from gimple_types_compatible_p and friends. Do not recurse
18937 to pointed-to types.
18938 (gimple_canonical_type_eq): Use it.
18939 (iterative_hash_canonical_type): Split out from
18940 iterative_hash_gimple_type and friends. Do not recurse
18941 to pointed-to types.
18942 (gimple_canonical_type_hash): Use it, allocate the hash here.
18943
18944 2011-05-11 Revital Eres <revital.eres@linaro.org>
18945
18946 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18947 recognizing doloop.
18948
18949 2011-05-11 Revital Eres <revital.eres@linaro.org>
18950
18951 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18952 instead of PREV_INSN.
18953
18954 2011-05-11 Revital Eres <revital.eres@linaro.org>
18955
18956 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18957 * loop-doloop.c (doloop_condition_get): Likewise.
18958 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18959 (doloop_end): New.
18960 * config/arm/arm.md (*addsi3_compare0): Remove "*".
18961
18962 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
18963
18964 * tree.def (CASE_LABEL_EXPR): Add an operand.
18965 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18966
18967 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18968
18969 * c-decl.c (c_override_global_bindings_to_false): Remove.
18970 (global_bindings_p): Don't check
18971 c_override_global_bindings_to_false.
18972 * c-tree.h (c_override_global_bindings_to_false): Remove.
18973 * c-typeck.c (composite_type): Don't set
18974 c_override_global_bindings_to_false.
18975
18976 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18977
18978 PR target/48857, 48495
18979 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18980 (VSX_MODE): Ditto.
18981 (VSX_MOVE_MODE): Ditto.
18982 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18983 VSX vector types. Add V2DImode.
18984 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18985 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18986 (MODES_TIEABLE_P): Ditto.
18987
18988 * config/rs6000/rs6000.c (rs6000_emit_move): Use
18989 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18990 VSX_VECTOR_MODE.
18991 (init_cumulative_args): Ditto.
18992 (rs6000_function_arg_boundary): Ditto.
18993 (rs6000_function_arg_advance_1): Ditto.
18994 (rs6000_function_arg): Ditto.
18995 (rs6000_function_ok_for_sibcall): Ditto.
18996 (emit_frame_save): Ditto.
18997 (rs6000_function_value): Ditto.
18998 (rs6000_libcall_value): Ditto.
18999
19000 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19001
19002 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
19003 i386/darwin-lib.h to $libgcc_tm_file.
19004 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
19005
19006 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19007
19008 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
19009
19010 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19011
19012 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
19013 * config/rs6000/rs6000-tables.opt: New file (generated).
19014 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
19015 rs6000/rs6000-tables.opt to extra_options.
19016 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
19017 * config/rs6000/rs6000.c (rs6000_select): Remove.
19018 (processor_target_table): Move contents to rs6000-cpus.def.
19019 (darwin_rs6000_override_options): Check
19020 global_options_set.x_rs6000_cpu_index instead of
19021 rs6000_select[1].string.
19022 (rs6000_option_override_internal): Likewise.
19023 (rs6000_handle_option): Don't assert that global structures are in
19024 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
19025 (rs6000_default_cpu): New variable.
19026 (rs6000_file_start): Set it instead of local default_cpu. Check
19027 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
19028 global_options_set.x_rs6000_tune_index instead of rs6000_select.
19029 (rs6000_darwin_file_start): Check rs6000_default_cpu and
19030 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
19031 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
19032 rs6000_select): Remove.
19033 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
19034 Remove.
19035 (mcpu=, mtune=): Use Var, Init, Enum and Save.
19036 * config/rs6000/t-rs6000
19037 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
19038 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19039 global_options_set.x_rs6000_cpu_index instead of
19040 rs6000_select[1].string.
19041 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19042 global_options_set.x_rs6000_cpu_index instead of
19043 rs6000_select[1].string.
19044
19045 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19046
19047 * config.gcc (libgcc_tm_file): Define instead of including files
19048 from ../../libgcc/config/ in tm_file.
19049 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
19050 * configure: Regenerate.
19051 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
19052 libgcc_tm.h, cs-libgcc_tm.h): New.
19053 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
19054 (clean): Remove libgcc_tm.h.
19055 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
19056 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
19057 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
19058
19059 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
19060
19061 PR target/48896
19062 * config/avr/avr.c (avr_ret_register): Return unsigned int
19063 instead of int.
19064 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
19065 it to avr_libcall_value.
19066 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
19067 expand_expr.
19068 (avr_expand_binop_builtin): Ditto.
19069 (avr_expand_unop_builtin): Ditto.
19070
19071 2011-05-10 DJ Delorie <dj@redhat.com>
19072
19073 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
19074 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
19075 * config/rx/rx.c (rx_align_for_label): Add label and
19076 uses_threshold parameters. Do not align when the label is not
19077 used enough.
19078 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
19079
19080 2011-05-10 Richard Guenther <rguenther@suse.de>
19081
19082 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
19083 a series of conversions and apply foldings similar to what
19084 fold-const does.
19085 (tree_ssa_forward_propagate_single_use_vars): Call it.
19086
19087 2011-05-10 Jakub Jelinek <jakub@redhat.com>
19088
19089 PR tree-optimization/48611
19090 PR tree-optimization/48794
19091 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
19092 referenced from RESX or EH_DISPATCH arguments.
19093
19094 PR debug/48928
19095 * dfp.c (decimal_to_decnumber): Handle conversion from
19096 dconst{1,2,m1,half}.
19097
19098 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19099
19100 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
19101 for !flag_prefer_avx128.
19102 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
19103
19104 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
19105
19106 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
19107 (fold_ternary_loc): Use expr_location_or.
19108
19109 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
19110
19111 PR debug/48853
19112 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
19113 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
19114 Pmode and mem_mode is not VOIDmode.
19115
19116 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
19117
19118 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
19119 TYPE_QUAL_RESTRICT): Convert to enum.
19120
19121 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19122
19123 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
19124 (const_pow2_1_to_8_operand): Ditto.
19125 (const_pow2_1_to_128_operand): Ditto.
19126 (const_pow2_1_to_32768_operand): Ditto.
19127 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
19128 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
19129 in insn constraint to check integer value of operand 3.
19130 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
19131
19132 (PINSR_MODE): New mode iterator.
19133 (sse2p4_1): New mode attribute.
19134 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
19135 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
19136 iterator. Use const_int_operand instead of
19137 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
19138 exact_log2 in insn constraint to check integer value of operand 3.
19139
19140 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19141
19142 * config/i386/sse.md (blendbits): Remove mode attribute.
19143 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
19144 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
19145 Check integer value of operand 3 in insn constraint.
19146
19147 2011-05-09 Richard Guenther <rguenther@suse.de>
19148
19149 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
19150 for diagnostics.
19151 (lto_symtab_merge): Likewise. Do not register types here.
19152 (lto_symtab_merge_decls_2): Likewise.
19153 (lto_symtab_merge_decls_1): Likewise.
19154 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
19155 * gimple.c (enum gtc_mode): Declare.
19156 (gimple_types_compatible_p): Make static.
19157
19158 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19159
19160 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
19161 temporary register to match Pmode.
19162
19163 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19164
19165 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
19166 and *vec_concatv4si_1_avx.
19167
19168 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19169
19170 PR rtl-optimization/48927
19171 * ira-conflicts.c (commutative_constraint_p): Use
19172 recog_data.alternative_enabled_p to disable alternatives where
19173 "enabled" attribute is false.
19174 (get_dup_num): Ditto.
19175 * ira-lives.c (single_reg_class): Ditto.
19176 (ira_implicitly_set_insn_hard_regs): Ditto.
19177
19178 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
19179
19180 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
19181 (dataflow_set_preserve_mem_locs): Likewise.
19182
19183 2011-05-09 Philipp Thomas <pth@suse.de>
19184
19185 * config/mep/mep.c (mep_validate_vliw): Syntax description
19186 should not be translated.
19187
19188 2011-05-09 Joseph Myers <joseph@codesourcery.com>
19189
19190 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
19191 * config/mips/mips-tables.opt: New file (generated).
19192 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
19193 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
19194 MIPS_ARCH_OPTION_NATIVE): Define.
19195 * config/mips/mips.c (mips_cpu_info_table): Move contents to
19196 mips-cpus.def.
19197 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
19198 mips_parse_cpu): Remove.
19199 (mips_cpu_info_from_opt, mips_default_arch): New.
19200 (mips_handle_option): Don't assert that global structures are in
19201 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
19202 (mips_option_override): Use new variables and functions to set
19203 state of these options. Use strcmp to check for individual CPU names.
19204 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
19205 definition.
19206 * config/mips/mips.opt (march=): Use ToLower and Enum.
19207 (mips): Use ToLower, Enum and Var.
19208 (mtune=): Use ToLower and Enum.
19209 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
19210
19211 2011-05-08 Jan Hubicka <jh@suse.cz>
19212
19213 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
19214 Arrange type pairs to be UID ordered.
19215 (gimple_lookup_type_leader): Make inline.
19216
19217 2011-05-09 Nick Clifton <nickc@redhat.com>
19218
19219 PR target/48899
19220 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
19221 PROCESSOR_DEFAULT.
19222
19223 PR target/48897
19224 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
19225 variable 's'.
19226
19227 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
19228
19229 * combine.c (simplify_comparison): Abstract out parts into...
19230 (simplify_compare_const): ... new function.
19231 (try_combine): Generalize parallel arithmetic/compare combining
19232 to call simplify_compare_const() and CANONICALIZE_COMPARE().
19233
19234 2011-05-08 Jan Hubicka <jh@suse.cz>
19235
19236 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
19237 (cgraph_create_virtual_clone): Call hooks once virtual clone
19238 is finished.
19239 * cgraph.h (cgraph_clone_node): Update prototype.
19240 * ipa-cp.c (ipcp_estimate_growth): Use
19241 estimate_ipcp_clone_size_and_time.
19242 * ipa-inline-transform.c (clone_inlined_nodes): Update.
19243 * lto-cgraph.c (input_node): Update.
19244 * ipa-inline.c (recursive_inlining): Update.
19245 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
19246 (evaluate_conditions_for_known_args): Break out from ...
19247 (evaluate_conditions_for_edge): ... here.
19248 (evaluate_conditions_for_ipcp_clone): New function.
19249 (inline_node_duplication_hook): Update clone summary based
19250 on parameter map.
19251 (estimate_callee_size_and_time): Rename to ...
19252 (estimate_node_size_and_time): take NODE instead of EDGE;
19253 take POSSIBLE_TRUTHS as argument.
19254 (estimate_callee_size_and_time): Update.
19255 (estimate_ipcp_clone_size_and_time): New function.
19256 (do_estimate_edge_time): Update.
19257
19258 2011-05-08 Richard Guenther <rguenther@suse.de>
19259
19260 PR middle-end/48908
19261 PR middle-end/48905
19262 * expmed.c (expand_shift_1): Compute adjusted constant shift
19263 amount manually.
19264
19265 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
19266
19267 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
19268
19269 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
19270
19271 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
19272
19273 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
19274
19275 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
19276
19277 2011-05-07 Jan Hubicka <jh@suse.cz>
19278
19279 * ipa-inline-transform.c (inline_call): Account when program size
19280 decreases.
19281 * ipa-inline.c (relative_time_benefit): New function.
19282 (edge_badness): Reorganize to be power 2 based; fix thinko when
19283 computing badness for negative growth; update comments to match
19284 reality; better dumps.
19285
19286 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
19287
19288 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
19289 type to bool and adjust comment.
19290 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
19291 (fold_mathfn_compare): Remove calls to global_bindings_p.
19292 (fold_inf_compare): Likewise.
19293 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
19294 * c-tree.h (global_bindings_p): Adjust prototype.
19295 * c-decl.c (global_bindings_p): Return bool and simplify.
19296
19297 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
19298
19299 PR tree-optimization/48837
19300 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
19301 when accumulator transformation is performed.
19302
19303 2011-05-06 Jan Hubicka <jh@suse.cz>
19304
19305 * i386.h (ix86_tune_indices): Add
19306 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
19307 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
19308 * i386.c (initial_ix86_tune_features): Add
19309 X86_SOFTARE_PREFETCHING_BENEFICIAL.
19310 (software_prefetching_beneficial_p): Remove predicate.
19311 (ix86_option_override_internal): Use new macro.
19312
19313 2011-05-06 Jan Hubicka <jh@suse.cz>
19314
19315 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
19316
19317 2011-05-06 Jan Hubicka <jh@suse.cz>
19318
19319 * cgraph.c (cgraph_add_thunk): Create real function node instead
19320 of alias node; finalize it and mark needed/reachale; arrange visibility
19321 to be right and add it into the corresponding same comdat group list.
19322 (dump_cgraph_node): Dump thunks.
19323 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
19324 cgraph_function_with_gimple_body_p,
19325 cgraph_first_function_with_gimple_body,
19326 cgraph_next_function_with_gimple_body): New functions.
19327 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
19328 New macros.
19329 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
19330 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
19331 * cgraphunit.c (cgraph_finalize_function): Only look into possible
19332 devirtualization when optimizing.
19333 (verify_cgraph_node): Verify thunks.
19334 (cgraph_analyze_function): Analyze thunks.
19335 (cgraph_mark_functions_to_output): Output thunks only in combination
19336 with function they are assigned to.
19337 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
19338 alias into normal node.
19339 (assemble_thunks): New functoin.
19340 (cgraph_expand_function): Use it.
19341 * lto-cgraph.c (lto_output_node): Stream thunks.
19342 (input_overwrite_node): Stream in thunks.
19343 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
19344 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
19345 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
19346 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
19347 (inline_analyze_function): Do not care about thunk jump functions.
19348 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
19349 * ipa-prop.c (ipa_prop_write_jump_functions): Use
19350 cgraph_function_with_gimple_body_p.
19351 * passes.c (do_per_function_toporder): Use
19352 cgraph_function_with_gimple_body_p.
19353 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
19354 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
19355 (function_called_by_processed_nodes_p): Likewise.
19356
19357 2011-05-06 Joseph Myers <joseph@codesourcery.com>
19358
19359 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
19360 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
19361 entries.
19362 (mabi=): Replace with separate entries for mabi=altivec,
19363 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
19364 mabi=ieeelongdouble and mabi=ibmlongdouble.
19365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
19366 check for -mabi=spe without SPE ABI support here.
19367 (rs6000_handle_option): Replace OPT_mabi_ handling with
19368 OPT_mabi_altivec and OPT_mabi_spe handling.
19369
19370 2011-05-06 Cary Coutant <ccoutant@google.com>
19371
19372 * dwarf2out.c (contains_subprogram_definition): New function.
19373 (should_move_die_to_comdat): Call it.
19374
19375 2011-05-06 Jeff Law <law@redhat.com>
19376
19377 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
19378 remove_ctrl_stmt_and_useless_edges.
19379 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
19380 (fixup_template_block, thread_single_edge): Likewise.
19381 (mark_threaded_blocks): Use THREAD_TARGET.
19382
19383 2011-05-06 Alan Modra <amodra@gmail.com>
19384
19385 PR target/48900
19386 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
19387 const0_rtx as the arg to the dummy __tls_get_addr libcall.
19388
19389 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
19390
19391 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
19392 constraint modifier to "r".
19393
19394 2011-05-06 Joseph Myers <joseph@codesourcery.com>
19395
19396 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
19397 fall through for OPT_mcmodel_.
19398
19399 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19400
19401 * config/s390/s390.c (s390_asm_trampoline_template): Comment
19402 instruction sizes.
19403 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
19404
19405 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19406
19407 PR target/47930
19408 * config/arm/arm.opt (marm): Document it.
19409 (mthumb): Reject negative variant.
19410
19411 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
19412
19413 PR target/48898
19414 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19415 Fix typo in "ccvt" variable name.
19416
19417 2011-05-06 Tristan Gingold <gingold@adacore.com>
19418
19419 PR target/48895
19420 * config/vms/vms-ar.c (main): Remove cwd variable.
19421
19422 2011-05-06 Jakub Jelinek <jakub@redhat.com>
19423
19424 PR debug/48902
19425 * var-tracking.c (prepare_call_arguments): Move else before #endif.
19426
19427 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
19428
19429 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
19430 * gimplify.c (gimplify_switch_expr): Likewise.
19431 * omp-low.c (expand_omp_sections): Likewise.
19432 * tree-eh.c (lower_try_finally_switch): Likewise.
19433 (lower_eh_dispatch): Likewise.
19434 * tree.h (build_case_label): Declare.
19435 * tree.c (build_case_label): Define.
19436
19437 2011-05-05 Jason Merrill <jason@redhat.com>
19438
19439 PR c++/40975
19440 * tree-inline.c (copy_tree_r): Use copy_statement_list.
19441 (copy_statement_list): Don't recurse.
19442 * stor-layout.c (copy_self_referential_tree_r): Don't allow
19443 STATEMENT_LIST.
19444
19445 2011-05-05 Joseph Myers <joseph@codesourcery.com>
19446
19447 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
19448 through from -mfpu= handling.
19449 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
19450
19451 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
19452
19453 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
19454 POST_MODIFY.
19455
19456 2011-05-05 Steve Ellcey <sje@cup.hp.com>
19457
19458 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
19459 for 11.31.
19460 (hppa[12]*-*-hpux11*): Ditto.
19461 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
19462 * config/ia64/hpux-unix2003.h: New.
19463 * config/pa/pa-hpux1131.opt: New.
19464 * config/pa/pa-hpux1131.h: New.
19465 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
19466 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
19467 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
19468
19469 2011-05-05 Jakub Jelinek <jakub@redhat.com>
19470
19471 PR debug/48853
19472 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
19473 instead of mode as 3rd argument to recursive call.
19474 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
19475 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
19476 VOIDmode.
19477 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
19478 don't give up if mode is Pmode and mem_mode is not VOIDmode.
19479 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
19480 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
19481
19482 2011-05-05 Julian Brown <julian@codesourcery.com>
19483
19484 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
19485 parenthesis in D-register case.
19486
19487 2011-05-05 Joseph Myers <joseph@codesourcery.com>
19488
19489 * opt-functions.awk (var_type_struct): Handle Enum options.
19490 * optc-gen.awk: Don't check range of variables of character type.
19491 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
19492 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
19493 rs6000_sdata_name, rs6000_explicit_options): Remove.
19494 (rs6000_option_override_internal): Check for -malign-power here.
19495 Use global_options_set instead of rs6000_explicit_options.
19496 (rs6000_parse_fpu_option): Remove.
19497 (rs6000_handle_option): Access variables via opts and opts_set
19498 pointers. Use error_at and warning_at. Add fall-through
19499 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
19500 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
19501 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
19502 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
19503 here. Don't use rs6000_parse_fpu_option.
19504 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
19505 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
19506 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
19507 (mrecip=): Use Var.
19508 (mspe): Use Var and Save.
19509 (mtraceback=): Use Enum and Var.
19510 (rs6000_traceback_type): New Enum and EnumValue entries.
19511 (mfloat-gprs=): Use Enum, Var and Save.
19512 (rs6000_float_gprs): New Enum and EnumValue entries.
19513 (mlong-double-): use Var and Save.
19514 (msched-costly-dep=, minsert-sched-nops=): Use Var.
19515 (malign-): Use Enum and Var.
19516 (rs6000_alignment_flags): New Enum and EnumValue entries.
19517 (mfpu=): Use Enum.
19518 (fpu_type_t): New Enum and EnumValue entries.
19519 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19520 global_options_set instead of rs6000_explicit_options.
19521 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19522 global_options_set instead of rs6000_explicit_options.
19523 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19524 global_options_set instead of rs6000_explicit_options.
19525 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19526 global_options_set instead of rs6000_explicit_options.
19527 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
19528 global_options_set instead of rs6000_explicit_options.
19529 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
19530 global_options_set instead of rs6000_explicit_options.
19531 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
19532 definition.
19533 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
19534 global_options_set instead of rs6000_explicit_options.
19535 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
19536 (rs6000_cmodel): New Enum and EnumValue entries.
19537 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
19538 global_options_set instead of rs6000_explicit_options.
19539 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
19540 (mtls-size=): Use Enum and Var.
19541 (rs6000_tls_size): New Enum and EnumValue entries.
19542
19543 2011-05-05 Michael Matz <matz@suse.de>
19544
19545 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
19546 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
19547 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
19548 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
19549 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
19550 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
19551 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
19552 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
19553 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
19554 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
19555 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
19556 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
19557 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
19558 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
19559 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
19560 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
19561
19562 2011-05-05 Richard Guenther <rguenther@suse.de>
19563
19564 * expmed.c (expand_variable_shift): Rename to ...
19565 (expand_shift_1): ... this. Take an expanded shift amount.
19566 For rotates recurse directly not building trees for the shift amount.
19567 (expand_variable_shift): Wrap around expand_shift_1.
19568 (expand_shift): Adjust.
19569
19570 2011-05-05 Jakub Jelinek <jakub@redhat.com>
19571
19572 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
19573
19574 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
19575
19576 * tree.h (get_pending_sizes): Remove prototype.
19577 (put_pending_size): Likewise.
19578 (put_pending_sizes): Likewise.
19579 * stor-layout.c (pending_sizes): Delete.
19580 (get_pending_sizes): Likewise.
19581 (put_pending_size): Likewise.
19582 (put_pending_sizes): Likewise.
19583 (variable_size): Do not call put_pending_size and tidy up.
19584 * function.h (struct function): Remove dont_save_pending_sizes_p.
19585 * lto-streamer-in.c (input_function): Do not stream it.
19586 * lto-streamer-out.c (output_function): Likewise.
19587 * tree-inline.c (initialize_cfun): Do not copy it.
19588 * c-decl.c (store_parm_decls): Do not set it.
19589 * omp-low.c (create_task_copyfn): Likewise.
19590 * tree-optimize.c (tree_rest_of_compilation): Likewise.
19591
19592 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
19593
19594 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
19595 conditions.
19596 (*movdf_internal): Ditto.
19597 (*movdf_internal_nointeger): Ditto.
19598 (*movsf_internal): Ditto.
19599
19600 2011-05-05 Joseph Myers <joseph@codesourcery.com>
19601
19602 * c-decl.c (finish_decl): Don't call get_pending_sizes.
19603 (grokparm): Add parameter expr. Pass it to grokdeclarator.
19604 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
19605 (c_variable_size): Remove.
19606 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
19607 call put_pending_sizes.
19608 (get_parm_info): Add parameter expr. Use it to set
19609 arg_info->pending_sizes.
19610 (store_parm_decls): Use arg_info->pending_sizes instead or calling
19611 get_pending_sizes.
19612 * c-parser.c (c_parser_parms_declarator): Update call to
19613 c_parser_parms_list_declarator.
19614 (c_parser_parms_list_declarator): Take parameter expr. Update
19615 call to push_parm_decl. Update recursive call. Don't call
19616 get_pending_sizes. Update calls to get_parm_info.
19617 (c_parser_objc_method_definition): Update calls to
19618 c_parser_objc_method_decl and objc_start_method_definition.
19619 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
19620 (c_parser_objc_method_decl): Add parameter expr. Update call to
19621 grokparm.
19622 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
19623 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
19624 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
19625
19626 2011-05-05 Michael Hope <michael.hope@linaro.org>
19627
19628 PR pch/45979
19629 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
19630 __ARM_EABI__ hosts.
19631
19632 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19633
19634 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19635 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
19636 (spu_output_mi_thunk): New function.
19637
19638 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19639
19640 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
19641 targetm.asm_out.print_operand.
19642 * config/sol2.c: Include target.h.
19643
19644 2011-05-04 Jan Hubicka <jh@suse.cz>
19645
19646 * ipa-inline.c (reset_edge_caches): New function.
19647 (update_caller_keys): Add check_inlinablity_for; do not
19648 reset edge caches; remove now unnecesary loop.
19649 (update_callee_keys): Add comments; reset node_growth_cache of callee.
19650 (update_all_callee_keys): Likewise.
19651 (inline_small_functions): Sanity check cache; update code
19652 recomputing it.
19653
19654 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
19655
19656 PR rtl-optimization/47612
19657 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
19658 as the last insn of the sequence to be moved.
19659
19660 2011-05-04 Tobias Burnus <burnus@net-b.de>
19661
19662 PR fortran/48864
19663 * doc/invoke.texi (Ofast): Document that it
19664 enables Fortran's -fno-protect-parens.
19665
19666 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
19667
19668 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
19669
19670 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
19671
19672 * stor-layout.c (variable_size): Do not issue errors.
19673
19674 2011-05-04 Richard Guenther <rguenther@suse.de>
19675
19676 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
19677 for array-ref indices.
19678 (tree_coverage_counter_addr): Likewise.
19679 (build_fn_info_type): Use size_int for index types.
19680 (build_gcov_info): Likewise.
19681
19682 2011-05-04 Richard Guenther <rguenther@suse.de>
19683
19684 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
19685 to build_int_cst.
19686 * c-typeck.c (really_start_incremental_init): Use bitsize_int
19687 for constructor indices.
19688 (push_init_level): Likewise.
19689
19690 2011-05-04 Richard Guenther <rguenther@suse.de>
19691
19692 * explow.c (promote_mode): Move variable declarations before code.
19693
19694 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
19695
19696 * tree.h (build_function_type_array): Declare.
19697 (build_varargs_function_type_array): Declare.
19698 (build_function_type_vec, build_varargs_function_type_vec): Define.
19699 * tree.c (build_function_type_array_1): New function.
19700 (build_function_type_array): New function.
19701 (build_varargs_function_type_array): New function.
19702
19703 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
19704
19705 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
19706 before setting STMT_VINFO_TYPE.
19707
19708 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19709
19710 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
19711 instead of spu_pass_by_reference.
19712
19713 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19714
19715 * calls.c (emit_library_call_value_1): Invoke
19716 promote_function_mode hook on libcall arguments.
19717 * explow.c (promote_function_mode, promote_mode): Handle TYPE
19718 argument being NULL.
19719 * targhooks.c (default_promote_function_mode): Lisewise.
19720 * config/s390/s390.c (s390_promote_function_mode): Likewise.
19721 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
19722
19723 * doc/tm.texi: Document that TYPE argument might be NULL.
19724
19725 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19726
19727 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
19728
19729 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19730
19731 From Bernd Schmidt
19732 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
19733
19734 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19735
19736 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
19737 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
19738 Move ...
19739 * mips-tfile.c: ... here.
19740 Don't include coretypes.h, tm.h, filenames.h.
19741 (saber_stop): Remove definition and all calls.
19742 [__SABER__]: Remove.
19743 (__LINE__): Remove default.
19744 (Size_t, Ptrdiff_t): Remove definitions.
19745 Replace by size_t, ptrdiff_t.
19746 [!MIPS_DEBUGGING_INFO]: Remove.
19747 (SHASH_SIZE, THASH_SIZE): Remove defaults.
19748 (progname): Add const.
19749 (STATIC): Remove.
19750 Replace all uses by static.
19751 (ALIGN_SYMTABLE_OFFSET): Remove default.
19752 * mips-tdump.c: Don't include coretypes.h, tm.h.
19753 Remove !MIPS_IS_STAB guard.
19754 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
19755 $(TM_H), filenames.h dependencies.
19756 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
19757
19758 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19759
19760 From Jie Zhang
19761 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
19762 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
19763
19764 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19765
19766 From Bernd Schmidt
19767 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
19768 account and save/restore RETS.
19769 (PROFILE_BEFORE_PROLOGUE): Define.
19770 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
19771 the push insn to use predecrement.
19772
19773 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19774
19775 From Jie Zhang
19776 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
19777
19778 2011-05-04 Nick Clifton <nickc@redhat.com>
19779
19780 * config/mn10300/mn10300.c: Include cfgloop.h.
19781 (DUMP): New macro.
19782 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
19783 Lcc or a FLcc insn into the instruction stream.
19784 (mn10300_block_contains_call): New function. Returns true if the
19785 given basic block contains a CALL insn.
19786 (mn10300_loop_contains_call_insn): New function. Returns true if
19787 the given loop contains a CALL insn.
19788 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
19789 to use the SETLB and Lcc or FLcc insns.
19790 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
19791 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
19792 * config/mn10300/mn10300.opt (msetlb): New option. Used to
19793 disable the SETLB optimization.
19794 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
19795 __SETLB__ or __NO_SETLB__.
19796 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
19797 (movsf_internal): Handle MDR register.
19798 (cmpsi): Make visible.
19799 (setlb): New pattern.
19800 (Lcc): New pattern.
19801 (FLcc): New pattern.
19802
19803 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
19804
19805 PR target/48860
19806 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
19807 for reg<->xmm moves.
19808 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
19809 (vec_concatv2di_rex64_sse): Ditto.
19810 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
19811 (*vec_extractv2di_1_rex64): Ditto.
19812
19813 Revert:
19814 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19815
19816 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19817 reg<->xmm moves.
19818 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19819
19820 2011-05-04 Richard Guenther <rguenther@suse.de>
19821
19822 * tree.h (int_const_binop): Remove notrunc argument.
19823 * fold-const.c (int_const_binop): Remove notrunc argument. Always
19824 create integer constants that are properly truncated.
19825 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19826 (const_binop): Remove zero notrunc argument to int_const_binop.
19827 (size_binop_loc): Likewise.
19828 (fold_div_compare): Likewise.
19829 (maybe_canonicalize_comparison_1): Likewise.
19830 (fold_comparison): Likewise.
19831 (fold_binary_loc): Likewise.
19832 (multiple_of_p): Likewise.
19833 * expr.c (store_constructor): Likewise.
19834 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19835 (maybe_fold_stmt_addition): Likewise.
19836 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19837 * stor-layout.c (layout_type): Likewise.
19838 * tree-data-ref.c (tree_fold_divides_p): Likewise.
19839 * tree-sra.c (build_ref_for_offset): Likewise.
19840 (build_user_friendly_ref_for_offset): Likewise.
19841 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19842 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19843 * tree-ssa-loop-niter.c (inverse): Likewise.
19844 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19845 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19846 * tree-switch-conversion.c (check_range): Likewise.
19847 (build_constructors): Likewise.
19848 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19849 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19850 (extract_range_from_assert): Likewise.
19851 (vrp_int_const_binop): Likewise.
19852 (extract_range_from_binary_expr): Likewise.
19853 (extract_range_from_unary_expr): Likewise.
19854 (check_array_ref): Likewise.
19855 (find_case_label_range): Likewise.
19856 (simplify_div_or_mod_using_ranges): Likewise.
19857 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19858 comparing case labels for merging.
19859
19860 2011-05-03 Mark Wielaard <mjw@redhat.com>
19861
19862 * dwarf2out.c (debug_str_hash_forced): Removed.
19863 (gen_label_for_indirect_string): Removed.
19864 (get_debug_string_label): Removed.
19865 (AT_string_form): Generate label directly.
19866 (output_indirect_string): Test indirect_string_node for
19867 DW_FORM_strp instead of checking label and refcount.
19868 (prune_indirect_string): Removed.
19869 (prune_unused_types): Don't check debug_str_hash_forced or
19870 call prune_indirect_string.
19871
19872 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
19873
19874 PR other/48093
19875 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19876
19877 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
19878
19879 PR debug/47994
19880 PR debug/47919
19881 * combine.c (try_combine): Skip debug insns at m_split tests.
19882
19883 2011-04-26 Mark Wielaard <mjw@redhat.com>
19884
19885 PR42288
19886 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19887 when info_section_emitted.
19888
19889 2011-05-03 Joseph Myers <joseph@codesourcery.com>
19890
19891 * config/mips/mips-opts.h: New.
19892 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19893 to mips-opts.h.
19894 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19895 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19896 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
19897 via opts pointer.
19898 * config/mips/mips.h (enum mips_code_readable_setting): Move to
19899 mips-opts.h.
19900 (mips_abi, mips_code_readable): Don't declare.
19901 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19902 (mabi=): Use Enum and Var.
19903 (mips_abi): New Enum and EnumValue entries.
19904 (mcode-readable=): Use Enum and Var.
19905 (mips_code_readable_setting): New Enum and EnumValue entries.
19906 (mr10k-cache-barrier=): Use Enum and Var.
19907 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19908
19909 2011-05-03 Jan Hubicka <jh@suse.cz>
19910
19911 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19912 replace hash by pointer map.
19913 (cgraph_node_set_element_def, cgraph_node_set_element,
19914 const_cgraph_node_set_element, varpool_node_set_element_def,
19915 varpool_node_set_element, const_varpool_node_set_element): Remove.
19916 (free_cgraph_node_set, free_varpool_node_set): New function.
19917 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19918 * tree-emutls.c: Free varpool node set.
19919 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19920 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19921 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19922 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19923 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19924 Move here from ipa.c; implement using pointer_map
19925 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19926 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19927 debug_cgraph_node_set, varpool_node_set_new,
19928 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19929 dump_varpool_node_set, debug_varpool_node_set):
19930 Move to ipa-uitls.c.
19931 * passes.c (ipa_write_summaries): Update.
19932
19933 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19934
19935 From Mike Frysinger:
19936 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19937 bf542/bf544/bf547/bf548/bf549.
19938
19939 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
19940
19941 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19942
19943 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19944
19945 From Bernd Schmidt:
19946 * config/bfin/bfin.md (MOVCC): New mode_macro.
19947 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19948 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
19949 comments from generated assembly.
19950
19951 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19952
19953 From Bernd Schmidt
19954 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19955 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19956 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19957 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19958 * config/bfin/lib1funcs.asm (___muldi3): New function.
19959
19960 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19961
19962 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19963 build_function_type_list instead of build_function_type.
19964 Rearrange initialization of `args' to do so.
19965
19966 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19967
19968 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19969 instead of build_function_type.
19970
19971 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19972
19973 * config/rs6000/rs6000.c (spe_init_builtins): Call
19974 build_function_type_list instead of build_function_type.
19975 (paired_init_builtins, altivec_init_builtins): Likewise.
19976 (builtin_function_type): Likewise.
19977
19978 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19979
19980 * config/sh/sh.c (sh_media_init_builtins): Call
19981 build_function_type_list instead of build_function_type.
19982
19983 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19984
19985 * config/sparc/sparc.c (sparc_file_end): Call
19986 build_function_type_list instead of build_function_type.
19987
19988 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19989
19990 * config/alpha/alpha.c (alpha_init_builtins): Call
19991 build_function_type_list instead of build_function_type.
19992
19993 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19994
19995 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19996 build_function_type_list instead of build_function_type.
19997
19998 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19999
20000 * config/iq2000/i2000.c (iq2000_init_builtins): Call
20001 build_function_type_list instead of build_function_type.
20002 Delete `endlink' variable.
20003
20004 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20005
20006 * config/avr/avr.c (avr_init_builtins): Call
20007 build_function_type_list instead of build_function_type.
20008
20009 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20010
20011 * config/picochip/picochip.c (picochip_init_builtins): Call
20012 build_function_type_list instead of build_function_type.
20013 Delete `endlink' variable.
20014
20015 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20016
20017 * config/bfin/bfin.c (bfin_init_builtins): Call
20018 build_function_type_list instead of build_function_type.
20019
20020 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20021
20022 From Bernd Schmidt
20023 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
20024 that's not CONST_INT. Seemingly redundant check is due to PR39768.
20025
20026 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20027
20028 From Jie Zhang:
20029 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
20030 libbffastfp overrides libgcc when -mfast-fp.
20031
20032 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20033
20034 Originally from Bernd Schmidt
20035 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
20036 * config/bfin/bfin.c (override_options): Test it and error if
20037 TARGET_FDPIC.
20038
20039 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20040
20041 Originally From Bernd Schmidt
20042 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
20043 FD-PIC.
20044
20045 2011-05-03 Jeff Law <law@redhat.com>
20046
20047 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
20048 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
20049 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
20050 than accessing AUX field directly. Free the AUX field before
20051 clearing it.
20052 (thread_block, thread_through_loop_header): Likewise.
20053 (thread_single_edge, mark_threaded_blocks): Likewise.
20054 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
20055 (register_jump_thread): Do not attempt to thread to a NULL edge.
20056
20057 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20058
20059 * function.c (init_function_start): Call decide_function_section.
20060 * varasm.c (decide_function_section): New function.
20061 (assemble_start_function): When not using
20062 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
20063 or first_function_block_is_cold.
20064 * rtl.h (decide_function_section): Declare.
20065
20066 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20067 Jakub Jelinek <jakub@redhat.com>
20068
20069 PR target/48774
20070 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
20071 only succeed if req_mode is the same as set_mode.
20072
20073 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20074
20075 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
20076 * genemit.c (gen_exp): Handle RETURN.
20077 * emit-rtl.c (verify_rtx_sharing): Likewise.
20078 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
20079 * rtl.c (copy_rtx): RETURN is shared.
20080 * rtl.h (enum global_rtl_index): Add GR_RETURN.
20081 (ret_rtx): New.
20082 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
20083 * config/s390/s390.c (s390_emit_epilogue): Likewise.
20084 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
20085 * config/cris/cris.c (cris_expand_return): Likewise.
20086 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
20087 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
20088 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
20089 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
20090 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
20091 Likewise.
20092 * config/v850/v850.c (expand_epilogue): Likewise.
20093 * config/bfin/bfin.c (bfin_expand_call): Likewise.
20094 * config/arm/arm.md (epilogue): Likewise.
20095 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
20096 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
20097 variable to ret_reg.
20098
20099 2011-05-03 Richard Guenther <rguenther@suse.de>
20100
20101 PR lto/48846
20102 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
20103 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
20104 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
20105
20106 2011-05-03 Richard Guenther <rguenther@suse.de>
20107
20108 * c-decl.c (grokdeclarator): Instead of looking at
20109 TREE_OVERFLOW check if the constant fits in the index type.
20110
20111 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
20112
20113 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
20114 (vec_store_lanes<mode><mode>): Likewise.
20115
20116 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
20117
20118 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
20119 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
20120 convert_optab_index values.
20121 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
20122 * genopinit.c (optabs): Initialize the new optabs.
20123 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
20124 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
20125 (expand_STORE_LANES): New functions.
20126 * tree.h (build_array_type_nelts): Declare.
20127 * tree.c (build_array_type_nelts): New function.
20128 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
20129 (vect_model_load_cost): Likewise.
20130 (vect_store_lanes_supported, vect_load_lanes_supported)
20131 (vect_record_strided_load_vectors): Declare.
20132 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
20133 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
20134 (vect_transform_strided_load): Split out statement recording into...
20135 (vect_record_strided_load_vectors): ...this new function.
20136 * tree-vect-stmts.c (create_vector_array, read_vector_array)
20137 (write_vector_array, create_array_ref): New functions.
20138 (vect_model_store_cost): Add store_lanes_p argument.
20139 (vect_model_load_cost): Add load_lanes_p argument.
20140 (vectorizable_store): Try to use store-lanes functions for
20141 interleaved stores.
20142 (vectorizable_load): Likewise load-lanes and loads.
20143 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
20144 to vect_model_store_cost.
20145 (vect_build_slp_tree): Likewise vect_model_load_cost.
20146
20147 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
20148
20149 * hooks.h (hook_bool_mode_uhwi_false): Declare.
20150 * hooks.c (hook_bool_mode_uhwi_false): New function.
20151 * target.def (array_mode_supported_p): New hook.
20152 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
20153 * doc/tm.texi: Regenerate.
20154 * stor-layout.c (mode_for_array): New function.
20155 (layout_type): Use it.
20156 * config/arm/arm.c (arm_array_mode_supported_p): New function.
20157 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
20158
20159 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
20160
20161 PR target/48723
20162 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
20163 for -fstack-check if the size to allocate is negative.
20164
20165 2011-05-02 Lawrence Crowl <crowl@google.com>
20166
20167 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
20168 (timevar_cond_start): New for starting a timer only when it is not
20169 already running.
20170 (timevar_cond_stop): New for stopping a timer when it was not already
20171 running.
20172
20173 * timevar.c (timevar_stop): Enable start/stop timers to start again.
20174 (timevar_cond_start): New as above.
20175 (timevar_cond_stop): New as above.
20176
20177 * timevar.def: Add start/stop timers for compiler phases,
20178 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
20179 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
20180 and TV_PHASE_FINALIZE.
20181 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
20182 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
20183 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
20184 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
20185 Make unused TV_OVERLOAD into a start/stop timer.
20186
20187 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
20188 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
20189 to indicate that they are start/stop timers.
20190
20191 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
20192 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
20193 Move initialization to do_compile.
20194 (do_compile): Add initialization from above.
20195 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
20196
20197 * c-decl.c (c_write_global_declarations): Add start/stop of
20198 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
20199
20200 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
20201 or TV_PARSE_INLINE, as appropriate.
20202 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
20203 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
20204
20205 2011-05-02 Jason Merrill <jason@redhat.com>
20206
20207 PR c++/40975
20208 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
20209
20210 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
20211
20212 PR c/35445
20213 * c-decl.c (finish_decl): Only create a composite if the types are
20214 compatible.
20215
20216 2011-05-02 Joseph Myers <joseph@codesourcery.com>
20217
20218 * config/fr30/fr30-protos.h (Mmode): Don't define.
20219 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
20220 definition where used.
20221 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
20222 define. Expand definitions where used.
20223 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
20224 Expand definitions where used.
20225 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
20226 rx_function_arg, rx_function_arg_advance,
20227 rx_function_arg_boundary): Expand definitions of those macros.
20228 * config/v850/v850-protos.h (Mmode): Don't define. Expand
20229 definition where used.
20230
20231 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
20232
20233 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
20234 reg<->xmm moves.
20235 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
20236 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
20237 with *movv2sf_internal_rex64_avx.
20238 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
20239 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
20240 Use %v prefix in insn mnemonic to handle TARGET_AVX.
20241 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
20242 "vex" in "prefix" attribute calculation.
20243 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
20244
20245 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
20246
20247 PR target/47951
20248 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
20249 inputs match the output.
20250
20251 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
20252
20253 PR target/47955
20254 * config/m68k/m68k.c (m68k_expand_prologue): Set
20255 current_function_static_stack_size.
20256
20257 2011-05-02 Jan Hubicka <jh@suse.cz>
20258
20259 * lto-streamer.c (lto_streamer_cache_insert_1,
20260 lto_streamer_cache_lookup, lto_streamer_cache_create,
20261 lto_streamer_cache_delete): Use pointer map instead of hashtable.
20262 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
20263
20264 2011-05-02 Joseph Myers <joseph@codesourcery.com>
20265
20266 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
20267 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
20268 config/m68k/t-opts: New files.
20269 * config/m68k/m68k-tables.opt: New file (generated).
20270 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
20271 extra_options and m68k/t-opts to tmake_file.
20272 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
20273 (all_isas): Initialize using m68k-isas.def.
20274 (all_microarchs): Initialize using m68k-microarchs.def.
20275 (m68k_find_selection): Remove.
20276 (m68k_handle_option): Don't assert that global structures are in
20277 use. Use error_at. Access variables via opts pointer. Don't
20278 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
20279 directly for -m68020-40 and -m68020-60.
20280 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
20281 m68k_tune_entry here.
20282 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
20283 to m68k-opts.h.
20284 (m68k_library_id_string): Remove declaration.
20285 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
20286 (m68k_library_id_string): New Variable.
20287 (march=, mcpu=, mtune=): Use Enum and Var.
20288
20289 2011-05-02 Richard Guenther <rguenther@suse.de>
20290
20291 * varasm.c (output_constructor_regular_field): Compute zero-based
20292 index with double-ints. Make sure to ICE instead of producing
20293 wrong code.
20294 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
20295 in asserts. Properly use a signed type.
20296
20297 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
20298
20299 * config/i386/sse.md (V): New mode iterator.
20300 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
20301 TARGET_SSE2.
20302 (V_256): Rename from AVX256MODE.
20303 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
20304 condition to all users.
20305 (VF1): Ditto.
20306 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
20307 condition to all users.
20308 (VF_128): Make V4SF mode unconditional.
20309 (VF_256): Rename from AVX256MODEF2P.
20310 (VI4F_128): Rename from SSEMODE4S.
20311 (VI8F_128): Rename from SSEMODE2D.
20312 (VI4F_256): Rename from AVX256MODE8P.
20313 (VI8F_256): Rename from AVX256MODE4P.
20314 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
20315 (ssescalarmodesuffix): Remove SF and DF modes.
20316 (SSEMODE124): Remove.
20317 (SSEMODE1248): Ditto.
20318 (SSEMODEF2P): Ditto.
20319 (AVXMODEF2P): Ditto.
20320 (AVXMODEFDP): Ditto.
20321 (AVXMODEFSP): Ditto.
20322 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
20323 unconditional.
20324 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
20325 unconditional.
20326 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
20327 xop_pcmov_<mode>256. Use V mode iterator.
20328
20329 Adjust RTX patterns globally for renamed mode attributes.
20330
20331 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20332
20333 * haifa-sched.c (sched_emit_insn): Emit insn before first
20334 non-scheduled insn. Inform back-end about new insn. Add
20335 new insn to scheduled_insns list.
20336
20337 2011-05-02 Richard Guenther <rguenther@suse.de>
20338
20339 PR tree-optimization/48822
20340 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
20341 (process_scc): Indicate which iteration we start.
20342
20343 2011-05-02 Jan Hubicka <jh@suse.cz>
20344
20345 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
20346 (lto_section_overrun): New.
20347 * lto-section-out.c (append_block): Rename to ...
20348 (lto_append_block): ... this one; export.
20349 (lto_output_1_stream): Move lto lto-streamer.h
20350 (lto_output_data_stream): Update.
20351 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
20352 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
20353 functions.
20354
20355 2011-05-02 Richard Guenther <rguenther@suse.de>
20356
20357 * tree.c (tree_code_counts): New global array.
20358 (record_node_allocation_statistics): Count individual tree codes.
20359 (dump_tree_statistics): Dump individual code stats.
20360
20361 2011-05-01 Jan Hubicka <jh@suse.cz>
20362
20363 * ipa-inline.c (caller_growth_limits): Fix thinko when
20364 looking for largest stack frame.
20365 * ipa-inline.h (dump_inline_summary): Declare.
20366 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
20367 on stack usage.
20368 (dump_inline_summary): Export.
20369 (debug_inline_summary): Declare as DEBUG_FUNCTION.
20370
20371 2011-05-01 Anatoly Sokolov <aesok@post.ru>
20372
20373 * reginfo.c (memory_move_cost): Change rclass argument type form
20374 'enum reg_class' to reg_class_t.
20375 * reload.h (memory_move_cost): Update prototype.
20376 * postreload.c reload_cse_simplify_set): Change type dclass var to
20377 reg_class_t.
20378 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
20379 Update prototype.
20380 (ira_allocate_and_set_costs): Change aclass argument type form
20381 'enum reg_class' to reg_class_t.
20382 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
20383 Change aclass argument type to reg_class_t.
20384 (update_conflict_hard_reg_costs): Change type aclass and pref vars
20385 to reg_class_t.
20386 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
20387 memory_move_cost call.
20388
20389 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
20390 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
20391 Change type tmp var to reg_class_t.
20392
20393 2011-04-30 Jan Hubicka <jh@suse.cz>
20394
20395 * ipa-inline.c (can_inline_edge_p): Disregard limits when
20396 inlining into function with flatten attribute.
20397 (want_inline_small_function_p): Be more realistic about inlining
20398 cold calls where callee size grows.
20399
20400 2011-04-30 Jan Hubicka <jh@suse.cz>
20401
20402 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
20403 flags.
20404
20405 2011-04-30 Anatoly Sokolov <aesok@post.ru>
20406
20407 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
20408 PRINT_OPERAND_PUNCT_VALID_P): Remove.
20409 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
20410 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
20411 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20412 (print_operand): Rename to...
20413 (sparc_print_operand): ...this. Make static. Adjust
20414 sparc_print_operand function call.
20415 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
20416 functions.
20417
20418 2011-04-30 Jan Hubicka <jh@suse.cz>
20419
20420 PR middle-end/48752
20421 * ipa-inline.c (early_inliner): Disable when doing late
20422 addition of function.
20423
20424 2011-04-30 Jakub Jelinek <jakub@redhat.com>
20425
20426 * dwarf2out.c (get_address_mode): New inline.
20427 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
20428 if not dwarf_strict emit
20429 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
20430 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
20431 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
20432 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
20433 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
20434 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
20435 mem_loc_descriptor callers.
20436 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
20437 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
20438 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
20439 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
20440 (base_types): New variable.
20441 (get_base_type_offset, calc_base_type_die_sizes,
20442 base_type_for_mode, mark_base_types, base_type_cmp,
20443 move_marked_base_types): New functions.
20444 (calc_die_sizes): Assert that die_offset is 0 or equal to
20445 next_die_offset.
20446 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
20447 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
20448 callers. If not dwarf_strict, call mem_loc_descriptor even for
20449 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
20450 (gen_subprogram_die): Don't give up on call site parameters
20451 with non-integral or large integral modes. Adjust
20452 mem_loc_descriptor callers.
20453 (prune_unused_types): Call prune_unused_types_mark on base_types
20454 vector entries.
20455 (resolve_addr): Call mark_base_types.
20456 (dwarf2out_finish): Call move_marked_base_types.
20457
20458 PR tree-optimization/48809
20459 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
20460 type.
20461 (gen_inbound_check): Don't compute index_expr - range_min in utype
20462 again, instead reuse SSA_NAME initialized in build_arrays.
20463 Remove two useless gsi_for_stmt calls.
20464
20465 2011-04-29 Jeff Law <law@redhat.com>
20466
20467 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
20468
20469 2011-04-29 Martin Jambor <mjambor@suse.cz>
20470
20471 * cgraph.h (cgraph_postorder): Remove declaration.
20472 * ipa-utils.h (ipa_free_postorder_info): Declare.
20473 (ipa_reverse_postorder): Likewise.
20474 * cgraphunit.c: Include ipa-utils.h.
20475 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
20476 * ipa-inline.c: Include ipa-utils.h.
20477 (ipa_inline): Update call to ipa_reverse_postorder.
20478 * ipa-pure-const.c (propagate_pure_const): Update call to
20479 ipa_reduced_postorder and ipa_print_order. Call
20480 ipa_free_postorder_info to clean up.
20481 (propagate_nothrow): Likewise.
20482 * ipa-reference.c (propagate): Removed a useless call to
20483 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
20484 and ipa_print_order. Call ipa_free_postorder_info to clean up.
20485 * ipa.c: Include ipa-utils.h.
20486 (ipa_profile): Update call to ipa_reverse_postorder.
20487 (cgraph_postorder): Moved to...
20488 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
20489 (ipa_utils_print_order): Renamed to ipa_print_order.
20490 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
20491 comments.
20492 (ipa_free_postorder_info): New function.
20493 * passes.c: Include ipa-utils.h.
20494 (do_per_function_toporder): Update call to ipa_reverse_postorder.
20495 (ipa_write_summaries): Likewise.
20496 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
20497 (cgraphunit.o): Likewise.
20498 (ipa.o): Likewise.
20499 (ipa-inline.o): Likewise.
20500
20501 2011-04-29 Jan Hubicka <jh@suse.cz>
20502
20503 * ipa-inline.h (clause_t): Turn into unsigned int.
20504 * ipa-inline-analysis.c (add_clause): Do more simplification.
20505 (and_predicates): Shortcut more cases.
20506 (predicates_equal_p): Move forward; check that clauses are properly
20507 ordered.
20508 (or_predicates): Shortcut more cases.
20509 (edge_execution_predicate): Rewrite as...
20510 (set_cond_stmt_execution_predicate): ... this function; handle
20511 __builtin_constant_p.
20512 (set_switch_stmt_execution_predicate): New .
20513 (compute_bb_predicates): New.
20514 (will_be_nonconstant_predicate): Update TODO.
20515 (estimate_function_body_sizes): Use compute_bb_predicates
20516 and free them later, always try to estimate if stmt is constant.
20517 (estimate_time_after_inlining, estimate_size_after_inlining):
20518 Gracefully handle optimized out edges.
20519 (read_predicate): Fix off by one error.
20520
20521 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
20522
20523 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
20524
20525 2011-04-27 Xinliang David Li <davidxl@google.com>
20526
20527 * tree-profile.c (init_ic_make_global_vars): Set
20528 tls attribute on ic vars.
20529 * coverage.c (coverage_end_function): Initialize
20530 function_list with zero.
20531
20532 2011-04-29 Richard Guenther <rguenther@suse.de>
20533
20534 * builtins.c (fold_builtin_classify_type): Use integer_type_node
20535 for the type of the result.
20536 (fold_builtin_isascii): Likewise.
20537 (fold_builtin_toascii): Use integer_type_node where appropriate.
20538 (fold_builtin_logb): Likewise.
20539 (fold_builtin_frexp): Likewise.
20540 (fold_builtin_strstr): Likewise.
20541 (fold_builtin_strpbrk): Likewise.
20542 (fold_builtin_fputs): Likewise.
20543 (fold_builtin_sprintf): Likewise.
20544 (fold_builtin_snprintf): Likewise.
20545 (fold_builtin_printf): Likewise.
20546 (do_mpfr_remquo): Use a proper type for the assigned constant.
20547 (do_mpfr_lgamma_r): Likewise.
20548 * dwarf2out.c (resolve_one_addr): Use size_int.
20549 * except.c (init_eh): Likewise.
20550 (assign_filter_values): Use integer_type_node for filter values.
20551 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
20552 indices.
20553 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
20554 for EH region numbers.
20555 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
20556 for the shift amount.
20557
20558 2011-04-29 Richard Guenther <rguenther@suse.de>
20559
20560 * expr.h (expand_shift): Rename to ...
20561 (expand_variable_shift): ... this.
20562 (expand_shift): Take a constant shift amount.
20563 * expmed.c (expand_shift): Rename to ...
20564 (expand_variable_shift): ... this.
20565 (expand_shift): New wrapper around expand_variable_shift.
20566 * expr.c (convert_move, emit_group_load_1, emit_group_store,
20567 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
20568 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
20569 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
20570 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
20571 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
20572 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
20573 emit_store_flag_1, emit_store_flag): Likewise.
20574 * builtins.c (expand_builtin_signbit): Likewise.
20575 * calls.c (load_register_parameters): Likewise.
20576 * function.c (assign_parm_setup_block): Likewise.
20577 * lower-subreg.c (resolve_shift_zext): Likewise.
20578 * optabs.c (widen_bswap, expand_abs_nojump,
20579 expand_one_cmpl_abs_nojump, expand_float): Likewise.
20580 * spu/spu.c (spu_expand_extv): Likewise.
20581 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
20582
20583 2011-04-29 Richard Guenther <rguenther@suse.de>
20584
20585 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
20586 for the remapped region number.
20587 * predict.c (build_predict_expr): Use integer_type_node for the
20588 predict kind.
20589 * fold-const.c (fold_binary_loc): Use integer_type_node for
20590 the shift amount. Use a proper type for the PLUS_EXPR operand.
20591
20592 2011-04-29 Michael Matz <matz@suse.de>
20593
20594 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
20595 other trees that just builtins.
20596 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
20597
20598 2011-04-29 Richard Guenther <rguenther@suse.de>
20599
20600 * tree-nested.c (get_trampoline_type): Use size_int.
20601 (get_nl_goto_field): Likewise.
20602 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
20603 for all indexes.
20604 (lower_eh_constructs_2): Likewise.
20605 (lower_resx): Likewise.
20606 (lower_eh_dispatch): Likewise.
20607 * tree-mudflap.c (mf_build_string): Use size_int.
20608 (mudflap_register_call): Use integer_type_node for the flag.
20609 (mudflap_enqueue_constant): Use size_int.
20610 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
20611 instead of rebuilding it.
20612
20613 2011-04-29 Richard Guenther <rguenther@suse.de>
20614
20615 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
20616 Handle OBJ_TYPE_REF.
20617 (find_func_aliases_for_call): Use it more consistently.
20618
20619 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
20620
20621 * haifa-sched.c (last_nondebug_scheduled_insn): New.
20622 (rank_for_schedule): Use it.
20623 (schedule_block): Set it.
20624
20625 2011-04-28 David Li <davidxl@google.com>
20626
20627 * tree.c (crc32_string): Use crc32_byte.
20628 (crc32_byte): New function.
20629 * tree.h (crc32_byte): New function.
20630 * gcov.c (read_graph_file): Handle new cfg_cksum.
20631 (read_count_file): Ditto.
20632 * profile.c (instrument_values): Ditto.
20633 (get_exec_counts): Ditto.
20634 (read_profile_edge_counts): Ditto.
20635 (compute_branch_probabilities): Ditto.
20636 (compute_value_histograms): Ditto.
20637 (branch_prob): Ditto.
20638 (end_branch_prob): Ditto.
20639 * coverage.c (read_counts_file): Ditto.
20640 (get_coverage_counts): Ditto.
20641 (tree_coverage_counter_addr): Ditto.
20642 (coverage_checksum_string): Ditto.
20643 (coverage_begin_output): Ditto.
20644 (coverage_end_function): Ditto.
20645 (build_fn_info_type): Ditto.
20646 (build_fn_info_value): Ditto.
20647 * libgcov.c (gcov_exit): Ditto.
20648 * gcov-dump.c (tag_function): Ditto.
20649 (compute_checksum): Remove.
20650
20651 2011-04-29 Alan Modra <amodra@gmail.com>
20652
20653 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20654 unspec plus offset. Tidy macho code.
20655
20656 2011-04-29 Martin Jambor <mjambor@suse.cz>
20657
20658 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
20659 node instead of a decl. Update all callers.
20660 * cgraph.h: Update declaration.
20661
20662 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
20663
20664 PR tree-optimization/48765
20665 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
20666 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
20667 to indicate if loop aware SLP is being used. Scan the statements
20668 and update the vectorization factor according to the type of
20669 vectorization before statement analysis.
20670 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
20671 pass it to vect_analyze_loop_operations.
20672 (vectorizable_reduction): Set number of copies to 1 in case of pure
20673 SLP statement.
20674 * tree-vect-stmts.c (vectorizable_conversion,
20675 vectorizable_assignment, vectorizable_shift,
20676 vectorizable_operation, vectorizable_type_demotion,
20677 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
20678 Likewise.
20679 (vectorizable_condition): Move the check that it is not SLP
20680 vectorization before the number of copies check.
20681 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
20682 to vectorize the loop using SLP.
20683
20684 2011-04-28 Jakub Jelinek <jakub@redhat.com>
20685
20686 PR middle-end/48597
20687 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
20688 inline asm.
20689
20690 2011-04-28 Joseph Myers <joseph@codesourcery.com>
20691
20692 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
20693 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
20694 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20695 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20696 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
20697 linux*.h headers.
20698 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
20699 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20700 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20701 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20702 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20703 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
20704 REG_NAME.
20705 * config/i386/linux.h (REG_NAME): Don't define.
20706 * config/i386/linux64.h (REG_NAME): Don't define.
20707 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
20708 Undefine before defining.
20709
20710 2011-04-28 Jan Hubicka <jh@suse.cz>
20711
20712 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
20713 nonconstant_names array.
20714 (estimate_function_body_sizes): Build nonconstant_names array; handle
20715 BUILT_IN_CONSTANT_P.
20716
20717 2011-04-28 Richard Guenther <rguenther@suse.de>
20718
20719 PR bootstrap/48804
20720 Revert
20721 2011-04-28 Richard Guenther <rguenther@suse.de>
20722
20723 * tree-ssa-structalias.c (solve_constraints): Build succ graph
20724 as late as possible.
20725
20726 2011-04-28 Richard Guenther <rguenther@suse.de>
20727
20728 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
20729 (debug_constraint): Do it here.
20730 (dump_constraints): And here.
20731 (rewrite_constraints): And here.
20732 (dump_constraint_edge): Remove.
20733 (dump_constraint_graph): Rewrite to produce DOT output.
20734 (solve_constraints): Build succ graph as late as possible.
20735 Dump constraint graphs before and after solving.
20736
20737 2011-04-28 Richard Guenther <rguenther@suse.de>
20738
20739 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20740 New function split out from ...
20741 (find_func_aliases): ... here. Call it.
20742 (find_func_aliases_for_call): Likewise.
20743
20744 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
20745
20746 * internal-fn.h (internal_fn_name_array): Declare.
20747 (internal_fn_flags_array): Likewise.
20748
20749 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
20750
20751 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
20752 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
20753 Move from sse.md.
20754 (ssemodefsuffix): Remove.
20755 (ssevecmodesuffix): New mode attribute.
20756 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
20757 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
20758 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
20759 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
20760 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
20761 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
20762 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
20763 ssemodesuffix mode attribute.
20764 (float splitters): Use ssevecmodesuffix mode attribute.
20765 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
20766 (sseinsmode): Rename from avxvecmode.
20767 (avxsizesuffix): Rename from avxmodesuffix.
20768 (sseintvecmode): Rename from avxpermvecmode.
20769 (ssedoublevecmode): Rename from ssedoublesizemode.
20770 (ssehalfvecmode): Rename from avxhalfvecmode.
20771 (ssescalarmode): Rename from avxscalarmode.
20772 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
20773 templates for ssemodesuffix mode attribute.
20774 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
20775 mode attribute.
20776
20777 Adjust RTX patterns globally for renamed mode attributes.
20778
20779 2011-04-27 Jan Hubcika <jh@suse.cz>
20780
20781 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
20782 * ipa-inline-analysis.c: Include alloc-pool.h.
20783 (edge_predicate_pool): New.
20784 (trye_predicate_p): New function
20785 (false_predicate_p): New function.
20786 (add_clause): Sanity check that false clauses are "optimized";
20787 never add clauses to predicate that is already known to be false.
20788 (and_predicate): Use flase_predicate_p.
20789 (evaulate_predicate): Rename to ...
20790 (evaluate_predicate): ... this one; update all callers; assert
20791 that false is not listed among possible truths.
20792 (dump_predicate): Use true_predicate_p.
20793 (account_size_time): Use false_predicate_p.
20794 (evaulate_conditions_for_edge): Rename to ...
20795 (evaluate_conditions_for_edge) ... this one.
20796 (edge_set_predicate): New function.
20797 (inline_edge_duplication_hook): Duplicate edge predicates.
20798 (inline_edge_removal_hook): Free edge predicates.
20799 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
20800 (dump_inline_summary): Update.
20801 (estimate_function_body_sizes): Set edge predicates.
20802 (estimate_calls_size_and_time): Handle predicates.
20803 (estimate_callee_size_and_time): Update.
20804 (remap_predicate): Add toplev_predicate; update comment.
20805 (remap_edge_predicates): New function.
20806 (inline_merge_summary): Compute toplev predicate; update.
20807 (read_predicate): New function.
20808 (read_inline_edge_summary): Use it.
20809 (inline_read_section): Likewise.
20810 (write_predicate): New function.
20811 (write_inline_edge_summary): Use it.
20812 (inline_write_summary): Likewise.
20813 (inline_free_summary): Free alloc pool and edge summary vec.
20814
20815 2011-04-27 Richard Guenther <rguenther@suse.de>
20816
20817 * tree-ssa-structalias.c (changed_count): Remove.
20818 (changed): Use a bitmap.
20819 (unify_nodes): Adjust.
20820 (do_sd_constraint): Likewise.
20821 (do_ds_constraint): Likewise.
20822 (do_complex_constraint): Likewise.
20823 (solve_graph): Likewise.
20824
20825 2011-04-27 Jan Hubicka <jh@suse.cz>
20826
20827 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20828
20829 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
20830
20831 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20832 (avx_vperm2f128_*_operand): Ditto.
20833 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20834 Use avx_vpermilp_parallel in insn condition.
20835 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20836 Use avx_vperm2f128_parallel in insn condition.
20837
20838 2011-04-27 Richard Guenther <rguenther@suse.de>
20839
20840 * Makefile.in (tree-ssa-structalias.o): Remove
20841 gt-tree-ssa-structalias.h dependency.
20842 (GTFILES): Remove tree-ssa-structalias.c.
20843 * tree.c (allocate_decl_uid): New function.
20844 (make_node_stat): Use it.
20845 (copy_node_stat): Likewise.
20846 * tree.h (allocate_decl_uid): Declare.
20847 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20848 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20849 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20850 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20851 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20852 (struct heapvar_map): Likewise.
20853 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20854 heapvar_insert): Likewise.
20855 (make_heapvar_for): Rename to ...
20856 (make_heapvar): ... this. Simplify.
20857 (fake_var_decl_obstack): New global var.
20858 (build_fake_var_decl): New function.
20859 (make_constraint_from_heapvar): Adjust.
20860 (handle_lhs_call): Likewise.
20861 (create_function_info_for): Likewise.
20862 (intra_create_variable_infos): Likewise.
20863 (init_alias_vars): Allocate fake_var_decl_obstack.
20864 (init_alias_heapvars, delete_alias_heapvars): Remove.
20865 (compute_points_to_sets): Do not call init_alias_heapvars.
20866 (ipa_pta_execute): Likewise.
20867 (delete_points_to_sets): Free fake_var_decl_obstack.
20868
20869 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20870
20871 * config/spu/divmovti4.c (union qword_UTItype): New data type.
20872 (si_from_UTItype, si_to_UTItype): New functions.
20873 (__udivmodti4): Use them to implement type-punning.
20874 * config/spu/multi3.c (union qword_TItype): New data type.
20875 (si_from_TItype, si_to_TItype): New functions.
20876 (__multi3): Use them to implement type-punning.
20877
20878 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20879
20880 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20881
20882 2011-04-27 Jan Hubicka <jh@suse.cz>
20883
20884 * ipa-prop.c (function_insertion_hook_holder): New holder.
20885 (ipa_add_new_function): New function.
20886 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20887 Register/deregister holder.
20888
20889 2011-04-27 Richard Guenther <rguenther@suse.de>
20890
20891 PR tree-optimization/48772
20892 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20893
20894 2011-04-27 Richard Guenther <rguenther@suse.de>
20895
20896 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20897 TARGET_MEM_REF handling.
20898
20899 2011-04-27 Nick Clifton <nickc@redhat.com>
20900
20901 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20902 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20903 (REG_CLASS_NAMES): Likewise.
20904 (REG_CLASS_CONTENTS): Likewise.
20905 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
20906 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
20907 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
20908 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
20909 (EVEN_REGS): New macro. Alias for QUAD_REGS.
20910 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20911 duplicate register classes.
20912 (frv_class_likely_spilled_p): Likewise.
20913 (frv_register_move_cost): Likewise.
20914
20915 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20916 end of the regno_reg_class array.
20917
20918 2011-04-27 Jakub Jelinek <jakub@redhat.com>
20919
20920 PR c/48742
20921 * c-typeck.c (build_binary_op): Don't wrap arguments if
20922 int_operands is true.
20923
20924 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
20925
20926 PR target/48767
20927 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20928 targetm.calls.must_pass_in_stack for void type.
20929
20930 2011-04-26 Jan Hubicka <jh@suse.cz>
20931
20932 * cgraphbuild.c (build_cgraph_edges): Update call
20933 of cgraph_create_edge and cgraph_create_indirect_edge.
20934 * cgraph.c (cgraph_create_edge_including_clones,
20935 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20936 cgraph_update_edges_for_call_stmt_node): Do not take nest
20937 argument; do not initialize call_stmt_size/time.
20938 (dump_cgraph_node): Do not dump nest.
20939 (cgraph_clone_edge): Do not take loop_nest argument;
20940 do not propagate it; do not clone call_stmt_size/time.
20941 (cgraph_clone_node): Likewise.
20942 (cgraph_create_virtual_clone): Update.
20943 * cgraph.h (struct cgraph_edge): Remove
20944 call_stmt_size/call_stmt_time/loop_nest.
20945 (cgraph_create_edge, cgraph_create_indirect_edge,
20946 cgraph_create_edge_including_clones, cgraph_clone_node): Update
20947 prototype.
20948 * tree-emutls.c (gen_emutls_addr): Update.
20949 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20950 loop_nest; handle indirect calls, too.
20951 (clone_inlined_nodes): Do not care about updating inline summaries.
20952 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20953 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20954 stream call_stmt_size/call_stmt_time/loop_nest.
20955 * ipa-inline.c (edge_badness): Update.
20956 (ipa_inline): dump summaries after inlining.
20957 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20958 New.
20959 (inline_edge_summary): New function.
20960 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20961 (inline_edge_removal_hook): Handle edge summaries.
20962 (inline_edge_duplication_hook): New hook.
20963 (inline_summary_alloc): Alloc hooks.
20964 (initialize_growth_caches): Do not register removal hooks.
20965 (free_growth_caches); Do not free removal hook.
20966 (dump_inline_edge_summary): New function.
20967 (dump_inline_summary): Use it.
20968 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20969 (inline_update_callee_summaries): New function.
20970 (inline_merge_summary): Use it.
20971 (do_estimate_edge_time, do_estimate_edge_growth): Update.
20972 (read_inline_edge_summary): New function.
20973 (inline_read_section): Use it.
20974 (write_inline_edge_summary): New function.
20975 (inline_write_summary): Use it.
20976 (inline_free_summary): Free edge new holders.
20977 * tree-inline.c (copy_bb): Update.
20978
20979 2011-04-26 Jason Merrill <jason@redhat.com>
20980
20981 * tree-eh.c (lower_try_finally_switch): Create the label along with
20982 the CASE_LABEL_EXPR.
20983
20984 2011-04-26 David S. Miller <davem@davemloft.net>
20985 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20986
20987 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20988 * configure: Regenerate.
20989
20990 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20991
20992 PR target/48258
20993 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20994 reduction.
20995 (VEC_reduc): New code iterator and splitters for vector reduction.
20996 (VEC_reduc_name): Ditto.
20997 (VEC_reduc_rtx): Ditto.
20998 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20999 (reduc_<VEC_reduc_name>_v4sf): Ditto.
21000
21001 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
21002 support for extracting SF on VSX.
21003
21004 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
21005 generating xscvspdp.
21006 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
21007 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
21008 double add, minimum, maximum vector reduction.
21009 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
21010 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
21011 optimize double vector reduction.
21012 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
21013
21014 2011-04-26 Joseph Myers <joseph@codesourcery.com>
21015
21016 * config/fr30/fr30.h (inhibit_libc): Don't define.
21017 * config/m32r/m32r-protos.h: Correct comment.
21018 * config/v850/v850.h (GHS_default_section_names,
21019 GHS_current_section_names): Use tree, not union tree_node *.
21020
21021 2011-04-26 Xinliang David Li <davidxl@google.com>
21022
21023 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
21024 * c-family/c-opts.c (c_common_handle_option): Set
21025 warn_maybe_uninitialized.
21026 * opts.c (common_handle_option): Ditto.
21027 * common.opt: New option.
21028 * tree-ssa.c (warn_uninit): Add one more parameter.
21029 (warn_uninitialized_var): Pass warning code.
21030 * tree-flow.h: Interface change.
21031
21032 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21033
21034 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
21035 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
21036 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
21037
21038 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21039
21040 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
21041 * config/mips/mips.opt (mmips-tfile): Remove.
21042
21043 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
21044 mips-tdump reference to ...
21045 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
21046 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
21047 reference by Tru64 UNIX.
21048
21049 2011-04-26 Jakub Jelinek <jakub@redhat.com>
21050
21051 PR debug/48768
21052 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
21053 is error_mark_node, set value to NULL.
21054
21055 PR tree-optimization/48734
21056 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
21057 if return value from maybe_fold_*_comparsions isn't something
21058 the code is prepared to handle.
21059
21060 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
21061
21062 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
21063 mode check.
21064 (ext_QIreg_nomode_operands): Remove.
21065 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
21066 (*andsi_1): Ditto.
21067 (*andhi_1): Ditto.
21068
21069 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
21070
21071 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
21072
21073 2011-04-26 Richard Guenther <rguenther@suse.de>
21074
21075 * c-typeck.c (build_unary_op): Do not expand array-refs via
21076 pointer arithmetic. Only adjust qualifiers for function types.
21077
21078 2011-04-26 Richard Guenther <rguenther@suse.de>
21079
21080 PR middle-end/48694
21081 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
21082 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
21083 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
21084 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
21085
21086 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
21087
21088 * doc/extend.texi: Document __underlying_type.
21089
21090 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
21091
21092 * config/rs6000/titan.md (automata_option "progress"): Remove.
21093
21094 2011-04-25 Jeff Law <law@redhat.com>
21095
21096 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
21097
21098 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
21099
21100 * system.h (ENUM_BITFIELD): Remove.
21101
21102 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
21103 Eric Botcazou <ebotcazou@adacore.com>
21104
21105 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
21106 for STORE_FLAG_VALUE==-1 case.
21107
21108 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
21109
21110 PR target/43804
21111 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
21112 LEGITIMATE_PIC_OPERAND_P.
21113
21114 2011-04-24 Jan Hubicka <jh@suse.cz>
21115
21116 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
21117 WPA hack.
21118 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
21119 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
21120 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
21121 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
21122 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
21123 Sanity check predicate length.
21124 (remap_predicate): Likewise; sanity check jump functions.
21125 (inline_read_section, inline_write_summary): Sanity check
21126 predicate length.
21127
21128 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
21129
21130 PR other/48748
21131 * doc/extend.texi (Type Traits): Document __is_standard_layout,
21132 __is_literal_type, and __is_trivial; update throughout about
21133 possibly cv-qualified void types.
21134
21135 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
21136
21137 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
21138 testsuite and make it version agnostic.
21139
21140 2011-04-22 Jan Hubicka <jh@suse.cz>
21141
21142 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
21143
21144 2011-04-23 Jakub Jelinek <jakub@redhat.com>
21145
21146 PR c/48685
21147 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
21148 to VOID_TYPE even around MODIFY_EXPR.
21149
21150 2011-04-22 Mike Stump <mikestump@comcast.net>
21151
21152 * gensupport.c (read_md_rtx): Fix typo in comment.
21153 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
21154 comment.
21155
21156 2011-04-22 Jan Hubicka <jh@suse.cz>
21157
21158 * gengtype.c (open_base_files): Add ipa-inline.h include.
21159 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
21160 ipa-prop.c; update all uses.
21161 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
21162 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
21163 merge summary of inlined function into former caller.
21164 * ipa-inline.c (max_benefit): Remove.
21165 (edge_badness): Compensate for removal of benefits.
21166 (update_caller_keys): Use
21167 reset_node_growth_cache/reset_edge_growth_cache.
21168 (update_callee_keys): Likewise.
21169 (update_all_callee_keys): Likewise.
21170 (inline_small_functions): Do not collect max_benefit; do not reset
21171 estimated_growth; call free_growth_caches and initialize_growth_caches.
21172 * ipa-inline.h (struct condition, type clause_t, struct predicate,
21173 struct size_time_entry): New structures.
21174 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
21175 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
21176 and estimated_growth.
21177 (edge_growth_cache_entry): New structure.
21178 (node_growth_cache, edge_growth_cache): New global vars.
21179 (estimate_growth): Turn into inline.
21180 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
21181 initialize_growth_caches, free_growth_caches): Declare.
21182 (estimate_edge_growth): Rewrite.
21183 (estimate_edge_time): Implement as inline cache lookup.
21184 (reset_node_growth_cache, reset_edge_growth_cache): New inline
21185 functions.
21186 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
21187 (NUM_CONDITIONS): New constant.
21188 (predicate_conditions): New enum.
21189 (IS_NOT_CONSTANT): New constant.
21190 (edge_removal_hook_holder): New var.
21191 (node_growth_cache, edge_growth_cache): New global vars.
21192 (true_predicate, single_cond_predicate, false_predicate,
21193 not_inlined_predicate, add_condition, add_clause, and_predicates,
21194 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
21195 dump_clause, dump_predicate, account_size_time,
21196 evaulate_conditions_for_edge): New functions.
21197 (inline_summary_alloc): Move to heap.
21198 (inline_node_removal_hook): Clear condition and entry vectors.
21199 (inline_edge_removal_hook): New function.
21200 (initialize_growth_caches, free_growth_caches): New function.
21201 (dump_inline_summary): Update.
21202 (edge_execution_predicate): New function.
21203 (will_be_nonconstant_predicate): New function.
21204 (estimate_function_body_sizes): Compute BB and constantness predicates.
21205 (compute_inline_parameters): Do not clear estimated_growth.
21206 (estimate_edge_size_and_time): New function.
21207 (estimate_calls_size_and_time): New function.
21208 (estimate_callee_size_and_time): New function.
21209 (remap_predicate): New function.
21210 (inline_merge_summary): New function.
21211 (do_estimate_edge_time): New function based on...
21212 (estimate_edge_time): ... this one.
21213 (do_estimate_edge_growth): New function.
21214 (do_estimate_growth): New function based on....
21215 (estimate_growth): ... this one.
21216 (inline_analyze_function): Analyze after deciding on jump functions.
21217 (inline_read_section): New function.
21218 (inline_read_summary): Use it.
21219 (inline_write_summary): Write all the new data.
21220 * ipa-prop.c (ipa_get_param_decl_index): Export.
21221 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
21222 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
21223 Declare.
21224 (ipa_get_lattice): Move here from ipa-cp.c
21225 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
21226 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
21227 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
21228 cgraph_edge_inlinable_p): Remove.
21229 * cgraphunit.c: Include ipainline.h
21230 (cgraph_process_new_functions): Update call of
21231 compute_inline_parameters.
21232
21233 2011-04-22 Richard Guenther <rguenther@suse.de>
21234
21235 * tree.c (build_int_cst): Properly create canonicalized integer
21236 constants.
21237 (build_int_cst_type): Remove scary comments.
21238
21239 2011-04-22 Xinliang David Li <davidxl@google.com>
21240
21241 * toplev.c (process_options): Enable -Werror=coverage-mismatch
21242 by default when -Wno-error is not specified.
21243 * opts-global.c (decode_options): Remove call to
21244 control_warning_options.
21245
21246 2011-04-22 Jakub Jelinek <jakub@redhat.com>
21247
21248 PR tree-optimization/48717
21249 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
21250 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
21251
21252 2011-04-22 Joseph Myers <joseph@codesourcery.com>
21253
21254 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
21255 definition where used.
21256
21257 2011-04-22 Jakub Jelinek <jakub@redhat.com>
21258
21259 PR c/48716
21260 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
21261 TREE_STATIC variables declared inside of some OpenMP construct.
21262
21263 2011-04-22 Martin Jambor <mjambor@suse.cz>
21264
21265 PR middle-end/48585
21266 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
21267
21268 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
21269
21270 PR c/36750
21271 * c-typeck.c (pop_init_level): Do not warn about initializing
21272 with ` = {0}'.
21273
21274 2011-04-22 Alan Modra <amodra@gmail.com>
21275
21276 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
21277 when returning call_cookie.
21278 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
21279 pointers, to functions with no more vector args than the current
21280 function, and some non-local calls for ABI_V4.
21281 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
21282 sibcall_nonlocal_aix64): Combine to ..
21283 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
21284 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
21285 (sibcall_value_nonlocal_aix<mode>): ..likewise.
21286 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
21287 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
21288 operand.
21289 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
21290 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
21291 sibcall_value_symbolic_64): Delete.
21292
21293 2011-04-21 Xinliang David Li <davidxl@google.com>
21294
21295 * cgraph.h: Remove pid.
21296 * cgraph.c: Remove pid.
21297 * value-prof.c (init_node_map): New function.
21298 (del_node_map): New function.
21299 (find_func_by_funcdef_no): New function.
21300 (gimple_ic_transform): Call new function.
21301 * cgraphunit.c (cgraph_finalize_function): Remove pid.
21302 * function.c (get_last_funcdef_no): New function.
21303 * function.h (get_last_funcdef_no): New function.
21304 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
21305 to libgcov function.
21306 (tree-profiling): Call node map init and delete function.
21307
21308 2011-04-21 Ian Lance Taylor <iant@google.com>
21309
21310 * godump.c (go_format_type): Use exported Go name for anonymous
21311 field name.
21312
21313 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
21314
21315 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
21316 Call builtin_function_type_list instead of builtin_function_type.
21317 (UNARY, BINARY, TRINARY, QUAD): Likewise.
21318
21319 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
21320
21321 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
21322 build_function_type_list instead of build_function_type.
21323 Delete variable `endlink'.
21324
21325 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
21326
21327 * config/s390/s390.c (s390_init_builtins): Call
21328 build_function_type_list instead of build_function_type.
21329
21330 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
21331
21332 * config/ia64/ia64.c (ia64_init_builtins): Call
21333 build_function_type_list instead of builtin_function_type.
21334
21335 2011-04-21 Easwaran Raman <eraman@google.com>
21336
21337 * cfgexpand.c (stack_var): Remove OFFSET...
21338 (add_stack_var): ...and its reference here...
21339 (expand_stack_vars): ...and here.
21340 (stack_var_cmp): Sort by descending order of size.
21341 (partition_stack_vars): Change heuristic.
21342 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
21343 (dump_stack_var_partition): Add newline after each partition.
21344
21345 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
21346 Jeff Law <law@redhat.com>
21347
21348 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
21349 * gengtype.c (matching_file_name_substitute): Likewise.
21350
21351 2011-04-21 Richard Guenther <rguenther@suse.de>
21352
21353 PR lto/48703
21354 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
21355
21356 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
21357
21358 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
21359
21360 2011-04-21 Richard Guenther <rguenther@suse.de>
21361
21362 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
21363 file name.
21364
21365 2011-04-21 Richard Guenther <rguenther@suse.de>
21366
21367 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
21368 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
21369 Use DECL_P, not SSA_VAR_P.
21370 (ptr_derefs_may_alias_p): Likewise.
21371 (ptr_deref_may_alias_ref_p_1): Likewise.
21372 (decl_refs_may_alias_p): Likewise.
21373 (refs_may_alias_p_1): Likewise.
21374 (ref_maybe_used_by_call_p_1): Likewise.
21375 (call_may_clobber_ref_p_1): Likewise.
21376 (indirect_ref_may_alias_decl_p): Assume indirect refrences
21377 are either MEM_REF or TARGET_MEM_REF.
21378 (indirect_refs_may_alias_p): Likewise.
21379 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
21380 for MEM_EXPR of indirect calls.
21381
21382 2011-04-21 Tristan Gingold <gingold@adacore.com>
21383
21384 * vmsdbgout.c (write_srccorr): Compute file length from the string.
21385 (dst_file_info_struct): Remove flen field.
21386 (lookup_filename): Remove code that set flen field.
21387
21388 2011-04-21 Tristan Gingold <gingold@adacore.com>
21389
21390 * config/ia64/ia64.c (ia64_start_function): Add a guard.
21391
21392 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
21393
21394 PR target/48708
21395 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
21396 vec_extract and vec_concat for non-SSE4_1 targets.
21397
21398 2011-04-21 Richard Guenther <rguenther@suse.de>
21399
21400 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
21401 return statements.
21402
21403 2011-04-21 Joseph Myers <joseph@codesourcery.com>
21404
21405 * config/i386/cygming.h (union tree_node, TREE): Don't define or
21406 undefine.
21407 (FILE): Don't undefine.
21408
21409 2011-04-21 Joseph Myers <joseph@codesourcery.com>
21410
21411 * config/alpha/alpha.c (struct machine_function): Use rtx, not
21412 struct rtx_def *.
21413 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
21414 struct rtx_def *.
21415 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
21416 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
21417 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
21418 rtx_def *.
21419 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
21420 definitions where used.
21421 * config/microblaze/microblaze.h (struct microblaze_args): Use
21422 rtx, not struct rtx_def *.
21423 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
21424 rtx_def *.
21425 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
21426 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
21427 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
21428 not struct rtx_def *.
21429 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
21430 struct rtx_def *.
21431 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
21432 rtx_def *.
21433 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
21434
21435 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
21436
21437 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
21438 operand_equal_p to compare DR_BASE_ADDRESSes.
21439 (vect_check_interleaving): Likewise.
21440
21441 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
21442
21443 PR target/46329
21444 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
21445 for all Neon struct constants.
21446
21447 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
21448
21449 * target.def (legitimate_constant_p): New hook.
21450 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
21451 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
21452 * doc/tm.texi: Regenerate.
21453 * hooks.h (hook_bool_mode_rtx_true): Declare.
21454 * hooks.c (hook_bool_mode_rtx_true): Define.
21455 * system.h (LEGITIMATE_CONSTANT_P): Poison.
21456 * calls.c (precompute_register_parameters): Replace uses of
21457 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
21458 (emit_library_call_value_1): Likewise.
21459 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
21460 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
21461 * ira-costs.c (scan_one_insn): Likewise.
21462 * recog.c (general_operand, immediate_operand): Likewise.
21463 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
21464 * reload1.c (init_eliminable_invariants): Likewise.
21465
21466 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
21467 mode argument.
21468 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
21469 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
21470 argument.
21471 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21472 * config/alpha/predicates.md (input_operand): Update call to
21473 alpha_legitimate_constant_p.
21474
21475 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
21476 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
21477 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
21478 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21479 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
21480 (arm_legitimate_constant_p): New functions.
21481 (arm_cannot_force_const_mem): Make static.
21482
21483 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
21484
21485 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
21486 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
21487 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
21488 instead of bfin_legitimate_constant_p.
21489 (bfin_legitimate_constant_p): Make static. Add a mode argument.
21490 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21491
21492 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
21493
21494 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
21495
21496 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
21497 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
21498 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21499 (frv_legitimate_constant_p): Make static. Add a mode argument.
21500
21501 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
21502 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
21503 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
21504
21505 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
21506 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
21507 * config/i386/i386.c (legitimate_constant_p): Rename to...
21508 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
21509 argument.
21510 (ix86_cannot_force_const_mem): Update accordingly.
21511 (ix86_legitimate_address_p): Likewise.
21512 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21513 * config/i386/i386.md: Update commentary.
21514
21515 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
21516 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
21517 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21518 (ia64_legitimate_constant_p): Make static. Add a mode argument.
21519
21520 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
21521
21522 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
21523 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
21524 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21525 (lm32_legitimate_constant_p): Make static. Add a mode argument.
21526
21527 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
21528 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
21529 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
21530
21531 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
21532 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21533 (m32r_legitimate_constant_p): New function.
21534
21535 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
21536 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
21537 LEGITIMATE_CONSTANT_P.
21538 (LEGITIMATE_CONSTANT_P): Delete.
21539 * config/m68k/m68k.c (m68k_expand_prologue): Call
21540 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
21541 (m68k_legitimate_constant_p): New function.
21542 * config/m68k/m68k.md: Update comments.
21543
21544 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
21545 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21546 (mcore_legitimate_constant_p): New function.
21547
21548 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
21549 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
21550 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
21551 Add a mode argument.
21552 (mep_legitimate_address): Update accordingly.
21553 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21554
21555 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
21556 Delete.
21557 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
21558 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
21559 static. Check OP's mode for VOIDmode.
21560 (microblaze_legitimate_constant_p): New function.
21561 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21562
21563 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
21564 * config/mips/mips.c (mips_legitimate_constant_p): New function.
21565 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
21566 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21567 * config/mips/predicates.md: Update comments.
21568
21569 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
21570 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
21571 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21572 (mmix_legitimate_constant_p): Make static, return a bool, and take
21573 a mode argument.
21574 (mmix_print_operand_address): Update accordingly.
21575
21576 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
21577 Delete.
21578 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
21579 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
21580 static. Add a mode argument.
21581 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21582
21583 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
21584
21585 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
21586 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21587 (pa_legitimate_constant_p): New function.
21588
21589 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
21590
21591 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
21592 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21593 (pdp11_legitimate_constant_p): New function.
21594
21595 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
21596 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21597 (rs6000_legitimate_constant_p): New function.
21598
21599 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
21600 (rx_legitimate_constant_p): ...this.
21601 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
21602 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
21603 (rx_legitimate_constant_p): ...this.
21604 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21605 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
21606
21607 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
21608 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
21609 * config/s390/s390.c (legitimate_constant_p): Rename to...
21610 (s390_legitimate_constant_p): ...this. Make static, return a bool,
21611 and add a mode argument.
21612 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21613
21614 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
21615
21616 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
21617 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21618 (sh_legitimate_constant_p): New function.
21619
21620 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
21621 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
21622 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21623 (legitimate_constant_p): Rename to...
21624 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
21625 argument.
21626 (constant_address_p): Update accordingly.
21627
21628 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
21629 argument and return a bool.
21630 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
21631 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21632 (spu_legitimate_constant_p): Add a mode argument and return a bool.
21633 (spu_rtx_costs): Update accordingly.
21634 * config/spu/predicates.md (vec_imm_operand): Likewise.
21635
21636 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
21637
21638 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
21639 * config/v850/v850.c (v850_legitimate_constant_p): New function.
21640 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21641
21642 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
21643 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
21644 * config/vax/vax.c (legitimate_constant_p): Likewise.
21645
21646 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
21647 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21648 (xtensa_legitimate_constant_p): New function.
21649
21650 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
21651
21652 * target.def (cannot_force_const_mem): Add a mode argument.
21653 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
21654 * doc/tm.texi: Regenerate.
21655 * hooks.h (hook_bool_mode_rtx_false): Declare.
21656 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
21657 (hook_bool_mode_const_rtx_true): Likewise.
21658 (hook_bool_mode_rtx_false): New function.
21659 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
21660 to be non-VOID. Update call to cannot_force_const_mem.
21661 (find_reloads): Update accordingly.
21662 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
21663 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
21664 argument.
21665 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
21666 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
21667 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
21668 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
21669 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
21670 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
21671 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
21672 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21673 (m68k_cannot_force_const_mem): ...this new function.
21674 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
21675 argument.
21676 (mips_const_insns, mips_legitimize_const_move): Update calls.
21677 (mips_secondary_reload_class): Likewise.
21678 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21679 (pa_cannot_force_const_mem): ...this new function.
21680 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
21681 (rs6000_cannot_force_const_mem): ...this new function.
21682 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
21683 argument.
21684 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
21685 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
21686 to...
21687 (xtensa_cannot_force_const_mem): ...this new function.
21688
21689 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21690
21691 * config/mips/mips.c (mips16_build_function_stub): Call
21692 build_function_type_list instead of build_function_type.
21693 (mips16_build_call_stub): Likewise.
21694
21695 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21696
21697 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
21698 instead of build_function_type.
21699
21700 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21701
21702 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
21703 instead of build_function_type.
21704
21705 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
21706
21707 PR target/48678
21708 * config/i386/i386.md (insv): Change operand 0 constraint to
21709 "register_operand". Change operand 1 and 2 constraint to
21710 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
21711 * config/i386/sse.md (sse4_1_pinsrb): Export.
21712 (sse2_pinsrw): Ditto.
21713 (sse4_1_pinsrd): Ditto.
21714 (sse4_1_pinsrq): Ditto.
21715 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
21716 * config/i386/i386.c (ix86_expand_pinsr): New.
21717
21718 2011-04-20 Easwaran Raman <eraman@google.com>
21719
21720 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
21721 containing union type only with -fstrict-aliasing.
21722
21723 2011-04-20 Jim Meyering <meyering@redhat.com>
21724
21725 Remove useless if-before-free tests.
21726 * calls.c (expand_call, save_area): Likewise.
21727 * cfgcleanup.c (try_forward_edges): Likewise.
21728 * collect2.c (collect_execute): Likewise.
21729 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
21730 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
21731 * coverage.c (coverage_checksum_string): Likewise.
21732 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
21733 * cselib.c (cselib_init): Likewise.
21734 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
21735 (df_set_clean_cfg): Likewise.
21736 * function.c (free_after_compilation): Likewise.
21737 * gcc.c (do_spec_1, main): Likewise.
21738 * gcov.c (create_file_names): Likewise.
21739 * gensupport.c (identify_predicable_attribute): Likewise.
21740 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
21741 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
21742 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
21743 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
21744 * ipa-pure-const.c (local_pure_const): Likewise.
21745 * ipa-reference.c (propagate): Likewise.
21746 * ira-costs.c (free_ira_costs): Likewise.
21747 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
21748 * matrix-reorg.c (mat_free): Likewise.
21749 * prefix.c (get_key_value): Likewise.
21750 * profile.c (compute_value_histograms): Likewise.
21751 * reload1.c (free_reg_equiv): Likewise.
21752 * sched-deps.c (free_deps): Likewise.
21753 * sel-sched-ir.c (fence_clear): Likewise.
21754 * sese.c (set_rename, if_region_set_false_region): Likewise.
21755 * tree-data-ref.c (free_rdg): Likewise.
21756 * tree-eh.c (lower_try_finally): Likewise.
21757 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
21758 * tree-ssa-live.c (delete_var_map): Likewise.
21759 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
21760 * tree-ssa-pre.c (phi_trans_add): Likewise.
21761
21762 2011-04-20 Jakub Jelinek <jakub@redhat.com>
21763
21764 PR tree-optimization/48611
21765 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
21766 beyond ERT_MUST_NOT_THROW region.
21767
21768 2011-04-20 Catherine Moore <clm@codesourcery.com>
21769
21770 * config/mips/mips.opt (mfix-24k): New.
21771 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
21772 * config/mips/mips.md (length): Increase by 4 for stores if
21773 fixing 24K errata.
21774 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
21775 all noreorder if fixing 24K errata.
21776 * doc/invoke.texi: Document mfix-24k.
21777
21778 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
21779
21780 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
21781 quad-word modes, reduce to 9-bit index range when above 1016 limit.
21782
21783 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
21784
21785 * config/arm/arm.c (arm_gen_constant): Move movw support ....
21786 (const_ok_for_op): ... to here.
21787
21788 2011-04-20 Kai Tietz <ktietz@redhat.com>
21789
21790 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
21791 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
21792
21793 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
21794
21795 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
21796
21797 2011-04-20 Richard Guenther <rguenther@suse.de>
21798
21799 PR tree-optimization/47892
21800 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
21801 are if-convertible.
21802
21803 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
21804
21805 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
21806
21807 2011-04-20 Tristan Gingold <gingold@adacore.com>
21808
21809 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
21810
21811 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
21812
21813 PR target/18145
21814
21815 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21816 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21817 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21818 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21819 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21820
21821 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21822 New prototype.
21823
21824 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21825 (avr_asm_named_section, avr_asm_output_aligned_common,
21826 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21827 New functions to update...
21828 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21829 (avr_asm_init_sections): Overwrite section callbacks for
21830 data_section, bss_section.
21831 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21832 from here to...
21833 (avr_file_end): ...here.
21834
21835 2011-04-20 Richard Guenther <rguenther@suse.de>
21836
21837 PR middle-end/48695
21838 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21839 objects and types here. Adjust for their offset before comparing.
21840
21841 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
21842
21843 * tree-vect-stmts.c (vectorizable_store): Only chain one related
21844 statement per copy.
21845
21846 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
21847
21848 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21849 (GIMPLE_H): Include $(INTERNAL_FN_H).
21850 (OBJS-common): Add internal-fn.o.
21851 (internal-fn.o): New rule.
21852 * internal-fn.def: New file.
21853 * internal-fn.h: Likewise.
21854 * internal-fn.c: Likewise.
21855 * gimple.h: Include internal-fn.h.
21856 (GF_CALL_INTERNAL): New gf_mask.
21857 (gimple_statement_call): Put fntype into a union with a new
21858 internal_fn field.
21859 (gimple_build_call_internal): Declare.
21860 (gimple_build_call_internal_vec): Likewise.
21861 (gimple_call_same_target_p): Likewise.
21862 (gimple_call_internal_p): New function.
21863 (gimple_call_internal_fn): Likewise.
21864 (gimple_call_fntype): Return null for internal calls.
21865 (gimple_call_set_fntype): Assert that the function is not internal.
21866 (gimple_call_set_fn): Likewise.
21867 (gimple_call_set_fndecl): Likewise.
21868 (gimple_call_set_internal_fn): New function.
21869 (gimple_call_addr_fndecl): Handle null functions.
21870 (gimple_call_return_type): Likewise null types.
21871 * gimple.c (gimple_build_call_internal_1): New function.
21872 (gimple_build_call_internal): Likewise.
21873 (gimple_build_call_internal_vec): Likewise.
21874 (gimple_call_same_target_p): Likewise.
21875 (gimple_call_flags): Handle calls to internal functions.
21876 (gimple_call_fnspec): New function.
21877 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21878 (gimple_has_side_effects): Handle null functions.
21879 (gimple_rhs_has_side_effects): Likewise.
21880 (gimple_call_copy_skip_args): Handle calls to internal functions.
21881 * cfgexpand.c (expand_call_stmt): Likewise.
21882 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21883 * gimple-fold.c (gimple_fold_call): Handle null functions.
21884 (gimple_fold_stmt_to_constant_1): Don't fold
21885 calls to internal functions.
21886 * gimple-low.c (gimple_check_call_args): Handle calls to internal
21887 functions.
21888 * gimple-pretty-print.c (dump_gimple_call): Likewise.
21889 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21890 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21891 (do_warn_unused_result): Likewise.
21892 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21893 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21894 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21895 the target of a call.
21896 (initialize_hash_element): Update accordingly.
21897 (hashable_expr_equal_p): Use gimple_call_same_target_p.
21898 (iterative_hash_hashable_expr): Handle calls to internal functions.
21899 (print_expr_hash_elt): Likewise.
21900 * tree-ssa-pre.c (can_value_number_call): Likewise.
21901 (eliminate): Handle null functions.
21902 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21903 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21904 (find_func_aliases): Likewise.
21905 * value-prof.c (gimple_ic_transform): Likewise.
21906 (gimple_indirect_call_to_profile): Likewise.
21907 * lto-streamer-in.c (input_gimple_stmt): Likewise.
21908 * lto-streamer-out.c (output_gimple_stmt): Likewise.
21909
21910 2011-04-19 Jan Hubicka <jh@suse.cz>
21911
21912 * ipa-inline-transform.c (save_inline_function_body): Add comments.
21913 * ipa-inline.c (inline_small_functions): Compute summaries first,
21914 populate heap later.
21915
21916 2011-04-19 Jan Hubicka <jh@suse.cz>
21917
21918 * cgraph.h (save_inline_function_body): Remove.
21919 * ipa-inline-transform.c: New file, broke out of...
21920 * ipa-inline.c: ... this one; Update toplevel comment.
21921 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21922 make global.
21923 (update_noncloned_frequencies): Move to ipa-inline-transform.c
21924 (cgraph_mark_inline_edge): Rename to inline_call; move to
21925 ipa-inline-transform.c.
21926 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21927 move to ipa-inline-transform.c
21928 (recursive_inlining, inline_small_functions, flatten_function,
21929 ipa_inline, inline_always_inline_functions,
21930 early_inline_small_functions): Update.
21931 (inline_transform): Move to ipa-inline-transform.c.
21932 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21933 Declare.
21934 * Makefile.in (ipa-inline-transform.o): New file.
21935 * cgraphunit.c (save_inline_function_body): Move to
21936 ipa-inline-transform.c
21937
21938 2011-04-19 DJ Delorie <dj@redhat.com>
21939
21940 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21941 registers if we already know there aren't any.
21942 (m32c_emit_epilogue): Don't emit a barrier here.
21943 (m32c_emit_eh_epilogue): Likewise.
21944 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21945 operands at expand time.
21946 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21947 int" wchar type.
21948 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21949 duplicates. Provide aliases instead.
21950 * config/m32c/prologue.md (eh_return): Emit a barrier here.
21951 (eh_epilogue): Add a "(return)" here as a hint to other parts of
21952 the compiler.
21953
21954 2011-04-19 Anatoly Sokolov <aesok@post.ru>
21955
21956 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21957 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21958 (general_or_i64_p, sparc_register_move_cost): New function.
21959
21960 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21961
21962 * doc/install.texi (Configuration, --enable-threads): Remove mach.
21963 Add lynx, mipssde. Sort table.
21964
21965 2011-04-19 Xinliang David Li <davidxl@google.com>
21966
21967 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21968 not negative.
21969
21970 2011-04-19 Jakub Jelinek <jakub@redhat.com>
21971
21972 PR target/48678
21973 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21974 is a SUBREG with non-MODE_INT mode inside of it.
21975
21976 2011-04-19 Martin Jambor <mjambor@suse.cz>
21977
21978 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21979 also according to actual contants.
21980 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21981 (gimple_fold_call): Use it.
21982 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21983
21984 2011-04-19 Martin Jambor <mjambor@suse.cz>
21985
21986 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21987 non-pointer assignments.
21988
21989 2011-04-19 Martin Jambor <mjambor@suse.cz>
21990
21991 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21992 account anc_offset and otr_type from the indirect edge info.
21993 * ipa-prop.c (get_ancestor_addr_info): New function.
21994 (compute_complex_ancestor_jump_func): Assignment analysis moved to
21995 get_ancestor_addr_info, call it.
21996 (ipa_note_param_call): Do not initialize information about polymorphic
21997 calls, return the indirect call graph edge. Remove the last
21998 parameter, adjust all callers.
21999 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
22000 parameters. Initialize polymorphic information in the indirect edge.
22001
22002 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22003
22004 PR lto/48148
22005 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
22006 the types if they have different enumeration identifiers.
22007
22008 2011-04-19 Jan Hubicka <jh@suse.cz>
22009
22010 * cgraph.h (cgraph_optimize_for_size_p): Declare.
22011 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
22012 * predict.c (cgraph_optimize_for_size_p): Break out from ...
22013 (optimize_function_for_size_p) ... here.
22014
22015 2011-04-19 Richard Guenther <rguenther@suse.de>
22016
22017 PR lto/48207
22018 * tree.c (free_lang_data): Do not reset the decl-assembler-name
22019 langhook.
22020
22021 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22022
22023 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
22024 if DECL_NO_INLINE_WARNING_P is set on the function.
22025
22026 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
22027
22028 PR fortran/47976
22029 * reload1.c (inc_for_reload): Return void. All callers changed.
22030 (emit_input_reload_insns): Don't try to delete previous output
22031 reloads to a register, or record spill_reg_store for autoincs.
22032
22033 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
22034
22035 * gengtype.h: Updated copyright year.
22036 (struct input_file_st): Add inpisplugin field.
22037 (type_fileloc): New function.
22038 * gengtype.c
22039 (write_typed_struct_alloc_def): Add gcc_assert.
22040 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
22041 (write_typed_alloc_defns): Don't output for plugin files.
22042 (input_file_by_name): Clear inpisplugin field.
22043 (main): Set inpisplugin field for plugin files.
22044
22045 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
22046
22047 * gengtype-state.c (string_eq): New.
22048 (read_state): Use string_eq instead of strcmp when creating the
22049 state_ident_tab.
22050
22051 2011-04-19 Wei Guozhi <carrot@google.com>
22052
22053 PR target/47855
22054 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
22055 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
22056 linkage.
22057 * config/arm/constraints.md (Uu): New constraint.
22058 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
22059
22060 2011-04-19 Tristan Gingold <gingold@adacore.com>
22061
22062 * config.gcc (-*-*-*vms): Added.
22063 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
22064 definitions moved.
22065 * config/vms/vms-ld.c: New file.
22066 * config/vms/vms-ar.c: New file.
22067 * config/vms/t-vmsnative: New file.
22068
22069 2011-04-18 Xinliang David Li <davidxl@google.com>
22070
22071 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
22072
22073 2011-04-18 Jakub Jelinek <jakub@redhat.com>
22074
22075 PR middle-end/48661
22076 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
22077 if TREE_TYPE (v) is non-NULL.
22078
22079 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
22080 gimple_get_virt_mehtod_for_binfo.
22081 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
22082 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
22083 callers.
22084 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22085
22086 2011-04-18 Michael Matz <matz@suse.de>
22087 Steve Ellcey <sje@cup.hp.com>
22088
22089 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
22090 use its mode as source mode if it isn't VOIDmode.
22091
22092 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
22093
22094 * doc/passes.texi: Fill crossref nodes.
22095
22096 2011-04-18 Jim Meyering <meyering@redhat.com>
22097
22098 Fix doubled-word typos in comments and strings
22099 * config/alpha/vms-unwind.h: s/for for/for/
22100 * config/arm/unwind-arm.h: Likewise.
22101 * config/microblaze/microblaze.c: Likewise.
22102 * config/sh/constraints.md: s/in in/in/
22103 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
22104
22105 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
22106
22107 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
22108 (AVX_FLOAT_MODE_P): Ditto.
22109 (AVX128_VEC_FLOAT_MODE_P): Ditto.
22110 (AVX256_VEC_FLOAT_MODE_P): Ditto.
22111 (AVX_VEC_FLOAT_MODE_P): Ditto.
22112 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
22113 (UNSPEC_MASKSTORE): Ditto.
22114 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
22115 Merge from <sse>_movmsk<ssemodesuffix> and
22116 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
22117 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
22118 iterator.
22119 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
22120 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
22121 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
22122
22123 2011-04-18 Jan Hubicka <jh@suse.cz>
22124
22125 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
22126
22127 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
22128 (want_inline_function_called_once_p): Break out the logic from
22129 ipa_inline.
22130 (edge_badness): Ensure that profile is not misupdated.
22131 (lookup_recursive_calls): Prioritize by call frequencies.
22132 (inline_small_functions): Move program size estimates here;
22133 actually process whole queue even when unit growth has been
22134 met. (to properly compute inline_failed reasons and for the
22135 case unit size decrease.) Revisit comments on recursive inlining.
22136 (ipa_inline): Remove unit summary code; first inline hot calls
22137 of functions called once, cold calls next.
22138 (order, nnodes): Remove unused variables.
22139 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
22140 (GTFILES): Remove ipa-inline.c
22141 * sel-sched.c (fill_insns): Silence uninitialized var warning.
22142
22143 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
22144
22145 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
22146
22147 2011-04-18 Jie Zhang <jie@codesourcery.com>
22148 Richard Earnshaw <rearnsha@arm.com>
22149
22150 * arm.c (neon_builtin_type_bits): Remove.
22151 (typedef enum neon_builtin_mode): New.
22152 (T_MAX): Don't define.
22153 (typedef enum neon_builtin_datum): Remove bits, codes[],
22154 num_vars and base_fcode. Add mode, code and fcode.
22155 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
22156 VAR10): Change accordingly.
22157 (neon_builtin_data[]): Change accordingly
22158 (arm_init_neon_builtins): Change accordingly.
22159 (neon_builtin_compare): Remove.
22160 (locate_neon_builtin_icode): Remove.
22161 (arm_expand_neon_builtin): Change accordingly.
22162
22163 * arm.h (enum arm_builtins): Move to ...
22164 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
22165
22166 * arm.c (arm_builtin_decl): Declare.
22167 (TARGET_BUILTIN_DECL): Define.
22168 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
22169 (arm_builtin_decls[]): New.
22170 (arm_init_neon_builtins): Store builtin declarations in
22171 arm_builtin_decls[].
22172 (arm_init_tls_builtins): Likewise.
22173 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
22174 (arm_builtin_decl): New.
22175
22176 2011-04-18 Richard Guenther <rguenther@suse.de>
22177
22178 * tree.c (upper_bound_in_type): Build properly canonicalized
22179 INTEGER_CSTs.
22180 (lower_bound_in_type): Likewise.
22181
22182 2011-04-18 Richard Guenther <rguenther@suse.de>
22183
22184 * gimple.h (gimple_call_addr_fndecl): New function.
22185 (gimple_call_fndecl): Use it.
22186 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
22187 for direct calls.
22188 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
22189 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
22190
22191 2011-04-18 Richard Guenther <rguenther@suse.de>
22192
22193 PR middle-end/48650
22194 * tree.c (build_string): STRING_CST is now derived from tree_typed.
22195
22196 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
22197
22198 PR lto/48492
22199 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
22200 DECL_IN_CONSTANT_POOL without RTL.
22201
22202 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
22203 Ira Rosen <ira.rosen@linaro.org>
22204
22205 PR target/48252
22206 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
22207 to match neon_vzip/vuzp/vtrn_internal.
22208 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
22209 outputs explicitly dependent on both inputs.
22210 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
22211
22212 2011-04-18 Jakub Jelinek <jakub@redhat.com>
22213
22214 PR tree-optimization/48616
22215 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
22216 whether the shift is by scalar or vector based on whether all SLP
22217 scalar stmts have the same rhs.
22218
22219 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
22220
22221 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
22222 memory operands.
22223
22224 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
22225
22226 PR target/43700
22227 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
22228 registers.
22229
22230 2011-04-17 Jan Hubicka <jh@suse.cz>
22231
22232 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
22233 * cgrpahunit.c (cgraph_finalize_function): Do not set
22234 finalized_by_frontend.
22235 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
22236 finalized_by_frontend.
22237
22238 2011-04-17 Jan Hubicka <jh@suse.cz>
22239
22240 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
22241 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
22242 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
22243 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
22244 method.
22245 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
22246 gimple-fold.c
22247 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
22248
22249 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
22250
22251 PR lto/48538
22252 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
22253 is non-null before accessing it.
22254 (input_cgraph): Remove trailing spaces.
22255
22256 2011-04-17 Revital Eres <revital.eres@linaro.org>
22257
22258 * params.def (sms-min-sc): New param flag.
22259 * modulo-sched.c (sms_schedule): Use it.
22260 * doc/invoke.texi (sms-min-sc): Document it.
22261
22262 2011-04-17 Jan Hubicka <jh@suse.cz>
22263
22264 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
22265 present, also set gimple_call_set_cannot_inline.
22266 * ipa-inline.c: Update toplevel comment.
22267 (MAX_TIME): Remove.
22268 (cgraph_clone_inlined_nodes): Fix linebreaks.
22269 (cgraph_check_inline_limits): Restructure to ...
22270 (caller_growth_limits): ... this one; be more tolerant
22271 on growth in nested inline chains; add explanatory comment;
22272 fix stack accounting thinko introduced by previous patch.
22273 (cgraph_default_inline_p): Remove.
22274 (report_inline_failed_reason): New function.
22275 (can_inline_edge_p): New function.
22276 (can_early_inline_edge_p): New function.
22277 (leaf_node_p): Move upwards in file.
22278 (want_early_inline_function_p): New function.
22279 (want_inline_small_function_p): New function.
22280 (want_inline_self_recursive_call_p): New function.
22281 (cgraph_edge_badness): Rename to ...
22282 (edge_badness) ... this one; fix linebreaks.
22283 (update_edge_key): Update call of edge_baddness; add
22284 detailed dump about queue updates.
22285 (update_caller_keys): Use can_inline_edge_p and
22286 want_inline_small_function_p.
22287 (cgraph_decide_recursive_inlining): Rename to...
22288 (recursive_inlining): Use can_inline_edge_p and
22289 want_inline_self_recursive_call_p; simplify and remove no longer
22290 valid FIXME.
22291 (cgraph_set_inline_failed): Remove.
22292 (add_new_edges_to_heap): Use can_inline_edge_p and
22293 want_inline_small_function_p.
22294 (cgraph_decide_inlining_of_small_functions): Rename to ...
22295 (inline_small_functions): ... this one; cleanup; use
22296 can/want predicates; cleanup debug ouput; work edges till fibheap
22297 is exhausted and do not stop once unit growth is reached; remove
22298 later loop processing remaining edges.
22299 (cgraph_flatten): Rename to ...
22300 (flatten_function): ... this one; use can_inline_edge_p
22301 and can_early_inline_edge_p predicates.
22302 (cgraph_decide_inlining): Rename to ...
22303 (ipa_inline): ... this one; remove unreachable nodes before
22304 inlining functions called once; simplify the pass.
22305 (cgraph_perform_always_inlining): Rename to ...
22306 (inline_always_inline_functions): ... this one; use
22307 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
22308 (cgraph_decide_inlining_incrementally): Rename to ...
22309 (early_inline_small_functions): ... this one; simplify
22310 using new predicates; cleanup; make dumps prettier.
22311 (cgraph_early_inlining): Rename to ...
22312 (early_inliner): newer inline regular functions into always-inlines;
22313 fix updating of call stmt summaries.
22314 (pass_early_inline): Update for new names.
22315 (inline_transform): Fix formating.
22316 (gate_cgraph_decide_inlining): Rename to ...
22317 (pass_ipa_inline): ... this one.
22318 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
22319 * ipa-inline-analysis.c (dump_inline_summary): Update.
22320 (compute_inline_parameters): Do not compute disregard_inline_limits;
22321 look for mismatching arguments.
22322 (estimate_growth): Fix handlig of non-trivial self recursion.
22323 (inline_read_summary): Do not read info->disregard_inline_limits.
22324 (inline_write_summary): Do not write info->disregard_inline_limits.
22325 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
22326 and move all checks into can_inline_edge_p predicate; re-enable code
22327 comparing optimization levels.
22328 (expand_call_inline): Do not test inline_forbidden_into_p.
22329 * Makefile.in (ipa-inline.o): Update arguments.
22330
22331 2011-04-17 Revital Eres <revital.eres@linaro.org>
22332
22333 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
22334
22335 2011-04-17 Revital Eres <revital.eres@linaro.org>
22336
22337 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
22338
22339 2011-04-17 Michael Matz <matz@suse.de>
22340
22341 PR tree-optimization/48622
22342 PR lto/48645
22343 * ipa-inline-analysis.c (inline_read_summary): Read size/time
22344 in same order as they're written.
22345
22346 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22347
22348 * config/pa/predicates.md: Reorganize and simplify predicates.
22349 Eliminate duplicate code checks.
22350 (arith_operand): Rename to arith14_operand
22351 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
22352 * config/pa/pa.md: Use renamed operands.
22353 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
22354 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
22355 arith11_operand, adddi3_operand, indexed_memory_operand,
22356 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
22357 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
22358 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
22359 move_dest_operand, move_src_operand, prefetch_cc_operand,
22360 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
22361 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
22362 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
22363 div_operand, int5_operand, movb_comparison_operator,
22364 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
22365 arith_double_operand, ireg_operand, lhs_lshift_operand,
22366 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
22367 integer_store_memory_operand): Likewise.
22368 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
22369 (integer_store_memory_operand, read_only_operand,
22370 function_label_operand, borx_reg_operand,
22371 non_hard_reg_operand): Likewise.
22372 (eq_neq_comparison_operator): Delete unused operator.
22373 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
22374 function_label_operand.
22375 (emit_move_sequence): Likewise.
22376
22377 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
22378
22379 * config/i386/sse.md (sseunpackmode): New mode attribute.
22380 (ssepackmode): Ditto.
22381 (vec_pack_trunc_<mode>): Macroize expander from
22382 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
22383 (vec_unpacks_lo_<mode>): Macroize expander from
22384 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
22385 (vec_unpacks_hi_<mode>): Macroize expander from
22386 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
22387 (vec_unpacku_lo_<mode>): Macroize expander from
22388 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
22389 (vec_unpacku_hi_<mode>): Macroize expander from
22390 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
22391 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
22392 ix86_expand_sse4_unpack.
22393 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
22394
22395 2011-04-16 Jan Hubicka <jh@suse.cz>
22396
22397 * cgraphbuild.c: Include ipa-inline.h.
22398 (reset_inline_failed): Use initialize_inline_failed.
22399 * cgraph.c: Include ipa-inline.h.
22400 (cgraph_create_node_1): Do not initialize estimated_growth.
22401 (initialize_inline_failed): More to ipa-inline-analysis.c
22402 (dump_cgraph_node): Do not dump inline flags.
22403 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
22404 and disregard_inline_limits flags.
22405 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
22406 time, size, estimated_growth.
22407 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
22408 Update.
22409 * cgraphunit.c (cgraph_decide_is_function_needed): Use
22410 DECL_DISREGARD_INLINE_LIMITS.
22411 (cgraph_analyze_function): Do not initialize
22412 node->local.disregard_inline_limits.
22413 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
22414 inlinable, versionable and disregard_inline_limits.
22415 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
22416 cgraph_check_inline_limits, cgraph_default_inline_p,
22417 cgraph_edge_badness, update_caller_keys, update_callee_keys,
22418 add_new_edges_to_heap): Update.
22419 (cgraph_decide_inlining_of_small_function): Update; set
22420 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
22421 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
22422 cgraph_decide_inlining_incrementally): Update.
22423 * ipa-inline.h (inline_summary): Add inlinable, versionable,
22424 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
22425 time, size and estimated_growth parameters.
22426 (estimate_edge_growth): Update.
22427 (initialize_inline_failed): Declare.
22428 * ipa-split.c: Include ipa-inline.h
22429 (execute_split_functions): Update.
22430 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
22431 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
22432 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
22433 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
22434 estimated_growth to INT_MIN.
22435 (inline_node_duplication_hook): Likewise.
22436 (dump_inline_summary): Dump new fields.
22437 (compute_inline_parameters): Update.
22438 (estimate_edge_time, estimate_time_after_inlining,
22439 estimate_size_after_inlining, estimate_growth, inline_read_summary,
22440 inline_write_summary):
22441 (initialize_inline_failed): Move here from cgraph.c.
22442 * tree-sra.c: Include ipa-inline.h.
22443 (ipa_sra_preliminary_function_checks): Update.
22444 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
22445 ipa-inline.h.
22446
22447 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
22448
22449 * config/i386/sse.md (V16): New mode iterator.
22450 (VI1, VI8): Ditto.
22451 (AVXMODEQI, AVXMODEDI): Remove.
22452 (sse2, sse3): New mode attribute.
22453 (mov<mode>): Use V16 mode iterator.
22454 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
22455 (push<mode>1): Use V16 mode iterator.
22456 (movmisalign<mode>): Ditto.
22457 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
22458 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
22459 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
22460 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
22461 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
22462 avx_movdqu<avxmodesuffix>.
22463 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
22464 *avx_movdqu<avxmodesuffix>.
22465 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
22466 avx_lddqu<avxmodesuffix>.
22467 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
22468 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
22469 avx_movnt<AVXMODEDI:mode>.
22470 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
22471 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
22472
22473 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
22474
22475 PR target/48629
22476 * haifa-sched.c (prune_ready_list, schedule_block): Use
22477 sched_pressure_p rather than flag_sched_pressure.
22478
22479 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
22480
22481 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22482 cgraph_get_node instead of cgraph_get_create_node.
22483
22484 2011-04-15 Jakub Jelinek <jakub@redhat.com>
22485
22486 * cfgexpand.c (expand_debug_expr): Use
22487 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
22488
22489 2011-04-15 Michael Matz <matz@suse.de>
22490
22491 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
22492 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
22493 * function.c (gimplify_parameters): Ditto.
22494 * gimplify.c (gimplify_vla_decl): Ditto.
22495
22496 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
22497 (gimple_call_set_alloca_for_var): New inline function.
22498 (gimple_call_alloca_for_var_p): Ditto.
22499 * gimple.c (gimple_build_call_from_tree): Remember
22500 CALL_ALLOCA_FOR_VAR_P state.
22501 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
22502
22503 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
22504 calls if they were for VLA objects.
22505
22506 2011-04-15 Martin Jambor <mjambor@suse.cz>
22507
22508 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
22509 of ADR_EXPRs.
22510
22511 2011-04-15 Martin Jambor <mjambor@suse.cz>
22512
22513 PR middle-end/48601
22514 * tree-emutls.c (lower_emutls_function_body): Call
22515 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
22516 result is non-NULL.
22517
22518 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
22519
22520 * c-decl.c (detect_field_duplicates): Call
22521 objc_detect_field_duplicates instead of objc_get_interface_ivars.
22522
22523 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
22524
22525 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
22526 * gimple.c (gimple_asm_clobbers_memory_p): Define.
22527 * ipa-pure-const.c (check_stmt): Call it.
22528 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
22529
22530 2011-04-15 Richard Guenther <rguenther@suse.de>
22531
22532 PR tree-optimization/48290
22533 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
22534 Properly decide inhibiting propagation based on the valueized
22535 operand. Do loop-closed SSA form preserving here ...
22536 (init_copy_prop): ... not here.
22537
22538 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
22539
22540 PR target/48612
22541 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
22542 (*ieee_smax<mode>3): Likewise.
22543
22544 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22545
22546 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
22547 Replace match_operand with match_dup for the third operand in
22548 these expanders.
22549
22550 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
22551
22552 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
22553 to track processing of conditionals. Update all callers.
22554 (try_combine, simplify_if_then_else): Update.
22555
22556 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
22557
22558 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
22559 -fsched-pressure.
22560
22561 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
22562
22563 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
22564 instead of match_operand for operand 3.
22565
22566 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
22567
22568 * recog.h (insn_operand_data): Add an "allows_mem" field.
22569 * genoutput.c (output_operand_data): Initialize it.
22570 * optabs.c (maybe_legitimize_operand_same_code): New function.
22571 (maybe_legitimize_operand): Use it when matching the original
22572 op->value.
22573
22574 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
22575
22576 * gimplify.c: Fix issues in comments throughout.
22577 (voidify_wrapper_expr): Fix long line.
22578 (build_stack_save_restore): Likewise.
22579 (gimplify_loop_expr): Likewise.
22580 (gimplify_compound_lval): Likewise.
22581 (gimplify_init_ctor_eval): Likewise.
22582 (gimplify_modify_expr_rhs): Likewise.
22583 (omp_notice_threadprivate_variable): Likewise.
22584
22585 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
22586
22587 * cfgexpand.c (expand_call_stmt): Convert the function type to the
22588 original one if this is not a builtin function.
22589
22590 2011-04-14 Jakub Jelinek <jakub@redhat.com>
22591
22592 PR target/48605
22593 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
22594 offset it as needed based on top 2 bits in operands[3], change
22595 MEM mode to SFmode and mask those 2 bits away from operands[3].
22596
22597 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
22598
22599 * c-parser.c (c_parser_objc_protocol_definition): Updated for
22600 change from objc_declare_protocols() to objc_declare_protocol().
22601
22602 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
22603
22604 * config/i386/sse.md (sse4_1): New mode attribute.
22605 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
22606 avx_blend<ssemodesuffix><avxmodesuffix> and
22607 sse4_1_blend<ssemodesuffix> using VF mode iterator.
22608 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
22609 avx_blendv<ssemodesuffix><avxmodesuffix> and
22610 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
22611 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
22612 avx_dp<ssemodesuffix><avxmodesuffix> and
22613 sse4_1_dp<ssemodesuffix> using VF mode iterator.
22614 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
22615 (sse4_1_packusdw): Merge with *avx_packusdw.
22616 (sse4_1_pblendvb): Merge with *avx_pblendvb.
22617 (sse4_1_pblendw): Merge with *avx_pblendw.
22618 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
22619 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
22620 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
22621 VF mode iterator.
22622 (sse4_1_round<ssescalarmodesuffix>): Merge with
22623 *avx_round<ssescalarmodesuffix>.
22624 (aesenc): Merge with *avx_aesenc.
22625 (aesenclast): Merge with *avx_aesenclast.
22626 (aesdec): Merge with *avx_aesdec.
22627 (aesdeclast): Merge with *avx_aesdeclast.
22628 (pclmulqdq): Merge with *pclmulqdq.
22629 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
22630 New predicate.
22631 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
22632
22633 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
22634
22635 PR middle-end/48608
22636 * cfgexpand.c (get_decl_align_unit): Renamed to ...
22637 (align_local_variable): This. Update DECL_ALIGN.
22638 (add_stack_var): Updated.
22639 (expand_one_stack_var): Likewise.
22640
22641 2011-04-14 Richard Guenther <rguenther@suse.de>
22642
22643 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
22644 Remove.
22645 (dse_initialize_block_local_data, dse_leave_block,
22646 record_voperand_set, get_stmt_uid): Likewise.
22647 (dse_possible_dead_store_p): Allow any kind of killing stmt.
22648 (dse_optimize_stmt): Remove voperand set handling code.
22649 Simplify and improve to handle any kind of killing stmt.
22650 (dse_record_phi): Remove.
22651 (dse_enter_block): Simplify.
22652 (tree_ssa_dse): Likewise.
22653 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
22654
22655 2011-04-14 Jan Hubicka <jh@suse.cz>
22656
22657 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
22658 * cgraph.h (struct inline_summary): Move to ipa-inline.h
22659 (cgraph_local_info): Remove inline_summary.
22660 * ipa-cp.c: Include ipa-inline.h.
22661 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
22662 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
22663 accesor.
22664 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
22665 (input_overwrite_node): Do not set inline summary.
22666 (input_node): Do not stream inline summary.
22667 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
22668 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
22669 growth; we do not have inline parameters computed for that anyway.
22670 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
22671 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
22672 (inline_summary_t): New type and VECtor.
22673 (debug_inline_summary, dump_inline_summaries): Declare.
22674 (inline_summary): Use VOCtor.
22675 (estimate_edge_growth): Kill hack computing call stmt size directly.
22676 * lto-section-in.c (lto_section_name): Add inline section.
22677 * ipa-inline-analysis.c: Include lto-streamer.h
22678 (node_removal_hook_holder, node_duplication_hook_holder): New holders
22679 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
22680 (inline_summary_vec): Define.
22681 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
22682 dump_inline_summaries): New functions.
22683 (estimate_function_body_sizes): Properly compute size/time of outgoing
22684 calls.
22685 (compute_inline_parameters): Alloc inline_summary; do not compute
22686 size/time of incomming calls.
22687 (estimate_edge_time): Avoid missing time summary hack.
22688 (inline_read_summary): Read inline summary info.
22689 (inline_write_summary): Write inline summary info.
22690 (inline_free_summary): Free all hooks and inline summary vector.
22691 * lto-streamer.h: Add LTO_section_inline_summary section.
22692 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
22693 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
22694
22695 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22696
22697 * tree-vectorizer.h (vect_strided_store_supported): Add a
22698 HOST_WIDE_INT argument.
22699 (vect_strided_load_supported): Likewise.
22700 (vect_permute_store_chain): Return void.
22701 (vect_transform_strided_load): Likewise.
22702 (vect_permute_load_chain): Delete.
22703 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
22704 count argument. Check that the count is a power of two.
22705 (vect_strided_load_supported): Likewise.
22706 (vect_permute_store_chain): Return void. Update after above changes.
22707 Assert that the access is supported.
22708 (vect_permute_load_chain): Likewise.
22709 (vect_transform_strided_load): Return void.
22710 * tree-vect-stmts.c (vectorizable_store): Update calls after
22711 above interface changes.
22712 (vectorizable_load): Likewise.
22713 (vect_analyze_stmt): Don't check for strided powers of two here.
22714
22715 2011-04-14 Richard Guenther <rguenther@suse.de>
22716
22717 PR tree-optimization/48590
22718 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22719 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22720 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
22721 BUILT_IN_STACK_SAVE.
22722 * tree-ssa-dce.c (propagate_necessity): Handle
22723 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22724
22725 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
22726
22727 * c-parser.c (c_parser_objc_class_declaration): Updated call to
22728 objc_declare_class.
22729
22730 2011-04-14 Richard Guenther <rguenther@suse.de>
22731
22732 * tree.h (get_object_alignment_1): Declare.
22733 * builtins.c (get_object_alignment_1): Split out worker from ...
22734 (get_object_alignment): ... here.
22735 * fold-const.c (get_pointer_modulus_and_residue): Use
22736 get_object_alignment_1.
22737
22738 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22739
22740 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
22741 type parameter.
22742 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
22743 parameter. Generalise code to handle arrays as well as vectors.
22744 (vect_setup_realignment): Update accordingly.
22745 * tree-vect-stmts.c (vectorizable_store): Likewise.
22746 (vectorizable_load): Likewise.
22747
22748 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22749
22750 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
22751 within the per-copy loop.
22752
22753 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22754
22755 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
22756 in the dump file.
22757
22758 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22759
22760 * doc/options.texi (Negative): Explicitly mention that the
22761 Negative chain must be circular.
22762
22763 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
22764
22765 * function.h (block_chainon): Declare.
22766 * function.c (block_chainon): Define.
22767
22768 2011-04-14 Anatoly Sokolov <aesok@post.ru>
22769 Eric Weddington <eric.weddington@atmel.com>
22770 Georg-Johann Lay <avr@gjlay.de>
22771
22772 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
22773 New Includes
22774 (avr_init_builtins, avr_expand_builtin,
22775 avr_expand_delay_cycles, avr_expand_unop_builtin,
22776 avr_expand_binop_builtin ): New functions.
22777 (avr_builtin_id): New enum
22778 (struct avr_builtin_description): New struct
22779 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
22780 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
22781
22782 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
22783 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
22784 UNSPECV_DELAY_CYCLES): new enumeration values
22785 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
22786 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
22787 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
22788 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22789 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
22790 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
22791 "fmulsu"): New insns
22792
22793 * config/avr/avr-c.c: fix line endings
22794 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
22795 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
22796 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
22797 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
22798 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
22799
22800 * doc/extend.texi (AVR Built-in Functions): New node
22801 (Target Builtins): Add documentation of AVR
22802 built-in functions.
22803
22804 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
22805
22806 PR target/44643
22807 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
22808 alone. Error if non-const data has attribute progmem.
22809
22810 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22811
22812 * tree.h (struct tree_constructor): Include tree_typed instead of
22813 tree_common.
22814 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22815 TS_TYPED instead of TS_COMMON.
22816
22817 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
22818
22819 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22820 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22821 (sse2_psadbw): Merge with *avx_psadbw.
22822 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22823 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22824 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22825 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22826 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22827 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22828 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22829 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22830 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22831 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22832 (ssse3_palignrti): Merge with *avx_palignrti.
22833
22834 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22835
22836 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22837 * tree-ssanames.c (fini_ssanames): VEC_free it.
22838 (make_ssa_name_fn): Update for VECness of free_ssanames.
22839 (release_ssa_name, release_dead_ssa_names): Likewise.
22840 * tree.h (struct tree_ssa_name): Include tree_typed instead of
22841 tree_common.
22842 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22843 TS_TYPED instead of TS_COMMON.
22844
22845 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22846
22847 * postreload-gcse.c (gcse_after_reload_main): Add calls to
22848 statistics_counter_event.
22849 * tree-ssa-copyrename.c (stats): Define.
22850 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
22851 statistics_counter_event.
22852 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22853 (bswap_stats, widen_mul_stats): Define.
22854 (insert_reciprocals): Increment rdivs_inserted.
22855 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
22856 rfuncs_inserted. Add calls to statistics_counter_event.
22857 (execute_cse_sincos_1): Increment inserted.
22858 (execute_cse_sincos): Zeroize sincos_stats. Add call to
22859 statistics_counter_event.
22860 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
22861 of bswap_stats. Add calls to statistics_counter_event.
22862 (convert_mult_to_widen): Increment widen_mults_inserted.
22863 (convert_plusminus_to_widen): Increment maccs_inserted.
22864 (convert_mult_to_fma): Increment fmas_inserted.
22865 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
22866 calls to statistics_counter_event.
22867
22868 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
22869
22870 PR rtl-optimization/48455
22871 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22872 `temp_costs->mem_cost'.
22873
22874 2011-04-13 Jan Hubicka <jh@suse.cz>
22875
22876 * ipa-inline.h: New file.
22877 * ipa-inline-analysis.c: New file. Broken out of ...
22878 * ipa-inline.c: ... this file; update toplevel comment;
22879 include ipa-inline.h
22880 (inline_summary): Move to ipa-inline.h
22881 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22882 ipa-inline-analysis.c.
22883 (cgraph_estimate_time_after_inlining): Rename to
22884 estiamte_time_after_inlining; move to ipa-inline-analysis.c
22885 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22886 to estimate_edge_growth.
22887 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22888 rename to estimate_size_after_inlining.
22889 (cgraph_mark_inline_edge): Update for new naming convention.
22890 (cgraph_check_inline_limits): Likewise.
22891 (cgraph_edge_badness): Likewise.
22892 (cgraph_decide_recursive_inlining): Likewise.
22893 (cgraph_decide_inlining_of_small_functions): Likewise.
22894 (cgraph_decide_inlining_incrementally): Likewise.
22895 (cgraph_estimate_growth): Rename to estimate_growth; move to
22896 ipa-inline-analysis.c.
22897 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22898 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22899 (compute_inline_parameters): Likewise.
22900 (compute_inline_parameters_for_current): Likewise.
22901 (pass_inline_parameters): Likewise.
22902 (inline_indirect_intraprocedural_analysis): Likewise.
22903 (analyze_function): Rename to inline_analyze_function; likewise.
22904 (add_new_function): Move to ipa-inline-analysis.c.
22905 (inline_generate_summary): Likewise.
22906 (inline_read_summary): Likewise.
22907 (inline_write_summary): Likewise.
22908 * Makefile.in (ipa-inline-analysis.c): New file.
22909
22910 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22911
22912 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22913 * configure: Regenerate.
22914
22915 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22916
22917 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22918 instead of tree_common.
22919 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22920 Likewise.
22921 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22922 TS_TYPED rather than TS_COMMON.
22923 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22924
22925 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
22926
22927 PR target/45263
22928 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22929 r20 around calls of __tablejump_elpm__
22930
22931 2011-04-13 Jakub Jelinek <jakub@redhat.com>
22932
22933 PR middle-end/48591
22934 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22935 NULL.
22936 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22937
22938 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
22939
22940 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22941 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22942 (cfi_vec): New typedef.
22943 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22944 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22945 (cie_cfi_vec): New static variable.
22946 (cie_cfi_head): Delete.
22947 (add_cfi): Accept a cfi_vec * as first argument. All callers and
22948 declaration changed. Use vector rather than list operations.
22949 (new_cfi): Don't initialize the dw_cfi_next field.
22950 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22951 rather than list operations.
22952 (lookup_cfa): Use vector rather than list operations.
22953 (output_cfis): New argument upto. Accept a cfi_vec rather than
22954 a dw_cfi_ref list head as argument. All callers changed.
22955 Iterate over the vector using upto as a maximum index.
22956 (output_all_cfis): New static function.
22957 (output_fde): Use vector rather than list operations. Use the
22958 new upto argument for output_cfis rather than manipulating a
22959 list.
22960 (dwarf2out_begin_prologue): Change initializations to match
22961 new struct members.
22962 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22963 from the vector length rather than searching for the end of a list.
22964 Use output_all_cfis.
22965 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22966
22967 2011-04-13 Nick Clifton <nickc@redhat.com>
22968
22969 * config/rx/rx.md (movmemsi): Do not use this pattern when
22970 volatile pointers are involved.
22971
22972 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
22973
22974 * config/i386/sse.md (pinsrbits): Remove.
22975 (sse2_packsswb): Merge with *avx_packsswb.
22976 (sse2_packssdw): Merge with *avx_packssdw.
22977 (sse2_packuswb): Merge with *avx_packuswb.
22978 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22979 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22980 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22981 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22982 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22983 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22984 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22985 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22986 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22987 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22988 (sse2_loadld): Merge with *avx_loadld.
22989 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22990 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22991 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22992 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22993 (vec_concatv2di): Merge with *vec_concatv2di_avx.
22994
22995 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
22996
22997 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22998 calling TREE_CHAIN.
22999 * print-tree.c (print_node): Likewise.
23000 * tree-inline.c (copy_tree_r): Likewise.
23001 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
23002 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
23003 instead of TS_COMMON.
23004 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
23005 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
23006 (copy_node_stat): Zero TREE_CHAIN only if necessary.
23007 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
23008 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
23009 ...and these...
23010 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
23011 * tree.h: ...here.
23012 (TREE_CHAIN): Check for a TS_COMMON structure.
23013 (TREE_TYPE): Check for a TS_TYPED structure.
23014
23015 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
23016
23017 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23018 cgraph_get_create_node instead of cgraph_node.
23019
23020 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23021
23022 * c-parser.c (c_parser_initelt): Updated call to
23023 objc_build_message_expr.
23024 (c_parser_postfix_expression): Likewise.
23025
23026 2011-04-12 Kai Tietz <ktietz@redhat.com>
23027
23028 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
23029 MASK_MS_BITFIELD_LAYOUT bit.
23030
23031 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23032
23033 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
23034 assert it is always true.
23035 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
23036 moves.
23037
23038 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23039
23040 * c-parser.c (c_lex_one_token): Rewritten conditional used when
23041 compiling Objective-C to be more efficient.
23042
23043 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
23044
23045 * opts-common.c (decode_cmdline_options_to_array): Remove variable
23046 argv_copied.
23047
23048 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23049
23050 * recog.h, genoutput.c, optabs.c: Revert last patch.
23051
23052 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23053
23054 PR target/48090
23055 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
23056
23057 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23058
23059 * recog.h (insn_operand_data): Add an "allows_mem" field.
23060 * genoutput.c (output_operand_data): Initialize it.
23061 * optabs.c (maybe_legitimize_operand_same_code): New function.
23062 (maybe_legitimize_operand): Use it when matching the original
23063 op->value.
23064
23065 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23066
23067 * genpreds.c (process_define_predicate): Move most processing
23068 to gensupport.c. Continue to validate the expression.
23069 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
23070 (process_define_predicate): Move processing to gensupport.c.
23071 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
23072 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
23073 (compute_predicate_codes): Moved from genrecog.c. Add lineno
23074 argument.
23075 (valid_predicate_name_p): New function, split out from old
23076 genpreds.c:process_define_predicate.
23077 (process_define_predicate): New function, combining code from
23078 old genpreds.c and genrecog.c functions.
23079 (process_rtx): Call it for DEFINE_PREDICATE and
23080 DEFINE_SPECIAL_PREDICATE.
23081
23082 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23083
23084 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
23085 size of a '%A' memory reference.
23086 (T_DREG, T_QREG): New neon_builtin_type_bits.
23087 (arm_init_neon_builtins): Assert that the load and store operands
23088 are neon_struct_operands.
23089 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
23090 (NEON_ARG_MEMORY): New builtin_arg.
23091 (neon_dereference_pointer): New function.
23092 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
23093 Handle NEON_ARG_MEMORY.
23094 (arm_expand_neon_builtin): Update after above interface changes.
23095 Use NEON_ARG_MEMORY for loads and stores.
23096 * config/arm/predicates.md (neon_struct_operand): New predicate.
23097 * config/arm/iterators.md (V_two_elem): Tweak formatting.
23098 (V_three_elem): Use BLKmode for accesses that have no associated mode.
23099 (V_four_elem): Tweak formatting.
23100 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
23101 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
23102 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
23103 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
23104 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
23105 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
23106 (neon_vst4<mode>): Replace pointer operand with a memory operand.
23107 Use %A in the output template.
23108 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
23109 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
23110 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
23111 the width of the memory access. Remove post-increment.
23112 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
23113
23114 2011-04-12 Nick Clifton <nickc@redhat.com>
23115
23116 * config/v850/v850.c (expand_prologue): Do not use the CALLT
23117 instruction for interrupt handlers if the target is the basic V850
23118 architecture.
23119 (expand_epilogue): Likewise.
23120
23121 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23122
23123 PR rtl-optimization/48549
23124 * combine.c (propagate_for_debug): Also stop after BB_END of
23125 this_basic_block. Process LAST and just stop processing after it.
23126 (combine_instructions): If last_combined_insn has been deleted,
23127 set last_combined_insn to its PREV_INSN.
23128
23129 2011-04-12 Richard Guenther <rguenther@suse.de>
23130
23131 PR tree-optimization/46076
23132 * gimple.h (struct gimple_statement_call): Add fntype field.
23133 (gimple_call_fntype): Adjust.
23134 (gimple_call_set_fntype): New function.
23135 * gimple.c (gimple_build_call_1): Set the call function type.
23136 * gimplify.c (gimplify_call_expr): Preserve the function
23137 type the frontend used for the call.
23138 (gimplify_modify_expr): Likewise.
23139 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
23140 function type.
23141 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
23142 function type.
23143 * tree-ssa.c (useless_type_conversion_p): Function pointer
23144 conversions are useless.
23145
23146 2011-04-12 Martin Jambor <mjambor@suse.cz>
23147
23148 * cgraph.h (cgraph_node): Remove function declaration.
23149 (cgraph_create_node): Declare.
23150 (cgraph_get_create_node): Likewise.
23151 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
23152 Updated all callers.
23153 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
23154 the decl does not already exist. Call cgraph_get_create_node instead
23155 of cgraph_node.
23156 (cgraph_get_create_node): New function.
23157 (cgraph_same_body_alias): Update comment.
23158 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
23159 assert it does not return NULL.
23160 (cgraph_update_edges_for_call_stmt): Likewise.
23161 (cgraph_clone_edge): Likewise.
23162 (cgraph_create_virtual_clone): Likewise.
23163 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
23164 instead of cgraph_node.
23165 (cgraph_add_new_function): Call cgraph_create_node or
23166 cgraph_get_create_node instead of cgraph_node.
23167 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
23168 instead of cgraph_node.
23169 (record_eh_tables): Likewise.
23170 (mark_address): Likewise.
23171 (mark_load): Likewise.
23172 (build_cgraph_edges): Call cgraph_get_create_node instead
23173 of cgraph_node.
23174 (rebuild_cgraph_edges): Likewise.
23175 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
23176 instead of cgraph_node.
23177 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
23178 cgraph_node.
23179 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
23180 cgraph_create_node instead of cgraph_node.
23181 * c-decl.c (finish_function): Call cgraph_get_create_node instead
23182 of cgraph_node.
23183 * lto-cgraph.c (input_node): Likewise.
23184 * lto-streamer-in.c (input_function): Likewise.
23185 * varasm.c (mark_decl_referenced): Likewise.
23186 (assemble_alias): Likewise.
23187
23188 2011-04-12 Martin Jambor <mjambor@suse.cz>
23189
23190 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
23191 instead of cgraph_node and assert it does not return NULL.
23192 * lto-streamer-in.c (lto_read_body): Likewise.
23193 * omp-low.c (new_omp_context): Likewise.
23194 (create_task_copyfn): Likewise.
23195 * tree-emutls.c (lower_emutls_function_body): Likewise.
23196 * matrix-reorg.c (transform_allocation_sites): Likewise.
23197
23198 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23199
23200 PR c/48552
23201 * c-typeck.c (build_asm_expr): Error out on attempts to use
23202 void type outputs or inputs for constraints that allow reg or
23203 don't allow memory.
23204
23205 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
23206 Richard Earnshaw <rearnsha@arm.com>
23207
23208 PR target/48250
23209 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
23210 to use sign-magnitude offsets. Reject unsupported unaligned
23211 cases. Add detailed description in comments.
23212 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
23213 condition from TARGET_32BIT to TARGET_ARM.
23214
23215 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
23216
23217 * tree.h (struct typed_tree): New.
23218 (struct tree_common): Include it instead of tree_base.
23219 (TREE_TYPE): Update for new location of type field.
23220 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
23221 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
23222 (union tree_node): Add typed field.
23223 * treestruct.def (TS_TYPED): New.
23224 * lto-streamer.c (check_handled_ts_structures): Handle it.
23225 * tree.c (MARK_TS_TYPED): New macro.
23226 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
23227
23228 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
23229
23230 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
23231 (force_nonfallthru): Do not alter the loop nest if no basic block
23232 was created.
23233
23234 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
23235
23236 * config/i386/sse.md (VI): New mode iterator.
23237 (SSEMODEI): Remove.
23238 (AVX256MODEI): Ditto.
23239 (AVXMODEF4P): Ditto.
23240 (avxvecpsmode): Ditto.
23241 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
23242 (sse2_andnot<mode>3): New expander.
23243 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
23244 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
23245 (<any_logic:code><mode>3): Use VI mode iterator.
23246 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
23247 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
23248 (*andnottf3): Handle AVX three-operand constraints.
23249 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
23250
23251 2011-04-11 Joseph Myers <joseph@codesourcery.com>
23252 Robert Millan <rmh@gnu.org>
23253
23254 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
23255 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
23256 GNU_USER_DYNAMIC_LINKER64): Define.
23257 (REG_NAME): Don't undefine.
23258 (MD_UNWIND_SUPPORT): Undefine.
23259 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
23260 (REG_NAME): Don't undefine.
23261 (MD_UNWIND_SUPPORT): Undefine.
23262 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
23263
23264 2011-04-11 Joseph Myers <joseph@codesourcery.com>
23265
23266 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
23267 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
23268
23269 2011-04-11 Xinliang David Li <davidxl@google.com>
23270
23271 * value-profile.c (check_ic_target): New function.
23272 (gimple_ic_transform): Sanity check indirect call target.
23273 * gimple-low.c (gimple_check_call_args): Interface change.
23274 (gimple_check_call_matching_types): New function.
23275 * tree-inline.c (tree_can_inline_p): Call new function.
23276
23277 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
23278
23279 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
23280 tree-pretty-print.h & realmpfr.h.
23281
23282 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
23283
23284 PR middle-end/48464
23285 * ira.c (setup_pressure_classes): Fix typo in loop condition.
23286 (setup_allocno_and_important_classes): Ditto.
23287
23288 2011-04-11 Joseph Myers <joseph@codesourcery.com>
23289
23290 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
23291 GNU_USER_DYNAMIC_LINKER.
23292 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
23293 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23294 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
23295 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
23296 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
23297 GNU_USER_TARGET_OS_CPP_BUILTINS.
23298 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
23299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23300 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
23301 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23302 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
23303 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
23304 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
23305 GNU_USER_TARGET_OS_CPP_BUILTINS.
23306 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23307 GNU_USER_DYNAMIC_LINKER.
23308 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
23309 GNU_USER_TARGET_OS_CPP_BUILTINS.
23310 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
23311 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23312 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
23313 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23314 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
23315 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
23316 GNU_USER_DYNAMIC_LINKER64): Remove.
23317 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
23318 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23319 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23320 GNU_USER_DYNAMIC_LINKER.
23321 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
23322 GNU_USER_TARGET_OS_CPP_BUILTINS.
23323 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
23324 GNU_USER_TARGET_OS_CPP_BUILTINS.
23325 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
23326 to GNU_USER_TARGET_OS_CPP_BUILTINS.
23327 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
23328 GNU_USER_TARGET_OS_CPP_BUILTINS.
23329 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
23330 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
23331 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
23332 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
23333 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23334 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23335 GNU_USER_DYNAMIC_LINKER.
23336 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
23337 GNU_USER_TARGET_OS_CPP_BUILTINS.
23338 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
23339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23340 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23341 GNU_USER_DYNAMIC_LINKER.
23342 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
23343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23344 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
23345 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23346 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23347 GNU_USER_DYNAMIC_LINKER.
23348 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
23349 GNU_USER_DYNAMIC_LINKERN32.
23350 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
23351 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
23352 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
23353 GNU_USER_DYNAMIC_LINKER32.
23354 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
23355 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23356 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23357 GNU_USER_DYNAMIC_LINKER.
23358 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
23359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23360 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
23361 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23362 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
23363 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
23364 GNU_USER_DYNAMIC_LINKER32.
23365 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
23366 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
23367 GNU_USER_DYNAMIC_LINKER.
23368 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
23369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23370 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
23371 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
23372 GNU_USER_DYNAMIC_LINKER64.
23373 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
23374 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23375 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23376 GNU_USER_DYNAMIC_LINKER.
23377 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
23378 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23379 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
23380 GNU_USER_DYNAMIC_LINKER.
23381 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
23382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23383 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
23384 GNU_USER_DYNAMIC_LINKER32.
23385 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
23386 GNU_USER_DYNAMIC_LINKER64.
23387 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
23388 GNU_USER_DYNAMIC_LINKER64.
23389 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
23390 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23391 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
23392 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
23393 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
23394
23395 2011-04-11 Joseph Myers <joseph@codesourcery.com>
23396
23397 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
23398 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
23399 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
23400 GNU_USER_DYNAMIC_LINKER.
23401 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
23402 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
23403 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
23404 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
23405 GNU_USER_DYNAMIC_LINKER64.
23406 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
23407 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
23408 GNU_USER_LINK_EMULATION.
23409 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
23410 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
23411 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
23412 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
23413 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
23414 CPP_SPEC, CC1_SPEC): Remove.
23415 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
23416 (GNU_USER_DYNAMIC_LINKER): Define.
23417 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
23418 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
23419 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
23420 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
23421 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
23422 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
23423 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
23424 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
23425 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
23426 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
23427 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
23428 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
23429 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
23430 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
23431 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
23432 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
23433 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
23434 GNU_USER_DYNAMIC_LINKER.
23435 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
23436 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
23437 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
23438 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
23439 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
23440 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
23441 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
23442 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
23443 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
23444 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
23445
23446 2011-04-11 Kai Tietz <ktietz@redhat.com>
23447
23448 PR target/9601
23449 PR target/11772
23450 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
23451 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
23452 comment.
23453 (ix86_is_msabi_thiscall): Removed.
23454 (ix86_is_type_thiscall): Likewise.
23455 (ix86_get_callcvt): New function.
23456 (ix86_comp_type_attributes): Simplify check.
23457 (ix86_function_regparm): Use ix86_get_callcvt for calling
23458 convention attribute checks.
23459 (ix86_return_pops_args): Likewise.
23460 (ix86_static_chain): Likewise.
23461 (x86_this_parameter): Likewise.
23462 (x86_output_mi_thunk): Likewise.
23463 (ix86_function_type_abi): Optimize check for types without attributes.
23464 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
23465 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
23466 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
23467 by flag-values.
23468 (IX86_BASE_CALLCVT): Helper macro.
23469 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
23470 Use ix86_get_callcvt for calling convention attribute checks and avoid
23471 symbol-decoration for stdcall in TARGET_RTD case.
23472 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
23473 Likewise.
23474 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
23475 for declaration.
23476
23477 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
23478
23479 * config/i386/sse.md (VI_128): New mode iterator.
23480 (VI12_128): Rename from SSEMODE12.
23481 (VI14_128): Rename from SSEMODE14.
23482 (VI124_128): New mode iterator.
23483 (VI24_128): Rename from SSEMODE248.
23484 (VI248_128): Rename from SSEMODE248.
23485 (SSEMODE124C8): Remove.
23486 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23487 (*sse2_<plusminus_insn><mode>3): Merge with
23488 *avx_<plusminus_insn><mode>3.
23489 (*mulv8hi3): Merge with *avx_mulv8hi3.
23490 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
23491 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
23492 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
23493 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
23494 (ashr<mode>3): Merge with *avx_ashr<mode>3.
23495 (lshr<mode>3): Merge with *avx_lshr<mode>3.
23496 (ashl<mode>3): Merge with *avx_ashl<mode>3.
23497 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
23498 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
23499 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23500 (*<smaxmin:code>v8hi3): Ditto.
23501 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
23502 (*<smaxmin:code>v16qi3): Ditto.
23503 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
23504 (*sse2_eq<mode>3): Ditto.
23505 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
23506 (*sse2_gt<mode>3): Ditto.
23507 (vcondv2di): Split out of vcond<mode>.
23508 (vconduv2di): Split out of vcondu<mode>.
23509
23510 2011-04-11 Richard Guenther <rguenther@suse.de>
23511
23512 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
23513 before calling tree_low_cst.
23514
23515 2011-04-11 Richard Guenther <rguenther@suse.de>
23516
23517 * stor-layout.c (layout_type): Compute all array index size operations
23518 in the original type.
23519 (initialize_sizetypes): Add comment.
23520 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
23521
23522 2011-04-11 Joseph Myers <joseph@codesourcery.com>
23523
23524 * common.opt (Tbss=, Tdata=, Ttext=): New options.
23525
23526 2011-04-11 Martin Jambor <mjambor@suse.cz>
23527
23528 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
23529 of cgraph_node, handle NULL return value.
23530 (cgraph_global_info): Likewise.
23531 (cgraph_rtl_info): Likewise.
23532 * tree-inline.c (estimate_num_insns): Likewise.
23533 * gimplify.c (unshare_body): Likewise.
23534 (unvisit_body): Likewise.
23535 (gimplify_body): Likewise.
23536 * predict.c (optimize_function_for_size_p): Likewise.
23537 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23538 (call_may_clobber_ref_p_1): Likewise.
23539 * varasm.c (function_section_1): Likewise.
23540 (assemble_start_function): Likewise.
23541
23542 2011-04-11 Martin Jambor <mjambor@suse.cz>
23543
23544 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
23545 of cgraph_node.
23546 * final.c (rest_of_clean_state): Likewise.
23547 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
23548 * passes.c (pass_init_dump_file): Likewise.
23549 (execute_all_ipa_transforms): Likewise.
23550 (function_called_by_processed_nodes_p): Likewise.
23551 * predict.c (maybe_hot_frequency_p): Likewise.
23552 (probably_never_executed_bb_p): Likewise.
23553 (compute_function_frequency): Likewise.
23554 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
23555 (unnest_nesting_tree_1): Likewise.
23556 (lower_nested_functions): Likewise.
23557 * tree-optimize.c (execute_fixup_cfg): Likewise.
23558 (tree_rest_of_compilation): Likewise.
23559 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
23560 * tree-sra.c (ipa_early_sra): Likewise.
23561 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23562 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
23563 * ipa.c (record_cdtor_fn): Likewise.
23564 * ipa-inline.c (cgraph_early_inlining): Likewise.
23565 (compute_inline_parameters_for_current): Likewise.
23566 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
23567 * ipa-pure-const.c (local_pure_const): Likewise.
23568 * ipa-split.c (split_function): Likewise.
23569 (execute_split_functions): Likewise.
23570 * cgraphbuild.c (build_cgraph_edges): Likewise.
23571 (rebuild_cgraph_edges): Likewise.
23572 (cgraph_rebuild_references): Likewise.
23573 (remove_cgraph_callee_edges): Likewise.
23574 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
23575 (verify_cgraph_node): Likewise.
23576 (cgraph_analyze_functions): Likewise.
23577 (cgraph_preserve_function_body_p): Likewise.
23578 (save_inline_function_body): Likewise.
23579 (save_inline_function_body): Likewise.
23580 * tree-inline.c (copy_bb): Likewise.
23581 (optimize_inline_calls): Likewise.
23582
23583 2011-04-11 Martin Jambor <mjambor@suse.cz>
23584
23585 PR tree-optimization/48195
23586 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
23587 ipa_check_create_edge_args.
23588 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
23589 ipa_check_create_edge_args.
23590 * ipa-inline.c (inline_generate_summary): Do not call
23591 ipa_check_create_node_params and ipa_check_create_edge_args.
23592 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
23593 ipa_check_create_edge_args.
23594
23595 2011-04-09 Anatoly Sokolov <aesok@post.ru>
23596
23597 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
23598 instead of loop.
23599 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23600 * function.c (record_hard_reg_sets): Likewise.
23601 * ira.c (compute_regs_asm_clobbered): Likewise.
23602 * sched-deps.c (sched_analyze_1): Likewise.
23603 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
23604
23605 2011-04-09 Xinliang David Li <davidxl@google.com>
23606
23607 PR tree-optimization/PR48484
23608 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
23609 has_valid_pred lazily
23610
23611 2011-04-09 Duncan Sands <baldrick@free.fr>
23612
23613 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
23614
23615 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
23616
23617 * combine.c (combine_validate_cost): Adjust comments. Set registered
23618 cost of I0 to zero at the end, if any.
23619
23620 2011-04-08 Xinliang David Li <davidxl@google.com>
23621
23622 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
23623 to insane profile data.
23624
23625 2011-04-08 Xinliang David Li <davidxl@google.com>
23626
23627 * ipa-cp.c (ipcp_update_profiling): Correct
23628 negative scale factor due to insane profile data.
23629
23630 2011-04-08 Xinliang David Li <davidxl@google.com>
23631
23632 * final.c (dump_basic_block_info): New function.
23633 (final): Dump basic block.
23634 (final_scan_insn): Remove old dump.
23635
23636 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
23637
23638 PR target/47829
23639 * config.gcc (i386-*-freebsd): Disable unwind table generation for
23640 crtbegin/crtend.
23641
23642 2011-04-08 Michael Matz <matz@suse.de>
23643
23644 PR middle-end/48389
23645 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
23646 functions.
23647 (rebuild_jump_labels): Call rebuild_jump_labels_1.
23648 * rtl.h (rebuild_jump_labels_chain): Declare.
23649 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
23650 insns inserted on edges.
23651
23652 2011-04-08 Joseph Myers <joseph@codesourcery.com>
23653
23654 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
23655 * config/arm/arm-arches.def: New.
23656 * config/arm/arm-opts.h: New.
23657 * config/arm/genopt.sh: New.
23658 * config/arm/arm-tables.opt: New (generated).
23659 * config/arm/arm.c (arm_handle_option, arm_target_help,
23660 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
23661 (all_architectures): Get most table contents from arm-arches.def.
23662 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
23663 arm_selected_tune here.
23664 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
23665 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
23666 (march=, mcpu=, mtune=): Use Enum and Var.
23667 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
23668 (arm.o): Update dependencies.
23669
23670 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
23671
23672 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
23673 of header_file.
23674 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
23675 (write_typed_alloc_defns): Likewise.
23676 (main): Calls write_typed_alloc_defns with output_header.
23677
23678 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
23679
23680 PR inline-asm/48435
23681 * ira-color.c (setup_profitable_hard_regs): Add comments.
23682 Don't take prohibited hard regs into account.
23683 (setup_conflict_profitable_regs): Rename to
23684 get_conflict_profitable_regs.
23685 (check_hard_reg_p): Check prohibited hard regs.
23686
23687 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
23688
23689 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
23690 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
23691 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
23692
23693 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23694
23695 PR target/48366
23696 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
23697 move from floating point to shift amount register.
23698 (emit_move_sequence): Remove secondary reload support for floating
23699 point to shift amount amount register copies.
23700 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
23701 amount register copies.
23702 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
23703 register, return false if mode isn't a scalar integer mode.
23704 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
23705
23706 2011-04-08 Richard Guenther <rguenther@suse.de>
23707
23708 * gimple.c (gimple_call_flags): Remove kludge.
23709
23710 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23711
23712 * sel-sched.c (sel_region_init): Move call to
23713 sel_setup_region_sched_flags after setup_current_loop_nest.
23714
23715 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
23716
23717 PR rtl-optimization/48272
23718 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
23719 init_insn_reg_pressure_info. Adjust a caller.
23720 * sched-int.h (init_insn_reg_pressure_info): Declare.
23721 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
23722 when sched-pressure is enabled.
23723
23724 2011-04-08 Richard Guenther <rguenther@suse.de>
23725
23726 * gimple.c (gimple_set_modified): Do not queue calls to
23727 MODIFIED_NORETURN_CALLS here ...
23728 * tree-ssa-operands.c (update_stmt_operands): ... but here.
23729
23730 2011-04-08 Richard Guenther <rguenther@suse.de>
23731
23732 PR lto/48467
23733 * toplev.c (lang_dependent_init): Do not open asm_out_file
23734 in WPA mode, nor perform debug machinery initialization.
23735 (finalize): Do not unlink asm_out_file in WPA mode.
23736
23737 2011-04-08 Richard Guenther <rguenther@suse.de>
23738
23739 * gimple.h (gimple_call_fntype): New function.
23740 (gimple_call_return_type): Use it.
23741 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
23742 * gimple-low.c (gimple_check_call_args): Likewise.
23743 * gimple.c (gimple_call_flags): Likewise.
23744 (gimple_call_arg_flags): Likewise.
23745 (gimple_call_return_flags): Likewise.
23746 * tree-cfg.c (verify_gimple_call): Likewise.
23747 (do_warn_unused_result): Likewise.
23748 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
23749 * value-prof.c (gimple_ic_transform): Fix fndecl check.
23750
23751 2011-04-08 Dmitry Melnik <dm@ispras.ru>
23752
23753 PR rtl-optimization/48235
23754 * sel-sched.c (code_motion_process_successors): Recompute the last
23755 insn in basic block if control flow changed.
23756 (code_motion_path_driver): Ditto. Recompute the first insn as well.
23757 Update condition for ilist_remove.
23758
23759 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23760
23761 PR rtl-optimization/48302
23762 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
23763 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
23764 it to record added preheader blocks.
23765 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
23766 on to sel_add_loop_preheaders.
23767 (sel_region_init): Move call to setup_current_loop_nest after
23768 sel_init_bbs.
23769
23770 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23771
23772 PR target/48273
23773 * cfgloop.h (loop_has_exit_edges): New helper.
23774 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
23775 non-clonable.
23776 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
23777 that have no exit edges.
23778
23779 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23780
23781 PR rtl-optimization/48442
23782 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
23783 all callers. Adjust assert.
23784
23785 2011-04-08 Jakub Jelinek <jakub@redhat.com>
23786
23787 PR tree-optimization/48377
23788 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
23789 is_packed to true even for types with smaller TYPE_ALIGN than
23790 TYPE_SIZE.
23791
23792 2011-04-08 Richard Guenther <rguenther@suse.de>
23793
23794 PR bootstrap/48513
23795 * doc/tm.texi: Re-generate.
23796
23797 2011-04-08 Wei Guozhi <carrot@google.com>
23798
23799 PR target/47855
23800 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
23801 * config/arm/arm.c (arm_attr_length_push_multi): New function.
23802 * config/arm/arm.md (*push_multi): Change the length computation to
23803 call a C function.
23804
23805 2011-04-08 Anatoly Sokolov <aesok@post.ru>
23806
23807 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
23808 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
23809 * doc/tm.texi: Regenerate.
23810 * system.h (ASM_OUTPUT_BSS): Poison.
23811 * varasm.c (asm_output_bss): Remove function.
23812 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
23813
23814 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23815 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23816 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23817 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23818 Likewise.
23819 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23820 Likewise.
23821 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23822 Likewise.
23823 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23824
23825 2011-04-07 Joseph Myers <joseph@codesourcery.com>
23826
23827 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23828 EnumValue lines.
23829
23830 2011-04-07 Joseph Myers <joseph@codesourcery.com>
23831
23832 * config/m68k/m68k.c (m68k_handle_option): Don't handle
23833 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23834 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23835 OPT_mcpu32.
23836 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23837 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23838 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23839 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23840 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23841 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23842 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23843 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23844 options. Don't map other m68k options manually. Don't handle
23845 old-style options as canonical.
23846 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23847 * doc/install.texi (m68k-*-*): Document binutils version requirement.
23848
23849 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
23850
23851 * basic-block.h (force_nonfallthru): Move to...
23852 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23853 (force_nonfallthru): ...here.
23854 * cfghooks.c (force_nonfallthru): New function.
23855 * cfgrtl.c (force_nonfallthru): Rename into...
23856 (rtl_force_nonfallthru): ...this.
23857 (commit_one_edge_insertion): Do not set AUX field.
23858 (commit_edge_insertions): Do not discover new basic blocks.
23859 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23860 (cfg_layout_rtl_cfg_hooks): Likewise.
23861 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23862 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
23863 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23864
23865 2011-04-07 Anatoly Sokolov <aesok@post.ru>
23866
23867 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23868 Remove macros.
23869
23870 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
23871
23872 * config/i386/sse.md: Update copyright year.
23873 (avxcvtvecmode): Remove.
23874 (sse_movhlps): Merge with *avx_movhlps.
23875 (sse_movlhps): Merge with *avx_movlhps.
23876 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23877 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23878 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23879 (sse_loadhps): Merge with *avx_loadhps.
23880 (sse_storelps): Merge with *avx_storelps.
23881 (sse_loadlps): Merge with *avx_loadlps.
23882 (sse_movss): Merge with *avx_movss.
23883 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23884 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23885 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23886 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23887 (vec_set<mode>_0): Ditto.
23888 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23889 (sse4_1_insertps): Merge with *avx_insertps.
23890 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23891 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23892 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23893 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23894 (sse2_storehpd): Merge with *avx_storehpd.
23895 (sse2_loadhpd): Merge with *avx_loadhpd.
23896 (sse2_loadlpd): Merge with *avx_loadlpd.
23897 (sse2_movsd): Merge with *avx_movsd.
23898 (*vec_concatv2df): Merge with *vec_concatv2df.
23899
23900 2011-04-07 Jakub Jelinek <jakub@redhat.com>
23901
23902 PR debug/48343
23903 * combine.c (combine_instructions): Add last_combined_insn,
23904 update it if insn is after it, pass it to all try_combine calls.
23905 (try_combine): Add last_combined_insn parameter, pass it instead of
23906 i3 to propagate_for_debug.
23907
23908 2011-04-07 Nick Clifton <nickc@redhat.com>
23909
23910 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23911 to handle MDR <-> data register transfers.
23912 (movhi_internal): Likewise.
23913
23914 2011-04-07 Alan Modra <amodra@gmail.com>
23915
23916 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23917 previous stack info.
23918
23919 2011-04-07 Tom de Vries <tom@codesourcery.com>
23920
23921 PR target/43920
23922 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
23923 flow_find_cross_jump. Swap variables to implement backward replacement.
23924 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23925
23926 2011-04-07 Tom de Vries <tom@codesourcery.com>
23927
23928 PR target/43920
23929 * cfgcleanup.c (walk_to_nondebug_insn): New function.
23930 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
23931 and bb2.
23932 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23933 src1 or src2. Redirect edges to the last basic block. Update
23934 frequency and count on multiple basic blocks in case of fallthru.
23935
23936 2011-04-07 Tom de Vries <tom@codesourcery.com>
23937
23938 PR target/43920
23939 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23940 function.
23941 (old_insns_match_p): Change return type. Replace return false/true
23942 with return dir_none/dir_both. Use can_replace_by.
23943 (flow_find_cross_jump): Add dir_p parameter. Init replacement
23944 direction from dir_p. Register replacement direction in dir, last_dir
23945 and afterlast_dir. Handle new return type of old_insns_match_p using
23946 merge_dir. Return replacement direction in dir_p.
23947 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23948 return type of old_insns_match_p.
23949 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23950 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23951 flow_find_cross_jump.
23952 * basic-block.h (enum replace_direction): New type.
23953 (flow_find_cross_jump): Add parameter to declaration.
23954
23955 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
23956
23957 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23958 (AVXMODEDCVTPS2DQ): Ditto.
23959 (VEC_FLOAT_MODE): Ditto.
23960 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
23961 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23962 (<any_logic:code><mode>3): Use VF mode iterator.
23963 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23964 Use VF mode iterator.
23965 (copysign<mode>3): Use VF mode iterator.
23966 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
23967 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23968 (*<any_logic:code><MODEF:mode>3): Merge with
23969 *avx_<any_logic:code><MODEF:mode>3.
23970 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23971 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23972 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23973 (avx_cvtdq2ps<avxmodesuffix>): Remove.
23974 (sse2_cvtdq2ps): Use %v modifier.
23975 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23976 (avx_cvtps2dq<avxmodesuffix>): Remove.
23977 (sse2_cvtps2dq): Use %v modifier.
23978 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23979 (avx_cvttps2dq<avxmodesuffix>): Remove.
23980 (sse2_cvttps2dq): Use %v modifier.
23981 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23982 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23983 (sse2_cvtsd2siq): Fix insn template.
23984 (sse2_cvtsd2siq_2): Ditto.
23985 (sse2_cvttsd2siq): Ditto.
23986 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23987 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23988
23989 2011-04-06 Joseph Myers <joseph@codesourcery.com>
23990
23991 * gcov-io.c: Use GCC Runtime Library Exception.
23992
23993 2011-04-06 Jakub Jelinek <jakub@redhat.com>
23994
23995 PR debug/48466
23996 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23997 as base_reg whatever register reg has been eliminated to, instead
23998 of hardcoding STACK_POINTER_REGNUM.
23999
24000 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24001
24002 * doc/tm.texi.in: Document C target hooks as separate from general
24003 target hooks.
24004 * doc/tm.texi: Regenerate.
24005 * genhooks.c (struct hook_desc): Add docname field.
24006 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
24007 docname field.
24008 (hook_array): Include c-target.def.
24009 (emit_documentation): Use docname field in output.
24010 (emit_init_macros): Take docname argument. Only emit definitions
24011 for hooks matching docname.
24012 (main): Expect additional arguments in all cases. Pass argument
24013 to emit_init_macros.
24014 * target.def: Move initial macro definitions and comments to
24015 target-hooks-macros.h.
24016 (gcc_targetcm): Move to c-family/c-target.def.
24017 * target.h (targetcm): Move declaration to c-family/c-target.h.
24018 * targhooks.c (default_handle_c_option): Move to
24019 c-family/c-opts.c.
24020 * targhooks.h (default_handle_c_option): Move declaration to
24021 c-family/c-common.h.
24022 * target-hooks-macros.h: New file.
24023 * config.gcc (target_has_targetcm): Define and use to add to
24024 c_target_objs and cxx_target_objs.
24025 * config/default-c.c: New file.
24026 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
24027 of target.h and target-def.h.
24028 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
24029 (darwin_objc_construct_string, darwin_cfstring_ref_p,
24030 darwin_check_cfstring_format_arg): Make static.
24031 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24032 TARGET_STRING_OBJECT_REF_TYPE_P,
24033 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
24034 * config/darwin-protos.h (darwin_objc_construct_string,
24035 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
24036 declare.
24037 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24038 TARGET_STRING_OBJECT_REF_TYPE_P,
24039 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
24040 * config/t-darwin (darwin-c.o): Update dependencies.
24041 * system.h (TARGET_HAS_TARGETCM): Poison.
24042 * Makefile.in (TARGET_H): Update.
24043 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
24044 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
24045 (default-c.o): New target.
24046 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
24047 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
24048 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
24049 c-target.def.
24050 (build/genhooks.o): Update dependencies.
24051
24052 2011-04-06 Richard Guenther <rguenther@suse.de>
24053
24054 * ipa-inline.c (enum inlining_mode): Remove.
24055 (cgraph_flatten): Use some other token.
24056 (cgraph_edge_early_inlinable_p): New function, split out from ...
24057 (cgraph_perform_always_inlining): New function, split out from ...
24058 (cgraph_decide_inlining_incrementally): ... here.
24059 (cgraph_mark_inline_edge): Adjust.
24060 (cgraph_early_inlining): Re-structure.
24061 (pass_early_inline): Require SSA form.
24062
24063 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
24064 Julian Brown <julian@codesourcery.com>
24065 Mark Shinwell <shinwell@codesourcery.com>
24066
24067 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
24068 LO_REGS only for Thumb-1.
24069 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
24070 be used in short instructions when optimising for size on Thumb-2.
24071
24072 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
24073
24074 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
24075 associated with user returns to be preserved.
24076
24077 2011-04-06 Tristan Gingold <gingold@adacore.com>
24078
24079 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
24080 symbol_queue_size, DBXOUT_DECR_NESTING,
24081 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
24082 if XCOFF_DEBUGGING_INFO.
24083
24084 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24085
24086 * config/i386/i386.md (attribute isa): New.
24087 (attribute enabled): New.
24088 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
24089 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
24090 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
24091 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
24092 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
24093 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24094 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
24095 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
24096
24097 * config/i386/sse.md (VF): New mode iterator.
24098 (VF1): Ditto.
24099 (VF2): Ditto.
24100 (VF_128): Ditto.
24101 (SSEMODEF4): Remove.
24102 (attribute sse): Handle V8SF and V4DF modes.
24103 (<absneg:code><mode>2): Use VF mode iterator.
24104 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
24105 mode iterator.
24106 (<plusminus_insn><mode>3): Use VF mode iterator.
24107 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
24108 Use VF mode iterator.
24109 (<sse>_vm<plusminus_insn><mode>3): Merge with
24110 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
24111 (mul<mode>3): Use VF mode iterator.
24112 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
24113 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
24114 mode iterator.
24115 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
24116 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
24117 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
24118 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
24119 mode iterator.
24120 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
24121 Use VF1 mode iterator.
24122 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
24123 (sqrt<VF2:mode>2): New expander.
24124 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
24125 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
24126 and sqrtv2df2. Use VF mode iterator.
24127 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
24128 mode iterator.
24129 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
24130 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
24131 Use VF1 mode iterator.
24132 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
24133 (<smaxmin:code><mode>3): Use VF mode iterator.
24134 (*<smaxmin:code><mode>3_finite): Merge with
24135 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
24136 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24137 (<sse>_vm<smaxmin:code><mode>2): Merge with
24138 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
24139 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
24140 mode iterator.
24141 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
24142 mode iterator.
24143 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
24144 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
24145 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
24146 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
24147 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
24148 VF mode iterator.
24149 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
24150 Use VF_128 mode iterator.
24151 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
24152 mode iterator.
24153 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
24154 VF_128 mode iterator.
24155 (vcond<mode>): Use VF mode iterator.
24156 * config/i386/predicates.md (sse_comparison_operator): Merge with
24157 avx_comparison_float_operator. Do not declare as special_predicate.
24158 * config/i386/i386.c (struct builtin_description): Update for renamed
24159 compare patterns.
24160 (ix86_expand_args_builtin): Ditto.
24161 (ix86_expand_sse_compare_mask): Ditto.
24162
24163 2011-04-06 Richard Guenther <rguenther@suse.de>
24164
24165 * tree-inline.c (estimate_num_insns): For calls simply account
24166 for all passed arguments and a used return value.
24167
24168 2011-04-06 Richard Guenther <rguenther@suse.de>
24169
24170 PR tree-optimization/47663
24171 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
24172 call_stmt_time fields.
24173 (cgraph_edge_inlinable_p): Declare.
24174 (cgraph_edge_recursive_p): New inline function.
24175 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
24176 (cgraph_clone_edge): Copy it.
24177 * ipa-inline.c (cgraph_estimate_edge_time): New function.
24178 Account for call stmt time.
24179 (cgraph_estimate_time_after_inlining): Take edge argument.
24180 (cgraph_estimate_edge_growth): Account call stmt size.
24181 (cgraph_estimate_size_after_inlining): Take edge argument.
24182 (cgraph_mark_inline_edge): Adjust.
24183 (cgraph_check_inline_limits): Likewise.
24184 (cgraph_recursive_inlining_p): Remove.
24185 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
24186 (cgraph_decide_recursive_inlining): Take edge argument and
24187 adjust.
24188 (cgraph_decide_inlining_of_small_functions): Do not avoid
24189 diags for recursive inlining here.
24190 (cgraph_flatten): Adjust.
24191 (cgraph_decide_inlining_incrementally): Likewise.
24192 (estimate_function_body_sizes): Remove call cost handling.
24193 (compute_inline_parameters): Initialize caller edge call costs.
24194 (cgraph_estimate_edge_growth): New function.
24195 (cgraph_estimate_growth): Use it.
24196 (cgraph_edge_badness): Likewise.
24197 (cgraph_check_inline_limits): Take an edge argument.
24198 (cgraph_decide_inlining_of_small_functions): Adjust.
24199 (cgraph_decide_inlining): Likewise.
24200 * tree-inline.c (estimate_num_insns): Only account for call
24201 return value if it is used.
24202 (expand_call_inline): Avoid diagnostics on recursive inline
24203 functions here.
24204 * lto-cgraph.c (lto_output_edge): Output edge call costs.
24205 (input_edge): Input edge call costs.
24206
24207 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24208
24209 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
24210
24211 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
24212
24213 * doc/invoke.texi (Spec Files): Fix typo.
24214
24215 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
24216
24217 * profile.c (branch_prob): Move declaration of local variable. Remove
24218 obsolete ??? comment. Expand the location explicitly instead of using
24219 the LOCATION_FILE and LOCATION_LINE macros.
24220
24221 2011-04-06 Wei Guozhi <carrot@google.com>
24222
24223 PR target/47855
24224 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
24225 (arm_cond_branch): Likewise.
24226 (arm_cond_branch_reversed): Likewise.
24227 (arm_jump): Likewise.
24228 (push_multi): Likewise.
24229 * config/arm/constraints.md (Py): New constraint.
24230
24231 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24232
24233 PR bootstrap/48471
24234 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
24235 Move these...
24236 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
24237 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
24238 #ifdef DBX_DEBUGGING_INFO.
24239
24240 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
24241
24242 PR bootstrap/48403
24243 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
24244 if old and new states differ.
24245
24246 2011-04-05 Joseph Myers <joseph@codesourcery.com>
24247
24248 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
24249 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
24250 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
24251 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
24252 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
24253 mcfv4e): Use Alias.
24254 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
24255 ColdFire options to -mcpu= options.
24256
24257 2011-04-05 Jeff Law <law@redhat.com>
24258
24259 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
24260 check if BB is a successor of LOOP->header and return
24261 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
24262
24263 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
24264
24265 * cprop.c (struct reg_use): Remove.
24266 (reg_use_table): Make an array of RTX.
24267 (find_used_regs, constprop_register, local_cprop_pass,
24268 bypass_block): Simplify users of reg_use_table.
24269 (cprop_insn): Likewise. Iterate if copy propagation succeeded
24270 on one of the uses found by find_used_regs.
24271
24272 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24273
24274 PR bootstrap/48469
24275 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
24276 declaration.
24277
24278 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24279
24280 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
24281 as an rtx.
24282 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
24283
24284 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
24285
24286 PR middle-end/48441
24287 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
24288
24289 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24290
24291 * combine.c: Include obstack.h.
24292 (struct insn_link): Define.
24293 (uid_log_links): Adjust type.
24294 (FOR_EACH_LOG_LINK): New macro.
24295 (insn_link_obstack): Declare.
24296 (alloc_insn_link): Define.
24297 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
24298 type of link variables.
24299 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
24300 (try_combine, record_promoted_values, distribute_notes): Likewise.
24301 (distribute_links): Likewise. Tweak prototype.
24302 (clear_log_links): Delete.
24303 (adjust_for_new_dest): Call alloc_insn_link.
24304 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
24305
24306 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24307
24308 * gcse.c (modify_mem_list): Convert to an array of VECs.
24309 (canon_modify_mem_list, compute_transp): Tweak formatting.
24310 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
24311 (load_killed_in_block_p): Likewise.
24312 (record_last_mem_set_info): Likewise.
24313 (clear_modify_mem_tables): Likewise.
24314
24315 2011-04-05 Tom de Vries <tom@codesourcery.com>
24316
24317 PR middle-end/48461
24318 * function.c (emit_use_return_register_into_block): Only define if
24319 HAVE_return.
24320
24321 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
24322
24323 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
24324
24325 2011-04-05 Joseph Myers <joseph@codesourcery.com>
24326
24327 * config/rx/rx-opts.h: New.
24328 * config/rx/rx.c (rx_cpu_type): Remove.
24329 (rx_handle_option): Don't assert that global structures are in
24330 use. Access variables via opts pointer. Defer most handling of
24331 OPT_mint_register_. Use error_at.
24332 (rx_option_override): Handle deferred OPT_mint_register_ here.
24333 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
24334 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
24335 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
24336 (rx_cpu_types): New Enum and EnumValue entries.
24337 (mint-register=): Use Defer and use Var accordingly.
24338
24339 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24340
24341 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
24342 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
24343 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
24344 Move these...
24345 (debug_free_queue, debug_nesting, symbol_queue_index):
24346 ...and these...
24347 * dbxout.c: ...to here. Make static.
24348
24349 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
24350
24351 * gcse.c (modify_pair): Define. Define a VEC of it.
24352 (canon_modify_mem_list): Convert to an array of VECs.
24353 (free_insn_expr_list_list): Delete.
24354 (clear_modify_mem_tables): Call VEC_free instead.
24355 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
24356 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
24357 (canon_list_insert, compute_transp): Likewise.
24358
24359 2011-04-05 Tom de Vries <tom@codesourcery.com>
24360
24361 PR target/43920
24362 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
24363 for size.
24364
24365 2011-04-05 Tom de Vries <tom@codesourcery.com>
24366
24367 PR target/43920
24368 * function.c (emit_use_return_register_into_block): New function.
24369 (thread_prologue_and_epilogue_insns): Use
24370 emit_use_return_register_into_block.
24371
24372 2011-04-05 Tom de Vries <tom@codesourcery.com>
24373
24374 PR target/43920
24375 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
24376 insn.
24377
24378 2011-04-05 Tom de Vries <tom@codesourcery.com>
24379
24380 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
24381
24382 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
24383
24384 * config/arm/arm.md (define_constants for unspec): Replace with
24385 define_c_enum.
24386 (define_constants for unspecv): Replace with define_c_enum.
24387 * config/arm/neon.md (define_constants for unspec): Replace with
24388 define_c_enum.
24389
24390 2011-04-04 Richard Henderson <rth@redhat.com>
24391
24392 PR bootstrap/48400
24393 * dwarf2out.c (output_line_info): Always emit line info from
24394 at least one section.
24395 (dwarf2out_init): Create text_section_line_info here ...
24396 (set_cur_line_info_table): ... not here.
24397
24398 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
24399
24400 PR target/48380
24401 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
24402 not called.
24403
24404 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
24405
24406 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
24407
24408 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
24409 (expr_equiv_p): Remove.
24410 (insert_set_in_table): Look at <dest, src> pair instead of expr.
24411 (hash_scan_set): Update call to insert_set_in_table.
24412 (dump_hash_table): Dump <dest, src> pair.
24413 (lookup_set): Simplify. Lookup <dest, src> pair.
24414 (compute_transp): Remove, fold heavily simplified code into...
24415 (compute_local_properties): ...here. Expect COMP and TRANSP
24416 unconditionally.
24417 (find_avail_set): Take set directly from struct expr.
24418 (find_bypass-set): Likewise.
24419 (bypass_block): Likewise.
24420 (cprop_insn): Likewise. Remove redundant INSN_P test.
24421
24422 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
24423 checks on form of COND from find_implicit_sets to here.
24424 (find_implicit_sets): Cleanup control flow. Split critical edges
24425 if it exposes implicit sets. Allocate/resize implicit_sets as
24426 necessary.
24427 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
24428 changed something. Run df_analyze after find_implicit_sets if any
24429 edges were split. Do not allocate implicit_sets here.
24430
24431 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
24432 (gcse_obstack): Renamed to cprop_obstack.
24433 (GNEW, GNEWVEC, GNEWVAR): Remove.
24434 (gmalloc): Remove.
24435 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
24436 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
24437 (gcse_alloc): Likewise, and rename to cprop_alloc.
24438 (alloc_gcse_men, free_gcse_mem): Remove.
24439 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
24440 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
24441 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
24442
24443 * cprop.c (oprs_not_set_p): Remove.
24444 (mark_set, mark_clobber): Remove.
24445 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
24446 (reg_not_set_p): New function.
24447 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
24448 (cprop_insn): Likewise.
24449 (cprop_jump): Use FOR_EACH_EDGE.
24450
24451 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
24452
24453 PR bootstrap/48403
24454 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
24455 (rank_for_schedule): Use scheduled_insns vector instead of
24456 last_scheduled_insn.
24457 (ok_for_early_queue_removal): Likewise.
24458 (queue_to_ready): Search forward in nonscheduled_insns_begin if
24459 we have a dbg_cnt.
24460 (choose_ready): Likewise.
24461 (commit_schedule): Use VEC_iterate.
24462 (schedule_block): Initialize nonscheduled_insns_begin. If we have
24463 a dbg_cnt, use it and ensure the first insn is in the ready list.
24464 (haifa_sched_init): Allocate scheduled_insns.
24465 (sched_extend_ready_list): Don't allocate it; reserve space.
24466 (haifa_sched_finish): Free it.
24467
24468 2011-04-04 Joseph Myers <joseph@codesourcery.com>
24469
24470 * optc-gen.awk: Always remove type from Variable entry before
24471 recording in var_seen.
24472
24473 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
24474
24475 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
24476 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
24477 call to tidy_fallthru_edges.
24478
24479 2011-04-04 Joseph Myers <joseph@codesourcery.com>
24480
24481 * doc/options.texi (ToLower): Document.
24482 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
24483 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
24484 * opts.h (cl_option): Add cl_tolower field.
24485 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
24486 arguments with lowercase strings.
24487 * config/rx/rx.opt (mcpu=): Add ToLower.
24488 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
24489 argument.
24490
24491 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
24492
24493 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
24494
24495 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
24496
24497 * config/vax/vax.c: Include reload.h.
24498
24499 2011-04-04 Anatoly Sokolov <aesok@post.ru>
24500
24501 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
24502 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
24503 (sparc_preferred_reload_class): New function.
24504
24505 2011-04-04 Jakub Jelinek <jakub@redhat.com>
24506
24507 PR debug/48401
24508 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24509 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
24510
24511 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
24512
24513 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
24514 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
24515
24516 2011-04-03 Anatoly Sokolov <aesok@post.ru>
24517
24518 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
24519 (ASM_OUTPUT_ALIGNED_BSS): Define.
24520
24521 2011-04-03 Michael Matz <matz@suse.de>
24522
24523 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
24524 and next_slot members.
24525 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
24526 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
24527 (lto_streamer_cache_append): Declare.
24528 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
24529 unsigned index, remove offset parameter, ensure that we append
24530 or update existing entries.
24531 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
24532 parameter, update next_slot for append.
24533 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
24534 parameter.
24535 (lto_streamer_cache_insert_at): Likewise.
24536 (lto_streamer_cache_append): New function.
24537 (lto_streamer_cache_lookup): Use unsigned index.
24538 (lto_streamer_cache_get): Likewise.
24539 (lto_record_common_node): Don't test tree_node_can_be_shared.
24540 (preload_common_node): Adjust call to lto_streamer_cache_insert.
24541 (lto_streamer_cache_delete): Don't free offsets member.
24542 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
24543 (lto_output_string_with_length): Use lto_output_data_stream.
24544 (lto_output_tree_header): Remove ix parameter, don't write it.
24545 (lto_output_builtin_tree): Likewise.
24546 (lto_write_tree): Adjust callers to above, don't track and write
24547 offset, write unsigned index.
24548 (output_unreferenced_globals): Don't emit all global vars.
24549 (write_global_references): Use unsigned indices.
24550 (lto_output_decl_state_refs): Likewise.
24551 (write_symbol): Likewise.
24552 * lto-streamer-in.c (lto_input_chain): Move earlier.
24553 (input_function): Use unsigned index.
24554 (input_alias_pairs): Don't read and then ignore all global vars.
24555 (lto_materialize_tree): Remove ix_p parameter, don't read index,
24556 don't pass it back, use lto_streamer_cache_append.
24557 (lto_register_var_decl_in_symtab): Use unsigned index.
24558 (lto_register_function_decl_in_symtab): Likewise.
24559 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
24560 index.
24561 (lto_get_builtin_tree): Don't read index, use
24562 lto_streamer_cache_append.
24563 (lto_read_tree): Adjust call to lto_materialize_tree.
24564
24565 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
24566 don't use function calls in arguments to MIN.
24567
24568 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
24569 twice.
24570
24571 * gimple.c (gimple_type_leader_entry): Mark deletable.
24572
24573 2011-04-03 Alan Modra <amodra@gmail.com>
24574
24575 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
24576
24577 2011-04-03 Michael Matz <matz@suse.de>
24578
24579 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
24580 an integer.
24581 * tree.h (tree_decl_non_common.vindex): Adjust comment.
24582
24583 2011-04-03 Michael Matz <matz@suse.de>
24584
24585 * cgraphbuild.c (record_reference): Canonicalize constructor values.
24586 * gimple-fold.c (canonicalize_constructor_val): Accept being called
24587 without function context.
24588 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
24589 current_function_decl and cfun.
24590
24591 2011-04-03 Michael Matz <matz@suse.de>
24592
24593 * tree.c (decl_init_priority_insert): Don't create entry for
24594 default priority.
24595 (decl_fini_priority_insert): Ditto.
24596 (fields_compatible_p, find_compatible_field): Remove.
24597 * tree.h (fields_compatible_p, find_compatible_field): Remove.
24598 * gimple.c (gimple_compare_field_offset): Adjust block comment.
24599
24600 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
24601
24602 * combine.c (try_combine): Remove useless local variable.
24603
24604 2011-04-03 Richard Guenther <rguenther@suse.de>
24605 Ira Rosen <ira.rosen@linaro.org>
24606
24607 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
24608 non-variable offsets and compare the remaining bases of the two
24609 accesses instead of looking for exact same data-ref.
24610
24611 2011-04-02 Kai Tietz <ktietz@redhat.com>
24612
24613 PR target/48416
24614 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
24615
24616 * i386.c (ix86_is_msabi_thiscall): New helper function.
24617 (ix86_is_type_thiscall): New helper function.
24618 (ix86_comp_type_attributes): Handle thiscall for method-functions
24619 special.
24620 (init_cumulative_args): Likewise.
24621 (find_drap_reg): Likewise.
24622 (ix86_static_chain): Likewise.
24623 (x86_this_parameter): Likewise.
24624 (x86_output_mi_thunk): Likewise.
24625
24626 2011-04-01 Olivier Hainque <hainque@adacore.com>
24627 Nicolas Setton <setton@adacore.com>
24628 Eric Botcazou <ebotcazou@adacore.com>
24629
24630 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
24631 (add_gnat_descriptive_type_attribute): New function.
24632 (gen_array_type_die): Call it.
24633 (gen_enumeration_type_die): Likewise.
24634 (gen_struct_or_union_type_die): Likewise.
24635 (modified_type_die): Likewise.
24636 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
24637 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
24638 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
24639
24640 2011-04-01 Jakub Jelinek <jakub@redhat.com>
24641
24642 PR bootstrap/48148
24643 * dwarf2out.c (resolve_addr): Don't call force_decl_die
24644 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
24645
24646 Revert:
24647 2011-03-17 Richard Guenther <rguenther@suse.de>
24648
24649 PR bootstrap/48148
24650 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24651 origin for decls in other ltrans units.
24652 (input_varpool_node): Likewise.
24653
24654 2011-04-01 Jakub Jelinek <jakub@redhat.com>
24655
24656 PR middle-end/48335
24657 * expr.c (expand_assignment): Handle all possibilities
24658 if TO_RTX is CONCAT.
24659 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
24660 (store_split_bit_field): If SUBREG_REG (op0) or
24661 op0 itself has smaller mode than word, return it
24662 for offset 0 and const0_rtx for out-of-bounds stores.
24663 If word is const0_rtx, skip it.
24664
24665 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
24666
24667 * config/h8300/h8300.c (print_operand_address): Rename to...
24668 (h8300_print_operand_address): ...this. Make static. Adjust comments.
24669 Call h8300_print_operand and h8300_print_operand_address instead of
24670 print_operand and print_operand_address. Declare.
24671 (print_operand): Renake to...
24672 (h8300_print_operand): ...this. Make static. Adjust comments.
24673 Call h8300_print_operand instead of print_operand. Declare.
24674 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
24675 (h8300_register_move_cost): Likewise.
24676 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
24677 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
24678 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
24679 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
24680 * config/h8300/h8300-protos.h (print_operand): Delete.
24681 (print_operand_address): Delete.
24682
24683 2011-04-01 Richard Henderson <rth@redhat.com>
24684
24685 PR 48400
24686 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
24687 in strict mode before dwarf4. Re-order tests to early out
24688 before switching sections.
24689
24690 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
24691
24692 * config/h8300/constraints.md: New file.
24693 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
24694 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
24695 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
24696 * config/h8300/predicates.md (bit_operand): Likewise.
24697 (incdec_operand): Use satisfies_constraint_M and
24698 satisfies_constraint_O. Don't use C code block.
24699 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
24700 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
24701 (compute_mov_length): Use satisfies_constraint_G.
24702 (fix_bit_operand): Use satisfies_constraint_U.
24703 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
24704 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
24705 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
24706 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
24707 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
24708 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
24709 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24710 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
24711 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
24712 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
24713 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
24714 (EXTRA_MEMORY_CONSTRAINT): Delete.
24715
24716 2011-04-01 Andrew Pinski <pinskia@gmail.com>
24717 Michael Meissner <meissner@linux.vnet.ibm.com>
24718
24719 PR target/48262
24720 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
24721 operands, as per the specifications.
24722
24723 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
24724 (vec_extract_evenv4sf): Ditto.
24725 (vec_extract_evenv8hi): Ditto.
24726 (vec_extract_evenv16qi): Ditto.
24727 (vec_extract_oddv4si): Ditto.
24728
24729 2011-03-31 Mark Wielaard <mjw@redhat.com>
24730
24731 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
24732 high_pc attribute if the CU has no associated code. Only output
24733 DW_AT_entry_pc for CU if not generating strict dwarf and
24734 dwarf_version < 4.
24735
24736 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
24737
24738 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
24739 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
24740 out of ...
24741 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
24742 * final.c (final_start_function): Call the new function rather
24743 than using a NULL argument for dwarf2out_frame_debug.
24744
24745 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
24746 that contains the prologue.
24747
24748 * haifa-sched.c (queue_insn): New arg REASON. All callers
24749 changed. Print it in debugging output.
24750
24751 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
24752
24753 * sched-ebb.c (begin_schedule_ready): Remove second argument.
24754 Split most of the code into...
24755 (begin_move_insn): ... here. New function.
24756 (ebb_sched_info): Add a pointer to it.
24757 * haifa-sched.c (scheduled_insns): New static variable.
24758 (sched_extend_ready_list): Allocate it.
24759 (schedule_block): Use it to record the order of scheduled insns.
24760 Perform RTL changes to move insns only after all scheduling
24761 decisions have been made.
24762 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
24763 begin_move_insn field.
24764 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
24765 * sched-int.h (struct haifa_sched_info): Remove second argument
24766 from begin_schedule_ready hook. Add new member begin_move_insn.
24767 * sched-rgn.c (begin_schedule_ready): Remove second argument.
24768 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
24769
24770 * haifa-sched.c (prune_ready_list): New function, broken out of
24771 schedule_block.
24772 (schedule_block): Use it.
24773
24774 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24775
24776 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
24777
24778 2011-04-01 Kai Tietz <ktietz@redhat.com>
24779
24780 * config.gcc (*-*-mingw*): Allow as option the
24781 posix threading model.
24782 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
24783 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
24784 definition.
24785 (CPP_SPEC): Add pthread/no-pthread handling.
24786 (LIB_SPEC): Likewise.
24787 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24788 (LIB_SPEC): Likewise.
24789 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
24790 flag to pass -pthread option for shared libgcc build.
24791 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
24792 for shared libgcc build.
24793 * config/i386/t-mingw-pthread: New file.
24794 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
24795 New define to enable use of library pthread by default.
24796 * config/i386/mingw.opt (pthread): New driver option.
24797 (no-pthread): New driver option.
24798 * config/i386/cygming.opt: Make sure trailing empty line is retained.
24799 * config/i386/mingw-w64.opt: Likewise.
24800
24801 2011-04-01 Gary Funck <gary@intrepid.com>
24802
24803 * c-decl.c (grokdeclarator): Fix formatting.
24804
24805 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24806
24807 * expr.c (emit_block_move_via_movmem): Use n_generator_args
24808 instead of n_operands.
24809 (set_storage_via_setmem): Likewise.
24810 * optabs.c (maybe_gen_insn): Likewise.
24811 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
24812 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
24813 (mips_expand_builtin_direct): Likewise.
24814 * config/spu/spu.c (expand_builtin_args): Likewise.
24815
24816 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24817
24818 * recog.h (insn_data_d): Add n_generator_args.
24819 * genoutput.c (data): Likewise.
24820 (output_insn_data): Print it.
24821 (max_opno, num_dups): Delete.
24822 (scan_operands): Just fill in "d->operand[...]".
24823 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24824
24825 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24826
24827 * gensupport.h (pattern_stats): New structure.
24828 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24829 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24830 (max_operand_1, max_operand_vec): Delete.
24831 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24832
24833 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
24834
24835 * emit-rtl.c (emit_pattern_after_setloc): New function.
24836 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24837 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24838 (emit_pattern_after): New function.
24839 (emit_insn_after, emit_jump_insn_after): Call it.
24840 (emit_call_insn_after, emit_debug_insn_after): Likewise.
24841 (emit_pattern_before_setloc): New function.
24842 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24843 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24844 Likewise.
24845 (emit_pattern_before): New function.
24846 (emit_insn_before, emit_jump_insn_before): Call it.
24847 (emit_call_insn_before, emit_debug_insn_before): Likewise.
24848
24849 2011-03-31 Richard Henderson <rth@redhat.com>
24850
24851 * dwarf2out.c (dw_separate_line_info_ref): Remove.
24852 (dw_separate_line_info_entry): Remove.
24853 (enum dw_line_info_opcode): New.
24854 (dw_line_info_entry): Use it.
24855 (dw_line_info_table, dw_line_info_table_p): New.
24856 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24857 (line_info_table, line_info_label_num): Remove.
24858 (line_info_table_in_use): Remove.
24859 (separate_line_info_table): Remove.
24860 (separate_line_info_table_allocated): Remove.
24861 (separate_line_info_table_in_use): Remove.
24862 (LINE_INFO_TABLE_INCREMENT): Remove.
24863 (line_info_label_num): New.
24864 (cur_line_info_table): New.
24865 (text_section_line_info, cold_text_section_line_info): New.
24866 (separate_line_info): New.
24867 (SEPARATE_LINE_CODE_LABEL): Remove.
24868 (print_dwarf_line_table): Remove.
24869 (debug_dwarf): Don't dump it.
24870 (output_one_line_info_table): New.
24871 (output_line_info): Use it.
24872 (new_line_info_table): New.
24873 (set_cur_line_info_table): New.
24874 (dwarf2out_switch_text_section): Use it.
24875 (dwarf2out_begin_function): Likewise.
24876 (push_dw_line_info_entry): New.
24877 (dwarf2out_source_line): Rewrite for new line info tables.
24878 (dwarf2out_init): Remove dead initailizations.
24879
24880 2011-03-31 Joseph Myers <joseph@codesourcery.com>
24881
24882 * opts.h (cl_option): Add comments to fields. Add bit-fields for
24883 various flags.
24884 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24885 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24886 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24887 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24888 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24889 * opt-functions.awk (flag_init, switch_bit_fields): New.
24890 (switch_flags): Don't handle flags moved to bit-fields. Don't
24891 generate CL_MISSING_OK or CL_SAVE.
24892 * optc-gen.awk: Update to generate bit-field output as well as
24893 flags field.
24894 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24895 bit-field instead of CL_REJECT_DRIVER flag.
24896 * opts-common.c (generate_canonical_option,
24897 decode_cmdline_option): Use bit-fields instead of CL_* flags.
24898 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24899 instead of CL_REJECT_NEGATIVE flag.
24900 * toplev.c (print_switch_values): Use cl_report bit-field instead
24901 of CL_REPORT flag.
24902
24903 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
24904
24905 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24906 a zero minimum index only if it is redundant.
24907
24908 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
24909
24910 PR rtl-optimization/48381
24911 * ira-color.c (assign_hard_reg): Use hard reg set intersection
24912 instead of ira_class_hard_reg_index for calculating conflicting
24913 hard registers.
24914
24915 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
24916
24917 * cprop.c: Clean up hash table building.
24918 (reg_avail_info): Remove.
24919 (oprs_available_p): Remove.
24920 (record_last_reg_set_info): Remove.
24921 (record_last_set_info): Remove.
24922 (reg_available_p): New function.
24923 (gcse_constant_p): Do not treat unfolded conditions as constants.
24924 (make_set_regs_unavailable): New function.
24925 (hash_scan_set): Simplify with new reg_available_p.
24926 (compute_hash_table_work): Traverse insns stream only once.
24927 Do not compute reg_avail_info. Traverse insns in reverse order.
24928 Record implicit sets after recording explicit sets from the block.
24929
24930 2011-03-31 Michael Matz <matz@suse.de>
24931
24932 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24933
24934 2011-03-31 Anatoly Sokolov <aesok@post.ru>
24935
24936 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24937 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24938 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24939 (h8300_mode_dependent_address_p): New function.
24940 (h8300_get_index): Make static.
24941
24942 2011-03-31 Jeff Law <law@redhat.com>
24943
24944 * reload1.c (elimination_effects): Fix typo in recent change.
24945
24946 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24947 typo potentially leading to null pointer dereference.
24948
24949 * caller-save.c (new_saved_hard_reg): Eliminate return value.
24950 (setup_save_areas): Corresponding changes to avoid useless
24951 assignments.
24952
24953 * jump.c (reversed_comparison_code_parts): Avoid successive return
24954 statements when REVERSE_CONDITION is defined.
24955
24956 * expr.c (expand_assignment): Avoid useless assignments.
24957 (expand_expr_real_1): Likewise.
24958 (expand_expr_real_2): Avoid useless statements.
24959
24960 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24961
24962 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24963
24964 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24965 statements.
24966
24967 * stmt.c (expand_expr_stmt): Avoid useless assignment.
24968
24969 2011-03-31 Joseph Myers <joseph@codesourcery.com>
24970
24971 PR target/47109
24972 * doc/tm.texi.in (TARGET_VERSION): Remove.
24973 * doc/tm.texi: Regenerate.
24974 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24975 * collect2.c (main): Don't use TARGET_VERSION.
24976 * mips-tdump.c (main): Don't use TARGET_VERSION.
24977 * mips-tfile.c (main): Don't use TARGET_VERSION.
24978 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24979 * config/rs6000/vxworksae.h: Remove.
24980 * config/alpha/alpha.h (TARGET_VERSION): Remove.
24981 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24982 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24983 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24984 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24985 * config/arm/arm.h (TARGET_VERSION): Remove.
24986 * config/arm/coff.h (TARGET_VERSION): Remove.
24987 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24988 * config/arm/elf.h (TARGET_VERSION): Remove.
24989 * config/arm/freebsd.h (TARGET_VERSION): Remove.
24990 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24991 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24992 * config/arm/pe.h (TARGET_VERSION): Remove.
24993 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24994 * config/arm/semi.h (TARGET_VERSION): Remove.
24995 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24996 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24997 * config/arm/vxworks.h (TARGET_VERSION): Remove.
24998 * config/avr/avr.h (TARGET_VERSION): Remove.
24999 * config/bfin/bfin.h (TARGET_VERSION): Remove.
25000 * config/fr30/fr30.h (TARGET_VERSION): Remove.
25001 * config/frv/frv.h (TARGET_VERSION): Remove.
25002 * config/h8300/h8300.h (TARGET_VERSION): Remove.
25003 * config/i386/cygwin.h (TARGET_VERSION): Remove.
25004 * config/i386/darwin.h (TARGET_VERSION): Remove.
25005 * config/i386/darwin64.h (TARGET_VERSION): Remove.
25006 * config/i386/djgpp.h (TARGET_VERSION): Remove.
25007 * config/i386/freebsd.h (TARGET_VERSION): Remove.
25008 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
25009 * config/i386/gnu.h (TARGET_VERSION): Remove.
25010 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
25011 * config/i386/i386elf.h (TARGET_VERSION): Remove.
25012 * config/i386/linux.h (TARGET_VERSION): Remove.
25013 * config/i386/linux64.h (TARGET_VERSION): Remove.
25014 * config/i386/lynx.h (TARGET_VERSION): Remove.
25015 * config/i386/mingw32.h (TARGET_VERSION): Remove.
25016 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
25017 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
25018 * config/i386/netware.h (TARGET_VERSION): Remove.
25019 * config/i386/nto.h (TARGET_VERSION): Remove.
25020 * config/i386/openbsd.h (TARGET_VERSION): Remove.
25021 * config/i386/vxworks.h (TARGET_VERSION): Remove.
25022 * config/ia64/elf.h (TARGET_VERSION): Remove.
25023 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
25024 * config/ia64/hpux.h (TARGET_VERSION): Remove.
25025 * config/ia64/linux.h (TARGET_VERSION): Remove.
25026 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25027 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
25028 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25029 * config/lm32/lm32.h (TARGET_VERSION): Remove.
25030 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
25031 * config/m32c/m32c.h (TARGET_VERSION): Remove.
25032 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
25033 * config/m32r/m32r.h (TARGET_VERSION): Remove.
25034 * config/m68k/linux.h (TARGET_VERSION): Remove.
25035 * config/m68k/m68k.h (TARGET_VERSION): Remove.
25036 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
25037 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
25038 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
25039 * config/mep/mep.h (TARGET_VERSION): Remove.
25040 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
25041 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25042 * config/mips/iris6.h (MACHINE_TYPE): Remove.
25043 * config/mips/linux.h (TARGET_VERSION): Remove.
25044 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
25045 * config/mips/vxworks.h (TARGET_VERSION): Remove.
25046 * config/mmix/mmix.h (TARGET_VERSION): Remove.
25047 * config/mn10300/linux.h (TARGET_VERSION): Remove.
25048 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
25049 * config/pa/pa.h (TARGET_VERSION): Remove.
25050 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
25051 * config/picochip/picochip.h (TARGET_VERSION): Remove.
25052 * config/rs6000/aix.h (TARGET_VERSION): Remove.
25053 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
25054 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
25055 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
25056 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
25057 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
25058 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
25059 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
25060 * config/rs6000/linux.h (TARGET_VERSION): Remove.
25061 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
25062 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
25063 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
25064 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
25065 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
25066 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
25067 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
25068 * config/s390/linux.h (TARGET_VERSION): Remove.
25069 * config/s390/s390.h (TARGET_VERSION): Remove.
25070 * config/s390/tpf.h (TARGET_VERSION): Remove.
25071 * config/score/score.h (TARGET_VERSION): Remove.
25072 * config/sh/linux.h (TARGET_VERSION): Remove.
25073 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
25074 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
25075 * config/sh/sh.h (TARGET_VERSION): Remove.
25076 * config/sh/sh64.h (TARGET_VERSION): Remove.
25077 * config/sh/superh.h (TARGET_VERSION): Remove.
25078 * config/sh/vxworks.h (TARGET_VERSION): Remove.
25079 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
25080 * config/sparc/linux.h (TARGET_VERSION): Remove.
25081 * config/sparc/linux64.h (TARGET_VERSION): Remove.
25082 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
25083 TARGET_NAME32, TARGET_NAME): Remove.
25084 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
25085 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
25086 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
25087 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
25088 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
25089 * config/spu/spu.h (TARGET_VERSION): Remove.
25090 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
25091 * config/v850/v850.h (TARGET_VERSION): Remove.
25092 * config/vax/linux.h (TARGET_VERSION): Remove.
25093 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
25094 * config/xtensa/elf.h (TARGET_VERSION): Remove.
25095 * config/xtensa/linux.h (TARGET_VERSION): Remove.
25096
25097 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
25098
25099 PR target/48142
25100 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
25101 frame-related from frame-unrelated adjustments to the stack pointer.
25102
25103 2011-03-31 Jakub Jelinek <jakub@redhat.com>
25104
25105 * common.opt (fdebug-types-section): Move earlier.
25106 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
25107
25108 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
25109
25110 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
25111 var.
25112
25113 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
25114
25115 * tree.h (CASE_CHAIN): Define.
25116 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
25117 (gimple_redirect_edge_and_branch): Likewise.
25118
25119 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
25120
25121 PR middle-end/48367
25122 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
25123 calculation.
25124
25125 2011-03-30 Jeff Law <law@redhat.com>
25126
25127 * PR bootstrap/48371
25128 * reload1.c (reload): Fix botch in last change.
25129
25130 * reload.h (struct reload): Fix typo introduced in last change.
25131
25132 2011-03-30 Joseph Myers <joseph@codesourcery.com>
25133
25134 * config/arm/arm.opt (mhard-float, msoft-float): Mark
25135 Undocumented. Remove help text.
25136 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
25137 -mhard-float.
25138
25139 2011-03-30 Joseph Myers <joseph@codesourcery.com>
25140
25141 * doc/options.texi (NegativeAlias): Document.
25142 (Alias): Mention NegativeAlias.
25143 * opt-functions.awk: Handle NegativeAlias.
25144 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
25145 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
25146 * opts.h (CL_NEGATIVE_ALIAS): Define.
25147 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
25148 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
25149 OPT_mspe_.
25150 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
25151 Alias entries.
25152 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
25153 mno-spe and mno-isel instead of mspe=no and -misel=no.
25154
25155 2011-03-29 Mark Wielaard <mjw@redhat.com>
25156
25157 * common.opt (fdebug-types-section): New flag.
25158 * doc/invoke.texi: Document new -fno-debug-types-section flag.
25159 * dwarf2out.c (use_debug_types): New define.
25160 (struct die_struct): Mark die_id with GTY desc use_debug_types.
25161 (print_die): Guard output of type unit signatures using
25162 use_debug_types.
25163 (build_abbrev_table): Replace assert of dwarf_version >= 4
25164 with assert on use_debug_types.
25165 (size_of_die): Likewise.
25166 (unmark_dies): Likewise.
25167 (value_format): Decide AT_ref_external form on use_debug_types.
25168 (output_die): Replace dwarf_version version check guard with
25169 use_debug_types where appropriate.
25170 (modified_type_die): Likewise.
25171 (gen_reference_type_die): Likewise.
25172 (dwarf2out_start_source_file): Likewise.
25173 (dwarf2out_end_source_file): Likewise.
25174 (prune_unused_types_walk_attribs): Likewise.
25175 (dwarf2out_finish): Likewise.
25176
25177 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
25178
25179 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
25180
25181 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
25182
25183 PR rtl-optimization/48332
25184 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
25185 mode of input operand N and modeN to its actual mode.
25186
25187 2011-03-30 Jeff Law <law@redhat.com>
25188
25189 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
25190 define accessor macro.
25191 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
25192 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
25193 (reg_equiv_init): Likewise.
25194 (reg_equivs_size): New variable.
25195 (reg_equiv_init_size): Remove.
25196 (allocate_initial_values): Move prototype to here from....
25197 * integrate.h (allocate_initial_values): Remove prototype.
25198 * integrate.c: Include reload.h.
25199 (allocate_initial_values): Corresponding changes.
25200 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
25201 (fix_reg_equiv_init, no_equiv): Corresponding changes.
25202 (update_equiv_regs): Corresponding changes.
25203 (ira): Corresponding changes.
25204 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
25205 (push_secondary_reload): Corresponding changes.
25206 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
25207 (make_memloc, find_reloads_address): Corresponding changes.
25208 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
25209 (find_reloads_address_1): Corresponding changes.
25210 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
25211 (refers_to_regno_for_reload_p): Corresponding changes.
25212 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
25213 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
25214 * reload1.c: Include ggc.h.
25215 (grow_reg_equivs): New function.
25216 (replace_pseudos_in, reload): Corresponding changes.
25217 (calculate_needs_all_insns, alter_regs): Corresponding changes.
25218 (eliminate_regs_1, elimination_effects): Corresponding changes.
25219 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
25220 (delete_output_reload): Likewise.
25221 * caller-save.c (mark_referenced_regs): Corresponding changes.
25222 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
25223 * frv/predicates.md (frv_load_operand): Corresponding changes.
25224 * microblaze/microblaze.c (double_memory_operand): Corresponding
25225 changes.
25226 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
25227 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
25228 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
25229 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
25230 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
25231 changes.
25232 * pa/pa.c (emit_move_sequence): Corresponding changes.
25233 * vax/vax.c (nonindexed_address_p): Corresponding changes.
25234
25235 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
25236
25237 PR target/47551
25238 * config/arm/arm.c (coproc_secondary_reload_class): Handle
25239 structure modes. Don't check neon_vector_mem_operand for
25240 vector or structure modes.
25241
25242 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
25243 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25244
25245 PR target/43590
25246 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
25247 operand 1 and reshuffle the operands to match.
25248 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
25249
25250 2011-03-30 Christian Schüler <cschueler@gmx.de>
25251
25252 PR driver/48208
25253 * config/c.opt (F): Added 'Driver' to -F option.
25254
25255 PR driver/48260
25256 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
25257 handler function.
25258 * config/darwin.opt: Added '-arch' option.
25259
25260 2011-03-30 Nick Clifton <nickc@redhat.com>
25261
25262 * config/rx/rx.md: Add peepholes and patterns to combine
25263 extending loads and simple arithmetic instructions.
25264 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
25265 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
25266 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
25267 modes to use pre-decrement and post-increment addressing.
25268 (rx_is_restricted_memory_address): Add range checking of REG+INT
25269 addresses.
25270 (rx_print_operand): Add support for %Q. Fix handling of %Q.
25271 (rx_memory_move_cost): Adjust cost of stores.
25272 (rx_adjust_insn_length): New function.
25273
25274 2011-03-30 Jakub Jelinek <jakub@redhat.com>
25275
25276 PR c/48305
25277 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25278 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
25279 matching arg00/arg01 types.
25280
25281 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
25282
25283 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
25284 last_location to UNKNOWN_LOCATION.
25285
25286 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
25287
25288 PR target/48349
25289 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
25290 FLOAT_SSE_REGS.
25291
25292 2011-03-30 Joseph Myers <joseph@codesourcery.com>
25293 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25294
25295 PR bootstrap/48337
25296 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
25297 Init(PROCESSOR_V7).
25298 (sparc_cpu): Likewise.
25299 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
25300 PROCESSOR_V7.
25301
25302 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
25303
25304 PR target/48336
25305 PR middle-end/48342
25306 PR rtl-optimization/48345
25307 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
25308 hard regs for given mode from profitable regs when doing secondary
25309 allocation.
25310
25311 2011-03-29 Jeff Law <law@redhat.com>
25312
25313 PR bootstrap/48327
25314 * tree-ssa-threadupdate.c (struct redirection_data): Remove
25315 do_not_duplicate field.
25316 (lookup_redirection_data): Corresponding changes.
25317 (create_duplicates): Always create a template block.
25318 (redirect_edges): Remove code which reused the original block
25319 when it was going to become unreachable code.
25320 (thread_block): Don't set do_not_duplicate field.
25321
25322 2011-03-29 Joseph Myers <joseph@codesourcery.com>
25323
25324 * lto-opts.c (register_user_option_p, lto_register_user_option):
25325 Make type argument unsigned.
25326 * lto-streamer.h (lto_register_user_option): Make type argument
25327 unsigned.
25328 * opth-gen.awk: Make CL_* macros unsigned.
25329 * opts-common.c (find_opt): Make lang_mask argument unsigned.
25330 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
25331 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
25332 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
25333 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
25334 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
25335 (find_opt): Make lang_mask argument unsigned.
25336
25337 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
25338
25339 PR rtl-optimization/48331
25340 PR rtl-optimization/48334
25341 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
25342 for any used algorithm.
25343
25344 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
25345
25346 * ira-conflicts.c (build_object_conflicts): Add unused attribute
25347 to parent_max.
25348
25349 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
25350
25351 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
25352 (alpha_option_override): Don't set alpha_sr_alias_set.
25353 (emit_frame_store_1): Use gen_frame_mem rather than calling
25354 set_mem_alias_set.
25355 (alpha_expand_epilogue): Ditto.
25356
25357 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
25358
25359 PR tree-optimization/48290
25360 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
25361 vectorization, check that relevant phis in the basic block after
25362 the inner loop are really inner loop's exit phis.
25363
25364 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
25365
25366 PR debug/48190
25367 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
25368 (cached_dw_loc_list_def): New structure.
25369 (cached_dw_loc_list): New typedef.
25370 (cached_dw_loc_list_table): New variable.
25371 (cached_dw_loc_list_table_hash): New function.
25372 (cached_dw_loc_list_table_eq): Likewise.
25373 (add_location_or_const_value_attribute): Take a bool cache_p.
25374 Cache the list when the parameter is true.
25375 (gen_formal_parameter_die): Update caller.
25376 (gen_variable_die): Likewise.
25377 (dwarf2out_finish): Likewise.
25378 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
25379 while generating debug info for the decl.
25380 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
25381 (dwarf2out_init): Initialize cached_dw_loc_list_table.
25382 (resolve_addr): Cache the result of resolving a chain of
25383 location lists.
25384
25385 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
25386
25387 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
25388 conflict object hard regset nodes have intersecting hard reg sets.
25389
25390 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
25391 after regstat_init_n_sets_and_refs.
25392
25393 * ira.c: Add more comments at the top.
25394 (setup_stack_reg_pressure_class, setup_pressure_classes):
25395 Add comments how we compute the register pressure classes.
25396 (setup_allocno_and_important_classes): Add more comments.
25397 (setup_class_translate_array, reorder_important_classes)
25398 (setup_reg_class_relations): Add comments.
25399
25400 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
25401 start of the file.
25402
25403 * ira-color.c: Add 2011 to the Copyright line.
25404 (assign_hard_reg): Add more comments.
25405 (improve_allocation): Ditto.
25406
25407 * ira-costs.c: Add 2011 to the Copyright line.
25408 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
25409 comments.
25410 (setup_regno_cost_classes_by_mode): Ditto.
25411
25412 Initial patches from ira-improv branch:
25413
25414 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
25415
25416 * ira-build.c (ira_create_object): Remove initialization of
25417 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
25418 (ira_create_allocno): Remove initialization of
25419 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
25420 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
25421 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
25422 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
25423 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
25424 Initialize ALLOCNO_ADD_DATA.
25425 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
25426 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
25427 ALLOCNO_REG.
25428 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
25429 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
25430
25431 * ira.c (ira_reallocate): Remove.
25432 (setup_pressure_classes): Call
25433 ira_init_register_move_cost_if_necessary. Use
25434 ira_register_move_cost instead of ira_get_register_move_cost.
25435 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
25436 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
25437
25438 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
25439 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
25440 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
25441 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
25442 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
25443 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
25444 Fix formatting.
25445 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
25446 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
25447 (struct allocno_color_data): New.
25448 (allocno_color_data_t): New typedef.
25449 (allocno_color_data): New definition.
25450 (ALLOCNO_COLOR_DATA): New macro.
25451 (struct object_color_data): New.
25452 (object_color_data_t): New typedef.
25453 (object_color_data): New definition.
25454 (OBJECT_COLOR_DATA): New macro.
25455 (update_copy_costs, calculate_allocno_spill_cost): Call
25456 ira_init_register_move_cost_if_necessary. Use
25457 ira_register_move_cost instead of ira_get_register_move_cost.
25458 (move_spill_restore, update_curr_costs): Ditto.
25459 (allocno_spill_priority): Make it inline.
25460 (color_pass): Allocate and free allocno_color_dat and object_color_data.
25461 (struct coalesce_data, coalesce_data_t): New.
25462 (allocno_coalesce_data): New definition.
25463 (ALLOCNO_COALESCE_DATA): New macro.
25464 (merge_allocnos, coalesced_allocno_conflict_p): Use
25465 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
25466 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
25467 (coalesce_allocnos): Ditto.
25468 (setup_coalesced_allocno_costs_and_nums): Ditto.
25469 (collect_spilled_coalesced_allocnos): Ditto.
25470 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
25471 (setup_slot_coalesced_allocno_live_ranges): Ditto.
25472 (coalesce_spill_slots): Ditto.
25473 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
25474 free allocno_coalesce_data.
25475
25476 * ira-conflicts.c: Fix formatting.
25477 (process_regs_for_copy): Call
25478 ira_init_register_move_cost_if_necessary. Use
25479 ira_register_move_cost instead of ira_get_register_move_cost.
25480 (build_object_conflicts): Optimize.
25481
25482 * ira-costs.c (record_reg_classes): Optimize. Call
25483 ira_init_register_move_cost_if_necessary. Use
25484 ira_register_move_cost, ira_may_move_in_cost, and
25485 ira_may_move_out_cost instead of ira_get_register_move_cost and
25486 ira_get_may_move_cost.
25487 (record_address_regs): Ditto.
25488 (scan_one_insn): Optimize.
25489 (find_costs_and_classes): Optimize.
25490 (process_bb_node_for_hard_reg_moves): Call
25491 ira_init_register_move_cost_if_necessary. Use
25492 ira_register_move_cost instead of ira_get_register_move_cost.
25493
25494 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
25495 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
25496 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
25497 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
25498 definitions.
25499 (ira_initiate_emit_data, ira_finish_emit_data)
25500 (create_new_allocno): New functions.
25501 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
25502 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
25503 Use ira_register_move_cost instead of ira_get_register_move_cost.
25504
25505 * ira-int.h: Fix some comments.
25506 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
25507 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
25508 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
25509 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
25510 add_data.
25511 (struct ira_allocno): Make mode and aclass a bitfield. Move other
25512 bitfield after mode. Make hard_regno a short int. Make
25513 hard_regno short. Remove first_coalesced_allocno and
25514 next_coalesced_allocno. Move mem_optimized_dest_p,
25515 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
25516 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
25517 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
25518 temp, colorable_p. Add new member add_data.
25519 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
25520 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
25521 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
25522 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
25523 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
25524 (ALLOCNO_ADD_DATA): New macro.
25525 (ira_emit_data_t): New typedef.
25526 (struct ira_emit_data): New. Move mem_optimized_dest_p,
25527 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
25528 from struct ira_allocno.
25529 (ALLOCNO_EMIT_DATA): New macro.
25530 (ira_allocno_emit_data, allocno_emit_reg): New.
25531 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
25532 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
25533 (OBJECT_ADD_DATA): New macro.
25534 (ira_reallocate): Remove.
25535 (ira_initiate_emit_data, ira_finish_emit_data): New.
25536 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
25537 (ira_init_register_move_cost_if_necessary): New.
25538 (ira_object_conflict_iter_next): Merge into
25539 ira_object_conflict_iter_cond.
25540 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
25541
25542 * ira-live.c (process_single_reg_class_operands): Call
25543 ira_init_register_move_cost_if_necessary. Use
25544 ira_register_move_cost instead of ira_get_register_move_cost.
25545
25546 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
25547
25548 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
25549
25550 * ira-costs.c: Fix formatting.
25551 (cost_classes, cost_classes_num): Remove.
25552 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
25553 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
25554 (cost_classes_del, cost_classes_htab): New.
25555 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
25556 (initiate_regno_cost_classes, setup_cost_classes): New.
25557 (setup_regno_cost_classes_by_aclass): New.
25558 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
25559 (record_reg_classes): Use regno_cost_classes instead of
25560 cost_classes. Move checking opposite operand up.
25561 (record_address_regs): Use regno_cost_classes
25562 instead of cost_classes.
25563 (scan_one_insn): Ditto. Use always general register.
25564 (print_allocno_costs): Use regno_cost_classes instead of
25565 cost_classes.
25566 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
25567 (find_costs_and_classes): Set up cost classes for each registers.
25568 Use also their mode for this. Use regno_cost_classes instead of
25569 cost_classes.
25570 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
25571 cost_classes.
25572 (free_ira_costs, ira_init_costs): Don't use cost_classes.
25573 (ira_costs, ira_set_pseudo_classes): Call
25574 initiate_regno_cost_classes and finish_regno_cost_classes.
25575
25576 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
25577
25578 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
25579
25580 * target.def (ira_cover_classes): Remove.
25581
25582 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
25583
25584 * doc/tm.texi.in: Ditto.
25585
25586 * ira-conflicts.c: Remove mentioning cover classes from the file.
25587 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
25588 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
25589
25590 * targhooks.c (default_ira_cover_classes): Remove.
25591
25592 * targhooks.h (default_ira_cover_classes): Ditto.
25593
25594 * haifa-sched.c: Remove mentioning cover classes from the file.
25595 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
25596 ira_pressure_classes and ira_pressure_classes_num instead of
25597 ira_reg_class_cover_size and ira_reg_class_cover. Use
25598 sched_regno_pressure_class instead of sched_regno_cover_class.
25599 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
25600 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25601
25602 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
25603 classes from the file.
25604 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
25605 (struct object_hard_regs, struct object_hard_regs_node): New.
25606 (struct ira_object): New members profitable_hard_regs,
25607 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
25608 (struct ira_allocno): Rename cover_class to aclass. Rename
25609 cover_class_cost and updated_cover_class_cost to class_cost and
25610 updated_class_cost. Remove splay_removed_p and
25611 left_conflict_size. Add new members colorable_p.
25612 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
25613 (ALLOCNO_COLORABLE_P): New macro.
25614 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
25615 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
25616 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
25617 (OBJECT_...): Rename parameter C to O.
25618 (OBJECT_PROFITABLE_HARD_REGS): New macro.
25619 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
25620 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
25621 (struct target_ira_int): New members x_ira_max_memory_move_cost,
25622 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
25623 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
25624 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
25625 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
25626 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
25627 x_ira_reg_class_subunion.
25628 (ira_max_memory_move_cost, ira_max_register_move_cost)
25629 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
25630 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
25631 (ira_important_class_nums, ira_reg_class_superunion): New macros.
25632 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
25633 (ira_reg_class_union): Rename to ira_reg_class_subunion.
25634 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25635 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25636 (ira_tune_allocno_costs_and_cover_classes): Rename to
25637 ira_tune_allocno_costs.
25638 (ira_debug_hard_regs_forest): New.
25639 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
25640 (ira_object_conflict_iter_next): Fix comments.
25641 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
25642 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
25643 cover_class to aclass.
25644 (ira_allocate_and_accumulate_costs): Ditto.
25645 (ira_allocate_and_set_or_copy_costs): Ditto.
25646
25647 * opts.c (decode_options): Remove ira_cover_class check.
25648
25649 * ira-color.c: Remove mentioning cover classes from the file. Use
25650 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
25651 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
25652 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
25653 (splay-tree.h): Remove include.
25654 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
25655 before copy_freq_compare_func.
25656 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
25657 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
25658 New definitions.
25659 (hard_regs_roots, hard_regs_node_vec): Ditto.
25660 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
25661 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
25662 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
25663 (create_new_object_hard_regs_node): Ditto.
25664 (add_new_object_hard_regs_node_to_forest): Ditto.
25665 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
25666 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
25667 Ditto.
25668 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
25669 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
25670 (remove_unused_object_hard_regs_nodes): Ditto.
25671 (enumerate_object_hard_regs_nodes): Ditto.
25672 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
25673 (object_hard_regs_subnode_t): Ditto.
25674 (struct object_hard_regs_subnode): Ditto.
25675 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
25676 (setup_object_hard_regs_subnode_index): Ditto.
25677 (get_object_hard_regs_subnodes_num): Ditto.
25678 (form_object_hard_regs_nodes_forest): Ditto.
25679 (finish_object_hard_regs_nodes_tree): Ditto.
25680 (finish_object_hard_regs_nodes_forest): Ditto.
25681 (allocnos_have_intersected_live_ranges_p): Rename to
25682 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
25683 (pseudos_have_intersected_live_ranges_p): Rename to
25684 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
25685 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
25686 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
25687 (update_copy_costs): Remove assert. Skip cost update if the hard
25688 reg does not belong the class.
25689 (assign_hard_reg): Process only profitable hard regs.
25690 (uncolorable_allocnos_num): Make it scalar.
25691 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
25692 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
25693 and ira_reg_class_max_nregs.
25694 (bucket_allocno_compare_func): Check frequency first.
25695 (sort_bucket): Add compare function as a parameter.
25696 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
25697 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
25698 (push_allocno_to_stack): Rewrite for checking new allocno
25699 colorability.
25700 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
25701 (push_only_colorable): Pass new parameter to sort_bucket.
25702 (push_allocno_to_spill): Remove.
25703 (allocno_spill_priority_compare): Make it inline and rewrite.
25704 (splay_tree_allocate, splay_tree_free): Remove.
25705 (allocno_spill_sort_compare): New function.
25706 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
25707 build and use splay tree. Choose first allocno in uncolorable
25708 allocno bucket to spill. Remove setting spill cost.
25709 (all_conflicting_hard_regs): Remove.
25710 (setup_allocno_available_regs_num): Check only profitable hard
25711 regs. Print info about hard regs nodes.
25712 (setup_allocno_left_conflicts_size): Remove.
25713 (put_allocno_into_bucket): Don't call
25714 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
25715 (improve_allocation): New.
25716 (color_allocnos): Call setup_profitable_hard_regs,
25717 form_object_hard_regs_nodes_forest, improve_allocation,
25718 finish_object_hard_regs_nodes_forest. Setup spill cost.
25719 (print_loop_title): Use pressure classes.
25720 (color_allocnso): Ditto.
25721 (do_coloring): Remove allocation and freeing splay_tree_node_pool
25722 and allocnos_for_spilling.
25723 (ira_sort_regnos_for_alter_reg): Don't setup members
25724 {first,next}_coalesced_allocno.
25725 (color): Remove allocating and freeing removed_splay_allocno_vec.
25726 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
25727 prohibited_class_mode_regs.
25728
25729 * ira-lives.c: Remove mentioning cover classes from the file. Fix
25730 formatting.
25731 (update_allocno_pressure_excess_length): Use pressure classes.
25732 (inc_register_pressure, dec_register_pressure): Check for pressure
25733 class.
25734 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
25735 pressure class. Use ira_reg_class_nregs instead of
25736 ira_reg_class_max_nregs.
25737 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
25738 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
25739 (single_reg_class): Use ira_reg_class_nregs instead of
25740 ira_reg_class_max_nregs.
25741 (process_bb_node_lives): Use pressure classes.
25742
25743 * ira-emit.c: Remove mentioning cover classes from the file. Use
25744 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
25745 (change_loop): Use pressure classes.
25746 (modify_move_list): Call ira_set_allocno_class instead of
25747 ira_set_allocno_cover_class.
25748
25749 * ira-build.c: Remove mentioning cover classes from the file. Use
25750 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
25751 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
25752 ALLOCNO_UPDATED_CLASS_COST instead of
25753 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
25754 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
25755 (ira_create_allocno): Remove initialization of
25756 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
25757 ALLOCNO_COLORABLE_P.
25758 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25759 Update conflict regs for the objects.
25760 (create_cap_allocno): Remove assert. Don't propagate
25761 ALLOCNO_AVAILABLE_REGS_NUM.
25762 (ira_free_allocno_costs): New function.
25763 (finish_allocno): Change a part of code into call of
25764 ira_free_allocno_costs.
25765 (low_pressure_loop_node_p): Use pressure classes.
25766 (object_range_compare_func): Don't compare classes.
25767 (setup_min_max_conflict_allocno_ids): Ditto.
25768
25769 * loop-invariant.c: Remove mentioning cover classes from the file.
25770 Use ira_pressure_classes and ira_pressure_classes_num instead of
25771 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
25772 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
25773 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25774 Use reg_allocno_class instead of reg_cover_class.
25775 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
25776 STACK_REG_COVER_CLASS.
25777 (get_regno_cover_class): Rename to get_regno_pressure_class.
25778 (move_loop_invariants): Initialize and finalize regstat.
25779
25780 * ira.c: Remove mentioning cover classes from the file. Add
25781 comments about coloring without cover classes. Use ALLOCNO_CLASS
25782 instead of ALLOCNO_COVER_CLASS. Fix formatting.
25783 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
25784 setup_class_subset_and_memory_move_costs.
25785 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
25786 (setup_cover_and_important_classes): Rename to
25787 setup_allocno_and_important_classes.
25788 (setup_class_translate_array): New.
25789 (setup_class_translate): Call it for allocno and pressure classes.
25790 (cover_class_order): Rename to allocno_class_order.
25791 (comp_reg_classes_func): Use ira_allocno_class_translate instead
25792 of ira_class_translate.
25793 (reorder_important_classes): Set up ira_important_class_nums.
25794 (setup_reg_class_relations): Set up ira_reg_class_superunion.
25795 (print_class_cover): Rename to print_classes. Add parameter.
25796 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25797 Print pressure classes too.
25798 (find_reg_class_closure): Rename to find_reg_classes. Don't call
25799 setup_reg_subclasses.
25800 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25801 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25802 (setup_prohibited_class_mode_regs): Use
25803 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
25804 (clarify_prohibited_class_mode_regs): New function.
25805 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
25806 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
25807 (ira_init_once): Initialize them.
25808 (free_register_move_costs): Process them.
25809 (ira_init): Move calls of find_reg_classes and
25810 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
25811 Call clarify_prohibited_class_mode_regs.
25812 (ira_no_alloc_reg): Remove.
25813 (too_high_register_pressure_p): Use pressure classes.
25814
25815 * sched-deps.c: Remove mentioning cover classes from the file.
25816 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
25817 ira_pressure_classes and ira_pressure_classes_num instead of
25818 ira_reg_class_cover_size and ira_reg_class_cover.
25819 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25820 sched_regno_pressure_class instead of sched_regno_cover_class.
25821 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
25822 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25823
25824 * ira.h: Add 2010 to Copyright.
25825 (ira_no_alloc_reg): Remove external.
25826 (struct target_ira): Rename x_ira_hard_regno_cover_class,
25827 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25828 x_ira_class_translate to x_ira_hard_regno_allocno_class,
25829 x_ira_allocno_classes_num, x_ira_allocno_classes, and
25830 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
25831 x_ira_pressure_classes, x_ira_pressure_class_translate, and
25832 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
25833 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
25834 x_ira_no_alloc_regs.
25835 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25836 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25837 ira_allocno_classes_num and ira_allocno_classes.
25838 (ira_class_translate): Rename to ira_allocno_class_translate.
25839 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25840 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25841 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25842 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25843 (ira_no_alloc_regs): New.
25844
25845 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
25846 classes from the file. Use ALLOCNO_CLASS instead of
25847 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
25848 ALLOCNO_COVER_CLASS_COST.
25849 (regno_cover_class): Rename to regno_aclass.
25850 (record_reg_classes): Use ira_reg_class_subunion instead of
25851 ira_reg_class_union.
25852 (record_address_regs): Check overflow.
25853 (scan_one_insn): Ditto.
25854 (print_allocno_costs): Print total mem cost fore regional allocation.
25855 (print_pseudo_costs): Use REG_N_REFS.
25856 (find_costs_and_classes): Use classes intersected with them on the
25857 1st pass. Check overflow. Use ira_reg_class_subunion instead of
25858 ira_reg_class_union. Use ira_allocno_class_translate and
25859 regno_aclass instead of ira_class_translate and regno_cover_class.
25860 Modify code for finding regno_aclass. Setup preferred classes for
25861 the next pass.
25862 (setup_allocno_cover_class_and_costs): Rename to
25863 setup_allocno_class_and_costs. Use regno_aclass instead of
25864 regno_cover_class. Use ira_set_allocno_class instead of
25865 ira_set_allocno_cover_class.
25866 (init_costs, finish_costs): Use regno_aclass instead of
25867 regno_cover_class.
25868 (ira_costs): Use setup_allocno_class_and_costs instead of
25869 setup_allocno_cover_class_and_costs.
25870 (ira_tune_allocno_costs_and_cover_classes): Rename to
25871 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
25872 by processing objects. Use ira_reg_class_max_nregs instead of
25873 ira_reg_class_nregs.
25874
25875 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25876
25877 * sched-int.h: Remove mentioning cover classes from the file.
25878 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25879
25880 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
25881 classes from the file.
25882 (struct reg_pref): Rename coverclass into allocnoclass.
25883 (reg_cover_class): Rename to reg_allocno_class.
25884
25885 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25886
25887 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25888
25889 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25890
25891 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25892
25893 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25894
25895 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25896
25897 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25898
25899 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25900
25901 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25902
25903 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25904
25905 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25906 (i386_ira_cover_classes): Ditto.
25907
25908 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25909
25910 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25911
25912 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25913
25914 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25915
25916 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25917
25918 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25919
25920 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25921 (mips_ira_cover_classes): Ditto.
25922
25923 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25924
25925 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25926
25927 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25928
25929 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25930
25931 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25932
25933 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25934 (IRA_COVER_CLASSES_VSX): Ditto.
25935
25936 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25937 (rs6000_ira_cover_classes): Ditto.
25938
25939 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25940
25941 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25942
25943 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25944
25945 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25946
25947 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25948
25949 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25950
25951 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25952
25953 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25954
25955 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25956
25957 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25958
25959 2011-03-29 Jakub Jelinek <jakub@redhat.com>
25960
25961 PR debug/48253
25962 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25963 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25964 dw_fde_unlikely_section_end_label, cold_in_std_section,
25965 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25966 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25967 fields.
25968 (output_fde): Use dw_fde_second_{begin,end} if second is
25969 true, otherwise dw_fde_{begin,end}.
25970 (output_call_frame_info): Test dw_fde_second_begin != NULL
25971 instead of dw_fde_switched_sections.
25972 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25973 fields, initialize new fields. Initialize in_std_section
25974 unconditionally from the first partition.
25975 (dwarf2out_end_epilogue): Don't override dw_fde_end when
25976 dw_fde_second_begin is non-NULL.
25977 (dwarf2out_switch_text_section): Stop initializing removed
25978 dw_fde_struct fields, initialize new fields, initialize
25979 also dw_fde_end here. Set dw_fde_switch_cfi even when
25980 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
25981 (struct var_loc_list_def): Add last_before_switch field.
25982 (arange_table, arange_table_allocated, arange_table_in_use,
25983 ARANGE_TABLE_INCREMENT, add_arange): Removed.
25984 (size_of_aranges): Count !in_std_section and !second_in_std_section
25985 hunks in fdes, instead of looking at arange_table_in_use.
25986 (output_aranges): Add aranges_length argument, don't call
25987 size_of_aranges here. Instead of using aranges_table*
25988 emit ranges for fdes when !in_std_section resp.
25989 !second_in_std_section.
25990 (dw_loc_list): Break ranges crossing section switch.
25991 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
25992 use dw_fde_second_end instead of dw_fde_end as end of last range.
25993 (gen_subprogram_die): Don't call add_arange. Use
25994 dw_fde_{begin,end} for first partition and if switched
25995 section dw_fde_second_{begin,end} for the second.
25996 (var_location_switch_text_section_1,
25997 var_location_switch_text_section): New functions.
25998 (dwarf2out_begin_function): Initialize cold_text_section even
25999 when function_section () isn't text_section.
26000 (prune_unused_types): Don't walk arange_table.
26001 (dwarf2out_finish): Don't needlessly test
26002 flag_reorder_blocks_and_partition when testing cold_text_section_used.
26003 If info_section_emitted, call size_of_aranges and if it indicates
26004 non-empty .debug_aranges, call output_aranges with the computed
26005 size. Stop using removed dw_fde_struct fields, use
26006 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
26007 for second.
26008
26009 PR debug/48203
26010 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
26011 create ENTRY_VALUE if incoming or address of incoming's MEM
26012 is a hard REG.
26013 * dwarf2out.c (mem_loc_descriptor): Don't emit
26014 DW_OP_GNU_entry_value of DW_OP_fbreg.
26015 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
26016 on ENTRY_VALUE is able to find the canonical parameter VALUE.
26017 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
26018 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
26019 ENTRY_VALUE_EXPs.
26020 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
26021 is a REG_P or MEM_P with REG_P address, compute hash directly
26022 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
26023 (preserve_only_constants): Don't clear VALUES forwaring
26024 ENTRY_VALUE to some other VALUE.
26025
26026 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
26027
26028 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
26029 instead of GEN_INT.
26030
26031 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
26032
26033 * cfgexpand.c (expand_gimple_cond): Always set the source location and
26034 block before expanding the statement.
26035 (expand_gimple_stmt_1): Likewise. Set them here...
26036 (expand_gimple_stmt): ...and not here. Tidy.
26037 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
26038 unknown.
26039
26040 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
26041
26042 * Makefile.in: New rule for cprop.o.
26043 * gcse.c: Move constant/copy propagation to cprop.c.
26044 (compute_local_properties): Only handle expression tables.
26045 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
26046 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
26047 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
26048 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
26049 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
26050 compute_cprop_data, find_used_regs, try_replace_reg,
26051 find_avail_set, cprop_jump, constprop_register, cprop_insn,
26052 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
26053 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
26054 find_bypass_set, reg_killed_on_edge, bypass_block,
26055 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
26056 execute_rtl_cprop, pass_rtl_cprop): Move to...
26057 * cprop.c: ...here. New file, constant/copy propagation for RTL
26058 moved from gcse.c to here with minor cleanups in duplicated code.
26059
26060 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 * config/i386/i386.c (flag_opts): Fix a typo in
26063 -mavx256-split-unaligned-store.
26064
26065 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26066
26067 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
26068 LIBCALL_VALUE): Remove macros.
26069 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26070 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26071 (h8300_function_value, h8300_libcall_value,
26072 h8300_function_value_regno_p): New functions.
26073
26074 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26075
26076 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
26077
26078 2011-03-28 Jeff Law <law@redhat.com>
26079
26080 * tree-ssa-threadupdate.c (redirect_edges): Call
26081 create_edge_and_update_destination_phis as needed.
26082 (create_edge_and_update_destination_phis): Accept new BB argument.
26083 All callers updated.
26084 (thread_block): Do not update the profile when threading around
26085 intermediate blocks.
26086 (thread_single_edge): Likewise.
26087 (determine_bb_domination_status): If BB is not a successor of the
26088 loop header, return NONDOMINATING.
26089 (register_jump_thread): Note when we register a jump thread around
26090 an intermediate block.
26091 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
26092 (thread_across_edge): Use it.
26093
26094 2011-03-28 Tristan Gingold <gingold@adacore.com>
26095
26096 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
26097 when for_return is 2.
26098
26099 2011-03-28 Jeff Law <law@redhat.com>
26100
26101 * var-tracking.c (canonicalize_values_mark): Delete unused
26102 lhs assignment.
26103 (canonicalize_values_star, set_variable_part): Likewise.
26104 (clobber_variable_part, delete_variable_part): Likewise.
26105
26106 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
26107
26108 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
26109
26110 2011-03-28 Martin Jambor <mjambor@suse.cz>
26111
26112 * tree-inline.c (expand_call_inline): Do not check that destination
26113 node is analyzed.
26114 (optimize_inline_calls): Assert that destination node is analyzed.
26115 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
26116 not call tree_lowering_passes.
26117 * cgraph.h (cgraph_analyze_function): Declare.
26118 * cgraphunit.c (cgraph_analyze_function): Make public.
26119
26120 2011-03-28 Joseph Myers <joseph@codesourcery.com>
26121
26122 * config/sparc/sparc-opts.h: New.
26123 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
26124 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
26125 (sparc_option_override): Store processor_type enumeration rather
26126 than string in cpu_default. Remove name and enumeration from
26127 cpu_table. Directly default -mcpu then default -mtune from -mcpu
26128 without using sparc_select. Use target_flags_explicit instead of
26129 fpu_option_set.
26130 * config/sparc/sparc.h (enum processor_type): Move to
26131 sparc-opts.h.
26132 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
26133 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
26134 HeaderInclude entry.
26135 (mcpu=, mtune=): Use Var and Enum.
26136 (sparc_processor_type): New Enum and EnumValue entries.
26137
26138 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26139 Iain Sandoe <iains@gcc.gnu.org>
26140
26141 PR target/48245
26142 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
26143
26144 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
26145
26146 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
26147 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
26148 Insert new statements at it in lieu of STMT.
26149 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
26150 * tree-vect-stmts.c (vectorizable_store): Likewise.
26151 (vectorizable_load): Likewise.
26152
26153 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
26154
26155 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
26156 (divtf3): Ditto.
26157 (multf3): Ditto.
26158 (subtf3): Ditto.
26159
26160 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
26161
26162 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
26163 unaligned 256bit load/store.
26164 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
26165 (*avx_movdqu<avxmodesuffix>): Likewise.
26166
26167 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26168
26169 PR target/48288
26170 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
26171 * config/pa/pa.md (iordi3): Use new predicate in expander.
26172 (iorsi3): Likewise.
26173
26174 2011-03-27 Anatoly Sokolov <aesok@post.ru>
26175
26176 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
26177 FUNCTION_VALUE_REGNO_P): Remove macros.
26178 * config/mips/mips-protos.h (mips_function_value): Remove.
26179 * config/mips/mips.c (mips_function_value): Rename to...
26180 (mips_function_value_1): ... this. Make static. Handle receiving
26181 the function type in 'fn_decl_or_type' argument.
26182 (mips_function_value, mips_libcall_value,
26183 mips_function_value_regno_p): New function.
26184 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26185 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26186
26187 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
26188
26189 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
26190 and -mavx256-split-unaligned-store.
26191 (ix86_option_override_internal): Split 32-byte AVX unaligned
26192 load/store by default.
26193 (ix86_avx256_split_vector_move_misalign): New.
26194 (ix86_expand_vector_move_misalign): Use it.
26195
26196 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
26197 -mavx256-split-unaligned-store.
26198
26199 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
26200 256bit load/store. Generate unaligned store on misaligned memory
26201 operand.
26202 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
26203 256bit load/store.
26204 (*avx_movdqu<avxmodesuffix>): Likewise.
26205
26206 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
26207 -mavx256-split-unaligned-store.
26208
26209 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
26210
26211 PR target/38598
26212 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
26213 Update commentary.
26214
26215 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
26216
26217 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
26218 opno arguments with an expand_operand. Use create_input_operand.
26219 (mips_prepare_builtin_target): Delete.
26220 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
26221 functions.
26222 (mips_expand_builtin_direct): Use create_output_operand and
26223 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
26224 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
26225 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
26226
26227 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
26228
26229 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
26230 function.
26231 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26232
26233 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
26234
26235 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
26236 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
26237 basic blocks and call commit_edge_insertions directly.
26238 (fixup_abnormal_edges): Move from here to...
26239 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
26240 on the edges and return whether some have actually been inserted.
26241 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
26242 compensation code.
26243
26244 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
26245
26246 PR rtl-optimization/48144
26247 * sel-sched-ir.c (merge_history_vect): Factor out from ...
26248 (merge_expr_data): ... here.
26249 (av_set_intersect): Rename to av_set_code_motion_filter.
26250 Update all callers. Call merge_history_vect when an expression
26251 is found in both sets.
26252 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
26253
26254 2011-03-26 Alan Modra <amodra@gmail.com>
26255
26256 * config/rs6000/predicates.md (word_offset_memref_op): Handle
26257 cmodel medium addresses.
26258 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
26259 64-bit gpr loads and stores.
26260 (rs6000_secondary_reload_ppc64): New function.
26261 * config/rs6000/rs6000-protos.h: Declare it.
26262 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
26263
26264 2011-03-26 Alan Modra <amodra@gmail.com>
26265
26266 PR target/47487
26267 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
26268 GNU Go in traceback table.
26269
26270 2011-03-25 Richard Henderson <rth@redhat.com>
26271
26272 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
26273 if there are exactly 6 operands.
26274 (set_storage_via_setmem): Similarly.
26275
26276 2011-03-25 Kai Tietz <ktietz@redhat.com>
26277
26278 * collect2.c (write_c_file_stat): Handle backslash
26279 as right-hand directory separator.
26280 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
26281 checking just for slash.
26282 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
26283 instead of checking for trailing slash.
26284 * gcc.c (record_temp_file): Use filename_cmp instead
26285 of strcmp.
26286 (do_spec_1): Likewise.
26287 (replace_outfile_spec_function): Likewise.
26288 (is_directory): Use filename_ncmp instead of strncmp.
26289 (print_multilib_info): Likewise.
26290 * gcov.c (find_source): Use filename_cmp instead
26291 instead of strcmp.
26292 (make_gcov_file_name): Fix order of slash/backslash
26293 checks.
26294 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
26295 (add_standard_paths): Likewise.
26296 * mips-tfile.c (saber_stop): Handle backslash.
26297 * prefix.c (update_path): Use filename_ncmp instead of
26298 strncmp.
26299 * profile.c (output_location): Use filename_cmp instead
26300 of strcmp.
26301 * read-md.c (handle_toplevel_file): Handle backslash.
26302 * tlink.c (frob_extension): Likewise.
26303 * tree-cfg.c (same_line_p): Use filename_cmp instead of
26304 strcmp.
26305 * tree-dump.c (dequeue_and_dump): Handle backslash.
26306 * tree.c (get_file_function_name): Likewise.
26307 * gengtype.c (read_input_list): Likewise.
26308 (get_file_realbasename): Likewise.
26309 (get_output_file_with_visibility): Use filename_cmp
26310 instead of strcmp.
26311
26312 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
26313
26314 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
26315 case to VFPv1.
26316
26317 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
26318
26319 * fold-const.c (expr_location_or): New function.
26320 (fold_truth_not_expr): Call it.
26321
26322 2011-03-25 Jeff Law <law@redhat.com>
26323
26324 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
26325 va_end.
26326 * c-family/c-common.c (def_fn_type): Likewise.
26327 * emit-rtl.c (gen_rtvec): Likewise.
26328 * lto/lto-lang.c (def_fn_type): Likewise.
26329
26330 2011-03-25 Richard Guenther <rguenther@suse.de>
26331
26332 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
26333 also generate copies.
26334 (fini_copy_prop): Handle constant values properly.
26335
26336 2011-03-25 Jakub Jelinek <jakub@redhat.com>
26337
26338 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
26339 mode size instead of bitsize with DWARF2_ADDR_SIZE.
26340 (hash_loc_operands, compare_loc_operands): Handle
26341 DW_OP_GNU_entry_value.
26342
26343 2011-03-25 Kai Tietz <ktietz@redhat.com>
26344
26345 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
26346 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
26347 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
26348 comment and use macro TARGET_64BIT_MS_ABI instead.
26349 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
26350 and change default behavior for 32-bit MS_ABI.
26351 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
26352 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
26353 32-bit, too.
26354 (ix86_cfun_abi): Likewise.
26355 (ix86_maybe_switch_abi): Adjust comment.
26356 (init_cumulative_args): Check for bit-ness in MS_ABI case.
26357 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
26358 instead of checking for SYSV_ABI.
26359 (ix86_nsaved_sseregs): Likewise.
26360 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
26361 to 16 bytes.
26362 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
26363 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
26364 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
26365 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
26366 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
26367
26368 2011-03-25 Richard Guenther <rguenther@suse.de>
26369
26370 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
26371 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
26372 (verify_gimple): Remove.
26373 * tree-cfg.c (verify_gimple_call): Merge verification
26374 from verify_stmts.
26375 (verify_gimple_phi): Merge verification from verify_stmts.
26376 (verify_gimple_label): New function.
26377 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
26378 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
26379 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
26380 (verify_stmts): Rename to verify_gimple_in_cfg.
26381 (verify_gimple_in_cfg): New function.
26382 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
26383 * tree-ssa.c (verify_ssa): Likewise.
26384 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
26385
26386 2011-03-25 Richard Guenther <rguenther@suse.de>
26387
26388 * passes.c (init_optimization_passes): Add FRE pass after
26389 early SRA.
26390
26391 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
26392 Andrew Stubbs <ams@codesourcery.com>
26393
26394 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
26395 for Cortex-A8.
26396 (arm_movdi_vfp_cortexa8): New pattern.
26397 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
26398 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
26399 instructions when tuning for Cortex-A8. Set attribute "arch".
26400 * config/arm/arm.md: Move include arm-tune.md up a bit.
26401 (define_attr "arch"): Add "onlya8" and "nota8" values.
26402 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
26403
26404 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
26405
26406 PR bootstrap/48282
26407 Revert:
26408 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26409
26410 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
26411 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
26412 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
26413 * passes.c (init_optimization_passes): Move
26414 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
26415
26416 2011-03-25 Kai Tietz <ktietz@redhat.com>
26417
26418 * c-typeck.c (comptypes_internal): Replace target
26419 hook call of comp_type_attributes by version in tree.c file.
26420 * gimple.c (gimple_types_compatible_p_1): Likewise.
26421 * tree-ssa.c (useless_type_conversion_p): Likewise.
26422 * tree.c (build_type_attribute_qual_variant): Likewise.
26423 (attribute_value_equal): New static helper function.
26424 (comp_type_attributes): New function.
26425 (merge_attributes): Use attribute_value_equal for comparison.
26426 (attribute_list_contained): Likewise.
26427 * tree.h (comp_type_attributes): New prototype.
26428
26429 2011-03-25 Richard Guenther <rguenther@suse.de>
26430
26431 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
26432 of complex types at -O0.
26433 (verify_gimple_assign_binary): Likewise.
26434 (verify_gimple_assign_ternary): Likewise.
26435
26436 2011-03-24 Mark Wielaard <mjw@redhat.com>
26437
26438 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
26439 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
26440
26441 2011-03-24 Mark Wielaard <mjw@redhat.com>
26442
26443 PR debug/48041
26444 * dwarf2out.c (output_abbrev_section): Only write table when
26445 abbrev_die_table_in_use > 1.
26446
26447 2011-02-24 Richard Henderson <rth@redhat.com>
26448
26449 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
26450 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
26451 (alpha_expand_unaligned_load_words): Use extql.
26452 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
26453 (emit_insxl): Handle all modes for consistency.
26454
26455 2011-02-24 Richard Henderson <rth@redhat.com>
26456
26457 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
26458 (alpha_expand_unaligned_load): Likewise.
26459 (alpha_expand_unaligned_store): Likewise.
26460 (alpha_expand_unaligned_load_words): Likewise.
26461 (alpha_expand_unaligned_store_words): Likewise.
26462 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
26463 (alpha_split_lock_test_and_set_12): Likewise.
26464 (print_operand, alpha_fold_builtin_extxx): Likewise.
26465 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
26466 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
26467 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
26468 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
26469 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
26470 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
26471 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
26472 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
26473 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
26474 (extwl, extll, extql): Similarly.
26475 (inswh, inslh, insqh): Similarly.
26476 (mskbl, mskwl, mskll, mskql): Similarly.
26477 (mskwh, msklh, mskqh): Similarly.
26478
26479 2011-02-24 Richard Henderson <rth@redhat.com>
26480
26481 * config/alpha/alpha.md (attribute isa): Add er, ner.
26482 (attribute enabled): Handle them.
26483 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
26484
26485 2011-02-24 Richard Henderson <rth@redhat.com>
26486
26487 * config/alpha/alpha.md (attribute isa): Add vms.
26488 (attribute enabled): Handle it.
26489 (*movsf): Merge *movsf_{nofix,fix,nofp}.
26490 (*movdf): Merge *movdf_{nofix,fix,nofp}.
26491 (*movtf): Rename from *movtf_internal for consistency.
26492 (*movsi): Merge with *movsi_nt_vms.
26493 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
26494 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
26495 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
26496 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
26497
26498 2011-02-24 Richard Henderson <rth@redhat.com>
26499
26500 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
26501 (extendqisi2, extendhisi2): Likewise.
26502 (extendqidi2): Simplify BWX/non-BWX expansions.
26503 (extendhidi2): Similarly.
26504
26505 2011-02-24 Richard Henderson <rth@redhat.com>
26506
26507 * config/alpha/alpha.md (attribute isa): New.
26508 (attribute enabled): New.
26509 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
26510 (zero_extendqisi2, zero_extendqidi2): Similarly.
26511 (zero_extendhisi2, zero_extendhidi2): Similarly.
26512 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
26513
26514 2011-02-24 Richard Henderson <rth@redhat.com>
26515
26516 * config/alpha/predicates.md (input_operand): Revert last change;
26517 update comment to mention 32-bit VMS rather than Windows.
26518
26519 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26520
26521 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
26522 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
26523 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
26524 * passes.c (init_optimization_passes): Move
26525 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
26526
26527 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26528
26529 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
26530
26531 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
26532
26533 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
26534 correctly.
26535
26536 2011-03-24 Jakub Jelinek <jakub@redhat.com>
26537
26538 PR debug/48204
26539 * simplify-rtx.c (simplify_const_unary_operation): Call
26540 real_convert when changing mode class with FLOAT_EXTEND.
26541
26542 2011-03-24 Nick Clifton <nickc@redhat.com>
26543
26544 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
26545 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
26546 * config/rx/rx.c (rx_option_override): Set align_jumps,
26547 align_loops and align_labels if not set by the user.
26548 (rx_align_for_label): New function.
26549 (rx_max_skip_for_label): New function.
26550 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
26551 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
26552 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
26553 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
26554 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
26555
26556 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26557
26558 PR rtl-optimization/48263
26559 * optabs.c (expand_binop_directly): Reinstate convert_modes code
26560 and original commutative_p handling. Use maybe_gen_insn.
26561
26562 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26563
26564 * reload.c (find_reloads_subreg_address): Add address_reloaded
26565 parameter and return true there if the full address has been
26566 reloaded.
26567 (find_reloads_toplev): Pass address_reloaded flag.
26568 (find_reloads_address_1): Don't use address_reloaded parameter.
26569
26570 2011-03-24 Jeff Law <law@redhat.com>
26571
26572 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
26573 unused variable "ann".
26574 (remove_unused_locals): Likewise.
26575
26576 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
26577 statement.
26578
26579 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
26580 after it is freed.
26581
26582 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26583
26584 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
26585 for invalid symbolic addresses.
26586 (s390_secondary_reload): Don't use s390_check_symref_alignment for
26587 larl operands.
26588
26589 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26590
26591 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
26592 the argument in calls to fold_truth_not_expr.
26593
26594 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26595
26596 * tree.c (record_node_allocation_statistics): New function.
26597 (make_node_stat, copy_node_stat, build_string): Call it.
26598 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
26599 (build1_stat, build_omp_clause): Likewise.
26600
26601 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26602
26603 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
26604 last commit.
26605
26606 2011-03-24 Richard Guenther <rguenther@suse.de>
26607
26608 PR tree-optimization/48271
26609 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
26610 blocks that still exist.
26611
26612 2011-03-24 Richard Guenther <rguenther@suse.de>
26613
26614 PR tree-optimization/48270
26615 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
26616 not free datarefs before ddrs.
26617
26618 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26619
26620 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
26621 from the address built for a reference with variable offset.
26622
26623 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
26624
26625 PR target/48237
26626 * config/i386/i386.md (*movdf_internal_rex64): Do not split
26627 alternatives that can be handled with movq or movabsq insn.
26628 (*movdf_internal): Disable for !TARGET_64BIT.
26629 (*movdf_internal_nointeger): Ditto.
26630 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
26631
26632 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26633
26634 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26635 (FUNCTION_ARG_ADVANCE): Likewise.
26636 * tm.texi.in: Change references to them to hook references.
26637 * tm.texi: Regenerate.
26638 * targhooks.c (default_function_arg): Eliminate check for target macro.
26639 (default_function_incoming_arg): Likewise.
26640 (default_function_arg_advance): Likewise.
26641 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26642 (function_arg_advance): Likewise.
26643 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26644
26645 2011-03-24 Richard Guenther <rguenther@suse.de>
26646
26647 PR middle-end/48269
26648 * tree-object-size.c (addr_object_size): Do not double-account
26649 for MEM_REF offsets.
26650
26651 2011-03-24 Diego Novillo <dnovillo@google.com>
26652
26653 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
26654 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
26655 (lto_input_data_block): Move from lto-opts.c. Make extern.
26656 Update all users.
26657 (lto_input_string): Rename from input_string. Make extern.
26658 Update all users.
26659 * lto-streamer-out.c (lto_output_string_with_length): Rename from
26660 output_string_with_length.
26661 Output 0 to indicate a non-NULL string. Update all callers to
26662 not emit 0.
26663 (lto_output_string): Rename from output_string. Make extern.
26664 Update all users.
26665 (lto_output_decl_state_streams): Make extern.
26666 (lto_output_decl_state_refs): Make extern.
26667 * lto-streamer.h (lto_input_string): Declare.
26668 (lto_input_data_block): Declare.
26669 (lto_output_string): Declare.
26670 (lto_output_string_with_length): Declare.
26671 (lto_output_decl_state_streams): Declare.
26672 (lto_output_decl_state_refs): Declare.
26673
26674 2011-03-24 Richard Guenther <rguenther@suse.de>
26675
26676 PR tree-optimization/46562
26677 * tree.c (build_invariant_address): New function.
26678 * tree.h (build_invariant_address): Declare.
26679 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
26680 a renamed function moved ...
26681 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
26682 Take valueization callback parameter.
26683 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
26684 * gimple-fold.h: New file.
26685 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
26686 (ccp_fold, fold_const_aggregate_ref,
26687 fold_ctor_reference, fold_nonarray_ctor_reference,
26688 fold_array_ctor_reference, fold_string_cst_ctor_reference,
26689 get_base_constructor): Move ...
26690 * gimple-fold.c: ... here.
26691 (gimple_fold_stmt_to_constant_1): New function
26692 split out from ccp_fold. Take a valueization callback parameter.
26693 Valueize all operands.
26694 (gimple_fold_stmt_to_constant): New wrapper function.
26695 (fold_const_aggregate_ref_1): New function split out from
26696 fold_const_aggregate_ref. Take a valueization callback parameter.
26697 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
26698 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
26699 invariant POINTER_PLUS_EXPRs to invariant form.
26700 (vn_valueize): New function.
26701 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
26702 * tree-vrp.c (vrp_valueize): New function.
26703 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
26704 to fold statements to constants.
26705 * tree-ssa-pre.c (eliminate): Properly guard propagation of
26706 function declarations.
26707 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
26708 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
26709
26710 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26711
26712 * config/h8300/predicates.md (jump_address_operand): Fix register
26713 mode check.
26714
26715 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
26716
26717 * doc/invoke.texi (max-stores-to-sink): Document.
26718 * params.h (MAX_STORES_TO_SINK): Define.
26719 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
26720 if either vectorization or if-conversion is disabled.
26721 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
26722 tree-vect-data-refs.c vect_equal_offsets.
26723 (dr_equal_offsets_p): New function.
26724 (find_data_references_in_bb): Remove static.
26725 * tree-data-ref.h (find_data_references_in_bb): Declare.
26726 (dr_equal_offsets_p): Likewise.
26727 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
26728 (vect_drs_dependent_in_basic_block): Update calls to
26729 vect_equal_offsets.
26730 (vect_check_interleaving): Likewise.
26731 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
26732 (cond_if_else_store_replacement): Rename to...
26733 (cond_if_else_store_replacement_1): ... this. Change arguments and
26734 documentation.
26735 (cond_if_else_store_replacement): New function.
26736 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
26737 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
26738
26739 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
26740
26741 PR target/46934
26742 * config/arm/arm.md (casesi): Use the gen_int_mode() function
26743 to subtract lower bound instead of GEN_INT().
26744
26745 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
26746
26747 PR other/48179
26748 PR other/48221
26749 PR other/48234
26750 * doc/extend.texi (Alignment): Move section to match order in TOC.
26751 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
26752 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
26753
26754 2011-03-23 Jeff Law <law@redhat.com>
26755
26756 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
26757 before removing the edge.
26758
26759 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
26760 it may have been freed by redirect_branch_edge or
26761 redirect_edge_succ_nodup.
26762
26763 2011-03-23 Richard Guenther <rguenther@suse.de>
26764
26765 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
26766 (check_va_list_escapes): Likewise.
26767 (check_all_va_list_escapes): Likewise.
26768
26769 2011-03-23 Richard Guenther <rguenther@suse.de>
26770
26771 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
26772 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
26773 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
26774 (alias.o): Likewise.
26775 (ipa-type-escape.o): Remove.
26776 (ipa-struct-reorg.o): Likewise.
26777 (GTFILES): Remove ipa-struct-reorg.c.
26778 * alias.c: Do not include ipa-type-escape.h.
26779 * tree-ssa-alias.c: Likewise.
26780 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
26781 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
26782 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
26783 and ipa-type-escape passes.
26784 * tree-pass.h (pass_ipa_type_escape): Remove.
26785 (pass_ipa_struct_reorg): Likewise.
26786 * ipa-struct-reorg.h: Remove.
26787 * ipa-struct-reorg.c: Likewise.
26788 * ipa-type-escape.h: Likewise.
26789 * ipa-type-escape.c: Likewise.
26790 * doc/invoke.texi (-fipa-struct-reorg): Remove.
26791 (--param struct-reorg-cold-struct-ratio): Likewise.
26792 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26793 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26794 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
26795
26796 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26797
26798 * config/s390/2084.md: Enable all insn reservations also for z9_ec
26799 cpu attribute value.
26800 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
26801 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
26802 * config/s390/s390.c (processor_flags_table): New constant array.
26803 (s390_handle_arch_option): Remove.
26804 (s390_handle_option): Remove s390_handle_arch_option invocations
26805 and OPT_mwarn_framesize_ handling.
26806 (s390_option_override): Remove s390_handle_arch_option invocation.
26807 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
26808 warnings.
26809 * config/s390/s390.md (cpu attribute): Add z9_ec value.
26810 * config/s390/s390.opt (s390_tune, s390_arch)
26811 (march=): Replace s390_arch_option enum and values with
26812 processor_type. Set variable name to s390_arch. Set
26813 initialization value.
26814 (mtune=): Replace s390_arch_option with processor_type. Set
26815 variable name to s390_tune. Set initialization value.
26816
26817 2011-03-23 Julian Brown <julian@codesourcery.com>
26818
26819 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26820 accesses which are not naturally aligned.
26821
26822 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
26823
26824 PR target/47553
26825 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26826
26827 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
26828
26829 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26830 parameter from "int" to "enum insn_code".
26831 (expand_operand_type): New enum.
26832 (expand_operand): New structure.
26833 (create_expand_operand): New function.
26834 (create_fixed_operand, create_output_operand): Likewise
26835 (create_input_operand, create_convert_operand_to): Likewise.
26836 (create_convert_operand_from, create_address_operand): Likewise.
26837 (create_integer_operand): Likewise.
26838 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26839 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26840 (expand_insn, expand_jump_insn): Likewise.
26841 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26842 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26843 (expand_movstr, expand_builtin___clear_cache): Likewise.
26844 (expand_builtin_lock_release): Likewise.
26845 * explow.c (allocate_dynamic_stack_space): Likewise.
26846 (probe_stack_range): Likewise. Allow check_stack to FAIL,
26847 and use the default handling in that case.
26848 * expmed.c (check_predicate_volatile_ok): Delete.
26849 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26850 (emit_cstore): Likewise.
26851 * expr.c (emit_block_move_via_movmem): Likewise.
26852 (set_storage_via_setmem, expand_assignment): Likewise.
26853 (emit_storent_insn, try_casesi): Likewise.
26854 (emit_single_push_insn): Likewise. Allow the expansion to fail.
26855 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26856 (expand_vec_shift_expr, expand_binop_directly): Likewise.
26857 (expand_twoval_unop, expand_twoval_binop): Likewise.
26858 (expand_unop_direct, emit_indirect_jump): Likewise.
26859 (emit_conditional_move, vector_compare_rtx): Likewise.
26860 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26861 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26862 (expand_sync_lock_test_and_set): Likewise.
26863 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
26864 (emit_unop_insn): Likewise.
26865 (expand_copysign_absneg): Change icode to an insn_code.
26866 (create_convert_operand_from_type): New function.
26867 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26868 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26869 (expand_insn, expand_jump_insn): Likewise.
26870 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26871 than const_int_operand for operand 2.
26872
26873 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26874
26875 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26876 if possible.
26877
26878 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26879
26880 * emit-rtl.c (emit_pattern_before_noloc): New function.
26881 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26882 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26883 (emit_pattern_after_noloc): New function.
26884 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26885 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26886
26887 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26888
26889 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26890 (__ffsDI2): Likewise.
26891
26892 2011-03-22 Richard Henderson <rth@redhat.com>
26893
26894 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26895 of !TARGET_ABI_OPEN_VMS.
26896 (alpha_trampoline_init, alpha_start_function): Likewise.
26897 (alpha_expand_epilogue, alpha_file_start): Likewise.
26898 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26899 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26900 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26901 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26902 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26903
26904 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26905
26906 * config/s390/s390-opts.h: New.
26907 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26908 s390_arch_flags, s390_warn_framesize, s390_stack_size,
26909 s390_stack_guard): Remove.
26910 (s390_handle_arch_option): Return void. Take enum
26911 s390_arch_option value instead of string and searching array.
26912 (s390_handle_option): Don't assert that global structures are in
26913 use. Access variables via opts pointer. Use error_at. Don't use
26914 sscanf for -mstack-guard= or -mstack-size=. Update call to
26915 s390_handle_arch_option.
26916 (s390_option_override): Update call to s390_handle_arch_option.
26917 (s390_emit_prologue): Use %d format for s390_stack_size in
26918 diagnostic. Use %wd for HOST_WIDE_INT.
26919 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26920 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26921 * config/s390/s390.opt (config/s390/s390-opts.h): New
26922 HeaderInclude entry.
26923 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26924 s390_arch_flags, s390_warn_framesize): New Variable entries.
26925 (s390_arch_option): New Enum and EnumValue entries.
26926 (march=): Use Enum instead of Var.
26927 (mstack-guard=, mstack-size=): Use UInteger and Var.
26928 (mtune=): Use Enum.
26929
26930 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26931
26932 * config/score/score.c (score_handle_option): Don't assert that
26933 global structures are in use. Access target_flags via opts
26934 pointer. Use value of -march= option to determine target_flags
26935 settings.
26936 * config/score/score.opt (march=): Use Enum.
26937 (score_arch): New Enum and EnumValue entries.
26938
26939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26940
26941 * config/mep/mep.c (option_mtiny_specified): Remove.
26942 (mep_option_override): Move register handling for -mivc2 from
26943 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
26944 instead of option_mtiny_specified.
26945 (mep_handle_option): Access target_flags via opts pointer. Don't
26946 assert that global structures are in use. Defer part of -mivc2
26947 handling and move it to mep_option_override.
26948 * config/mep/mep.opt (IVC2): New Mask entry.
26949 (mivc2): Use Var and Defer instead of Mask.
26950
26951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26952
26953 * config/v850/v850-opts.h: New.
26954 * config/v850/v850.c (small_memory): Replace with
26955 small_memory_physical_max array. Make that array static const.
26956 (v850_handle_memory_option): Take integer value of argument. Take
26957 gcc_options pointer, option text and location. Return void.
26958 Update for changes to small memory structures.
26959 (v850_handle_option): Access target_flags via opts pointer. Don't
26960 assert that global structures are in use. Update calls to
26961 v850_handle_memory_option.
26962 (v850_encode_data_area): Update references to small memory settings.
26963 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26964 (enum small_memory_type): Move to v850-opts.h.
26965 * config/v850/v850.opt (config/v850/v850-opts.h): New
26966 HeaderInclude entry.
26967 (small_memory_max): New Variable entry.
26968 (msda): Replace by pair of options msda= and msda-. Use UInteger.
26969 (mtda, mzda): Likewise.
26970
26971 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26972
26973 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26974 pointer. Don't assert that global structures are in use.
26975
26976 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26977
26978 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26979 via opts pointer. Don't assert that global structures are in use.
26980
26981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26982
26983 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26984 (munix=93): Use Var.
26985 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26986 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26987 * config/pa/pa-opts.h: New.
26988 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26989 (pa_handle_option): Don't assert that global structures are in
26990 use. Access target_flags via opts pointer. Don't handle
26991 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26992 OPT_munix_98 here.
26993 (pa_option_override): Handle deferred OPT_mfixed_range_.
26994
26995 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26996
26997 * config/mn10300/mn10300-opts.h: New.
26998 * config/mn10300/mn10300.c (mn10300_processor,
26999 mn10300_tune_string): Remove.
27000 (mn10300_handle_option): Don't assert that global structures are
27001 in use. Access mn10300_processor via opts pointer. Don't handle
27002 OPT_mtune_ here.
27003 * config/mn10300/mn10300.h (enum processor_type): Move to
27004 mn10300-opts.h.
27005 (mn10300_processor): Remove.
27006 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
27007 HeaderInclude entry.
27008 (mn10300_processor): New Variable entry.
27009 (mtune=): Use Var.
27010
27011 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27012
27013 * config/microblaze/microblaze.c: Don't include opts.h.
27014 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
27015 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
27016 (mno-clearbss): Use Var and Warn.
27017
27018 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27019
27020 * config/m32r/m32r-opts.h: New.
27021 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
27022 (m32r_handle_option): Don't assert that global structures are in
27023 use. Access target_flags and m32r_cache_flush_func via opts
27024 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
27025 OPT_mno_flush_trap here.
27026 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
27027 include of m32r-opts.h.
27028 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
27029 HeaderInclude entry.
27030 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
27031 (mmodel=): Use Enum and Var.
27032 (m32r_model): New Enum and EnumValue entries.
27033 (mno-flush-trap): Use Var.
27034 (msdata=): Use Enum and Var.
27035 (m32r_sdata): New Enum and EnumValue entries.
27036
27037 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27038
27039 * config/m32c/m32c.c: Don't include opts.h.
27040 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
27041 m32c_handle_option): Remove.
27042 (m32c_option_override): Check global_options_set.x_target_memregs
27043 instead of target_memregs_set.
27044 * config/m32c/m32c.h (target_memregs): Remove.
27045 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
27046 variable.
27047
27048 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27049
27050 * config/iq2000/iq2000-opts.h: New.
27051 * config/iq2000/iq2000.c: Don't include opts.h.
27052 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
27053 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
27054 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
27055 HeaderInclude entry.
27056 (iq2000_tune): New Variable entry.
27057 (march=): Add comment. Use Enum.
27058 (iq2000_arch): New Enum and EnumValue entries.
27059 (mcpu=): Use Enum and Var.
27060 (iq2000_tune): New Enum and EnumValue entries.
27061
27062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27063
27064 * config/ia64/ia64-opts.h: New.
27065 * config/ia64/ia64.c (ia64_tune): Remove.
27066 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
27067 here. Use error_at.
27068 (ia64_option_override): Handle deferred OPT_mfixed_range_.
27069 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
27070 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
27071 HeaderInclude entry.
27072 (ia64_tune): New Variable entry.
27073 (mfixed-range=): Use Defer and Var.
27074 (mtune=): Use Enum and Var.
27075 (ia64_tune): New Enum and EnumValue entries.
27076
27077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27078
27079 * config/frv/frv-opts.h: New.
27080 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
27081 frv-opts.h.
27082 (frv_cpu_type): Remove.
27083 * config/frv/frv.c: Don't include opts.h.
27084 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
27085 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
27086 (frv_cpu_type): New Variable entry.
27087 (frv_cpu): New Enum and EnumValue entries.
27088
27089 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27090
27091 * config/cris/cris.c (cris_handle_option): Access target_flags via
27092 opts pointer. Don't assert that global structures are in use.
27093 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
27094 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
27095
27096 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27097
27098 * config/bfin/bfin-opts.h: New.
27099 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
27100 bfin_si_revision, bfin_workarounds): Remove.
27101 (bfin_cpus): Make static const.
27102 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
27103 not bfin_lib_id_given.
27104 (bfin_handle_option): Don't set bfin_lib_id_given. Access
27105 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
27106 pointer. Use error_at. Don't assert that global structures are in use.
27107 * config/bfin/bfin.h: Include bfin-opts.h.
27108 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
27109 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
27110 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
27111 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
27112 entries.
27113
27114 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27115
27116 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
27117 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
27118 or -msoft-float here.
27119 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
27120 -msoft-float and -mhard-float.
27121 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
27122 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
27123 msoft-float.
27124 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
27125 -msoft-float.
27126 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
27127 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
27128 not mhard-float.
27129 (LIBGCC_SPEC): Don't handle -msoft-float.
27130 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
27131 -mhard-float.
27132 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
27133 msoft-float.
27134 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
27135 -mfloat-abi=*, not -msoft-float and -mhard-float.
27136 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
27137 -msoft-float.
27138 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
27139 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
27140 mhard-float and msoft-float.
27141 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
27142 mfloat-abi=soft in comments, not mhard-float and msoft-float.
27143 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
27144 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
27145 mhard-float.
27146 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
27147 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
27148 msoft-float.
27149 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
27150 not mhard-float.
27151 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
27152 not msoft-float.
27153
27154 2011-03-22 Richard Henderson <rth@redhat.com>
27155
27156 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
27157 TARGET_ABI_WINDOWS_NT.
27158 (alpha_output_function_end_prologue): Likewise.
27159 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
27160 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
27161 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
27162 (trap, *movsi_nt_vms): Likewise.
27163 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
27164 (*tablejump_osf_nt_internal): Remove.
27165 * config/alpha/predicates.md (input_operand): Only test Pmode.
27166
27167 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27168
27169 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
27170 via opts pointer. Use error_at. Don't assert that global
27171 structures are in use.
27172
27173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27174
27175 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
27176 (ix86_handle_option): Access ix86_isa_flags and
27177 ix86_isa_flags_explicit via opts pointer. Don't assert that
27178 global structures are in use.
27179 (ix86_function_specific_save, ix86_function_specific_restore):
27180 Update ix86_isa_flags_explicit field name.
27181 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
27182 (ix86_isa_flags_explicit): Rename TargetSave entry to
27183 x_ix86_isa_flags_explicit.
27184
27185 2011-03-22 Richard Henderson <rth@redhat.com>
27186
27187 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
27188 (alpha_option_override, direct_return): Likewise.
27189 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
27190 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
27191 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
27192 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
27193 (alpha_expand_epilogue, alpha_end_function): Likewise.
27194 (alpha_init_libfuncs): Likewise.
27195 (struct machine_function): Remove unicosmk members.
27196 (print_operand) ['t']: Remove.
27197 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
27198 unicosmk_output_module_name, unicosmk_output_common,
27199 current_section_align, unicosmk_output_text_section_asm_op,
27200 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
27201 unicosmk_section_type_flags, unicosmk_unique_section,
27202 unicosmk_asm_named_section, unicosmk_insert_attributes,
27203 unicosmk_output_align, unicosmk_defer_case_vector,
27204 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
27205 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
27206 unicosmk_output_ssib, unicosmk_add_call_info_word,
27207 unicosmk_extern_head, unicosmk_output_default_externs,
27208 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
27209 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
27210 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
27211 * config/alpha/alpha-protos.h: Update.
27212 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
27213 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
27214 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
27215 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
27216 (*mulsi_se, mulvsi3): Likewise.
27217 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
27218 (*divmodsi_internal, call, call_value, realign): Likewise.
27219 (moddi3, umoddi3): Likewise; remove duplicate expander.
27220 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
27221 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
27222 (*movdi_nofix): Remove r/U alternative.
27223 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
27224 * config/alpha/constraints.md ("U"): Remove.
27225 * config/alpha/predicates.md (call_operand"): Don't test
27226 TARGET_ABI_UNICOSMK.
27227
27228 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27229
27230 * target.def (handle_option): Take gcc_options and
27231 cl_decoded_option pointers and location_t.
27232 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
27233 * doc/tm.texi: Regenerate.
27234 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
27235 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
27236 * lto-opts.c (lto_reissue_options): Generate option structure for
27237 targetm.handle_option call.
27238 * opts.c (target_handle_option): Update call to
27239 targetm.handle_option. Remove assertions about values now passed
27240 down to hook.
27241 * targhooks.c (default_target_handle_option): New.
27242 * targhooks.h (default_target_handle_option): Declare.
27243 * config/alpha/alpha.c: Include opts.h.
27244 (alpha_handle_option): Update to new hook interface.
27245 * config/arm/arm.c: Include opts.h.
27246 (arm_handle_option): Update to new hook interface.
27247 * config/arm/t-arm (arm.o): Update dependencies.
27248 * config/bfin/bfin.c: Include opts.h.
27249 (bfin_handle_option): Update to new hook interface.
27250 * config/cris/cris.c: Include opts.h.
27251 (cris_handle_option): Update to new hook interface.
27252 * config/frv/frv.c: Include opts.h.
27253 (frv_handle_option): Update to new hook interface.
27254 * config/i386/i386.c: Include opts.h.
27255 (ix86_handle_option): Update to new hook interface.
27256 (ix86_valid_target_attribute_inner_p): Generate option structure
27257 for call to ix86_handle_option.
27258 * config/i386/t-i386 (i386.o): Update dependencies.
27259 * config/ia64/ia64.c: Include opts.h.
27260 (ia64_handle_option): Update to new hook interface.
27261 * config/ia64/t-ia64 (ia64.o): Update dependencies.
27262 * config/iq2000/iq2000.c: Include opts.h.
27263 (iq2000_handle_option): Update to new hook interface.
27264 * config/m32c/m32c.c: Include opts.h.
27265 (m32c_handle_option): Update to new hook interface.
27266 * config/m32r/m32r.c: Include opts.h.
27267 (m32r_handle_option): Update to new hook interface.
27268 * config/m68k/m68k.c: Include opts.h.
27269 (m68k_handle_option): Update to new hook interface.
27270 * config/mep/mep.c: Include opts.h.
27271 (mep_handle_option): Update to new hook interface.
27272 * config/microblaze/microblaze.c: Include opts.h.
27273 (microblaze_handle_option): Update to new hook interface.
27274 * config/mips/mips.c: Include opts.h.
27275 (mips_handle_option): Update to new hook interface.
27276 * config/mn10300/mn10300.c: Include opts.h.
27277 (mn10300_handle_option): Update to new hook interface.
27278 * config/pa/pa.c: Include opts.h.
27279 (pa_handle_option): Update to new hook interface.
27280 * config/pdp11/pdp11.c: Include opts.h.
27281 (pdp11_handle_option): Update to new hook interface.
27282 * config/rs6000/rs6000.c: Include opts.h.
27283 (rs6000_handle_option): Update to new hook interface.
27284 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
27285 * config/rx/rx.c: Include opts.h.
27286 (rx_handle_option): Update to new hook interface.
27287 * config/s390/s390.c: Include opts.h.
27288 (s390_handle_option): Update to new hook interface.
27289 * config/score/score.c: Include opts.h.
27290 (score_handle_option): Update to new hook interface.
27291 * config/sh/sh.c: Include opts.h.
27292 (sh_handle_option): Update to new hook interface.
27293 * config/sparc/sparc.c: Include opts.h.
27294 (sparc_handle_option): Update to new hook interface.
27295 * config/v850/v850.c: Include opts.h.
27296 (v850_handle_option): Update to new hook interface.
27297
27298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27299
27300 * gcc.c (driver_unknown_option_callback): Only permit and save
27301 unknown -Wno- options.
27302 (driver_wrong_lang_callback): Save options directly instead of via
27303 driver_unknown_option_callback.
27304
27305 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
27306
27307 * combine.c (simplify_set): Try harder to find the best CC mode when
27308 simplifying a nested COMPARE on the RHS.
27309
27310 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27311
27312 * config/alpha/gnu.h: Remove.
27313 * config/arc: Remove directory.
27314 * config/arm/netbsd.h: Remove.
27315 * config/arm/t-pe: Remove.
27316 * config/crx: Remove directory.
27317 * config/i386/netbsd.h: Remove.
27318 * config/m68hc11: Remove directory.
27319 * config/m68k/uclinux-oldabi.h: Remove.
27320 * config/mcore/mcore-pe.h: Remove.
27321 * config/mcore/t-mcore-pe: Remove.
27322 * config/netbsd-aout.h: Remove.
27323 * config/rs6000/gnu.h: Remove.
27324 * config/sh/sh-symbian.h: Remove.
27325 * config/sh/symbian-base.c: Remove.
27326 * config/sh/symbian-c.c: Remove.
27327 * config/sh/symbian-cxx.c: Remove.
27328 * config/sh/symbian-post.h: Remove.
27329 * config/sh/symbian-pre.h: Remove.
27330 * config/sh/t-symbian: Remove.
27331 * config/svr3.h: Remove.
27332 * config/vax/netbsd.h: Remove.
27333 * config.build: Don't handle i[34567]86-*-pe.
27334 * config.gcc: Remove handling of deprecations for most deprecated
27335 targets.
27336 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
27337 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
27338 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
27339 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
27340 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
27341 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
27342 Remove cases.
27343 * config.host: Don't handle i[34567]86-*-pe.
27344 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
27345 (ASM_SPEC32): Don't handle -mcall-gnu.
27346 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
27347 -mcall-gnu.
27348 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
27349 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
27350 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
27351 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
27352 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
27353 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
27354 conditional on SYMBIAN.
27355 * configure.ac: Don't handle powerpc*-*-gnu*.
27356 * configure: Regenerate.
27357 * doc/extend.texi (interrupt attribute): Don't mention CRX.
27358 * doc/install-old.texi (m6811, m6812): Don't mention.
27359 * doc/install.texi (arc-*-elf*): Don't document multilib option.
27360 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
27361 (m68k-uclinuxoldabi): Don't mention.
27362 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
27363 Remove.
27364 (-mcall-gnu): Remove.
27365 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
27366 families): Remove constraint documentation.
27367
27368 2011-03-22 Marius Strobl <marius@FreeBSD.org>
27369
27370 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
27371 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
27372 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
27373
27374 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
27375
27376 PR target/48226
27377 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
27378 vector when peeking at the next token for vector, don't expand the
27379 keywords.
27380
27381 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
27382
27383 * config/avr/avr-protos.h (expand_epilogue): Change prototype
27384 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
27385 * config/avr/avr.c (init_cumulative_args)
27386 (avr_function_arg_advance): Use it.
27387 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
27388 sibcall epilogues.
27389 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
27390 (avr_function_ok_for_sibcall): ...this new function.
27391 (avr_lookup_function_attribute1): New static Function.
27392 (avr_naked_function_p, interrupt_function_p)
27393 (signal_function_p, avr_OS_task_function_p)
27394 (avr_OS_main_function_p): Use it.
27395 * config/avr/avr.md ("sibcall", "sibcall_value")
27396 ("sibcall_epilogue"): New expander.
27397 ("*call_insn", "*call_value_insn"): New insn.
27398 ("call_insn", "call_value_insn"): Remove
27399 ("call", "call_value", "epilogue"): Change expander to handle
27400 sibling calls.
27401
27402 2011-03-21 Nick Clifton <nickc@redhat.com>
27403
27404 * doc/invoke.texi (Overall Options): Move closing brace to end of
27405 options list.
27406 (Optimization Options): Add missing @gol.
27407 (Directory Options): Likewise.
27408 (i386 and x86-64 Options): Likewise.
27409 (RS6000 and PowerPC Options): Likewise.
27410 (i386 and x86-64 Windows Options): Likewise.
27411 (V850 Options): Add text missing from descriptions.
27412
27413 2011-03-22 Richard Henderson <rth@redhat.com>
27414
27415 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
27416 (avr_incoming_return_addr_rtx): New.
27417 (emit_push_byte): New.
27418 (expand_prologue): Use it. Remove incorrect dwarf annotation for
27419 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
27420 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
27421 (emit_pop_byte): New.
27422 (expand_epilogue): Use it. Pop frame pointer by bytes.
27423 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
27424 (INCOMING_RETURN_ADDR_RTX): New.
27425 (INCOMING_FRAME_SP_OFFSET): New.
27426 (ARG_POINTER_CFA_OFFSET): New.
27427 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
27428 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
27429 (pophi): Remove.
27430
27431 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
27432
27433 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27434
27435 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
27436 (FUNCTION_ARG_ADVANCE): Likewise.
27437 * tm.texi.in: Change references to them to hook references.
27438 * tm.texi: Regenerate.
27439 * targhooks.c (default_function_arg): Eliminate check for target
27440 macro.
27441 (default_function_incoming_arg): Likewise.
27442 (default_function_arg_advance): Likewise.
27443 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
27444 (function_arg_advance): Likewise.
27445 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
27446
27447 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27448
27449 * tree.c (build_call_1): New function.
27450 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
27451
27452 2011-03-22 Richard Guenther <rguenther@suse.de>
27453
27454 PR tree-optimization/48228
27455 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
27456 for single-arg PHIs.
27457
27458 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
27459
27460 PR rtl-optimization/48143
27461 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
27462 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
27463 sse2_cvtps2pd): Likewise.
27464
27465 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27466
27467 * recog.c (canonicalize_change_group): Use validate_unshare_change.
27468
27469 2011-03-22 Richard Guenther <rguenther@suse.de>
27470
27471 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
27472 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
27473 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
27474 and REALIGN_LOAD_EXPR.
27475 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
27476 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
27477 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
27478 DOT_PROD_EXPR case ...
27479 (expand_expr_real_2): ... here.
27480 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
27481 and REALIGN_LOAD_EXPR.
27482 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
27483 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
27484 (vect_create_epilog_for_reduction): Likewise.
27485 (vectorizable_reduction): Likewise.
27486 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
27487 * tree-vect-stmts.c (vectorizable_load): Likewise.
27488
27489 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
27490
27491 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
27492
27493 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27494
27495 * config/s390/s390.c (s390_delegitimize_address): Fix offset
27496 handling for PLTOFF/GOTOFF.
27497
27498 2011-03-22 Nick Clifton <nickc@redhat.com>
27499
27500 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
27501 trailing backslash from the end of the macro definition.
27502
27503 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27504
27505 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
27506 and PLT unspecs.
27507
27508 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
27509
27510 * expr.h (prepare_operand): Move to...
27511 * optabs.h (prepare_operand): ...here and change the insn code
27512 parameter from "int" to "enum insn_code".
27513 (insn_operand_matches): Declare.
27514 * expr.c (init_expr_target): Use insn_operand_matches.
27515 (compress_float_constant): Likewise.
27516 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
27517 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
27518 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
27519 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
27520 Likewise.
27521 (gen_cond_trap): Likewise.
27522 (prepare_operand): Likewise. Change icode to an insn_code.
27523 (insn_operand_matches): New function.
27524 * reload.c (find_reloads_address_1): Use insn_operand_matches.
27525 * reload1.c (gen_reload): Likewise.
27526 * targhooks.c (default_secondary_reload): Likewise.
27527
27528 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
27529
27530 * config/alpha/alpha.md (unspec): New define_c_enum.
27531 (unspecv): Ditto.
27532
27533 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
27534
27535 PR debug/48214
27536 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
27537 between a call and its CALL_ARG_LOCATION note.
27538
27539 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
27540
27541 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
27542
27543 2011-03-21 Jakub Jelinek <jakub@redhat.com>
27544
27545 PR c/42544
27546 PR c/48197
27547 * c-common.c (shorten_compare): If primopN is first sign-extended
27548 to opN and then zero-extended to result type, set primopN to opN.
27549
27550 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
27551
27552 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
27553 for barrier handlers.
27554
27555 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
27556
27557 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
27558 UNSPEC constants to be in the unspec enumeration, and redefine
27559 all UNSPECV constants to be in the unspecv enumeration, so that
27560 dumps print which unspec/unspec_volatile this is.
27561 * config/rs6000/vector.md (UNSPEC_*): Ditto.
27562 * config/rs6000/paired.md (UNSPEC_*): Ditto.
27563 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
27564 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
27565 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
27566
27567 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
27568 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
27569 UNSPECV_LWSYNC, since these are used as unspec_volatile.
27570 * config/rs6000/sync.md (isync, lwsync): Ditto.
27571
27572 2011-03-21 Richard Guenther <rguenther@suse.de>
27573
27574 * params.def (lto-min-partition): Fix typo.
27575
27576 2011-03-21 Richard Guenther <rguenther@suse.de>
27577
27578 PR c/47939
27579 * c-decl.c (grokdeclarator): Drop to the main variant only
27580 for array types. Drop flag_gen_aux_info check.
27581
27582 2011-03-21 Richard Guenther <rguenther@suse.de>
27583
27584 PR translation/47911
27585 * params.def (lto-partitions): Fix typo.
27586 (lto-min-partition): Fix wording.
27587
27588 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
27589
27590 * config/rs6000/t-freebsd: Remove duplication from file.
27591
27592 2011-03-21 Richard Guenther <rguenther@suse.de>
27593
27594 PR middle-end/47661
27595 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
27596
27597 2011-03-21 Richard Guenther <rguenther@suse.de>
27598
27599 PR lto/48210
27600 * params.def (lto-partitions): Require at least 1 partition.
27601
27602 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27603
27604 * gthr-solaris.h: Remove.
27605 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
27606 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
27607 (LIB_SPEC): Likewise.
27608 * config/sol2.opt (threads): Remove.
27609 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
27610 (sparc*-*-solaris2*): Likewise.
27611 * configure.ac (enable_threads): Enable solaris support.
27612 * configure: Regenerate.
27613 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
27614 * doc/install.texi (Configuration, --enable-threads=lib): Remove
27615 solaris.
27616
27617 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27618
27619 * config.gcc: Obsolete *-*-solaris2.8*.
27620 * doc/install.texi (Specific, *-*-solaris2*): Document it.
27621
27622 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27623
27624 PR bootstrap/48135
27625 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
27626 reference. Solaris 8 perl works.
27627
27628 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27629
27630 PR bootstrap/48135
27631 * doc/install.texi (Prerequisites): Move jar etc. up.
27632 Explain support library version requirements.
27633
27634 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27635
27636 PR bootstrap/48135
27637 * doc/install.texi (Prerequisites): Move Perl to build
27638 requirements. Always necessary on Solaris 2 with Sun ld.
27639
27640 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27641
27642 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
27643 binutils 2.21.
27644 (Specific, i?86-*-solaris2.[89]): Likewise.
27645 (Specific, i?86-*-solaris2.10): Likewise.
27646 (Specific, mips-sgi-irix6): Likewise.
27647 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
27648 Update for binutils 2.21.
27649
27650 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27651
27652 * configure.ac (gcc_cv_lto_plugin): Fix typo.
27653 Allow -fuse-linker-plugin for non-default plugin linker.
27654 * configure: Regenerate.
27655
27656 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
27657
27658 PR bootstrap/48167
27659 * gengtype.c (files_rules): Added rule for cp/parser.h.
27660
27661 2011-03-21 Jakub Jelinek <jakub@redhat.com>
27662
27663 PR target/48213
27664 * config/s390/s390.c (s390_delegitimize_address): Don't call
27665 lowpart_subreg if orig_x has BLKmode.
27666
27667 2011-03-21 Kai Tietz <ktietz@redhat.com>
27668
27669 PR target/12171
27670 * doc/plugins.texi: Adjust documentation for plugin register_callback.
27671 * tree.h (attribute_spec): Add new member affects_type_identity.
27672 * attribs.c (empty_attribute_table): Adjust attribute_spec
27673 initializers.
27674 * config/alpha/alpha.c: Likewise.
27675 * config/arc/arc.c: Likewise.
27676 * config/arm/arm.c: Likewise.
27677 * config/avr/avr.c: Likewise.
27678 * config/bfin/bfin.c: Likewise.
27679 * config/crx/crx.c: Likewise.
27680 * config/darwin.h: Likewise.
27681 * config/h8300/h8300.c: Likewise.
27682 * config/i386/cygming.h: Likewise.
27683 * config/i386/i386.c: Likewise.
27684 * config/ia64/ia64.c: Likewise.
27685 * config/m32c/m32c.c: Likewise.
27686 * config/m32r/m32r.c: Likewise.
27687 * config/m68hc11/m68hc11.c: Likewise.
27688 * config/m68k/m68k.c: Likewise.
27689 * config/mcore/mcore.c: Likewise.
27690 * config/mep/mep.c: Likewise.
27691 * config/microblaze/microblaze.c: Likewise.
27692 * config/mips/mips.c: Likewise.
27693 * config/rs6000/rs6000.c: Likewise.
27694 * config/rx/rx.c: Likewise.
27695 * config/sh/sh.c: Likewise.
27696 * config/sol2.h: Likewise.
27697 * config/sparc/sparc.c: Likewise.
27698 * config/spu/spu.c: Likewise.
27699 * config/stormy16/stormy16.c: Likewise.
27700 * config/v850/v850.c: Likewise.
27701
27702 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27703
27704 * simplify-rtx.c (simplify_binary_operation_1): Handle
27705 (xor (and A B) C) case when B and C are both constants.
27706
27707 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
27708
27709 * tree-dfa.c (add_referenced_var): Fix typo in comment.
27710
27711 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
27712
27713 PR bootstrap/48168
27714 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
27715
27716 2011-03-20 Jakub Jelinek <jakub@redhat.com>
27717
27718 PR rtl-optimization/48156
27719 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
27720 assume df and df_lr are not NULL.
27721
27722 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27723
27724 PR debug/48023
27725 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
27726 between a call and its CALL_ARG_LOCATION note.
27727
27728 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27729
27730 PR debug/48178
27731 * config/sh/sh.c (find_barrier): Don't emit a constant pool
27732 between a call and its corresponding CALL_ARG_LOCATION note.
27733
27734 2011-03-19 Anatoly Sokolov <aesok@post.ru>
27735
27736 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
27737 instead of loop. Use HARD_REGISTER_NUM_P predicate.
27738 * haifa-sched.c (setup_ref_regs): Ditto.
27739 * caller-save.c (add_used_regs_1): Ditto.
27740 * dse.c (look_for_hardregs): Ditto.
27741 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
27742 * sched-rgn.c (check_live_1): Ditto.
27743
27744 2011-03-18 Joseph Myers <joseph@codesourcery.com>
27745
27746 * c-decl.c (diagnose_mismatched_decls): Give an error for
27747 redefining a typedef with variably modified type.
27748
27749 2011-03-18 Joseph Myers <joseph@codesourcery.com>
27750
27751 * c-decl.c (grokfield): Don't allow typedefs for structures or
27752 unions with no tag by default.
27753 * doc/extend.texi (Unnamed Fields): Update.
27754
27755 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
27756
27757 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
27758 Rewrite using indirect functions.
27759 (lwp_slwpcb): Ditto.
27760 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
27761 (avx_vinsertf128<mode>): Ditto.
27762
27763 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27764
27765 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
27766 unspecs.
27767
27768 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27769
27770 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
27771 splitting between a call and its corresponding CALL_ARG_LOCATION note.
27772
27773 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
27774
27775 PR rtl-optimization/48170
27776 * gcse.c (hoist_code): Remove bogus asserts.
27777
27778 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
27779
27780 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
27781 computation for prologue/epilogue.
27782
27783 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27784
27785 * Makefile.in (check-consistency): Remove.
27786
27787 2011-03-18 Jakub Jelinek <jakub@redhat.com>
27788
27789 PR debug/48176
27790 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
27791 arange_table_in_use is 0, but either text_section_used or
27792 cold_text_section_used is true. Don't call it if
27793 !info_section_emitted.
27794
27795 2011-03-18 Anatoly Sokolov <aesok@post.ru>
27796
27797 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
27798 FUNCTION_VALUE_REGNO_P): Remove.
27799 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
27800 Remove.
27801 * config/avr/avr.c (avr_ret_register): Make static inline.
27802 (avr_function_value_regno_p): New function.
27803 (avr_libcall_value): Make static. Add 'func' argument.
27804 (avr_function_value): Make static. Rename 'func' argument to
27805 'fn_decl_or_type', forward it to avr_libcall_value. Call
27806 avr_ret_register function instead of RET_REGISTER macro.
27807 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27808
27809 2011-03-18 Jason Merrill <jason@redhat.com>
27810
27811 PR c++/23372
27812 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
27813
27814 2011-03-18 Richard Guenther <rguenther@suse.de>
27815
27816 * doc/install.texi (--enable-gold): Remove.
27817 (--with-plugin-ld): Document.
27818 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27819
27820 2011-03-18 Andrew Pinski <pinskia@gmail.com>
27821
27822 PR middle-end/47790
27823 * expr.c (optimize_bitfield_assignment_op): Revamp to work
27824 again after expansion changes.
27825
27826 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
27827
27828 * combine.c (try_combine): Do simplification only call of
27829 subst() on i2 even when i1 is present. Update comments.
27830
27831 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
27832
27833 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27834 and UNSPEC_PCREL_SYMOFF.
27835
27836 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27837
27838 * config/s390/s390.md: Use define_c_enum for the unspec constant
27839 definitions.
27840
27841 2011-03-18 Richard Henderson <rth@redhat.com>
27842 Jakub Jelinek <jakub@redhat.com>
27843
27844 PR bootstrap/48161
27845 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27846 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27847
27848 2011-03-17 Anatoly Sokolov <aesok@post.ru>
27849
27850 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27851 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27852 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27853 Change return type to bool.
27854 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27855
27856 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27857
27858 PR debug/48163
27859 * var-tracking.c (prepare_call_arguments): If CALL target
27860 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27861 pc instead of looking it up using cselib_lookup and use
27862 Pmode for it if x has VOIDmode.
27863 * dwarf2out.c (gen_subprogram_die): If also both first and
27864 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27865
27866 PR debug/48163
27867 * function.c (assign_parms): For data.passed_pointer parms
27868 use MEM of data.entry_parm instead of data.entry_parm itself
27869 as DECL_INCOMING_RTL.
27870 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27871 also when passed and declared mode is the same, DECL_RTL
27872 is a MEM with pseudo as address and DECL_INCOMING_RTL is
27873 a MEM too.
27874
27875 2011-03-16 Jeff Law <law@redhat.com>
27876
27877 PR rtl-optimization/37273
27878 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27879 handle them like argument loads from stack slots. Do not double
27880 count memory for memory constants and argument loads from stack slots.
27881
27882 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
27883
27884 PR debug/48160
27885 * var-tracking.c (prepare_call_arguments): Check SUBREG.
27886
27887 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
27888
27889 PR target/48171
27890 * config/i386/i386.opt: Add Save to -mavx and -mfma.
27891
27892 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27893
27894 PR bootstrap/48153
27895 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27896 if dwarf_strict.
27897 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27898 Clear call_arg_locations and call_arg_loc_last always.
27899
27900 PR middle-end/48152
27901 * var-tracking.c (prepare_call_arguments): If argument needs to be
27902 passed by reference, adjust argtype and mode.
27903
27904 2011-03-17 Richard Guenther <rguenther@suse.de>
27905
27906 PR middle-end/48134
27907 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27908 a value make sure to fold the statement.
27909
27910 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
27911
27912 PR target/43872
27913 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27914 return condition with !cfun->calls_alloca.
27915
27916 2011-03-17 Richard Guenther <rguenther@suse.de>
27917
27918 PR bootstrap/48148
27919 * lto-cgraph.c (input_overwrite_node): Clear the abstract
27920 origin for decls in other ltrans units.
27921 (input_varpool_node): Likewise.
27922
27923 2011-03-17 Richard Guenther <rguenther@suse.de>
27924
27925 PR middle-end/48165
27926 * tree-object-size.c (compute_object_offset): Properly return
27927 the offset operand of MEM_REFs as sizetype.
27928
27929 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27930
27931 PR rtl-optimization/48141
27932 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27933 * dse.c: Include params.h.
27934 (active_local_stores_len): New variable.
27935 (add_wild_read, dse_step1): Clear it when setting active_local_stores
27936 to NULL.
27937 (record_store, check_mem_read_rtx): Decrease it when removing
27938 from the chain.
27939 (scan_insn): Likewise. Increase it when adding to chain, if it
27940 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27941 set active_local_stores to NULL before the addition.
27942 * Makefile.in (dse.o): Depend on $(PARAMS_H).
27943
27944 PR rtl-optimization/48141
27945 * dse.c (record_store): If no positions are needed in an insn
27946 that cannot be deleted, at least unchain it from active_local_stores.
27947
27948 2011-03-16 Dodji Seketeli <dodji@redhat.com>
27949
27950 PR debug/47510
27951 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27952 (lookup_type_die_strip_naming_typedef): ... here.
27953 (get_context_die): Use it.
27954 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27955 the anonymous struct named by the naming typedef.
27956
27957 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
27958
27959 PR target/48154
27960 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27961 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27962
27963 2011-03-16 Jeff Law <law@redhat.com>
27964
27965 * tree-vrp.c (identify_jump_threads): Slightly simplify type
27966 check for operands of conditional. Allow type to be a pointer.
27967
27968 2011-03-16 Richard Guenther <rguenther@suse.de>
27969
27970 PR tree-optimization/48149
27971 * fold-const.c (fold_binary_loc): Fold
27972 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27973
27974 2011-03-16 Richard Guenther <rguenther@suse.de>
27975
27976 PR tree-optimization/26134
27977 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27978 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27979 (non_rewritable_mem_ref_base): Handle complex type component
27980 accesses, constrain offsets for vector and complex extracts
27981 more properly.
27982
27983 2011-03-16 Richard Guenther <rguenther@suse.de>
27984
27985 PR tree-optimization/48146
27986 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27987 operands avoiding the need for renaming.
27988
27989 2011-03-16 Richard Guenther <rguenther@suse.de>
27990
27991 * gimple-fold.c (maybe_fold_reference): Open-code relevant
27992 constant folding. Move MEM_REF canonicalization first.
27993 Rely on fold_const_aggregate_ref for initializer folding.
27994 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27995
27996 2011-03-16 Jakub Jelinek <jakub@redhat.com>
27997
27998 PR middle-end/48136
27999 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
28000 arg0/arg1 or their arguments are always fold converted to matching
28001 types.
28002
28003 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
28004 to nargs.
28005
28006 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28007
28008 PR lto/46944
28009 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
28010 Handle in-tree gold.
28011 (ld_vers): Extract binutils version for gold.
28012 (gcc_cv_ld_hidden): Handle gold here.
28013 (gcc_cv_lto_plugin): Determine level of linker plugin support.
28014 * configure: Regenerate.
28015 * config.in: Regenerate.
28016 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
28017 -fuse-linker-plugin otherwise.
28018 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
28019 (LINK_COMMAND_SPEC): Use it.
28020 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
28021
28022 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28023
28024 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
28025 * calls.c: Remove debug.h include.
28026 (emit_call_1): Don't call virtual_call_token debug hook.
28027 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
28028 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
28029 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
28030 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
28031 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
28032 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
28033 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
28034 dwarf2out_virtual_call): Remove.
28035 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
28036 copy_call_info and virtual_call hooks.
28037 (dwarf2out_init): Don't initialize vcall_insn_table,
28038 debug_dcall_section and debug_vcall_section.
28039 (prune_unused_types): Don't mark nodes from dcall_table.
28040 (dwarf2out_finish): Don't output dcall or vcall tables.
28041 * final.c (final_scan_insn): Don't call direct_call or
28042 virtual_call debug hooks.
28043 * debug.h (struct gcc_debug_hooks): Remove direct_call,
28044 virtual_call_token, copy_call_info and virtual_call hooks.
28045 (debug_nothing_uid): Remove prototype.
28046 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
28047 copy_call_info and virtual_call hooks.
28048 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28049 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
28050 * debug.c (do_nothing_debug_hooks): Likewise.
28051 (debug_nothing_uid): Remove.
28052 * doc/invoke.texi (-fenable-icf-debug): Remove.
28053 * common.opt (-fenable-icf-debug): Likewise.
28054
28055 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
28056 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
28057 call's MEM. Handle functions returning aggregate through a hidden
28058 first pointer. For virtual calls add clobbered pc to call arguments
28059 chain.
28060 * dwarf2out.c (gen_subprogram_die): Emit
28061 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
28062 can't be emitted.
28063
28064 PR debug/45882
28065 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
28066 * rtl.h (ENTRY_VALUE_EXP): Define.
28067 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
28068 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
28069 * print-rtl.c (print_rtx): Likewise.
28070 * gengtype.c (adjust_field_rtx_def): Likewise.
28071 * var-tracking.c (vt_add_function_parameter): Adjust
28072 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
28073 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
28074 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
28075 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
28076 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
28077
28078 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
28079 Call var_location debug hook even on CALL_INSNs.
28080 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
28081 * rtl.def (ENTRY_VALUE): New.
28082 * dwarf2out.c: Include cfglayout.h.
28083 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
28084 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
28085 (struct call_arg_loc_node): New type.
28086 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
28087 tail_call_site_count): New variables.
28088 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
28089 DW_TAG_GNU_call_site_parameter.
28090 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
28091 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
28092 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
28093 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
28094 and DW_AT_GNU_all_source_call_sites.
28095 (mem_loc_descriptor): Handle ENTRY_VALUE.
28096 (add_src_coords_attributes): Don't add enything if
28097 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
28098 (dwarf2out_abstract_function): Save and clear call_arg_location,
28099 call_site_count and tail_call_site_count around dwarf2out_decl call.
28100 (gen_call_site_die): New function.
28101 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
28102 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
28103 (dwarf2out_function_decl): Clear call_arg_locations,
28104 call_arg_loc_last, set call_site_count and tail_call_site_count
28105 to -1 and free block_map.
28106 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
28107 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
28108 followed by any real instructions.
28109 (dwarf2out_begin_function): Set call_site_count and
28110 tail_call_site_count to 0.
28111 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
28112 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
28113 attempt to force a DIE for it and worst case remove the attribute.
28114 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
28115 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
28116 the decl itself.
28117 * var-tracking.c: Include tm_p.h.
28118 (vt_stack_adjustments): For calls call note_register_arguments.
28119 (argument_reg_set): New variable.
28120 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
28121 ensure the VALUE is resolved.
28122 (call_arguments): New variable.
28123 (prepare_call_arguments): New function.
28124 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
28125 (struct expand_loc_callback_data): Add ignore_cur_loc field.
28126 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
28127 always use the best expression.
28128 (vt_expand_loc): Add ignore_cur_loc argument.
28129 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
28130 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
28131 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
28132 note for all calls.
28133 (vt_add_function_parameter): Use cselib_lookup_from_insn.
28134 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
28135 argument. Don't call cselib_preserve_only_values and
28136 cselib_reset_table.
28137 (note_register_arguments): New function.
28138 (vt_initialize): Compute argument_reg_set. Call
28139 vt_add_function_parameters before processing basic blocks instead of
28140 afterwards. For calls call prepare_call_arguments before calling
28141 cselib_process_insn.
28142 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
28143 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
28144 (var-tracking.o): Depend on $(TM_P_H).
28145 * cfglayout.h (insn_scope): New prototype.
28146 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
28147 * cfglayout.c (insn_scope): No longer static.
28148 * insn-notes.def (CALL_ARG_LOCATION): New.
28149 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
28150 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
28151 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
28152 nothing for DECL_EXTERNAL BLOCK_VARS.
28153
28154 2011-03-16 Alan Modra <amodra@gmail.com>
28155
28156 PR target/45844
28157 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
28158 create invalid offset address for vsx splat insn.
28159 * config/rs6000/predicates.md (splat_input_operand): New.
28160 * config/rs6000/vsx.md (vsx_splat_*): Use it.
28161
28162 2011-03-15 Xinliang David Li <davidxl@google.com>
28163
28164 PR c/47837
28165 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
28166 (normalize_preds): New function.
28167 (is_use_properly_guarded): Normalize def predicates.
28168
28169 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28170
28171 PR target/46788
28172 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
28173 in the output template.
28174
28175 2011-03-15 Richard Guenther <rguenther@suse.de>
28176
28177 PR middle-end/47650
28178 * tree-pretty-print.c (dump_function_declaration): Properly
28179 dump unprototyped and varargs function types.
28180
28181 2011-03-15 Richard Guenther <rguenther@suse.de>
28182
28183 PR tree-optimization/13954
28184 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
28185 and friends.
28186
28187 2011-03-15 Richard Guenther <rguenther@suse.de>
28188
28189 PR tree-optimization/48037
28190 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
28191 selects into BIT_FIELD_REFs.
28192 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
28193 vector select.
28194
28195 2011-03-15 Jakub Jelinek <jakub@redhat.com>
28196
28197 PR tree-optimization/48129
28198 * builtins.c (fold_builtin_snprintf): Convert to type of
28199 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
28200 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
28201
28202 2011-03-15 Richard Guenther <rguenther@suse.de>
28203
28204 PR tree-optimization/41490
28205 * tree-ssa-dce.c (propagate_necessity): Handle returns without
28206 value but with VUSE.
28207 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
28208 return statements.
28209 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
28210 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
28211 * tree-tailcall.c (find_tail_calls): Ignore returns.
28212
28213 2011-03-15 Richard Guenther <rguenther@suse.de>
28214
28215 PR middle-end/48031
28216 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
28217 or variable-indexed array accesses when in gimple form.
28218
28219 2011-03-15 Richard Guenther <rguenther@suse.de>
28220
28221 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
28222
28223 2011-03-15 Alan Modra <amodra@gmail.com>
28224
28225 PR target/48032
28226 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
28227 presume symbol_refs without a symbol_ref_decl are suitably
28228 aligned, nor other trees we may see here. Handle anchor symbols.
28229 (legitimate_constant_pool_address_p): Comment. Add mode param.
28230 Check cmodel=medium addresses. Adjust all calls.
28231 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
28232 creating cmodel=medium optimized access to locals.
28233 * config/rs6000/constraints.md (R): Pass QImode to
28234 legitimate_constant_pool_address_p.
28235 * config/rs6000/predicates.md (input_operand): Pass mode to
28236 legitimate_constant_pool_address_p.
28237 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
28238 Update prototype.
28239
28240 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28241
28242 PR target/48053
28243 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
28244 64-bit constants being loaded into registers other than GPRs such
28245 as loading 0 into a VSX register.
28246
28247 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28248
28249 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
28250
28251 2011-03-14 Jakub Jelinek <jakub@redhat.com>
28252
28253 PR middle-end/47917
28254 * builtins.c (fold_builtin_snprintf): New function.
28255 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
28256 (fold_builtin_4): Likewise.
28257
28258 PR middle-end/38878
28259 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
28260 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
28261 and C - X == X also strip nops from +/-/p+ operand.
28262 When optimizing -X == C, fold C to arg0's type.
28263
28264 PR debug/47946
28265 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
28266 emit it as add_AT_int instead of add_AT_unsigned.
28267
28268 2011-03-14 Tom Tromey <tromey@redhat.com>
28269
28270 * unwind-dw2.c: Include sys/sdt.h if it exists.
28271 (_Unwind_DebugHook): Use STAP_PROBE2.
28272 * config.in, configure: Rebuild.
28273 * configure.ac: Check for sys/sdt.h.
28274
28275 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
28276
28277 * config/i386/i386.md (ROUND_FLOOR): New constant.
28278 (ROUND_CEIL): Ditto.
28279 (ROUND_TRUNC): Ditto.
28280 (ROUND_MXCSR): Ditto.
28281 (ROUND_NO_EXC): Ditto.
28282 (rint<mode>2): Use new defines instead of numerical constants.
28283 (floor<mode>2): Ditto.
28284 (ceil<mode>2): Ditto.
28285 (btrunc<mode>2): Ditto.
28286 * config/i386/i386-builtin-types.def: Define ROUND function type
28287 aliases.
28288 * config/i386/i386.c (enum ix86_builtins): Add
28289 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
28290 (struct builtin_description): Add
28291 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
28292 (ix86_expand_sse_round): New static function.
28293 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
28294 function types.
28295 (ix86_builtin_vectorized_function): Handle
28296 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
28297
28298 2011-03-14 Tom Tromey <tromey@redhat.com>
28299
28300 * c-parser.c (c_parser_asm_string_literal): Clear
28301 warn_overlength_strings.
28302
28303 2011-03-14 Tom Tromey <tromey@redhat.com>
28304
28305 * c-parser.c (disable_extension_diagnostics): Save
28306 warn_overlength_strings.
28307 (restore_extension_diagnostics): Restore warn_overlength_strings.
28308
28309 2011-03-14 Jakub Jelinek <jakub@redhat.com>
28310
28311 * BASE-VER: Change to 4.7.0.
28312
28313 2011-03-14 Richard Guenther <rguenther@suse.de>
28314
28315 PR middle-end/48098
28316 * tree.c (build_vector_from_val): Adjust assert to requirements
28317 and reality.
28318
28319 2011-03-14 Jakub Jelinek <jakub@redhat.com>
28320
28321 PR bootstrap/48102
28322 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
28323
28324 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
28325
28326 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
28327 terms of target_flags_explicit. Adjust copyright year.
28328
28329 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
28330 * config/rs6000/t-freebsd: New file. Add override for
28331 LIB2FUNCS_EXTRA.
28332
28333 2011-03-13 Chris Demetriou <cgd@google.com>
28334
28335 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
28336 (-fno-diagnostics-show-option): this, to reflect current default.
28337 (-Werror=): Update text about -fno-diagnostics-show-option.
28338
28339 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
28340
28341 PR target/48053
28342 * config/rs6000/predicates.md (easy_vector_constant_add_self,
28343 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
28344 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
28345 mode is not V2DImode or V2DFmode.
28346 (vspltis_constant): Do not handle V2DImode and V2DFmode.
28347 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
28348 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
28349 registers to 0.
28350 (movdi_internal64): Likewise.
28351
28352 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
28353
28354 PR tree-optimization/47127
28355 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
28356 parameter.
28357 (set_cloog_options): Same.
28358 (scop_to_clast): Same.
28359 (print_clast_stmt): Do not call cloog_state_malloc and
28360 cloog_state_free.
28361 (print_generated_program): Same.
28362 (gloog): Same.
28363 * graphite-clast-to-gimple.h (cloog_state): Declared.
28364 (scop_to_clast): Adjust declaration.
28365 * graphite.c (cloog_state): Defined here.
28366 (graphite_initialize): Call cloog_state_malloc.
28367 (graphite_finalize): Call cloog_state_free.
28368
28369 2011-03-11 Jason Merrill <jason@redhat.com>
28370
28371 * attribs.c (lookup_attribute_spec): Take const_tree.
28372 * tree.h: Adjust.
28373
28374 2011-03-11 Joseph Myers <joseph@codesourcery.com>
28375
28376 * config/sparc/sparc.c (sparc_option_override): Use
28377 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
28378
28379 2011-03-11 Richard Guenther <rguenther@suse.de>
28380
28381 PR tree-optimization/48067
28382 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
28383 multiplication result will be only used once on the target
28384 stmt.
28385
28386 2011-03-11 Richard Guenther <rguenther@suse.de>
28387
28388 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
28389
28390 2011-03-11 Richard Guenther <rguenther@suse.de>
28391
28392 PR lto/48073
28393 * tree.c (find_decls_types_r): Do not walk types only reachable
28394 from IDENTIFIER_NODEs.
28395
28396 2011-03-11 Jakub Jelinek <jakub@redhat.com>
28397
28398 PR middle-end/48044
28399 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
28400 all vnode->force_output nodes as needed.
28401
28402 2011-03-11 Jason Merrill <jason@redhat.com>
28403
28404 PR c++/48069
28405 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
28406 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
28407
28408 2011-03-11 Martin Jambor <mjambor@suse.cz>
28409
28410 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
28411 cgraph_node.
28412
28413 2011-03-11 Jakub Jelinek <jakub@redhat.com>
28414
28415 PR tree-optimization/48063
28416 * ipa-inline.c (cgraph_decide_inlining): Don't try to
28417 inline functions called once if !tree_can_inline_p (node->callers).
28418
28419 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
28420
28421 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
28422 extra_objs.
28423 * config/score/score3.c: Delete.
28424 * config/score/score3.h: Delete.
28425 * config/score/mul-div.S: Delete.
28426 * config/score/sfp-machine.h: Add new file.
28427 * config/score/constraints.md: Add new file.
28428 * config/score/t-score-softfp: Add new file.
28429 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
28430 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
28431 (score7_extra_constraint): Delete.
28432 (score7_option_override): Remove unused code.
28433 * config/score/score.c: Remove score3 and score5 define and code.
28434 * config/score/score.h: Remove score3 and score5 define and code.
28435 * config/score/score.md: Remove score3 template and unusual insn.
28436 * config/score/score.opt: Remove score3 and score5 options.
28437
28438 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28439
28440 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
28441 when _HPUX_SOURCE is defined.
28442 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
28443
28444 2011-03-10 Jason Merrill <jason@redhat.com>
28445
28446 PR c++/48029
28447 * stor-layout.c (layout_type): Don't set structural equality
28448 on arrays of incomplete type.
28449 * tree.c (type_hash_eq): Handle comparing them properly.
28450
28451 2011-03-10 Jakub Jelinek <jakub@redhat.com>
28452
28453 PR debug/48043
28454 * config/s390/s390.c (s390_delegitimize_address): Make sure the
28455 result mode matches original rtl mode.
28456
28457 2011-03-10 Nick Clifton <nickc@redhat.com>
28458
28459 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
28460 (andsi3, andsi3_flags): Fix timings for three operand alternative.
28461
28462 2011-03-09 Jakub Jelinek <jakub@redhat.com>
28463
28464 PR rtl-optimization/47866
28465 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
28466 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
28467 if target wasn't scalar.
28468 * function.c (assign_stack_temp_for_type): Assert that neither
28469 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
28470 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
28471 macro.
28472 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
28473
28474 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28475
28476 * config/s390/s390-protos.h (s390_label_align): New prototype.
28477 * config/s390/s390.c (s390_label_align): New function.
28478 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
28479
28480 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
28481
28482 PR target/47755
28483 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
28484 V2DI/V2DF constants. Only all 0's or all 1's are easy.
28485 (output_vec_const_move): Ditto.
28486
28487 2011-03-08 Anatoly Sokolov <aesok@post.ru>
28488
28489 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
28490 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
28491 * config/mips/mips.c (mips_preferred_reload_class): Make static.
28492 Change 'rclass' argument and result type to reg_class_t.
28493 (TARGET_PREFERRED_RELOAD_CLASS): Define.
28494
28495 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
28496
28497 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28498 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
28499 (TARGET_MEMORY_MOVE_COST): Define.
28500 (avr_register_move_cost, avr_memory_move_cost): New Functions.
28501
28502 2011-03-08 Jakub Jelinek <jakub@redhat.com>
28503
28504 PR debug/47881
28505 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
28506 removed anything.
28507
28508 PR tree-optimization/48022
28509 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
28510 for EQ/NE_EXPR.
28511
28512 2011-03-07 Jakub Jelinek <jakub@redhat.com>
28513
28514 PR debug/47991
28515 * var-tracking.c (find_use_val): Return NULL for
28516 cui->sets && cui->store_p BLKmode MEMs.
28517
28518 2011-03-07 Anatoly Sokolov <aesok@post.ru>
28519
28520 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
28521 Remove.
28522 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
28523 xstormy16_print_operand_address): Remove.
28524 * config/stormy16/stormy16.c (xstormy16_print_operand,
28525 xstormy16_print_operand_address): Make static.
28526 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
28527
28528 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
28529
28530 PR target/47862
28531 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
28532 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
28533 before definition.
28534
28535 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
28536
28537 PR bootstrap/48000
28538 * cfgloopmanip.c (fix_bb_placements): Return immediately
28539 if FROM is BASE_LOOP's header.
28540
28541 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
28542
28543 * gimplify.c (gimplify_function_tree): Fix building calls
28544 to __builtin_return_address.
28545
28546 2011-03-07 Alan Modra <amodra@gmail.com>
28547
28548 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
28549 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
28550 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
28551 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
28552 return_mode args.
28553 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
28554 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
28555 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
28556 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
28557 * config/rs6000/rs6000.c
28558 (rs6000_elf_end_indicate_exec_stack): Rename to..
28559 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
28560 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
28561 (rs6000_file_start): ..here.
28562 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
28563 file scope variables.
28564 (call_ABI_of_interest): New function.
28565 (init_cumulative_args): Set above vars when function return value
28566 is a float, vector, or small struct.
28567 (rs6000_function_arg_advance_1): Likewise for function args.
28568 (rs6000_va_start): Set rs6000_passes_float if variable arg function
28569 references float args.
28570
28571 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
28572
28573 * doc/cfg.texi: Remove "See" before @ref.
28574 * doc/invoke.texi: Likewise.
28575
28576 2011-03-05 Jason Merrill <jason@redhat.com>
28577
28578 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
28579
28580 2011-03-05 Anthony Green <green@moxielogic.com>
28581
28582 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
28583
28584 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
28585
28586 PR rtl-optimization/47899
28587 * cfgloopmanip.c (fix_bb_placements): Fix first argument
28588 to flow_loop_nested_p when moving the loop upward.
28589
28590 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
28591
28592 PR target/47719
28593 * arm.md (movhi_insn_arch4): Accept any immediate constant.
28594
28595 2011-03-05 Jakub Jelinek <jakub@redhat.com>
28596
28597 PR tree-optimization/47967
28598 * ipa-cp.c (build_const_val): Return NULL instead of creating
28599 VIEW_CONVERT_EXPR for mismatching sizes.
28600 (ipcp_create_replace_map): Return NULL if build_const_val failed.
28601 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
28602 give up on versioning.
28603
28604 2011-03-05 Alan Modra <amodra@gmail.com>
28605
28606 PR target/47986
28607 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28608 full cmodel medium/large lo_sum + high addresses.
28609
28610 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28611
28612 * config/s390/s390.c (s390_decompose_address): Reject non-literal
28613 pool references in UNSPEC_LTREL_OFFSET.
28614
28615 2011-03-04 Jan Hubicka <jh@suse.cz>
28616
28617 PR lto/47497
28618 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
28619 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
28620 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
28621 Add node pointers.
28622 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
28623 cgraph_add_thunk): Add node pointers.
28624 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
28625 associated to right node.
28626 (input_node): Update use of cgraph_same_body_alias
28627 and cgraph_add_thunk.
28628
28629 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
28630
28631 * config/i386/i386.opt (mprefer-avx128): New flag.
28632 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
28633 modes when the flag -mprefer-avx128 is on.
28634
28635 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
28636
28637 * dwarf2out.c (compare_loc_operands): Fix address handling.
28638
28639 2011-03-04 Alan Modra <amodra@gmail.com>
28640
28641 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
28642
28643 2011-03-04 Richard Guenther <rguenther@suse.de>
28644
28645 PR middle-end/47968
28646 * expmed.c (extract_bit_field_1): Prefer vector modes that
28647 vec_extract patterns can handle.
28648
28649 2011-03-04 Richard Guenther <rguenther@suse.de>
28650
28651 PR middle-end/47975
28652 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
28653
28654 2011-03-04 Richard Henderson <rth@redhat.com>
28655
28656 * explow.c (emit_stack_save): Remove 'after' parameter.
28657 (emit_stack_restore): Likewise.
28658 * expr.h: Update to match.
28659 * builtins.c, calls.c, stmt.c: Likewise.
28660 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
28661 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
28662 * function.c (expand_function_end): Insert the emit_stack_save
28663 sequence before parm_birth_insn instead of after.
28664
28665 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
28666
28667 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
28668 (ssse3_pmaddubsw128): Ditto.
28669 (ssse3_pmaddubsw): Ditto.
28670
28671 2011-03-03 Steve Ellcey <sje@cup.hp.com>
28672
28673 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
28674
28675 2011-03-03 Jakub Jelinek <jakub@redhat.com>
28676
28677 PR c/47963
28678 * gimplify.c (omp_add_variable): Only call omp_notice_variable
28679 on TYPE_SIZE_UNIT if it is a DECL.
28680
28681 PR debug/47283
28682 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
28683 first operand is not is_gimple_mem_ref_addr, try to fold it.
28684 If the operand still isn't is_gimple_mem_ref_addr, clear
28685 MEM_EXPR on op0.
28686
28687 2011-03-03 Richard Guenther <rguenther@suse.de>
28688
28689 PR middle-end/47283
28690 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
28691 match comment.
28692 (refs_may_alias_p_1): For release branches return true if
28693 we are confused by our input.
28694
28695 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28696
28697 * config/s390/s390.c (s390_function_value): Rename to ...
28698 (s390_function_and_libcall_value): ... this.
28699 (s390_function_value): New function.
28700 (s390_libcall_value): New function.
28701 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
28702 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
28703 target macro definitions.
28704 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
28705
28706 2011-03-02 Joseph Myers <joseph@codesourcery.com>
28707
28708 * config/i386/freebsd64.h (CC1_SPEC): Define.
28709 * config/i386/linux64.h (CC1_SPEC): Define.
28710 * config/i386/x86-64.h (CC1_SPEC): Don't define.
28711
28712 2011-03-02 Anatoly Sokolov <aesok@post.ru>
28713
28714 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28715 Remove.
28716 * config/stormy16/stormy16.c: Include reload.h.
28717 (xstormy16_memory_move_cost): New function.
28718 (TARGET_MEMORY_MOVE_COST): Define.
28719
28720 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
28721
28722 PR rtl-optimization/47925
28723 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
28724 with side effects. Remove the more-specific check for volatile asms.
28725
28726 2011-03-02 Alan Modra <amodra@gmail.com>
28727
28728 PR target/47935
28729 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
28730 toc relative addresses for valid offsets.
28731
28732 2011-03-01 Richard Guenther <rguenther@suse.de>
28733
28734 PR tree-optimization/47890
28735 * tree-vect-loop.c (get_initial_def_for_induction): Set
28736 related stmt properly.
28737
28738 2011-03-01 Richard Guenther <rguenther@suse.de>
28739
28740 PR lto/47924
28741 * lto-streamer.c (lto_record_common_node): Also register
28742 the canonical type.
28743
28744 2011-03-01 Richard Guenther <rguenther@suse.de>
28745
28746 PR lto/46911
28747 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28748 Do not stream DECL_ABSTRACT_ORIGIN.
28749 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28750 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28751 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28752 Do not stream DECL_ABSTRACT_ORIGIN.
28753 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28754 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28755
28756 2011-02-28 Anatoly Sokolov <aesok@post.ru>
28757
28758 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
28759 FUNCTION_VALUE_REGNO_P): Remove.
28760 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
28761 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
28762 Add 'outgoing' argument.
28763 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
28764 function.
28765 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28766 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28767
28768 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
28769
28770 PR debug/28047
28771 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
28772 (lookup_filename): Likewise.
28773 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
28774
28775 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
28776 Jakub Jelinek <jakub@redhat.com>
28777
28778 PR middle-end/47893
28779 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
28780 (assign_stack_local_1): Change last argument type to int.
28781 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
28782 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
28783 don't record padding space into frame_space_list nor use those areas.
28784 (assign_stack_local): Adjust caller.
28785 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
28786 of assign_stack_local, pass 0 as last argument.
28787 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
28788 callers.
28789
28790 2011-02-28 Jakub Jelinek <jakub@redhat.com>
28791
28792 PR debug/47283
28793 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
28794 Use target address_mode and pointer_mode hooks instead of hardcoded
28795 Pmode and ptr_mode. Handle some simple cases of extending if
28796 POINTERS_EXTEND_UNSIGNED < 0.
28797 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
28798 Call convert_debug_memory_address.
28799 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
28800 convert_debug_memory_address.
28801
28802 PR middle-end/46790
28803 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
28804 * configure: Regenerated.
28805 * config.in: Regenerated.
28806 * varasm.c (default_function_section): Return NULL
28807 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
28808
28809 2011-02-28 Martin Jambor <mjambor@suse.cz>
28810
28811 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
28812 the description to match the printed values.
28813
28814 2011-02-28 Richard Guenther <rguenther@suse.de>
28815
28816 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28817 of the copied scope tree.
28818
28819 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28820
28821 * doc/extend.texi (Function Attributes): Avoid deeply (and
28822 wrongly) nested tables.
28823
28824 2011-02-27 Jakub Jelinek <jakub@redhat.com>
28825
28826 PR middle-end/47903
28827 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28828 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28829 r isn't op0 nor op1.
28830
28831 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
28832
28833 * config/avr/avr.md: Remove magic comment for emacs.
28834
28835 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
28836
28837 PR target/45261
28838 * config/avr/avr.c (avr_option_override): Use error on bad options.
28839 (avr_help): New function.
28840 (TARGET_HELP): Define.
28841
28842 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
28843
28844 PR target/42240
28845 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28846 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28847
28848 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
28849
28850 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28851 (ARM Options): Ditto.
28852 (i386 and x86-64 Options): Ditto.
28853 (RX Options): Ditto.
28854 (SPARC Options): Ditto.
28855
28856 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
28857
28858 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28859 FreeBSD 6 and later. Generally use cpu generic.
28860
28861 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
28862
28863 * doc/cpp.texi: Update copyright years.
28864
28865 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
28866
28867 PR target/46898
28868 * config/lm32/lm32.md (ashrsi3): Added needed variable.
28869
28870 2011-02-25 Jon Beniston <jon@beniston.com>
28871
28872 PR target/46898
28873 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28874 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28875 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28876 (lm32_block_move_inline): Add type cast to remove warning.
28877 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28878 (gen_int_relational): Move declarations to start of function.
28879
28880 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
28881
28882 PR tree-optimization/45470
28883 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28884 can throw internally only.
28885 * tree-vect-stmts.c (vectorizable_call): Likewise.
28886
28887 2011-02-24 Anatoly Sokolov <aesok@post.ru>
28888
28889 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28890 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28891 * config/stormy16/stormy16-protos.h
28892 (xstormy16_preferred_reload_class): Remove.
28893 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28894 static. Change 'rclass' argument and return type to reg_class_t.
28895 (TARGET_PREFERRED_RELOAD_CLASS,
28896 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28897
28898 2011-02-24 Richard Guenther <rguenther@suse.de>
28899
28900 * lto-streamer-in.c (input_bb): Do not find referenced vars
28901 in debug statements.
28902
28903 2011-02-23 Jason Merrill <jason@redhat.com>
28904
28905 * common.opt (fabi-version): Document v5 and v6.
28906
28907 2011-02-23 Richard Guenther <rguenther@suse.de>
28908
28909 PR tree-optimization/47849
28910 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28911
28912 2011-02-23 Jie Zhang <jie@codesourcery.com>
28913
28914 * opts-common.c (decode_cmdline_option): Print empty string
28915 argument as "" in decoded->orig_option_with_args_text.
28916 * gcc.c (execute): Print empty string argument as ""
28917 in the verbose output.
28918 (do_spec_1): Keep empty string argument.
28919
28920 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
28921
28922 * config.gcc: Declare score-* and crx-* obsolete.
28923
28924 2011-02-23 Jie Zhang <jie@codesourcery.com>
28925
28926 PR rtl-optimization/47763
28927 * web.c (web_main): Ignore naked clobber when replacing register.
28928
28929 2011-02-22 Anatoly Sokolov <aesok@post.ru>
28930
28931 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28932 Remove.
28933
28934 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
28935
28936 PR doc/47848
28937 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28938
28939 2011-02-22 Mike Stump <mikestump@comcast.net>
28940
28941 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28942 assembler.
28943 * configure: Regenerate.
28944
28945 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
28946
28947 PR rtl-optimization/46002
28948 * ira-color.c (update_copy_costs): Change class intersection
28949 test to reg_class_contents[] test of 'hard_regno'.
28950
28951 2011-02-21 Joseph Myers <joseph@codesourcery.com>
28952
28953 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28954 than Driver option.
28955 * config/hpux11.opt (mt): Likewise.
28956 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28957 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28958 * config/vax/elf.opt (mno-asm-pic): Likewise.
28959 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28960
28961 2011-02-21 Mike Stump <mikestump@comcast.net>
28962
28963 PR target/47822
28964 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28965 tree so we can get save the type.
28966 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28967 for CFString instead of trying to use past the end of the builtins.
28968 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28969 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28970 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28971 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28972 Rename to darwin_builtin_cfstring.
28973 (darwin_init_cfstring_builtins): Return the built type.
28974
28975 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
28976
28977 PR target/47840
28978 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28979 (_mm256_insert_epi64): Use _mm_insert_epi64.
28980
28981 2011-02-21 Anatoly Sokolov <aesok@post.ru>
28982
28983 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28984 * config/stormy16/stormy16-protos.h
28985 (xstormy16_mode_dependent_address_p): Remove.
28986 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28987 Make static. Change return type to bool. Change argument type to
28988 const_rtx. Remove dead code.
28989 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28990
28991 2011-02-21 Richard Guenther <rguenther@suse.de>
28992
28993 PR lto/47820
28994 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28995 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28996 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28997 TUs context.
28998 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28999 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29000
29001 2011-02-20 Richard Guenther <rguenther@suse.de>
29002
29003 PR lto/47822
29004 * tree.c (free_lang_data_in_decl): Clean builtins from
29005 the TU decl BLOCK_VARS.
29006
29007 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
29008
29009 PR debug/47620
29010 PR debug/47630
29011 * haifa-sched.c (fix_tick_ready): Skip tick computation
29012 for debug insns.
29013
29014 2011-02-19 Richard Guenther <rguenther@suse.de>
29015
29016 PR lto/47647
29017 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
29018 Remove lazy BLOCK_VARS streaming.
29019 (lto_input_ts_block_tree_pointers): Likewise.
29020 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
29021
29022 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29023
29024 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
29025
29026 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29027
29028 * config/i386/biarch32.h, config/i386/mach.h,
29029 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
29030
29031 2011-02-19 Jakub Jelinek <jakub@redhat.com>
29032
29033 PR target/47800
29034 * config/i386/i386.md (peephole2 for shift and plus): Use
29035 operands[1] original mode in the first insn.
29036
29037 2011-02-18 Mike Stump <mikestump@comcast.net>
29038
29039 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
29040
29041 2011-02-18 Jan Hubicka <jh@suse.cz>
29042
29043 PR middle-end/47788
29044 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
29045 to zero when the function is not inlinable at all.
29046
29047 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29048
29049 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
29050 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29051 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
29052 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
29053 * config/pa/t-pa64: Likewise.
29054 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
29055
29056 2011-02-18 Jakub Jelinek <jakub@redhat.com>
29057
29058 PR driver/47787
29059 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
29060
29061 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29062
29063 PR target/47792
29064 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
29065
29066 2011-02-18 Anatoly Sokolov <aesok@post.ru>
29067
29068 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
29069 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
29070 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
29071 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
29072 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
29073 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
29074 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
29075 m32r_load_postinc_p, m32r_store_preinc_predec_p,
29076 m32r_legitimate_address_p): New functions.
29077 * config/m32r/constraints.md (constraint "S"): Don't use
29078 STORE_PREINC_PREDEC_P.
29079 (constraint "U"): Don't use LOAD_POSTINC_P.
29080
29081 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
29082
29083 PR rtl-optimization/46178
29084 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
29085 compute ira_hard_regno_cover_class[].
29086
29087 2011-02-18 Richard Guenther <rguenther@suse.de>
29088
29089 PR lto/47798
29090 * lto-streamer.h (lto_global_var_decls): Declare.
29091 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
29092 statics for global var processing.
29093
29094 2011-02-18 Richard Guenther <rguenther@suse.de>
29095
29096 PR tree-optimization/47737
29097 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
29098 edge dominance check.
29099
29100 2011-02-18 Jakub Jelinek <jakub@redhat.com>
29101
29102 PR debug/47780
29103 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
29104 avoid invalid rtx sharing.
29105
29106 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
29107
29108 * doc/cpp.texi (Obsolete Features): Add background on the
29109 origin of assertions.
29110
29111 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
29112
29113 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
29114 objc_abi == 2.
29115 * config/darwin.c (output_objc_section_asm_op): Added support for
29116 ABI v1 and v2.
29117 (is_objc_metadata): New.
29118 (darwin_objc2_section): New.
29119 (darwin_objc1_section): New.
29120 (machopic_select_section): Added support for ABI v1 and v2.
29121 (darwin_emit_objc_zeroed): New.
29122 (darwin_output_aligned_bss): Detect objc metadata and treat it
29123 appropriately.
29124 (darwin_asm_output_aligned_decl_common): Same.
29125 (darwin_asm_output_aligned_decl_local): Same.
29126 * config/darwin-sections.def: Updated for ABI v1 and v2.
29127 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
29128 compiling Objective-C code for the NeXT runtime, default to using
29129 ABI version 0 for 32-bit, and version 2 for 64-bit.
29130
29131 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29132
29133 * common.opt (optimize_fast): New Variable.
29134 * opts.c (default_options_optimization): Use opts->x_optimize_fast
29135 instead of local variable ofast.
29136
29137 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
29138
29139 * doc/invoke.texi (fobjc-abi-version): Documented.
29140 (fobjc-nilcheck): Documented.
29141 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
29142 version.
29143
29144 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29145
29146 PR driver/47390
29147 * common.opt (export-dynamic): New Driver option.
29148 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
29149
29150 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29151
29152 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
29153
29154 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
29155 Jan Hubicka <jh@suse.cz>
29156
29157 PR debug/47106
29158 PR debug/47402
29159 * cfgexpand.c (account_used_vars_for_block): Remove.
29160 (estimated_stack_frame_size): Use referenced vars.
29161 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
29162 that were referenced in the original function. Test src_fn
29163 rather than cfun. Drop redundant get_var_ann.
29164 (setup_one_parameter): Drop redundant get_var_ann.
29165 (declare_return_variable): Likewise.
29166 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
29167 (copy_arguments_for_versioning): Drop redundant get_var_ann.
29168 * ipa-inline.c (compute_inline_parameters): Do not compute
29169 disregard_inline_limits here.
29170 (compute_inlinable_for_current, pass_inlinable): New.
29171 (pass_inline_parameters): Require PROP_referenced_vars.
29172 * cgraphunit.c (cgraph_process_new_functions): Don't run
29173 compute_inline_parameters explicitly unless function is in SSA form.
29174 (cgraph_analyze_function): Set .disregard_inline_limits.
29175 * tree-sra.c (convert_callers): Compute inliner parameters
29176 only for functions already in SSA form.
29177
29178 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29179
29180 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
29181 -mlittle-endian-data.
29182
29183 2011-02-17 Joseph Myers <joseph@codesourcery.com>
29184
29185 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
29186 -mno-fpu, not -fpu and -no-fpu.
29187 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
29188 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
29189
29190 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
29191
29192 PR target/43653
29193 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
29194 input reload with PLUS RTX.
29195
29196 2011-02-16 Joseph Myers <joseph@codesourcery.com>
29197
29198 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
29199 of InverseVar(MDMX).
29200
29201 2011-02-16 Joseph Myers <joseph@codesourcery.com>
29202
29203 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
29204 --m4-340.
29205
29206 2011-02-16 Joseph Myers <joseph@codesourcery.com>
29207
29208 * config/mn10300/mn10300.opt (mno-crt0): New.
29209
29210 2011-02-16 Joseph Myers <joseph@codesourcery.com>
29211
29212 * config/m68k/uclinux.opt (static-libc): New Driver option.
29213
29214 2011-02-16 Joseph Myers <joseph@codesourcery.com>
29215
29216 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
29217
29218 2011-02-16 Joseph Myers <joseph@codesourcery.com>
29219
29220 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
29221 %{muser-extend-enabled}.
29222
29223 2011-02-16 Richard Guenther <rguenther@suse.de>
29224
29225 PR tree-optimization/47738
29226 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
29227 the TODO from tree_predictive_commoning.
29228
29229 2011-02-15 Jeff Law <law@redhat.com>
29230
29231 Revert
29232 2011-01-25 Jeff Law <law@redhat.com>
29233
29234 PR rtl-optimization/37273
29235 * ira-costs.c (scan_one_insn): Detect constants living in memory and
29236 handle them like argument loads from stack slots. Do not double
29237 count memory for memory constants and argument loads from stack slots.
29238
29239 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29240
29241 PR target/47755
29242 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
29243 mode for vector constants. Remove code that checks for TImode.
29244
29245 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
29246
29247 PR debug/47106
29248 PR debug/47402
29249 * cgraph.h (compute_inline_parameters): Return void.
29250 * ipa-inline.c (compute_inline_parameters): Adjust.
29251
29252 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
29253
29254 PR debug/47106
29255 PR debug/47402
29256 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
29257 rather than decl.
29258 * cfgexpand.c (estimated_stack_frame_size): Likewise.
29259 * ipa-inline.c (compute_inline_parameters): Adjust.
29260
29261 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
29262
29263 PR debug/47106
29264 PR debug/47402
29265 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
29266 Adjust all users. Pass FN to...
29267 * tree-flow-inline.h (first_referenced_var): ... this. Add
29268 fn argument.
29269 * ipa-struct-reorg.c: Adjust.
29270 * tree-dfa.c: Adjust.
29271 * tree-into-ssa.c: Adjust.
29272 * tree-sra.c: Adjust.
29273 * tree-ssa-alias.c: Adjust.
29274 * tree-ssa-live.c: Adjust.
29275 * tree-ssa.c: Adjust.
29276 * tree-ssanames.c: Adjust.
29277 * tree-tailcall.c: Adjust.
29278
29279 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
29280
29281 PR debug/47106
29282 PR debug/47402
29283 * tree-flow.h (referenced_var_lookup): Add fn parameter.
29284 Adjust all callers.
29285 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
29286 * tree-flow-inline.h: Adjust.
29287 * gimple-pretty-print.c: Adjust.
29288 * tree-into-ssa.c: Adjust.
29289 * tree-ssa.c: Adjust.
29290 * cfgexpand.c: Adjust.
29291
29292 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
29293
29294 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
29295 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
29296 (EXTRA_CONSTRAINT): Delete.
29297 * config/iq2000/constraints.md: New file.
29298 * config/iq2000/iq2000.md: Include it.
29299 (define_insn ""): Delete.
29300 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
29301 unsupported constraint letters from patterns.
29302 (call_value, call_value_internal1): Likewise.
29303 (call_value_multiple_internal1): Likewise.
29304
29305 2011-02-15 Nick Clifton <nickc@redhat.com>
29306
29307 * config/mn10300/mn10300.c: Include tm-constrs.h.
29308 (struct liw_data): New data structure describing an LIW candidate
29309 instruction.
29310 (extract_bundle): Use struct liw_data. Allow small integer
29311 operands for some instructions.
29312 (check_liw_constraints): Use struct liw_data. Remove swapped
29313 parameter. Add comments describing the checks. Fix bug when
29314 assigning the source of liw1 to the source of liw2.
29315 (liw_candidate): Delete. Code moved into extract_bundle.
29316 (mn10300_bundle_liw): Use struct liw_data. Check constraints
29317 before swapping.
29318 * config/mn10300/predicates.md (liw_operand): New predicate.
29319 Allows registers and small integer constants.
29320 * config/mn10300/constraints.md (O): New constraint. Accetps
29321 integers in the range -8 to +7 inclusive.
29322 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
29323 for moving a small integer into a register. Give this alternative
29324 LIW attributes.
29325 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
29326 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
29327 using the J,K,L and M constraints,
29328 (liw): Remove SI mode on second operands to allow for HI and QI
29329 mode values.
29330 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
29331 instruction.
29332
29333 2011-02-15 Richard Guenther <rguenther@suse.de>
29334
29335 PR tree-optimization/47743
29336 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
29337 for a non-type-compatible VN lookup bail out.
29338
29339 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
29340
29341 * config/fr30/constraints.md: New file.
29342 * config/fr30/fr30.md: Include it.
29343 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
29344 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
29345 (EXTRA_CONSTRAINT): Delete.
29346
29347 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
29348
29349 * config/frv/constraints.md: New file.
29350 * config/frv/predicates.md: Include it.
29351 * config/frv/frv.c (reg_class_from_letter): Delete.
29352 (frv_option_override): Don't initialize it.
29353 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
29354 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
29355 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
29356 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
29357 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
29358 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
29359 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
29360 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
29361 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
29362 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
29363 (REG_CLASS_FROM_CONSTRAINT): Delete.
29364
29365 2011-02-15 Jakub Jelinek <jakub@redhat.com>
29366
29367 PR middle-end/47581
29368 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
29369 if frame size is 0 in a leaf function.
29370
29371 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29372
29373 PR pch/14940
29374 * config/alpha/host-osf.c: New file.
29375 * config/alpha/x-osf: New file.
29376 * config.host (alpha*-dec-osf*): Use it.
29377
29378 2011-02-14 Anatoly Sokolov <aesok@post.ru>
29379
29380 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29381 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
29382 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
29383 (rx_mode_dependent_address_p): ...this. Make static. Change argument
29384 type to const_rtx.
29385 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29386
29387 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
29388
29389 * config/stormy16/constraints.md: New file.
29390 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
29391 Use satisfies_constraint_Q and satisfies_constraint_R.
29392 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
29393 Delete.
29394 (xstormy16_legitiamte_address_p): Declare.
29395 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
29396 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
29397 (EXTRA_CONSTRAINT): Delete.
29398 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
29399 Un-staticize.
29400 (xstormy16_extra_constraint_p): Delete.
29401
29402 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
29403
29404 PR tree-optimization/46494
29405 * loop-unroll.c (split_edge_and_insert): Adjust comment.
29406 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
29407 (pass_rtl_loop_done): Add TODO_verify_flow.
29408 * fwprop.c (pass_rtl_fwprop): Likewise.
29409 * modulo-sched.c (pass_sms): Likewise.
29410 * tree-ssa-dom.c (pass_dominator): Likewise.
29411 * tree-ssa-loop-ch.c (pass_ch): Likewise.
29412 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
29413 (pass_tree_loop_done): Likewise.
29414 * tree-ssa-pre.c (execute_pre): Likewise.
29415 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
29416 * tree-ssa-sink.c (pass_sink_code): Likewise.
29417 * tree-vrp.c (pass_vrp): Likewise.
29418
29419 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
29420
29421 * config/v850/constraints.md: New file.
29422 * config/v850/v850.md: Include it.
29423 * config/v850/predicates.md (reg_or_0_operand): Use
29424 satisfies_constraint_G.
29425 (special_symbolref_operand): Use satisfies_constraint_K.
29426 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
29427 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
29428 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
29429 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
29430 (EXTRA_CONSTRAINT): Delete.
29431 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
29432 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
29433 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
29434
29435 2011-02-14 Anatoly Sokolov <aesok@post.ru>
29436
29437 PR target/47696
29438 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
29439 description.
29440
29441 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
29442
29443 * config/mcore/constraints.md: New file.
29444 * config/mcore/mcore.md: Include it.
29445 * config/mcore/mcore.c (reg_class_from_letter): Delete.
29446 * config/mcore/mcore.h (reg_class_from_letter): Delete.
29447 (REG_CLASS_FROM_LETTER): Delete.
29448 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
29449 insn_const_int_ok_for_constraint.
29450 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
29451 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
29452 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
29453 (EXTRA_CONSTRAINT): Delete.
29454
29455 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29456
29457 PR ada/41929
29458 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
29459 (IS_SIGHANDLER): Define.
29460 (sparc64_is_sighandler): New function, split off from
29461 sparc64_fallback_frame_state.
29462 (sparc_is_sighandler): New function, split off from
29463 sparc_fallback_frame_state.
29464 (sparc64_fallback_frame_state): Merge with ...
29465 (sparc_fallback_frame_state): ... this into ...
29466 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
29467 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
29468 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
29469 stack instead of hardcoded offsets.
29470
29471 2011-02-14 Andriy Gapon <avg@freebsd.org>
29472
29473 PR target/45808
29474 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
29475
29476 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29477
29478 * configure: Regenerate.
29479
29480 2011-02-12 Joseph Myers <joseph@codesourcery.com>
29481
29482 PR driver/45731
29483 * gcc.c (asm_options): Correct spec matching --target-help.
29484
29485 2011-02-12 Martin Jambor <mjambor@suse.cz>
29486
29487 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
29488 to gimple call error.
29489
29490 2011-02-12 Mike Stump <mikestump@comcast.net>
29491
29492 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
29493 comments in backslash regions.
29494
29495 2011-02-12 Mike Stump <mikestump@comcast.net>
29496 Jakub Jelinek <jakub@redhat.com>
29497 Iain Sandoe <iains@gcc.gnu.org>
29498
29499 PR target/47324
29500 * dwarf2out.c (output_cfa_loc): When required, apply the
29501 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
29502 (output_loc_sequence): Likewise.
29503 (output_loc_operands_raw): Likewise.
29504 (output_loc_sequence_raw): Likewise.
29505 (output_cfa_loc): Likewise.
29506 (output_loc_list): Suppress register number adjustment when
29507 calling output_loc_sequence()
29508 (output_die): Likewise.
29509
29510 2011-02-12 Anatoly Sokolov <aesok@post.ru>
29511
29512 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
29513 Remove macros.
29514 * config/xtensa/xtensa.c (xtensa_register_move_cost,
29515 xtensa_memory_move_cost): New functions.
29516 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
29517
29518 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
29519
29520 PR lto/47225
29521 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
29522 in the current directory.
29523 * configure: Rebuilt.
29524
29525 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
29526
29527 * config/darwin.c (darwin_override_options): Add a hunk missed
29528 from the commit of r168571. Trim comment line lengths and
29529 correct indents of the preceding block.
29530
29531 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
29532
29533 * gcc.c (driver_handle_option): Concatenate the argument to -F with
29534 the switch.
29535
29536 2011-02-11 Joseph Myers <joseph@codesourcery.com>
29537
29538 * common.opt (nostartfiles): New Driver option.
29539
29540 2011-02-11 Xinliang David Li <davidxl@google.com>
29541
29542 PR tree-optimization/47707
29543 * tree-chrec.c (convert_affine_scev): Keep type precision.
29544
29545 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
29546
29547 PR tree-optimization/47420
29548 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
29549
29550 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
29551
29552 PR rtl-optimization/47614
29553 * rtl.h (check_for_inc_dec): Declare.
29554 * dse.c (check_for_inc_dec): Externalize...
29555 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
29556 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
29557
29558 2011-02-11 Joseph Myers <joseph@codesourcery.com>
29559
29560 PR driver/47678
29561 * gcc.c (main): Do not compile inputs if there were errors in
29562 option handling.
29563 * opts-common.c (read_cmdline_option): Check for wrong language
29564 after other error checks.
29565
29566 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
29567
29568 * cgraph.c: Fix comment typos.
29569 * cgraph.h: Likewise.
29570 * cgraphunit.c: Likewise.
29571 * ipa-cp.c: Likewise.
29572 * ipa-inline.c: Likewise.
29573 * ipa-prop.c: Likewise.
29574 * ipa-pure-const.c: Likewise.
29575 * ipa-ref.c: Likewise.
29576 * ipa-reference.c: Likewise.
29577
29578 2011-02-11 Jakub Jelinek <jakub@redhat.com>
29579
29580 PR debug/47684
29581 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
29582
29583 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29584
29585 PR testsuite/47400
29586 * doc/sourcebuild.texi (Require Support): Document
29587 dg-require-ascii-locale.
29588
29589 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
29590
29591 * doc/lto.texi (Write summary): Fix missing parentheses.
29592
29593 2011-02-10 DJ Delorie <dj@redhat.com>
29594
29595 * config/m32c/m32c.c (m32c_option_override): Disable
29596 -fcombine-stack-adjustments until flag value tracking and compare
29597 optimization can be rewritten.
29598
29599 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
29600
29601 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
29602 PROCESSOR_POWER7.
29603 (PROCESSOR_DEFAULT64): Likewise.
29604
29605 2011-02-10 Richard Henderson <rth@redhat.com>
29606
29607 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
29608 change from 2011-02-03.
29609 * config/rx/rx.c (flags_from_code): Likewise.
29610 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
29611 is valid, n/pz otherwise.
29612 (rx_select_cc_mode): Return CCmode if Y is not zero.
29613
29614 2011-02-10 Richard Guenther <rguenther@suse.de>
29615
29616 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
29617
29618 2011-02-10 Richard Guenther <rguenther@suse.de>
29619
29620 PR tree-optimization/47677
29621 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
29622
29623 2011-02-10 Jakub Jelinek <jakub@redhat.com>
29624
29625 PR target/47665
29626 * combine.c (make_compound_operation): Only change shifts into
29627 multiplication for SCALAR_INT_MODE_P.
29628
29629 2011-02-10 Jie Zhang <jie@codesourcery.com>
29630
29631 PR testsuite/47622
29632 Revert
29633 2011-02-05 Jie Zhang <jie@codesourcery.com>
29634 PR debug/42631
29635 * web.c (entry_register): Don't clobber the number of the
29636 first uninitialized reference in used[].
29637
29638 2011-02-09 Richard Guenther <rguenther@suse.de>
29639
29640 PR tree-optimization/47664
29641 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
29642 all edges again.
29643
29644 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
29645
29646 PR target/46481
29647 PR target/47032
29648 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
29649 PROCESSOR_POWER7.
29650 (PROCESSOR_DEFAULT64): Same.
29651 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
29652
29653 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29654
29655 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
29656
29657 2011-02-09 Martin Jambor <mjambor@suse.cz>
29658
29659 PR middle-end/45505
29660 * tree-sra.c (struct access): New flags grp_scalar_read and
29661 grp_scalar_write. Changed description of assignment read and write
29662 flags.
29663 (dump_access): Dump new flags, reorder all of them.
29664 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
29665 to detect multiple scalar reads.
29666 (analyze_access_subtree): Use the new scalar read write flags instead
29667 of the old flags. Adjusted comments.
29668
29669 2011-02-08 DJ Delorie <dj@redhat.com>
29670
29671 PR target/47548
29672 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
29673 patterns.
29674
29675 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29676
29677 * config/m68k/uclinux.opt: New.
29678 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
29679
29680 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29681
29682 * config/cris/elf.opt (sim): New Driver option.
29683
29684 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29685
29686 * config/xtensa/elf.opt: New.
29687 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
29688
29689 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29690
29691 * config/vax/elf.opt: New.
29692 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
29693
29694 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29695
29696 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
29697
29698 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29699
29700 * config/gnu-user.opt: New.
29701 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
29702 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
29703 *-*-uclinux*): Use gnu-user.opt.
29704
29705 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
29706
29707 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
29708 * config/i386/gnu.h (CPP_SPEC): Likewise.
29709
29710 2011-02-08 Ian Lance Taylor <iant@google.com>
29711
29712 * common.opt (fcx-limited-range): Add SetByCombined flag.
29713 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
29714 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
29715 (fassociative-math, freciprocal-math): Likewise.
29716 (funsafe-math-optimizations): Likewise.
29717 * opth-gen.awk: Handle SetByCombined.
29718 * optc-gen.awk: Likewise.
29719 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
29720 (set_unsafe_math_optimizations_flags): Likewise.
29721 * doc/options.texi (Option properties): Document SetByCombined.
29722
29723 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29724
29725 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
29726 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
29727 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
29728 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
29729 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
29730
29731 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
29732
29733 PR tree-optimization/46834
29734 PR tree-optimization/46994
29735 PR tree-optimization/46995
29736 * graphite-sese-to-poly.c (used_outside_reduction): New.
29737 (detect_commutative_reduction): Call used_outside_reduction.
29738 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
29739 translate_scalar_reduction_to_array only when at least one
29740 loop-phi/close-phi tuple has been detected.
29741
29742 2011-02-08 Richard Guenther <rguenther@suse.de>
29743
29744 PR middle-end/47639
29745 * tree-vect-generic.c (expand_vector_operations_1): Update
29746 stmts here ...
29747 (expand_vector_operations): ... not here. Cleanup EH info
29748 and the CFG if required.
29749
29750 2011-02-08 Richard Guenther <rguenther@suse.de>
29751
29752 PR tree-optimization/47641
29753 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
29754 require type compatibility.
29755
29756 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29757
29758 * gimple-low.c (lower_function_body): Don't remove the location of
29759 the return statement here.
29760 (lower_gimple_return): Do it here instead but only if the return
29761 statement is actually used twice.
29762
29763 2011-02-08 Richard Guenther <rguenther@suse.de>
29764
29765 PR tree-optimization/47632
29766 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
29767 unused up_to_stmt parameter, return whether cfg-cleanup is
29768 necessary, remove EH info properly.
29769 (forward_propagate_into_gimple_cond): Adjust caller.
29770 (forward_propagate_into_cond): Likewise.
29771 (forward_propagate_comparison): Likewise.
29772 (tree_ssa_forward_propagate_single_use_vars): Make
29773 forward_propagate_comparison case similar to the two others.
29774
29775 2011-02-08 Nick Clifton <nickc@redhat.com>
29776
29777 * config/mn10300/mn10300.opt (mliw): New command line option.
29778 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
29779 (liw_bundling): New automaton.
29780 (liw): New attribute.
29781 (liw_op): New attribute.
29782 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
29783 (movsi_internal): Add LIW attributes.
29784 (andsi3): Likewise.
29785 (iorsi3): Likewise.
29786 (xorsi3): Likewise.
29787 (addsi3): Separate register and immediate alternatives.
29788 Add LIW attributes.
29789 (subsi3): Likewise.
29790 (cmpsi): Likewise.
29791 (aslsi3): Likewise.
29792 (lshrsi3): Likewise.
29793 (ashrsi3): Likewise.
29794 (liw): New pattern.
29795 * config/mn10300/mn10300.c (liw_op_names): New
29796 (mn10300_print_operand): Handle 'W' operand descriptor.
29797 (extract_bundle): New function.
29798 (check_liw_constraints): New function.
29799 (liw_candidate): New function.
29800 (mn10300_bundle_liw): New function.
29801 (mn10300_reorg): New function.
29802 (TARGET_MACHINE_DEPENDENT_REORG): Define.
29803 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
29804 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
29805 __LIW__ or __NO_LIW__.
29806 * doc/invoke.texi: Describe the -mliw command line option.
29807
29808 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29809
29810 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
29811 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29812 pthread_mutex_unlock): Remove.
29813 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29814 * config/pa/t-pa64: Likewise.
29815 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29816 shared libc if not linking against libpthread.
29817 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29818
29819 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
29820
29821 PR target/47558
29822 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29823 on 10.6 and later to ensure that we always use the unwinder from
29824 the system. Only add -no_compact_unwind when tarteting darwin
29825 10.6 or later.
29826
29827 2011-02-07 Steve Ellcey <sje@cup.hp.com>
29828
29829 PR target/46997
29830 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29831 (vec_interleave_lowv2sf): Ditto.
29832 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29833 (vec_extract_oddv2sf): Ditto.
29834
29835 2011-02-07 Mike Stump <mikestump@comcast.net>
29836
29837 PR target/42333
29838 Add __ieee_divdc3 entry point.
29839 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29840 entry point.
29841 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29842 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29843 * config/darwin.c (darwin_rename_builtins): Add.
29844 * config/darwin-protos.h (darwin_rename_builtins): Add.
29845
29846 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
29847
29848 PR target/47636
29849 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29850 for the condition.
29851
29852 2011-02-07 Mike Stump <mikestump@comcast.net>
29853
29854 * config/darwin.opt (mmacosx-version-min): Update default OS version.
29855
29856 2011-02-07 Denis Chertykov <chertykov@gmail.com>
29857
29858 PR target/47534
29859 * config/avr/libgcc.S (exit): Move .endfunc
29860
29861 2011-02-07 Richard Guenther <rguenther@suse.de>
29862
29863 PR tree-optimization/47615
29864 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29865 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29866 (run_scc_vn): Initialize it.
29867 (visit_reference_op_load): Use it.
29868 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29869
29870 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29871
29872 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29873 DImode trapping arithmetic libfuncs.
29874
29875 2011-02-07 Richard Guenther <rguenther@suse.de>
29876
29877 PR tree-optimization/47621
29878 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29879 two duplicates ...
29880 (execute_update_addresses_taken): ... here. Make it more
29881 conservative in what we accept.
29882
29883 2011-02-06 Joseph Myers <joseph@codesourcery.com>
29884
29885 * config/sparc/freebsd.h (ASM_SPEC): Define.
29886 * config/sparc/vxworks.h (ASM_SPEC): Define.
29887
29888 2011-02-06 Joseph Myers <joseph@codesourcery.com>
29889
29890 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29891
29892 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
29893
29894 * doc/invoke.texi: Remove reference to compiler internals from
29895 user documentation.
29896
29897 * reg-notes.def: Remove REG_VALUE_PROFILE.
29898 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29899
29900 2011-02-05 Jakub Jelinek <jakub@redhat.com>
29901
29902 PR middle-end/47610
29903 * varasm.c (default_section_type_flags): If decl is NULL,
29904 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29905
29906 2011-02-05 Jie Zhang <jie@codesourcery.com>
29907
29908 PR debug/42631
29909 * web.c (entry_register): Don't clobber the number of the
29910 first uninitialized reference in used[].
29911
29912 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
29913
29914 PR tree-optimization/46194
29915 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29916 (build_classic_dist_vector_1): Do not represent classic distance
29917 vectors when the access functions are variating in different loops.
29918
29919 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29920
29921 * config/mips/iris6.opt: New.
29922 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29923
29924 2011-02-04 Richard Henderson <rth@redhat.com>
29925 Steve Ellcey <sje@cup.hp.com>
29926
29927 PR target/46997
29928 * config/ia64/predicates.md (mux1_brcst_element): New.
29929 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29930 * config/ia64/ia64.c (ia64_unpack_assemble): New.
29931 (ia64_unpack_sign): New.
29932 (ia64_expand_unpack): Rewrite using new routines.
29933 (ia64_expand_widen_sum): Ditto.
29934 (ia64_expand_dot_prod_v8qi): Ditto.
29935 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29936 routines, add endian check.
29937 (pmpy2_even): Rename from pmpy2_r, add endian check.
29938 (pmpy2_odd): Rename from pmpy2_l, add endian check.
29939 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29940 (vec_widen_smult_hi_v4hi): Ditto.
29941 (vec_widen_umult_lo_v4hi): Ditto.
29942 (vec_widen_umult_hi_v4hi): Ditto.
29943 (mulv2si3): Change endian checks.
29944 (sdot_prodv4hi): Rewrite with new calls.
29945 (udot_prodv4hi): New.
29946 (vec_pack_ssat_v4hi): Add endian check.
29947 (vec_pack_usat_v4hi): Ditto.
29948 (vec_pack_ssat_v2si): Ditto.
29949 (max1_even): Rename from max1_r, add endian check.
29950 (max1_odd): Rename from max1_l, add endian check.
29951 (*mux1_rev): Format change.
29952 (*mux1_mix): Ditto.
29953 (*mux1_shuf): Ditto.
29954 (*mux1_alt): Ditto.
29955 (*mux1_brcst_v8qi): Use new predicate.
29956 (vec_extract_evenv8qi): Remove endian check.
29957 (vec_extract_oddv8qi): Ditto.
29958 (vec_interleave_lowv4hi): Format change.
29959 (vec_interleave_highv4hi): Ditto.
29960 (mix2_even): Rename from mix2_r, add endian check.
29961 (mix2_odd): Rename from mux2_l, add endian check.
29962 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29963 (vec_extract_evenodd_helper): Format change.
29964 (vec_extract_evenv4hi): Remove endian check.
29965 (vec_extract_oddv4hi): Remove endian check.
29966 (vec_interleave_lowv2si): Format change.
29967 (vec_interleave_highv2si): Format change.
29968 (vec_initv2si): Remove endian check.
29969 (vecinit_v2si): Add endian check.
29970 (reduc_splus_v2sf): Add endian check.
29971 (reduc_smax_v2sf): Ditto.
29972 (reduc_smin_v2sf): Ditto.
29973 (vec_initv2sf): Remove endian check.
29974 (fpack): Add endian check.
29975 (fswap): Add endian check.
29976 (vec_interleave_highv2sf): Add endian check.
29977 (vec_interleave_lowv2sf): Add endian check.
29978 (fmix_lr): Add endian check.
29979 (vec_setv2sf): Format change.
29980 (*vec_extractv2sf_0_be): Use shift to extract operand.
29981 (*vec_extractv2sf_1_be): New.
29982 (vec_pack_trunc_v4hi): Add endian check.
29983 (vec_pack_trunc_v2si): Format change.
29984
29985 2011-02-04 Jakub Jelinek <jakub@redhat.com>
29986
29987 PR inline-asm/23200
29988 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
29989 do bb, locus and block comparison and disallow loads if it is not set.
29990 (stmt_is_replaceable_p): New function.
29991 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29992 callers.
29993 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29994 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29995 SSA_NAME_DEF_STMT.
29996 * tree-flow.h (stmt_is_replaceable_p): New prototype.
29997
29998 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29999
30000 * config/rs6000/xilinx.opt: New.
30001 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
30002
30003 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30004
30005 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
30006
30007 2011-02-03 Anatoly Sokolov <aesok@post.ru>
30008
30009 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
30010 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
30011 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
30012 secondary_reload_info, xtensa_secondary_reload): Remove.
30013 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
30014 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
30015 (xtensa_preferred_reload_class): Make static. Change return and
30016 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
30017 Use CONST_DOUBLE_P predicate.
30018 (xtensa_preferred_output_reload_class): New function.
30019 (xtensa_secondary_reload): Make static.
30020
30021 2011-02-03 Joseph Myers <joseph@codesourcery.com>
30022
30023 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
30024 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
30025 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
30026
30027 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30028
30029 PR middle-end/31490
30030 * output.h (SECTION_RELRO): Define.
30031 (SECTION_MACH_DEP): Adjust.
30032 (get_variable_section): New prototype.
30033 * varpool.c (varpool_finalize_named_section_flags): New function.
30034 (varpool_assemble_pending_decls): Call it.
30035 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
30036 * cgraphunit.c (cgraph_output_in_order): Call
30037 varpool_finalize_named_section_flags.
30038 * varasm.c (get_section): Allow section flags conflicts between
30039 relro and read-only sections if the section hasn't been declared yet.
30040 Set SECTION_OVERRIDE after diagnosing section type conflict.
30041 (get_variable_section): No longer static.
30042 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
30043 readonly sections that need relocations.
30044 (decl_readonly_section_1): New function.
30045 (decl_readonly_section): Use it.
30046
30047 Revert:
30048 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
30049 Steve Ellcey <sje@cup.hp.com>
30050
30051 PR middle-end/31490
30052 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
30053 if section attribute used.
30054
30055 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30056
30057 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
30058 * config/darwin.c (SECTION_NO_ANCHOR): Define.
30059 (darwin_init_sections): Remove assertion.
30060
30061 2011-02-03 Nick Clifton <nickc@redhat.com>
30062
30063 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
30064 lt and ge.
30065 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
30066 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
30067 instead of "n" and "pz".
30068 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
30069 CC_FLAG_S.
30070
30071 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30072
30073 PR target/47312
30074 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
30075 fma, expand FMA_EXPR as fma{,f,l} call.
30076
30077 PR lto/47274
30078 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
30079 copy them into a unsigned char variable and pass address of it to
30080 lto_output_data_stream.
30081
30082 PR target/47564
30083 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
30084 around backend_init_target and lang_dependent_init_target calls.
30085 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
30086 (verify_cgraph_node): Don't call set_cfun here. Use
30087 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
30088 Set error_found for incorrectly represented calls to thunks.
30089
30090 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
30091
30092 PR debug/43092
30093 PR rtl-optimization/43494
30094 * rtl.h (for_each_inc_dec_fn): New type.
30095 (for_each_inc_dec): Declare.
30096 * rtlanal.c (struct for_each_inc_dec_ops): New type.
30097 (for_each_inc_dec_find_inc_dec): New fn.
30098 (for_each_inc_dec_find_mem): New fn.
30099 (for_each_inc_dec): New fn.
30100 * dse.c (struct insn_size): Remove.
30101 (replace_inc_dec, replace_inc_dec_mem): Remove.
30102 (emit_inc_dec_insn_before): New fn.
30103 (check_for_inc_dec): Use it, along with for_each_inc_dec.
30104 (canon_address): Pass mem modes to cselib_lookup.
30105 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
30106 (cselib_lookup_from_insn): Likewise.
30107 (cselib_subst_to_values): Likewise.
30108 * cselib.c (find_slot_memmode): New var.
30109 (cselib_find_slot): New fn. Use it instead of
30110 htab_find_slot_with_hash everywhere.
30111 (entry_and_rtx_equal_p): Use find_slot_memmode.
30112 (autoinc_split): New fn.
30113 (rtx_equal_for_cselib_p): Rename and implement in terms of...
30114 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
30115 Deal with autoinc. Special-case recursion into MEMs.
30116 (cselib_hash_rtx): Likewise.
30117 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
30118 address and MEM modes.
30119 (cselib_subst_to_values): Add memmode, pass it on.
30120 Deal with autoinc.
30121 (cselib_lookup): Add memmode argument, pass it on.
30122 (cselib_lookup_from_insn): Add memmode.
30123 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
30124 (struct cselib_record_autoinc_data): New.
30125 (cselib_record_autoinc_cb): New fn.
30126 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
30127 mode to cselib_lookup. Reset autoinced REGs here instead of...
30128 (cselib_process_insn): ... here.
30129 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
30130 to cselib_lookup.
30131 (add_uses): Likewise, also to cselib_subst_to_values.
30132 (add_stores): Likewise.
30133 * sched-deps.c (add_insn_mem_dependence): Pass mode to
30134 cselib_subst_to_values.
30135 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
30136 * gcse.c (do_local_cprop): Adjusted.
30137 * postreload.c (reload_cse_simplify_set): Adjusted.
30138 (reload_cse_simplify_operands): Adjusted.
30139 * sel-sched-dump (debug_mem_addr_value): Pass mode.
30140
30141 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
30142
30143 PR tree-optimization/45122
30144 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
30145 unsafe assumptions when there's more than one loop exit.
30146
30147 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30148
30149 PR target/47272
30150 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30151 Document using vector double with the load/store builtins, and
30152 that the load/store builtins always use Altivec instructions.
30153
30154 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
30155 to use altivec memory instructions, even on VSX.
30156 (vector_altivec_store_<mode>): Ditto.
30157
30158 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
30159 function.
30160
30161 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30162 V2DF, V2DI support to load/store overloaded builtins.
30163
30164 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
30165 altivec load/store builtins for V2DF/V2DI types.
30166
30167 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30168 set avoid indexed addresses on power6 if -maltivec.
30169 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
30170 vector_altivec_load/vector_altivec_store builtins.
30171 (altivec_expand_st_builtin): Ditto.
30172 (altivec_expand_builtin): Add VSX memory builtins.
30173 (rs6000_init_builtins): Add V2DI types to internal types.
30174 (altivec_init_builtins): Add support for V2DF/V2DI altivec
30175 load/store builtins.
30176 (rs6000_address_for_altivec): Insure memory address is appropriate
30177 for Altivec.
30178
30179 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
30180 vec_vsx_ld and vec_vsx_st.
30181 (vsx_store_<mode>): Ditto.
30182
30183 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
30184 variables to hold long long types for VSX vector memory builtins.
30185 (RS6000_BTI_unsigned_long_long): Ditto.
30186 (long_long_integer_type_internal_node): Ditti.
30187 (long_long_unsigned_type_internal_node): Ditti.
30188
30189 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
30190 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
30191 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
30192
30193 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
30194 short cuts.
30195 (vec_vsx_st): Ditto.
30196
30197 2011-02-02 Joseph Myers <joseph@codesourcery.com>
30198
30199 * config/pa/pa-hpux10.opt: New.
30200 * config/hpux11.opt (pthread): New Driver option.
30201 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
30202 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
30203
30204 2011-02-02 Joseph Myers <joseph@codesourcery.com>
30205
30206 * config/ia64/vms.opt: New.
30207 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
30208
30209 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30210
30211 PR target/47580
30212 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
30213 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
30214 generator functions.
30215 (vsx_floatuns<VSi><mode>2): Ditto.
30216 (vsx_fix_trunc<mode><VSi>2): Ditto.
30217 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
30218
30219 2011-02-02 Joseph Myers <joseph@codesourcery.com>
30220
30221 * config/i386/djgpp.opt (posix): New Driver option.
30222
30223 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
30224
30225 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
30226 Move to the unsupported targets list.
30227
30228 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
30229
30230 PR rtl-optimization/47525
30231 * df-scan.c: Update copyright years.
30232 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
30233 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
30234
30235 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30236
30237 * config/i386/sysv4.h (TARGET_VERSION): Remove.
30238 (SUBTARGET_RETURN_IN_MEMORY): Remove.
30239 (ASM_OUTPUT_ASCII): Remove.
30240 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
30241
30242 2011-02-02 Jeff Law <law@redhat.com>
30243
30244 PR middle-end/47543
30245 * reload.c (find_reloads_address): Handle reg+d address where both
30246 components are invalid by reloading the entire address.
30247
30248 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
30249 Richard Guenther <rguenther@suse.de>
30250
30251 PR tree-optimization/40979
30252 PR bootstrap/47044
30253 * passes.c (init_optimization_passes): After LIM call copy_prop
30254 and DCE to clean up.
30255 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
30256
30257 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
30258
30259 PR tree-optimization/47576
30260 PR tree-optimization/47555
30261 * doc/invoke.texi (scev-max-expr-complexity): Documented.
30262 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
30263 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
30264 * tree-scalar-evolution.c (follow_ssa_edge): Use
30265 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
30266
30267 2011-02-02 Richard Guenther <rguenther@suse.de>
30268
30269 PR tree-optimization/47566
30270 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
30271
30272 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
30273
30274 PR debug/47106
30275 PR debug/47402
30276 * tree-inline.c (declare_return_variable): Remove unused caller
30277 variable.
30278
30279 PR debug/47106
30280 PR debug/47402
30281 * tree-flow-inline.h (clear_is_used, is_used_p): New.
30282 * cfgexpand.c (account_used_vars_for_block): Use them.
30283 * tree-nrv.c (tree_nrv): Likewise.
30284 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
30285 (dump_scope_block): Likewise.
30286 (remove_unused_locals): Likewise.
30287
30288 PR debug/47106
30289 PR debug/47402
30290 * tree-inline.c (declare_return_variable): Add result decl to
30291 local decls only once.
30292 * gimple-low.c (record_vars_into): Mark newly-created variables
30293 as referenced.
30294
30295 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
30296
30297 PR debug/47498
30298 PR debug/47501
30299 PR debug/45136
30300 PR debug/45130
30301 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30302 debug insns.
30303 (no_real_insns_p, schedule_block, set_priorities): Drop special
30304 treatment of boundary debug insns.
30305 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30306 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
30307 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30308 (BOUNDARY_DEBUG_INSN_P): Likewise.
30309 (SCHEDULE_DEBUG_INSN_P): Likewise.
30310 * sched-rgn.c (init_ready_list): Drop special treatment of
30311 boundary debug insns.
30312 * final.c (rest_of_clean_state): Clear notes' BB.
30313
30314 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30315
30316 * config/openbsd.opt (assert=): New Driver option.
30317
30318 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30319
30320 * config/i386/nto.opt: New.
30321 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
30322
30323 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30324
30325 * config/i386/netware.opt: New.
30326 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
30327
30328 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30329
30330 * config/interix.opt (posix): New Driver option.
30331
30332 2011-02-01 DJ Delorie <dj@redhat.com>
30333
30334 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
30335
30336 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
30337 class for A0/A1.
30338
30339 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
30340
30341 PR tree-optimization/47561
30342 * toplev.c (process_options): Print the Graphite flags. Add
30343 flag_loop_flatten to the list of options requiring Graphite.
30344
30345 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30346
30347 * config/i386/cygming.opt (posix): New Driver option.
30348
30349 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30350
30351 * config/arm/vxworks.opt: New.
30352 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
30353
30354 2011-02-01 Joseph Myers <joseph@codesourcery.com>
30355
30356 * config/alpha/elf.opt: New.
30357 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
30358 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
30359
30360 2011-02-01 Richard Guenther <rguenther@suse.de>
30361
30362 PR tree-optimization/47559
30363 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
30364 store-motion on references that can throw.
30365
30366 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
30367
30368 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
30369 * tree-pass.h (TDF_CSELIB): New macro.
30370 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
30371 cselib_lookup): Check for it rather than for TDF_DETAILS.
30372
30373 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
30374
30375 PR driver/47547
30376 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
30377 is HOST_BIT_BUCKET.
30378
30379 * opts.c (finish_options): Don't add x_aux_base_name if it is
30380 HOST_BIT_BUCKET.
30381
30382 2011-02-01 Richard Guenther <rguenther@suse.de>
30383
30384 PR tree-optimization/47555
30385 Revert
30386 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
30387
30388 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
30389
30390 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
30391
30392 PR gcc/46692
30393 * config/lm32/t-lm32: Add multilib for all CPU options.
30394
30395 2011-02-01 Richard Guenther <rguenther@suse.de>
30396
30397 PR tree-optimization/47541
30398 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
30399 sure to have a field at offset zero.
30400
30401 2011-01-31 Joseph Myers <joseph@codesourcery.com>
30402
30403 * config/arc/arc.opt (EB, EL): New Driver options.
30404
30405 2011-01-31 Joseph Myers <joseph@codesourcery.com>
30406
30407 * config/alpha/osf5.opt: New.
30408 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
30409
30410 2011-01-31 Joseph Myers <joseph@codesourcery.com>
30411
30412 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
30413
30414 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
30415
30416 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
30417 -floop-interchange.
30418 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
30419 is an alias of -floop-interchange and that it requires the
30420 Graphite infrastructure.
30421 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
30422 flag_loop_interchange based on the value of flag_tree_loop_linear.
30423
30424 2011-01-31 Jakub Jelinek <jakub@redhat.com>
30425 Richard Guenther <rguenther@suse.de>
30426
30427 PR tree-optimization/47538
30428 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
30429 type instead of r1type, except for comparisons. For right
30430 shifts and comparisons punt if there are mismatches in
30431 sizetype vs. non-sizetype types.
30432
30433 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30434
30435 * doc/sourcebuild.texi (Effective-Target Keywords): Document
30436 avx_runtime.
30437
30438 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30439
30440 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
30441 version number.
30442 * configure: Regenerate.
30443
30444 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30445
30446 * configure.ac (gcc_cv_ld_static_option): Define.
30447 (gcc_cv_ld_dynamic_option): Define.
30448 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
30449 instead.
30450 (HAVE_LD_STATIC_DYNAMIC): Update message.
30451 (LD_STATIC_OPTION): Define.
30452 (LD_DYNAMIC_OPTION): Define.
30453 * configure: Regenerate.
30454 * config.in: Regenerate.
30455 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
30456 HAVE_LD_STATIC_DYNAMIC]: Use them.
30457
30458 2011-01-31 Nick Clifton <nickc@redhat.com>
30459
30460 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
30461 registers inside interrupt handlers if the handler is not a leaf
30462 function.
30463
30464 2011-01-31 Nick Clifton <nickc@redhat.com>
30465
30466 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
30467 reg_renumber returning an INVALID_REGNUM.
30468
30469 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
30470
30471 PR libgcj/44341
30472 * doc/install.texi: Document host options discarded when cross
30473 configuring target libraries.
30474
30475 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
30476
30477 Reverted:
30478 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
30479 PR debug/45136
30480 PR debug/45130
30481 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30482 debug insns.
30483 (no_real_insns_p, schedule_block, set_priorities): Drop special
30484 treatment of boundary debug insns.
30485 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30486 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30487 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30488 (BOUNDARY_DEBUG_INSN_P): Likewise.
30489 (SCHEDULE_DEBUG_INSN_P): Likewise.
30490 * sched-rgn.c (init_ready_list): Drop special treatment of
30491 boundary debug insns.
30492 * final.c (rest_of_clean-state): Clear notes' BB.
30493
30494 2011-01-31 Alan Modra <amodra@gmail.com>
30495
30496 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
30497 toc relative expressions as we do in print_operand_address.
30498
30499 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
30500
30501 * doc/extend.texi: Follow spelling conventions.
30502 * doc/invoke.texi: Fix a typo.
30503
30504 2011-01-30 Joseph Myers <joseph@codesourcery.com>
30505
30506 * config/hpux11.opt: New.
30507 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
30508 ia64*-*-hpux*): Use hpux11.opt.
30509
30510 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
30511
30512 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
30513 to tmake_file.
30514
30515 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
30516
30517 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
30518 support sites.
30519
30520 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
30521
30522 * doc/install.texi (Binaries): Remove outdated reference for
30523 Motorola 68HC11/68HC12 downloads.
30524
30525 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
30526
30527 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
30528 Drepper's paper.
30529
30530 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
30531
30532 PR bootstrap/47147
30533 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
30534 used by NetBSD.
30535
30536 2011-01-28 Ahmad Sharif <asharif@google.com>
30537
30538 * value-prof.c (check_counter): Corrected error message.
30539
30540 2011-01-29 Jie Zhang <jie@codesourcery.com>
30541
30542 * config/arm/arm.c (arm_legitimize_reload_address): New.
30543 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
30544 arm_legitimize_reload_address.
30545 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
30546
30547 2011-01-28 Ian Lance Taylor <iant@google.com>
30548
30549 * godump.c (go_define): Ignore macros whose definitions include
30550 two adjacent operands.
30551
30552 2011-01-28 Jakub Jelinek <jakub@redhat.com>
30553
30554 PR target/42894
30555 * varasm.c (force_const_mem): Store copy of x in desc->constant
30556 instead of x itself.
30557 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
30558 itself into REG_EQUAL note.
30559
30560 2011-01-28 Joseph Myers <joseph@codesourcery.com>
30561
30562 * config/freebsd.opt (posix, rdynamic): New Driver options.
30563
30564 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30565
30566 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
30567 -Bstatic/-Bdynamic.
30568 * configure: Regenerate.
30569
30570 2011-01-27 Joseph Myers <joseph@codesourcery.com>
30571
30572 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
30573 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
30574
30575 2011-01-27 Anatoly Sokolov <aesok@post.ru>
30576
30577 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
30578 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
30579 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
30580 (s390_preferred_reload_class): Make static. Change return and
30581 'rclass' argument type to reg_class_t.
30582
30583 2011-01-27 Jan Hubicka <jh@suse.cz>
30584
30585 PR middle-end/46949
30586 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
30587 (process_function_and_variable_attributes): Check defined weakrefs.
30588
30589 2011-01-27 Martin Jambor <mjambor@suse.cz>
30590
30591 PR tree-optimization/47228
30592 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
30593 build_ref_for_offset.
30594
30595 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30596
30597 * config/spu/spu-elf.h (ASM_SPEC): Remove.
30598
30599 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
30600
30601 PR rtl-optimization/46856
30602 * postreload.c (reload_combine_recognize_const_pattern): Do not
30603 separate cc0 setter and user on cc0 targets.
30604
30605 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
30606
30607 PR c/43082
30608 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
30609 passed a VOID_TYPE expression, immediately emit an error and
30610 return error_mark_node.
30611
30612 2011-01-26 Jeff Law <law@redhat.com>
30613
30614 PR rtl-optimization/47464
30615 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
30616 rather than may_trap_p as needed.
30617
30618 2011-01-26 DJ Delorie <dj@redhat.com>
30619
30620 PR rtl-optimization/46878
30621 * combine.c (insn_a_feeds_b): Check for the implicit cc0
30622 setter/user dependency as well.
30623
30624 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
30625
30626 PR rtl-optimization/44469
30627 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
30628 after removing trivially dead basic blocks.
30629
30630 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30631
30632 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
30633 * config/frv/frv.h (LINK_SPEC): Likewise.
30634 * config/i386/netware.h (LINK_SPEC): Likewise.
30635 * config/m68k/linux.h (ASM_SPEC): Likewise.
30636 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
30637 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30638 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30639 * config/sparc/linux.h (ASM_SPEC): Likewise.
30640 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30641 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30642
30643 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30644
30645 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
30646 * config/frv/frv.h (ASM_SPEC): Likewise.
30647 * config/m68k/linux.h (ASM_SPEC): Likewise.
30648 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30649 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
30650 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30651 * config/sparc/linux.h (ASM_SPEC): Likewise.
30652 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30653 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30654
30655 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30656
30657 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
30658 * config/frv/frv.h (LINK_SPEC): Likewise.
30659 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30660
30661 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30662
30663 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
30664 * config/frv/frv.h (ASM_SPEC): Likewise.
30665 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
30666 * config/m68k/linux.h (ASM_SPEC): Likewise.
30667 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30668 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30669 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30670 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
30671 * config/sparc/linux.h (ASM_SPEC): Likewise.
30672 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30673 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30674 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
30675
30676 2011-01-26 Steve Ellcey <sje@cup.hp.com>
30677
30678 PR target/46997
30679 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
30680 (*mux2): Ditto.
30681 (vec_extract_evenodd_help): Ditto.
30682 (vec_extract_evenv4hi): Ditto.
30683 (vec_extract_oddv4hi): Ditto.
30684 (vec_interleave_lowv2si): Ditto.
30685 (vec_interleave_highv2si): Ditto.
30686 (vec_extract_evenv2si): Ditto.
30687 (vec_extract_oddv2si: Ditto.
30688 (vec_pack_trunc_v2si): Ditto.
30689
30690 2011-01-22 Jan Hubicka <jh@suse.cz>
30691
30692 PR target/47237
30693 * cgraph.h (cgraph_local_info): New field can_change_signature.
30694 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
30695 signature can change.
30696 (ipcp_estimate_growth): Call sequence simplify only if calle signature
30697 can change.
30698 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
30699 (cgraph_function_versioning): We can not change signature of functions
30700 that don't allow that.
30701 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
30702 (lto_input_node): Likewise.
30703 * ipa-inline.c (compute_inline_parameters): Compute
30704 local.can_change_signature.
30705 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
30706 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
30707 functions that can not change signature.
30708 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
30709 init_cumulative_args): Do not use local calling conventions
30710 for functions that can not change signature.
30711
30712 2011-01-22 Jan Hubicka <jh@suse.cz>
30713
30714 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
30715
30716 2011-01-26 Richard Guenther <rguenther@suse.de>
30717
30718 PR tree-optimization/47190
30719 * cgraphunit.c (process_common_attributes): New function.
30720 (process_function_and_variable_attributes): Use it.
30721
30722 2011-01-26 Richard Guenther <rguenther@suse.de>
30723
30724 PR lto/47423
30725 * cgraphbuild.c (record_eh_tables): Record reference to personality
30726 function.
30727
30728 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
30729
30730 PR debug/45454
30731 * sel-sched.c (moveup_expr): Don't let debug insns prevent
30732 non-debug insns from moving up.
30733
30734 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
30735
30736 PR target/40125
30737 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
30738 t-dlldir{,-x} fragment for build and add it to tmake_file.
30739 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
30740 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
30741 * config/i386/t-dlldir: New file.
30742 (SHLIB_DLLDIR): Define.
30743 * config/i386/t-dlldir-x: New file.
30744 (SHLIB_DLLDIR): Define.
30745 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
30746 (SHLIB_INSTALL): Use it.
30747
30748 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
30749
30750 PR target/47246
30751 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
30752 lower bound of the allowed Thumb-2 coprocessor load/store
30753 index range to -256. Add explaining comment.
30754
30755 2011-01-25 Ian Lance Taylor <iant@google.com>
30756
30757 * godump.c (go_define): Improve lexing of macro expansion to only
30758 accept expressions which match Go spec.
30759
30760 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
30761
30762 PR c++/43601
30763 * tree.c (handle_dll_attribute): Handle it.
30764 * doc/extend.texi (@item dllexport): Mention it.
30765 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
30766
30767 2011-01-25 Ian Lance Taylor <iant@google.com>
30768
30769 PR tree-optimization/26854
30770 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
30771 (decl_jump_unsafe): Move higher in file, with no other change.
30772 (bind): Set has_jump_unsafe_decl if appropriate.
30773 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
30774 (check_earlier_gotos): Likewise.
30775 (c_check_switch_jump_warnings): Likewise.
30776
30777 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
30778
30779 * doc/invoke.texi (Warning Options): Add missing hyphen.
30780 (-fprofile-dir): Minor grammatical fixes.
30781 (-fbranch-probabilities): Likewise.
30782
30783 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
30784
30785 PR debug/45136
30786 PR debug/45130
30787 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30788 debug insns.
30789 (no_real_insns_p, schedule_block, set_priorities): Drop special
30790 treatment of boundary debug insns.
30791 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30792 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30793 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30794 (BOUNDARY_DEBUG_INSN_P): Likewise.
30795 (SCHEDULE_DEBUG_INSN_P): Likewise.
30796 * sched-rgn.c (init_ready_list): Drop special treatment of
30797 boundary debug insns.
30798 * final.c (rest_of_clean-state): Clear notes' BB.
30799
30800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30801
30802 * Makefile.in (LAMBDA_H): Removed.
30803 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
30804 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
30805 lambda-trans.o, and tree-loop-linear.o.
30806 (lto-symtab.o): Remove dependence on LAMBDA_H.
30807 (tree-loop-linear.o): Remove rule.
30808 (lambda-mat.o): Same.
30809 (lambda-trans.o): Same.
30810 (lambda-code.o): Same.
30811 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
30812 (tree-vect-slp.o): Same.
30813 * hwint.h (gcd): Moved here.
30814 (least_common_multiple): Same.
30815 * lambda-code.c: Removed.
30816 * lambda-mat.c: Removed.
30817 * lambda-trans.c: Removed.
30818 * lambda.h: Removed.
30819 * tree-loop-linear.c: Removed.
30820 * lto-symtab.c: Do not include lambda.h.
30821 * omega.c (gcd): Removed.
30822 * passes.c (init_optimization_passes): Remove pass_linear_transform.
30823 * tree-data-ref.c (print_lambda_vector): Moved here.
30824 (lambda_vector_copy): Same.
30825 (lambda_matrix_copy): Same.
30826 (lambda_matrix_id): Same.
30827 (lambda_vector_first_nz): Same.
30828 (lambda_matrix_row_add): Same.
30829 (lambda_matrix_row_exchange): Same.
30830 (lambda_vector_mult_const): Same.
30831 (lambda_vector_negate): Same.
30832 (lambda_matrix_row_negate): Same.
30833 (lambda_vector_equal): Same.
30834 (lambda_matrix_right_hermite): Same.
30835 * tree-data-ref.h: Do not include lambda.h.
30836 (lambda_vector): Moved here.
30837 (lambda_matrix): Same.
30838 (dependence_level): Same.
30839 (lambda_transform_legal_p): Removed declaration.
30840 (lambda_collect_parameters): Same.
30841 (lambda_compute_access_matrices): Same.
30842 (lambda_vector_gcd): Same.
30843 (lambda_vector_new): Same.
30844 (lambda_vector_clear): Same.
30845 (lambda_vector_lexico_pos): Same.
30846 (lambda_vector_zerop): Same.
30847 (lambda_matrix_new): Same.
30848 * tree-flow.h (least_common_multiple): Removed declaration.
30849 * tree-parloops.c (lambda_trans_matrix): Moved here.
30850 (LTM_MATRIX): Same.
30851 (LTM_ROWSIZE): Same.
30852 (LTM_COLSIZE): Same.
30853 (LTM_DENOMINATOR): Same.
30854 (lambda_trans_matrix_new): Same.
30855 (lambda_matrix_vector_mult): Same.
30856 (lambda_transform_legal_p): Same.
30857 * tree-pass.h (pass_linear_transform): Removed declaration.
30858 * tree-ssa-loop.c (tree_linear_transform): Removed.
30859 (gate_tree_linear_transform): Removed.
30860 (pass_linear_transform): Removed.
30861 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30862 flag_loop_interchange.
30863
30864 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30865
30866 PR tree-optimization/47265
30867 PR tree-optimization/47443
30868 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30869 if name still has some uses.
30870
30871 2011-01-25 Martin Jambor <mjambor@suse.cz>
30872
30873 PR tree-optimization/47382
30874 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30875 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30876
30877 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
30878
30879 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30880 sjlj_except_unwind_info.
30881
30882 2011-01-25 Richard Guenther <rguenther@suse.de>
30883
30884 PR tree-optimization/47426
30885 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30886 visible functions results escape.
30887
30888 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30889
30890 PR target/45701
30891 * config/arm/arm.c (any_sibcall_uses_r3): New function.
30892 (arm_get_frame_offsets): Use it.
30893
30894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30895 Jakub Jelinek <jakub@redhat.com>
30896
30897 PR tree-optimization/47271
30898 * tree-if-conv.c (bb_postdominates_preds): New.
30899 (if_convertible_bb_p): Call bb_postdominates_preds.
30900 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30901 (predicate_scalar_phi): Call bb_postdominates_preds.
30902
30903 2011-01-25 Nick Clifton <nickc@redhat.com>
30904
30905 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30906 * config/rx/rx.c (rx_function_value): Likewise.
30907 (rx_promote_function_mode): Likewise.
30908 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30909 in order to make it legitimate.
30910 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30911 make sure that the first operand is the same as the result register.
30912 (addsi3_unspec): Delete.
30913 (subdi3): Do not accept immediate operands.
30914 (subdi3_internal): Likewise.
30915
30916 2011-01-25 Jeff Law <law@redhat.com>
30917
30918 PR rtl-optimization/37273
30919 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30920 handle them like argument loads from stack slots. Do not double
30921 count memory for memory constants and argument loads from stack slots.
30922
30923 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30924
30925 PR tree-optimization/47427
30926 PR tree-optimization/47428
30927 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30928 coalesce if the new root var would be TREE_READONLY.
30929
30930 2011-01-25 Richard Guenther <rguenther@suse.de>
30931
30932 PR middle-end/47414
30933 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30934 correct type for TBAA.
30935
30936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30937
30938 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30939 (close_phi_written_to_memory): Call for_each_index with
30940 dr_indices_valid_in_loop.
30941
30942 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30943
30944 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30945 when it is initialized.
30946
30947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30948
30949 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30950 call to graphite_find_data_references_in_stmt.
30951 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30952 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
30953 call to graphite_find_data_references_in_stmt.
30954 (analyze_drs_in_stmts): Same.
30955 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30956 in which the scalar analysis of indices is performed.
30957 (create_data_ref): Same. Update call to dr_analyze_indices.
30958 (find_data_references_in_stmt): Update call to create_data_ref.
30959 (graphite_find_data_references_in_stmt): Same.
30960 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30961 declaration.
30962 (create_data_ref): Same.
30963 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30964 call to create_data_ref.
30965
30966 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30967
30968 * graphite-sese-to-poly.c (build_poly_scop): Move
30969 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30970
30971 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30972
30973 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30974 VAR_DECL, PARM_DECL, and RESULT_DECL.
30975
30976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30977
30978 * graphite-dependences.c (reduction_dr_1): Allow several reductions
30979 in a reduction PBB.
30980 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30981 that have already been marked as PBB_IS_REDUCTION.
30982
30983 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30984
30985 * graphite-scop-detection.c (same_close_phi_node): New.
30986 (remove_duplicate_close_phi): New.
30987 (make_close_phi_nodes_unique): New.
30988 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30989
30990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30991
30992 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30993 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30994 of both data references to be the same.
30995
30996 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30997
30998 * graphite-dependences.c (build_lexicographical_constraint): Remove
30999 the gdim parameter.
31000 (build_lexicographical_constraint): Adjust call to
31001 ppl_powerset_is_empty.
31002 (dependence_polyhedron): Same.
31003 (graphite_legal_transform_dr): Same.
31004 (graphite_carried_dependence_level_k): Same.
31005 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
31006 parameter.
31007 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
31008
31009 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31010
31011 * graphite-sese-to-poly.c
31012 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
31013 (close_phi_written_to_memory): New.
31014 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
31015 and unshare_expr.
31016
31017 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31018
31019 * doc/install.texi: Update the expected version number of PPL to 0.11.
31020 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
31021 #if PPL_VERSION_MINOR < 11.
31022
31023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31024
31025 * graphite-dependences.c: Include graphite-cloog-util.h.
31026 (new_poly_ddr): Inlined into dependence_polyhedron.
31027 (free_poly_ddr): Moved close by new_poly_ddr.
31028 (dependence_polyhedron_1): Renamed dependence_polyhedron.
31029 Early return NULL when ppl_powerset_is_empty returns true.
31030 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
31031 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
31032 (graphite_legal_transform_dr): Call new_poly_ddr.
31033 (graphite_carried_dependence_level_k): Same.
31034 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
31035 (dot_transformed_deps_stmt_1): Removed.
31036 (dot_deps_stmt_1): Call dot_deps_stmt_2.
31037 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
31038 (dot_deps_1): Call dot_deps_2.
31039 * Makefile.in (graphite-dependences.o): Add missing dependence on
31040 graphite-cloog-util.h.
31041
31042 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31043
31044 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
31045 (build_lexicographical_constraint): Same.
31046 (dependence_polyhedron_1): Same.
31047 (graphite_legal_transform_dr): Same.
31048 (graphite_carried_dependence_level_k): Same.
31049 * graphite-ppl.c (ppl_powerset_is_empty): New.
31050 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
31051 * tree-data-ref.c (dump_data_reference): Print the basic block index.
31052
31053 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31054
31055 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
31056 the "a followed by b" relation and document it.
31057
31058 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31059
31060 * graphite-dependences.c (build_lexicographical_constraint): Stop the
31061 iteration when the bag of constraints is empty.
31062
31063 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31064
31065 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
31066
31067 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31068
31069 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
31070 nest and two loop depths as parameters.
31071 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
31072 lst_perfect_nestify.
31073
31074 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31075
31076 * graphite-dependences.c (print_pddr): Call
31077 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
31078
31079 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31080
31081 * graphite-ppl.c (debug_gmp_value): New.
31082 * graphite-ppl.h (debug_gmp_value): Declared.
31083
31084 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
31085
31086 * doc/install.texi: Document availability of cloog-0.16.
31087
31088 2011-01-25 Vladimir Kargov <kargov@gmail.com>
31089
31090 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
31091 invalid postdominance info.
31092
31093 2011-01-24 Jan Hubicka <jh@suse.cz>
31094
31095 PR c/21659
31096 * doc/extend.texi (weak pragma): Drop claim that it must
31097 appear before definition.
31098 * varasm.c (merge_weak, declare_weak): Only sanity check
31099 that DECL is not output at a time it is declared weak.
31100
31101 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
31102
31103 * machmode.def: Fixed comments.
31104
31105 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
31106
31107 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
31108
31109 2011-01-24 Paul Koning <ni1d@arrl.net>
31110
31111 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
31112 WORDS_BIG_ENDIAN.
31113
31114 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
31115
31116 PR target/46519
31117 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
31118 (block_info): Add scanned and prev.
31119 (move_or_delete_vzeroupper_2): Return if the basic block
31120 has been scanned and the upper 128bit state is unchanged
31121 from the last scan.
31122 (move_or_delete_vzeroupper_1): Return true if the exit
31123 state is changed.
31124 (move_or_delete_vzeroupper): Visit basic blocks using the
31125 work-list based algorithm based on vt_find_locations in
31126 var-tracking.c.
31127
31128 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
31129
31130 2011-01-24 Nick Clifton <nickc@redhat.com>
31131
31132 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
31133 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
31134 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
31135 then define __v850e1__.
31136 * doc/invoke.texi: Document -mv850es.
31137
31138 2011-01-24 Richard Henderson <rth@redhat.com>
31139
31140 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
31141 compound unordered comparisons.
31142 * config/rx/rx.c (rx_split_fp_compare): Remove.
31143 * config/rx/rx-protos.h: Update.
31144 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
31145 (cbranchsf4): Don't call rx_split_fp_compare.
31146 (*cbranchsf4): Use rx_split_cbranch.
31147 (*cmpsf): Don't accept "i" constraint.
31148 (*conditional_branch): Only valid after reload.
31149 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
31150
31151 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31152
31153 PR target/47385
31154 * config/rs6000/altivec.md (vector constant splitters): Add
31155 support for creating vector single precision constants if -mvsx is
31156 used and we would create the constant using Altivec primitives.
31157
31158 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
31159 Richard Sandiford <rdsandiford@googlemail.com>
31160
31161 PR rtl-optimization/47166
31162 * reload1.c (emit_reload_insns): Disable the spill_reg_store
31163 mechanism for PRE_MODIFY and POST_MODIFY.
31164 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
31165 reloadreg.
31166
31167 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
31168
31169 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
31170
31171 2011-01-22 Jan Hubicka <jh@suse.cz>
31172
31173 PR lto/47333
31174 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
31175
31176 2011-01-22 Jan Hubicka <jh@suse.cz>
31177
31178 PR tree-optimization/43884
31179 PR lto/44334
31180 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
31181 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
31182
31183 2011-01-22 Anatoly Sokolov <aesok@post.ru>
31184
31185 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
31186 * config/s390/s390.c (s390_register_move_cost,
31187 s390_memory_move_cost): New.
31188 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
31189
31190 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31191
31192 PR middle-end/47401
31193 * except.c (sjlj_assign_call_site_values): Move setting the
31194 crtl->uses_eh_lsda flag to ...
31195 (sjlj_mark_call_sites): ... here.
31196 (sjlj_emit_function_enter): Support NULL dispatch label.
31197 (sjlj_build_landing_pads): In a function with no landing pads
31198 that still has must-not-throw regions, generate code to register
31199 a personality function with empty LSDA.
31200
31201 2011-01-21 Richard Henderson <rth@redhat.com>
31202
31203 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
31204
31205 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
31206
31207 * compare-elim.c: New file.
31208 * Makefile.in (OBJS-common): Add it.
31209 (compare-elim.o): New.
31210 * common.opt (fcompare-elim): New.
31211 * opts.c (default_options_table): Add OPT_fcompare_elim.
31212 * tree-pass.h (pass_compare_elim_after_reload): New.
31213 * passes.c (init_optimization_passes): Add it.
31214 * recog.h: Protect against re-inclusion.
31215 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
31216 * doc/invoke.texi (-fcompare-elim): Document it.
31217 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
31218 * doc/tm.texi: Rebuild.
31219
31220 2011-01-22 Nick Clifton <nickc@redhat.com>
31221
31222 * config/rx/rx.md (cstoresf4): Pass comparison operator to
31223 rx_split_fp_compare.
31224
31225 2011-01-22 Nick Clifton <nickc@redhat.com>
31226
31227 * config/rx/rx.md (UNSPEC_CONST): New.
31228 (deallocate_and_return): Wrap the amount popped off the stack in
31229 an UNSPEC_CONST in order to stop it being rejected by
31230 -mmax-constant-size.
31231 (pop_and_return): Add a "(return)" rtx.
31232 (call): Drop the immediate operand.
31233 (call_internal): Likewise.
31234 (call_value): Likewise.
31235 (call_value_internal): Likewise.
31236 (sibcall_internal): Likewise.
31237 (sibcall_value_internal): Likewise.
31238 (sibcall): Likewise. Generate an explicit call using
31239 sibcall_internal.
31240 (sibcall_value): Likewise.
31241 (mov<>): FAIL if a constant operand is not legitimate.
31242 (addsi3_unpsec): New pattern.
31243
31244 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
31245 (ok_for_max_constant): New function.
31246 (gen_safe_add): New function.
31247 (rx_expand_prologue): Use gen_safe_add.
31248 (rx_expand_epilogue): Likewise.
31249 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
31250 UNSPEC CONSTs.
31251
31252 2011-01-21 Jeff Law <law@redhat.com>
31253
31254 PR tree-optimization/47053
31255 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
31256 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
31257 statements are deleted.
31258 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
31259 is nonempty, then purge dead edges and cleanup the CFG.
31260
31261 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
31262
31263 PR debug/47402
31264 Temporarily revert:
31265 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
31266 PR debug/47106
31267 * tree-dfa.c (create_var_ann): Mark variable as used.
31268
31269 2011-01-21 Jakub Jelinek <jakub@redhat.com>
31270
31271 PR middle-end/45566
31272 * except.c (convert_to_eh_region_ranges): Emit queued no-region
31273 notes from other section in hot/cold partitioning even if
31274 last_action is -3. Increment call_site_base.
31275
31276 PR rtl-optimization/47366
31277 * fwprop.c (forward_propagate_into): Return bool. If
31278 any changes are made, -fnon-call-exceptions is used and
31279 REG_EH_REGION note is present, call purge_dead_edges
31280 and return true if it purged anything.
31281 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
31282 any EH edges were purged.
31283
31284 2011-01-21 Jeff Law <law@redhat.com>
31285
31286 PR rtl-optimization/41619
31287 * caller-save.c (setup_save_areas): Break out code to determine
31288 which hard regs are live across calls by examining the reload chains
31289 so that it is always used.
31290 Eliminate code which checked REG_N_CALLS_CROSSED.
31291
31292 2011-01-21 Jakub Jelinek <jakub@redhat.com>
31293
31294 PR tree-optimization/47355
31295 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
31296 NOP has non-debug uses beyond PHIs in new_bb.
31297
31298 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
31299
31300 PR debug/47106
31301 * cfgexpand.c (account_used_vars_for_block): Only account vars
31302 that are annotated as used.
31303 (estimated_stack_frame_size): Don't set TREE_USED.
31304 * tree-dfa.c (create_var_ann): Mark variable as used.
31305
31306 2011-01-21 Richard Guenther <rguenther@suse.de>
31307
31308 PR middle-end/47395
31309 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
31310
31311 2011-01-21 Richard Guenther <rguenther@suse.de>
31312
31313 PR tree-optimization/47365
31314 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
31315 (vn_reference_lookup_pieces): Adjust.
31316 (vn_reference_lookup): Likewise.
31317 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
31318 (vn_reference_lookup_3): Only look through kills if in
31319 VN_WALKREWRITE mode.
31320 (vn_reference_lookup_pieces): Adjust.
31321 (vn_reference_lookup): Likewise.
31322 (visit_reference_op_load): Likewise.
31323 (visit_reference_op_store): Likewise.
31324 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
31325 (compute_avail): Likewise.
31326 (eliminate): Likewise.
31327
31328 2011-01-21 Jakub Jelinek <jakub@redhat.com>
31329
31330 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
31331 DECL_IGNORED_P non-reg vars if they are used.
31332
31333 PR tree-optimization/47391
31334 * varpool.c (const_value_known_p): Return false if
31335 decl is volatile.
31336
31337 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
31338
31339 PR bootstrap/47215
31340 * config/i386/i386.c (ix86_local_alignment): Handle
31341 case for va_list_type_node is nil.
31342 (ix86_canonical_va_list_type): Likewise.
31343
31344 2011-01-21 Alan Modra <amodra@gmail.com>
31345
31346 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
31347 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
31348
31349 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31350
31351 * config/arm/arm.md (define_attr type): Rename f_load
31352 and f_store to f_fpa_load and f_fpa_store. Update.
31353 (write_conflict): Deal with rename fallout.
31354 (*push_fp_multi): Likewise.
31355 * config/arm/fpa.md (f_load): Use f_fpa_load.
31356 (f_store): Use f_fpa_store.
31357 (*movsf_fpa): Likewise.
31358 (*movdf_fpa): Likewise.
31359 (*movxf_fpa): Likewise.
31360 (*thumb2_movsf_fpa): Likewise.
31361 (*thumb2_movdf_fpa): Likewise.
31362 (*thumb2_movxf_fpa): Likewise.
31363 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
31364 f_loadd and f_stored.
31365 (*thumb2_movdi_vfp): Likewise.
31366 (*thumb2_movsf_vfp): Fix attribute to f_loads.
31367 (*thumb2_movsi_vfp): Likewise.
31368 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
31369 Use f_loads instead of f_load.
31370 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
31371
31372 2011-01-20 Anatoly Sokolov <aesok@post.ru>
31373
31374 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
31375 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
31376 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31377 (xtensa_mode_dependent_address_p): New function.
31378 (constantpool_address_p): Make static. Change return type to bool.
31379 Change argument type to const_rtx. Use CONST_INT_P predicate.
31380
31381 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
31382
31383 PR debug/46583
31384 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
31385
31386 2011-01-20 Jakub Jelinek <jakub@redhat.com>
31387
31388 PR debug/47283
31389 * cfgexpand.c (expand_debug_expr): Instead of generating
31390 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
31391 etc. handling.
31392
31393 2011-01-20 Richard Guenther <rguenther@suse.de>
31394
31395 PR middle-end/47370
31396 * tree-inline.c (remap_gimple_op_r): Recurse manually for
31397 the pointer operand of MEM_REFs.
31398
31399 2011-01-20 Jakub Jelinek <jakub@redhat.com>
31400
31401 PR tree-optimization/46130
31402 * ipa-split.c (consider_split): If return_bb contains non-virtual
31403 PHIs other than for retval or if split_function would not adjust it,
31404 refuse to split.
31405
31406 2011-01-20 Richard Guenther <rguenther@suse.de>
31407
31408 PR tree-optimization/47167
31409 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
31410 Revert previous change, only avoid enumeral type changes.
31411
31412 2011-01-19 Mike Stump <mikestump@comcast.net>
31413
31414 * doc/tm.texi.in (BRANCH_COST): Englishify.
31415 * doc/tm.texi (BRANCH_COST): Likewise.
31416
31417 2011-01-19 Dodji Seketeli <dodji@redhat.com>
31418
31419 PR c++/47291
31420 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
31421 (gen_scheduled_generic_parms_dies): New functions.
31422 (gen_struct_or_union_type_die): Schedule template parameters DIEs
31423 generation for the end of CU compilation.
31424 (dwarf2out_finish): Generate template parameters DIEs here.
31425
31426 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
31427
31428 PR debug/46240
31429 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
31430 debug bind stmt on merge edges.
31431
31432 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
31433
31434 PR debug/47079
31435 PR debug/46724
31436 * function.c (instantiate_expr): Instantiate incoming rtl of
31437 implicit arguments, and recurse on VALUE_EXPRs.
31438 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
31439 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
31440
31441 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
31442
31443 * c-parser.c (c_parser_for_statement): Initialize
31444 collection_expression.
31445
31446 2011-01-19 Joseph Myers <joseph@codesourcery.com>
31447
31448 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
31449
31450 2011-01-19 Joseph Myers <joseph@codesourcery.com>
31451
31452 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
31453 (LINK_SHLIB_SPEC): Don't use %(link_path).
31454 (SUBTARGET_EXTRA_SPECS): Remove link_path.
31455
31456 2011-01-19 Joseph Myers <joseph@codesourcery.com>
31457
31458 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
31459 (NO_SHARED_LIB_SUPPORT): Remove.
31460 (LINK_SHLIB_SPEC): Remove one conditional definition.
31461
31462 2011-01-19 Joseph Myers <joseph@codesourcery.com>
31463
31464 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
31465 %{call_shared}.
31466 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
31467 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
31468 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
31469 %{call_shared} and conditionals on these options not being passed.
31470 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
31471 %{call_shared}.
31472
31473 2011-01-19 Jakub Jelinek <jakub@redhat.com>
31474
31475 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
31476 simplify.
31477
31478 * ipa-split.c: Spelling fixes.
31479
31480 2011-01-19 Richard Henderson <rth@redhat.com>
31481
31482 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
31483 (*mulsi3): Likewise.
31484
31485 * longlong.h [__mn10300__] (count_leading_zeros): New.
31486 [__mn10300__] (umul_ppmm, smul_ppmm): New.
31487 [__mn10300__] (add_ssaaaa, subddmmss): New.
31488 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
31489 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
31490
31491 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31492
31493 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
31494
31495 2011-01-19 Richard Henderson <rth@redhat.com>
31496
31497 * config/mn10300/mn10300.md (addsi3_flags): New.
31498 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
31499 (subsi3_flags, subc_internal, subdi3): New.
31500 (subdi3_internal, *subdi3_degenerate): New.
31501 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
31502
31503 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
31504 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
31505 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
31506 * config/mn10300/mn10300-protos.h: Update.
31507 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
31508 (return_ret): Likewise. Rename from return_internal_regs.
31509 (return_internal): Remove.
31510
31511 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
31512 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
31513 (mn10300_legitimate_constant_p): Likewise.
31514 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
31515 (mn10300_frame_size): New.
31516 (mn10300_expand_prologue): Use it.
31517 (mn10300_expand_epilogue): Likewise.
31518 (mn10300_initial_offset): Likewise.
31519 * config/mn10300/mn10300-protos.h: Update.
31520 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
31521 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
31522 (prologue, epilogue, return_internal): Tidy output code.
31523 (mn10300_store_multiple_operation, return): Likewise.
31524 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
31525 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
31526 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
31527 (load_pic, am33_load_pic): New.
31528 (mn10300_load_pic0, mn10300_load_pic1): New.
31529
31530 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
31531 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
31532 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
31533 (cc_flags_for_mode, cc_flags_for_code): New.
31534 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
31535 overflow flag is not valid. Validate that the flags we need
31536 for the comparison are valid.
31537 (mn10300_output_cmp): Remove.
31538 (mn10300_output_add): New.
31539 (mn10300_select_cc_mode): Use cc_flags_for_code.
31540 (mn10300_split_cbranch): New.
31541 (mn10300_match_ccmode): New.
31542 (mn10300_split_and_operand_count): New.
31543 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
31544 to the function.
31545 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
31546 (addsi3): ... here. Use mn10300_output_add.
31547 (*addsi3_flags): New.
31548 (*am33_subsi3, *mn10300_subsi3): Merge...
31549 (subsi3): ... here. Use attribute isa.
31550 (*subsi3_flags): New.
31551 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
31552 when possible.
31553 (*am33_andsi3, *mn10300_andsi3): Merge...
31554 (andsi3): ... here.
31555 (*andsi3_flags): New.
31556 (andsi3 splitters): New.
31557 (*am33_iorsi3, *mn10300_iorsi3): Merge...
31558 (iorsi3): ... here.
31559 (*iorsi3_flags): New.
31560 (*am33_xorsi3, *mn10300_xorsi3): Merge...
31561 (xorsi3): ... here.
31562 (*xorsi3_flags): New.
31563 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
31564 (one_cmplsi2): ... here.
31565 (*one_cmplsi2_flags): New.
31566 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
31567 instead of "dax" in constraints. Use mn10300_split_cbranch.
31568 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
31569 use matching constraints to eliminate a self-comparison.
31570 (*integer_conditional_branch): Rename from integer_conditional_branch.
31571 Use int_mode_flags to match CC_REG.
31572 (*cbranchsi4_btst, *btstsi): New.
31573 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
31574 mn10300_split_cbranch.
31575 (*am33_cmpsf): Rename from am33_cmpsf.
31576 (*float_conditional_branch): Rename from float_conditional_branch.
31577 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
31578 (zero_extendqisi2): ... here.
31579 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
31580 (zero_extendhisi2): ... here.
31581 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
31582 (extendqisi2): ... here.
31583 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
31584 (extendhisi2): ... here.
31585 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
31586 (ashlsi3): ... here.
31587 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
31588 (lshrsi3): ... here.
31589 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
31590 (ashrsi3): ... here.
31591 (consecutive add peephole): Remove.
31592 * config/mn10300/predicates.md (label_ref_operand): New.
31593 (int_mode_flags): New.
31594 (CCZN_comparison_operator): New.
31595
31596 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
31597 (throughput_42_latency_43): New reservation.
31598 (mulsidi3, umulsidi3): New expanders.
31599 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
31600 the MDR register to allocation; separately allocate the low and
31601 high parts of the DImode result.
31602 (umulsidi3_internal): Similarly.
31603 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
31604 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
31605 (udivsi3, umodsi3): Remove.
31606 (udivmodsi4, divmodsi4): New expanders.
31607 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
31608 (*divmodsi4): Simiarly.
31609 (ext_internal): New.
31610
31611 * config/mn10300/constraints.md ("z"): New constraint.
31612 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
31613 (FIXED_REGISTERS): Don't fix MDR.
31614 (CALL_USED_REGSITERS): Reformat nicely.
31615 (REG_ALLOC_ORDER): Add MDR.
31616 (enum regclass): Add MDR_REGS.
31617 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
31618 (IRA_COVER_CLASSES): Add MDR_REGS.
31619 (REGNO_REG_CLASS): Handle MDR_REG.
31620 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
31621 (mn10300_register_move_cost): Likewise.
31622 * config/mn10300/mn10300.md (MDR_REG): New.
31623 (*movsi_internal): Handle moves to/from MDR_REGS.
31624
31625 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
31626 POST_MODIFY.
31627 (mn10300_secondary_reload): Tidy combination reload classes.
31628 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
31629 addresses for AM33. Allow symbolic offsets for reg+imm.
31630 (mn10300_regno_in_class_p): New.
31631 (mn10300_legitimize_reload_address): New.
31632 * config/mn10300/mn10300.h (enum reg_class): Remove
31633 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
31634 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
31635 SP_OR_GENERAL_REGS.
31636 (REG_CLASS_NAMES): Update to match.
31637 (REG_CLASS_CONTENTS): Likewise.
31638 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
31639 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
31640 (REGNO_IN_RANGE_P): Remove.
31641 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
31642 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
31643 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
31644 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
31645 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
31646 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
31647 (REGNO_GENERAL_P): New.
31648 (HAVE_POST_MODIFY_DISP): New.
31649 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
31650 (LEGITIMIZE_RELOAD_ADDRESS): New.
31651 * config/mn10300/mn10300-protos.h: Update.
31652
31653 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
31654 DATA_REGS for AM33 stack-pointer destination.
31655 (mn10300_preferred_output_reload_class): Likewise.
31656 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
31657 into a form appropriate for ...
31658 (TARGET_SECONDARY_RELOAD): New.
31659 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
31660 * config/mn10300/mn10300-protos.h: Update.
31661 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
31662 reload_insi; use the "A" constraint for the scratch; handle AM33
31663 moves of sp to non-address registers.
31664
31665 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
31666 (*movqi_internal): ... here.
31667 (*am33_movhi, *mn10300_movhi): Merge into...
31668 (*movhi_internal): ... here.
31669 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
31670 as the source/destination of moves from/to SP.
31671 (movsf): Only allow for AM33-2.
31672 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
31673 any integer constant constraint. Only allow for AM33-2. Tidy
31674 all of the alternative outputs.
31675 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
31676 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
31677 for MN103.
31678 (udivsi3, umodsi3): New patterns for MN103 only.
31679
31680 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
31681
31682 * doc/tm.texi.in: Spell out that a lack of register class unions
31683 can lead to ICEs.
31684 * doc/tm.texi: Regenerate.
31685
31686 2011-01-19 Jakub Jelinek <jakub@redhat.com>
31687
31688 PR rtl-optimization/47337
31689 * dce.c (check_argument_store): New function.
31690 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
31691
31692 PR tree-optimization/47290
31693 * tree-eh.c (infinite_empty_loop_p): New function.
31694 (cleanup_empty_eh): Use it.
31695
31696 2011-01-18 Steve Ellcey <sje@cup.hp.com>
31697
31698 PR target/46997
31699 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
31700 (a64_expand_widen_sum): Ditto.
31701 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
31702 (vec_extract_evenodd_help): Ditto.
31703 (vec_extract_evenv4hi): Ditto.
31704 (vec_extract_oddv4hi): Ditto.
31705 (vec_extract_evenv2si): Ditto.
31706 (vec_extract_oddv2si): Ditto.
31707 (vec_extract_evenv2sf): Ditto.
31708 (vec_extract_oddv2sf): Ditto.
31709 (vec_pack_trunc_v4hi: Ditto.
31710 (vec_pack_trunc_v2si): Ditto.
31711 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
31712 (vec_interleave_highv8qi): Ditto.
31713 (mix1_r): Ditto.
31714 (vec_extract_oddv8qi): Ditto.
31715 (vec_interleave_lowv4hi): Ditto.
31716 (vec_interleave_highv4hi): Ditto.
31717 (vec_interleave_lowv2si): Ditto.
31718 (vec_interleave_highv2si): Ditto.
31719
31720 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31721
31722 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
31723 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
31724 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
31725 (pa_c_mode_for_suffix): New.
31726 (TARGET_EXPAND_BUILTIN): Define.
31727 (TARGET_C_MODE_FOR_SUFFIX): Define.
31728 (pa_builtins): Define.
31729 (pa_init_builtins): Register __float128 type and init new support
31730 builtins.
31731 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
31732 * config/pa/quadlib.c (_U_Qfcopysign): New.
31733
31734 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
31735
31736 PR middle-end/46894
31737 * explow.c (allocate_dynamic_stack_space): Do not assume more than
31738 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
31739 are defined.
31740
31741 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31742
31743 PR tree-optimization/47179
31744 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
31745 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
31746
31747 2011-01-18 Richard Guenther <rguenther@suse.de>
31748
31749 PR rtl-optimization/47216
31750 * emit-rtl.c: Include tree-flow.h.
31751 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
31752 of replicating it with different semantics.
31753 * Makefile.in (emit-rtl.o): Adjust.
31754
31755 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31756
31757 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
31758 (cortex_a9_dp): Handle neon types correctly.
31759
31760 2011-01-18 Jakub Jelinek <jakub@redhat.com>
31761
31762 PR rtl-optimization/47299
31763 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
31764 subtarget. Use normal multiplication if both operands are constants.
31765 * expmed.c (expand_widening_mult): Don't try to optimize constant
31766 multiplication if op0 has VOIDmode. Convert op1 constant to mode
31767 before using it.
31768
31769 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31770
31771 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
31772 spacing after 'e.g.', typos, comma, hyphenation.
31773
31774 2011-01-17 Richard Henderson <rth@redhat.com>
31775
31776 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
31777 (rx_restricted_mem_operand): New.
31778 (rx_shift_operand): Use register_operand.
31779 (rx_source_operand, rx_compare_operand): Likewise.
31780 * config/rx/rx.md (addsi3_flags): New expander.
31781 (adddi3): Rewrite as expander.
31782 (adc_internal, *adc_flags, adddi3_internal): New patterns.
31783 (subsi3_flags): New expander.
31784 (subdi3): Rewrite as expander.
31785 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
31786
31787 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
31788 (rx_init_builtins): Remove sat builtin.
31789 (rx_expand_builtin): Likewise.
31790 * config/rx/rx.md (ssaddsi3): New.
31791 (*sat): Rename from sat. Represent the CC_REG input.
31792
31793 * config/rx/predicates.md (rshift_operator): New.
31794 * config/rx/rx.c (rx_expand_insv): Remove.
31795 * config/rx/rx-protos.h: Update.
31796 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
31797 operand to the canonical position.
31798 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
31799 (*bitclr, *bitclr_in_memory): Similarly.
31800 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
31801 (insv): Retain the zero_extract in the expansion.
31802
31803 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
31804 (bswaphi2, bitinvert, revw): Likewise.
31805
31806 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
31807 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
31808 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
31809 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
31810 (bitset, bitset_in_memory): Likewise.
31811 (bitinvert, bitinvert_in_memory): Likewise.
31812 (bitclr, bitclr_in_memory): Likewise.
31813 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31814 (rx_strend, rx_cmpstrn): Likewise.
31815 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
31816 (bitop peep2 patterns): Remove.
31817
31818 * config/rx/rx.c (rx_match_ccmode): New.
31819 * config/rx/rx-protos.h: Update.
31820 * config/rx/rx.md (abssi2): Clobber, don't set flags.
31821 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31822 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31823 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31824 (fix_truncsfsi2, floatsisf2): Likewise.
31825 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31826 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31827 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31828 (*subsi3_flags, *xorsi3_flags): New.
31829
31830 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31831
31832 * config/rx/rx.c (rx_print_operand): Remove workaround for
31833 unsplit comparison operations.
31834
31835 * config/rx/rx.md (movsicc): Split after reload.
31836 (*movsicc): Merge *movsieq and *movsine via match_operator.
31837 (*stcc): New pattern.
31838
31839 * config/rx/rx.c (rx_float_compare_mode): Remove.
31840 * config/rx/rx.h (rx_float_compare_mode): Remove.
31841 * config/rx/rx.md (cstoresi4): Split after reload.
31842 (*sccc): New pattern.
31843
31844 * config/rx/predicates.md (label_ref_operand): New.
31845 (rx_z_comparison_operator): New.
31846 (rx_zs_comparison_operator): New.
31847 (rx_fp_comparison_operator): New.
31848 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31849 Validate that the flags are set properly for the comparison.
31850 (rx_gen_cond_branch_template): Remove.
31851 (rx_cc_modes_compatible): Remove.
31852 (mode_from_flags): New.
31853 (flags_from_code): Rename from flags_needed_for_conditional.
31854 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31855 (rx_select_cc_mode): Likewise.
31856 (rx_split_fp_compare): New.
31857 (rx_split_cbranch): New.
31858 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31859 (*cbranchsi4): Use match_operator and rx_split_cbranch.
31860 (*cbranchsf4): Similarly.
31861 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
31862 match_operator and rx_split_cbranch.
31863 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31864 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
31865 (*cmpsi): Rename from cmpsi.
31866 (*tstsi): Rename from tstsi.
31867 (*cmpsf): Rename from cmpsf; use CC_Fmode.
31868 (*conditional_branch): Rename from conditional_branch.
31869 (*reveresed_conditional_branch): Remove.
31870 (b<code>): Remove expander.
31871 * config/rx/rx-protos.h: Update.
31872
31873 * config/rx/rx.c (rx_compare_redundant): Remove.
31874 * config/rx/rx.md (cmpsi): Don't use it.
31875 * config/rx/rx-protos.h: Update.
31876
31877 * config/rx/rx-modes.def (CC_F): New mode.
31878 * config/rx/rx.c (rx_select_cc_mode): New.
31879 * config/rx/rx.h (SELECT_CC_MODE): Use it.
31880 * config/rx/rx-protos.h: Update.
31881
31882 2011-01-17 Richard Henderson <rth@redhat.com>
31883
31884 * except.c (dump_eh_tree): Fix stray ; after for statement.
31885
31886 2011-01-17 Richard Guenther <rguenther@suse.de>
31887
31888 PR tree-optimization/47313
31889 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31890 handling before copying the body. Properly deal with
31891 by-reference result in SSA form.
31892
31893 2011-01-17 Ian Lance Taylor <iant@google.com>
31894
31895 PR target/47219
31896 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31897 (struct_value_alias_set): Don't define.
31898 (sparc_option_override): Don't set sparc_sr_alias_set and
31899 struct_value_alias_set.
31900 (save_or_restore_regs): Use gen_frame_mem rather than calling
31901 set_mem_alias_set.
31902 (sparc_struct_value_rtx): Likewise.
31903
31904 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
31905
31906 PR target/47318
31907 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31908 (_mm_maskstore_pd): Likewise.
31909 (_mm_maskload_ps): Likewise.
31910 (_mm_maskstore_ps): Likewise.
31911 (_mm256_maskload_pd): Change mask to __m256i.
31912 (_mm256_maskstore_pd): Likewise.
31913 (_mm256_maskload_ps): Likewise.
31914 (_mm256_maskstore_ps): Likewise.
31915
31916 * config/i386/i386-builtin-types.def: Updated.
31917 (ix86_expand_special_args_builtin): Likewise.
31918
31919 * config/i386/i386.c (bdesc_special_args): Update
31920 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31921 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31922 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31923 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31924
31925 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31926 Use <avxpermvecmode> on mask register.
31927 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31928
31929 2011-01-17 Olivier Hainque <hainque@adacore.com>
31930 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31931 Eric Botcazou <ebotcazou@adacore.com>
31932
31933 PR target/46655
31934 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31935 if <= USHRT_MAX in 32-bit mode.
31936
31937 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31938
31939 * doc/install.texi (Configuration, Specific): Wrap long
31940 lines in examples. Allow line wrapping in long options
31941 and URLs where beneficial for PDF output.
31942
31943 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
31944
31945 * config/mips/mips.c (mips_classify_symbol): Don't return
31946 SYMBOL_PC_RELATIVE for nonlocal labels.
31947
31948 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
31949
31950 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31951
31952 2011-01-15 Jan Hubicka <jh@suse.cz>
31953
31954 PR tree-optimization/47276
31955 * ipa.c (function_and_variable_visibility): Do not try to mark alias
31956 declarations as needed.
31957
31958 2011-01-15 Martin Jambor <mjambor@suse.cz>
31959
31960 * common.opt (fdevirtualize): New flag.
31961 * doc/invoke.texi (Option Summary): Document it.
31962 * opts.c (default_options_table): Add devirtualize flag.
31963 * ipa-prop.c (detect_type_change): Return immediately if
31964 devirtualize flag is not set.
31965 (detect_type_change_ssa): Likewise.
31966 (compute_known_type_jump_func): Likewise.
31967 (ipa_analyze_virtual_call_uses): Likewise.
31968
31969 2011-01-14 Martin Jambor <mjambor@suse.cz>
31970
31971 PR tree-optimization/45934
31972 PR tree-optimization/46302
31973 * ipa-prop.c (type_change_info): New type.
31974 (stmt_may_be_vtbl_ptr_store): New function.
31975 (check_stmt_for_type_change): Likewise.
31976 (detect_type_change): Likewise.
31977 (detect_type_change_ssa): Likewise.
31978 (compute_complex_assign_jump_func): Check for dynamic type change.
31979 (compute_complex_ancestor_jump_func): Likewise.
31980 (compute_known_type_jump_func): Likewise.
31981 (compute_scalar_jump_functions): Likewise.
31982 (ipa_analyze_virtual_call_uses): Likewise.
31983 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31984
31985 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31986
31987 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31988 * config/i386/i386.opt (msse5): New Alias.
31989
31990 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31991
31992 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31993 * config/sparc/linux64.h (CC1_SPEC): Likewise.
31994 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31995 * config/sparc/sparc.h (CC1_SPEC): Likewise.
31996
31997 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31998
31999 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
32000 -mcpu options.
32001 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32002 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32003 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
32004 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
32005 Likewise.
32006 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
32007
32008 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32009
32010 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
32011
32012 2011-01-14 Mike Stump <mikestump@comcast.net>
32013
32014 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
32015 * config/fr30/fr30.md: Likweise
32016 (movsi_push): Likewise.
32017 (movsi_pop): Likewise.
32018 (enter_func): Likewise.
32019 * config/moxie/moxie.md (movsi_push): Likewise.
32020 (movsi_pop): Likewise.
32021
32022 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32023
32024 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
32025 %{no_archive} %{exact_version}.
32026 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
32027 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
32028 %{no_archive} %{exact_version}.
32029 * config/mips/openbsd.h (LINK_SPEC): Likewise.
32030 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
32031 * config/mips/vxworks.h: Likewise.
32032
32033 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32034
32035 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
32036
32037 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32038
32039 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
32040 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
32041
32042 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32043
32044 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
32045 -nodefaultlib.
32046
32047 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32048
32049 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
32050 for mcpu not cpu.
32051 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
32052 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
32053 not cpu.
32054 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
32055 Don't handle -shlib.
32056
32057 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32058
32059 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
32060 (CC1_SPEC): Don't handle -profile.
32061
32062 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32063
32064 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
32065 * config/mips/mips.h (CC1_SPEC): Likewise.
32066
32067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32068
32069 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
32070 * config/mips/mips.h (CC1_SPEC): Likewise.
32071
32072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32073
32074 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
32075 * config/m32r/linux.h (LINK_SPEC): Likewise.
32076 * config/mips/linux.h (LINK_SPEC): Likewise.
32077 * config/mips/linux64.h (LINK_SPEC): Likewise.
32078 * config/sparc/linux.h (LINK_SPEC): Likewise.
32079 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
32080 LINK_SPEC): Likewise.
32081 * config/xtensa/linux.h (LINK_SPEC): Likewise.
32082
32083 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32084
32085 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
32086 %{version:-v}.
32087 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
32088
32089 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32090
32091 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
32092 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
32093
32094 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32095
32096 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
32097
32098 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32099
32100 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
32101 supports -Bstatic/-Bdynamic.
32102 * configure: Regenerate.
32103
32104 2011-01-14 Jan Hubicka <jh@suse.cz>
32105 Jack Howarth <howarth@bromo.med.uc.edu>
32106
32107 PR target/46037
32108 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
32109 when checking debug_info_level. Test write_symbols instead of
32110 debug_hooks->var_location when setting flag_var_tracking_uninit.
32111
32112 2011-01-14 Richard Guenther <rguenther@suse.de>
32113
32114 PR tree-optimization/47179
32115 * target.def (ref_may_alias_errno): New target hook.
32116 * targhooks.h (default_ref_may_alias_errno): Declare.
32117 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
32118 (default_ref_may_alias_errno): New function.
32119 * target.h (struct ao_ref_s): Declare.
32120 * tree-ssa-alias.c: Include target.h.
32121 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
32122 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
32123 (targhooks.o): Likewise.
32124 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
32125 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
32126
32127 2011-01-14 Richard Guenther <rguenther@suse.de>
32128
32129 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
32130
32131 2011-01-14 Richard Guenther <rguenther@suse.de>
32132
32133 PR tree-optimization/47280
32134 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
32135 return CFG changes.
32136 (tree_ssa_forward_propagate_single_use_vars): Deal with
32137 CFG changes from associate_plusminus.
32138
32139 2011-01-14 Richard Guenther <rguenther@suse.de>
32140
32141 PR middle-end/47281
32142 Revert
32143 2011-01-11 Richard Guenther <rguenther@suse.de>
32144
32145 PR tree-optimization/46076
32146 * tree-ssa.c (useless_type_conversion_p): Conversions from
32147 unprototyped to empty argument list function types are useless.
32148
32149 2011-01-14 Richard Guenther <rguenther@suse.de>
32150
32151 PR tree-optimization/47286
32152 * tree-ssa-structalias.c (new_var_info): Register variables are global.
32153
32154 2011-01-14 Martin Jambor <mjambor@suse.cz>
32155
32156 PR middle-end/46823
32157 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
32158
32159 2011-01-13 Anatoly Sokolov <aesok@post.ru>
32160
32161 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
32162 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
32163 * config/xtensa/xtensa.c (xtensa_libcall_value,
32164 xtensa_function_value_regno_p): New functions.
32165 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
32166
32167 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
32168
32169 PR c++/47213
32170 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
32171 PE specific hook.
32172 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
32173 New function prototype.
32174 * config/i386/winnt.c (i386_pe_assemble_visibility):
32175 Warn only if attribute was specified by user.
32176
32177 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
32178
32179 PR target/47251
32180 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
32181 floating point.
32182 (floatunsdidf2_fcfidu): Ditto.
32183
32184 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32185
32186 * config/s390/s390.c (print_operand_address): Replace 'error' with
32187 'output_operand_lossage'.
32188 (print_operand): Likewise.
32189
32190 2011-01-13 Jeff Law <law@redhat.com>
32191
32192 PR rtl-optimization/39077
32193 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
32194 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
32195 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
32196 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
32197 * gcse.c (prune_insertions_deletions): New function.
32198 (compute_pre_data): Use it.
32199
32200 2011-01-13 Dodji Seketeli <dodji@redhat.com>
32201
32202 PR debug/PR46973
32203 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
32204 static function.
32205 (prune_unused_types_mark): Use it.
32206
32207 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
32208
32209 PR rtl-optimization/45352
32210 * sel-sched.c: Update copyright years.
32211 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
32212 in the advancing loop when we have issued issue_rate insns.
32213
32214 2011-01-12 Richard Henderson <rth@redhat.com>
32215
32216 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
32217 (TARGET_MD_ASM_CLOBBERS): New.
32218
32219 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
32220 (TARGET_DELEGITIMIZE_ADDRESS): New.
32221
32222 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
32223 (clzsi2, *bsch): New patterns.
32224
32225 * config/mn10300/mn10300.md (INT): New mode iterator.
32226 (*mov<INT>_clr): New pattern, and peep2 to generate it.
32227
32228 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
32229 flag_split_wide_types.
32230
32231 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
32232 (mn10300_trampoline_init): Rewrite without a template, an immediate
32233 load and a direct branch.
32234 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
32235
32236 2011-01-12 Anatoly Sokolov <aesok@post.ru>
32237
32238 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32239 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
32240 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
32241 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32242
32243 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
32244
32245 PR debug/47209
32246 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
32247 of type.
32248
32249 2011-01-12 Jan Hubicka <jh@suse.cz>
32250
32251 PR driver/47244
32252 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
32253 (PLUGIN_COND_CLOSE): New macro.
32254 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
32255
32256 2011-01-12 Richard Guenther <rguenther@suse.de>
32257
32258 PR lto/47259
32259 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
32260 register variables in a MEM_REF.
32261
32262 2011-01-12 Joseph Myers <joseph@codesourcery.com>
32263
32264 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
32265 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
32266 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
32267 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
32268 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
32269 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
32270 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
32271 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
32272 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
32273 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
32274 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
32275 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
32276 * config/gnu-user.h: New. Copied from linux.h.
32277 (LINUX_TARGET_STARTFILE_SPEC): Rename to
32278 GNU_USER_TARGET_STARTFILE_SPEC.
32279 (LINUX_TARGET_ENDFILE_SPEC): Rename to
32280 GNU_USER_TARGET_ENDFILE_SPEC.
32281 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
32282 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
32283 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
32284 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
32285 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
32286 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
32287 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
32288 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
32289 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
32290 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
32291 * config/arm/linux-eabi.h (CC1_SPEC): Use
32292 GNU_USER_TARGET_CC1_SPEC.
32293 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
32294 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
32295 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
32296 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
32297 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
32298 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
32299 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
32300 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
32301
32302 2011-01-12 Richard Guenther <rguenther@suse.de>
32303
32304 PR other/46946
32305 * doc/invoke.texi (ffast-math): Document it is turned on
32306 with -Ofast.
32307
32308 2011-01-12 Jan Hubicka <jh@suse.cz>
32309
32310 PR tree-optimization/47233
32311 * opts.c (common_handle_option): Disable ipa-reference with profile
32312 feedback.
32313
32314 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
32315
32316 * c-parser.c (c_parser_objc_at_property_declaration): Improved
32317 error message.
32318
32319 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
32320
32321 * c-parser.c (c_lex_one_token): Updated and reindented some
32322 comments. No changes in code.
32323
32324 2011-01-11 Ian Lance Taylor <iant@google.com>
32325
32326 * godump.c (go_output_var): Don't output the variable if there is
32327 already a type with the same name.
32328
32329 2011-01-11 Ian Lance Taylor <iant@google.com>
32330
32331 * godump.c (go_format_type): Don't generate float80.
32332
32333 2011-01-11 Richard Henderson <rth@redhat.com>
32334
32335 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
32336 declaration. Rewrite for both speed and size.
32337 (mn10300_address_cost_1): Remove.
32338 (mn10300_register_move_cost): New.
32339 (mn10300_memory_move_cost): New.
32340 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
32341 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
32342 extensions, shifts, BSWAP, CLZ.
32343 (mn10300_wide_const_load_uses_clr): Remove.
32344 (TARGET_REGISTER_MOVE_COST): New.
32345 (TARGET_MEMORY_MOVE_COST): New.
32346 * config/mn10300/mn10300-protos.h: Update.
32347 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
32348
32349 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
32350 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
32351 * config/mn10300/mn10300-protos.h: Update.
32352 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
32353 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
32354 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
32355 (*test_int_bitfield, *test_byte_bitfield): Remove.
32356 (*bit_test, *subreg_bit_test): Remove.
32357 * config/mn10300/predicates.md (const_8bit_operand): Remove.
32358
32359 * config/mn10300/constraints.md ("c"): Rename from "A".
32360 ("A", "D"): New constraint letters.
32361 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
32362 (fmssf4, fnmasf4, fnmssf4): Likewise.
32363
32364 * config/mn10300/mn10300.md (isa): New attribute.
32365 (enabled): New attribute.
32366
32367 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
32368 (abssf2, negsf2): Define only for hardware fp.
32369 (sqrtsf2): Reformat.
32370 (addsf3, subsf3, mulsf3): Merge expander and insn.
32371
32372 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
32373 (DEBUGGER_AUTO_OFFSET): Remove.
32374 (DEBUGGER_ARG_OFFSET): Remove.
32375
32376 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
32377 Emit register stores with the same offsets as the hardware.
32378 (mn10300_store_multiple_operation): Don't check that the register
32379 save offsets are monotonic.
32380 * config/mn10300/mn10300-protos.h: Update.
32381
32382 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
32383
32384 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
32385 in terms of the value on the stack, not the MDR register.
32386
32387 2011-01-11 Jan Hubicka <jh@suse.cz>
32388
32389 PR lto/45721
32390 PR lto/45375
32391 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
32392 (symbol_alias_set_destroy, symbol_alias_set_contains,
32393 propagate_aliases_backward): Declare.
32394 * lto-streamer-out.c (struct sets): New sturcture.
32395 (trivally_defined_alias): New function.
32396 (output_alias_pair_p): Rewrite.
32397 (output_unreferenced_globals): Fix output of alias pairs.
32398 (produce_symtab): Likewise.
32399 * ipa.c (function_and_variable_visibility): Set weak alias destination
32400 as needed in lto.
32401 * varasm.c (symbol_alias_set_t): Remove.
32402 (symbol_alias_set_destroy): Export.
32403 (propagate_aliases_forward, propagate_aliases_backward): New functions
32404 based on ...
32405 (compute_visible_aliases): ... this one; remove.
32406 (trivially_visible_alias): New
32407 (trivially_defined_alias): New.
32408 (remove_unreachable_alias_pairs): Rewrite.
32409 (finish_aliases_1): Reorganize code checking if alias is defined.
32410 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
32411 in LTO mode.
32412
32413 2011-01-11 Richard Guenther <rguenther@suse.de>
32414
32415 PR tree-optimization/46076
32416 * tree-ssa.c (useless_type_conversion_p): Conversions from
32417 unprototyped to empty argument list function types are useless.
32418
32419 2011-01-11 Richard Guenther <rguenther@suse.de>
32420
32421 PR middle-end/45235
32422 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
32423 volatile MEMs as MEM_READONLY_P.
32424
32425 2011-01-11 Richard Guenther <rguenther@suse.de>
32426
32427 PR tree-optimization/47239
32428 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
32429
32430 2011-01-11 Jeff Law <law@redhat.com>
32431
32432 PR tree-optimization/47086
32433 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
32434 IVs from statements that might throw.
32435
32436 2011-01-10 Jan Hubicka <jh@suse.cz>
32437
32438 PR lto/45375
32439 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
32440
32441 2011-01-10 Jan Hubicka <jh@suse.cz>
32442
32443 PR lto/45375
32444 * profile.c (read_profile_edge_counts): Ignore profile inconistency
32445 when correcting profile.
32446
32447 2011-01-10 Jan Hubicka <jh@suse.cz>
32448
32449 PR lto/46083
32450 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
32451 DECL_FINI_PRIORITY.
32452 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
32453 Restore DECL_FINI_PRIORITY.
32454
32455 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32456
32457 * doc/gimple.texi: Fix quoting of multi-word return values in
32458 @deftypefn statements. Ensure presence of return value. Wrap
32459 overlong @deftypefn lines.
32460 (is_gimple_operand, is_gimple_min_invariant_address): Remove
32461 descriptions of removed functions.
32462 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
32463 of multi-word return value in @deftypefn statement.
32464
32465 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32466
32467 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
32468 (Conditional Expressions, Logical Operators)
32469 (Statement and operand traversals): Do not indent smallexample
32470 code. Fix duplicate function argument in example.
32471
32472 2011-01-10 Jeff Law <law@redhat.com>
32473
32474 PR tree-optimization/47141
32475 * ipa-split.c (split_function): Handle case where we are
32476 returning a value and the return block has a virtual operand phi.
32477
32478 2011-01-10 Jan Hubicka <jh@suse.cz>
32479
32480 PR tree-optimization/47234
32481 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
32482 (pass_feedback_split_functions): Declare.
32483 * passes.c (init_optimization_passes): Add ipa-split as subpass of
32484 tree-profile.
32485 * ipa-split.c (gate_split_functions): Update comments; disable
32486 split-functions for profile_arc_flag and branch_probabilities.
32487 (gate_feedback_split_functions): New function.
32488 (execute_feedback_split_functions): New function.
32489 (pass_feedback_split_functions): New global var.
32490
32491 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
32492
32493 PR lto/46760
32494 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
32495 calling gimple_call_set_cannot_inline.
32496
32497 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
32498
32499 * config/darwin-sections.def: Remove unused section.
32500
32501 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
32502
32503 PR c++/47218
32504 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
32505
32506 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
32507
32508 PR objc/47232
32509 * c-parser.c (c_parser_declaration_or_fndef): Improved
32510 error message.
32511
32512 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
32513
32514 * config/i386/winnt.c (i386_pe_start_function): Make sure
32515 to switch back to function's section.
32516
32517 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
32518
32519 PR gcc/46902
32520 PR testsuite/46912
32521 * plugin.c: Move include of dlfcn.h from here...
32522 * system.h: ... to here.
32523
32524 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32525
32526 * doc/cpp.texi (C++ Named Operators): Fix markup for header
32527 file name.
32528 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
32529 two extra empty pages in PDF output.
32530
32531 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
32532
32533 PR objc/47078
32534 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
32535 for error recovery purposes behave as if it was not specified so
32536 that the default type is usd.
32537
32538 2011-01-07 Jan Hubicka <jh@suse.cz>
32539
32540 PR tree-optmization/46469
32541 * ipa.c (function_and_variable_visibility): Clear needed flags on
32542 nodes with external decls; handle weakrefs merging correctly.
32543
32544 2011-01-07 Joseph Myers <joseph@codesourcery.com>
32545
32546 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
32547 not false.
32548
32549 2011-01-07 Jan Hubicka <jh@suse.cz>
32550
32551 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
32552 and no longer claim that gold is required for linker plugin.
32553 * configure: Regenerate.
32554 * gcc.c (PLUGIN_COND): New macro.
32555 (LINK_COMMAND_SPEC): Use it.
32556 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
32557 * config.in (HAVE_LTO_PLUGIN): New.
32558 * configure.ac (--with-lto-plugin): New parameter; autodetect
32559 HAVE_LTO_PLUGIN.
32560
32561 2011-01-07 Jan Hubicka <jh@suse.cz>
32562
32563 PR tree-optimization/46367
32564 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
32565 when we can update original.
32566 (cgraph_mark_inline_edge): Sanity check.
32567 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
32568
32569 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32570
32571 * config/spu/spu.h (ASM_COMMENT_START): Define.
32572
32573 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
32574
32575 PR driver/42445
32576 * gcc.c (%>S): New.
32577 (SWITCH_KEEP_FOR_GCC): Likewise.
32578 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
32579 (do_spec_1): Handle "%>".
32580
32581 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
32582
32583 2011-01-07 Jakub Jelinek <jakub@redhat.com>
32584
32585 PR target/47201
32586 * config/i386/i386.c (ix86_delegitimize_address): If
32587 simplify_gen_subreg fails, return orig_x.
32588
32589 PR bootstrap/47187
32590 * value-prof.c (gimple_stringop_fixed_value): Handle
32591 lhs of the call properly.
32592
32593 2011-01-07 Jan Hubicka <jh@suse.cz>
32594
32595 PR lto/45375
32596 * lto-opt.c (lto_reissue_options): Set flag_shlib.
32597
32598 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
32599
32600 * target.def (function_switched_text_sections): New hook.
32601 * doc/tm.texi: Regenerated.
32602 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32603 * final.c (default_function_switched_text_sections): New.
32604 (final_scan_insn): Call function_switched_text_sections when a
32605 mid-function section change occurs.
32606 * output.h (default_function_switched_text_sections): Declare.
32607 * config/darwin-protos.h (darwin_function_switched_text_sections):
32608 Likewise.
32609 * config/darwin.c (darwin_function_switched_text_sections): New.
32610 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32611
32612 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
32613
32614 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
32615 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
32616 the secondary code fragment when outputting for DWARF == 2.
32617
32618 2011-01-07 Anatoly Sokolov <aesok@post.ru>
32619
32620 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32621 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
32622 Remove.
32623 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
32624 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32625
32626 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
32627
32628 PR debug/46704
32629 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
32630 when it is not empty.
32631
32632 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
32633
32634 Bobcat Enablement
32635 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
32636 (case ${target}): Add btver1.
32637 * config/i386/driver-i386.c (host_detect_local_cpu): Let
32638 -march=native recognize btver1 processors.
32639 * config/i386/i386-c.c (ix86_target_macros_internal): Add
32640 btver1 def_and_undef
32641 * config/i386/i386.c (struct processor_costs btver1_cost): New
32642 btver1 cost table.
32643 (m_BTVER1): New definition.
32644 (m_AMD_MULTIPLE): Includes m_BTVER1.
32645 (initial_ix86_tune_features): Add btver1 tune.
32646 (processor_target_table): Add btver1 entry.
32647 (static const char *const cpu_names): Add btver1 entry.
32648 (software_prefetching_beneficial_p): Add btver1.
32649 (ix86_option_override_internal): Add btver1 instruction sets.
32650 (ix86_issue_rate): Add btver1.
32651 (ix86_adjust_cost): Add btver1.
32652 * config/i386/i386.h (TARGET_BTVER1): New definition.
32653 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
32654 (enum processor_type): Add PROCESSOR_BTVER1.
32655 * config/i386/i386.md (define_attr "cpu"): Add btver1.
32656
32657 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32658
32659 PR target/43309
32660 * config/i386/i386.c (legitimize_tls_address)
32661 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
32662 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
32663 (tls_initial_exec_64_sun): New pattern.
32664
32665 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
32666
32667 * doc/invoke.texi (Overall Options): Improve wording and markup
32668 of the description of -wrapper.
32669
32670 2011-01-06 Joseph Myers <joseph@codesourcery.com>
32671
32672 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
32673 rdynamic, threads): New Driver options.
32674
32675 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32676
32677 PR target/38118
32678 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
32679 if coming from .tdata.
32680 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
32681
32682 2011-01-06 Jan Hubicka <jh@suse.cz>
32683
32684 PR lto/47188
32685 * collect2.c (main): Do not enable LTOmode when plugin is active.
32686
32687 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32688
32689 PR other/45915
32690 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
32691 --version output if supported.
32692 * configure: Regenerate.
32693
32694 2011-01-06 Joseph Myers <joseph@codesourcery.com>
32695
32696 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
32697 Driver options.
32698
32699 2011-01-06 Jakub Jelinek <jakub@redhat.com>
32700
32701 PR c/47150
32702 * c-convert.c (convert): When converting a complex expression
32703 other than COMPLEX_EXPR to a different complex type, ensure
32704 c_save_expr is called instead of save_expr, unless in_late_binary_op.
32705 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
32706 when converting COMPLEX_TYPE.
32707
32708 2011-01-06 Ira Rosen <irar@il.ibm.com>
32709
32710 PR tree-optimization/47139
32711 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
32712 only the last reduction value is used outside the loop. Update
32713 documentation.
32714
32715 2011-01-05 Joseph Myers <joseph@codesourcery.com>
32716
32717 * config/rtems.opt: New.
32718 * config.gcc (*-*-rtems*): Use rtems.opt.
32719
32720 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
32721
32722 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
32723 processors do not support 3DNow instructions.
32724
32725 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32726
32727 * config/spu/spu.c (spu_option_override): Set parameter
32728 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
32729
32730 2011-01-05 Jan Hubicka <jh@suse.cz>
32731
32732 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
32733 at the command line.
32734
32735 2011-01-05 Martin Jambor <mjambor@suse.cz>
32736
32737 PR lto/47162
32738 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
32739 deltas on streamed outgoing edges.
32740 (output_node_opt_summary): Output info for outgoing edges only when
32741 the node is in new parameter set.
32742 (output_cgraph_opt_summary): New parameter set, passed to the two
32743 aforementioned functions. Update its forward declaration and its
32744 callee too.
32745
32746 2011-01-05 Tom Tromey <tromey@redhat.com>
32747
32748 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
32749 operator to c_finish_omp_atomic.
32750 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
32751 (build_unary_op): Update.
32752 (build_modify_expr): Update.
32753 (build_asm_expr): Update.
32754
32755 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32756
32757 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
32758 newly inserted insns.
32759 (pad_bb): Likewise.
32760 (spu_emit_branch_hint): Likewise.
32761 (insert_hbrp_for_ilb_runout): Likewise.
32762 (spu_machine_dependent_reorg): Call df_finish_pass after
32763 schedule_insns returns.
32764
32765 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32766
32767 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
32768
32769 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
32770
32771 PR tree-optimization/47005
32772 * tree-sra.c (struct access): Add 'non_addressable' bit.
32773 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
32774 (decide_one_param_reduction): Return 0 if the parameter is passed by
32775 reference and one of the accesses in the group is non_addressable.
32776
32777 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
32778
32779 PR tree-optimization/47056
32780 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
32781 (mark_load): Likewise. Handle FUNCTION_DECL specially.
32782 (mark_store): Likewise. Pass STMT to ipa_record_reference.
32783
32784 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
32785
32786 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
32787 initializer. Skip view conversions from aggregate types.
32788
32789 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
32790
32791 PR bootstrap/47055
32792 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
32793
32794 2011-01-04 Philipp Thomas <pth@suse.de>
32795
32796 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
32797 obvious typo.
32798
32799 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32800
32801 * function.c (thread_prologue_and_epilogue_insns): Do not crash
32802 on empty epilogue sequences.
32803
32804 2011-01-04 Joseph Myers <joseph@codesourcery.com>
32805
32806 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
32807 non-static): New Driver options.
32808
32809 2011-01-04 Jie Zhang <jie@codesourcery.com>
32810
32811 PR driver/47137
32812 * gcc.c (default_compilers[]): Set combinable field to 0
32813 for all assembly languages.
32814
32815 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
32816
32817 * config/mips/loongson3a.md: New file.
32818 * config/mips/mips.md: Include loongson3a.md.
32819 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32820 TUNE_LOONGSON_3A.
32821
32822 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
32823
32824 PR middle-end/47017
32825 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32826 instead of convert_memory_address_addr_space on the base expression.
32827
32828 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32829
32830 * config/spu/spu.c (spu_option_override): Update error text
32831 for bad -march= / -mtune= values.
32832
32833 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32834
32835 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32836 if branch-hint optimization will be performed.
32837
32838 2011-01-03 Jakub Jelinek <jakub@redhat.com>
32839
32840 PR tree-optimization/47148
32841 * ipa-split.c (split_function): Convert arguments to
32842 DECL_ARG_TYPE if possible.
32843
32844 PR tree-optimization/47155
32845 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32846 when computing uns.
32847
32848 PR rtl-optimization/47157
32849 * combine.c (try_combine): If undobuf.other_insn becomes
32850 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32851 and set *new_direct_jump_p too.
32852
32853 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
32854
32855 PR tree-optimization/47021
32856 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32857
32858 2011-01-03 Jakub Jelinek <jakub@redhat.com>
32859
32860 * gcc.c (process_command): Update copyright notice dates.
32861 * gcov.c (print_version): Likewise.
32862 * gcov-dump.c (print_version): Likewise.
32863 * mips-tfile.c (main): Likewise.
32864 * mips-tdump.c (main): Likewise.
32865
32866 2011-01-03 Martin Jambor <mjambor@suse.cz>
32867
32868 PR tree-optimization/46801
32869 * tree-sra.c (type_internals_preclude_sra_p): Check whether
32870 aggregate fields start at byte boundary instead of the bit-field flag.
32871
32872 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
32873
32874 PR driver/47137
32875 * gcc.c (main): Revert revision 168407.
32876
32877 2011-01-03 Martin Jambor <mjambor@suse.cz>
32878
32879 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32880
32881 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32882
32883 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32884 vector optab to expand vector/scalar shift, update gimple to vector.
32885
32886 2011-01-03 Martin Jambor <mjambor@suse.cz>
32887
32888 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32889 a thunk.
32890
32891 2011-01-03 Martin Jambor <mjambor@suse.cz>
32892
32893 PR tree-optimization/46984
32894 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32895 HOST_WIDE_INT.
32896 (cgraph_create_indirect_edge): Fixed line length.
32897 (cgraph_indirect_call_info): Declare.
32898 (cgraph_make_edge_direct) Update declaration.
32899 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32900 (cgraph_create_indirect_edge): Use it.
32901 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
32902 callees.
32903 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32904 the new thunk_delta representation.
32905 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32906 HOST_WIDE_INT.
32907 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32908 (ipa_read_indirect_edge_info): Likewise.
32909 * lto-cgraph.c (output_edge_opt_summary): New function.
32910 (output_node_opt_summary): Call it on all outgoing edges.
32911 (input_edge_opt_summary): New function.
32912 (input_node_opt_summary): Call it on all outgoing edges.
32913
32914 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
32915
32916 PR driver/47137
32917 * gcc.c (main): Don't check have_o when settting combine_inputs.
32918
32919 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
32920
32921 * regrename.c: Add general comment describing the pass.
32922 (struct du_head): Remove 'length' field.
32923 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32924 (regrename_optimize): Do not sort chains. Rework comments, add others.
32925 Force renaming to the preferred class (if any) in the first pass and do
32926 not consider registers that belong to it in the second pass.
32927 (create_new_chain): Do not set 'length' field.
32928 (scan_rtx_reg): Likewise.
32929
32930 2011-01-02 Jakub Jelinek <jakub@redhat.com>
32931
32932 PR tree-optimization/47140
32933 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32934 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32935 to bit_value_binop.
32936
32937 PR rtl-optimization/47028
32938 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32939 parm_birth_insn instead of at the beginning of first bb.
32940
32941 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
32942
32943 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32944 Remove the word "see" before "@pxref".
32945 * doc/rtl.texi: Remove the word "see" before "@pxref".
32946
32947 2011-01-01 Jan Hubicka <jh@suse.cz>
32948
32949 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32950 memory.
32951
32952 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
32953
32954 PR target/38662
32955 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32956
32957 \f
32958 Copyright (C) 2011 Free Software Foundation, Inc.
32959
32960 Copying and distribution of this file, with or without modification,
32961 are permitted in any medium without royalty provided the copyright
32962 notice and this notice are preserved.