1 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3 * target.def (legitimate_constant_p): New hook.
4 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6 * doc/tm.texi: Regenerate.
7 * hooks.h (hook_bool_mode_rtx_true): Declare.
8 * hooks.c (hook_bool_mode_rtx_true): Define.
9 * system.h (LEGITIMATE_CONSTANT_P): Poison.
10 * calls.c (precompute_register_parameters): Replace uses of
11 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
12 (emit_library_call_value_1): Likewise.
13 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
15 * ira-costs.c (scan_one_insn): Likewise.
16 * recog.c (general_operand, immediate_operand): Likewise.
17 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18 * reload1.c (init_eliminable_invariants): Likewise.
20 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
22 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
23 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
25 (TARGET_LEGITIMATE_CONSTANT_P): Define.
26 * config/alpha/predicates.md (input_operand): Update call to
27 alpha_legitimate_constant_p.
29 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
30 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
31 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
32 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
33 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
34 (arm_legitimate_constant_p): New functions.
35 (arm_cannot_force_const_mem): Make static.
37 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
39 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
40 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
41 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
42 instead of bfin_legitimate_constant_p.
43 (bfin_legitimate_constant_p): Make static. Add a mode argument.
44 (TARGET_LEGITIMATE_CONSTANT_P): Define.
46 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
48 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
50 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
51 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
52 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
53 (frv_legitimate_constant_p): Make static. Add a mode argument.
55 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
56 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
57 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
59 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
60 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
61 * config/i386/i386.c (legitimate_constant_p): Rename to...
62 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
64 (ix86_cannot_force_const_mem): Update accordingly.
65 (ix86_legitimate_address_p): Likewise.
66 (TARGET_LEGITIMATE_CONSTANT_P): Define.
67 * config/i386/i386.md: Update commentary.
69 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
70 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
71 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
72 (ia64_legitimate_constant_p): Make static. Add a mode argument.
74 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
76 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
77 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
78 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
79 (lm32_legitimate_constant_p): Make static. Add a mode argument.
81 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
82 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
83 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
85 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
86 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
87 (m32r_legitimate_constant_p): New function.
89 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
90 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
91 LEGITIMATE_CONSTANT_P.
92 (LEGITIMATE_CONSTANT_P): Delete.
93 * config/m68k/m68k.c (m68k_expand_prologue): Call
94 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
95 (m68k_legitimate_constant_p): New function.
96 * config/m68k/m68k.md: Update comments.
98 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
99 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
100 (mcore_legitimate_constant_p): New function.
102 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
103 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
104 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
106 (mep_legitimate_address): Update accordingly.
107 (TARGET_LEGITIMATE_CONSTANT_P): Define.
109 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
111 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
112 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
113 static. Check OP's mode for VOIDmode.
114 (microblaze_legitimate_constant_p): New function.
115 (TARGET_LEGITIMATE_CONSTANT_P): Define.
117 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
118 * config/mips/mips.c (mips_legitimate_constant_p): New function.
119 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
120 (TARGET_LEGITIMATE_CONSTANT_P): Define.
121 * config/mips/predicates.md: Update comments.
123 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
124 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
125 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
126 (mmix_legitimate_constant_p): Make static, return a bool, and take
128 (mmix_print_operand_address): Update accordingly.
130 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
132 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
133 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p):
134 Make static. Add a mode argument.
135 (TARGET_LEGITIMATE_CONSTANT_P): Define.
137 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
139 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
140 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
141 (pa_legitimate_constant_p): New function.
143 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
145 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
146 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
147 (pdp11_legitimate_constant_p): New function.
149 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
150 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
151 (rs6000_legitimate_constant_p): New function.
153 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
154 (rx_legitimate_constant_p): ...this.
155 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
156 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
157 (rx_legitimate_constant_p): ...this.
158 (TARGET_LEGITIMATE_CONSTANT_P): Define.
159 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
161 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
162 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
163 * config/s390/s390.c (legitimate_constant_p): Rename to...
164 (s390_legitimate_constant_p): ...this. Make static, return a bool,
165 and add a mode argument.
166 (TARGET_LEGITIMATE_CONSTANT_P): Define.
168 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
170 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
171 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
172 (sh_legitimate_constant_p): New function.
174 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
175 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
176 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
177 (legitimate_constant_p): Rename to...
178 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
180 (constant_address_p): Update accordingly.
182 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
183 argument and return a bool.
184 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
185 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
186 (spu_legitimate_constant_p): Add a mode argument and return a bool.
187 (spu_rtx_costs): Update accordingly.
188 * config/spu/predicates.md (vec_imm_operand): Likewise.
190 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
192 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
193 * config/v850/v850.c (v850_legitimate_constant_p): New function.
194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
196 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
197 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
198 * config/vax/vax.c (legitimate_constant_p): Likewise.
200 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
201 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
202 (xtensa_legitimate_constant_p): New function.
204 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
206 * target.def (cannot_force_const_mem): Add a mode argument.
207 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
208 * doc/tm.texi: Regenerate.
209 * hooks.h (hook_bool_mode_rtx_false): Declare.
210 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
211 (hook_bool_mode_const_rtx_true): Likewise.
212 (hook_bool_mode_rtx_false): New function.
213 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
214 to be non-VOID. Update call to cannot_force_const_mem.
215 (find_reloads): Update accordingly.
216 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
217 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
219 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
220 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
221 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
222 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
223 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
224 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
225 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
226 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
227 (m68k_cannot_force_const_mem): ...this new function.
228 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
230 (mips_const_insns, mips_legitimize_const_move): Update calls.
231 (mips_secondary_reload_class): Likewise.
232 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
233 (pa_cannot_force_const_mem): ...this new function.
234 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine
236 (rs6000_cannot_force_const_mem): ...this new function.
237 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
239 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
240 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
242 (xtensa_cannot_force_const_mem): ...this new function.
244 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
246 * config/mips/mips.c (mips16_build_function_stub): Call
247 build_function_type_list instead of build_function_type.
248 (mips16_build_call_stub): Likewise.
250 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
252 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
253 instead of build_function_type.
255 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
257 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
258 instead of build_function_type.
260 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
263 * config/i386/i386.md (insv): Change operand 0 constraint to
264 "register_operand". Change operand 1 and 2 constraint to
265 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
266 * config/i386/sse.md (sse4_1_pinsrb): Export.
267 (sse2_pinsrw): Ditto.
268 (sse4_1_pinsrd): Ditto.
269 (sse4_1_pinsrq): Ditto.
270 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
271 * config/i386/i386.c (ix86_expand_pinsr): New.
273 2011-04-20 Easwaran Raman <eraman@google.com>
275 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
276 containing union type only with -fstrict-aliasing.
278 2011-04-20 Jim Meyering <meyering@redhat.com>
280 Remove useless if-before-free tests.
281 * calls.c (expand_call, save_area): Likewise.
282 * cfgcleanup.c (try_forward_edges): Likewise.
283 * collect2.c (collect_execute): Likewise.
284 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
285 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
286 * coverage.c (coverage_checksum_string): Likewise.
287 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
288 * cselib.c (cselib_init): Likewise.
289 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
290 (df_set_clean_cfg): Likewise.
291 * function.c (free_after_compilation): Likewise.
292 * gcc.c (do_spec_1, main): Likewise.
293 * gcov.c (create_file_names): Likewise.
294 * gensupport.c (identify_predicable_attribute): Likewise.
295 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
296 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
297 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
298 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
299 * ipa-pure-const.c (local_pure_const): Likewise.
300 * ipa-reference.c (propagate): Likewise.
301 * ira-costs.c (free_ira_costs): Likewise.
302 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
303 * matrix-reorg.c (mat_free): Likewise.
304 * prefix.c (get_key_value): Likewise.
305 * profile.c (compute_value_histograms): Likewise.
306 * reload1.c (free_reg_equiv): Likewise.
307 * sched-deps.c (free_deps): Likewise.
308 * sel-sched-ir.c (fence_clear): Likewise.
309 * sese.c (set_rename, if_region_set_false_region): Likewise.
310 * tree-data-ref.c (free_rdg): Likewise.
311 * tree-eh.c (lower_try_finally): Likewise.
312 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
313 * tree-ssa-live.c (delete_var_map): Likewise.
314 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
315 * tree-ssa-pre.c (phi_trans_add): Likewise.
317 2011-04-20 Jakub Jelinek <jakub@redhat.com>
319 PR tree-optimization/48611
320 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
321 beyond ERT_MUST_NOT_THROW region.
323 2011-04-20 Catherine Moore <clm@codesourcery.com>
325 * config/mips/mips.opt (mfix-24k): New.
326 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
327 * config/mips/mips.md (length): Increase by 4 for stores if
329 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
330 all noreorder if fixing 24K errata.
331 * doc/invoke.texi: Document mfix-24k.
333 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
335 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
336 quad-word modes, reduce to 9-bit index range when above 1016
339 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
341 * config/arm/arm.c (arm_gen_constant): Move movw support ....
342 (const_ok_for_op): ... to here.
344 2011-04-20 Kai Tietz <ktietz@redhat.com>
346 * fold-const.c (fold_binary_loc): Add handling for
347 (X & ~Y) | (~X & Y) and (X && !Y) | (!X && Y) optimization to (X ^ Y).
349 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
351 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
353 2011-04-20 Richard Guenther <rguenther@suse.de>
355 PR tree-optimization/47892
356 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
359 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
361 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
363 2011-04-20 Tristan Gingold <gingold@adacore.com>
365 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
367 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
371 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
372 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
373 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
374 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
375 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
377 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
380 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
381 (avr_asm_named_section, avr_asm_output_aligned_common,
382 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
383 New functions to update...
384 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
385 (avr_asm_init_sections): Overwrite section callbacks for
386 data_section, bss_section.
387 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
389 (avr_file_end): ...here.
391 2011-04-20 Richard Guenther <rguenther@suse.de>
394 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
395 objects and types here. Adjust for their offset before
398 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
400 * tree-vect-stmts.c (vectorizable_store): Only chain one related
403 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
405 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
406 (GIMPLE_H): Include $(INTERNAL_FN_H).
407 (OBJS-common): Add internal-fn.o.
408 (internal-fn.o): New rule.
409 * internal-fn.def: New file.
410 * internal-fn.h: Likewise.
411 * internal-fn.c: Likewise.
412 * gimple.h: Include internal-fn.h.
413 (GF_CALL_INTERNAL): New gf_mask.
414 (gimple_statement_call): Put fntype into a union with a new
416 (gimple_build_call_internal): Declare.
417 (gimple_build_call_internal_vec): Likewise.
418 (gimple_call_same_target_p): Likewise.
419 (gimple_call_internal_p): New function.
420 (gimple_call_internal_fn): Likewise.
421 (gimple_call_fntype): Return null for internal calls.
422 (gimple_call_set_fntype): Assert that the function is not internal.
423 (gimple_call_set_fn): Likewise.
424 (gimple_call_set_fndecl): Likewise.
425 (gimple_call_set_internal_fn): New function.
426 (gimple_call_addr_fndecl): Handle null functions.
427 (gimple_call_return_type): Likewise null types.
428 * gimple.c (gimple_build_call_internal_1): New function.
429 (gimple_build_call_internal): Likewise.
430 (gimple_build_call_internal_vec): Likewise.
431 (gimple_call_same_target_p): Likewise.
432 (gimple_call_flags): Handle calls to internal functions.
433 (gimple_call_fnspec): New function.
434 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
435 (gimple_has_side_effects): Handle null functions.
436 (gimple_rhs_has_side_effects): Likewise.
437 (gimple_call_copy_skip_args): Handle calls to internal functions.
438 * cfgexpand.c (expand_call_stmt): Likewise.
439 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
440 * gimple-fold.c (gimple_fold_call): Handle null functions.
441 (gimple_fold_stmt_to_constant_1): Don't fold
442 calls to internal functions.
443 * gimple-low.c (gimple_check_call_args): Handle calls to internal
445 * gimple-pretty-print.c (dump_gimple_call): Likewise.
446 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
447 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
448 (do_warn_unused_result): Likewise.
449 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
450 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
451 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
452 the target of a call.
453 (initialize_hash_element): Update accordingly.
454 (hashable_expr_equal_p): Use gimple_call_same_target_p.
455 (iterative_hash_hashable_expr): Handle calls to internal functions.
456 (print_expr_hash_elt): Likewise.
457 * tree-ssa-pre.c (can_value_number_call): Likewise.
458 (eliminate): Handle null functions.
459 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
460 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
461 (find_func_aliases): Likewise.
462 * value-prof.c (gimple_ic_transform): Likewise.
463 (gimple_indirect_call_to_profile): Likewise.
464 * lto-streamer-in.c (input_gimple_stmt): Likewise.
465 * lto-streamer-out.c (output_gimple_stmt): Likewise.
467 2011-04-19 Jan Hubicka <jh@suse.cz>
469 * ipa-inline-transform.c (save_inline_function_body): Add comments.
470 * ipa-inline.c (inline_small_functions): Compute summaries first,
473 2011-04-19 Jan Hubicka <jh@suse.cz>
475 * cgraph.h (save_inline_function_body): Remove.
476 * ipa-inline-transform.c: New file, broke out of...
477 * ipa-inline.c: ... this one; Update toplevel comment.
478 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
480 (update_noncloned_frequencies): Move to ipa-inline-transform.c
481 (cgraph_mark_inline_edge): Rename to inline_call; move to
482 ipa-inline-transform.c.
483 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
484 move to ipa-inline-transform.c
485 (recursive_inlining, inline_small_functions, flatten_function,
486 ipa_inline, inline_always_inline_functions,
487 early_inline_small_functions): Update.
488 (inline_transform): Move to ipa-inline-transform.c.
489 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
491 * Makefile.in (ipa-inline-transform.o): New file.
492 * cgraphunit.c (save_inline_function_body): Move to
493 ipa-inline-transform.c
495 2011-04-19 DJ Delorie <dj@redhat.com>
497 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
498 registers if we already know there aren't any.
499 (m32c_emit_epilogue): Don't emit a barrier here.
500 (m32c_emit_eh_epilogue): Likewise.
501 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
502 operands at expand time.
503 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
505 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
506 duplicates. Provide aliases instead.
507 * config/m32c/prologue.md (eh_return): Emit a barrier here.
508 (eh_epilogue): Add a "(return)" here as a hint to other parts of
511 2011-04-19 Anatoly Sokolov <aesok@post.ru>
513 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
514 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
515 (general_or_i64_p, sparc_register_move_cost): New function.
517 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
519 * doc/install.texi (Configuration, --enable-threads): Remove mach.
520 Add lynx, mipssde. Sort table.
522 2011-04-19 Xinliang David Li <davidxl@google.com>
524 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
527 2011-04-19 Jakub Jelinek <jakub@redhat.com>
530 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
531 is a SUBREG with non-MODE_INT mode inside of it.
533 2011-04-19 Martin Jambor <mjambor@suse.cz>
535 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
536 also according to actual contants.
537 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
538 (gimple_fold_call): Use it.
539 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
541 2011-04-19 Martin Jambor <mjambor@suse.cz>
543 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
544 non-pointer assignments.
546 2011-04-19 Martin Jambor <mjambor@suse.cz>
548 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
549 account anc_offset and otr_type from the indirect edge info.
550 * ipa-prop.c (get_ancestor_addr_info): New function.
551 (compute_complex_ancestor_jump_func): Assignment analysis moved to
552 get_ancestor_addr_info, call it.
553 (ipa_note_param_call): Do not initialize information about polymorphic
554 calls, return the indirect call graph edge. Remove the last
555 parameter, adjust all callers.
556 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
557 parameters. Initialize polymorphic information in the indirect edge.
559 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
562 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
563 the types if they have different enumeration identifiers.
565 2011-04-19 Jan Hubicka <jh@suse.cz>
567 * cgraph.h (cgraph_optimize_for_size_p): Declare.
568 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
569 * predict.c (cgraph_optimize_for_size_p): Break out from ...
570 (optimize_function_for_size_p) ... here.
572 2011-04-19 Richard Guenther <rguenther@suse.de>
575 * tree.c (free_lang_data): Do not reset the decl-assembler-name
578 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
580 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
581 if DECL_NO_INLINE_WARNING_P is set on the function.
583 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
586 * reload1.c (inc_for_reload): Return void. All callers changed.
587 (emit_input_reload_insns): Don't try to delete previous output
588 reloads to a register, or record spill_reg_store for autoincs.
590 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
592 * gengtype.h: Updated copyright year.
593 (struct input_file_st): Add inpisplugin field.
594 (type_fileloc): New function.
596 (write_typed_struct_alloc_def): Add gcc_assert.
597 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
598 (write_typed_alloc_defns): Don't output for plugin files.
599 (input_file_by_name): Clear inpisplugin field.
600 (main): Set inpisplugin field for plugin files.
602 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
604 * gengtype-state.c (string_eq): New.
605 (read_state): Use string_eq instead of strcmp when creating the
608 2011-04-19 Wei Guozhi <carrot@google.com>
611 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
612 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
614 * config/arm/constraints.md (Uu): New constraint.
615 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
617 2011-04-19 Tristan Gingold <gingold@adacore.com>
619 * config.gcc (-*-*-*vms): Added.
620 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
622 * config/vms/vms-ld.c: New file.
623 * config/vms/vms-ar.c: New file.
624 * config/vms/t-vmsnative: New file.
626 2011-04-18 Xinliang David Li <davidxl@google.com>
628 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
630 2011-04-18 Jakub Jelinek <jakub@redhat.com>
633 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
634 if TREE_TYPE (v) is non-NULL.
636 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
637 gimple_get_virt_mehtod_for_binfo.
638 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
639 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
641 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
643 2011-04-18 Michael Matz <matz@suse.de>
644 Steve Ellcey <sje@cup.hp.com>
646 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
647 use its mode as source mode if it isn't VOIDmode.
649 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
651 * doc/passes.texi: Fill crossref nodes.
653 2011-04-18 Jim Meyering <meyering@redhat.com>
655 Fix doubled-word typos in comments and strings
656 * config/alpha/vms-unwind.h: s/for for/for/
657 * config/arm/unwind-arm.h: Likewise.
658 * config/microblaze/microblaze.c: Likewise.
659 * config/sh/constraints.md: s/in in/in/
660 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
662 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
664 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
665 (AVX_FLOAT_MODE_P): Ditto.
666 (AVX128_VEC_FLOAT_MODE_P): Ditto.
667 (AVX256_VEC_FLOAT_MODE_P): Ditto.
668 (AVX_VEC_FLOAT_MODE_P): Ditto.
669 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
670 (UNSPEC_MASKSTORE): Ditto.
671 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
672 Merge from <sse>_movmsk<ssemodesuffix> and
673 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
674 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
676 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
677 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
678 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
680 2011-04-18 Jan Hubicka <jh@suse.cz>
682 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
684 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
685 (want_inline_function_called_once_p): Break out the logic from
687 (edge_badness): Ensure that profile is not misupdated.
688 (lookup_recursive_calls): Prioritize by call frequencies.
689 (inline_small_functions): Move program size estimates here;
690 actually process whole queue even when unit growth has been
691 met. (to properly compute inline_failed reasons and for the
692 case unit size decrease.) Revisit comments on recursive inlining.
693 (ipa_inline): Remove unit summary code; first inline hot calls
694 of functions called once, cold calls next.
695 (order, nnodes): Remove unused variables.
696 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
697 (GTFILES): Remove ipa-inline.c
698 * sel-sched.c (fill_insns): Silence uninitialized var warning.
700 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
702 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
704 2011-04-18 Jie Zhang <jie@codesourcery.com>
705 Richard Earnshaw <rearnsha@arm.com>
707 * arm.c (neon_builtin_type_bits): Remove.
708 (typedef enum neon_builtin_mode): New.
709 (T_MAX): Don't define.
710 (typedef enum neon_builtin_datum): Remove bits, codes[],
711 num_vars and base_fcode. Add mode, code and fcode.
712 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
713 VAR10): Change accordingly.
714 (neon_builtin_data[]): Change accordingly
715 (arm_init_neon_builtins): Change accordingly.
716 (neon_builtin_compare): Remove.
717 (locate_neon_builtin_icode): Remove.
718 (arm_expand_neon_builtin): Change accordingly.
720 * arm.h (enum arm_builtins): Move to ...
721 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
723 * arm.c (arm_builtin_decl): Declare.
724 (TARGET_BUILTIN_DECL): Define.
725 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
726 (arm_builtin_decls[]): New.
727 (arm_init_neon_builtins): Store builtin declarations in
729 (arm_init_tls_builtins): Likewise.
730 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
731 (arm_builtin_decl): New.
733 2011-04-18 Richard Guenther <rguenther@suse.de>
735 * tree.c (upper_bound_in_type): Build properly canonicalized
737 (lower_bound_in_type): Likewise.
739 2011-04-18 Richard Guenther <rguenther@suse.de>
741 * gimple.h (gimple_call_addr_fndecl): New function.
742 (gimple_call_fndecl): Use it.
743 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
745 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
746 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
748 2011-04-18 Richard Guenther <rguenther@suse.de>
751 * tree.c (build_string): STRING_CST is now derived from tree_typed.
753 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
756 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
757 DECL_IN_CONSTANT_POOL without RTL.
759 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
760 Ira Rosen <ira.rosen@linaro.org>
763 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
764 to match neon_vzip/vuzp/vtrn_internal.
765 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
766 outputs explicitly dependent on both inputs.
767 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
769 2011-04-18 Jakub Jelinek <jakub@redhat.com>
771 PR tree-optimization/48616
772 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
773 whether the shift is by scalar or vector based on whether all SLP
774 scalar stmts have the same rhs.
776 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
778 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
781 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
783 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
786 2011-04-17 Jan Hubicka <jh@suse.cz>
788 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
789 * cgrpahunit.c (cgraph_finalize_function): Do not set
790 finalized_by_frontend.
791 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
792 finalized_by_frontend.
794 2011-04-17 Jan Hubicka <jh@suse.cz>
796 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
797 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
798 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
799 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
801 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
803 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
805 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
808 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
809 is non-null before accessing it.
810 (input_cgraph): Remove trailing spaces.
812 2011-04-17 Revital Eres <revital.eres@linaro.org>
814 * params.def (sms-min-sc): New param flag.
815 * modulo-sched.c (sms_schedule): Use it.
816 * doc/invoke.texi (sms-min-sc): Document it.
818 2011-04-17 Jan Hubicka <jh@suse.cz>
820 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
821 present, also set gimple_call_set_cannot_inline.
822 * ipa-inline.c: Update toplevel comment.
824 (cgraph_clone_inlined_nodes): Fix linebreaks.
825 (cgraph_check_inline_limits): Restructure to ...
826 (caller_growth_limits): ... this one; be more tolerant
827 on growth in nested inline chains; add explanatory comment;
828 fix stack accounting thinko introduced by previous patch.
829 (cgraph_default_inline_p): Remove.
830 (report_inline_failed_reason): New function.
831 (can_inline_edge_p): New function.
832 (can_early_inline_edge_p): New function.
833 (leaf_node_p): Move upwards in file.
834 (want_early_inline_function_p): New function.
835 (want_inline_small_function_p): New function.
836 (want_inline_self_recursive_call_p): New function.
837 (cgraph_edge_badness): Rename to ...
838 (edge_badness) ... this one; fix linebreaks.
839 (update_edge_key): Update call of edge_baddness; add
840 detailed dump about queue updates.
841 (update_caller_keys): Use can_inline_edge_p and
842 want_inline_small_function_p.
843 (cgraph_decide_recursive_inlining): Rename to...
844 (recursive_inlining): Use can_inline_edge_p and
845 want_inline_self_recursive_call_p; simplify and remove no longer
847 (cgraph_set_inline_failed): Remove.
848 (add_new_edges_to_heap): Use can_inline_edge_p and
849 want_inline_small_function_p.
850 (cgraph_decide_inlining_of_small_functions): Rename to ...
851 (inline_small_functions): ... this one; cleanup; use
852 can/want predicates; cleanup debug ouput; work edges till fibheap
853 is exhausted and do not stop once unit growth is reached; remove
854 later loop processing remaining edges.
855 (cgraph_flatten): Rename to ...
856 (flatten_function): ... this one; use can_inline_edge_p
857 and can_early_inline_edge_p predicates.
858 (cgraph_decide_inlining): Rename to ...
859 (ipa_inline): ... this one; remove unreachable nodes before
860 inlining functions called once; simplify the pass.
861 (cgraph_perform_always_inlining): Rename to ...
862 (inline_always_inline_functions): ... this one; use
863 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
864 (cgraph_decide_inlining_incrementally): Rename to ...
865 (early_inline_small_functions): ... this one; simplify
866 using new predicates; cleanup; make dumps prettier.
867 (cgraph_early_inlining): Rename to ...
868 (early_inliner): newer inline regular functions into always-inlines;
869 fix updating of call stmt summaries.
870 (pass_early_inline): Update for new names.
871 (inline_transform): Fix formating.
872 (gate_cgraph_decide_inlining): Rename to ...
873 (pass_ipa_inline): ... this one.
874 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
875 * ipa-inline-analysis.c (dump_inline_summary): Update.
876 (compute_inline_parameters): Do not compute disregard_inline_limits;
877 look for mismatching arguments.
878 (estimate_growth): Fix handlig of non-trivial self recursion.
879 (inline_read_summary): Do not read info->disregard_inline_limits.
880 (inline_write_summary): Do not write info->disregard_inline_limits.
881 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
882 and move all checks into can_inline_edge_p predicate; re-enable code
883 comparing optimization levels.
884 (expand_call_inline): Do not test inline_forbidden_into_p.
885 * Makefile.in (ipa-inline.o): Update arguments.
887 2011-04-17 Revital Eres <revital.eres@linaro.org>
889 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
891 2011-04-17 Revital Eres <revital.eres@linaro.org>
893 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
895 2011-04-17 Michael Matz <matz@suse.de>
897 PR tree-optimization/48622
899 * ipa-inline-analysis.c (inline_read_summary): Read size/time
900 in same order as they're written.
902 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
904 * config/pa/predicates.md: Reorganize and simplify predicates.
905 Eliminate duplicate code checks.
906 (arith_operand): Rename to arith14_operand
907 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
908 * config/pa/pa.md: Use renamed operands.
909 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
910 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
911 arith11_operand, adddi3_operand, indexed_memory_operand,
912 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
913 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
914 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
915 move_dest_operand, move_src_operand, prefetch_cc_operand,
916 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
917 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
918 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
919 div_operand, int5_operand, movb_comparison_operator,
920 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
921 arith_double_operand, ireg_operand, lhs_lshift_operand,
922 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
923 integer_store_memory_operand): Likewise.
924 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
925 (integer_store_memory_operand, read_only_operand,
926 function_label_operand, borx_reg_operand,
927 non_hard_reg_operand): Likewise.
928 (eq_neq_comparison_operator): Delete unused operator.
929 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
930 function_label_operand.
931 (emit_move_sequence): Likewise.
933 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
935 * config/i386/sse.md (sseunpackmode): New mode attribute.
936 (ssepackmode): Ditto.
937 (vec_pack_trunc_<mode>): Macroize expander from
938 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
939 (vec_unpacks_lo_<mode>): Macroize expander from
940 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
941 (vec_unpacks_hi_<mode>): Macroize expander from
942 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
943 (vec_unpacku_lo_<mode>): Macroize expander from
944 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
945 (vec_unpacku_hi_<mode>): Macroize expander from
946 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
947 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
948 ix86_expand_sse4_unpack.
949 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
951 2011-04-16 Jan Hubicka <jh@suse.cz>
953 * cgraphbuild.c: Include ipa-inline.h.
954 (reset_inline_failed): Use initialize_inline_failed.
955 * cgraph.c: Include ipa-inline.h.
956 (cgraph_create_node_1): Do not initialize estimated_growth.
957 (initialize_inline_failed): More to ipa-inline-analysis.c
958 (dump_cgraph_node): Do not dump inline flags.
959 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
960 and disregard_inline_limits flags.
961 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
962 time, size, estimated_growth.
963 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
965 * cgraphunit.c (cgraph_decide_is_function_needed): Use
966 DECL_DISREGARD_INLINE_LIMITS.
967 (cgraph_analyze_function): Do not initialize
968 node->local.disregard_inline_limits.
969 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
970 inlinable, versionable and disregard_inline_limits.
971 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
972 cgraph_check_inline_limits, cgraph_default_inline_p,
973 cgraph_edge_badness, update_caller_keys, update_callee_keys,
974 add_new_edges_to_heap): Update.
975 (cgraph_decide_inlining_of_small_function): Update; set
976 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
977 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
978 cgraph_decide_inlining_incrementally): Update.
979 * ipa-inline.h (inline_summary): Add inlinable, versionable,
980 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
981 time, size and estimated_growth parameters.
982 (estimate_edge_growth): Update.
983 (initialize_inline_failed): Declare.
984 * ipa-split.c: Include ipa-inline.h
985 (execute_split_functions): Update.
986 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
987 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
988 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
989 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
990 estimated_growth to INT_MIN.
991 (inline_node_duplication_hook): Likewise.
992 (dump_inline_summary): Dump new fields.
993 (compute_inline_parameters): Update.
994 (estimate_edge_time, estimate_time_after_inlining,
995 estimate_size_after_inlining, estimate_growth, inline_read_summary,
996 inline_write_summary):
997 (initialize_inline_failed): Move here from cgraph.c.
998 * tree-sra.c: Include ipa-inline.h.
999 (ipa_sra_preliminary_function_checks): Update.
1000 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1003 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1005 * config/i386/sse.md (V16): New mode iterator.
1007 (AVXMODEQI, AVXMODEDI): Remove.
1008 (sse2, sse3): New mode attribute.
1009 (mov<mode>): Use V16 mode iterator.
1010 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1011 (push<mode>1): Use V16 mode iterator.
1012 (movmisalign<mode>): Ditto.
1013 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1014 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1015 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1016 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1017 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1018 avx_movdqu<avxmodesuffix>.
1019 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1020 *avx_movdqu<avxmodesuffix>.
1021 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1022 avx_lddqu<avxmodesuffix>.
1023 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1024 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1025 avx_movnt<AVXMODEDI:mode>.
1026 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1027 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1029 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1032 * haifa-sched.c (prune_ready_list, schedule_block): Use
1033 sched_pressure_p rather than flag_sched_pressure.
1035 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1037 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1038 cgraph_get_node instead of cgraph_get_create_node.
1040 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1042 * cfgexpand.c (expand_debug_expr): Use
1043 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1045 2011-04-15 Michael Matz <matz@suse.de>
1047 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1048 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1049 * function.c (gimplify_parameters): Ditto.
1050 * gimplify.c (gimplify_vla_decl): Ditto.
1052 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1053 (gimple_call_set_alloca_for_var): New inline function.
1054 (gimple_call_alloca_for_var_p): Ditto.
1055 * gimple.c (gimple_build_call_from_tree): Remember
1056 CALL_ALLOCA_FOR_VAR_P state.
1057 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1059 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1060 calls if they were for VLA objects.
1062 2011-04-15 Martin Jambor <mjambor@suse.cz>
1064 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1067 2011-04-15 Martin Jambor <mjambor@suse.cz>
1070 * tree-emutls.c (lower_emutls_function_body): Call
1071 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1074 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1076 * c-decl.c (detect_field_duplicates): Call
1077 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1079 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1081 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1082 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1083 * ipa-pure-const.c (check_stmt): Call it.
1084 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1086 2011-04-15 Richard Guenther <rguenther@suse.de>
1088 PR tree-optimization/48290
1089 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1090 Properly decide inhibiting propagation based on the valueized
1091 operand. Do loop-closed SSA form preserving here ...
1092 (init_copy_prop): ... not here.
1094 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1097 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1098 (*ieee_smax<mode>3): Likewise.
1100 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1102 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1103 Replace match_operand with match_dup for the third operand in
1106 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1108 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1109 to track processing of conditionals. Update all callers.
1110 (try_combine, simplify_if_then_else): Update.
1112 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1114 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1117 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1119 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1120 instead of match_operand for operand 3.
1122 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1124 * recog.h (insn_operand_data): Add an "allows_mem" field.
1125 * genoutput.c (output_operand_data): Initialize it.
1126 * optabs.c (maybe_legitimize_operand_same_code): New function.
1127 (maybe_legitimize_operand): Use it when matching the original
1130 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1132 * gimplify.c: Fix issues in comments throughout.
1133 (voidify_wrapper_expr): Fix long line.
1134 (build_stack_save_restore): Likewise.
1135 (gimplify_loop_expr): Likewise.
1136 (gimplify_compound_lval): Likewise.
1137 (gimplify_init_ctor_eval): Likewise.
1138 (gimplify_modify_expr_rhs): Likewise.
1139 (omp_notice_threadprivate_variable): Likewise.
1141 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1143 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1144 original one if this is not a builtin function.
1146 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1149 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1150 offset it as needed based on top 2 bits in operands[3], change
1151 MEM mode to SFmode and mask those 2 bits away from operands[3].
1153 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1155 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1156 change from objc_declare_protocols() to objc_declare_protocol().
1158 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1160 * config/i386/sse.md (sse4_1): New mode attribute.
1161 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1162 avx_blend<ssemodesuffix><avxmodesuffix> and
1163 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1164 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1165 avx_blendv<ssemodesuffix><avxmodesuffix> and
1166 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1167 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1168 avx_dp<ssemodesuffix><avxmodesuffix> and
1169 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1170 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1171 (sse4_1_packusdw): Merge with *avx_packusdw.
1172 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1173 (sse4_1_pblendw): Merge with *avx_pblendw.
1174 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1175 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1176 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1178 (sse4_1_round<ssescalarmodesuffix>): Merge with
1179 *avx_round<ssescalarmodesuffix>.
1180 (aesenc): Merge with *avx_aesenc.
1181 (aesenclast): Merge with *avx_aesenclast.
1182 (aesdec): Merge with *avx_aesdec.
1183 (aesdeclast): Merge with *avx_aesdeclast.
1184 (pclmulqdq): Merge with *pclmulqdq.
1185 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1187 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1189 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1192 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1193 (align_local_variable): This. Update DECL_ALIGN.
1194 (add_stack_var): Updated.
1195 (expand_one_stack_var): Likewise.
1197 2011-04-14 Richard Guenther <rguenther@suse.de>
1199 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1201 (dse_initialize_block_local_data, dse_leave_block,
1202 record_voperand_set, get_stmt_uid): Likewise.
1203 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1204 (dse_optimize_stmt): Remove voperand set handling code.
1205 Simplify and improve to handle any kind of killing stmt.
1206 (dse_record_phi): Remove.
1207 (dse_enter_block): Simplify.
1208 (tree_ssa_dse): Likewise.
1209 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1211 2011-04-14 Jan Hubicka <jh@suse.cz>
1213 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1214 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1215 (cgraph_local_info): Remove inline_summary.
1216 * ipa-cp.c: Include ipa-inline.h.
1217 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1218 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1220 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1221 (input_overwrite_node): Do not set inline summary.
1222 (input_node): Do not stream inline summary.
1223 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1224 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1225 growth; we do not have inline parameters computed for that anyway.
1226 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1227 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1228 (inline_summary_t): New type and VECtor.
1229 (debug_inline_summary, dump_inline_summaries): Declare.
1230 (inline_summary): Use VOCtor.
1231 (estimate_edge_growth): Kill hack computing call stmt size directly.
1232 * lto-section-in.c (lto_section_name): Add inline section.
1233 * ipa-inline-analysis.c: Include lto-streamer.h
1234 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1235 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1236 (inline_summary_vec): Define.
1237 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1238 dump_inline_summaries): New functions.
1239 (estimate_function_body_sizes): Properly compute size/time of outgoing
1241 (compute_inline_parameters): Alloc inline_summary; do not compute
1242 size/time of incomming calls.
1243 (estimate_edge_time): Avoid missing time summary hack.
1244 (inline_read_summary): Read inline summary info.
1245 (inline_write_summary): Write inline summary info.
1246 (inline_free_summary): Free all hooks and inline summary vector.
1247 * lto-streamer.h: Add LTO_section_inline_summary section.
1248 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1249 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1251 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1253 * tree-vectorizer.h (vect_strided_store_supported): Add a
1254 HOST_WIDE_INT argument.
1255 (vect_strided_load_supported): Likewise.
1256 (vect_permute_store_chain): Return void.
1257 (vect_transform_strided_load): Likewise.
1258 (vect_permute_load_chain): Delete.
1259 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1260 count argument. Check that the count is a power of two.
1261 (vect_strided_load_supported): Likewise.
1262 (vect_permute_store_chain): Return void. Update after above changes.
1263 Assert that the access is supported.
1264 (vect_permute_load_chain): Likewise.
1265 (vect_transform_strided_load): Return void.
1266 * tree-vect-stmts.c (vectorizable_store): Update calls after
1267 above interface changes.
1268 (vectorizable_load): Likewise.
1269 (vect_analyze_stmt): Don't check for strided powers of two here.
1271 2011-04-14 Richard Guenther <rguenther@suse.de>
1273 PR tree-optimization/48590
1274 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1275 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1276 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1277 BUILT_IN_STACK_SAVE.
1278 * tree-ssa-dce.c (propagate_necessity): Handle
1279 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1281 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1283 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1286 2011-04-14 Richard Guenther <rguenther@suse.de>
1288 * tree.h (get_object_alignment_1): Declare.
1289 * builtins.c (get_object_alignment_1): Split out worker from ...
1290 (get_object_alignment): ... here.
1291 * fold-const.c (get_pointer_modulus_and_residue): Use
1292 get_object_alignment_1.
1294 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1296 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1298 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1299 parameter. Generalise code to handle arrays as well as vectors.
1300 (vect_setup_realignment): Update accordingly.
1301 * tree-vect-stmts.c (vectorizable_store): Likewise.
1302 (vectorizable_load): Likewise.
1304 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1306 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1307 within the per-copy loop.
1309 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1311 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1314 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1316 * doc/options.texi (Negative): Explicitly mention that the
1317 Negative chain must be circular.
1319 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1321 * function.h (block_chainon): Declare.
1322 * function.c (block_chainon): Define.
1324 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1325 Eric Weddington <eric.weddington@atmel.com>
1326 Georg-Johann Lay <avr@gjlay.de>
1328 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1330 (avr_init_builtins, avr_expand_builtin,
1331 avr_expand_delay_cycles, avr_expand_unop_builtin,
1332 avr_expand_binop_builtin ): New functions.
1333 (avr_builtin_id): New enum
1334 (struct avr_builtin_description): New struct
1335 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1336 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1338 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1339 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1340 UNSPECV_DELAY_CYCLES): new enumeration values
1341 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1342 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1343 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1344 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1345 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1346 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1347 "fmulsu"): New insns
1349 * config/avr/avr-c.c: fix line endings
1350 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1351 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1352 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1353 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1354 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1356 * doc/extend.texi (AVR Built-in Functions): New node
1357 (Target Builtins): Add documentation of AVR
1360 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1363 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1364 alone. Error if non-const data has attribute progmem.
1366 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1368 * tree.h (struct tree_constructor): Include tree_typed instead of
1370 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1371 TS_TYPED instead of TS_COMMON.
1373 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1375 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1376 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1377 (sse2_psadbw): Merge with *avx_psadbw.
1378 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1379 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1380 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1381 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1382 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1383 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1384 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1385 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1386 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1387 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1388 (ssse3_palignrti): Merge with *avx_palignrti.
1390 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1392 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1393 * tree-ssanames.c (fini_ssanames): VEC_free it.
1394 (make_ssa_name_fn): Update for VECness of free_ssanames.
1395 (release_ssa_name, release_dead_ssa_names): Likewise.
1396 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1398 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1399 TS_TYPED instead of TS_COMMON.
1401 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1403 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1404 statistics_counter_event.
1405 * tree-ssa-copyrename.c (stats): Define.
1406 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1407 statistics_counter_event.
1408 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1409 (bswap_stats, widen_mul_stats): Define.
1410 (insert_reciprocals): Increment rdivs_inserted.
1411 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1412 rfuncs_inserted. Add calls to statistics_counter_event.
1413 (execute_cse_sincos_1): Increment inserted.
1414 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1415 statistics_counter_event.
1416 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1417 of bswap_stats. Add calls to statistics_counter_event.
1418 (convert_mult_to_widen): Increment widen_mults_inserted.
1419 (convert_plusminus_to_widen): Increment maccs_inserted.
1420 (convert_mult_to_fma): Increment fmas_inserted.
1421 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1422 calls to statistics_counter_event.
1424 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1426 PR rtl-optimization/48455
1427 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1428 `temp_costs->mem_cost'.
1430 2011-04-13 Jan Hubicka <jh@suse.cz>
1432 * ipa-inline.h: New file.
1433 * ipa-inline-analysis.c: New file. Broken out of ...
1434 * ipa-inline.c: ... this file; update toplevel comment;
1435 include ipa-inline.h
1436 (inline_summary): Move to ipa-inline.h
1437 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1438 ipa-inline-analysis.c.
1439 (cgraph_estimate_time_after_inlining): Rename to
1440 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1441 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1442 to estimate_edge_growth.
1443 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1444 rename to estimate_size_after_inlining.
1445 (cgraph_mark_inline_edge): Update for new naming convention.
1446 (cgraph_check_inline_limits): Likewise.
1447 (cgraph_edge_badness): Likewise.
1448 (cgraph_decide_recursive_inlining): Likewise.
1449 (cgraph_decide_inlining_of_small_functions): Likewise.
1450 (cgraph_decide_inlining_incrementally): Likewise.
1451 (cgraph_estimate_growth): Rename to estimate_growth; move to
1452 ipa-inline-analysis.c.
1453 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1454 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1455 (compute_inline_parameters): Likewise.
1456 (compute_inline_parameters_for_current): Likewise.
1457 (pass_inline_parameters): Likewise.
1458 (inline_indirect_intraprocedural_analysis): Likewise.
1459 (analyze_function): Rename to inline_analyze_function; likewise.
1460 (add_new_function): Move to ipa-inline-analysis.c.
1461 (inline_generate_summary): Likewise.
1462 (inline_read_summary): Likewise.
1463 (inline_write_summary): Likewise.
1464 * Makefile.in (ipa-inline-analysis.c): New file.
1466 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1468 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1469 * configure: Regenerate.
1471 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1473 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1474 instead of tree_common.
1475 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1477 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1478 TS_TYPED rather than TS_COMMON.
1479 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1481 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1484 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1485 r20 around calls of __tablejump_elpm__
1487 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1490 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1492 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1494 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1496 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1497 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1498 (cfi_vec): New typedef.
1499 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1500 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1501 (cie_cfi_vec): New static variable.
1502 (cie_cfi_head): Delete.
1503 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1504 declaration changed. Use vector rather than list operations.
1505 (new_cfi): Don't initialize the dw_cfi_next field.
1506 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1507 rather than list operations.
1508 (lookup_cfa): Use vector rather than list operations.
1509 (output_cfis): New argument upto. Accept a cfi_vec rather than
1510 a dw_cfi_ref list head as argument. All callers changed.
1511 Iterate over the vector using upto as a maximum index.
1512 (output_all_cfis): New static function.
1513 (output_fde): Use vector rather than list operations. Use the
1514 new upto argument for output_cfis rather than manipulating a
1516 (dwarf2out_begin_prologue): Change initializations to match
1518 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1519 from the vector length rather than searching for the end of a list.
1520 Use output_all_cfis.
1521 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1523 2011-04-13 Nick Clifton <nickc@redhat.com>
1525 * config/rx/rx.md (movmemsi): Do not use this pattern when
1526 volatile pointers are involved.
1528 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1530 * config/i386/sse.md (pinsrbits): Remove.
1531 (sse2_packsswb): Merge with *avx_packsswb.
1532 (sse2_packssdw): Merge with *avx_packssdw.
1533 (sse2_packuswb): Merge with *avx_packuswb.
1534 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1535 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1536 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1537 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1538 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1539 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1540 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1541 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1542 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1543 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1544 (sse2_loadld): Merge with *avx_loadld.
1545 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1546 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1547 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1548 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1549 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1551 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1553 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1555 * print-tree.c (print_node): Likewise.
1556 * tree-inline.c (copy_tree_r): Likewise.
1557 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1558 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1559 instead of TS_COMMON.
1560 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1561 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1562 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1563 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1564 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1566 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1568 (TREE_CHAIN): Check for a TS_COMMON structure.
1569 (TREE_TYPE): Check for a TS_TYPED structure.
1571 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1573 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1574 cgraph_get_create_node instead of cgraph_node.
1576 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1578 * c-parser.c (c_parser_initelt): Updated call to
1579 objc_build_message_expr.
1580 (c_parser_postfix_expression): Likewise.
1582 2011-04-12 Kai Tietz <ktietz@redhat.com>
1584 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1585 MASK_MS_BITFIELD_LAYOUT bit.
1587 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1589 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1590 assert it is always true.
1591 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1594 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1596 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1597 compiling Objective-C to be more efficient.
1599 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1601 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1604 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1606 * recog.h, genoutput.c, optabs.c: Revert last patch.
1608 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1611 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1613 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1615 * recog.h (insn_operand_data): Add an "allows_mem" field.
1616 * genoutput.c (output_operand_data): Initialize it.
1617 * optabs.c (maybe_legitimize_operand_same_code): New function.
1618 (maybe_legitimize_operand): Use it when matching the original
1621 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1623 * genpreds.c (process_define_predicate): Move most processing
1624 to gensupport.c. Continue to validate the expression.
1625 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1626 (process_define_predicate): Move processing to gensupport.c.
1627 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1628 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1629 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1631 (valid_predicate_name_p): New function, split out from old
1632 genpreds.c:process_define_predicate.
1633 (process_define_predicate): New function, combining code from
1634 old genpreds.c and genrecog.c functions.
1635 (process_rtx): Call it for DEFINE_PREDICATE and
1636 DEFINE_SPECIAL_PREDICATE.
1638 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1640 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1641 size of a '%A' memory reference.
1642 (T_DREG, T_QREG): New neon_builtin_type_bits.
1643 (arm_init_neon_builtins): Assert that the load and store operands
1644 are neon_struct_operands.
1645 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1646 (NEON_ARG_MEMORY): New builtin_arg.
1647 (neon_dereference_pointer): New function.
1648 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1649 Handle NEON_ARG_MEMORY.
1650 (arm_expand_neon_builtin): Update after above interface changes.
1651 Use NEON_ARG_MEMORY for loads and stores.
1652 * config/arm/predicates.md (neon_struct_operand): New predicate.
1653 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1654 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1655 (V_four_elem): Tweak formatting.
1656 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1657 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1658 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1659 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1660 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1661 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1662 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1663 Use %A in the output template.
1664 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1665 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1666 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1667 the width of the memory access. Remove post-increment.
1668 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1670 2011-04-12 Nick Clifton <nickc@redhat.com>
1672 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1673 instruction for interrupt handlers if the target is the basic V850
1675 (expand_epilogue): Likewise.
1677 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1679 PR rtl-optimization/48549
1680 * combine.c (propagate_for_debug): Also stop after BB_END of
1681 this_basic_block. Process LAST and just stop processing after it.
1682 (combine_instructions): If last_combined_insn has been deleted,
1683 set last_combined_insn to its PREV_INSN.
1685 2011-04-12 Richard Guenther <rguenther@suse.de>
1687 PR tree-optimization/46076
1688 * gimple.h (struct gimple_statement_call): Add fntype field.
1689 (gimple_call_fntype): Adjust.
1690 (gimple_call_set_fntype): New function.
1691 * gimple.c (gimple_build_call_1): Set the call function type.
1692 * gimplify.c (gimplify_call_expr): Preserve the function
1693 type the frontend used for the call.
1694 (gimplify_modify_expr): Likewise.
1695 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1697 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1699 * tree-ssa.c (useless_type_conversion_p): Function pointer
1700 conversions are useless.
1702 2011-04-12 Martin Jambor <mjambor@suse.cz>
1704 * cgraph.h (cgraph_node): Remove function declaration.
1705 (cgraph_create_node): Declare.
1706 (cgraph_get_create_node): Likewise.
1707 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1708 Updated all callers.
1709 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1710 the decl does not already exist. Call cgraph_get_create_node instead
1712 (cgraph_get_create_node): New function.
1713 (cgraph_same_body_alias): Update comment.
1714 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1715 assert it does not return NULL.
1716 (cgraph_update_edges_for_call_stmt): Likewise.
1717 (cgraph_clone_edge): Likewise.
1718 (cgraph_create_virtual_clone): Likewise.
1719 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1720 instead of cgraph_node.
1721 (cgraph_add_new_function): Call cgraph_create_node or
1722 cgraph_get_create_node instead of cgraph_node.
1723 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1724 instead of cgraph_node.
1725 (record_eh_tables): Likewise.
1726 (mark_address): Likewise.
1727 (mark_load): Likewise.
1728 (build_cgraph_edges): Call cgraph_get_create_node instead
1730 (rebuild_cgraph_edges): Likewise.
1731 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1732 instead of cgraph_node.
1733 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1735 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1736 cgraph_create_node instead of cgraph_node.
1737 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1739 * lto-cgraph.c (input_node): Likewise.
1740 * lto-streamer-in.c (input_function): Likewise.
1741 * varasm.c (mark_decl_referenced): Likewise.
1742 (assemble_alias): Likewise.
1744 2011-04-12 Martin Jambor <mjambor@suse.cz>
1746 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1747 instead of cgraph_node and assert it does not return NULL.
1748 * lto-streamer-in.c (lto_read_body): Likewise.
1749 * omp-low.c (new_omp_context): Likewise.
1750 (create_task_copyfn): Likewise.
1751 * tree-emutls.c (lower_emutls_function_body): Likewise.
1752 * matrix-reorg.c (transform_allocation_sites): Likewise.
1754 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1757 * c-typeck.c (build_asm_expr): Error out on attempts to use
1758 void type outputs or inputs for constraints that allow reg or
1761 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1762 Richard Earnshaw <rearnsha@arm.com>
1765 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1766 to use sign-magnitude offsets. Reject unsupported unaligned
1767 cases. Add detailed description in comments.
1768 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1769 condition from TARGET_32BIT to TARGET_ARM.
1771 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1773 * tree.h (struct typed_tree): New.
1774 (struct tree_common): Include it instead of tree_base.
1775 (TREE_TYPE): Update for new location of type field.
1776 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1777 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1778 (union tree_node): Add typed field.
1779 * treestruct.def (TS_TYPED): New.
1780 * lto-streamer.c (check_handled_ts_structures): Handle it.
1781 * tree.c (MARK_TS_TYPED): New macro.
1782 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1784 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1786 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1787 (force_nonfallthru): Do not alter the loop nest if no basic block
1790 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1792 * config/i386/sse.md (VI): New mode iterator.
1794 (AVX256MODEI): Ditto.
1795 (AVXMODEF4P): Ditto.
1796 (avxvecpsmode): Ditto.
1797 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1798 (sse2_andnot<mode>3): New expander.
1799 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1800 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1801 (<any_logic:code><mode>3): Use VI mode iterator.
1802 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1803 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1804 (*andnottf3): Handle AVX three-operand constraints.
1805 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1807 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1808 Robert Millan <rmh@gnu.org>
1810 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1811 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1812 GNU_USER_DYNAMIC_LINKER64): Define.
1813 (REG_NAME): Don't undefine.
1814 (MD_UNWIND_SUPPORT): Undefine.
1815 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1816 (REG_NAME): Don't undefine.
1817 (MD_UNWIND_SUPPORT): Undefine.
1818 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1820 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1822 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1823 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1825 2011-04-11 Xinliang David Li <davidxl@google.com>
1827 * value-profile.c (check_ic_target): New function.
1828 (gimple_ic_transform): Sanity check indirect call target.
1829 * gimple-low.c (gimple_check_call_args): Interface change.
1830 (gimple_check_call_matching_types): New function.
1831 * tree-inline.c (tree_can_inline_p): Call new function.
1833 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1835 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1836 tree-pretty-print.h & realmpfr.h.
1838 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1841 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1842 (setup_allocno_and_important_classes): Ditto.
1844 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1846 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1847 GNU_USER_DYNAMIC_LINKER.
1848 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1849 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1850 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1851 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1852 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1853 GNU_USER_TARGET_OS_CPP_BUILTINS.
1854 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1855 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1856 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1857 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1858 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1859 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1860 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1861 GNU_USER_TARGET_OS_CPP_BUILTINS.
1862 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1863 GNU_USER_DYNAMIC_LINKER.
1864 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1865 GNU_USER_TARGET_OS_CPP_BUILTINS.
1866 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1867 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1868 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1869 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1870 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1871 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1872 GNU_USER_DYNAMIC_LINKER64): Remove.
1873 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1874 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1875 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1876 GNU_USER_DYNAMIC_LINKER.
1877 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1878 GNU_USER_TARGET_OS_CPP_BUILTINS.
1879 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1880 GNU_USER_TARGET_OS_CPP_BUILTINS.
1881 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1882 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1883 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1884 GNU_USER_TARGET_OS_CPP_BUILTINS.
1885 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1886 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1887 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1888 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1889 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1890 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1891 GNU_USER_DYNAMIC_LINKER.
1892 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1893 GNU_USER_TARGET_OS_CPP_BUILTINS.
1894 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1895 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1896 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1897 GNU_USER_DYNAMIC_LINKER.
1898 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1899 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1900 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1901 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1902 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1903 GNU_USER_DYNAMIC_LINKER.
1904 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1905 GNU_USER_DYNAMIC_LINKERN32.
1906 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1907 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1908 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1909 GNU_USER_DYNAMIC_LINKER32.
1910 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1911 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1912 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1913 GNU_USER_DYNAMIC_LINKER.
1914 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1915 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1916 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1917 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1918 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1919 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1920 GNU_USER_DYNAMIC_LINKER32.
1921 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1922 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1923 GNU_USER_DYNAMIC_LINKER.
1924 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1925 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1926 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1927 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1928 GNU_USER_DYNAMIC_LINKER64.
1929 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1930 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1931 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1932 GNU_USER_DYNAMIC_LINKER.
1933 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1934 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1935 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1936 GNU_USER_DYNAMIC_LINKER.
1937 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1938 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1939 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1940 GNU_USER_DYNAMIC_LINKER32.
1941 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1942 GNU_USER_DYNAMIC_LINKER64.
1943 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1944 GNU_USER_DYNAMIC_LINKER64.
1945 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1946 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1947 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1948 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1949 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1951 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1953 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1954 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1955 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1956 GNU_USER_DYNAMIC_LINKER.
1957 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1958 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1959 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1960 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1961 GNU_USER_DYNAMIC_LINKER64.
1962 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1963 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1964 GNU_USER_LINK_EMULATION.
1965 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1966 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1967 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1968 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1969 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1970 CPP_SPEC, CC1_SPEC): Remove.
1971 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1972 (GNU_USER_DYNAMIC_LINKER): Define.
1973 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1974 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1975 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1976 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1977 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1978 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1979 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1980 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1981 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1982 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1983 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1984 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1985 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1986 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1987 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1988 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1989 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1990 GNU_USER_DYNAMIC_LINKER.
1991 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1992 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1993 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1994 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1995 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1996 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1997 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1998 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1999 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2000 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2002 2011-04-11 Kai Tietz <ktietz@redhat.com>
2006 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2007 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2009 (ix86_is_msabi_thiscall): Removed.
2010 (ix86_is_type_thiscall): Likewise.
2011 (ix86_get_callcvt): New function.
2012 (ix86_comp_type_attributes): Simplify check.
2013 (ix86_function_regparm): Use ix86_get_callcvt for calling
2014 convention attribute checks.
2015 (ix86_return_pops_args): Likewise.
2016 (ix86_static_chain): Likewise.
2017 (x86_this_parameter): Likewise.
2018 (x86_output_mi_thunk): Likewise.
2019 (ix86_function_type_abi): Optimize check for types without attributes.
2020 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2021 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2022 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2024 (IX86_BASE_CALLCVT): Helper macro.
2025 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2026 Use ix86_get_callcvt for calling convention attribute checks and avoid
2027 symbol-decoration for stdcall in TARGET_RTD case.
2028 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2030 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2033 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2035 * config/i386/sse.md (VI_128): New mode iterator.
2036 (VI12_128): Rename from SSEMODE12.
2037 (VI14_128): Rename from SSEMODE14.
2038 (VI124_128): New mode iterator.
2039 (VI24_128): Rename from SSEMODE248.
2040 (VI248_128): Rename from SSEMODE248.
2041 (SSEMODE124C8): Remove.
2042 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2043 (*sse2_<plusminus_insn><mode>3): Merge with
2044 *avx_<plusminus_insn><mode>3.
2045 (*mulv8hi3): Merge with *avx_mulv8hi3.
2046 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2047 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2048 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2049 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2050 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2051 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2052 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2053 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2054 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2055 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2056 (*<smaxmin:code>v8hi3): Ditto.
2057 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2058 (*<smaxmin:code>v16qi3): Ditto.
2059 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2060 (*sse2_eq<mode>3): Ditto.
2061 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2062 (*sse2_gt<mode>3): Ditto.
2063 (vcondv2di): Split out of vcond<mode>.
2064 (vconduv2di): Split out of vcondu<mode>.
2066 2011-04-11 Richard Guenther <rguenther@suse.de>
2068 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2069 before calling tree_low_cst.
2071 2011-04-11 Richard Guenther <rguenther@suse.de>
2073 * stor-layout.c (layout_type): Compute all array index size operations
2074 in the original type.
2075 (initialize_sizetypes): Add comment.
2076 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2078 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2080 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2082 2011-04-11 Martin Jambor <mjambor@suse.cz>
2084 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2085 of cgraph_node, handle NULL return value.
2086 (cgraph_global_info): Likewise.
2087 (cgraph_rtl_info): Likewise.
2088 * tree-inline.c (estimate_num_insns): Likewise.
2089 * gimplify.c (unshare_body): Likewise.
2090 (unvisit_body): Likewise.
2091 (gimplify_body): Likewise.
2092 * predict.c (optimize_function_for_size_p): Likewise.
2093 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2094 (call_may_clobber_ref_p_1): Likewise.
2095 * varasm.c (function_section_1): Likewise.
2096 (assemble_start_function): Likewise.
2098 2011-04-11 Martin Jambor <mjambor@suse.cz>
2100 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2102 * final.c (rest_of_clean_state): Likewise.
2103 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2104 * passes.c (pass_init_dump_file): Likewise.
2105 (execute_all_ipa_transforms): Likewise.
2106 (function_called_by_processed_nodes_p): Likewise.
2107 * predict.c (maybe_hot_frequency_p): Likewise.
2108 (probably_never_executed_bb_p): Likewise.
2109 (compute_function_frequency): Likewise.
2110 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2111 (unnest_nesting_tree_1): Likewise.
2112 (lower_nested_functions): Likewise.
2113 * tree-optimize.c (execute_fixup_cfg): Likewise.
2114 (tree_rest_of_compilation): Likewise.
2115 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2116 * tree-sra.c (ipa_early_sra): Likewise.
2117 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2118 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2119 * ipa.c (record_cdtor_fn): Likewise.
2120 * ipa-inline.c (cgraph_early_inlining): Likewise.
2121 (compute_inline_parameters_for_current): Likewise.
2122 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2123 * ipa-pure-const.c (local_pure_const): Likewise.
2124 * ipa-split.c (split_function): Likewise.
2125 (execute_split_functions): Likewise.
2126 * cgraphbuild.c (build_cgraph_edges): Likewise.
2127 (rebuild_cgraph_edges): Likewise.
2128 (cgraph_rebuild_references): Likewise.
2129 (remove_cgraph_callee_edges): Likewise.
2130 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2131 (verify_cgraph_node): Likewise.
2132 (cgraph_analyze_functions): Likewise.
2133 (cgraph_preserve_function_body_p): Likewise.
2134 (save_inline_function_body): Likewise.
2135 (save_inline_function_body): Likewise.
2136 * tree-inline.c (copy_bb): Likewise.
2137 (optimize_inline_calls): Likewise.
2139 2011-04-11 Martin Jambor <mjambor@suse.cz>
2141 PR tree-optimization/48195
2142 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2143 ipa_check_create_edge_args.
2144 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2145 ipa_check_create_edge_args.
2146 * ipa-inline.c (inline_generate_summary): Do not call
2147 ipa_check_create_node_params and ipa_check_create_edge_args.
2148 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2149 ipa_check_create_edge_args.
2151 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2153 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2155 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2156 * function.c (record_hard_reg_sets): Likewise.
2157 * ira.c (compute_regs_asm_clobbered): Likewise.
2158 * sched-deps.c (sched_analyze_1): Likewise.
2159 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2161 2011-04-09 Xinliang David Li <davidxl@google.com>
2163 PR tree-optimization/PR48484
2164 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2165 has_valid_pred lazily
2167 2011-04-09 Duncan Sands <baldrick@free.fr>
2169 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2171 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2173 * combine.c (combine_validate_cost): Adjust comments. Set registered
2174 cost of I0 to zero at the end, if any.
2176 2011-04-08 Xinliang David Li <davidxl@google.com>
2178 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2179 to insane profile data.
2181 2011-04-08 Xinliang David Li <davidxl@google.com>
2183 * ipa-cp.c (ipcp_update_profiling): Correct
2184 negative scale factor due to insane profile data.
2186 2011-04-08 Xinliang David Li <davidxl@google.com>
2188 * final.c (dump_basic_block_info): New function.
2189 (final): Dump basic block.
2190 (final_scan_insn): Remove old dump.
2192 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2195 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2198 2011-04-08 Michael Matz <matz@suse.de>
2201 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2203 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2204 * rtl.h (rebuild_jump_labels_chain): Declare.
2205 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2206 insns inserted on edges.
2208 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2210 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2211 * config/arm/arm-arches.def: New.
2212 * config/arm/arm-opts.h: New.
2213 * config/arm/genopt.sh: New.
2214 * config/arm/arm-tables.opt: New (generated).
2215 * config/arm/arm.c (arm_handle_option, arm_target_help,
2216 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2217 (all_architectures): Get most table contents from arm-arches.def.
2218 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2219 arm_selected_tune here.
2220 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2221 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2222 (march=, mcpu=, mtune=): Use Enum and Var.
2223 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2224 (arm.o): Update dependencies.
2226 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2228 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2230 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2231 (write_typed_alloc_defns): Likewise.
2232 (main): Calls write_typed_alloc_defns with output_header.
2234 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2237 * ira-color.c (setup_profitable_hard_regs): Add comments.
2238 Don't take prohibited hard regs into account.
2239 (setup_conflict_profitable_regs): Rename to
2240 get_conflict_profitable_regs.
2241 (check_hard_reg_p): Check prohibited hard regs.
2243 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2245 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2246 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2247 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2249 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2252 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2253 move from floating point to shift amount register.
2254 (emit_move_sequence): Remove secondary reload support for floating
2255 point to shift amount amount register copies.
2256 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2257 amount register copies.
2258 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2259 register, return false if mode isn't a scalar integer mode.
2260 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2262 2011-04-08 Richard Guenther <rguenther@suse.de>
2264 * gimple.c (gimple_call_flags): Remove kludge.
2266 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2268 * sel-sched.c (sel_region_init): Move call to
2269 sel_setup_region_sched_flags after setup_current_loop_nest.
2271 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2273 PR rtl-optimization/48272
2274 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2275 init_insn_reg_pressure_info. Adjust a caller.
2276 * sched-int.h (init_insn_reg_pressure_info): Declare.
2277 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2278 when sched-pressure is enabled.
2280 2011-04-08 Richard Guenther <rguenther@suse.de>
2282 * gimple.c (gimple_set_modified): Do not queue calls to
2283 MODIFIED_NORETURN_CALLS here ...
2284 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2286 2011-04-08 Richard Guenther <rguenther@suse.de>
2289 * toplev.c (lang_dependent_init): Do not open asm_out_file
2290 in WPA mode, nor perform debug machinery initialization.
2291 (finalize): Do not unlink asm_out_file in WPA mode.
2293 2011-04-08 Richard Guenther <rguenther@suse.de>
2295 * gimple.h (gimple_call_fntype): New function.
2296 (gimple_call_return_type): Use it.
2297 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2298 * gimple-low.c (gimple_check_call_args): Likewise.
2299 * gimple.c (gimple_call_flags): Likewise.
2300 (gimple_call_arg_flags): Likewise.
2301 (gimple_call_return_flags): Likewise.
2302 * tree-cfg.c (verify_gimple_call): Likewise.
2303 (do_warn_unused_result): Likewise.
2304 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2305 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2307 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2309 PR rtl-optimization/48235
2310 * sel-sched.c (code_motion_process_successors): Recompute the last
2311 insn in basic block if control flow changed.
2312 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2313 Update condition for ilist_remove.
2315 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2317 PR rtl-optimization/48302
2318 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2319 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2320 it to record added preheader blocks.
2321 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2322 on to sel_add_loop_preheaders.
2323 (sel_region_init): Move call to setup_current_loop_nest after
2326 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2329 * cfgloop.h (loop_has_exit_edges): New helper.
2330 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2332 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2333 that have no exit edges.
2335 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2337 PR rtl-optimization/48442
2338 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2339 all callers. Adjust assert.
2341 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2343 PR tree-optimization/48377
2344 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2345 is_packed to true even for types with smaller TYPE_ALIGN than
2348 2011-04-08 Richard Guenther <rguenther@suse.de>
2351 * doc/tm.texi: Re-generate.
2353 2011-04-08 Wei Guozhi <carrot@google.com>
2356 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2357 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2358 * config/arm/arm.md (*push_multi): Change the length computation to
2361 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2363 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2364 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2365 * doc/tm.texi: Regenerate.
2366 * system.h (ASM_OUTPUT_BSS): Poison.
2367 * varasm.c (asm_output_bss): Remove function.
2368 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2370 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2371 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2372 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2373 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2375 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2377 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2379 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2381 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2383 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2386 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2388 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2389 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2390 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2392 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2393 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2394 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2395 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2396 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2397 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2398 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2399 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2400 options. Don't map other m68k options manually. Don't handle
2401 old-style options as canonical.
2402 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2403 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2405 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2407 * basic-block.h (force_nonfallthru): Move to...
2408 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2409 (force_nonfallthru): ...here.
2410 * cfghooks.c (force_nonfallthru): New function.
2411 * cfgrtl.c (force_nonfallthru): Rename into...
2412 (rtl_force_nonfallthru): ...this.
2413 (commit_one_edge_insertion): Do not set AUX field.
2414 (commit_edge_insertions): Do not discover new basic blocks.
2415 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2416 (cfg_layout_rtl_cfg_hooks): Likewise.
2417 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2418 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2419 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2421 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2423 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2426 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2428 * config/i386/sse.md: Update copyright year.
2429 (avxcvtvecmode): Remove.
2430 (sse_movhlps): Merge with *avx_movhlps.
2431 (sse_movlhps): Merge with *avx_movlhps.
2432 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2433 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2434 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2435 (sse_loadhps): Merge with *avx_loadhps.
2436 (sse_storelps): Merge with *avx_storelps.
2437 (sse_loadlps): Merge with *avx_loadlps.
2438 (sse_movss): Merge with *avx_movss.
2439 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2440 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2441 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2442 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2443 (vec_set<mode>_0): Ditto.
2444 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2445 (sse4_1_insertps): Merge with *avx_insertps.
2446 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2447 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2448 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2449 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2450 (sse2_storehpd): Merge with *avx_storehpd.
2451 (sse2_loadhpd): Merge with *avx_loadhpd.
2452 (sse2_loadlpd): Merge with *avx_loadlpd.
2453 (sse2_movsd): Merge with *avx_movsd.
2454 (*vec_concatv2df): Merge with *vec_concatv2df.
2456 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2459 * combine.c (combine_instructions): Add last_combined_insn,
2460 update it if insn is after it, pass it to all try_combine calls.
2461 (try_combine): Add last_combined_insn parameter, pass it instead of
2462 i3 to propagate_for_debug.
2464 2011-04-07 Nick Clifton <nickc@redhat.com>
2466 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2467 to handle MDR <-> data register transfers.
2468 (movhi_internal): Likewise.
2470 2011-04-07 Alan Modra <amodra@gmail.com>
2472 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2473 previous stack info.
2475 2011-04-07 Tom de Vries <tom@codesourcery.com>
2478 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2479 flow_find_cross_jump. Swap variables to implement backward replacement.
2480 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2482 2011-04-07 Tom de Vries <tom@codesourcery.com>
2485 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2486 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2488 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2489 src1 or src2. Redirect edges to the last basic block. Update
2490 frequency and count on multiple basic blocks in case of fallthru.
2492 2011-04-07 Tom de Vries <tom@codesourcery.com>
2495 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2497 (old_insns_match_p): Change return type. Replace return false/true
2498 with return dir_none/dir_both. Use can_replace_by.
2499 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2500 direction from dir_p. Register replacement direction in dir, last_dir
2501 and afterlast_dir. Handle new return type of old_insns_match_p using
2502 merge_dir. Return replacement direction in dir_p.
2503 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2504 return type of old_insns_match_p.
2505 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2506 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2507 flow_find_cross_jump.
2508 * basic-block.h (enum replace_direction): New type.
2509 (flow_find_cross_jump): Add parameter to declaration.
2511 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2513 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2514 (AVXMODEDCVTPS2DQ): Ditto.
2515 (VEC_FLOAT_MODE): Ditto.
2516 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2517 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2518 (<any_logic:code><mode>3): Use VF mode iterator.
2519 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2520 Use VF mode iterator.
2521 (copysign<mode>3): Use VF mode iterator.
2522 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2523 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2524 (*<any_logic:code><MODEF:mode>3): Merge with
2525 *avx_<any_logic:code><MODEF:mode>3.
2526 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2527 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2528 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2529 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2530 (sse2_cvtdq2ps): Use %v modifier.
2531 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2532 (avx_cvtps2dq<avxmodesuffix>): Remove.
2533 (sse2_cvtps2dq): Use %v modifier.
2534 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2535 (avx_cvttps2dq<avxmodesuffix>): Remove.
2536 (sse2_cvttps2dq): Use %v modifier.
2537 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2538 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2539 (sse2_cvtsd2siq): Fix insn template.
2540 (sse2_cvtsd2siq_2): Ditto.
2541 (sse2_cvttsd2siq): Ditto.
2542 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2543 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2545 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2547 * gcov-io.c: Use GCC Runtime Library Exception.
2549 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2552 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2553 as base_reg whatever register reg has been eliminated to, instead
2554 of hardcoding STACK_POINTER_REGNUM.
2556 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2558 * doc/tm.texi.in: Document C target hooks as separate from general
2560 * doc/tm.texi: Regenerate.
2561 * genhooks.c (struct hook_desc): Add docname field.
2562 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2564 (hook_array): Include c-target.def.
2565 (emit_documentation): Use docname field in output.
2566 (emit_init_macros): Take docname argument. Only emit definitions
2567 for hooks matching docname.
2568 (main): Expect additional arguments in all cases. Pass argument
2569 to emit_init_macros.
2570 * target.def: Move initial macro definitions and comments to
2571 target-hooks-macros.h.
2572 (gcc_targetcm): Move to c-family/c-target.def.
2573 * target.h (targetcm): Move declaration to c-family/c-target.h.
2574 * targhooks.c (default_handle_c_option): Move to
2576 * targhooks.h (default_handle_c_option): Move declaration to
2577 c-family/c-common.h.
2578 * target-hooks-macros.h: New file.
2579 * config.gcc (target_has_targetcm): Define and use to add to
2580 c_target_objs and cxx_target_objs.
2581 * config/default-c.c: New file.
2582 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2583 of target.h and target-def.h.
2584 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2585 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2586 darwin_check_cfstring_format_arg): Make static.
2587 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2588 TARGET_STRING_OBJECT_REF_TYPE_P,
2589 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2590 * config/darwin-protos.h (darwin_objc_construct_string,
2591 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2593 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2594 TARGET_STRING_OBJECT_REF_TYPE_P,
2595 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2596 * config/t-darwin (darwin-c.o): Update dependencies.
2597 * system.h (TARGET_HAS_TARGETCM): Poison.
2598 * Makefile.in (TARGET_H): Update.
2599 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2600 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2601 (default-c.o): New target.
2602 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2603 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2604 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2606 (build/genhooks.o): Update dependencies.
2608 2011-04-06 Richard Guenther <rguenther@suse.de>
2610 * ipa-inline.c (enum inlining_mode): Remove.
2611 (cgraph_flatten): Use some other token.
2612 (cgraph_edge_early_inlinable_p): New function, split out from ...
2613 (cgraph_perform_always_inlining): New function, split out from ...
2614 (cgraph_decide_inlining_incrementally): ... here.
2615 (cgraph_mark_inline_edge): Adjust.
2616 (cgraph_early_inlining): Re-structure.
2617 (pass_early_inline): Require SSA form.
2619 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2620 Julian Brown <julian@codesourcery.com>
2621 Mark Shinwell <shinwell@codesourcery.com>
2623 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2624 LO_REGS only for Thumb-1.
2625 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2626 be used in short instructions when optimising for size on Thumb-2.
2628 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2630 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2631 associated with user returns to be preserved.
2633 2011-04-06 Tristan Gingold <gingold@adacore.com>
2635 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2636 symbol_queue_size, DBXOUT_DECR_NESTING,
2637 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2638 if XCOFF_DEBUGGING_INFO.
2640 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2642 * config/i386/i386.md (attribute isa): New.
2643 (attribute enabled): New.
2644 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2645 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2646 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2647 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2648 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2649 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2650 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2651 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2653 * config/i386/sse.md (VF): New mode iterator.
2657 (SSEMODEF4): Remove.
2658 (attribute sse): Handle V8SF and V4DF modes.
2659 (<absneg:code><mode>2): Use VF mode iterator.
2660 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2662 (<plusminus_insn><mode>3): Use VF mode iterator.
2663 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2664 Use VF mode iterator.
2665 (<sse>_vm<plusminus_insn><mode>3): Merge with
2666 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2667 (mul<mode>3): Use VF mode iterator.
2668 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2669 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2671 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2672 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2673 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2674 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2676 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2677 Use VF1 mode iterator.
2678 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2679 (sqrt<VF2:mode>2): New expander.
2680 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2681 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2682 and sqrtv2df2. Use VF mode iterator.
2683 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2685 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2686 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2687 Use VF1 mode iterator.
2688 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2689 (<smaxmin:code><mode>3): Use VF mode iterator.
2690 (*<smaxmin:code><mode>3_finite): Merge with
2691 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2692 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2693 (<sse>_vm<smaxmin:code><mode>2): Merge with
2694 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2695 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2697 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2699 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2700 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2701 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2702 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2703 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2705 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2706 Use VF_128 mode iterator.
2707 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2709 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2710 VF_128 mode iterator.
2711 (vcond<mode>): Use VF mode iterator.
2712 * config/i386/predicates.md (sse_comparison_operator): Merge with
2713 avx_comparison_float_operator. Do not declare as special_predicate.
2714 * config/i386/i386.c (struct builtin_description): Update for renamed
2716 (ix86_expand_args_builtin): Ditto.
2717 (ix86_expand_sse_compare_mask): Ditto.
2719 2011-04-06 Richard Guenther <rguenther@suse.de>
2721 * tree-inline.c (estimate_num_insns): For calls simply account
2722 for all passed arguments and a used return value.
2724 2011-04-06 Richard Guenther <rguenther@suse.de>
2726 PR tree-optimization/47663
2727 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2728 call_stmt_time fields.
2729 (cgraph_edge_inlinable_p): Declare.
2730 (cgraph_edge_recursive_p): New inline function.
2731 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2732 (cgraph_clone_edge): Copy it.
2733 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2734 Account for call stmt time.
2735 (cgraph_estimate_time_after_inlining): Take edge argument.
2736 (cgraph_estimate_edge_growth): Account call stmt size.
2737 (cgraph_estimate_size_after_inlining): Take edge argument.
2738 (cgraph_mark_inline_edge): Adjust.
2739 (cgraph_check_inline_limits): Likewise.
2740 (cgraph_recursive_inlining_p): Remove.
2741 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2742 (cgraph_decide_recursive_inlining): Take edge argument and
2744 (cgraph_decide_inlining_of_small_functions): Do not avoid
2745 diags for recursive inlining here.
2746 (cgraph_flatten): Adjust.
2747 (cgraph_decide_inlining_incrementally): Likewise.
2748 (estimate_function_body_sizes): Remove call cost handling.
2749 (compute_inline_parameters): Initialize caller edge call costs.
2750 (cgraph_estimate_edge_growth): New function.
2751 (cgraph_estimate_growth): Use it.
2752 (cgraph_edge_badness): Likewise.
2753 (cgraph_check_inline_limits): Take an edge argument.
2754 (cgraph_decide_inlining_of_small_functions): Adjust.
2755 (cgraph_decide_inlining): Likewise.
2756 * tree-inline.c (estimate_num_insns): Only account for call
2757 return value if it is used.
2758 (expand_call_inline): Avoid diagnostics on recursive inline
2760 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2761 (input_edge): Input edge call costs.
2763 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2765 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2767 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2769 * doc/invoke.texi (Spec Files): Fix typo.
2771 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2773 * profile.c (branch_prob): Move declaration of local variable. Remove
2774 obsolete ??? comment. Expand the location explicitly instead of using
2775 the LOCATION_FILE and LOCATION_LINE macros.
2777 2011-04-06 Wei Guozhi <carrot@google.com>
2780 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2781 (arm_cond_branch): Likewise.
2782 (arm_cond_branch_reversed): Likewise.
2783 (arm_jump): Likewise.
2784 (push_multi): Likewise.
2785 * config/arm/constraints.md (Py): New constraint.
2787 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2790 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2792 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2793 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2794 #ifdef DBX_DEBUGGING_INFO.
2796 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2799 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2800 if old and new states differ.
2802 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2804 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2805 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2806 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2807 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2808 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2810 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2811 ColdFire options to -mcpu= options.
2813 2011-04-05 Jeff Law <law@redhat.com>
2815 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2816 check if BB is a successor of LOOP->header and return
2817 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2819 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2821 * cprop.c (struct reg_use): Remove.
2822 (reg_use_table): Make an array of RTX.
2823 (find_used_regs, constprop_register, local_cprop_pass,
2824 bypass_block): Simplify users of reg_use_table.
2825 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2826 on one of the uses found by find_used_regs.
2828 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2831 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2834 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2836 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2838 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2840 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2843 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2845 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2847 * combine.c: Include obstack.h.
2848 (struct insn_link): Define.
2849 (uid_log_links): Adjust type.
2850 (FOR_EACH_LOG_LINK): New macro.
2851 (insn_link_obstack): Declare.
2852 (alloc_insn_link): Define.
2853 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2854 type of link variables.
2855 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2856 (try_combine, record_promoted_values, distribute_notes): Likewise.
2857 (distribute_links): Likewise. Tweak prototype.
2858 (clear_log_links): Delete.
2859 (adjust_for_new_dest): Call alloc_insn_link.
2860 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2862 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2864 * gcse.c (modify_mem_list): Convert to an array of VECs.
2865 (canon_modify_mem_list, compute_transp): Tweak formatting.
2866 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2867 (load_killed_in_block_p): Likewise.
2868 (record_last_mem_set_info): Likewise.
2869 (clear_modify_mem_tables): Likewise.
2871 2011-04-05 Tom de Vries <tom@codesourcery.com>
2874 * function.c (emit_use_return_register_into_block): Only define if
2877 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2879 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2881 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2883 * config/rx/rx-opts.h: New.
2884 * config/rx/rx.c (rx_cpu_type): Remove.
2885 (rx_handle_option): Don't assert that global structures are in
2886 use. Access variables via opts pointer. Defer most handling of
2887 OPT_mint_register_. Use error_at.
2888 (rx_option_override): Handle deferred OPT_mint_register_ here.
2889 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2890 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2891 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2892 (rx_cpu_types): New Enum and EnumValue entries.
2893 (mint-register=): Use Defer and use Var accordingly.
2895 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2897 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2898 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2899 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2901 (debug_free_queue, debug_nesting, symbol_queue_index):
2903 * dbxout.c: ...to here. Make static.
2905 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2907 * gcse.c (modify_pair): Define. Define a VEC of it.
2908 (canon_modify_mem_list): Convert to an array of VECs.
2909 (free_insn_expr_list_list): Delete.
2910 (clear_modify_mem_tables): Call VEC_free instead.
2911 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2912 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2913 (canon_list_insert, compute_transp): Likewise.
2915 2011-04-05 Tom de Vries <tom@codesourcery.com>
2918 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2921 2011-04-05 Tom de Vries <tom@codesourcery.com>
2924 * function.c (emit_use_return_register_into_block): New function.
2925 (thread_prologue_and_epilogue_insns): Use
2926 emit_use_return_register_into_block.
2928 2011-04-05 Tom de Vries <tom@codesourcery.com>
2931 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2934 2011-04-05 Tom de Vries <tom@codesourcery.com>
2936 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2938 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2940 * config/arm/arm.md (define_constants for unspec): Replace with
2942 (define_constants for unspecv): Replace with define_c_enum.
2943 * config/arm/neon.md (define_constants for unspec): Replace with
2946 2011-04-04 Richard Henderson <rth@redhat.com>
2949 * dwarf2out.c (output_line_info): Always emit line info from
2950 at least one section.
2951 (dwarf2out_init): Create text_section_line_info here ...
2952 (set_cur_line_info_table): ... not here.
2954 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2957 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2960 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2962 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2964 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2965 (expr_equiv_p): Remove.
2966 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2967 (hash_scan_set): Update call to insert_set_in_table.
2968 (dump_hash_table): Dump <dest, src> pair.
2969 (lookup_set): Simplify. Lookup <dest, src> pair.
2970 (compute_transp): Remove, fold heavily simplified code into...
2971 (compute_local_properties): ...here. Expect COMP and TRANSP
2973 (find_avail_set): Take set directly from struct expr.
2974 (find_bypass-set): Likewise.
2975 (bypass_block): Likewise.
2976 (cprop_insn): Likewise. Remove redundant INSN_P test.
2978 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2979 checks on form of COND from find_implicit_sets to here.
2980 (find_implicit_sets): Cleanup control flow. Split critical edges
2981 if it exposes implicit sets. Allocate/resize implicit_sets as
2983 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2984 changed something. Run df_analyze after find_implicit_sets if any
2985 edges were split. Do not allocate implicit_sets here.
2987 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2988 (gcse_obstack): Renamed to cprop_obstack.
2989 (GNEW, GNEWVEC, GNEWVAR): Remove.
2991 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2992 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2993 (gcse_alloc): Likewise, and rename to cprop_alloc.
2994 (alloc_gcse_men, free_gcse_mem): Remove.
2995 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2996 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2997 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2999 * cprop.c (oprs_not_set_p): Remove.
3000 (mark_set, mark_clobber): Remove.
3001 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3002 (reg_not_set_p): New function.
3003 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3004 (cprop_insn): Likewise.
3005 (cprop_jump): Use FOR_EACH_EDGE.
3007 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3010 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3011 (rank_for_schedule): Use scheduled_insns vector instead of
3012 last_scheduled_insn.
3013 (ok_for_early_queue_removal): Likewise.
3014 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3016 (choose_ready): Likewise.
3017 (commit_schedule): Use VEC_iterate.
3018 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3019 a dbg_cnt, use it and ensure the first insn is in the ready list.
3020 (haifa_sched_init): Allocate scheduled_insns.
3021 (sched_extend_ready_list): Don't allocate it; reserve space.
3022 (haifa_sched_finish): Free it.
3024 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3026 * optc-gen.awk: Always remove type from Variable entry before
3027 recording in var_seen.
3029 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3031 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3032 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3033 call to tidy_fallthru_edges.
3035 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3037 * doc/options.texi (ToLower): Document.
3038 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3039 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3040 * opts.h (cl_option): Add cl_tolower field.
3041 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3042 arguments with lowercase strings.
3043 * config/rx/rx.opt (mcpu=): Add ToLower.
3044 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3047 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3049 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3051 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3053 * config/vax/vax.c: Include reload.h.
3055 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3057 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3058 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3059 (sparc_preferred_reload_class): New function.
3061 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3064 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3065 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3067 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3069 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3070 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3072 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3074 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3075 (ASM_OUTPUT_ALIGNED_BSS): Define.
3077 2011-04-03 Michael Matz <matz@suse.de>
3079 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3080 and next_slot members.
3081 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3082 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3083 (lto_streamer_cache_append): Declare.
3084 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3085 unsigned index, remove offset parameter, ensure that we append
3086 or update existing entries.
3087 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3088 parameter, update next_slot for append.
3089 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3091 (lto_streamer_cache_insert_at): Likewise.
3092 (lto_streamer_cache_append): New function.
3093 (lto_streamer_cache_lookup): Use unsigned index.
3094 (lto_streamer_cache_get): Likewise.
3095 (lto_record_common_node): Don't test tree_node_can_be_shared.
3096 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3097 (lto_streamer_cache_delete): Don't free offsets member.
3098 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3099 (lto_output_string_with_length): Use lto_output_data_stream.
3100 (lto_output_tree_header): Remove ix parameter, don't write it.
3101 (lto_output_builtin_tree): Likewise.
3102 (lto_write_tree): Adjust callers to above, don't track and write
3103 offset, write unsigned index.
3104 (output_unreferenced_globals): Don't emit all global vars.
3105 (write_global_references): Use unsigned indices.
3106 (lto_output_decl_state_refs): Likewise.
3107 (write_symbol): Likewise.
3108 * lto-streamer-in.c (lto_input_chain): Move earlier.
3109 (input_function): Use unsigned index.
3110 (input_alias_pairs): Don't read and then ignore all global vars.
3111 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3112 don't pass it back, use lto_streamer_cache_append.
3113 (lto_register_var_decl_in_symtab): Use unsigned index.
3114 (lto_register_function_decl_in_symtab): Likewise.
3115 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3117 (lto_get_builtin_tree): Don't read index, use
3118 lto_streamer_cache_append.
3119 (lto_read_tree): Adjust call to lto_materialize_tree.
3121 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3122 don't use function calls in arguments to MIN.
3124 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3127 * gimple.c (gimple_type_leader_entry): Mark deletable.
3129 2011-04-03 Alan Modra <amodra@gmail.com>
3131 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3133 2011-04-03 Michael Matz <matz@suse.de>
3135 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3137 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3139 2011-04-03 Michael Matz <matz@suse.de>
3141 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3142 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3143 without function context.
3144 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3145 current_function_decl and cfun.
3147 2011-04-03 Michael Matz <matz@suse.de>
3149 * tree.c (decl_init_priority_insert): Don't create entry for
3151 (decl_fini_priority_insert): Ditto.
3152 (fields_compatible_p, find_compatible_field): Remove.
3153 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3154 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3156 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3158 * combine.c (try_combine): Remove useless local variable.
3160 2011-04-03 Richard Guenther <rguenther@suse.de>
3161 Ira Rosen <ira.rosen@linaro.org>
3163 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3164 non-variable offsets and compare the remaining bases of the two
3165 accesses instead of looking for exact same data-ref.
3167 2011-04-02 Kai Tietz <ktietz@redhat.com>
3170 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3172 * i386.c (ix86_is_msabi_thiscall): New helper function.
3173 (ix86_is_type_thiscall): New helper function.
3174 (ix86_comp_type_attributes): Handle thiscall for method-functions
3176 (init_cumulative_args): Likewise.
3177 (find_drap_reg): Likewise.
3178 (ix86_static_chain): Likewise.
3179 (x86_this_parameter): Likewise.
3180 (x86_output_mi_thunk): Likewise.
3182 2011-04-01 Olivier Hainque <hainque@adacore.com>
3183 Nicolas Setton <setton@adacore.com>
3184 Eric Botcazou <ebotcazou@adacore.com>
3186 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3187 (add_gnat_descriptive_type_attribute): New function.
3188 (gen_array_type_die): Call it.
3189 (gen_enumeration_type_die): Likewise.
3190 (gen_struct_or_union_type_die): Likewise.
3191 (modified_type_die): Likewise.
3192 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3193 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3194 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3196 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3199 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3200 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3203 2011-03-17 Richard Guenther <rguenther@suse.de>
3206 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3207 origin for decls in other ltrans units.
3208 (input_varpool_node): Likewise.
3210 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3213 * expr.c (expand_assignment): Handle all possibilities
3214 if TO_RTX is CONCAT.
3215 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3216 (store_split_bit_field): If SUBREG_REG (op0) or
3217 op0 itself has smaller mode than word, return it
3218 for offset 0 and const0_rtx for out-of-bounds stores.
3219 If word is const0_rtx, skip it.
3221 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3223 * config/h8300/h8300.c (print_operand_address): Rename to...
3224 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3225 Call h8300_print_operand and h8300_print_operand_address instead of
3226 print_operand and print_operand_address. Declare.
3227 (print_operand): Renake to...
3228 (h8300_print_operand): ...this. Make static. Adjust comments.
3229 Call h8300_print_operand instead of print_operand. Declare.
3230 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3231 (h8300_register_move_cost): Likewise.
3232 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3233 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3234 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3235 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3236 * config/h8300/h8300-protos.h (print_operand): Delete.
3237 (print_operand_address): Delete.
3239 2011-04-01 Richard Henderson <rth@redhat.com>
3242 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3243 in strict mode before dwarf4. Re-order tests to early out
3244 before switching sections.
3246 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3248 * config/h8300/constraints.md: New file.
3249 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3250 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3251 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3252 * config/h8300/predicates.md (bit_operand): Likewise.
3253 (incdec_operand): Use satisfies_constraint_M and
3254 satisfies_constraint_O. Don't use C code block.
3255 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3256 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3257 (compute_mov_length): Use satisfies_constraint_G.
3258 (fix_bit_operand): Use satisfies_constraint_U.
3259 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3260 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3261 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3262 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3263 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3264 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3265 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3266 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3267 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3268 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3269 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3270 (EXTRA_MEMORY_CONSTRAINT): Delete.
3272 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3273 Michael Meissner <meissner@linux.vnet.ibm.com>
3276 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3277 operands, as per the specifications.
3279 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3280 (vec_extract_evenv4sf): Ditto.
3281 (vec_extract_evenv8hi): Ditto.
3282 (vec_extract_evenv16qi): Ditto.
3283 (vec_extract_oddv4si): Ditto.
3285 2011-03-31 Mark Wielaard <mjw@redhat.com>
3287 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3288 high_pc attribute if the CU has no associated code. Only output
3289 DW_AT_entry_pc for CU if not generating strict dwarf and
3292 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3294 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3295 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3297 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3298 * final.c (final_start_function): Call the new function rather
3299 than using a NULL argument for dwarf2out_frame_debug.
3301 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3302 that contains the prologue.
3304 * haifa-sched.c (queue_insn): New arg REASON. All callers
3305 changed. Print it in debugging output.
3307 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3309 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3310 Split most of the code into...
3311 (begin_move_insn): ... here. New function.
3312 (ebb_sched_info): Add a pointer to it.
3313 * haifa-sched.c (scheduled_insns): New static variable.
3314 (sched_extend_ready_list): Allocate it.
3315 (schedule_block): Use it to record the order of scheduled insns.
3316 Perform RTL changes to move insns only after all scheduling
3317 decisions have been made.
3318 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3319 begin_move_insn field.
3320 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3321 * sched-int.h (struct haifa_sched_info): Remove second argument
3322 from begin_schedule_ready hook. Add new member begin_move_insn.
3323 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3324 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3326 * haifa-sched.c (prune_ready_list): New function, broken out of
3328 (schedule_block): Use it.
3330 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3332 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3334 2011-04-01 Kai Tietz <ktietz@redhat.com>
3336 * config.gcc (*-*-mingw*): Allow as option the
3337 posix threading model.
3338 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3339 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3341 (CPP_SPEC): Add pthread/no-pthread handling.
3342 (LIB_SPEC): Likewise.
3343 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3344 (LIB_SPEC): Likewise.
3345 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3346 flag to pass -pthread option for shared libgcc build.
3347 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3348 for shared libgcc build.
3349 * config/i386/t-mingw-pthread: New file.
3350 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3351 New define to enable use of library pthread by default.
3352 * config/i386/mingw.opt (pthread): New driver option.
3353 (no-pthread): New driver option.
3354 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3355 * config/i386/mingw-w64.opt: Likewise.
3357 2011-04-01 Gary Funck <gary@intrepid.com>
3359 * c-decl.c (grokdeclarator): Fix formatting.
3361 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3363 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3364 instead of n_operands.
3365 (set_storage_via_setmem): Likewise.
3366 * optabs.c (maybe_gen_insn): Likewise.
3367 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3368 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3369 (mips_expand_builtin_direct): Likewise.
3370 * config/spu/spu.c (expand_builtin_args): Likewise.
3372 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3374 * recog.h (insn_data_d): Add n_generator_args.
3375 * genoutput.c (data): Likewise.
3376 (output_insn_data): Print it.
3377 (max_opno, num_dups): Delete.
3378 (scan_operands): Just fill in "d->operand[...]".
3379 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3381 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3383 * gensupport.h (pattern_stats): New structure.
3384 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3385 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3386 (max_operand_1, max_operand_vec): Delete.
3387 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3389 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3391 * emit-rtl.c (emit_pattern_after_setloc): New function.
3392 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3393 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3394 (emit_pattern_after): New function.
3395 (emit_insn_after, emit_jump_insn_after): Call it.
3396 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3397 (emit_pattern_before_setloc): New function.
3398 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3399 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3401 (emit_pattern_before): New function.
3402 (emit_insn_before, emit_jump_insn_before): Call it.
3403 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3405 2011-03-31 Richard Henderson <rth@redhat.com>
3407 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3408 (dw_separate_line_info_entry): Remove.
3409 (enum dw_line_info_opcode): New.
3410 (dw_line_info_entry): Use it.
3411 (dw_line_info_table, dw_line_info_table_p): New.
3412 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3413 (line_info_table, line_info_label_num): Remove.
3414 (line_info_table_in_use): Remove.
3415 (separate_line_info_table): Remove.
3416 (separate_line_info_table_allocated): Remove.
3417 (separate_line_info_table_in_use): Remove.
3418 (LINE_INFO_TABLE_INCREMENT): Remove.
3419 (line_info_label_num): New.
3420 (cur_line_info_table): New.
3421 (text_section_line_info, cold_text_section_line_info): New.
3422 (separate_line_info): New.
3423 (SEPARATE_LINE_CODE_LABEL): Remove.
3424 (print_dwarf_line_table): Remove.
3425 (debug_dwarf): Don't dump it.
3426 (output_one_line_info_table): New.
3427 (output_line_info): Use it.
3428 (new_line_info_table): New.
3429 (set_cur_line_info_table): New.
3430 (dwarf2out_switch_text_section): Use it.
3431 (dwarf2out_begin_function): Likewise.
3432 (push_dw_line_info_entry): New.
3433 (dwarf2out_source_line): Rewrite for new line info tables.
3434 (dwarf2out_init): Remove dead initailizations.
3436 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3438 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3440 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3441 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3442 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3443 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3444 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3445 * opt-functions.awk (flag_init, switch_bit_fields): New.
3446 (switch_flags): Don't handle flags moved to bit-fields. Don't
3447 generate CL_MISSING_OK or CL_SAVE.
3448 * optc-gen.awk: Update to generate bit-field output as well as
3450 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3451 bit-field instead of CL_REJECT_DRIVER flag.
3452 * opts-common.c (generate_canonical_option,
3453 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3454 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3455 instead of CL_REJECT_NEGATIVE flag.
3456 * toplev.c (print_switch_values): Use cl_report bit-field instead
3459 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3461 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3462 a zero minimum index only if it is redundant.
3464 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3466 PR rtl-optimization/48381
3467 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3468 instead of ira_class_hard_reg_index for calculating conflicting
3471 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3473 * cprop.c: Clean up hash table building.
3474 (reg_avail_info): Remove.
3475 (oprs_available_p): Remove.
3476 (record_last_reg_set_info): Remove.
3477 (record_last_set_info): Remove.
3478 (reg_available_p): New function.
3479 (gcse_constant_p): Do not treat unfolded conditions as constants.
3480 (make_set_regs_unavailable): New function.
3481 (hash_scan_set): Simplify with new reg_available_p.
3482 (compute_hash_table_work): Traverse insns stream only once.
3483 Do not compute reg_avail_info. Traverse insns in reverse order.
3484 Record implicit sets after recording explicit sets from the block.
3486 2011-03-31 Michael Matz <matz@suse.de>
3488 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3490 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3492 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3493 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3494 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3495 (h8300_mode_dependent_address_p): New function.
3496 (h8300_get_index): Make static.
3498 2011-03-31 Jeff Law <law@redhat.com>
3500 * reload1.c (elimination_effects): Fix typo in recent change.
3502 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3503 typo potentially leading to null pointer dereference.
3505 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3506 (setup_save_areas): Corresponding changes to avoid useless
3509 * jump.c (reversed_comparison_code_parts): Avoid successive return
3510 statements when REVERSE_CONDITION is defined.
3512 * expr.c (expand_assignment): Avoid useless assignments.
3513 (expand_expr_real_1): Likewise.
3514 (expand_expr_real_2): Avoid useless statements.
3516 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3518 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3520 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3523 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3525 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3528 * doc/tm.texi.in (TARGET_VERSION): Remove.
3529 * doc/tm.texi: Regenerate.
3530 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3531 * collect2.c (main): Don't use TARGET_VERSION.
3532 * mips-tdump.c (main): Don't use TARGET_VERSION.
3533 * mips-tfile.c (main): Don't use TARGET_VERSION.
3534 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3535 * config/rs6000/vxworksae.h: Remove.
3536 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3537 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3538 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3539 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3540 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3541 * config/arm/arm.h (TARGET_VERSION): Remove.
3542 * config/arm/coff.h (TARGET_VERSION): Remove.
3543 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3544 * config/arm/elf.h (TARGET_VERSION): Remove.
3545 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3546 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3547 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3548 * config/arm/pe.h (TARGET_VERSION): Remove.
3549 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3550 * config/arm/semi.h (TARGET_VERSION): Remove.
3551 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3552 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3553 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3554 * config/avr/avr.h (TARGET_VERSION): Remove.
3555 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3556 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3557 * config/frv/frv.h (TARGET_VERSION): Remove.
3558 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3559 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3560 * config/i386/darwin.h (TARGET_VERSION): Remove.
3561 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3562 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3563 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3564 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3565 * config/i386/gnu.h (TARGET_VERSION): Remove.
3566 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3567 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3568 * config/i386/linux.h (TARGET_VERSION): Remove.
3569 * config/i386/linux64.h (TARGET_VERSION): Remove.
3570 * config/i386/lynx.h (TARGET_VERSION): Remove.
3571 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3572 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3573 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3574 * config/i386/netware.h (TARGET_VERSION): Remove.
3575 * config/i386/nto.h (TARGET_VERSION): Remove.
3576 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3577 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3578 * config/ia64/elf.h (TARGET_VERSION): Remove.
3579 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3580 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3581 * config/ia64/linux.h (TARGET_VERSION): Remove.
3582 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3583 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3584 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3585 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3586 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3587 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3588 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3589 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3590 * config/m68k/linux.h (TARGET_VERSION): Remove.
3591 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3592 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3593 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3594 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3595 * config/mep/mep.h (TARGET_VERSION): Remove.
3596 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3597 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3598 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3599 * config/mips/linux.h (TARGET_VERSION): Remove.
3600 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3601 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3602 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3603 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3604 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3605 * config/pa/pa.h (TARGET_VERSION): Remove.
3606 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3607 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3608 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3609 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3610 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3611 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3612 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3613 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3614 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3615 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3616 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3617 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3618 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3619 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3620 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3621 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3622 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3623 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3624 * config/s390/linux.h (TARGET_VERSION): Remove.
3625 * config/s390/s390.h (TARGET_VERSION): Remove.
3626 * config/s390/tpf.h (TARGET_VERSION): Remove.
3627 * config/score/score.h (TARGET_VERSION): Remove.
3628 * config/sh/linux.h (TARGET_VERSION): Remove.
3629 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3630 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3631 * config/sh/sh.h (TARGET_VERSION): Remove.
3632 * config/sh/sh64.h (TARGET_VERSION): Remove.
3633 * config/sh/superh.h (TARGET_VERSION): Remove.
3634 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3635 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3636 * config/sparc/linux.h (TARGET_VERSION): Remove.
3637 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3638 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3639 TARGET_NAME32, TARGET_NAME): Remove.
3640 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3641 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3642 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3643 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3644 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3645 * config/spu/spu.h (TARGET_VERSION): Remove.
3646 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3647 * config/v850/v850.h (TARGET_VERSION): Remove.
3648 * config/vax/linux.h (TARGET_VERSION): Remove.
3649 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3650 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3651 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3653 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3656 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3657 frame-related from frame-unrelated adjustments to the stack pointer.
3659 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3661 * common.opt (fdebug-types-section): Move earlier.
3662 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3664 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3666 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3669 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3671 * tree.h (CASE_CHAIN): Define.
3672 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3673 (gimple_redirect_edge_and_branch): Likewise.
3675 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3678 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3681 2011-03-30 Jeff Law <law@redhat.com>
3683 * PR bootstrap/48371
3684 * reload1.c (reload): Fix botch in last change.
3686 * reload.h (struct reload): Fix typo introduced in last change.
3688 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3690 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3691 Undocumented. Remove help text.
3692 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3695 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3697 * doc/options.texi (NegativeAlias): Document.
3698 (Alias): Mention NegativeAlias.
3699 * opt-functions.awk: Handle NegativeAlias.
3700 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3701 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3702 * opts.h (CL_NEGATIVE_ALIAS): Define.
3703 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3704 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3706 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3708 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3709 mno-spe and mno-isel instead of mspe=no and -misel=no.
3711 2011-03-29 Mark Wielaard <mjw@redhat.com>
3713 * common.opt (fdebug-types-section): New flag.
3714 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3715 * dwarf2out.c (use_debug_types): New define.
3716 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3717 (print_die): Guard output of type unit signatures using
3719 (build_abbrev_table): Replace assert of dwarf_version >= 4
3720 with assert on use_debug_types.
3721 (size_of_die): Likewise.
3722 (unmark_dies): Likewise.
3723 (value_format): Decide AT_ref_external form on use_debug_types.
3724 (output_die): Replace dwarf_version version check guard with
3725 use_debug_types where appropriate.
3726 (modified_type_die): Likewise.
3727 (gen_reference_type_die): Likewise.
3728 (dwarf2out_start_source_file): Likewise.
3729 (dwarf2out_end_source_file): Likewise.
3730 (prune_unused_types_walk_attribs): Likewise.
3731 (dwarf2out_finish): Likewise.
3733 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3735 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3737 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3739 PR rtl-optimization/48332
3740 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3741 mode of input operand N and modeN to its actual mode.
3743 2011-03-30 Jeff Law <law@redhat.com>
3745 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3746 define accessor macro.
3747 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3748 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3749 (reg_equiv_init): Likewise.
3750 (reg_equivs_size): New variable.
3751 (reg_equiv_init_size): Remove.
3752 (allocate_initial_values): Move prototype to here from....
3753 * integrate.h (allocate_initial_values): Remove prototype.
3754 * integrate.c: Include reload.h.
3755 (allocate_initial_values): Corresponding changes.
3756 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3757 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3758 (update_equiv_regs): Corresponding changes.
3759 (ira): Corresponding changes.
3760 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3761 (push_secondary_reload): Corresponding changes.
3762 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3763 (make_memloc, find_reloads_address): Corresponding changes.
3764 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3765 (find_reloads_address_1): Corresponding changes.
3766 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3767 (refers_to_regno_for_reload_p): Corresponding changes.
3768 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3769 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3770 * reload1.c: Include ggc.h.
3771 (grow_reg_equivs): New function.
3772 (replace_pseudos_in, reload): Corresponding changes.
3773 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3774 (eliminate_regs_1, elimination_effects): Corresponding changes.
3775 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3776 (delete_output_reload): Likewise.
3777 * caller-save.c (mark_referenced_regs): Corresponding changes.
3778 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3779 * frv/predicates.md (frv_load_operand): Corresponding changes.
3780 * microblaze/microblaze.c (double_memory_operand): Corresponding
3782 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3783 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3784 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3785 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3786 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3788 * pa/pa.c (emit_move_sequence): Corresponding changes.
3789 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3791 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3794 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3795 structure modes. Don't check neon_vector_mem_operand for
3796 vector or structure modes.
3798 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3799 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3802 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3803 operand 1 and reshuffle the operands to match.
3804 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3806 2011-03-30 Christian Schüler <cschueler@gmx.de>
3809 * config/c.opt (F): Added 'Driver' to -F option.
3812 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3814 * config/darwin.opt: Added '-arch' option.
3816 2011-03-30 Nick Clifton <nickc@redhat.com>
3818 * config/rx/rx.md: Add peepholes and patterns to combine
3819 extending loads and simple arithmetic instructions.
3820 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3821 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3822 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3823 modes to use pre-decrement and post-increment addressing.
3824 (rx_is_restricted_memory_address): Add range checking of REG+INT
3826 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3827 (rx_memory_move_cost): Adjust cost of stores.
3828 (rx_adjust_insn_length): New function.
3830 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3833 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3834 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3835 matching arg00/arg01 types.
3837 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3839 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3840 last_location to UNKNOWN_LOCATION.
3842 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3845 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3848 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3849 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3852 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3854 (sparc_cpu): Likewise.
3855 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3858 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3862 PR rtl-optimization/48345
3863 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3864 hard regs for given mode from profitable regs when doing secondary
3867 2011-03-29 Jeff Law <law@redhat.com>
3870 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3871 do_not_duplicate field.
3872 (lookup_redirection_data): Corresponding changes.
3873 (create_duplicates): Always create a template block.
3874 (redirect_edges): Remove code which reused the original block
3875 when it was going to become unreachable code.
3876 (thread_block): Don't set do_not_duplicate field.
3878 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3880 * lto-opts.c (register_user_option_p, lto_register_user_option):
3881 Make type argument unsigned.
3882 * lto-streamer.h (lto_register_user_option): Make type argument
3884 * opth-gen.awk: Make CL_* macros unsigned.
3885 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3886 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3887 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3888 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3889 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3890 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3891 (find_opt): Make lang_mask argument unsigned.
3893 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3895 PR rtl-optimization/48331
3896 PR rtl-optimization/48334
3897 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3898 for any used algorithm.
3900 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3902 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3905 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3907 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3908 (alpha_option_override): Don't set alpha_sr_alias_set.
3909 (emit_frame_store_1): Use gen_frame_mem rather than calling
3911 (alpha_expand_epilogue): Ditto.
3913 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3915 PR tree-optimization/48290
3916 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3917 vectorization, check that relevant phis in the basic block after
3918 the inner loop are really inner loop's exit phis.
3920 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3923 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3924 (cached_dw_loc_list_def): New structure.
3925 (cached_dw_loc_list): New typedef.
3926 (cached_dw_loc_list_table): New variable.
3927 (cached_dw_loc_list_table_hash): New function.
3928 (cached_dw_loc_list_table_eq): Likewise.
3929 (add_location_or_const_value_attribute): Take a bool cache_p.
3930 Cache the list when the parameter is true.
3931 (gen_formal_parameter_die): Update caller.
3932 (gen_variable_die): Likewise.
3933 (dwarf2out_finish): Likewise.
3934 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3935 while generating debug info for the decl.
3936 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3937 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3938 (resolve_addr): Cache the result of resolving a chain of
3941 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3943 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3944 conflict object hard regset nodes have intersecting hard reg sets.
3946 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3947 after regstat_init_n_sets_and_refs.
3949 * ira.c: Add more comments at the top.
3950 (setup_stack_reg_pressure_class, setup_pressure_classes):
3951 Add comments how we compute the register pressure classes.
3952 (setup_allocno_and_important_classes): Add more comments.
3953 (setup_class_translate_array, reorder_important_classes)
3954 (setup_reg_class_relations): Add comments.
3956 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3959 * ira-color.c: Add 2011 to the Copyright line.
3960 (assign_hard_reg): Add more comments.
3961 (improve_allocation): Ditto.
3963 * ira-costs.c: Add 2011 to the Copyright line.
3964 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3966 (setup_regno_cost_classes_by_mode): Ditto.
3968 Initial patches from ira-improv branch:
3970 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3972 * ira-build.c (ira_create_object): Remove initialization of
3973 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3974 (ira_create_allocno): Remove initialization of
3975 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3976 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3977 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3978 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3979 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3980 Initialize ALLOCNO_ADD_DATA.
3981 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3982 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3984 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3985 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3987 * ira.c (ira_reallocate): Remove.
3988 (setup_pressure_classes): Call
3989 ira_init_register_move_cost_if_necessary. Use
3990 ira_register_move_cost instead of ira_get_register_move_cost.
3991 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3992 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3994 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3995 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3996 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3997 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3998 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3999 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4001 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4002 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4003 (struct allocno_color_data): New.
4004 (allocno_color_data_t): New typedef.
4005 (allocno_color_data): New definition.
4006 (ALLOCNO_COLOR_DATA): New macro.
4007 (struct object_color_data): New.
4008 (object_color_data_t): New typedef.
4009 (object_color_data): New definition.
4010 (OBJECT_COLOR_DATA): New macro.
4011 (update_copy_costs, calculate_allocno_spill_cost): Call
4012 ira_init_register_move_cost_if_necessary. Use
4013 ira_register_move_cost instead of ira_get_register_move_cost.
4014 (move_spill_restore, update_curr_costs): Ditto.
4015 (allocno_spill_priority): Make it inline.
4016 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4017 (struct coalesce_data, coalesce_data_t): New.
4018 (allocno_coalesce_data): New definition.
4019 (ALLOCNO_COALESCE_DATA): New macro.
4020 (merge_allocnos, coalesced_allocno_conflict_p): Use
4021 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4022 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4023 (coalesce_allocnos): Ditto.
4024 (setup_coalesced_allocno_costs_and_nums): Ditto.
4025 (collect_spilled_coalesced_allocnos): Ditto.
4026 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4027 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4028 (coalesce_spill_slots): Ditto.
4029 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4030 free allocno_coalesce_data.
4032 * ira-conflicts.c: Fix formatting.
4033 (process_regs_for_copy): Call
4034 ira_init_register_move_cost_if_necessary. Use
4035 ira_register_move_cost instead of ira_get_register_move_cost.
4036 (build_object_conflicts): Optimize.
4038 * ira-costs.c (record_reg_classes): Optimize. Call
4039 ira_init_register_move_cost_if_necessary. Use
4040 ira_register_move_cost, ira_may_move_in_cost, and
4041 ira_may_move_out_cost instead of ira_get_register_move_cost and
4042 ira_get_may_move_cost.
4043 (record_address_regs): Ditto.
4044 (scan_one_insn): Optimize.
4045 (find_costs_and_classes): Optimize.
4046 (process_bb_node_for_hard_reg_moves): Call
4047 ira_init_register_move_cost_if_necessary. Use
4048 ira_register_move_cost instead of ira_get_register_move_cost.
4050 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4051 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4052 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4053 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4055 (ira_initiate_emit_data, ira_finish_emit_data)
4056 (create_new_allocno): New functions.
4057 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4058 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4059 Use ira_register_move_cost instead of ira_get_register_move_cost.
4061 * ira-int.h: Fix some comments.
4062 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4063 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4064 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4065 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4067 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4068 bitfield after mode. Make hard_regno a short int. Make
4069 hard_regno short. Remove first_coalesced_allocno and
4070 next_coalesced_allocno. Move mem_optimized_dest_p,
4071 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4072 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4073 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4074 temp, colorable_p. Add new member add_data.
4075 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4076 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4077 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4078 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4079 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4080 (ALLOCNO_ADD_DATA): New macro.
4081 (ira_emit_data_t): New typedef.
4082 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4083 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4084 from struct ira_allocno.
4085 (ALLOCNO_EMIT_DATA): New macro.
4086 (ira_allocno_emit_data, allocno_emit_reg): New.
4087 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4088 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4089 (OBJECT_ADD_DATA): New macro.
4090 (ira_reallocate): Remove.
4091 (ira_initiate_emit_data, ira_finish_emit_data): New.
4092 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4093 (ira_init_register_move_cost_if_necessary): New.
4094 (ira_object_conflict_iter_next): Merge into
4095 ira_object_conflict_iter_cond.
4096 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4098 * ira-live.c (process_single_reg_class_operands): Call
4099 ira_init_register_move_cost_if_necessary. Use
4100 ira_register_move_cost instead of ira_get_register_move_cost.
4102 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4104 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4106 * ira-costs.c: Fix formatting.
4107 (cost_classes, cost_classes_num): Remove.
4108 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4109 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4110 (cost_classes_del, cost_classes_htab): New.
4111 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4112 (initiate_regno_cost_classes, setup_cost_classes): New.
4113 (setup_regno_cost_classes_by_aclass): New.
4114 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4115 (record_reg_classes): Use regno_cost_classes instead of
4116 cost_classes. Move checking opposite operand up.
4117 (record_address_regs): Use regno_cost_classes
4118 instead of cost_classes.
4119 (scan_one_insn): Ditto. Use always general register.
4120 (print_allocno_costs): Use regno_cost_classes instead of
4122 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4123 (find_costs_and_classes): Set up cost classes for each registers.
4124 Use also their mode for this. Use regno_cost_classes instead of
4126 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4128 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4129 (ira_costs, ira_set_pseudo_classes): Call
4130 initiate_regno_cost_classes and finish_regno_cost_classes.
4132 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4134 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4136 * target.def (ira_cover_classes): Remove.
4138 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4140 * doc/tm.texi.in: Ditto.
4142 * ira-conflicts.c: Remove mentioning cover classes from the file.
4143 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4144 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4146 * targhooks.c (default_ira_cover_classes): Remove.
4148 * targhooks.h (default_ira_cover_classes): Ditto.
4150 * haifa-sched.c: Remove mentioning cover classes from the file.
4151 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4152 ira_pressure_classes and ira_pressure_classes_num instead of
4153 ira_reg_class_cover_size and ira_reg_class_cover. Use
4154 sched_regno_pressure_class instead of sched_regno_cover_class.
4155 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4156 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4158 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4159 classes from the file.
4160 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4161 (struct object_hard_regs, struct object_hard_regs_node): New.
4162 (struct ira_object): New members profitable_hard_regs,
4163 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4164 (struct ira_allocno): Rename cover_class to aclass. Rename
4165 cover_class_cost and updated_cover_class_cost to class_cost and
4166 updated_class_cost. Remove splay_removed_p and
4167 left_conflict_size. Add new members colorable_p.
4168 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4169 (ALLOCNO_COLORABLE_P): New macro.
4170 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4171 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4172 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4173 (OBJECT_...): Rename parameter C to O.
4174 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4175 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4176 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4177 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4178 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4179 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4180 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4181 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4182 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4183 x_ira_reg_class_subunion.
4184 (ira_max_memory_move_cost, ira_max_register_move_cost)
4185 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4186 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4187 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4188 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4189 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4190 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4191 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4192 (ira_tune_allocno_costs_and_cover_classes): Rename to
4193 ira_tune_allocno_costs.
4194 (ira_debug_hard_regs_forest): New.
4195 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4196 (ira_object_conflict_iter_next): Fix comments.
4197 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4198 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4199 cover_class to aclass.
4200 (ira_allocate_and_accumulate_costs): Ditto.
4201 (ira_allocate_and_set_or_copy_costs): Ditto.
4203 * opts.c (decode_options): Remove ira_cover_class check.
4205 * ira-color.c: Remove mentioning cover classes from the file. Use
4206 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4207 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4208 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4209 (splay-tree.h): Remove include.
4210 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4211 before copy_freq_compare_func.
4212 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4213 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4215 (hard_regs_roots, hard_regs_node_vec): Ditto.
4216 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4217 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4218 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4219 (create_new_object_hard_regs_node): Ditto.
4220 (add_new_object_hard_regs_node_to_forest): Ditto.
4221 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4222 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4224 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4225 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4226 (remove_unused_object_hard_regs_nodes): Ditto.
4227 (enumerate_object_hard_regs_nodes): Ditto.
4228 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4229 (object_hard_regs_subnode_t): Ditto.
4230 (struct object_hard_regs_subnode): Ditto.
4231 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4232 (setup_object_hard_regs_subnode_index): Ditto.
4233 (get_object_hard_regs_subnodes_num): Ditto.
4234 (form_object_hard_regs_nodes_forest): Ditto.
4235 (finish_object_hard_regs_nodes_tree): Ditto.
4236 (finish_object_hard_regs_nodes_forest): Ditto.
4237 (allocnos_have_intersected_live_ranges_p): Rename to
4238 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4239 (pseudos_have_intersected_live_ranges_p): Rename to
4240 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4241 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4242 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4243 (update_copy_costs): Remove assert. Skip cost update if the hard
4244 reg does not belong the class.
4245 (assign_hard_reg): Process only profitable hard regs.
4246 (uncolorable_allocnos_num): Make it scalar.
4247 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4248 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4249 and ira_reg_class_max_nregs.
4250 (bucket_allocno_compare_func): Check frequency first.
4251 (sort_bucket): Add compare function as a parameter.
4252 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4253 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4254 (push_allocno_to_stack): Rewrite for checking new allocno
4256 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4257 (push_only_colorable): Pass new parameter to sort_bucket.
4258 (push_allocno_to_spill): Remove.
4259 (allocno_spill_priority_compare): Make it inline and rewrite.
4260 (splay_tree_allocate, splay_tree_free): Remove.
4261 (allocno_spill_sort_compare): New function.
4262 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4263 build and use splay tree. Choose first allocno in uncolorable
4264 allocno bucket to spill. Remove setting spill cost.
4265 (all_conflicting_hard_regs): Remove.
4266 (setup_allocno_available_regs_num): Check only profitable hard
4267 regs. Print info about hard regs nodes.
4268 (setup_allocno_left_conflicts_size): Remove.
4269 (put_allocno_into_bucket): Don't call
4270 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4271 (improve_allocation): New.
4272 (color_allocnos): Call setup_profitable_hard_regs,
4273 form_object_hard_regs_nodes_forest, improve_allocation,
4274 finish_object_hard_regs_nodes_forest. Setup spill cost.
4275 (print_loop_title): Use pressure classes.
4276 (color_allocnso): Ditto.
4277 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4278 and allocnos_for_spilling.
4279 (ira_sort_regnos_for_alter_reg): Don't setup members
4280 {first,next}_coalesced_allocno.
4281 (color): Remove allocating and freeing removed_splay_allocno_vec.
4282 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4283 prohibited_class_mode_regs.
4285 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4287 (update_allocno_pressure_excess_length): Use pressure classes.
4288 (inc_register_pressure, dec_register_pressure): Check for pressure
4290 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4291 pressure class. Use ira_reg_class_nregs instead of
4292 ira_reg_class_max_nregs.
4293 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4294 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4295 (single_reg_class): Use ira_reg_class_nregs instead of
4296 ira_reg_class_max_nregs.
4297 (process_bb_node_lives): Use pressure classes.
4299 * ira-emit.c: Remove mentioning cover classes from the file. Use
4300 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4301 (change_loop): Use pressure classes.
4302 (modify_move_list): Call ira_set_allocno_class instead of
4303 ira_set_allocno_cover_class.
4305 * ira-build.c: Remove mentioning cover classes from the file. Use
4306 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4307 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4308 ALLOCNO_UPDATED_CLASS_COST instead of
4309 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4310 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4311 (ira_create_allocno): Remove initialization of
4312 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4313 ALLOCNO_COLORABLE_P.
4314 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4315 Update conflict regs for the objects.
4316 (create_cap_allocno): Remove assert. Don't propagate
4317 ALLOCNO_AVAILABLE_REGS_NUM.
4318 (ira_free_allocno_costs): New function.
4319 (finish_allocno): Change a part of code into call of
4320 ira_free_allocno_costs.
4321 (low_pressure_loop_node_p): Use pressure classes.
4322 (object_range_compare_func): Don't compare classes.
4323 (setup_min_max_conflict_allocno_ids): Ditto.
4325 * loop-invariant.c: Remove mentioning cover classes from the file.
4326 Use ira_pressure_classes and ira_pressure_classes_num instead of
4327 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4328 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4329 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4330 Use reg_allocno_class instead of reg_cover_class.
4331 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4332 STACK_REG_COVER_CLASS.
4333 (get_regno_cover_class): Rename to get_regno_pressure_class.
4334 (move_loop_invariants): Initialize and finalize regstat.
4336 * ira.c: Remove mentioning cover classes from the file. Add
4337 comments about coloring without cover classes. Use ALLOCNO_CLASS
4338 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4339 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4340 setup_class_subset_and_memory_move_costs.
4341 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4342 (setup_cover_and_important_classes): Rename to
4343 setup_allocno_and_important_classes.
4344 (setup_class_translate_array): New.
4345 (setup_class_translate): Call it for allocno and pressure classes.
4346 (cover_class_order): Rename to allocno_class_order.
4347 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4348 of ira_class_translate.
4349 (reorder_important_classes): Set up ira_important_class_nums.
4350 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4351 (print_class_cover): Rename to print_classes. Add parameter.
4352 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4353 Print pressure classes too.
4354 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4355 setup_reg_subclasses.
4356 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4357 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4358 (setup_prohibited_class_mode_regs): Use
4359 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4360 (clarify_prohibited_class_mode_regs): New function.
4361 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4362 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4363 (ira_init_once): Initialize them.
4364 (free_register_move_costs): Process them.
4365 (ira_init): Move calls of find_reg_classes and
4366 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4367 Call clarify_prohibited_class_mode_regs.
4368 (ira_no_alloc_reg): Remove.
4369 (too_high_register_pressure_p): Use pressure classes.
4371 * sched-deps.c: Remove mentioning cover classes from the file.
4372 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4373 ira_pressure_classes and ira_pressure_classes_num instead of
4374 ira_reg_class_cover_size and ira_reg_class_cover.
4375 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4376 sched_regno_pressure_class instead of sched_regno_cover_class.
4377 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4378 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4380 * ira.h: Add 2010 to Copyright.
4381 (ira_no_alloc_reg): Remove external.
4382 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4383 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4384 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4385 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4386 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4387 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4388 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4389 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4390 x_ira_no_alloc_regs.
4391 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4392 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4393 ira_allocno_classes_num and ira_allocno_classes.
4394 (ira_class_translate): Rename to ira_allocno_class_translate.
4395 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4396 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4397 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4398 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4399 (ira_no_alloc_regs): New.
4401 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4402 classes from the file. Use ALLOCNO_CLASS instead of
4403 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4404 ALLOCNO_COVER_CLASS_COST.
4405 (regno_cover_class): Rename to regno_aclass.
4406 (record_reg_classes): Use ira_reg_class_subunion instead of
4407 ira_reg_class_union.
4408 (record_address_regs): Check overflow.
4409 (scan_one_insn): Ditto.
4410 (print_allocno_costs): Print total mem cost fore regional allocation.
4411 (print_pseudo_costs): Use REG_N_REFS.
4412 (find_costs_and_classes): Use classes intersected with them on the
4413 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4414 ira_reg_class_union. Use ira_allocno_class_translate and
4415 regno_aclass instead of ira_class_translate and regno_cover_class.
4416 Modify code for finding regno_aclass. Setup preferred classes for
4418 (setup_allocno_cover_class_and_costs): Rename to
4419 setup_allocno_class_and_costs. Use regno_aclass instead of
4420 regno_cover_class. Use ira_set_allocno_class instead of
4421 ira_set_allocno_cover_class.
4422 (init_costs, finish_costs): Use regno_aclass instead of
4424 (ira_costs): Use setup_allocno_class_and_costs instead of
4425 setup_allocno_cover_class_and_costs.
4426 (ira_tune_allocno_costs_and_cover_classes): Rename to
4427 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4428 by processing objects. Use ira_reg_class_max_nregs instead of
4429 ira_reg_class_nregs.
4431 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4433 * sched-int.h: Remove mentioning cover classes from the file.
4434 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4436 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4437 classes from the file.
4438 (struct reg_pref): Rename coverclass into allocnoclass.
4439 (reg_cover_class): Rename to reg_allocno_class.
4441 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4443 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4445 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4447 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4449 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4451 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4453 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4455 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4457 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4459 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4461 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4462 (i386_ira_cover_classes): Ditto.
4464 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4466 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4468 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4470 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4472 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4474 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4476 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4477 (mips_ira_cover_classes): Ditto.
4479 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4481 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4483 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4485 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4487 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4489 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4490 (IRA_COVER_CLASSES_VSX): Ditto.
4492 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4493 (rs6000_ira_cover_classes): Ditto.
4495 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4497 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4499 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4501 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4503 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4505 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4507 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4509 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4511 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4513 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4515 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4518 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4519 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4520 dw_fde_unlikely_section_end_label, cold_in_std_section,
4521 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4522 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4524 (output_fde): Use dw_fde_second_{begin,end} if second is
4525 true, otherwise dw_fde_{begin,end}.
4526 (output_call_frame_info): Test dw_fde_second_begin != NULL
4527 instead of dw_fde_switched_sections.
4528 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4529 fields, initialize new fields. Initialize in_std_section
4530 unconditionally from the first partition.
4531 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4532 dw_fde_second_begin is non-NULL.
4533 (dwarf2out_switch_text_section): Stop initializing removed
4534 dw_fde_struct fields, initialize new fields, initialize
4535 also dw_fde_end here. Set dw_fde_switch_cfi even when
4536 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4537 (struct var_loc_list_def): Add last_before_switch field.
4538 (arange_table, arange_table_allocated, arange_table_in_use,
4539 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4540 (size_of_aranges): Count !in_std_section and !second_in_std_section
4541 hunks in fdes, instead of looking at arange_table_in_use.
4542 (output_aranges): Add aranges_length argument, don't call
4543 size_of_aranges here. Instead of using aranges_table*
4544 emit ranges for fdes when !in_std_section resp.
4545 !second_in_std_section.
4546 (dw_loc_list): Break ranges crossing section switch.
4547 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4548 use dw_fde_second_end instead of dw_fde_end as end of last range.
4549 (gen_subprogram_die): Don't call add_arange. Use
4550 dw_fde_{begin,end} for first partition and if switched
4551 section dw_fde_second_{begin,end} for the second.
4552 (var_location_switch_text_section_1,
4553 var_location_switch_text_section): New functions.
4554 (dwarf2out_begin_function): Initialize cold_text_section even
4555 when function_section () isn't text_section.
4556 (prune_unused_types): Don't walk arange_table.
4557 (dwarf2out_finish): Don't needlessly test
4558 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4559 If info_section_emitted, call size_of_aranges and if it indicates
4560 non-empty .debug_aranges, call output_aranges with the computed
4561 size. Stop using removed dw_fde_struct fields, use
4562 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4566 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4567 create ENTRY_VALUE if incoming or address of incoming's MEM
4569 * dwarf2out.c (mem_loc_descriptor): Don't emit
4570 DW_OP_GNU_entry_value of DW_OP_fbreg.
4571 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4572 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4573 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4574 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4576 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4577 is a REG_P or MEM_P with REG_P address, compute hash directly
4578 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4579 (preserve_only_constants): Don't clear VALUES forwaring
4580 ENTRY_VALUE to some other VALUE.
4582 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4584 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4587 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4589 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4590 block before expanding the statement.
4591 (expand_gimple_stmt_1): Likewise. Set them here...
4592 (expand_gimple_stmt): ...and not here. Tidy.
4593 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4596 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4598 * Makefile.in: New rule for cprop.o.
4599 * gcse.c: Move constant/copy propagation to cprop.c.
4600 (compute_local_properties): Only handle expression tables.
4601 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4602 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4603 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4604 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4605 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4606 compute_cprop_data, find_used_regs, try_replace_reg,
4607 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4608 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4609 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4610 find_bypass_set, reg_killed_on_edge, bypass_block,
4611 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4612 execute_rtl_cprop, pass_rtl_cprop): Move to...
4613 * cprop.c: ...here. New file, constant/copy propagation for RTL
4614 moved from gcse.c to here with minor cleanups in duplicated code.
4616 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4618 * config/i386/i386.c (flag_opts): Fix a typo in
4619 -mavx256-split-unaligned-store.
4621 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4623 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4624 LIBCALL_VALUE): Remove macros.
4625 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4626 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4627 (h8300_function_value, h8300_libcall_value,
4628 h8300_function_value_regno_p): New functions.
4630 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4632 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4634 2011-03-28 Jeff Law <law@redhat.com>
4636 * tree-ssa-threadupdate.c (redirect_edges): Call
4637 create_edge_and_update_destination_phis as needed.
4638 (create_edge_and_update_destination_phis): Accept new BB argument.
4639 All callers updated.
4640 (thread_block): Do not update the profile when threading around
4641 intermediate blocks.
4642 (thread_single_edge): Likewise.
4643 (determine_bb_domination_status): If BB is not a successor of the
4644 loop header, return NONDOMINATING.
4645 (register_jump_thread): Note when we register a jump thread around
4646 an intermediate block.
4647 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4648 (thread_across_edge): Use it.
4650 2011-03-28 Tristan Gingold <gingold@adacore.com>
4652 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4653 when for_return is 2.
4655 2011-03-28 Jeff Law <law@redhat.com>
4657 * var-tracking.c (canonicalize_values_mark): Delete unused
4659 (canonicalize_values_star, set_variable_part): Likewise.
4660 (clobber_variable_part, delete_variable_part): Likewise.
4662 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4664 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4666 2011-03-28 Martin Jambor <mjambor@suse.cz>
4668 * tree-inline.c (expand_call_inline): Do not check that destination
4670 (optimize_inline_calls): Assert that destination node is analyzed.
4671 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4672 not call tree_lowering_passes.
4673 * cgraph.h (cgraph_analyze_function): Declare.
4674 * cgraphunit.c (cgraph_analyze_function): Make public.
4676 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4678 * config/sparc/sparc-opts.h: New.
4679 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4680 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4681 (sparc_option_override): Store processor_type enumeration rather
4682 than string in cpu_default. Remove name and enumeration from
4683 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4684 without using sparc_select. Use target_flags_explicit instead of
4686 * config/sparc/sparc.h (enum processor_type): Move to
4688 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4689 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4690 HeaderInclude entry.
4691 (mcpu=, mtune=): Use Var and Enum.
4692 (sparc_processor_type): New Enum and EnumValue entries.
4694 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4695 Iain Sandoe <iains@gcc.gnu.org>
4698 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4700 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4702 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4703 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4704 Insert new statements at it in lieu of STMT.
4705 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4706 * tree-vect-stmts.c (vectorizable_store): Likewise.
4707 (vectorizable_load): Likewise.
4709 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4711 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4716 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4718 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4719 unaligned 256bit load/store.
4720 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4721 (*avx_movdqu<avxmodesuffix>): Likewise.
4723 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4726 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4727 * config/pa/pa.md (iordi3): Use new predicate in expander.
4730 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4732 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4733 FUNCTION_VALUE_REGNO_P): Remove macros.
4734 * config/mips/mips-protos.h (mips_function_value): Remove.
4735 * config/mips/mips.c (mips_function_value): Rename to...
4736 (mips_function_value_1): ... this. Make static. Handle receiving
4737 the function type in 'fn_decl_or_type' argument.
4738 (mips_function_value, mips_libcall_value,
4739 mips_function_value_regno_p): New function.
4740 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4741 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4743 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4745 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4746 and -mavx256-split-unaligned-store.
4747 (ix86_option_override_internal): Split 32-byte AVX unaligned
4748 load/store by default.
4749 (ix86_avx256_split_vector_move_misalign): New.
4750 (ix86_expand_vector_move_misalign): Use it.
4752 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4753 -mavx256-split-unaligned-store.
4755 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4756 256bit load/store. Generate unaligned store on misaligned memory
4758 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4760 (*avx_movdqu<avxmodesuffix>): Likewise.
4762 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4763 -mavx256-split-unaligned-store.
4765 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4768 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4771 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4773 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4774 opno arguments with an expand_operand. Use create_input_operand.
4775 (mips_prepare_builtin_target): Delete.
4776 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4778 (mips_expand_builtin_direct): Use create_output_operand and
4779 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4780 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4781 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4783 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4785 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4787 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4789 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4791 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4792 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4793 basic blocks and call commit_edge_insertions directly.
4794 (fixup_abnormal_edges): Move from here to...
4795 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4796 on the edges and return whether some have actually been inserted.
4797 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4800 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4802 PR rtl-optimization/48144
4803 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4804 (merge_expr_data): ... here.
4805 (av_set_intersect): Rename to av_set_code_motion_filter.
4806 Update all callers. Call merge_history_vect when an expression
4807 is found in both sets.
4808 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4810 2011-03-26 Alan Modra <amodra@gmail.com>
4812 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4813 cmodel medium addresses.
4814 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4815 64-bit gpr loads and stores.
4816 (rs6000_secondary_reload_ppc64): New function.
4817 * config/rs6000/rs6000-protos.h: Declare it.
4818 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4820 2011-03-26 Alan Modra <amodra@gmail.com>
4823 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4824 GNU Go in traceback table.
4826 2011-03-25 Richard Henderson <rth@redhat.com>
4828 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4829 if there are exactly 6 operands.
4830 (set_storage_via_setmem): Similarly.
4832 2011-03-25 Kai Tietz <ktietz@redhat.com>
4834 * collect2.c (write_c_file_stat): Handle backslash
4835 as right-hand directory separator.
4836 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4837 checking just for slash.
4838 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4839 instead of checking for trailing slash.
4840 * gcc.c (record_temp_file): Use filename_cmp instead
4842 (do_spec_1): Likewise.
4843 (replace_outfile_spec_function): Likewise.
4844 (is_directory): Use filename_ncmp instead of strncmp.
4845 (print_multilib_info): Likewise.
4846 * gcov.c (find_source): Use filename_cmp instead
4848 (make_gcov_file_name): Fix order of slash/backslash
4850 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4851 (add_standard_paths): Likewise.
4852 * mips-tfile.c (saber_stop): Handle backslash.
4853 * prefix.c (update_path): Use filename_ncmp instead of
4855 * profile.c (output_location): Use filename_cmp instead
4857 * read-md.c (handle_toplevel_file): Handle backslash.
4858 * tlink.c (frob_extension): Likewise.
4859 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4861 * tree-dump.c (dequeue_and_dump): Handle backslash.
4862 * tree.c (get_file_function_name): Likewise.
4863 * gengtype.c (read_input_list): Likewise.
4864 (get_file_realbasename): Likewise.
4865 (get_output_file_with_visibility): Use filename_cmp
4868 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4870 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4873 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4875 * fold-const.c (expr_location_or): New function.
4876 (fold_truth_not_expr): Call it.
4878 2011-03-25 Jeff Law <law@redhat.com>
4880 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4882 * c-family/c-common.c (def_fn_type): Likewise.
4883 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4884 * emit-rtl.c (gen_rtvec): Likewise.
4885 * lto/lto-lang.c (def_fn_type): Likewise.
4887 2011-03-25 Richard Guenther <rguenther@suse.de>
4889 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4890 also generate copies.
4891 (fini_copy_prop): Handle constant values properly.
4893 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4895 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4896 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4897 (hash_loc_operands, compare_loc_operands): Handle
4898 DW_OP_GNU_entry_value.
4900 2011-03-25 Kai Tietz <ktietz@redhat.com>
4902 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4903 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4904 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4905 comment and use macro TARGET_64BIT_MS_ABI instead.
4906 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4907 and change default behavior for 32-bit MS_ABI.
4908 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4909 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4911 (ix86_cfun_abi): Likewise.
4912 (ix86_maybe_switch_abi): Adjust comment.
4913 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4914 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4915 instead of checking for SYSV_ABI.
4916 (ix86_nsaved_sseregs): Likewise.
4917 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4919 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4920 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4921 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4922 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4923 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4925 2011-03-25 Richard Guenther <rguenther@suse.de>
4927 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4928 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4929 (verify_gimple): Remove.
4930 * tree-cfg.c (verify_gimple_call): Merge verification
4932 (verify_gimple_phi): Merge verification from verify_stmts.
4933 (verify_gimple_label): New function.
4934 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4935 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4936 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4937 (verify_stmts): Rename to verify_gimple_in_cfg.
4938 (verify_gimple_in_cfg): New function.
4939 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4940 * tree-ssa.c (verify_ssa): Likewise.
4941 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4943 2011-03-25 Richard Guenther <rguenther@suse.de>
4945 * passes.c (init_optimization_passes): Add FRE pass after
4948 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4949 Andrew Stubbs <ams@codesourcery.com>
4951 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4953 (arm_movdi_vfp_cortexa8): New pattern.
4954 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4955 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4956 instructions when tuning for Cortex-A8. Set attribute "arch".
4957 * config/arm/arm.md: Move include arm-tune.md up a bit.
4958 (define_attr "arch"): Add "onlya8" and "nota8" values.
4959 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4961 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4965 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4967 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4968 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4969 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4970 * passes.c (init_optimization_passes): Move
4971 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4973 2011-03-25 Kai Tietz <ktietz@redhat.com>
4975 * c-typeck.c (comptypes_internal): Replace target
4976 hook call of comp_type_attributes by version in tree.c file.
4977 * gimple.c (gimple_types_compatible_p_1): Likewise.
4978 * tree-ssa.c (useless_type_conversion_p): Likewise.
4979 * tree.c (build_type_attribute_qual_variant): Likewise.
4980 (attribute_value_equal): New static helper function.
4981 (comp_type_attributes): New function.
4982 (merge_attributes): Use attribute_value_equal for comparison.
4983 (attribute_list_contained): Likewise.
4984 * tree.h (comp_type_attributes): New prototype.
4986 2011-03-25 Richard Guenther <rguenther@suse.de>
4988 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4989 of complex types at -O0.
4990 (verify_gimple_assign_binary): Likewise.
4991 (verify_gimple_assign_ternary): Likewise.
4993 2011-03-24 Mark Wielaard <mjw@redhat.com>
4995 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4996 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4998 2011-03-24 Mark Wielaard <mjw@redhat.com>
5001 * dwarf2out.c (output_abbrev_section): Only write table when
5002 abbrev_die_table_in_use > 1.
5004 2011-02-24 Richard Henderson <rth@redhat.com>
5006 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5007 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5008 (alpha_expand_unaligned_load_words): Use extql.
5009 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5010 (emit_insxl): Handle all modes for consistency.
5012 2011-02-24 Richard Henderson <rth@redhat.com>
5014 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5015 (alpha_expand_unaligned_load): Likewise.
5016 (alpha_expand_unaligned_store): Likewise.
5017 (alpha_expand_unaligned_load_words): Likewise.
5018 (alpha_expand_unaligned_store_words): Likewise.
5019 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5020 (alpha_split_lock_test_and_set_12): Likewise.
5021 (print_operand, alpha_fold_builtin_extxx): Likewise.
5022 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5023 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5024 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5025 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5026 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5027 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5028 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5029 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5030 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5031 (extwl, extll, extql): Similarly.
5032 (inswh, inslh, insqh): Similarly.
5033 (mskbl, mskwl, mskll, mskql): Similarly.
5034 (mskwh, msklh, mskqh): Similarly.
5036 2011-02-24 Richard Henderson <rth@redhat.com>
5038 * config/alpha/alpha.md (attribute isa): Add er, ner.
5039 (attribute enabled): Handle them.
5040 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5042 2011-02-24 Richard Henderson <rth@redhat.com>
5044 * config/alpha/alpha.md (attribute isa): Add vms.
5045 (attribute enabled): Handle it.
5046 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5047 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5048 (*movtf): Rename from *movtf_internal for consistency.
5049 (*movsi): Merge with *movsi_nt_vms.
5050 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5051 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5052 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5053 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5055 2011-02-24 Richard Henderson <rth@redhat.com>
5057 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5058 (extendqisi2, extendhisi2): Likewise.
5059 (extendqidi2): Simplify BWX/non-BWX expansions.
5060 (extendhidi2): Similarly.
5062 2011-02-24 Richard Henderson <rth@redhat.com>
5064 * config/alpha/alpha.md (attribute isa): New.
5065 (attribute enabled): New.
5066 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5067 (zero_extendqisi2, zero_extendqidi2): Similarly.
5068 (zero_extendhisi2, zero_extendhidi2): Similarly.
5069 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5071 2011-02-24 Richard Henderson <rth@redhat.com>
5073 * config/alpha/predicates.md (input_operand): Revert last change;
5074 update comment to mention 32-bit VMS rather than Windows.
5076 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5078 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5079 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5080 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5081 * passes.c (init_optimization_passes): Move
5082 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5084 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5086 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5088 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5090 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5093 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5096 * simplify-rtx.c (simplify_const_unary_operation): Call
5097 real_convert when changing mode class with FLOAT_EXTEND.
5099 2011-03-24 Nick Clifton <nickc@redhat.com>
5101 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5102 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5103 * config/rx/rx.c (rx_option_override): Set align_jumps,
5104 align_loops and align_labels if not set by the user.
5105 (rx_align_for_label): New function.
5106 (rx_max_skip_for_label): New function.
5107 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5108 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5109 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5110 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5111 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5113 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5115 PR rtl-optimization/48263
5116 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5117 and original commutative_p handling. Use maybe_gen_insn.
5119 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5121 * reload.c (find_reloads_subreg_address): Add address_reloaded
5122 parameter and return true there if the full address has been
5124 (find_reloads_toplev): Pass address_reloaded flag.
5125 (find_reloads_address_1): Don't use address_reloaded parameter.
5127 2011-03-24 Jeff Law <law@redhat.com>
5129 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5130 unused variable "ann".
5131 (remove_unused_locals): Likewise.
5133 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5136 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5139 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5141 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5142 for invalid symbolic addresses.
5143 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5146 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5148 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5149 the argument in calls to fold_truth_not_expr.
5151 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5153 * tree.c (record_node_allocation_statistics): New function.
5154 (make_node_stat, copy_node_stat, build_string): Call it.
5155 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5156 (build1_stat, build_omp_clause): Likewise.
5158 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5160 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5163 2011-03-24 Richard Guenther <rguenther@suse.de>
5165 PR tree-optimization/48271
5166 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5167 blocks that still exist.
5169 2011-03-24 Richard Guenther <rguenther@suse.de>
5171 PR tree-optimization/48270
5172 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5173 not free datarefs before ddrs.
5175 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5177 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5178 from the address built for a reference with variable offset.
5180 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5183 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5184 alternatives that can be handled with movq or movabsq insn.
5185 (*movdf_internal): Disable for !TARGET_64BIT.
5186 (*movdf_internal_nointeger): Ditto.
5187 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5189 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5191 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5192 (FUNCTION_ARG_ADVANCE): Likewise.
5193 * tm.texi.in: Change references to them to hook references.
5194 * tm.texi: Regenerate.
5195 * targhooks.c (default_function_arg): Eliminate check for target macro.
5196 (default_function_incoming_arg): Likewise.
5197 (default_function_arg_advance): Likewise.
5198 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5199 (function_arg_advance): Likewise.
5200 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5202 2011-03-24 Richard Guenther <rguenther@suse.de>
5205 * tree-object-size.c (addr_object_size): Do not double-account
5206 for MEM_REF offsets.
5208 2011-03-24 Diego Novillo <dnovillo@google.com>
5210 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5211 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5212 (lto_input_data_block): Move from lto-opts.c. Make extern.
5214 (lto_input_string): Rename from input_string. Make extern.
5216 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5217 output_string_with_length.
5218 Output 0 to indicate a non-NULL string. Update all callers to
5220 (lto_output_string): Rename from output_string. Make extern.
5222 (lto_output_decl_state_streams): Make extern.
5223 (lto_output_decl_state_refs): Make extern.
5224 * lto-streamer.h (lto_input_string): Declare.
5225 (lto_input_data_block): Declare.
5226 (lto_output_string): Declare.
5227 (lto_output_string_with_length): Declare.
5228 (lto_output_decl_state_streams): Declare.
5229 (lto_output_decl_state_refs): Declare.
5231 2011-03-24 Richard Guenther <rguenther@suse.de>
5233 PR tree-optimization/46562
5234 * tree.c (build_invariant_address): New function.
5235 * tree.h (build_invariant_address): Declare.
5236 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5237 a renamed function moved ...
5238 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5239 Take valueization callback parameter.
5240 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5241 * gimple-fold.h: New file.
5242 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5243 (ccp_fold, fold_const_aggregate_ref,
5244 fold_ctor_reference, fold_nonarray_ctor_reference,
5245 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5246 get_base_constructor): Move ...
5247 * gimple-fold.c: ... here.
5248 (gimple_fold_stmt_to_constant_1): New function
5249 split out from ccp_fold. Take a valueization callback parameter.
5250 Valueize all operands.
5251 (gimple_fold_stmt_to_constant): New wrapper function.
5252 (fold_const_aggregate_ref_1): New function split out from
5253 fold_const_aggregate_ref. Take a valueization callback parameter.
5254 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5255 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5256 invariant POINTER_PLUS_EXPRs to invariant form.
5257 (vn_valueize): New function.
5258 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5259 * tree-vrp.c (vrp_valueize): New function.
5260 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5261 to fold statements to constants.
5262 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5263 function declarations.
5264 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5265 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5267 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5269 * config/h8300/predicates.md (jump_address_operand): Fix register
5272 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5274 * doc/invoke.texi (max-stores-to-sink): Document.
5275 * params.h (MAX_STORES_TO_SINK): Define.
5276 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5277 if either vectorization or if-conversion is disabled.
5278 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5279 tree-vect-data-refs.c vect_equal_offsets.
5280 (dr_equal_offsets_p): New function.
5281 (find_data_references_in_bb): Remove static.
5282 * tree-data-ref.h (find_data_references_in_bb): Declare.
5283 (dr_equal_offsets_p): Likewise.
5284 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5285 (vect_drs_dependent_in_basic_block): Update calls to
5287 (vect_check_interleaving): Likewise.
5288 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5289 (cond_if_else_store_replacement): Rename to...
5290 (cond_if_else_store_replacement_1): ... this. Change arguments and
5292 (cond_if_else_store_replacement): New function.
5293 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5294 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5296 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5299 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5300 to subtract lower bound instead of GEN_INT().
5302 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5307 * doc/extend.texi (Alignment): Move section to match order in TOC.
5308 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5309 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5311 2011-03-23 Jeff Law <law@redhat.com>
5313 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5314 before removing the edge.
5316 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5317 it may have been freed by redirect_branch_edge or
5318 redirect_edge_succ_nodup.
5320 2011-03-23 Richard Guenther <rguenther@suse.de>
5322 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5323 (check_va_list_escapes): Likewise.
5324 (check_all_va_list_escapes): Likewise.
5326 2011-03-23 Richard Guenther <rguenther@suse.de>
5328 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5329 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5330 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5331 (alias.o): Likewise.
5332 (ipa-type-escape.o): Remove.
5333 (ipa-struct-reorg.o): Likewise.
5334 (GTFILES): Remove ipa-struct-reorg.c.
5335 * alias.c: Do not include ipa-type-escape.h.
5336 * tree-ssa-alias.c: Likewise.
5337 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5338 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5339 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5340 and ipa-type-escape passes.
5341 * tree-pass.h (pass_ipa_type_escape): Remove.
5342 (pass_ipa_struct_reorg): Likewise.
5343 * ipa-struct-reorg.h: Remove.
5344 * ipa-struct-reorg.c: Likewise.
5345 * ipa-type-escape.h: Likewise.
5346 * ipa-type-escape.c: Likewise.
5347 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5348 (--param struct-reorg-cold-struct-ratio): Likewise.
5349 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5350 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5351 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5353 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5355 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5356 cpu attribute value.
5357 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5358 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5359 * config/s390/s390.c (processor_flags_table): New constant array.
5360 (s390_handle_arch_option): Remove.
5361 (s390_handle_option): Remove s390_handle_arch_option invocations
5362 and OPT_mwarn_framesize_ handling.
5363 (s390_option_override): Remove s390_handle_arch_option invocation.
5364 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5366 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5367 * config/s390/s390.opt (s390_tune, s390_arch)
5368 (march=): Replace s390_arch_option enum and values with
5369 processor_type. Set variable name to s390_arch. Set
5370 initialization value.
5371 (mtune=): Replace s390_arch_option with processor_type. Set
5372 variable name to s390_tune. Set initialization value.
5374 2011-03-23 Julian Brown <julian@codesourcery.com>
5376 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5377 accesses which are not naturally aligned.
5379 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5382 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5384 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5386 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5387 parameter from "int" to "enum insn_code".
5388 (expand_operand_type): New enum.
5389 (expand_operand): New structure.
5390 (create_expand_operand): New function.
5391 (create_fixed_operand, create_output_operand): Likewise
5392 (create_input_operand, create_convert_operand_to): Likewise.
5393 (create_convert_operand_from, create_address_operand): Likewise.
5394 (create_integer_operand): Likewise.
5395 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5396 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5397 (expand_insn, expand_jump_insn): Likewise.
5398 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5399 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5400 (expand_movstr, expand_builtin___clear_cache): Likewise.
5401 (expand_builtin_lock_release): Likewise.
5402 * explow.c (allocate_dynamic_stack_space): Likewise.
5403 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5404 and use the default handling in that case.
5405 * expmed.c (check_predicate_volatile_ok): Delete.
5406 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5407 (emit_cstore): Likewise.
5408 * expr.c (emit_block_move_via_movmem): Likewise.
5409 (set_storage_via_setmem, expand_assignment): Likewise.
5410 (emit_storent_insn, try_casesi): Likewise.
5411 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5412 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5413 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5414 (expand_twoval_unop, expand_twoval_binop): Likewise.
5415 (expand_unop_direct, emit_indirect_jump): Likewise.
5416 (emit_conditional_move, vector_compare_rtx): Likewise.
5417 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5418 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5419 (expand_sync_lock_test_and_set): Likewise.
5420 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5421 (emit_unop_insn): Likewise.
5422 (expand_copysign_absneg): Change icode to an insn_code.
5423 (create_convert_operand_from_type): New function.
5424 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5425 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5426 (expand_insn, expand_jump_insn): Likewise.
5427 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5428 than const_int_operand for operand 2.
5430 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5432 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5435 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5437 * emit-rtl.c (emit_pattern_before_noloc): New function.
5438 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5439 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5440 (emit_pattern_after_noloc): New function.
5441 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5442 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5444 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5446 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5447 (__ffsDI2): Likewise.
5449 2011-03-22 Richard Henderson <rth@redhat.com>
5451 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5452 of !TARGET_ABI_OPEN_VMS.
5453 (alpha_trampoline_init, alpha_start_function): Likewise.
5454 (alpha_expand_epilogue, alpha_file_start): Likewise.
5455 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5456 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5457 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5458 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5459 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5461 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5463 * config/s390/s390-opts.h: New.
5464 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5465 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5466 s390_stack_guard): Remove.
5467 (s390_handle_arch_option): Return void. Take enum
5468 s390_arch_option value instead of string and searching array.
5469 (s390_handle_option): Don't assert that global structures are in
5470 use. Access variables via opts pointer. Use error_at. Don't use
5471 sscanf for -mstack-guard= or -mstack-size=. Update call to
5472 s390_handle_arch_option.
5473 (s390_option_override): Update call to s390_handle_arch_option.
5474 (s390_emit_prologue): Use %d format for s390_stack_size in
5475 diagnostic. Use %wd for HOST_WIDE_INT.
5476 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5477 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5478 * config/s390/s390.opt (config/s390/s390-opts.h): New
5479 HeaderInclude entry.
5480 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5481 s390_arch_flags, s390_warn_framesize): New Variable entries.
5482 (s390_arch_option): New Enum and EnumValue entries.
5483 (march=): Use Enum instead of Var.
5484 (mstack-guard=, mstack-size=): Use UInteger and Var.
5487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5489 * config/score/score.c (score_handle_option): Don't assert that
5490 global structures are in use. Access target_flags via opts
5491 pointer. Use value of -march= option to determine target_flags
5493 * config/score/score.opt (march=): Use Enum.
5494 (score_arch): New Enum and EnumValue entries.
5496 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5498 * config/mep/mep.c (option_mtiny_specified): Remove.
5499 (mep_option_override): Move register handling for -mivc2 from
5500 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5501 instead of option_mtiny_specified.
5502 (mep_handle_option): Access target_flags via opts pointer. Don't
5503 assert that global structures are in use. Defer part of -mivc2
5504 handling and move it to mep_option_override.
5505 * config/mep/mep.opt (IVC2): New Mask entry.
5506 (mivc2): Use Var and Defer instead of Mask.
5508 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5510 * config/v850/v850-opts.h: New.
5511 * config/v850/v850.c (small_memory): Replace with
5512 small_memory_physical_max array. Make that array static const.
5513 (v850_handle_memory_option): Take integer value of argument. Take
5514 gcc_options pointer, option text and location. Return void.
5515 Update for changes to small memory structures.
5516 (v850_handle_option): Access target_flags via opts pointer. Don't
5517 assert that global structures are in use. Update calls to
5518 v850_handle_memory_option.
5519 (v850_encode_data_area): Update references to small memory settings.
5520 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5521 (enum small_memory_type): Move to v850-opts.h.
5522 * config/v850/v850.opt (config/v850/v850-opts.h): New
5523 HeaderInclude entry.
5524 (small_memory_max): New Variable entry.
5525 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5526 (mtda, mzda): Likewise.
5528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5530 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5531 pointer. Don't assert that global structures are in use.
5533 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5535 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5536 via opts pointer. Don't assert that global structures are in use.
5538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5540 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5541 (munix=93): Use Var.
5542 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5543 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5544 * config/pa/pa-opts.h: New.
5545 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5546 (pa_handle_option): Don't assert that global structures are in
5547 use. Access target_flags via opts pointer. Don't handle
5548 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5550 (pa_option_override): Handle deferred OPT_mfixed_range_.
5552 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5554 * config/mn10300/mn10300-opts.h: New.
5555 * config/mn10300/mn10300.c (mn10300_processor,
5556 mn10300_tune_string): Remove.
5557 (mn10300_handle_option): Don't assert that global structures are
5558 in use. Access mn10300_processor via opts pointer. Don't handle
5560 * config/mn10300/mn10300.h (enum processor_type): Move to
5562 (mn10300_processor): Remove.
5563 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5564 HeaderInclude entry.
5565 (mn10300_processor): New Variable entry.
5568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5570 * config/microblaze/microblaze.c: Don't include opts.h.
5571 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5572 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5573 (mno-clearbss): Use Var and Warn.
5575 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5577 * config/m32r/m32r-opts.h: New.
5578 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5579 (m32r_handle_option): Don't assert that global structures are in
5580 use. Access target_flags and m32r_cache_flush_func via opts
5581 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5582 OPT_mno_flush_trap here.
5583 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5584 include of m32r-opts.h.
5585 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5586 HeaderInclude entry.
5587 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5588 (mmodel=): Use Enum and Var.
5589 (m32r_model): New Enum and EnumValue entries.
5590 (mno-flush-trap): Use Var.
5591 (msdata=): Use Enum and Var.
5592 (m32r_sdata): New Enum and EnumValue entries.
5594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5596 * config/m32c/m32c.c: Don't include opts.h.
5597 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5598 m32c_handle_option): Remove.
5599 (m32c_option_override): Check global_options_set.x_target_memregs
5600 instead of target_memregs_set.
5601 * config/m32c/m32c.h (target_memregs): Remove.
5602 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5605 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5607 * config/iq2000/iq2000-opts.h: New.
5608 * config/iq2000/iq2000.c: Don't include opts.h.
5609 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5610 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5611 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5612 HeaderInclude entry.
5613 (iq2000_tune): New Variable entry.
5614 (march=): Add comment. Use Enum.
5615 (iq2000_arch): New Enum and EnumValue entries.
5616 (mcpu=): Use Enum and Var.
5617 (iq2000_tune): New Enum and EnumValue entries.
5619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5621 * config/ia64/ia64-opts.h: New.
5622 * config/ia64/ia64.c (ia64_tune): Remove.
5623 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5625 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5626 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5627 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5628 HeaderInclude entry.
5629 (ia64_tune): New Variable entry.
5630 (mfixed-range=): Use Defer and Var.
5631 (mtune=): Use Enum and Var.
5632 (ia64_tune): New Enum and EnumValue entries.
5634 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5636 * config/frv/frv-opts.h: New.
5637 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5639 (frv_cpu_type): Remove.
5640 * config/frv/frv.c: Don't include opts.h.
5641 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5642 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5643 (frv_cpu_type): New Variable entry.
5644 (frv_cpu): New Enum and EnumValue entries.
5646 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5648 * config/cris/cris.c (cris_handle_option): Access target_flags via
5649 opts pointer. Don't assert that global structures are in use.
5650 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5651 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5653 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5655 * config/bfin/bfin-opts.h: New.
5656 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5657 bfin_si_revision, bfin_workarounds): Remove.
5658 (bfin_cpus): Make static const.
5659 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5660 not bfin_lib_id_given.
5661 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5662 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5663 pointer. Use error_at. Don't assert that global structures are in use.
5664 * config/bfin/bfin.h: Include bfin-opts.h.
5665 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5666 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5667 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5668 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5673 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5674 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5675 or -msoft-float here.
5676 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5677 -msoft-float and -mhard-float.
5678 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5679 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5681 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5683 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5684 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5686 (LIBGCC_SPEC): Don't handle -msoft-float.
5687 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5689 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5691 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5692 -mfloat-abi=*, not -msoft-float and -mhard-float.
5693 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5695 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5696 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5697 mhard-float and msoft-float.
5698 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5699 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5700 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5701 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5703 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5704 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5706 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5708 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5711 2011-03-22 Richard Henderson <rth@redhat.com>
5713 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5714 TARGET_ABI_WINDOWS_NT.
5715 (alpha_output_function_end_prologue): Likewise.
5716 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5717 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5718 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5719 (trap, *movsi_nt_vms): Likewise.
5720 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5721 (*tablejump_osf_nt_internal): Remove.
5722 * config/alpha/predicates.md (input_operand): Only test Pmode.
5724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5726 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5727 via opts pointer. Use error_at. Don't assert that global
5728 structures are in use.
5730 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5732 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5733 (ix86_handle_option): Access ix86_isa_flags and
5734 ix86_isa_flags_explicit via opts pointer. Don't assert that
5735 global structures are in use.
5736 (ix86_function_specific_save, ix86_function_specific_restore):
5737 Update ix86_isa_flags_explicit field name.
5738 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5739 (ix86_isa_flags_explicit): Rename TargetSave entry to
5740 x_ix86_isa_flags_explicit.
5742 2011-03-22 Richard Henderson <rth@redhat.com>
5744 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5745 (alpha_option_override, direct_return): Likewise.
5746 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5747 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5748 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5749 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5750 (alpha_expand_epilogue, alpha_end_function): Likewise.
5751 (alpha_init_libfuncs): Likewise.
5752 (struct machine_function): Remove unicosmk members.
5753 (print_operand) ['t']: Remove.
5754 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5755 unicosmk_output_module_name, unicosmk_output_common,
5756 current_section_align, unicosmk_output_text_section_asm_op,
5757 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5758 unicosmk_section_type_flags, unicosmk_unique_section,
5759 unicosmk_asm_named_section, unicosmk_insert_attributes,
5760 unicosmk_output_align, unicosmk_defer_case_vector,
5761 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5762 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5763 unicosmk_output_ssib, unicosmk_add_call_info_word,
5764 unicosmk_extern_head, unicosmk_output_default_externs,
5765 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5766 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5767 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5768 * config/alpha/alpha-protos.h: Update.
5769 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5770 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5771 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5772 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5773 (*mulsi_se, mulvsi3): Likewise.
5774 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5775 (*divmodsi_internal, call, call_value, realign): Likewise.
5776 (moddi3, umoddi3): Likewise; remove duplicate expander.
5777 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5778 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5779 (*movdi_nofix): Remove r/U alternative.
5780 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5781 * config/alpha/constraints.md ("U"): Remove.
5782 * config/alpha/predicates.md (call_operand"): Don't test
5783 TARGET_ABI_UNICOSMK.
5785 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5787 * target.def (handle_option): Take gcc_options and
5788 cl_decoded_option pointers and location_t.
5789 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5790 * doc/tm.texi: Regenerate.
5791 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5792 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5793 * lto-opts.c (lto_reissue_options): Generate option structure for
5794 targetm.handle_option call.
5795 * opts.c (target_handle_option): Update call to
5796 targetm.handle_option. Remove assertions about values now passed
5798 * targhooks.c (default_target_handle_option): New.
5799 * targhooks.h (default_target_handle_option): Declare.
5800 * config/alpha/alpha.c: Include opts.h.
5801 (alpha_handle_option): Update to new hook interface.
5802 * config/arm/arm.c: Include opts.h.
5803 (arm_handle_option): Update to new hook interface.
5804 * config/arm/t-arm (arm.o): Update dependencies.
5805 * config/bfin/bfin.c: Include opts.h.
5806 (bfin_handle_option): Update to new hook interface.
5807 * config/cris/cris.c: Include opts.h.
5808 (cris_handle_option): Update to new hook interface.
5809 * config/frv/frv.c: Include opts.h.
5810 (frv_handle_option): Update to new hook interface.
5811 * config/i386/i386.c: Include opts.h.
5812 (ix86_handle_option): Update to new hook interface.
5813 (ix86_valid_target_attribute_inner_p): Generate option structure
5814 for call to ix86_handle_option.
5815 * config/i386/t-i386 (i386.o): Update dependencies.
5816 * config/ia64/ia64.c: Include opts.h.
5817 (ia64_handle_option): Update to new hook interface.
5818 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5819 * config/iq2000/iq2000.c: Include opts.h.
5820 (iq2000_handle_option): Update to new hook interface.
5821 * config/m32c/m32c.c: Include opts.h.
5822 (m32c_handle_option): Update to new hook interface.
5823 * config/m32r/m32r.c: Include opts.h.
5824 (m32r_handle_option): Update to new hook interface.
5825 * config/m68k/m68k.c: Include opts.h.
5826 (m68k_handle_option): Update to new hook interface.
5827 * config/mep/mep.c: Include opts.h.
5828 (mep_handle_option): Update to new hook interface.
5829 * config/microblaze/microblaze.c: Include opts.h.
5830 (microblaze_handle_option): Update to new hook interface.
5831 * config/mips/mips.c: Include opts.h.
5832 (mips_handle_option): Update to new hook interface.
5833 * config/mn10300/mn10300.c: Include opts.h.
5834 (mn10300_handle_option): Update to new hook interface.
5835 * config/pa/pa.c: Include opts.h.
5836 (pa_handle_option): Update to new hook interface.
5837 * config/pdp11/pdp11.c: Include opts.h.
5838 (pdp11_handle_option): Update to new hook interface.
5839 * config/rs6000/rs6000.c: Include opts.h.
5840 (rs6000_handle_option): Update to new hook interface.
5841 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5842 * config/rx/rx.c: Include opts.h.
5843 (rx_handle_option): Update to new hook interface.
5844 * config/s390/s390.c: Include opts.h.
5845 (s390_handle_option): Update to new hook interface.
5846 * config/score/score.c: Include opts.h.
5847 (score_handle_option): Update to new hook interface.
5848 * config/sh/sh.c: Include opts.h.
5849 (sh_handle_option): Update to new hook interface.
5850 * config/sparc/sparc.c: Include opts.h.
5851 (sparc_handle_option): Update to new hook interface.
5852 * config/v850/v850.c: Include opts.h.
5853 (v850_handle_option): Update to new hook interface.
5855 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5857 * gcc.c (driver_unknown_option_callback): Only permit and save
5858 unknown -Wno- options.
5859 (driver_wrong_lang_callback): Save options directly instead of via
5860 driver_unknown_option_callback.
5862 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5864 * combine.c (simplify_set): Try harder to find the best CC mode when
5865 simplifying a nested COMPARE on the RHS.
5867 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5869 * config/alpha/gnu.h: Remove.
5870 * config/arc: Remove directory.
5871 * config/arm/netbsd.h: Remove.
5872 * config/arm/t-pe: Remove.
5873 * config/crx: Remove directory.
5874 * config/i386/netbsd.h: Remove.
5875 * config/m68hc11: Remove directory.
5876 * config/m68k/uclinux-oldabi.h: Remove.
5877 * config/mcore/mcore-pe.h: Remove.
5878 * config/mcore/t-mcore-pe: Remove.
5879 * config/netbsd-aout.h: Remove.
5880 * config/rs6000/gnu.h: Remove.
5881 * config/sh/sh-symbian.h: Remove.
5882 * config/sh/symbian-base.c: Remove.
5883 * config/sh/symbian-c.c: Remove.
5884 * config/sh/symbian-cxx.c: Remove.
5885 * config/sh/symbian-post.h: Remove.
5886 * config/sh/symbian-pre.h: Remove.
5887 * config/sh/t-symbian: Remove.
5888 * config/svr3.h: Remove.
5889 * config/vax/netbsd.h: Remove.
5890 * config.build: Don't handle i[34567]86-*-pe.
5891 * config.gcc: Remove handling of deprecations for most deprecated
5893 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5894 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5895 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5896 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5897 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5898 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5900 * config.host: Don't handle i[34567]86-*-pe.
5901 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5902 (ASM_SPEC32): Don't handle -mcall-gnu.
5903 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5905 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5906 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5907 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5908 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5909 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5910 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5911 conditional on SYMBIAN.
5912 * configure.ac: Don't handle powerpc*-*-gnu*.
5913 * configure: Regenerate.
5914 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5915 * doc/install-old.texi (m6811, m6812): Don't mention.
5916 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5917 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5918 (m68k-uclinuxoldabi): Don't mention.
5919 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5921 (-mcall-gnu): Remove.
5922 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5923 families): Remove constraint documentation.
5925 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5927 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5928 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5929 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5931 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5933 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5934 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5935 * config/avr/avr.c (init_cumulative_args)
5936 (avr_function_arg_advance): Use it.
5937 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5939 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5940 (avr_function_ok_for_sibcall): ...this new function.
5941 (avr_lookup_function_attribute1): New static Function.
5942 (avr_naked_function_p, interrupt_function_p)
5943 (signal_function_p, avr_OS_task_function_p)
5944 (avr_OS_main_function_p): Use it.
5945 * config/avr/avr.md ("sibcall", "sibcall_value")
5946 ("sibcall_epilogue"): New expander.
5947 ("*call_insn", "*call_value_insn"): New insn.
5948 ("call_insn", "call_value_insn"): Remove
5949 ("call", "call_value", "epilogue"): Change expander to handle
5952 2011-03-21 Nick Clifton <nickc@redhat.com>
5954 * doc/invoke.texi (Overall Options): Move closing brace to end of
5956 (Optimization Options): Add missing @gol.
5957 (Directory Options): Likewise.
5958 (i386 and x86-64 Options): Likewise.
5959 (RS6000 and PowerPC Options): Likewise.
5960 (i386 and x86-64 Windows Options): Likewise.
5961 (V850 Options): Add text missing from descriptions.
5963 2011-03-22 Richard Henderson <rth@redhat.com>
5965 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5966 (avr_incoming_return_addr_rtx): New.
5967 (emit_push_byte): New.
5968 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5969 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5970 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5971 (emit_pop_byte): New.
5972 (expand_epilogue): Use it. Pop frame pointer by bytes.
5973 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5974 (INCOMING_RETURN_ADDR_RTX): New.
5975 (INCOMING_FRAME_SP_OFFSET): New.
5976 (ARG_POINTER_CFA_OFFSET): New.
5977 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5978 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5981 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5983 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5985 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5986 (FUNCTION_ARG_ADVANCE): Likewise.
5987 * tm.texi.in: Change references to them to hook references.
5988 * tm.texi: Regenerate.
5989 * targhooks.c (default_function_arg): Eliminate check for target
5991 (default_function_incoming_arg): Likewise.
5992 (default_function_arg_advance): Likewise.
5993 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5994 (function_arg_advance): Likewise.
5995 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5997 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5999 * tree.c (build_call_1): New function.
6000 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6002 2011-03-22 Richard Guenther <rguenther@suse.de>
6004 PR tree-optimization/48228
6005 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6006 for single-arg PHIs.
6008 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6010 PR rtl-optimization/48143
6011 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6012 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6013 sse2_cvtps2pd): Likewise.
6015 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6017 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6019 2011-03-22 Richard Guenther <rguenther@suse.de>
6021 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6022 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6023 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6024 and REALIGN_LOAD_EXPR.
6025 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6026 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6027 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6028 DOT_PROD_EXPR case ...
6029 (expand_expr_real_2): ... here.
6030 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6031 and REALIGN_LOAD_EXPR.
6032 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6033 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6034 (vect_create_epilog_for_reduction): Likewise.
6035 (vectorizable_reduction): Likewise.
6036 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6037 * tree-vect-stmts.c (vectorizable_load): Likewise.
6039 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6041 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6043 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6045 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6046 handling for PLTOFF/GOTOFF.
6048 2011-03-22 Nick Clifton <nickc@redhat.com>
6050 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6051 trailing backslash from the end of the macro definition.
6053 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6055 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6058 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6060 * expr.h (prepare_operand): Move to...
6061 * optabs.h (prepare_operand): ...here and change the insn code
6062 parameter from "int" to "enum insn_code".
6063 (insn_operand_matches): Declare.
6064 * expr.c (init_expr_target): Use insn_operand_matches.
6065 (compress_float_constant): Likewise.
6066 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6067 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6068 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6069 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6071 (gen_cond_trap): Likewise.
6072 (prepare_operand): Likewise. Change icode to an insn_code.
6073 (insn_operand_matches): New function.
6074 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6075 * reload1.c (gen_reload): Likewise.
6076 * targhooks.c (default_secondary_reload): Likewise.
6078 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6080 * config/alpha/alpha.md (unspec): New define_c_enum.
6083 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6086 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6087 between a call and its CALL_ARG_LOCATION note.
6089 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6091 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6093 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6097 * c-common.c (shorten_compare): If primopN is first sign-extended
6098 to opN and then zero-extended to result type, set primopN to opN.
6100 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6102 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6103 for barrier handlers.
6105 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6107 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6108 UNSPEC constants to be in the unspec enumeration, and redefine
6109 all UNSPECV constants to be in the unspecv enumeration, so that
6110 dumps print which unspec/unspec_volatile this is.
6111 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6112 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6113 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6114 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6115 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6117 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6118 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6119 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6120 * config/rs6000/sync.md (isync, lwsync): Ditto.
6122 2011-03-21 Richard Guenther <rguenther@suse.de>
6124 * params.def (lto-min-partition): Fix typo.
6126 2011-03-21 Richard Guenther <rguenther@suse.de>
6129 * c-decl.c (grokdeclarator): Drop to the main variant only
6130 for array types. Drop flag_gen_aux_info check.
6132 2011-03-21 Richard Guenther <rguenther@suse.de>
6134 PR translation/47911
6135 * params.def (lto-partitions): Fix typo.
6136 (lto-min-partition): Fix wording.
6138 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6140 * config/rs6000/t-freebsd: Remove duplication from file.
6142 2011-03-21 Richard Guenther <rguenther@suse.de>
6145 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6147 2011-03-21 Richard Guenther <rguenther@suse.de>
6150 * params.def (lto-partitions): Require at least 1 partition.
6152 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6154 * gthr-solaris.h: Remove.
6155 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6156 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6157 (LIB_SPEC): Likewise.
6158 * config/sol2.opt (threads): Remove.
6159 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6160 (sparc*-*-solaris2*): Likewise.
6161 * configure.ac (enable_threads): Enable solaris support.
6162 * configure: Regenerate.
6163 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6164 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6167 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6169 * config.gcc: Obsolete *-*-solaris2.8*.
6170 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6172 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6175 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6176 reference. Solaris 8 perl works.
6178 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6181 * doc/install.texi (Prerequisites): Move jar etc. up.
6182 Explain support library version requirements.
6184 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6187 * doc/install.texi (Prerequisites): Move Perl to build
6188 requirements. Always necessary on Solaris 2 with Sun ld.
6190 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6192 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6194 (Specific, i?86-*-solaris2.[89]): Likewise.
6195 (Specific, i?86-*-solaris2.10): Likewise.
6196 (Specific, mips-sgi-irix6): Likewise.
6197 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6198 Update for binutils 2.21.
6200 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6202 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6203 Allow -fuse-linker-plugin for non-default plugin linker.
6204 * configure: Regenerate.
6206 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6209 * gengtype.c (files_rules): Added rule for cp/parser.h.
6211 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6214 * config/s390/s390.c (s390_delegitimize_address): Don't call
6215 lowpart_subreg if orig_x has BLKmode.
6217 2011-03-21 Kai Tietz <ktietz@redhat.com>
6220 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6221 * tree.h (attribute_spec): Add new member affects_type_identity.
6222 * attribs.c (empty_attribute_table): Adjust attribute_spec
6224 * config/alpha/alpha.c: Likewise.
6225 * config/arc/arc.c: Likewise.
6226 * config/arm/arm.c: Likewise.
6227 * config/avr/avr.c: Likewise.
6228 * config/bfin/bfin.c: Likewise.
6229 * config/crx/crx.c: Likewise.
6230 * config/darwin.h: Likewise.
6231 * config/h8300/h8300.c: Likewise.
6232 * config/i386/cygming.h: Likewise.
6233 * config/i386/i386.c: Likewise.
6234 * config/ia64/ia64.c: Likewise.
6235 * config/m32c/m32c.c: Likewise.
6236 * config/m32r/m32r.c: Likewise.
6237 * config/m68hc11/m68hc11.c: Likewise.
6238 * config/m68k/m68k.c: Likewise.
6239 * config/mcore/mcore.c: Likewise.
6240 * config/mep/mep.c: Likewise.
6241 * config/microblaze/microblaze.c: Likewise.
6242 * config/mips/mips.c: Likewise.
6243 * config/rs6000/rs6000.c: Likewise.
6244 * config/rx/rx.c: Likewise.
6245 * config/sh/sh.c: Likewise.
6246 * config/sol2.h: Likewise.
6247 * config/sparc/sparc.c: Likewise.
6248 * config/spu/spu.c: Likewise.
6249 * config/stormy16/stormy16.c: Likewise.
6250 * config/v850/v850.c: Likewise.
6252 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6254 * simplify-rtx.c (simplify_binary_operation_1): Handle
6255 (xor (and A B) C) case when B and C are both constants.
6257 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6259 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6261 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6264 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6266 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6268 PR rtl-optimization/48156
6269 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6270 assume df and df_lr are not NULL.
6272 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6275 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6276 between a call and its CALL_ARG_LOCATION note.
6278 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6281 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6282 between a call and its corresponding CALL_ARG_LOCATION note.
6284 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6286 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6287 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6288 * haifa-sched.c (setup_ref_regs): Ditto.
6289 * caller-save.c (add_used_regs_1): Ditto.
6290 * dse.c (look_for_hardregs): Ditto.
6291 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6292 * sched-rgn.c (check_live_1): Ditto.
6294 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6296 * c-decl.c (diagnose_mismatched_decls): Give an error for
6297 redefining a typedef with variably modified type.
6299 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6301 * c-decl.c (grokfield): Don't allow typedefs for structures or
6302 unions with no tag by default.
6303 * doc/extend.texi (Unnamed Fields): Update.
6305 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6307 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6308 Rewrite using indirect functions.
6309 (lwp_slwpcb): Ditto.
6310 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6311 (avx_vinsertf128<mode>): Ditto.
6313 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6315 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6318 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6320 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6321 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6323 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6325 PR rtl-optimization/48170
6326 * gcse.c (hoist_code): Remove bogus asserts.
6328 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6330 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6331 computation for prologue/epilogue.
6333 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6335 * Makefile.in (check-consistency): Remove.
6337 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6340 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6341 arange_table_in_use is 0, but either text_section_used or
6342 cold_text_section_used is true. Don't call it if
6343 !info_section_emitted.
6345 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6347 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6348 FUNCTION_VALUE_REGNO_P): Remove.
6349 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6351 * config/avr/avr.c (avr_ret_register): Make static inline.
6352 (avr_function_value_regno_p): New function.
6353 (avr_libcall_value): Make static. Add 'func' argument.
6354 (avr_function_value): Make static. Rename 'func' argument to
6355 'fn_decl_or_type', forward it to avr_libcall_value. Call
6356 avr_ret_register function instead of RET_REGISTER macro.
6357 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6359 2011-03-18 Jason Merrill <jason@redhat.com>
6362 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6364 2011-03-18 Richard Guenther <rguenther@suse.de>
6366 * doc/install.texi (--enable-gold): Remove.
6367 (--with-plugin-ld): Document.
6368 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6370 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6373 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6374 again after expansion changes.
6376 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6378 * combine.c (try_combine): Do simplification only call of
6379 subst() on i2 even when i1 is present. Update comments.
6381 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6383 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6384 and UNSPEC_PCREL_SYMOFF.
6386 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6388 * config/s390/s390.md: Use define_c_enum for the unspec constant
6391 2011-03-18 Richard Henderson <rth@redhat.com>
6392 Jakub Jelinek <jakub@redhat.com>
6395 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6396 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6398 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6401 * combine.c (cant_combine_insn_p): Don't check zero/sign
6402 extended hard registers.
6404 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6407 * combine.c (cant_combine_insn_p): Check zero/sign extended
6410 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6412 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6413 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6414 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6415 Change return type to bool.
6416 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6418 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6421 * var-tracking.c (prepare_call_arguments): If CALL target
6422 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6423 pc instead of looking it up using cselib_lookup and use
6424 Pmode for it if x has VOIDmode.
6425 * dwarf2out.c (gen_subprogram_die): If also both first and
6426 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6429 * function.c (assign_parms): For data.passed_pointer parms
6430 use MEM of data.entry_parm instead of data.entry_parm itself
6431 as DECL_INCOMING_RTL.
6432 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6433 also when passed and declared mode is the same, DECL_RTL
6434 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6437 2011-03-16 Jeff Law <law@redhat.com>
6439 PR rtl-optimization/37273
6440 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6441 handle them like argument loads from stack slots. Do not double
6442 count memory for memory constants and argument loads from stack slots.
6444 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6447 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6449 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6452 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6454 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6457 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6459 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6460 Clear call_arg_locations and call_arg_loc_last always.
6463 * var-tracking.c (prepare_call_arguments): If argument needs to be
6464 passed by reference, adjust argtype and mode.
6466 2011-03-17 Richard Guenther <rguenther@suse.de>
6469 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6470 a value make sure to fold the statement.
6472 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6475 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6476 return condition with !cfun->calls_alloca.
6478 2011-03-17 Richard Guenther <rguenther@suse.de>
6481 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6482 origin for decls in other ltrans units.
6483 (input_varpool_node): Likewise.
6485 2011-03-17 Richard Guenther <rguenther@suse.de>
6488 * tree-object-size.c (compute_object_offset): Properly return
6489 the offset operand of MEM_REFs as sizetype.
6491 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6493 PR rtl-optimization/48141
6494 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6495 * dse.c: Include params.h.
6496 (active_local_stores_len): New variable.
6497 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6499 (record_store, check_mem_read_rtx): Decrease it when removing
6501 (scan_insn): Likewise. Increase it when adding to chain, if it
6502 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6503 set active_local_stores to NULL before the addition.
6504 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6506 PR rtl-optimization/48141
6507 * dse.c (record_store): If no positions are needed in an insn
6508 that cannot be deleted, at least unchain it from active_local_stores.
6510 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6513 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6514 (lookup_type_die_strip_naming_typedef): ... here.
6515 (get_context_die): Use it.
6516 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6517 the anonymous struct named by the naming typedef.
6519 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6522 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6523 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6525 2011-03-16 Jeff Law <law@redhat.com>
6527 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6528 check for operands of conditional. Allow type to be a pointer.
6530 2011-03-16 Richard Guenther <rguenther@suse.de>
6532 PR tree-optimization/48149
6533 * fold-const.c (fold_binary_loc): Fold
6534 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6536 2011-03-16 Richard Guenther <rguenther@suse.de>
6538 PR tree-optimization/26134
6539 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6540 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6541 (non_rewritable_mem_ref_base): Handle complex type component
6542 accesses, constrain offsets for vector and complex extracts
6545 2011-03-16 Richard Guenther <rguenther@suse.de>
6547 PR tree-optimization/48146
6548 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6549 operands avoiding the need for renaming.
6551 2011-03-16 Richard Guenther <rguenther@suse.de>
6553 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6554 constant folding. Move MEM_REF canonicalization first.
6555 Rely on fold_const_aggregate_ref for initializer folding.
6556 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6558 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6561 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6562 arg0/arg1 or their arguments are always fold converted to matching
6565 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6568 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6571 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6572 Handle in-tree gold.
6573 (ld_vers): Extract binutils version for gold.
6574 (gcc_cv_ld_hidden): Handle gold here.
6575 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6576 * configure: Regenerate.
6577 * config.in: Regenerate.
6578 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6579 -fuse-linker-plugin otherwise.
6580 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6581 (LINK_COMMAND_SPEC): Use it.
6582 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6584 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6586 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6587 * calls.c: Remove debug.h include.
6588 (emit_call_1): Don't call virtual_call_token debug hook.
6589 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6590 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6591 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6592 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6593 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6594 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6595 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6596 dwarf2out_virtual_call): Remove.
6597 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6598 copy_call_info and virtual_call hooks.
6599 (dwarf2out_init): Don't initialize vcall_insn_table,
6600 debug_dcall_section and debug_vcall_section.
6601 (prune_unused_types): Don't mark nodes from dcall_table.
6602 (dwarf2out_finish): Don't output dcall or vcall tables.
6603 * final.c (final_scan_insn): Don't call direct_call or
6604 virtual_call debug hooks.
6605 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6606 virtual_call_token, copy_call_info and virtual_call hooks.
6607 (debug_nothing_uid): Remove prototype.
6608 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6609 copy_call_info and virtual_call hooks.
6610 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6611 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6612 * debug.c (do_nothing_debug_hooks): Likewise.
6613 (debug_nothing_uid): Remove.
6614 * doc/invoke.texi (-fenable-icf-debug): Remove.
6615 * common.opt (-fenable-icf-debug): Likewise.
6617 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6618 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6619 call's MEM. Handle functions returning aggregate through a hidden
6620 first pointer. For virtual calls add clobbered pc to call arguments
6622 * dwarf2out.c (gen_subprogram_die): Emit
6623 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6627 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6628 * rtl.h (ENTRY_VALUE_EXP): Define.
6629 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6630 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6631 * print-rtl.c (print_rtx): Likewise.
6632 * gengtype.c (adjust_field_rtx_def): Likewise.
6633 * var-tracking.c (vt_add_function_parameter): Adjust
6634 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6635 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6636 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6637 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6638 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6640 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6641 Call var_location debug hook even on CALL_INSNs.
6642 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6643 * rtl.def (ENTRY_VALUE): New.
6644 * dwarf2out.c: Include cfglayout.h.
6645 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6646 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6647 (struct call_arg_loc_node): New type.
6648 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6649 tail_call_site_count): New variables.
6650 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6651 DW_TAG_GNU_call_site_parameter.
6652 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6653 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6654 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6655 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6656 and DW_AT_GNU_all_source_call_sites.
6657 (mem_loc_descriptor): Handle ENTRY_VALUE.
6658 (add_src_coords_attributes): Don't add enything if
6659 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6660 (dwarf2out_abstract_function): Save and clear call_arg_location,
6661 call_site_count and tail_call_site_count around dwarf2out_decl call.
6662 (gen_call_site_die): New function.
6663 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6664 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6665 (dwarf2out_function_decl): Clear call_arg_locations,
6666 call_arg_loc_last, set call_site_count and tail_call_site_count
6667 to -1 and free block_map.
6668 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6669 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6670 followed by any real instructions.
6671 (dwarf2out_begin_function): Set call_site_count and
6672 tail_call_site_count to 0.
6673 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6674 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6675 attempt to force a DIE for it and worst case remove the attribute.
6676 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6677 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6679 * var-tracking.c: Include tm_p.h.
6680 (vt_stack_adjustments): For calls call note_register_arguments.
6681 (argument_reg_set): New variable.
6682 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6683 ensure the VALUE is resolved.
6684 (call_arguments): New variable.
6685 (prepare_call_arguments): New function.
6686 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6687 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6688 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6689 always use the best expression.
6690 (vt_expand_loc): Add ignore_cur_loc argument.
6691 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6692 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6693 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6695 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6696 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6697 argument. Don't call cselib_preserve_only_values and
6699 (note_register_arguments): New function.
6700 (vt_initialize): Compute argument_reg_set. Call
6701 vt_add_function_parameters before processing basic blocks instead of
6702 afterwards. For calls call prepare_call_arguments before calling
6703 cselib_process_insn.
6704 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6705 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6706 (var-tracking.o): Depend on $(TM_P_H).
6707 * cfglayout.h (insn_scope): New prototype.
6708 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6709 * cfglayout.c (insn_scope): No longer static.
6710 * insn-notes.def (CALL_ARG_LOCATION): New.
6711 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6712 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6713 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6714 nothing for DECL_EXTERNAL BLOCK_VARS.
6716 2011-03-16 Alan Modra <amodra@gmail.com>
6719 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6720 create invalid offset address for vsx splat insn.
6721 * config/rs6000/predicates.md (splat_input_operand): New.
6722 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6724 2011-03-15 Xinliang David Li <davidxl@google.com>
6727 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6728 (normalize_preds): New function.
6729 (is_use_properly_guarded): Normalize def predicates.
6731 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6734 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6735 in the output template.
6737 2011-03-15 Richard Guenther <rguenther@suse.de>
6740 * tree-pretty-print.c (dump_function_declaration): Properly
6741 dump unprototyped and varargs function types.
6743 2011-03-15 Richard Guenther <rguenther@suse.de>
6745 PR tree-optimization/13954
6746 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6749 2011-03-15 Richard Guenther <rguenther@suse.de>
6751 PR tree-optimization/48037
6752 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6753 selects into BIT_FIELD_REFs.
6754 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6757 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6759 PR tree-optimization/48129
6760 * builtins.c (fold_builtin_snprintf): Convert to type of
6761 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6762 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6764 2011-03-15 Richard Guenther <rguenther@suse.de>
6766 PR tree-optimization/41490
6767 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6768 value but with VUSE.
6769 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6771 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6772 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6773 * tree-tailcall.c (find_tail_calls): Ignore returns.
6775 2011-03-15 Richard Guenther <rguenther@suse.de>
6778 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6779 or variable-indexed array accesses when in gimple form.
6781 2011-03-15 Richard Guenther <rguenther@suse.de>
6783 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6785 2011-03-15 Alan Modra <amodra@gmail.com>
6788 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6789 presume symbol_refs without a symbol_ref_decl are suitably
6790 aligned, nor other trees we may see here. Handle anchor symbols.
6791 (legitimate_constant_pool_address_p): Comment. Add mode param.
6792 Check cmodel=medium addresses. Adjust all calls.
6793 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6794 creating cmodel=medium optimized access to locals.
6795 * config/rs6000/constraints.md (R): Pass QImode to
6796 legitimate_constant_pool_address_p.
6797 * config/rs6000/predicates.md (input_operand): Pass mode to
6798 legitimate_constant_pool_address_p.
6799 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6802 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6805 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6806 64-bit constants being loaded into registers other than GPRs such
6807 as loading 0 into a VSX register.
6809 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6811 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6813 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6816 * builtins.c (fold_builtin_snprintf): New function.
6817 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6818 (fold_builtin_4): Likewise.
6821 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6822 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6823 and C - X == X also strip nops from +/-/p+ operand.
6824 When optimizing -X == C, fold C to arg0's type.
6827 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6828 emit it as add_AT_int instead of add_AT_unsigned.
6830 2011-03-14 Tom Tromey <tromey@redhat.com>
6832 * unwind-dw2.c: Include sys/sdt.h if it exists.
6833 (_Unwind_DebugHook): Use STAP_PROBE2.
6834 * config.in, configure: Rebuild.
6835 * configure.ac: Check for sys/sdt.h.
6837 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6839 * config/i386/i386.md (ROUND_FLOOR): New constant.
6840 (ROUND_CEIL): Ditto.
6841 (ROUND_TRUNC): Ditto.
6842 (ROUND_MXCSR): Ditto.
6843 (ROUND_NO_EXC): Ditto.
6844 (rint<mode>2): Use new defines instead of numerical constants.
6845 (floor<mode>2): Ditto.
6846 (ceil<mode>2): Ditto.
6847 (btrunc<mode>2): Ditto.
6848 * config/i386/i386-builtin-types.def: Define ROUND function type
6850 * config/i386/i386.c (enum ix86_builtins): Add
6851 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6852 (struct builtin_description): Add
6853 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6854 (ix86_expand_sse_round): New static function.
6855 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6857 (ix86_builtin_vectorized_function): Handle
6858 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6860 2011-03-14 Tom Tromey <tromey@redhat.com>
6862 * c-parser.c (c_parser_asm_string_literal): Clear
6863 warn_overlength_strings.
6865 2011-03-14 Tom Tromey <tromey@redhat.com>
6867 * c-parser.c (disable_extension_diagnostics): Save
6868 warn_overlength_strings.
6869 (restore_extension_diagnostics): Restore warn_overlength_strings.
6871 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6873 * BASE-VER: Change to 4.7.0.
6875 2011-03-14 Richard Guenther <rguenther@suse.de>
6878 * tree.c (build_vector_from_val): Adjust assert to requirements
6881 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6884 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6886 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6888 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6889 terms of target_flags_explicit. Adjust copyright year.
6891 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6892 * config/rs6000/t-freebsd: New file. Add override for
6895 2011-03-13 Chris Demetriou <cgd@google.com>
6897 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6898 (-fno-diagnostics-show-option): this, to reflect current default.
6899 (-Werror=): Update text about -fno-diagnostics-show-option.
6901 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6904 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6905 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6906 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6907 mode is not V2DImode or V2DFmode.
6908 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6909 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6910 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6912 (movdi_internal64): Likewise.
6914 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6916 PR tree-optimization/47127
6917 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6919 (set_cloog_options): Same.
6920 (scop_to_clast): Same.
6921 (print_clast_stmt): Do not call cloog_state_malloc and
6923 (print_generated_program): Same.
6925 * graphite-clast-to-gimple.h (cloog_state): Declared.
6926 (scop_to_clast): Adjust declaration.
6927 * graphite.c (cloog_state): Defined here.
6928 (graphite_initialize): Call cloog_state_malloc.
6929 (graphite_finalize): Call cloog_state_free.
6931 2011-03-11 Jason Merrill <jason@redhat.com>
6933 * attribs.c (lookup_attribute_spec): Take const_tree.
6936 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6938 * config/sparc/sparc.c (sparc_option_override): Use
6939 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6941 2011-03-11 Richard Guenther <rguenther@suse.de>
6943 PR tree-optimization/48067
6944 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6945 multiplication result will be only used once on the target
6948 2011-03-11 Richard Guenther <rguenther@suse.de>
6950 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6952 2011-03-11 Richard Guenther <rguenther@suse.de>
6955 * tree.c (find_decls_types_r): Do not walk types only reachable
6956 from IDENTIFIER_NODEs.
6958 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6961 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6962 all vnode->force_output nodes as needed.
6964 2011-03-11 Jason Merrill <jason@redhat.com>
6967 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6968 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6970 2011-03-11 Martin Jambor <mjambor@suse.cz>
6972 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6975 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6977 PR tree-optimization/48063
6978 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6979 inline functions called once if !tree_can_inline_p (node->callers).
6981 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6983 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6985 * config/score/score3.c: Delete.
6986 * config/score/score3.h: Delete.
6987 * config/score/mul-div.S: Delete.
6988 * config/score/sfp-machine.h: Add new file.
6989 * config/score/constraints.md: Add new file.
6990 * config/score/t-score-softfp: Add new file.
6991 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6992 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6993 (score7_extra_constraint): Delete.
6994 (score7_option_override): Remove unused code.
6995 * config/score/score.c: Remove score3 and score5 define and code.
6996 * config/score/score.h: Remove score3 and score5 define and code.
6997 * config/score/score.md: Remove score3 template and unusual insn.
6998 * config/score/score.opt: Remove score3 and score5 options.
7000 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7002 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7003 when _HPUX_SOURCE is defined.
7004 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7006 2011-03-10 Jason Merrill <jason@redhat.com>
7009 * stor-layout.c (layout_type): Don't set structural equality
7010 on arrays of incomplete type.
7011 * tree.c (type_hash_eq): Handle comparing them properly.
7013 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7016 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7017 result mode matches original rtl mode.
7019 2011-03-10 Nick Clifton <nickc@redhat.com>
7021 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7022 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7024 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7026 PR rtl-optimization/47866
7027 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7028 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7029 if target wasn't scalar.
7030 * function.c (assign_stack_temp_for_type): Assert that neither
7031 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7032 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7034 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7036 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7038 * config/s390/s390-protos.h (s390_label_align): New prototype.
7039 * config/s390/s390.c (s390_label_align): New function.
7040 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7042 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7045 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7046 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7047 (output_vec_const_move): Ditto.
7049 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7051 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7052 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7053 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7054 Change 'rclass' argument and result type to reg_class_t.
7055 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7057 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7059 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7060 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7061 (TARGET_MEMORY_MOVE_COST): Define.
7062 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7064 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7067 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7070 PR tree-optimization/48022
7071 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7074 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7077 * var-tracking.c (find_use_val): Return NULL for
7078 cui->sets && cui->store_p BLKmode MEMs.
7080 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7082 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7084 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7085 xstormy16_print_operand_address): Remove.
7086 * config/stormy16/stormy16.c (xstormy16_print_operand,
7087 xstormy16_print_operand_address): Make static.
7088 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7090 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7093 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7094 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7097 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7100 * cfgloopmanip.c (fix_bb_placements): Return immediately
7101 if FROM is BASE_LOOP's header.
7103 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7105 * gimplify.c (gimplify_function_tree): Fix building calls
7106 to __builtin_return_address.
7108 2011-03-07 Alan Modra <amodra@gmail.com>
7110 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7111 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7112 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7113 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7115 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7116 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7117 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7118 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7119 * config/rs6000/rs6000.c
7120 (rs6000_elf_end_indicate_exec_stack): Rename to..
7121 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7122 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7123 (rs6000_file_start): ..here.
7124 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7125 file scope variables.
7126 (call_ABI_of_interest): New function.
7127 (init_cumulative_args): Set above vars when function return value
7128 is a float, vector, or small struct.
7129 (rs6000_function_arg_advance_1): Likewise for function args.
7130 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7131 references float args.
7133 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7135 * doc/cfg.texi: Remove "See" before @ref.
7136 * doc/invoke.texi: Likewise.
7138 2011-03-05 Jason Merrill <jason@redhat.com>
7140 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7142 2011-03-05 Anthony Green <green@moxielogic.com>
7144 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7146 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7148 PR rtl-optimization/47899
7149 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7150 to flow_loop_nested_p when moving the loop upward.
7152 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7155 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7157 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7159 PR tree-optimization/47967
7160 * ipa-cp.c (build_const_val): Return NULL instead of creating
7161 VIEW_CONVERT_EXPR for mismatching sizes.
7162 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7163 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7164 give up on versioning.
7166 2011-03-05 Alan Modra <amodra@gmail.com>
7169 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7170 full cmodel medium/large lo_sum + high addresses.
7172 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7174 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7175 pool references in UNSPEC_LTREL_OFFSET.
7177 2011-03-04 Jan Hubicka <jh@suse.cz>
7180 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7181 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7182 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7184 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7185 cgraph_add_thunk): Add node pointers.
7186 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7187 associated to right node.
7188 (input_node): Update use of cgraph_same_body_alias
7189 and cgraph_add_thunk.
7191 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7193 * config/i386/i386.opt (mprefer-avx128): New flag.
7194 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7195 modes when the flag -mprefer-avx128 is on.
7197 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7199 * dwarf2out.c (compare_loc_operands): Fix address handling.
7201 2011-03-04 Alan Modra <amodra@gmail.com>
7203 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7205 2011-03-04 Richard Guenther <rguenther@suse.de>
7208 * expmed.c (extract_bit_field_1): Prefer vector modes that
7209 vec_extract patterns can handle.
7211 2011-03-04 Richard Guenther <rguenther@suse.de>
7214 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7216 2011-03-04 Richard Henderson <rth@redhat.com>
7218 * explow.c (emit_stack_save): Remove 'after' parameter.
7219 (emit_stack_restore): Likewise.
7220 * expr.h: Update to match.
7221 * builtins.c, calls.c, stmt.c: Likewise.
7222 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7223 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7224 * function.c (expand_function_end): Insert the emit_stack_save
7225 sequence before parm_birth_insn instead of after.
7227 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7229 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7230 (ssse3_pmaddubsw128): Ditto.
7231 (ssse3_pmaddubsw): Ditto.
7233 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7235 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7237 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7240 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7241 on TYPE_SIZE_UNIT if it is a DECL.
7244 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7245 first operand is not is_gimple_mem_ref_addr, try to fold it.
7246 If the operand still isn't is_gimple_mem_ref_addr, clear
7249 2011-03-03 Richard Guenther <rguenther@suse.de>
7252 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7254 (refs_may_alias_p_1): For release branches return true if
7255 we are confused by our input.
7257 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7259 * config/s390/s390.c (s390_function_value): Rename to ...
7260 (s390_function_and_libcall_value): ... this.
7261 (s390_function_value): New function.
7262 (s390_libcall_value): New function.
7263 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7264 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7265 target macro definitions.
7266 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7268 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7270 * config/i386/freebsd64.h (CC1_SPEC): Define.
7271 * config/i386/linux64.h (CC1_SPEC): Define.
7272 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7274 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7276 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7278 * config/stormy16/stormy16.c: Include reload.h.
7279 (xstormy16_memory_move_cost): New function.
7280 (TARGET_MEMORY_MOVE_COST): Define.
7282 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7284 PR rtl-optimization/47925
7285 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7286 with side effects. Remove the more-specific check for volatile asms.
7288 2011-03-02 Alan Modra <amodra@gmail.com>
7291 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7292 toc relative addresses for valid offsets.
7294 2011-03-01 Richard Guenther <rguenther@suse.de>
7296 PR tree-optimization/47890
7297 * tree-vect-loop.c (get_initial_def_for_induction): Set
7298 related stmt properly.
7300 2011-03-01 Richard Guenther <rguenther@suse.de>
7303 * lto-streamer.c (lto_record_common_node): Also register
7306 2011-03-01 Richard Guenther <rguenther@suse.de>
7309 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7310 Do not stream DECL_ABSTRACT_ORIGIN.
7311 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7312 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7313 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7314 Do not stream DECL_ABSTRACT_ORIGIN.
7315 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7316 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7318 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7320 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7321 FUNCTION_VALUE_REGNO_P): Remove.
7322 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7323 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7324 Add 'outgoing' argument.
7325 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7327 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7328 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7330 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7333 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7334 (lookup_filename): Likewise.
7335 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7337 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7338 Jakub Jelinek <jakub@redhat.com>
7341 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7342 (assign_stack_local_1): Change last argument type to int.
7343 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7344 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7345 don't record padding space into frame_space_list nor use those areas.
7346 (assign_stack_local): Adjust caller.
7347 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7348 of assign_stack_local, pass 0 as last argument.
7349 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7352 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7355 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7356 Use target address_mode and pointer_mode hooks instead of hardcoded
7357 Pmode and ptr_mode. Handle some simple cases of extending if
7358 POINTERS_EXTEND_UNSIGNED < 0.
7359 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7360 Call convert_debug_memory_address.
7361 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7362 convert_debug_memory_address.
7365 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7366 * configure: Regenerated.
7367 * config.in: Regenerated.
7368 * varasm.c (default_function_section): Return NULL
7369 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7371 2011-02-28 Martin Jambor <mjambor@suse.cz>
7373 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7374 the description to match the printed values.
7376 2011-02-28 Richard Guenther <rguenther@suse.de>
7378 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7379 of the copied scope tree.
7381 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7383 * doc/extend.texi (Function Attributes): Avoid deeply (and
7384 wrongly) nested tables.
7386 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7389 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7390 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7391 r isn't op0 nor op1.
7393 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7395 * config/avr/avr.md: Remove magic comment for emacs.
7397 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7400 * config/avr/avr.c (avr_option_override): Use error on bad options.
7401 (avr_help): New function.
7402 (TARGET_HELP): Define.
7404 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7407 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7408 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7410 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7412 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7413 (ARM Options): Ditto.
7414 (i386 and x86-64 Options): Ditto.
7415 (RX Options): Ditto.
7416 (SPARC Options): Ditto.
7418 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7420 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7421 FreeBSD 6 and later. Generally use cpu generic.
7423 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7425 * doc/cpp.texi: Update copyright years.
7427 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7430 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7432 2011-02-25 Jon Beniston <jon@beniston.com>
7435 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7436 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7437 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7438 (lm32_block_move_inline): Add type cast to remove warning.
7439 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7440 (gen_int_relational): Move declarations to start of function.
7442 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7444 PR tree-optimization/45470
7445 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7446 can throw internally only.
7447 * tree-vect-stmts.c (vectorizable_call): Likewise.
7449 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7451 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7452 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7453 * config/stormy16/stormy16-protos.h
7454 (xstormy16_preferred_reload_class): Remove.
7455 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7456 static. Change 'rclass' argument and return type to reg_class_t.
7457 (TARGET_PREFERRED_RELOAD_CLASS,
7458 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7460 2011-02-24 Richard Guenther <rguenther@suse.de>
7462 * lto-streamer-in.c (input_bb): Do not find referenced vars
7463 in debug statements.
7465 2011-02-23 Jason Merrill <jason@redhat.com>
7467 * common.opt (fabi-version): Document v5 and v6.
7469 2011-02-23 Richard Guenther <rguenther@suse.de>
7471 PR tree-optimization/47849
7472 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7474 2011-02-23 Jie Zhang <jie@codesourcery.com>
7476 * opts-common.c (decode_cmdline_option): Print empty string
7477 argument as "" in decoded->orig_option_with_args_text.
7478 * gcc.c (execute): Print empty string argument as ""
7479 in the verbose output.
7480 (do_spec_1): Keep empty string argument.
7482 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7484 * config.gcc: Declare score-* and crx-* obsolete.
7486 2011-02-23 Jie Zhang <jie@codesourcery.com>
7488 PR rtl-optimization/47763
7489 * web.c (web_main): Ignore naked clobber when replacing register.
7491 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7493 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7496 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7499 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7501 2011-02-22 Mike Stump <mikestump@comcast.net>
7503 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7505 * configure: Regenerate.
7507 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7509 PR rtl-optimization/46002
7510 * ira-color.c (update_copy_costs): Change class intersection
7511 test to reg_class_contents[] test of 'hard_regno'.
7513 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7515 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7517 * config/hpux11.opt (mt): Likewise.
7518 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7519 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7520 * config/vax/elf.opt (mno-asm-pic): Likewise.
7521 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7523 2011-02-21 Mike Stump <mikestump@comcast.net>
7526 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7527 tree so we can get save the type.
7528 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7529 for CFString instead of trying to use past the end of the builtins.
7530 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7531 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7532 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7533 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7534 Rename to darwin_builtin_cfstring.
7535 (darwin_init_cfstring_builtins): Return the built type.
7537 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7540 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7541 (_mm256_insert_epi64): Use _mm_insert_epi64.
7543 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7545 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7546 * config/stormy16/stormy16-protos.h
7547 (xstormy16_mode_dependent_address_p): Remove.
7548 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7549 Make static. Change return type to bool. Change argument type to
7550 const_rtx. Remove dead code.
7551 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7553 2011-02-21 Richard Guenther <rguenther@suse.de>
7556 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7557 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7558 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7560 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7561 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7563 2011-02-20 Richard Guenther <rguenther@suse.de>
7566 * tree.c (free_lang_data_in_decl): Clean builtins from
7567 the TU decl BLOCK_VARS.
7569 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7573 * haifa-sched.c (fix_tick_ready): Skip tick computation
7576 2011-02-19 Richard Guenther <rguenther@suse.de>
7579 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7580 Remove lazy BLOCK_VARS streaming.
7581 (lto_input_ts_block_tree_pointers): Likewise.
7582 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7584 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7586 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7588 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7590 * config/i386/biarch32.h, config/i386/mach.h,
7591 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7593 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7596 * config/i386/i386.md (peephole2 for shift and plus): Use
7597 operands[1] original mode in the first insn.
7599 2011-02-18 Mike Stump <mikestump@comcast.net>
7601 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7603 2011-02-18 Jan Hubicka <jh@suse.cz>
7606 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7607 to zero when the function is not inlinable at all.
7609 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7611 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7612 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7613 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7614 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7615 * config/pa/t-pa64: Likewise.
7616 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7618 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7621 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7623 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7626 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7628 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7630 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7631 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7632 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7633 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7634 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7635 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7636 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7637 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7638 m32r_legitimate_address_p): New functions.
7639 * config/m32r/constraints.md (constraint "S"): Don't use
7640 STORE_PREINC_PREDEC_P.
7641 (constraint "U"): Don't use LOAD_POSTINC_P.
7643 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7645 PR rtl-optimization/46178
7646 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7647 compute ira_hard_regno_cover_class[].
7649 2011-02-18 Richard Guenther <rguenther@suse.de>
7652 * lto-streamer.h (lto_global_var_decls): Declare.
7653 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7654 statics for global var processing.
7656 2011-02-18 Richard Guenther <rguenther@suse.de>
7658 PR tree-optimization/47737
7659 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7660 edge dominance check.
7662 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7665 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7666 avoid invalid rtx sharing.
7668 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7670 * doc/cpp.texi (Obsolete Features): Add background on the
7671 origin of assertions.
7673 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7675 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7677 * config/darwin.c (output_objc_section_asm_op): Added support for
7679 (is_objc_metadata): New.
7680 (darwin_objc2_section): New.
7681 (darwin_objc1_section): New.
7682 (machopic_select_section): Added support for ABI v1 and v2.
7683 (darwin_emit_objc_zeroed): New.
7684 (darwin_output_aligned_bss): Detect objc metadata and treat it
7686 (darwin_asm_output_aligned_decl_common): Same.
7687 (darwin_asm_output_aligned_decl_local): Same.
7688 * config/darwin-sections.def: Updated for ABI v1 and v2.
7689 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7690 compiling Objective-C code for the NeXT runtime, default to using
7691 ABI version 0 for 32-bit, and version 2 for 64-bit.
7693 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7695 * common.opt (optimize_fast): New Variable.
7696 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7697 instead of local variable ofast.
7699 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7701 * doc/invoke.texi (fobjc-abi-version): Documented.
7702 (fobjc-nilcheck): Documented.
7703 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7706 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7709 * common.opt (export-dynamic): New Driver option.
7710 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7712 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7714 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7716 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7717 Jan Hubicka <jh@suse.cz>
7721 * cfgexpand.c (account_used_vars_for_block): Remove.
7722 (estimated_stack_frame_size): Use referenced vars.
7723 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7724 that were referenced in the original function. Test src_fn
7725 rather than cfun. Drop redundant get_var_ann.
7726 (setup_one_parameter): Drop redundant get_var_ann.
7727 (declare_return_variable): Likewise.
7728 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7729 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7730 * ipa-inline.c (compute_inline_parameters): Do not compute
7731 disregard_inline_limits here.
7732 (compute_inlinable_for_current, pass_inlinable): New.
7733 (pass_inline_parameters): Require PROP_referenced_vars.
7734 * cgraphunit.c (cgraph_process_new_functions): Don't run
7735 compute_inline_parameters explicitly unless function is in SSA form.
7736 (cgraph_analyze_function): Set .disregard_inline_limits.
7737 * tree-sra.c (convert_callers): Compute inliner parameters
7738 only for functions already in SSA form.
7740 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7742 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7743 -mlittle-endian-data.
7745 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7747 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7748 -mno-fpu, not -fpu and -no-fpu.
7749 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7750 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7752 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7755 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7756 input reload with PLUS RTX.
7758 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7760 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7761 of InverseVar(MDMX).
7763 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7765 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7768 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7770 * config/mn10300/mn10300.opt (mno-crt0): New.
7772 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7774 * config/m68k/uclinux.opt (static-libc): New Driver option.
7776 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7778 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7780 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7782 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7783 %{muser-extend-enabled}.
7785 2011-02-16 Richard Guenther <rguenther@suse.de>
7787 PR tree-optimization/47738
7788 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7789 the TODO from tree_predictive_commoning.
7791 2011-02-15 Jeff Law <law@redhat.com>
7794 2011-01-25 Jeff Law <law@redhat.com>
7796 PR rtl-optimization/37273
7797 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7798 handle them like argument loads from stack slots. Do not double
7799 count memory for memory constants and argument loads from stack slots.
7801 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7804 * combine.c (cant_combine_insn_p): Revert the last change.
7806 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7809 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7810 mode for vector constants. Remove code that checks for TImode.
7812 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7816 * cgraph.h (compute_inline_parameters): Return void.
7817 * ipa-inline.c (compute_inline_parameters): Adjust.
7819 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7823 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7825 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7826 * ipa-inline.c (compute_inline_parameters): Adjust.
7828 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7832 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7833 Adjust all users. Pass FN to...
7834 * tree-flow-inline.h (first_referenced_var): ... this. Add
7836 * ipa-struct-reorg.c: Adjust.
7837 * tree-dfa.c: Adjust.
7838 * tree-into-ssa.c: Adjust.
7839 * tree-sra.c: Adjust.
7840 * tree-ssa-alias.c: Adjust.
7841 * tree-ssa-live.c: Adjust.
7842 * tree-ssa.c: Adjust.
7843 * tree-ssanames.c: Adjust.
7844 * tree-tailcall.c: Adjust.
7846 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7850 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7852 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7853 * tree-flow-inline.h: Adjust.
7854 * gimple-pretty-print.c: Adjust.
7855 * tree-into-ssa.c: Adjust.
7856 * tree-ssa.c: Adjust.
7857 * cfgexpand.c: Adjust.
7859 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7861 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7862 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7863 (EXTRA_CONSTRAINT): Delete.
7864 * config/iq2000/constraints.md: New file.
7865 * config/iq2000/iq2000.md: Include it.
7866 (define_insn ""): Delete.
7867 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7868 unsupported constraint letters from patterns.
7869 (call_value, call_value_internal1): Likewise.
7870 (call_value_multiple_internal1): Likewise.
7872 2011-02-15 Nick Clifton <nickc@redhat.com>
7874 * config/mn10300/mn10300.c: Include tm-constrs.h.
7875 (struct liw_data): New data structure describing an LIW candidate
7877 (extract_bundle): Use struct liw_data. Allow small integer
7878 operands for some instructions.
7879 (check_liw_constraints): Use struct liw_data. Remove swapped
7880 parameter. Add comments describing the checks. Fix bug when
7881 assigning the source of liw1 to the source of liw2.
7882 (liw_candidate): Delete. Code moved into extract_bundle.
7883 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7885 * config/mn10300/predicates.md (liw_operand): New predicate.
7886 Allows registers and small integer constants.
7887 * config/mn10300/constraints.md (O): New constraint. Accetps
7888 integers in the range -8 to +7 inclusive.
7889 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7890 for moving a small integer into a register. Give this alternative
7892 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7893 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7894 using the J,K,L and M constraints,
7895 (liw): Remove SI mode on second operands to allow for HI and QI
7897 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7900 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7903 * combine.c (cant_combine_insn_p): Check zero/sign extended
7906 2011-02-15 Richard Guenther <rguenther@suse.de>
7908 PR tree-optimization/47743
7909 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7910 for a non-type-compatible VN lookup bail out.
7912 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7914 * config/fr30/constraints.md: New file.
7915 * config/fr30/fr30.md: Include it.
7916 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7917 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7918 (EXTRA_CONSTRAINT): Delete.
7920 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7922 * config/frv/constraints.md: New file.
7923 * config/frv/predicates.md: Include it.
7924 * config/frv/frv.c (reg_class_from_letter): Delete.
7925 (frv_option_override): Don't initialize it.
7926 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7927 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7928 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7929 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7930 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7931 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7932 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7933 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7934 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7935 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7936 (REG_CLASS_FROM_CONSTRAINT): Delete.
7938 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7941 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7942 if frame size is 0 in a leaf function.
7944 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7947 * config/alpha/host-osf.c: New file.
7948 * config/alpha/x-osf: New file.
7949 * config.host (alpha*-dec-osf*): Use it.
7951 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7953 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7954 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7955 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7956 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7958 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7960 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7962 * config/stormy16/constraints.md: New file.
7963 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7964 Use satisfies_constraint_Q and satisfies_constraint_R.
7965 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7967 (xstormy16_legitiamte_address_p): Declare.
7968 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7969 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7970 (EXTRA_CONSTRAINT): Delete.
7971 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7973 (xstormy16_extra_constraint_p): Delete.
7975 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7977 PR tree-optimization/46494
7978 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7979 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7980 (pass_rtl_loop_done): Add TODO_verify_flow.
7981 * fwprop.c (pass_rtl_fwprop): Likewise.
7982 * modulo-sched.c (pass_sms): Likewise.
7983 * tree-ssa-dom.c (pass_dominator): Likewise.
7984 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7985 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7986 (pass_tree_loop_done): Likewise.
7987 * tree-ssa-pre.c (execute_pre): Likewise.
7988 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7989 * tree-ssa-sink.c (pass_sink_code): Likewise.
7990 * tree-vrp.c (pass_vrp): Likewise.
7992 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7994 * config/v850/constraints.md: New file.
7995 * config/v850/v850.md: Include it.
7996 * config/v850/predicates.md (reg_or_0_operand): Use
7997 satisfies_constraint_G.
7998 (special_symbolref_operand): Use satisfies_constraint_K.
7999 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8000 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8001 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8002 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8003 (EXTRA_CONSTRAINT): Delete.
8004 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8005 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8006 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8008 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8011 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8014 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8016 * config/mcore/constraints.md: New file.
8017 * config/mcore/mcore.md: Include it.
8018 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8019 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8020 (REG_CLASS_FROM_LETTER): Delete.
8021 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8022 insn_const_int_ok_for_constraint.
8023 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8024 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8025 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8026 (EXTRA_CONSTRAINT): Delete.
8028 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8031 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8032 (IS_SIGHANDLER): Define.
8033 (sparc64_is_sighandler): New function, split off from
8034 sparc64_fallback_frame_state.
8035 (sparc_is_sighandler): New function, split off from
8036 sparc_fallback_frame_state.
8037 (sparc64_fallback_frame_state): Merge with ...
8038 (sparc_fallback_frame_state): ... this into ...
8039 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8040 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8041 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8042 stack instead of hardcoded offsets.
8044 2011-02-14 Andriy Gapon <avg@freebsd.org>
8047 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8049 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8051 * configure: Regenerate.
8053 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8056 * gcc.c (asm_options): Correct spec matching --target-help.
8058 2011-02-12 Martin Jambor <mjambor@suse.cz>
8060 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8061 to gimple call error.
8063 2011-02-12 Mike Stump <mikestump@comcast.net>
8065 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8066 comments in backslash regions.
8068 2011-02-12 Mike Stump <mikestump@comcast.net>
8069 Jakub Jelinek <jakub@redhat.com>
8070 Iain Sandoe <iains@gcc.gnu.org>
8073 * dwarf2out.c (output_cfa_loc): When required, apply the
8074 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8075 (output_loc_sequence): Likewise.
8076 (output_loc_operands_raw): Likewise.
8077 (output_loc_sequence_raw): Likewise.
8078 (output_cfa_loc): Likewise.
8079 (output_loc_list): Suppress register number adjustment when
8080 calling output_loc_sequence()
8081 (output_die): Likewise.
8083 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8085 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8087 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8088 xtensa_memory_move_cost): New functions.
8089 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8091 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8094 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8095 in the current directory.
8096 * configure: Rebuilt.
8098 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8100 * config/darwin.c (darwin_override_options): Add a hunk missed
8101 from the commit of r168571. Trim comment line lengths and
8102 correct indents of the preceding block.
8104 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8106 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8109 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8111 * common.opt (nostartfiles): New Driver option.
8113 2011-02-11 Xinliang David Li <davidxl@google.com>
8115 PR tree-optimization/47707
8116 * tree-chrec.c (convert_affine_scev): Keep type precision.
8118 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8120 PR tree-optimization/47420
8121 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8123 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8125 PR rtl-optimization/47614
8126 * rtl.h (check_for_inc_dec): Declare.
8127 * dse.c (check_for_inc_dec): Externalize...
8128 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8129 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8131 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8134 * gcc.c (main): Do not compile inputs if there were errors in
8136 * opts-common.c (read_cmdline_option): Check for wrong language
8137 after other error checks.
8139 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8141 * cgraph.c: Fix comment typos.
8142 * cgraph.h: Likewise.
8143 * cgraphunit.c: Likewise.
8144 * ipa-cp.c: Likewise.
8145 * ipa-inline.c: Likewise.
8146 * ipa-prop.c: Likewise.
8147 * ipa-pure-const.c: Likewise.
8148 * ipa-ref.c: Likewise.
8149 * ipa-reference.c: Likewise.
8151 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8154 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8156 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8159 * doc/sourcebuild.texi (Require Support): Document
8160 dg-require-ascii-locale.
8162 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8164 * doc/lto.texi (Write summary): Fix missing parentheses.
8166 2011-02-10 DJ Delorie <dj@redhat.com>
8168 * config/m32c/m32c.c (m32c_option_override): Disable
8169 -fcombine-stack-adjustments until flag value tracking and compare
8170 optimization can be rewritten.
8172 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8174 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8176 (PROCESSOR_DEFAULT64): Likewise.
8178 2011-02-10 Richard Henderson <rth@redhat.com>
8180 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8181 change from 2011-02-03.
8182 * config/rx/rx.c (flags_from_code): Likewise.
8183 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8184 is valid, n/pz otherwise.
8185 (rx_select_cc_mode): Return CCmode if Y is not zero.
8187 2011-02-10 Richard Guenther <rguenther@suse.de>
8189 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8191 2011-02-10 Richard Guenther <rguenther@suse.de>
8193 PR tree-optimization/47677
8194 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8196 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8199 * combine.c (make_compound_operation): Only change shifts into
8200 multiplication for SCALAR_INT_MODE_P.
8202 2011-02-10 Jie Zhang <jie@codesourcery.com>
8206 2011-02-05 Jie Zhang <jie@codesourcery.com>
8208 * web.c (entry_register): Don't clobber the number of the
8209 first uninitialized reference in used[].
8211 2011-02-09 Richard Guenther <rguenther@suse.de>
8213 PR tree-optimization/47664
8214 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8217 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8221 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8223 (PROCESSOR_DEFAULT64): Same.
8224 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8226 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8228 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8230 2011-02-09 Martin Jambor <mjambor@suse.cz>
8233 * tree-sra.c (struct access): New flags grp_scalar_read and
8234 grp_scalar_write. Changed description of assignment read and write
8236 (dump_access): Dump new flags, reorder all of them.
8237 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8238 to detect multiple scalar reads.
8239 (analyze_access_subtree): Use the new scalar read write flags instead
8240 of the old flags. Adjusted comments.
8242 2011-02-08 DJ Delorie <dj@redhat.com>
8245 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8248 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8250 * config/m68k/uclinux.opt: New.
8251 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8253 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8255 * config/cris/elf.opt (sim): New Driver option.
8257 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8259 * config/xtensa/elf.opt: New.
8260 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8262 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8264 * config/vax/elf.opt: New.
8265 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8267 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8269 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8271 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8273 * config/gnu-user.opt: New.
8274 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8275 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8276 *-*-uclinux*): Use gnu-user.opt.
8278 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8280 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8281 * config/i386/gnu.h (CPP_SPEC): Likewise.
8283 2011-02-08 Ian Lance Taylor <iant@google.com>
8285 * common.opt (fcx-limited-range): Add SetByCombined flag.
8286 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8287 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8288 (fassociative-math, freciprocal-math): Likewise.
8289 (funsafe-math-optimizations): Likewise.
8290 * opth-gen.awk: Handle SetByCombined.
8291 * optc-gen.awk: Likewise.
8292 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8293 (set_unsafe_math_optimizations_flags): Likewise.
8294 * doc/options.texi (Option properties): Document SetByCombined.
8296 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8298 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8299 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8300 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8301 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8302 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8304 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8306 PR tree-optimization/46834
8307 PR tree-optimization/46994
8308 PR tree-optimization/46995
8309 * graphite-sese-to-poly.c (used_outside_reduction): New.
8310 (detect_commutative_reduction): Call used_outside_reduction.
8311 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8312 translate_scalar_reduction_to_array only when at least one
8313 loop-phi/close-phi tuple has been detected.
8315 2011-02-08 Richard Guenther <rguenther@suse.de>
8318 * tree-vect-generic.c (expand_vector_operations_1): Update
8320 (expand_vector_operations): ... not here. Cleanup EH info
8321 and the CFG if required.
8323 2011-02-08 Richard Guenther <rguenther@suse.de>
8325 PR tree-optimization/47641
8326 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8327 require type compatibility.
8329 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8331 * gimple-low.c (lower_function_body): Don't remove the location of
8332 the return statement here.
8333 (lower_gimple_return): Do it here instead but only if the return
8334 statement is actually used twice.
8336 2011-02-08 Richard Guenther <rguenther@suse.de>
8338 PR tree-optimization/47632
8339 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8340 unused up_to_stmt parameter, return whether cfg-cleanup is
8341 necessary, remove EH info properly.
8342 (forward_propagate_into_gimple_cond): Adjust caller.
8343 (forward_propagate_into_cond): Likewise.
8344 (forward_propagate_comparison): Likewise.
8345 (tree_ssa_forward_propagate_single_use_vars): Make
8346 forward_propagate_comparison case similar to the two others.
8348 2011-02-08 Nick Clifton <nickc@redhat.com>
8350 * config/mn10300/mn10300.opt (mliw): New command line option.
8351 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8352 (liw_bundling): New automaton.
8353 (liw): New attribute.
8354 (liw_op): New attribute.
8355 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8356 (movsi_internal): Add LIW attributes.
8360 (addsi3): Separate register and immediate alternatives.
8365 (lshrsi3): Likewise.
8366 (ashrsi3): Likewise.
8368 * config/mn10300/mn10300.c (liw_op_names): New
8369 (mn10300_print_operand): Handle 'W' operand descriptor.
8370 (extract_bundle): New function.
8371 (check_liw_constraints): New function.
8372 (liw_candidate): New function.
8373 (mn10300_bundle_liw): New function.
8374 (mn10300_reorg): New function.
8375 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8376 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8377 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8378 __LIW__ or __NO_LIW__.
8379 * doc/invoke.texi: Describe the -mliw command line option.
8381 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8383 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8384 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8385 pthread_mutex_unlock): Remove.
8386 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8387 * config/pa/t-pa64: Likewise.
8388 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8389 shared libc if not linking against libpthread.
8390 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8392 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8395 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8396 on 10.6 and later to ensure that we always use the unwinder from
8397 the system. Only add -no_compact_unwind when tarteting darwin
8400 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8403 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8404 (vec_interleave_lowv2sf): Ditto.
8405 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8406 (vec_extract_oddv2sf): Ditto.
8408 2011-02-07 Mike Stump <mikestump@comcast.net>
8411 Add __ieee_divdc3 entry point.
8412 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8414 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8415 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8416 * config/darwin.c (darwin_rename_builtins): Add.
8417 * config/darwin-protos.h (darwin_rename_builtins): Add.
8419 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8422 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8425 2011-02-07 Mike Stump <mikestump@comcast.net>
8427 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8429 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8432 * config/avr/libgcc.S (exit): Move .endfunc
8434 2011-02-07 Richard Guenther <rguenther@suse.de>
8436 PR tree-optimization/47615
8437 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8438 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8439 (run_scc_vn): Initialize it.
8440 (visit_reference_op_load): Use it.
8441 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8443 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8445 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8446 DImode trapping arithmetic libfuncs.
8448 2011-02-07 Richard Guenther <rguenther@suse.de>
8450 PR tree-optimization/47621
8451 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8453 (execute_update_addresses_taken): ... here. Make it more
8454 conservative in what we accept.
8456 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8458 * config/sparc/freebsd.h (ASM_SPEC): Define.
8459 * config/sparc/vxworks.h (ASM_SPEC): Define.
8461 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8463 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8465 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8467 * doc/invoke.texi: Remove reference to compiler internals from
8470 * reg-notes.def: Remove REG_VALUE_PROFILE.
8471 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8473 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8476 * varasm.c (default_section_type_flags): If decl is NULL,
8477 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8479 2011-02-05 Jie Zhang <jie@codesourcery.com>
8482 * web.c (entry_register): Don't clobber the number of the
8483 first uninitialized reference in used[].
8485 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8487 PR tree-optimization/46194
8488 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8489 (build_classic_dist_vector_1): Do not represent classic distance
8490 vectors when the access functions are variating in different loops.
8492 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8494 * config/mips/iris6.opt: New.
8495 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8497 2011-02-04 Richard Henderson <rth@redhat.com>
8498 Steve Ellcey <sje@cup.hp.com>
8501 * config/ia64/predicates.md (mux1_brcst_element): New.
8502 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8503 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8504 (ia64_unpack_sign): New.
8505 (ia64_expand_unpack): Rewrite using new routines.
8506 (ia64_expand_widen_sum): Ditto.
8507 (ia64_expand_dot_prod_v8qi): Ditto.
8508 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8509 routines, add endian check.
8510 (pmpy2_even): Rename from pmpy2_r, add endian check.
8511 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8512 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8513 (vec_widen_smult_hi_v4hi): Ditto.
8514 (vec_widen_umult_lo_v4hi): Ditto.
8515 (vec_widen_umult_hi_v4hi): Ditto.
8516 (mulv2si3): Change endian checks.
8517 (sdot_prodv4hi): Rewrite with new calls.
8518 (udot_prodv4hi): New.
8519 (vec_pack_ssat_v4hi): Add endian check.
8520 (vec_pack_usat_v4hi): Ditto.
8521 (vec_pack_ssat_v2si): Ditto.
8522 (max1_even): Rename from max1_r, add endian check.
8523 (max1_odd): Rename from max1_l, add endian check.
8524 (*mux1_rev): Format change.
8526 (*mux1_shuf): Ditto.
8528 (*mux1_brcst_v8qi): Use new predicate.
8529 (vec_extract_evenv8qi): Remove endian check.
8530 (vec_extract_oddv8qi): Ditto.
8531 (vec_interleave_lowv4hi): Format change.
8532 (vec_interleave_highv4hi): Ditto.
8533 (mix2_even): Rename from mix2_r, add endian check.
8534 (mix2_odd): Rename from mux2_l, add endian check.
8535 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8536 (vec_extract_evenodd_helper): Format change.
8537 (vec_extract_evenv4hi): Remove endian check.
8538 (vec_extract_oddv4hi): Remove endian check.
8539 (vec_interleave_lowv2si): Format change.
8540 (vec_interleave_highv2si): Format change.
8541 (vec_initv2si): Remove endian check.
8542 (vecinit_v2si): Add endian check.
8543 (reduc_splus_v2sf): Add endian check.
8544 (reduc_smax_v2sf): Ditto.
8545 (reduc_smin_v2sf): Ditto.
8546 (vec_initv2sf): Remove endian check.
8547 (fpack): Add endian check.
8548 (fswap): Add endian check.
8549 (vec_interleave_highv2sf): Add endian check.
8550 (vec_interleave_lowv2sf): Add endian check.
8551 (fmix_lr): Add endian check.
8552 (vec_setv2sf): Format change.
8553 (*vec_extractv2sf_0_be): Use shift to extract operand.
8554 (*vec_extractv2sf_1_be): New.
8555 (vec_pack_trunc_v4hi): Add endian check.
8556 (vec_pack_trunc_v2si): Format change.
8558 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8561 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8562 do bb, locus and block comparison and disallow loads if it is not set.
8563 (stmt_is_replaceable_p): New function.
8564 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8566 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8567 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8569 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8571 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8573 * config/rs6000/xilinx.opt: New.
8574 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8576 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8578 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8580 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8582 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8583 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8584 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8585 secondary_reload_info, xtensa_secondary_reload): Remove.
8586 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8587 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8588 (xtensa_preferred_reload_class): Make static. Change return and
8589 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8590 Use CONST_DOUBLE_P predicate.
8591 (xtensa_preferred_output_reload_class): New function.
8592 (xtensa_secondary_reload): Make static.
8594 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8596 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8597 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8598 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8600 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8603 * output.h (SECTION_RELRO): Define.
8604 (SECTION_MACH_DEP): Adjust.
8605 (get_variable_section): New prototype.
8606 * varpool.c (varpool_finalize_named_section_flags): New function.
8607 (varpool_assemble_pending_decls): Call it.
8608 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8609 * cgraphunit.c (cgraph_output_in_order): Call
8610 varpool_finalize_named_section_flags.
8611 * varasm.c (get_section): Allow section flags conflicts between
8612 relro and read-only sections if the section hasn't been declared yet.
8613 Set SECTION_OVERRIDE after diagnosing section type conflict.
8614 (get_variable_section): No longer static.
8615 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8616 readonly sections that need relocations.
8617 (decl_readonly_section_1): New function.
8618 (decl_readonly_section): Use it.
8621 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8622 Steve Ellcey <sje@cup.hp.com>
8625 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8626 if section attribute used.
8628 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8630 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8631 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8632 (darwin_init_sections): Remove assertion.
8634 2011-02-03 Nick Clifton <nickc@redhat.com>
8636 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8638 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8639 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8640 instead of "n" and "pz".
8641 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8644 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8647 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8648 fma, expand FMA_EXPR as fma{,f,l} call.
8651 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8652 copy them into a unsigned char variable and pass address of it to
8653 lto_output_data_stream.
8656 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8657 around backend_init_target and lang_dependent_init_target calls.
8658 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8659 (verify_cgraph_node): Don't call set_cfun here. Use
8660 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8661 Set error_found for incorrectly represented calls to thunks.
8663 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8666 PR rtl-optimization/43494
8667 * rtl.h (for_each_inc_dec_fn): New type.
8668 (for_each_inc_dec): Declare.
8669 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8670 (for_each_inc_dec_find_inc_dec): New fn.
8671 (for_each_inc_dec_find_mem): New fn.
8672 (for_each_inc_dec): New fn.
8673 * dse.c (struct insn_size): Remove.
8674 (replace_inc_dec, replace_inc_dec_mem): Remove.
8675 (emit_inc_dec_insn_before): New fn.
8676 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8677 (canon_address): Pass mem modes to cselib_lookup.
8678 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8679 (cselib_lookup_from_insn): Likewise.
8680 (cselib_subst_to_values): Likewise.
8681 * cselib.c (find_slot_memmode): New var.
8682 (cselib_find_slot): New fn. Use it instead of
8683 htab_find_slot_with_hash everywhere.
8684 (entry_and_rtx_equal_p): Use find_slot_memmode.
8685 (autoinc_split): New fn.
8686 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8687 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8688 Deal with autoinc. Special-case recursion into MEMs.
8689 (cselib_hash_rtx): Likewise.
8690 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8691 address and MEM modes.
8692 (cselib_subst_to_values): Add memmode, pass it on.
8694 (cselib_lookup): Add memmode argument, pass it on.
8695 (cselib_lookup_from_insn): Add memmode.
8696 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8697 (struct cselib_record_autoinc_data): New.
8698 (cselib_record_autoinc_cb): New fn.
8699 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8700 mode to cselib_lookup. Reset autoinced REGs here instead of...
8701 (cselib_process_insn): ... here.
8702 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8704 (add_uses): Likewise, also to cselib_subst_to_values.
8705 (add_stores): Likewise.
8706 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8707 cselib_subst_to_values.
8708 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8709 * gcse.c (do_local_cprop): Adjusted.
8710 * postreload.c (reload_cse_simplify_set): Adjusted.
8711 (reload_cse_simplify_operands): Adjusted.
8712 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8714 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8716 PR tree-optimization/45122
8717 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8718 unsafe assumptions when there's more than one loop exit.
8720 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8723 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8724 Document using vector double with the load/store builtins, and
8725 that the load/store builtins always use Altivec instructions.
8727 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8728 to use altivec memory instructions, even on VSX.
8729 (vector_altivec_store_<mode>): Ditto.
8731 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8734 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8735 V2DF, V2DI support to load/store overloaded builtins.
8737 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8738 altivec load/store builtins for V2DF/V2DI types.
8740 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8741 set avoid indexed addresses on power6 if -maltivec.
8742 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8743 vector_altivec_load/vector_altivec_store builtins.
8744 (altivec_expand_st_builtin): Ditto.
8745 (altivec_expand_builtin): Add VSX memory builtins.
8746 (rs6000_init_builtins): Add V2DI types to internal types.
8747 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8748 load/store builtins.
8749 (rs6000_address_for_altivec): Insure memory address is appropriate
8752 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8753 vec_vsx_ld and vec_vsx_st.
8754 (vsx_store_<mode>): Ditto.
8756 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8757 variables to hold long long types for VSX vector memory builtins.
8758 (RS6000_BTI_unsigned_long_long): Ditto.
8759 (long_long_integer_type_internal_node): Ditti.
8760 (long_long_unsigned_type_internal_node): Ditti.
8762 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8763 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8764 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8766 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8768 (vec_vsx_st): Ditto.
8770 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8772 * config/pa/pa-hpux10.opt: New.
8773 * config/hpux11.opt (pthread): New Driver option.
8774 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8775 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8777 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8779 * config/ia64/vms.opt: New.
8780 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8782 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8785 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8786 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8787 generator functions.
8788 (vsx_floatuns<VSi><mode>2): Ditto.
8789 (vsx_fix_trunc<mode><VSi>2): Ditto.
8790 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8792 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8794 * config/i386/djgpp.opt (posix): New Driver option.
8796 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8798 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8799 Move to the unsupported targets list.
8801 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8803 PR rtl-optimization/47525
8804 * df-scan.c: Update copyright years.
8805 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8806 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8808 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8811 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8812 (ASM_OUTPUT_ASCII): Remove.
8813 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8815 2011-02-02 Jeff Law <law@redhat.com>
8818 * reload.c (find_reloads_address): Handle reg+d address where both
8819 components are invalid by reloading the entire address.
8821 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8822 Richard Guenther <rguenther@suse.de>
8824 PR tree-optimization/40979
8826 * passes.c (init_optimization_passes): After LIM call copy_prop
8827 and DCE to clean up.
8828 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8830 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8832 PR tree-optimization/47576
8833 PR tree-optimization/47555
8834 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8835 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8836 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8837 * tree-scalar-evolution.c (follow_ssa_edge): Use
8838 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8840 2011-02-02 Richard Guenther <rguenther@suse.de>
8842 PR tree-optimization/47566
8843 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8845 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8849 * tree-inline.c (declare_return_variable): Remove unused caller
8854 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8855 * cfgexpand.c (account_used_vars_for_block): Use them.
8856 * tree-nrv.c (tree_nrv): Likewise.
8857 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8858 (dump_scope_block): Likewise.
8859 (remove_unused_locals): Likewise.
8863 * tree-inline.c (declare_return_variable): Add result decl to
8864 local decls only once.
8865 * gimple-low.c (record_vars_into): Mark newly-created variables
8868 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8874 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8876 (no_real_insns_p, schedule_block, set_priorities): Drop special
8877 treatment of boundary debug insns.
8878 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8879 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8880 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8881 (BOUNDARY_DEBUG_INSN_P): Likewise.
8882 (SCHEDULE_DEBUG_INSN_P): Likewise.
8883 * sched-rgn.c (init_ready_list): Drop special treatment of
8884 boundary debug insns.
8885 * final.c (rest_of_clean_state): Clear notes' BB.
8887 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8889 * config/openbsd.opt (assert=): New Driver option.
8891 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8893 * config/i386/nto.opt: New.
8894 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8896 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8898 * config/i386/netware.opt: New.
8899 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8901 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8903 * config/interix.opt (posix): New Driver option.
8905 2011-02-01 DJ Delorie <dj@redhat.com>
8907 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8909 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8912 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8914 PR tree-optimization/47561
8915 * toplev.c (process_options): Print the Graphite flags. Add
8916 flag_loop_flatten to the list of options requiring Graphite.
8918 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8920 * config/i386/cygming.opt (posix): New Driver option.
8922 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8924 * config/arm/vxworks.opt: New.
8925 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8927 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8929 * config/alpha/elf.opt: New.
8930 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8931 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8933 2011-02-01 Richard Guenther <rguenther@suse.de>
8935 PR tree-optimization/47559
8936 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8937 store-motion on references that can throw.
8939 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8941 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8942 * tree-pass.h (TDF_CSELIB): New macro.
8943 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8944 cselib_lookup): Check for it rather than for TDF_DETAILS.
8946 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8949 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8952 * opts.c (finish_options): Don't add x_aux_base_name if it is
8955 2011-02-01 Richard Guenther <rguenther@suse.de>
8957 PR tree-optimization/47555
8959 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8961 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8963 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8966 * config/lm32/t-lm32: Add multilib for all CPU options.
8968 2011-02-01 Richard Guenther <rguenther@suse.de>
8970 PR tree-optimization/47541
8971 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8972 sure to have a field at offset zero.
8974 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8976 * config/arc/arc.opt (EB, EL): New Driver options.
8978 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8980 * config/alpha/osf5.opt: New.
8981 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8983 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8985 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8987 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8989 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8991 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8992 is an alias of -floop-interchange and that it requires the
8993 Graphite infrastructure.
8994 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8995 flag_loop_interchange based on the value of flag_tree_loop_linear.
8997 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8998 Richard Guenther <rguenther@suse.de>
9000 PR tree-optimization/47538
9001 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9002 type instead of r1type, except for comparisons. For right
9003 shifts and comparisons punt if there are mismatches in
9004 sizetype vs. non-sizetype types.
9006 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9008 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9011 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9013 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9015 * configure: Regenerate.
9017 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9019 * configure.ac (gcc_cv_ld_static_option): Define.
9020 (gcc_cv_ld_dynamic_option): Define.
9021 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9023 (HAVE_LD_STATIC_DYNAMIC): Update message.
9024 (LD_STATIC_OPTION): Define.
9025 (LD_DYNAMIC_OPTION): Define.
9026 * configure: Regenerate.
9027 * config.in: Regenerate.
9028 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9029 HAVE_LD_STATIC_DYNAMIC]: Use them.
9031 2011-01-31 Nick Clifton <nickc@redhat.com>
9033 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9034 registers inside interrupt handlers if the handler is not a leaf
9037 2011-01-31 Nick Clifton <nickc@redhat.com>
9039 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9040 reg_renumber returning an INVALID_REGNUM.
9042 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9045 * doc/install.texi: Document host options discarded when cross
9046 configuring target libraries.
9048 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9051 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9054 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9056 (no_real_insns_p, schedule_block, set_priorities): Drop special
9057 treatment of boundary debug insns.
9058 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9059 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9060 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9061 (BOUNDARY_DEBUG_INSN_P): Likewise.
9062 (SCHEDULE_DEBUG_INSN_P): Likewise.
9063 * sched-rgn.c (init_ready_list): Drop special treatment of
9064 boundary debug insns.
9065 * final.c (rest_of_clean-state): Clear notes' BB.
9067 2011-01-31 Alan Modra <amodra@gmail.com>
9069 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9070 toc relative expressions as we do in print_operand_address.
9072 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9074 * doc/extend.texi: Follow spelling conventions.
9075 * doc/invoke.texi: Fix a typo.
9077 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9079 * config/hpux11.opt: New.
9080 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9081 ia64*-*-hpux*): Use hpux11.opt.
9083 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9085 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9088 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9090 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9093 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9095 * doc/install.texi (Binaries): Remove outdated reference for
9096 Motorola 68HC11/68HC12 downloads.
9098 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9100 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9103 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9106 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9109 2011-01-28 Ahmad Sharif <asharif@google.com>
9111 * value-prof.c (check_counter): Corrected error message.
9113 2011-01-29 Jie Zhang <jie@codesourcery.com>
9115 * config/arm/arm.c (arm_legitimize_reload_address): New.
9116 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9117 arm_legitimize_reload_address.
9118 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9120 2011-01-28 Ian Lance Taylor <iant@google.com>
9122 * godump.c (go_define): Ignore macros whose definitions include
9123 two adjacent operands.
9125 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9128 * varasm.c (force_const_mem): Store copy of x in desc->constant
9129 instead of x itself.
9130 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9131 itself into REG_EQUAL note.
9133 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9135 * config/freebsd.opt (posix, rdynamic): New Driver options.
9137 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9139 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9141 * configure: Regenerate.
9143 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9145 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9146 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9148 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9150 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9151 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9152 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9153 (s390_preferred_reload_class): Make static. Change return and
9154 'rclass' argument type to reg_class_t.
9156 2011-01-27 Jan Hubicka <jh@suse.cz>
9159 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9160 (process_function_and_variable_attributes): Check defined weakrefs.
9162 2011-01-27 Martin Jambor <mjambor@suse.cz>
9164 PR tree-optimization/47228
9165 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9166 build_ref_for_offset.
9168 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9170 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9172 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9174 PR rtl-optimization/46856
9175 * postreload.c (reload_combine_recognize_const_pattern): Do not
9176 separate cc0 setter and user on cc0 targets.
9178 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9181 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9182 passed a VOID_TYPE expression, immediately emit an error and
9183 return error_mark_node.
9185 2011-01-26 Jeff Law <law@redhat.com>
9187 PR rtl-optimization/47464
9188 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9189 rather than may_trap_p as needed.
9191 2011-01-26 DJ Delorie <dj@redhat.com>
9193 PR rtl-optimization/46878
9194 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9195 setter/user dependency as well.
9197 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9199 PR rtl-optimization/44469
9200 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9201 after removing trivially dead basic blocks.
9203 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9205 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9206 * config/frv/frv.h (LINK_SPEC): Likewise.
9207 * config/i386/netware.h (LINK_SPEC): Likewise.
9208 * config/m68k/linux.h (ASM_SPEC): Likewise.
9209 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9210 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9211 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9212 * config/sparc/linux.h (ASM_SPEC): Likewise.
9213 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9214 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9216 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9218 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9219 * config/frv/frv.h (ASM_SPEC): Likewise.
9220 * config/m68k/linux.h (ASM_SPEC): Likewise.
9221 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9222 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9223 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9224 * config/sparc/linux.h (ASM_SPEC): Likewise.
9225 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9226 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9228 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9230 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9231 * config/frv/frv.h (LINK_SPEC): Likewise.
9232 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9234 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9236 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9237 * config/frv/frv.h (ASM_SPEC): Likewise.
9238 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9239 * config/m68k/linux.h (ASM_SPEC): Likewise.
9240 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9241 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9242 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9243 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9244 * config/sparc/linux.h (ASM_SPEC): Likewise.
9245 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9246 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9247 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9249 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9252 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9254 (vec_extract_evenodd_help): Ditto.
9255 (vec_extract_evenv4hi): Ditto.
9256 (vec_extract_oddv4hi): Ditto.
9257 (vec_interleave_lowv2si): Ditto.
9258 (vec_interleave_highv2si): Ditto.
9259 (vec_extract_evenv2si): Ditto.
9260 (vec_extract_oddv2si: Ditto.
9261 (vec_pack_trunc_v2si): Ditto.
9263 2011-01-22 Jan Hubicka <jh@suse.cz>
9266 * cgraph.h (cgraph_local_info): New field can_change_signature.
9267 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9268 signature can change.
9269 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9271 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9272 (cgraph_function_versioning): We can not change signature of functions
9273 that don't allow that.
9274 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9275 (lto_input_node): Likewise.
9276 * ipa-inline.c (compute_inline_parameters): Compute
9277 local.can_change_signature.
9278 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9279 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9280 functions that can not change signature.
9281 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9282 init_cumulative_args): Do not use local calling conventions
9283 for functions that can not change signature.
9285 2011-01-22 Jan Hubicka <jh@suse.cz>
9287 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9289 2011-01-26 Richard Guenther <rguenther@suse.de>
9291 PR tree-optimization/47190
9292 * cgraphunit.c (process_common_attributes): New function.
9293 (process_function_and_variable_attributes): Use it.
9295 2011-01-26 Richard Guenther <rguenther@suse.de>
9298 * cgraphbuild.c (record_eh_tables): Record reference to personality
9301 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9304 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9305 non-debug insns from moving up.
9307 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9310 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9311 t-dlldir{,-x} fragment for build and add it to tmake_file.
9312 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9313 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9314 * config/i386/t-dlldir: New file.
9315 (SHLIB_DLLDIR): Define.
9316 * config/i386/t-dlldir-x: New file.
9317 (SHLIB_DLLDIR): Define.
9318 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9319 (SHLIB_INSTALL): Use it.
9321 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9324 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9325 lower bound of the allowed Thumb-2 coprocessor load/store
9326 index range to -256. Add explaining comment.
9328 2011-01-25 Ian Lance Taylor <iant@google.com>
9330 * godump.c (go_define): Improve lexing of macro expansion to only
9331 accept expressions which match Go spec.
9333 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9336 * tree.c (handle_dll_attribute): Handle it.
9337 * doc/extend.texi (@item dllexport): Mention it.
9338 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9340 2011-01-25 Ian Lance Taylor <iant@google.com>
9342 PR tree-optimization/26854
9343 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9344 (decl_jump_unsafe): Move higher in file, with no other change.
9345 (bind): Set has_jump_unsafe_decl if appropriate.
9346 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9347 (check_earlier_gotos): Likewise.
9348 (c_check_switch_jump_warnings): Likewise.
9350 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9352 * doc/invoke.texi (Warning Options): Add missing hyphen.
9353 (-fprofile-dir): Minor grammatical fixes.
9354 (-fbranch-probabilities): Likewise.
9356 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9360 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9362 (no_real_insns_p, schedule_block, set_priorities): Drop special
9363 treatment of boundary debug insns.
9364 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9365 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9366 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9367 (BOUNDARY_DEBUG_INSN_P): Likewise.
9368 (SCHEDULE_DEBUG_INSN_P): Likewise.
9369 * sched-rgn.c (init_ready_list): Drop special treatment of
9370 boundary debug insns.
9371 * final.c (rest_of_clean-state): Clear notes' BB.
9373 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9375 * Makefile.in (LAMBDA_H): Removed.
9376 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9377 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9378 lambda-trans.o, and tree-loop-linear.o.
9379 (lto-symtab.o): Remove dependence on LAMBDA_H.
9380 (tree-loop-linear.o): Remove rule.
9381 (lambda-mat.o): Same.
9382 (lambda-trans.o): Same.
9383 (lambda-code.o): Same.
9384 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9385 (tree-vect-slp.o): Same.
9386 * hwint.h (gcd): Moved here.
9387 (least_common_multiple): Same.
9388 * lambda-code.c: Removed.
9389 * lambda-mat.c: Removed.
9390 * lambda-trans.c: Removed.
9391 * lambda.h: Removed.
9392 * tree-loop-linear.c: Removed.
9393 * lto-symtab.c: Do not include lambda.h.
9394 * omega.c (gcd): Removed.
9395 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9396 * tree-data-ref.c (print_lambda_vector): Moved here.
9397 (lambda_vector_copy): Same.
9398 (lambda_matrix_copy): Same.
9399 (lambda_matrix_id): Same.
9400 (lambda_vector_first_nz): Same.
9401 (lambda_matrix_row_add): Same.
9402 (lambda_matrix_row_exchange): Same.
9403 (lambda_vector_mult_const): Same.
9404 (lambda_vector_negate): Same.
9405 (lambda_matrix_row_negate): Same.
9406 (lambda_vector_equal): Same.
9407 (lambda_matrix_right_hermite): Same.
9408 * tree-data-ref.h: Do not include lambda.h.
9409 (lambda_vector): Moved here.
9410 (lambda_matrix): Same.
9411 (dependence_level): Same.
9412 (lambda_transform_legal_p): Removed declaration.
9413 (lambda_collect_parameters): Same.
9414 (lambda_compute_access_matrices): Same.
9415 (lambda_vector_gcd): Same.
9416 (lambda_vector_new): Same.
9417 (lambda_vector_clear): Same.
9418 (lambda_vector_lexico_pos): Same.
9419 (lambda_vector_zerop): Same.
9420 (lambda_matrix_new): Same.
9421 * tree-flow.h (least_common_multiple): Removed declaration.
9422 * tree-parloops.c (lambda_trans_matrix): Moved here.
9424 (LTM_ROWSIZE): Same.
9425 (LTM_COLSIZE): Same.
9426 (LTM_DENOMINATOR): Same.
9427 (lambda_trans_matrix_new): Same.
9428 (lambda_matrix_vector_mult): Same.
9429 (lambda_transform_legal_p): Same.
9430 * tree-pass.h (pass_linear_transform): Removed declaration.
9431 * tree-ssa-loop.c (tree_linear_transform): Removed.
9432 (gate_tree_linear_transform): Removed.
9433 (pass_linear_transform): Removed.
9434 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9435 flag_loop_interchange.
9437 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9439 PR tree-optimization/47265
9440 PR tree-optimization/47443
9441 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9442 if name still has some uses.
9444 2011-01-25 Martin Jambor <mjambor@suse.cz>
9446 PR tree-optimization/47382
9447 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9448 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9450 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9452 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9453 sjlj_except_unwind_info.
9455 2011-01-25 Richard Guenther <rguenther@suse.de>
9457 PR tree-optimization/47426
9458 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9459 visible functions results escape.
9461 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9464 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9465 (arm_get_frame_offsets): Use it.
9467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9468 Jakub Jelinek <jakub@redhat.com>
9470 PR tree-optimization/47271
9471 * tree-if-conv.c (bb_postdominates_preds): New.
9472 (if_convertible_bb_p): Call bb_postdominates_preds.
9473 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9474 (predicate_scalar_phi): Call bb_postdominates_preds.
9476 2011-01-25 Nick Clifton <nickc@redhat.com>
9478 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9479 * config/rx/rx.c (rx_function_value): Likewise.
9480 (rx_promote_function_mode): Likewise.
9481 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9482 in order to make it legitimate.
9483 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9484 make sure that the first operand is the same as the result register.
9485 (addsi3_unspec): Delete.
9486 (subdi3): Do not accept immediate operands.
9487 (subdi3_internal): Likewise.
9489 2011-01-25 Jeff Law <law@redhat.com>
9491 PR rtl-optimization/37273
9492 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9493 handle them like argument loads from stack slots. Do not double
9494 count memory for memory constants and argument loads from stack slots.
9496 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9498 PR tree-optimization/47427
9499 PR tree-optimization/47428
9500 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9501 coalesce if the new root var would be TREE_READONLY.
9503 2011-01-25 Richard Guenther <rguenther@suse.de>
9506 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9507 correct type for TBAA.
9509 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9511 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9512 (close_phi_written_to_memory): Call for_each_index with
9513 dr_indices_valid_in_loop.
9515 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9517 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9518 when it is initialized.
9520 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9522 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9523 call to graphite_find_data_references_in_stmt.
9524 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9525 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9526 call to graphite_find_data_references_in_stmt.
9527 (analyze_drs_in_stmts): Same.
9528 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9529 in which the scalar analysis of indices is performed.
9530 (create_data_ref): Same. Update call to dr_analyze_indices.
9531 (find_data_references_in_stmt): Update call to create_data_ref.
9532 (graphite_find_data_references_in_stmt): Same.
9533 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9535 (create_data_ref): Same.
9536 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9537 call to create_data_ref.
9539 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9541 * graphite-sese-to-poly.c (build_poly_scop): Move
9542 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9544 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9546 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9547 VAR_DECL, PARM_DECL, and RESULT_DECL.
9549 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9551 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9553 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9554 that have already been marked as PBB_IS_REDUCTION.
9556 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9558 * graphite-scop-detection.c (same_close_phi_node): New.
9559 (remove_duplicate_close_phi): New.
9560 (make_close_phi_nodes_unique): New.
9561 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9563 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9565 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9566 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9567 of both data references to be the same.
9569 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9571 * graphite-dependences.c (build_lexicographical_constraint): Remove
9573 (build_lexicographical_constraint): Adjust call to
9574 ppl_powerset_is_empty.
9575 (dependence_polyhedron): Same.
9576 (graphite_legal_transform_dr): Same.
9577 (graphite_carried_dependence_level_k): Same.
9578 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9580 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9584 * graphite-sese-to-poly.c
9585 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9586 (close_phi_written_to_memory): New.
9587 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9590 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9592 * doc/install.texi: Update the expected version number of PPL to 0.11.
9593 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9594 #if PPL_VERSION_MINOR < 11.
9596 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9598 * graphite-dependences.c: Include graphite-cloog-util.h.
9599 (new_poly_ddr): Inlined into dependence_polyhedron.
9600 (free_poly_ddr): Moved close by new_poly_ddr.
9601 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9602 Early return NULL when ppl_powerset_is_empty returns true.
9603 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9604 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9605 (graphite_legal_transform_dr): Call new_poly_ddr.
9606 (graphite_carried_dependence_level_k): Same.
9607 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9608 (dot_transformed_deps_stmt_1): Removed.
9609 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9610 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9611 (dot_deps_1): Call dot_deps_2.
9612 * Makefile.in (graphite-dependences.o): Add missing dependence on
9613 graphite-cloog-util.h.
9615 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9617 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9618 (build_lexicographical_constraint): Same.
9619 (dependence_polyhedron_1): Same.
9620 (graphite_legal_transform_dr): Same.
9621 (graphite_carried_dependence_level_k): Same.
9622 * graphite-ppl.c (ppl_powerset_is_empty): New.
9623 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9624 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9626 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9628 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9629 the "a followed by b" relation and document it.
9631 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9633 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9634 iteration when the bag of constraints is empty.
9636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9638 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9642 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9643 nest and two loop depths as parameters.
9644 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9645 lst_perfect_nestify.
9647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9649 * graphite-dependences.c (print_pddr): Call
9650 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9652 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9654 * graphite-ppl.c (debug_gmp_value): New.
9655 * graphite-ppl.h (debug_gmp_value): Declared.
9657 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9659 * doc/install.texi: Document availability of cloog-0.16.
9661 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9663 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9664 invalid postdominance info.
9666 2011-01-24 Jan Hubicka <jh@suse.cz>
9669 * doc/extend.texi (weak pragma): Drop claim that it must
9670 appear before definition.
9671 * varasm.c (merge_weak, declare_weak): Only sanity check
9672 that DECL is not output at a time it is declared weak.
9674 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9676 * machmode.def: Fixed comments.
9678 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9680 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9682 2011-01-24 Paul Koning <ni1d@arrl.net>
9684 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9687 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9690 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9691 (block_info): Add scanned and prev.
9692 (move_or_delete_vzeroupper_2): Return if the basic block
9693 has been scanned and the upper 128bit state is unchanged
9695 (move_or_delete_vzeroupper_1): Return true if the exit
9697 (move_or_delete_vzeroupper): Visit basic blocks using the
9698 work-list based algorithm based on vt_find_locations in
9701 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9703 2011-01-24 Nick Clifton <nickc@redhat.com>
9705 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9706 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9707 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9708 then define __v850e1__.
9709 * doc/invoke.texi: Document -mv850es.
9711 2011-01-24 Richard Henderson <rth@redhat.com>
9713 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9714 compound unordered comparisons.
9715 * config/rx/rx.c (rx_split_fp_compare): Remove.
9716 * config/rx/rx-protos.h: Update.
9717 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9718 (cbranchsf4): Don't call rx_split_fp_compare.
9719 (*cbranchsf4): Use rx_split_cbranch.
9720 (*cmpsf): Don't accept "i" constraint.
9721 (*conditional_branch): Only valid after reload.
9722 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9724 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9727 * config/rs6000/altivec.md (vector constant splitters): Add
9728 support for creating vector single precision constants if -mvsx is
9729 used and we would create the constant using Altivec primitives.
9731 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9732 Richard Sandiford <rdsandiford@googlemail.com>
9734 PR rtl-optimization/47166
9735 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9736 mechanism for PRE_MODIFY and POST_MODIFY.
9737 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9740 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9742 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9744 2011-01-22 Jan Hubicka <jh@suse.cz>
9747 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9749 2011-01-22 Jan Hubicka <jh@suse.cz>
9751 PR tree-optimization/43884
9753 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9754 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9756 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9758 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9759 * config/s390/s390.c (s390_register_move_cost,
9760 s390_memory_move_cost): New.
9761 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9763 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9766 * except.c (sjlj_assign_call_site_values): Move setting the
9767 crtl->uses_eh_lsda flag to ...
9768 (sjlj_mark_call_sites): ... here.
9769 (sjlj_emit_function_enter): Support NULL dispatch label.
9770 (sjlj_build_landing_pads): In a function with no landing pads
9771 that still has must-not-throw regions, generate code to register
9772 a personality function with empty LSDA.
9774 2011-01-21 Richard Henderson <rth@redhat.com>
9776 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9778 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9780 * compare-elim.c: New file.
9781 * Makefile.in (OBJS-common): Add it.
9782 (compare-elim.o): New.
9783 * common.opt (fcompare-elim): New.
9784 * opts.c (default_options_table): Add OPT_fcompare_elim.
9785 * tree-pass.h (pass_compare_elim_after_reload): New.
9786 * passes.c (init_optimization_passes): Add it.
9787 * recog.h: Protect against re-inclusion.
9788 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9789 * doc/invoke.texi (-fcompare-elim): Document it.
9790 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9791 * doc/tm.texi: Rebuild.
9793 2011-01-22 Nick Clifton <nickc@redhat.com>
9795 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9796 rx_split_fp_compare.
9798 2011-01-22 Nick Clifton <nickc@redhat.com>
9800 * config/rx/rx.md (UNSPEC_CONST): New.
9801 (deallocate_and_return): Wrap the amount popped off the stack in
9802 an UNSPEC_CONST in order to stop it being rejected by
9803 -mmax-constant-size.
9804 (pop_and_return): Add a "(return)" rtx.
9805 (call): Drop the immediate operand.
9806 (call_internal): Likewise.
9807 (call_value): Likewise.
9808 (call_value_internal): Likewise.
9809 (sibcall_internal): Likewise.
9810 (sibcall_value_internal): Likewise.
9811 (sibcall): Likewise. Generate an explicit call using
9813 (sibcall_value): Likewise.
9814 (mov<>): FAIL if a constant operand is not legitimate.
9815 (addsi3_unpsec): New pattern.
9817 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9818 (ok_for_max_constant): New function.
9819 (gen_safe_add): New function.
9820 (rx_expand_prologue): Use gen_safe_add.
9821 (rx_expand_epilogue): Likewise.
9822 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9825 2011-01-21 Jeff Law <law@redhat.com>
9827 PR tree-optimization/47053
9828 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9829 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9830 statements are deleted.
9831 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9832 is nonempty, then purge dead edges and cleanup the CFG.
9834 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9838 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9840 * tree-dfa.c (create_var_ann): Mark variable as used.
9842 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9845 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9846 notes from other section in hot/cold partitioning even if
9847 last_action is -3. Increment call_site_base.
9849 PR rtl-optimization/47366
9850 * fwprop.c (forward_propagate_into): Return bool. If
9851 any changes are made, -fnon-call-exceptions is used and
9852 REG_EH_REGION note is present, call purge_dead_edges
9853 and return true if it purged anything.
9854 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9855 any EH edges were purged.
9857 2011-01-21 Jeff Law <law@redhat.com>
9859 PR rtl-optimization/41619
9860 * caller-save.c (setup_save_areas): Break out code to determine
9861 which hard regs are live across calls by examining the reload chains
9862 so that it is always used.
9863 Eliminate code which checked REG_N_CALLS_CROSSED.
9865 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9867 PR tree-optimization/47355
9868 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9869 NOP has non-debug uses beyond PHIs in new_bb.
9871 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9874 * cfgexpand.c (account_used_vars_for_block): Only account vars
9875 that are annotated as used.
9876 (estimated_stack_frame_size): Don't set TREE_USED.
9877 * tree-dfa.c (create_var_ann): Mark variable as used.
9879 2011-01-21 Richard Guenther <rguenther@suse.de>
9882 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9884 2011-01-21 Richard Guenther <rguenther@suse.de>
9886 PR tree-optimization/47365
9887 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9888 (vn_reference_lookup_pieces): Adjust.
9889 (vn_reference_lookup): Likewise.
9890 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9891 (vn_reference_lookup_3): Only look through kills if in
9892 VN_WALKREWRITE mode.
9893 (vn_reference_lookup_pieces): Adjust.
9894 (vn_reference_lookup): Likewise.
9895 (visit_reference_op_load): Likewise.
9896 (visit_reference_op_store): Likewise.
9897 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9898 (compute_avail): Likewise.
9899 (eliminate): Likewise.
9901 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9903 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9904 DECL_IGNORED_P non-reg vars if they are used.
9906 PR tree-optimization/47391
9907 * varpool.c (const_value_known_p): Return false if
9910 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9913 * config/i386/i386.c (ix86_local_alignment): Handle
9914 case for va_list_type_node is nil.
9915 (ix86_canonical_va_list_type): Likewise.
9917 2011-01-21 Alan Modra <amodra@gmail.com>
9919 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9920 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9922 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9924 * config/arm/arm.md (define_attr type): Rename f_load
9925 and f_store to f_fpa_load and f_fpa_store. Update.
9926 (write_conflict): Deal with rename fallout.
9927 (*push_fp_multi): Likewise.
9928 * config/arm/fpa.md (f_load): Use f_fpa_load.
9929 (f_store): Use f_fpa_store.
9930 (*movsf_fpa): Likewise.
9931 (*movdf_fpa): Likewise.
9932 (*movxf_fpa): Likewise.
9933 (*thumb2_movsf_fpa): Likewise.
9934 (*thumb2_movdf_fpa): Likewise.
9935 (*thumb2_movxf_fpa): Likewise.
9936 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9937 f_loadd and f_stored.
9938 (*thumb2_movdi_vfp): Likewise.
9939 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9940 (*thumb2_movsi_vfp): Likewise.
9941 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9942 Use f_loads instead of f_load.
9943 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9945 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9947 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9948 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9949 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9950 (xtensa_mode_dependent_address_p): New function.
9951 (constantpool_address_p): Make static. Change return type to bool.
9952 Change argument type to const_rtx. Use CONST_INT_P predicate.
9954 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9957 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9959 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9962 * cfgexpand.c (expand_debug_expr): Instead of generating
9963 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9966 2011-01-20 Richard Guenther <rguenther@suse.de>
9969 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9970 the pointer operand of MEM_REFs.
9972 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9974 PR tree-optimization/46130
9975 * ipa-split.c (consider_split): If return_bb contains non-virtual
9976 PHIs other than for retval or if split_function would not adjust it,
9979 2011-01-20 Richard Guenther <rguenther@suse.de>
9981 PR tree-optimization/47167
9982 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9983 Revert previous change, only avoid enumeral type changes.
9985 2011-01-19 Mike Stump <mikestump@comcast.net>
9987 * doc/tm.texi.in (BRANCH_COST): Englishify.
9988 * doc/tm.texi (BRANCH_COST): Likewise.
9990 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9993 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9994 (gen_scheduled_generic_parms_dies): New functions.
9995 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9996 generation for the end of CU compilation.
9997 (dwarf2out_finish): Generate template parameters DIEs here.
9999 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10002 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10003 debug bind stmt on merge edges.
10005 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10009 * function.c (instantiate_expr): Instantiate incoming rtl of
10010 implicit arguments, and recurse on VALUE_EXPRs.
10011 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10012 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10014 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10016 * c-parser.c (c_parser_for_statement): Initialize
10017 collection_expression.
10019 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10021 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10023 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10025 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10026 (LINK_SHLIB_SPEC): Don't use %(link_path).
10027 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10029 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10031 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10032 (NO_SHARED_LIB_SUPPORT): Remove.
10033 (LINK_SHLIB_SPEC): Remove one conditional definition.
10035 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10037 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10039 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10040 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10041 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10042 %{call_shared} and conditionals on these options not being passed.
10043 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10046 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10048 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10051 * ipa-split.c: Spelling fixes.
10053 2011-01-19 Richard Henderson <rth@redhat.com>
10055 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10056 (*mulsi3): Likewise.
10058 * longlong.h [__mn10300__] (count_leading_zeros): New.
10059 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10060 [__mn10300__] (add_ssaaaa, subddmmss): New.
10061 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10062 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10064 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10066 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10068 2011-01-19 Richard Henderson <rth@redhat.com>
10070 * config/mn10300/mn10300.md (addsi3_flags): New.
10071 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10072 (subsi3_flags, subc_internal, subdi3): New.
10073 (subdi3_internal, *subdi3_degenerate): New.
10074 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10076 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10077 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10078 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10079 * config/mn10300/mn10300-protos.h: Update.
10080 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10081 (return_ret): Likewise. Rename from return_internal_regs.
10082 (return_internal): Remove.
10084 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10085 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10086 (mn10300_legitimate_constant_p): Likewise.
10087 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10088 (mn10300_frame_size): New.
10089 (mn10300_expand_prologue): Use it.
10090 (mn10300_expand_epilogue): Likewise.
10091 (mn10300_initial_offset): Likewise.
10092 * config/mn10300/mn10300-protos.h: Update.
10093 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10094 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10095 (prologue, epilogue, return_internal): Tidy output code.
10096 (mn10300_store_multiple_operation, return): Likewise.
10097 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10098 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10099 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10100 (load_pic, am33_load_pic): New.
10101 (mn10300_load_pic0, mn10300_load_pic1): New.
10103 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10104 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10105 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10106 (cc_flags_for_mode, cc_flags_for_code): New.
10107 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10108 overflow flag is not valid. Validate that the flags we need
10109 for the comparison are valid.
10110 (mn10300_output_cmp): Remove.
10111 (mn10300_output_add): New.
10112 (mn10300_select_cc_mode): Use cc_flags_for_code.
10113 (mn10300_split_cbranch): New.
10114 (mn10300_match_ccmode): New.
10115 (mn10300_split_and_operand_count): New.
10116 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10118 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10119 (addsi3): ... here. Use mn10300_output_add.
10120 (*addsi3_flags): New.
10121 (*am33_subsi3, *mn10300_subsi3): Merge...
10122 (subsi3): ... here. Use attribute isa.
10123 (*subsi3_flags): New.
10124 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10126 (*am33_andsi3, *mn10300_andsi3): Merge...
10127 (andsi3): ... here.
10128 (*andsi3_flags): New.
10129 (andsi3 splitters): New.
10130 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10131 (iorsi3): ... here.
10132 (*iorsi3_flags): New.
10133 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10134 (xorsi3): ... here.
10135 (*xorsi3_flags): New.
10136 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10137 (one_cmplsi2): ... here.
10138 (*one_cmplsi2_flags): New.
10139 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10140 instead of "dax" in constraints. Use mn10300_split_cbranch.
10141 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10142 use matching constraints to eliminate a self-comparison.
10143 (*integer_conditional_branch): Rename from integer_conditional_branch.
10144 Use int_mode_flags to match CC_REG.
10145 (*cbranchsi4_btst, *btstsi): New.
10146 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10147 mn10300_split_cbranch.
10148 (*am33_cmpsf): Rename from am33_cmpsf.
10149 (*float_conditional_branch): Rename from float_conditional_branch.
10150 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10151 (zero_extendqisi2): ... here.
10152 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10153 (zero_extendhisi2): ... here.
10154 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10155 (extendqisi2): ... here.
10156 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10157 (extendhisi2): ... here.
10158 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10159 (ashlsi3): ... here.
10160 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10161 (lshrsi3): ... here.
10162 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10163 (ashrsi3): ... here.
10164 (consecutive add peephole): Remove.
10165 * config/mn10300/predicates.md (label_ref_operand): New.
10166 (int_mode_flags): New.
10167 (CCZN_comparison_operator): New.
10169 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10170 (throughput_42_latency_43): New reservation.
10171 (mulsidi3, umulsidi3): New expanders.
10172 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10173 the MDR register to allocation; separately allocate the low and
10174 high parts of the DImode result.
10175 (umulsidi3_internal): Similarly.
10176 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10177 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10178 (udivsi3, umodsi3): Remove.
10179 (udivmodsi4, divmodsi4): New expanders.
10180 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10181 (*divmodsi4): Simiarly.
10182 (ext_internal): New.
10184 * config/mn10300/constraints.md ("z"): New constraint.
10185 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10186 (FIXED_REGISTERS): Don't fix MDR.
10187 (CALL_USED_REGSITERS): Reformat nicely.
10188 (REG_ALLOC_ORDER): Add MDR.
10189 (enum regclass): Add MDR_REGS.
10190 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10191 (IRA_COVER_CLASSES): Add MDR_REGS.
10192 (REGNO_REG_CLASS): Handle MDR_REG.
10193 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10194 (mn10300_register_move_cost): Likewise.
10195 * config/mn10300/mn10300.md (MDR_REG): New.
10196 (*movsi_internal): Handle moves to/from MDR_REGS.
10198 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10200 (mn10300_secondary_reload): Tidy combination reload classes.
10201 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10202 addresses for AM33. Allow symbolic offsets for reg+imm.
10203 (mn10300_regno_in_class_p): New.
10204 (mn10300_legitimize_reload_address): New.
10205 * config/mn10300/mn10300.h (enum reg_class): Remove
10206 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10207 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10208 SP_OR_GENERAL_REGS.
10209 (REG_CLASS_NAMES): Update to match.
10210 (REG_CLASS_CONTENTS): Likewise.
10211 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10212 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10213 (REGNO_IN_RANGE_P): Remove.
10214 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10215 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10216 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10217 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10218 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10219 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10220 (REGNO_GENERAL_P): New.
10221 (HAVE_POST_MODIFY_DISP): New.
10222 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10223 (LEGITIMIZE_RELOAD_ADDRESS): New.
10224 * config/mn10300/mn10300-protos.h: Update.
10226 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10227 DATA_REGS for AM33 stack-pointer destination.
10228 (mn10300_preferred_output_reload_class): Likewise.
10229 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10230 into a form appropriate for ...
10231 (TARGET_SECONDARY_RELOAD): New.
10232 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10233 * config/mn10300/mn10300-protos.h: Update.
10234 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10235 reload_insi; use the "A" constraint for the scratch; handle AM33
10236 moves of sp to non-address registers.
10238 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10239 (*movqi_internal): ... here.
10240 (*am33_movhi, *mn10300_movhi): Merge into...
10241 (*movhi_internal): ... here.
10242 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10243 as the source/destination of moves from/to SP.
10244 (movsf): Only allow for AM33-2.
10245 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10246 any integer constant constraint. Only allow for AM33-2. Tidy
10247 all of the alternative outputs.
10248 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10249 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10251 (udivsi3, umodsi3): New patterns for MN103 only.
10253 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10255 * doc/tm.texi.in: Spell out that a lack of register class unions
10257 * doc/tm.texi: Regenerate.
10259 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10261 PR rtl-optimization/47337
10262 * dce.c (check_argument_store): New function.
10263 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10265 PR tree-optimization/47290
10266 * tree-eh.c (infinite_empty_loop_p): New function.
10267 (cleanup_empty_eh): Use it.
10269 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10272 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10273 (a64_expand_widen_sum): Ditto.
10274 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10275 (vec_extract_evenodd_help): Ditto.
10276 (vec_extract_evenv4hi): Ditto.
10277 (vec_extract_oddv4hi): Ditto.
10278 (vec_extract_evenv2si): Ditto.
10279 (vec_extract_oddv2si): Ditto.
10280 (vec_extract_evenv2sf): Ditto.
10281 (vec_extract_oddv2sf): Ditto.
10282 (vec_pack_trunc_v4hi: Ditto.
10283 (vec_pack_trunc_v2si): Ditto.
10284 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10285 (vec_interleave_highv8qi): Ditto.
10287 (vec_extract_oddv8qi): Ditto.
10288 (vec_interleave_lowv4hi): Ditto.
10289 (vec_interleave_highv4hi): Ditto.
10290 (vec_interleave_lowv2si): Ditto.
10291 (vec_interleave_highv2si): Ditto.
10293 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10295 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10296 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10297 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10298 (pa_c_mode_for_suffix): New.
10299 (TARGET_EXPAND_BUILTIN): Define.
10300 (TARGET_C_MODE_FOR_SUFFIX): Define.
10301 (pa_builtins): Define.
10302 (pa_init_builtins): Register __float128 type and init new support
10304 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10305 * config/pa/quadlib.c (_U_Qfcopysign): New.
10307 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10309 PR middle-end/46894
10310 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10311 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10314 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10316 PR tree-optimization/47179
10317 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10318 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10320 2011-01-18 Richard Guenther <rguenther@suse.de>
10322 PR rtl-optimization/47216
10323 * emit-rtl.c: Include tree-flow.h.
10324 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10325 of replicating it with different semantics.
10326 * Makefile.in (emit-rtl.o): Adjust.
10328 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10330 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10331 (cortex_a9_dp): Handle neon types correctly.
10333 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10335 PR rtl-optimization/47299
10336 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10337 subtarget. Use normal multiplication if both operands are constants.
10338 * expmed.c (expand_widening_mult): Don't try to optimize constant
10339 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10342 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10344 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10345 spacing after 'e.g.', typos, comma, hyphenation.
10347 2011-01-17 Richard Henderson <rth@redhat.com>
10349 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10350 (rx_restricted_mem_operand): New.
10351 (rx_shift_operand): Use register_operand.
10352 (rx_source_operand, rx_compare_operand): Likewise.
10353 * config/rx/rx.md (addsi3_flags): New expander.
10354 (adddi3): Rewrite as expander.
10355 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10356 (subsi3_flags): New expander.
10357 (subdi3): Rewrite as expander.
10358 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10360 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10361 (rx_init_builtins): Remove sat builtin.
10362 (rx_expand_builtin): Likewise.
10363 * config/rx/rx.md (ssaddsi3): New.
10364 (*sat): Rename from sat. Represent the CC_REG input.
10366 * config/rx/predicates.md (rshift_operator): New.
10367 * config/rx/rx.c (rx_expand_insv): Remove.
10368 * config/rx/rx-protos.h: Update.
10369 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10370 operand to the canonical position.
10371 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10372 (*bitclr, *bitclr_in_memory): Similarly.
10373 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10374 (insv): Retain the zero_extract in the expansion.
10376 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10377 (bswaphi2, bitinvert, revw): Likewise.
10379 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10380 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10381 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10382 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10383 (bitset, bitset_in_memory): Likewise.
10384 (bitinvert, bitinvert_in_memory): Likewise.
10385 (bitclr, bitclr_in_memory): Likewise.
10386 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10387 (rx_strend, rx_cmpstrn): Likewise.
10388 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10389 (bitop peep2 patterns): Remove.
10391 * config/rx/rx.c (rx_match_ccmode): New.
10392 * config/rx/rx-protos.h: Update.
10393 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10394 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10395 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10396 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10397 (fix_truncsfsi2, floatsisf2): Likewise.
10398 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10399 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10400 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10401 (*subsi3_flags, *xorsi3_flags): New.
10403 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10405 * config/rx/rx.c (rx_print_operand): Remove workaround for
10406 unsplit comparison operations.
10408 * config/rx/rx.md (movsicc): Split after reload.
10409 (*movsicc): Merge *movsieq and *movsine via match_operator.
10410 (*stcc): New pattern.
10412 * config/rx/rx.c (rx_float_compare_mode): Remove.
10413 * config/rx/rx.h (rx_float_compare_mode): Remove.
10414 * config/rx/rx.md (cstoresi4): Split after reload.
10415 (*sccc): New pattern.
10417 * config/rx/predicates.md (label_ref_operand): New.
10418 (rx_z_comparison_operator): New.
10419 (rx_zs_comparison_operator): New.
10420 (rx_fp_comparison_operator): New.
10421 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10422 Validate that the flags are set properly for the comparison.
10423 (rx_gen_cond_branch_template): Remove.
10424 (rx_cc_modes_compatible): Remove.
10425 (mode_from_flags): New.
10426 (flags_from_code): Rename from flags_needed_for_conditional.
10427 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10428 (rx_select_cc_mode): Likewise.
10429 (rx_split_fp_compare): New.
10430 (rx_split_cbranch): New.
10431 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10432 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10433 (*cbranchsf4): Similarly.
10434 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10435 match_operator and rx_split_cbranch.
10436 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10437 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10438 (*cmpsi): Rename from cmpsi.
10439 (*tstsi): Rename from tstsi.
10440 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10441 (*conditional_branch): Rename from conditional_branch.
10442 (*reveresed_conditional_branch): Remove.
10443 (b<code>): Remove expander.
10444 * config/rx/rx-protos.h: Update.
10446 * config/rx/rx.c (rx_compare_redundant): Remove.
10447 * config/rx/rx.md (cmpsi): Don't use it.
10448 * config/rx/rx-protos.h: Update.
10450 * config/rx/rx-modes.def (CC_F): New mode.
10451 * config/rx/rx.c (rx_select_cc_mode): New.
10452 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10453 * config/rx/rx-protos.h: Update.
10455 2011-01-17 Richard Henderson <rth@redhat.com>
10457 * except.c (dump_eh_tree): Fix stray ; after for statement.
10459 2011-01-17 Richard Guenther <rguenther@suse.de>
10461 PR tree-optimization/47313
10462 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10463 handling before copying the body. Properly deal with
10464 by-reference result in SSA form.
10466 2011-01-17 Ian Lance Taylor <iant@google.com>
10469 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10470 (struct_value_alias_set): Don't define.
10471 (sparc_option_override): Don't set sparc_sr_alias_set and
10472 struct_value_alias_set.
10473 (save_or_restore_regs): Use gen_frame_mem rather than calling
10475 (sparc_struct_value_rtx): Likewise.
10477 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10480 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10481 (_mm_maskstore_pd): Likewise.
10482 (_mm_maskload_ps): Likewise.
10483 (_mm_maskstore_ps): Likewise.
10484 (_mm256_maskload_pd): Change mask to __m256i.
10485 (_mm256_maskstore_pd): Likewise.
10486 (_mm256_maskload_ps): Likewise.
10487 (_mm256_maskstore_ps): Likewise.
10489 * config/i386/i386-builtin-types.def: Updated.
10490 (ix86_expand_special_args_builtin): Likewise.
10492 * config/i386/i386.c (bdesc_special_args): Update
10493 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10494 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10495 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10496 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10498 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10499 Use <avxpermvecmode> on mask register.
10500 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10502 2011-01-17 Olivier Hainque <hainque@adacore.com>
10503 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10504 Eric Botcazou <ebotcazou@adacore.com>
10507 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10508 if <= USHRT_MAX in 32-bit mode.
10510 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10512 * doc/install.texi (Configuration, Specific): Wrap long
10513 lines in examples. Allow line wrapping in long options
10514 and URLs where beneficial for PDF output.
10516 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10518 * config/mips/mips.c (mips_classify_symbol): Don't return
10519 SYMBOL_PC_RELATIVE for nonlocal labels.
10521 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10523 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10525 2011-01-15 Jan Hubicka <jh@suse.cz>
10527 PR tree-optimization/47276
10528 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10529 declarations as needed.
10531 2011-01-15 Martin Jambor <mjambor@suse.cz>
10533 * common.opt (fdevirtualize): New flag.
10534 * doc/invoke.texi (Option Summary): Document it.
10535 * opts.c (default_options_table): Add devirtualize flag.
10536 * ipa-prop.c (detect_type_change): Return immediately if
10537 devirtualize flag is not set.
10538 (detect_type_change_ssa): Likewise.
10539 (compute_known_type_jump_func): Likewise.
10540 (ipa_analyze_virtual_call_uses): Likewise.
10542 2011-01-14 Martin Jambor <mjambor@suse.cz>
10544 PR tree-optimization/45934
10545 PR tree-optimization/46302
10546 * ipa-prop.c (type_change_info): New type.
10547 (stmt_may_be_vtbl_ptr_store): New function.
10548 (check_stmt_for_type_change): Likewise.
10549 (detect_type_change): Likewise.
10550 (detect_type_change_ssa): Likewise.
10551 (compute_complex_assign_jump_func): Check for dynamic type change.
10552 (compute_complex_ancestor_jump_func): Likewise.
10553 (compute_known_type_jump_func): Likewise.
10554 (compute_scalar_jump_functions): Likewise.
10555 (ipa_analyze_virtual_call_uses): Likewise.
10556 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10558 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10560 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10561 * config/i386/i386.opt (msse5): New Alias.
10563 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10565 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10566 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10567 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10568 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10570 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10572 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10574 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10575 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10576 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10577 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10579 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10581 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10583 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10585 2011-01-14 Mike Stump <mikestump@comcast.net>
10587 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10588 * config/fr30/fr30.md: Likweise
10589 (movsi_push): Likewise.
10590 (movsi_pop): Likewise.
10591 (enter_func): Likewise.
10592 * config/moxie/moxie.md (movsi_push): Likewise.
10593 (movsi_pop): Likewise.
10595 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10597 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10598 %{no_archive} %{exact_version}.
10599 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10600 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10601 %{no_archive} %{exact_version}.
10602 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10603 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10604 * config/mips/vxworks.h: Likewise.
10606 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10608 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10610 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10612 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10613 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10615 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10617 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10620 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10622 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10624 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10625 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10627 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10628 Don't handle -shlib.
10630 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10632 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10633 (CC1_SPEC): Don't handle -profile.
10635 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10637 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10638 * config/mips/mips.h (CC1_SPEC): Likewise.
10640 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10642 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10643 * config/mips/mips.h (CC1_SPEC): Likewise.
10645 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10647 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10648 * config/m32r/linux.h (LINK_SPEC): Likewise.
10649 * config/mips/linux.h (LINK_SPEC): Likewise.
10650 * config/mips/linux64.h (LINK_SPEC): Likewise.
10651 * config/sparc/linux.h (LINK_SPEC): Likewise.
10652 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10653 LINK_SPEC): Likewise.
10654 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10656 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10658 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10660 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10662 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10664 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10665 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10667 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10669 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10671 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10673 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10674 supports -Bstatic/-Bdynamic.
10675 * configure: Regenerate.
10677 2011-01-14 Jan Hubicka <jh@suse.cz>
10678 Jack Howarth <howarth@bromo.med.uc.edu>
10681 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10682 when checking debug_info_level. Test write_symbols instead of
10683 debug_hooks->var_location when setting flag_var_tracking_uninit.
10685 2011-01-14 Richard Guenther <rguenther@suse.de>
10687 PR tree-optimization/47179
10688 * target.def (ref_may_alias_errno): New target hook.
10689 * targhooks.h (default_ref_may_alias_errno): Declare.
10690 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10691 (default_ref_may_alias_errno): New function.
10692 * target.h (struct ao_ref_s): Declare.
10693 * tree-ssa-alias.c: Include target.h.
10694 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10695 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10696 (targhooks.o): Likewise.
10697 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10698 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10700 2011-01-14 Richard Guenther <rguenther@suse.de>
10702 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10704 2011-01-14 Richard Guenther <rguenther@suse.de>
10706 PR tree-optimization/47280
10707 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10708 return CFG changes.
10709 (tree_ssa_forward_propagate_single_use_vars): Deal with
10710 CFG changes from associate_plusminus.
10712 2011-01-14 Richard Guenther <rguenther@suse.de>
10714 PR middle-end/47281
10716 2011-01-11 Richard Guenther <rguenther@suse.de>
10718 PR tree-optimization/46076
10719 * tree-ssa.c (useless_type_conversion_p): Conversions from
10720 unprototyped to empty argument list function types are useless.
10722 2011-01-14 Richard Guenther <rguenther@suse.de>
10724 PR tree-optimization/47286
10725 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10727 2011-01-14 Martin Jambor <mjambor@suse.cz>
10729 PR middle-end/46823
10730 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10732 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10734 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10735 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10736 * config/xtensa/xtensa.c (xtensa_libcall_value,
10737 xtensa_function_value_regno_p): New functions.
10738 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10740 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10743 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10745 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10746 New function prototype.
10747 * config/i386/winnt.c (i386_pe_assemble_visibility):
10748 Warn only if attribute was specified by user.
10750 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10753 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10755 (floatunsdidf2_fcfidu): Ditto.
10757 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10759 * config/s390/s390.c (print_operand_address): Replace 'error' with
10760 'output_operand_lossage'.
10761 (print_operand): Likewise.
10763 2011-01-13 Jeff Law <law@redhat.com>
10765 PR rtl-optimization/39077
10766 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10767 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10768 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10769 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10770 * gcse.c (prune_insertions_deletions): New function.
10771 (compute_pre_data): Use it.
10773 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10776 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10778 (prune_unused_types_mark): Use it.
10780 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10782 PR rtl-optimization/45352
10783 * sel-sched.c: Update copyright years.
10784 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10785 in the advancing loop when we have issued issue_rate insns.
10787 2011-01-12 Richard Henderson <rth@redhat.com>
10789 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10790 (TARGET_MD_ASM_CLOBBERS): New.
10792 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10793 (TARGET_DELEGITIMIZE_ADDRESS): New.
10795 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10796 (clzsi2, *bsch): New patterns.
10798 * config/mn10300/mn10300.md (INT): New mode iterator.
10799 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10801 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10802 flag_split_wide_types.
10804 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10805 (mn10300_trampoline_init): Rewrite without a template, an immediate
10806 load and a direct branch.
10807 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10809 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10811 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10812 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10813 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10814 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10816 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10819 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10822 2011-01-12 Jan Hubicka <jh@suse.cz>
10825 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10826 (PLUGIN_COND_CLOSE): New macro.
10827 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10829 2011-01-12 Richard Guenther <rguenther@suse.de>
10832 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10833 register variables in a MEM_REF.
10835 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10837 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10838 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10839 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10840 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10841 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10842 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10843 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10844 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10845 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10846 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10847 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10848 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10849 * config/gnu-user.h: New. Copied from linux.h.
10850 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10851 GNU_USER_TARGET_STARTFILE_SPEC.
10852 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10853 GNU_USER_TARGET_ENDFILE_SPEC.
10854 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10855 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10856 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10857 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10858 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10859 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10860 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10861 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10862 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10863 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10864 * config/arm/linux-eabi.h (CC1_SPEC): Use
10865 GNU_USER_TARGET_CC1_SPEC.
10866 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10867 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10868 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10869 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10870 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10871 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10872 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10873 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10875 2011-01-12 Richard Guenther <rguenther@suse.de>
10878 * doc/invoke.texi (ffast-math): Document it is turned on
10881 2011-01-12 Jan Hubicka <jh@suse.cz>
10883 PR tree-optimization/47233
10884 * opts.c (common_handle_option): Disable ipa-reference with profile
10887 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10889 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10892 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10894 * c-parser.c (c_lex_one_token): Updated and reindented some
10895 comments. No changes in code.
10897 2011-01-11 Ian Lance Taylor <iant@google.com>
10899 * godump.c (go_output_var): Don't output the variable if there is
10900 already a type with the same name.
10902 2011-01-11 Ian Lance Taylor <iant@google.com>
10904 * godump.c (go_format_type): Don't generate float80.
10906 2011-01-11 Richard Henderson <rth@redhat.com>
10908 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10909 declaration. Rewrite for both speed and size.
10910 (mn10300_address_cost_1): Remove.
10911 (mn10300_register_move_cost): New.
10912 (mn10300_memory_move_cost): New.
10913 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10914 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10915 extensions, shifts, BSWAP, CLZ.
10916 (mn10300_wide_const_load_uses_clr): Remove.
10917 (TARGET_REGISTER_MOVE_COST): New.
10918 (TARGET_MEMORY_MOVE_COST): New.
10919 * config/mn10300/mn10300-protos.h: Update.
10920 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10922 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10923 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10924 * config/mn10300/mn10300-protos.h: Update.
10925 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10926 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10927 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10928 (*test_int_bitfield, *test_byte_bitfield): Remove.
10929 (*bit_test, *subreg_bit_test): Remove.
10930 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10932 * config/mn10300/constraints.md ("c"): Rename from "A".
10933 ("A", "D"): New constraint letters.
10934 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10935 (fmssf4, fnmasf4, fnmssf4): Likewise.
10937 * config/mn10300/mn10300.md (isa): New attribute.
10938 (enabled): New attribute.
10940 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10941 (abssf2, negsf2): Define only for hardware fp.
10942 (sqrtsf2): Reformat.
10943 (addsf3, subsf3, mulsf3): Merge expander and insn.
10945 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10946 (DEBUGGER_AUTO_OFFSET): Remove.
10947 (DEBUGGER_ARG_OFFSET): Remove.
10949 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10950 Emit register stores with the same offsets as the hardware.
10951 (mn10300_store_multiple_operation): Don't check that the register
10952 save offsets are monotonic.
10953 * config/mn10300/mn10300-protos.h: Update.
10955 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10957 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10958 in terms of the value on the stack, not the MDR register.
10960 2011-01-11 Jan Hubicka <jh@suse.cz>
10964 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10965 (symbol_alias_set_destroy, symbol_alias_set_contains,
10966 propagate_aliases_backward): Declare.
10967 * lto-streamer-out.c (struct sets): New sturcture.
10968 (trivally_defined_alias): New function.
10969 (output_alias_pair_p): Rewrite.
10970 (output_unreferenced_globals): Fix output of alias pairs.
10971 (produce_symtab): Likewise.
10972 * ipa.c (function_and_variable_visibility): Set weak alias destination
10974 * varasm.c (symbol_alias_set_t): Remove.
10975 (symbol_alias_set_destroy): Export.
10976 (propagate_aliases_forward, propagate_aliases_backward): New functions
10978 (compute_visible_aliases): ... this one; remove.
10979 (trivially_visible_alias): New
10980 (trivially_defined_alias): New.
10981 (remove_unreachable_alias_pairs): Rewrite.
10982 (finish_aliases_1): Reorganize code checking if alias is defined.
10983 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10986 2011-01-11 Richard Guenther <rguenther@suse.de>
10988 PR tree-optimization/46076
10989 * tree-ssa.c (useless_type_conversion_p): Conversions from
10990 unprototyped to empty argument list function types are useless.
10992 2011-01-11 Richard Guenther <rguenther@suse.de>
10994 PR middle-end/45235
10995 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10996 volatile MEMs as MEM_READONLY_P.
10998 2011-01-11 Richard Guenther <rguenther@suse.de>
11000 PR tree-optimization/47239
11001 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11003 2011-01-11 Jeff Law <law@redhat.com>
11005 PR tree-optimization/47086
11006 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11007 IVs from statements that might throw.
11009 2011-01-10 Jan Hubicka <jh@suse.cz>
11012 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11014 2011-01-10 Jan Hubicka <jh@suse.cz>
11017 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11018 when correcting profile.
11020 2011-01-10 Jan Hubicka <jh@suse.cz>
11023 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11024 DECL_FINI_PRIORITY.
11025 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11026 Restore DECL_FINI_PRIORITY.
11028 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11030 * doc/gimple.texi: Fix quoting of multi-word return values in
11031 @deftypefn statements. Ensure presence of return value. Wrap
11032 overlong @deftypefn lines.
11033 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11034 descriptions of removed functions.
11035 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11036 of multi-word return value in @deftypefn statement.
11038 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11040 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11041 (Conditional Expressions, Logical Operators)
11042 (Statement and operand traversals): Do not indent smallexample
11043 code. Fix duplicate function argument in example.
11045 2011-01-10 Jeff Law <law@redhat.com>
11047 PR tree-optimization/47141
11048 * ipa-split.c (split_function): Handle case where we are
11049 returning a value and the return block has a virtual operand phi.
11051 2011-01-10 Jan Hubicka <jh@suse.cz>
11053 PR tree-optimization/47234
11054 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11055 (pass_feedback_split_functions): Declare.
11056 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11058 * ipa-split.c (gate_split_functions): Update comments; disable
11059 split-functions for profile_arc_flag and branch_probabilities.
11060 (gate_feedback_split_functions): New function.
11061 (execute_feedback_split_functions): New function.
11062 (pass_feedback_split_functions): New global var.
11064 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11067 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11068 calling gimple_call_set_cannot_inline.
11070 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11072 * config/darwin-sections.def: Remove unused section.
11074 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11077 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11079 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11082 * c-parser.c (c_parser_declaration_or_fndef): Improved
11085 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11087 * config/i386/winnt.c (i386_pe_start_function): Make sure
11088 to switch back to function's section.
11090 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11094 * plugin.c: Move include of dlfcn.h from here...
11095 * system.h: ... to here.
11097 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11099 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11101 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11102 two extra empty pages in PDF output.
11104 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11107 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11108 for error recovery purposes behave as if it was not specified so
11109 that the default type is usd.
11111 2011-01-07 Jan Hubicka <jh@suse.cz>
11113 PR tree-optmization/46469
11114 * ipa.c (function_and_variable_visibility): Clear needed flags on
11115 nodes with external decls; handle weakrefs merging correctly.
11117 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11119 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11122 2011-01-07 Jan Hubicka <jh@suse.cz>
11124 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11125 and no longer claim that gold is required for linker plugin.
11126 * configure: Regenerate.
11127 * gcc.c (PLUGIN_COND): New macro.
11128 (LINK_COMMAND_SPEC): Use it.
11129 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11130 * config.in (HAVE_LTO_PLUGIN): New.
11131 * configure.ac (--with-lto-plugin): New parameter; autodetect
11134 2011-01-07 Jan Hubicka <jh@suse.cz>
11136 PR tree-optimization/46367
11137 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11138 when we can update original.
11139 (cgraph_mark_inline_edge): Sanity check.
11140 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11142 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11144 * config/spu/spu.h (ASM_COMMENT_START): Define.
11146 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11149 * gcc.c (%>S): New.
11150 (SWITCH_KEEP_FOR_GCC): Likewise.
11151 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11152 (do_spec_1): Handle "%>".
11154 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11156 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11159 * config/i386/i386.c (ix86_delegitimize_address): If
11160 simplify_gen_subreg fails, return orig_x.
11163 * value-prof.c (gimple_stringop_fixed_value): Handle
11164 lhs of the call properly.
11166 2011-01-07 Jan Hubicka <jh@suse.cz>
11169 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11171 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11173 * target.def (function_switched_text_sections): New hook.
11174 * doc/tm.texi: Regenerated.
11175 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11176 * final.c (default_function_switched_text_sections): New.
11177 (final_scan_insn): Call function_switched_text_sections when a
11178 mid-function section change occurs.
11179 * output.h (default_function_switched_text_sections): Declare.
11180 * config/darwin-protos.h (darwin_function_switched_text_sections):
11182 * config/darwin.c (darwin_function_switched_text_sections): New.
11183 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11185 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11187 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11188 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11189 the secondary code fragment when outputting for DWARF == 2.
11191 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11193 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11194 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11196 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11197 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11199 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11202 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11203 when it is not empty.
11205 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11208 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11209 (case ${target}): Add btver1.
11210 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11211 -march=native recognize btver1 processors.
11212 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11213 btver1 def_and_undef
11214 * config/i386/i386.c (struct processor_costs btver1_cost): New
11216 (m_BTVER1): New definition.
11217 (m_AMD_MULTIPLE): Includes m_BTVER1.
11218 (initial_ix86_tune_features): Add btver1 tune.
11219 (processor_target_table): Add btver1 entry.
11220 (static const char *const cpu_names): Add btver1 entry.
11221 (software_prefetching_beneficial_p): Add btver1.
11222 (ix86_option_override_internal): Add btver1 instruction sets.
11223 (ix86_issue_rate): Add btver1.
11224 (ix86_adjust_cost): Add btver1.
11225 * config/i386/i386.h (TARGET_BTVER1): New definition.
11226 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11227 (enum processor_type): Add PROCESSOR_BTVER1.
11228 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11230 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11233 * config/i386/i386.c (legitimize_tls_address)
11234 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11235 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11236 (tls_initial_exec_64_sun): New pattern.
11238 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11240 * doc/invoke.texi (Overall Options): Improve wording and markup
11241 of the description of -wrapper.
11243 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11245 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11246 rdynamic, threads): New Driver options.
11248 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11251 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11252 if coming from .tdata.
11253 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11255 2011-01-06 Jan Hubicka <jh@suse.cz>
11258 * collect2.c (main): Do not enable LTOmode when plugin is active.
11260 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11263 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11264 --version output if supported.
11265 * configure: Regenerate.
11267 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11269 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11272 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11275 * c-convert.c (convert): When converting a complex expression
11276 other than COMPLEX_EXPR to a different complex type, ensure
11277 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11278 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11279 when converting COMPLEX_TYPE.
11281 2011-01-06 Ira Rosen <irar@il.ibm.com>
11283 PR tree-optimization/47139
11284 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11285 only the last reduction value is used outside the loop. Update
11288 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11290 * config/rtems.opt: New.
11291 * config.gcc (*-*-rtems*): Use rtems.opt.
11293 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11295 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11296 processors do not support 3DNow instructions.
11298 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11300 * config/spu/spu.c (spu_option_override): Set parameter
11301 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11303 2011-01-05 Jan Hubicka <jh@suse.cz>
11305 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11306 at the command line.
11308 2011-01-05 Martin Jambor <mjambor@suse.cz>
11311 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11312 deltas on streamed outgoing edges.
11313 (output_node_opt_summary): Output info for outgoing edges only when
11314 the node is in new parameter set.
11315 (output_cgraph_opt_summary): New parameter set, passed to the two
11316 aforementioned functions. Update its forward declaration and its
11319 2011-01-05 Tom Tromey <tromey@redhat.com>
11321 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11322 operator to c_finish_omp_atomic.
11323 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11324 (build_unary_op): Update.
11325 (build_modify_expr): Update.
11326 (build_asm_expr): Update.
11328 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11330 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11331 newly inserted insns.
11332 (pad_bb): Likewise.
11333 (spu_emit_branch_hint): Likewise.
11334 (insert_hbrp_for_ilb_runout): Likewise.
11335 (spu_machine_dependent_reorg): Call df_finish_pass after
11336 schedule_insns returns.
11338 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11340 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11342 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11344 PR tree-optimization/47005
11345 * tree-sra.c (struct access): Add 'non_addressable' bit.
11346 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11347 (decide_one_param_reduction): Return 0 if the parameter is passed by
11348 reference and one of the accesses in the group is non_addressable.
11350 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11352 PR tree-optimization/47056
11353 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11354 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11355 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11357 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11359 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11360 initializer. Skip view conversions from aggregate types.
11362 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11365 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11367 2011-01-04 Philipp Thomas <pth@suse.de>
11369 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11372 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11374 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11375 on empty epilogue sequences.
11377 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11379 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11380 non-static): New Driver options.
11382 2011-01-04 Jie Zhang <jie@codesourcery.com>
11385 * gcc.c (default_compilers[]): Set combinable field to 0
11386 for all assembly languages.
11388 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11390 * config/mips/loongson3a.md: New file.
11391 * config/mips/mips.md: Include loongson3a.md.
11392 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11395 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11397 PR middle-end/47017
11398 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11399 instead of convert_memory_address_addr_space on the base expression.
11401 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11403 * config/spu/spu.c (spu_option_override): Update error text
11404 for bad -march= / -mtune= values.
11406 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11408 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11409 if branch-hint optimization will be performed.
11411 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11413 PR tree-optimization/47148
11414 * ipa-split.c (split_function): Convert arguments to
11415 DECL_ARG_TYPE if possible.
11417 PR tree-optimization/47155
11418 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11419 when computing uns.
11421 PR rtl-optimization/47157
11422 * combine.c (try_combine): If undobuf.other_insn becomes
11423 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11424 and set *new_direct_jump_p too.
11426 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11428 PR tree-optimization/47021
11429 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11431 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11433 * gcc.c (process_command): Update copyright notice dates.
11434 * gcov.c (print_version): Likewise.
11435 * gcov-dump.c (print_version): Likewise.
11436 * mips-tfile.c (main): Likewise.
11437 * mips-tdump.c (main): Likewise.
11439 2011-01-03 Martin Jambor <mjambor@suse.cz>
11441 PR tree-optimization/46801
11442 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11443 aggregate fields start at byte boundary instead of the bit-field flag.
11445 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11448 * gcc.c (main): Revert revision 168407.
11450 2011-01-03 Martin Jambor <mjambor@suse.cz>
11452 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11454 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11456 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11457 vector optab to expand vector/scalar shift, update gimple to vector.
11459 2011-01-03 Martin Jambor <mjambor@suse.cz>
11461 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11464 2011-01-03 Martin Jambor <mjambor@suse.cz>
11466 PR tree-optimization/46984
11467 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11469 (cgraph_create_indirect_edge): Fixed line length.
11470 (cgraph_indirect_call_info): Declare.
11471 (cgraph_make_edge_direct) Update declaration.
11472 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11473 (cgraph_create_indirect_edge): Use it.
11474 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11476 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11477 the new thunk_delta representation.
11478 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11480 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11481 (ipa_read_indirect_edge_info): Likewise.
11482 * lto-cgraph.c (output_edge_opt_summary): New function.
11483 (output_node_opt_summary): Call it on all outgoing edges.
11484 (input_edge_opt_summary): New function.
11485 (input_node_opt_summary): Call it on all outgoing edges.
11487 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11490 * gcc.c (main): Don't check have_o when settting combine_inputs.
11492 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11494 * regrename.c: Add general comment describing the pass.
11495 (struct du_head): Remove 'length' field.
11496 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11497 (regrename_optimize): Do not sort chains. Rework comments, add others.
11498 Force renaming to the preferred class (if any) in the first pass and do
11499 not consider registers that belong to it in the second pass.
11500 (create_new_chain): Do not set 'length' field.
11501 (scan_rtx_reg): Likewise.
11503 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11505 PR tree-optimization/47140
11506 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11507 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11508 to bit_value_binop.
11510 PR rtl-optimization/47028
11511 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11512 parm_birth_insn instead of at the beginning of first bb.
11514 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11516 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11517 Remove the word "see" before "@pxref".
11518 * doc/rtl.texi: Remove the word "see" before "@pxref".
11520 2011-01-01 Jan Hubicka <jh@suse.cz>
11522 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11525 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11528 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11531 Copyright (C) 2011 Free Software Foundation, Inc.
11533 Copying and distribution of this file, with or without modification,
11534 are permitted in any medium without royalty provided the copyright
11535 notice and this notice are preserved.