1 2011-04-21 Richard Guenther <rguenther@suse.de>
3 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6 2011-04-21 Richard Guenther <rguenther@suse.de>
8 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10 Use DECL_P, not SSA_VAR_P.
11 (ptr_derefs_may_alias_p): Likewise.
12 (ptr_deref_may_alias_ref_p_1): Likewise.
13 (decl_refs_may_alias_p): Likewise.
14 (refs_may_alias_p_1): Likewise.
15 (ref_maybe_used_by_call_p_1): Likewise.
16 (call_may_clobber_ref_p_1): Likewise.
17 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18 are either MEM_REF or TARGET_MEM_REF.
19 (indirect_refs_may_alias_p): Likewise.
20 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
21 for MEM_EXPR of indirect calls.
23 2011-04-21 Tristan Gingold <gingold@adacore.com>
25 * vmsdbgout.c (write_srccorr): Compute file length from the string.
26 (dst_file_info_struct): Remove flen field.
27 (lookup_filename): Remove code that set flen field.
29 2011-04-21 Tristan Gingold <gingold@adacore.com>
31 * config/ia64/ia64.c (ia64_start_function): Add a guard.
33 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
36 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
37 vec_extract and vec_concat for non-SSE4_1 targets.
39 2011-04-21 Richard Guenther <rguenther@suse.de>
41 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
44 2011-04-21 Joseph Myers <joseph@codesourcery.com>
46 * config/i386/cygming.h (union tree_node, TREE): Don't define or
48 (FILE): Don't undefine.
50 2011-04-21 Joseph Myers <joseph@codesourcery.com>
52 * config/alpha/alpha.c (struct machine_function): Use rtx, not
54 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
56 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
57 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
58 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
60 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
61 definitions where used.
62 * config/microblaze/microblaze.h (struct microblaze_args): Use
63 rtx, not struct rtx_def *.
64 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
66 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
67 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
68 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
70 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
72 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
74 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
76 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
78 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
79 operand_equal_p to compare DR_BASE_ADDRESSes.
80 (vect_check_interleaving): Likewise.
82 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
85 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
86 for all Neon struct constants.
88 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
90 * target.def (legitimate_constant_p): New hook.
91 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
92 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
93 * doc/tm.texi: Regenerate.
94 * hooks.h (hook_bool_mode_rtx_true): Declare.
95 * hooks.c (hook_bool_mode_rtx_true): Define.
96 * system.h (LEGITIMATE_CONSTANT_P): Poison.
97 * calls.c (precompute_register_parameters): Replace uses of
98 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
99 (emit_library_call_value_1): Likewise.
100 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
101 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
102 * ira-costs.c (scan_one_insn): Likewise.
103 * recog.c (general_operand, immediate_operand): Likewise.
104 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
105 * reload1.c (init_eliminable_invariants): Likewise.
107 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
109 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
110 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
112 (TARGET_LEGITIMATE_CONSTANT_P): Define.
113 * config/alpha/predicates.md (input_operand): Update call to
114 alpha_legitimate_constant_p.
116 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
117 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
118 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
119 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
120 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
121 (arm_legitimate_constant_p): New functions.
122 (arm_cannot_force_const_mem): Make static.
124 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
126 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
127 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
128 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
129 instead of bfin_legitimate_constant_p.
130 (bfin_legitimate_constant_p): Make static. Add a mode argument.
131 (TARGET_LEGITIMATE_CONSTANT_P): Define.
133 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
135 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
137 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
138 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
139 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
140 (frv_legitimate_constant_p): Make static. Add a mode argument.
142 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
143 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
144 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
146 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
147 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
148 * config/i386/i386.c (legitimate_constant_p): Rename to...
149 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
151 (ix86_cannot_force_const_mem): Update accordingly.
152 (ix86_legitimate_address_p): Likewise.
153 (TARGET_LEGITIMATE_CONSTANT_P): Define.
154 * config/i386/i386.md: Update commentary.
156 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
157 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
158 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
159 (ia64_legitimate_constant_p): Make static. Add a mode argument.
161 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
163 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
164 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
165 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
166 (lm32_legitimate_constant_p): Make static. Add a mode argument.
168 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
169 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
170 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
172 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
173 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
174 (m32r_legitimate_constant_p): New function.
176 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
177 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
178 LEGITIMATE_CONSTANT_P.
179 (LEGITIMATE_CONSTANT_P): Delete.
180 * config/m68k/m68k.c (m68k_expand_prologue): Call
181 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
182 (m68k_legitimate_constant_p): New function.
183 * config/m68k/m68k.md: Update comments.
185 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
186 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
187 (mcore_legitimate_constant_p): New function.
189 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
190 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
191 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
193 (mep_legitimate_address): Update accordingly.
194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
196 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
198 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
199 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
200 static. Check OP's mode for VOIDmode.
201 (microblaze_legitimate_constant_p): New function.
202 (TARGET_LEGITIMATE_CONSTANT_P): Define.
204 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
205 * config/mips/mips.c (mips_legitimate_constant_p): New function.
206 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
207 (TARGET_LEGITIMATE_CONSTANT_P): Define.
208 * config/mips/predicates.md: Update comments.
210 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
211 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
212 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
213 (mmix_legitimate_constant_p): Make static, return a bool, and take
215 (mmix_print_operand_address): Update accordingly.
217 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
219 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
220 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
221 static. Add a mode argument.
222 (TARGET_LEGITIMATE_CONSTANT_P): Define.
224 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
226 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
227 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
228 (pa_legitimate_constant_p): New function.
230 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
232 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
233 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
234 (pdp11_legitimate_constant_p): New function.
236 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
237 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
238 (rs6000_legitimate_constant_p): New function.
240 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
241 (rx_legitimate_constant_p): ...this.
242 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
243 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
244 (rx_legitimate_constant_p): ...this.
245 (TARGET_LEGITIMATE_CONSTANT_P): Define.
246 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
248 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
249 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
250 * config/s390/s390.c (legitimate_constant_p): Rename to...
251 (s390_legitimate_constant_p): ...this. Make static, return a bool,
252 and add a mode argument.
253 (TARGET_LEGITIMATE_CONSTANT_P): Define.
255 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
257 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
258 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
259 (sh_legitimate_constant_p): New function.
261 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
262 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
263 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
264 (legitimate_constant_p): Rename to...
265 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
267 (constant_address_p): Update accordingly.
269 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
270 argument and return a bool.
271 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
272 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
273 (spu_legitimate_constant_p): Add a mode argument and return a bool.
274 (spu_rtx_costs): Update accordingly.
275 * config/spu/predicates.md (vec_imm_operand): Likewise.
277 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
279 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
280 * config/v850/v850.c (v850_legitimate_constant_p): New function.
281 (TARGET_LEGITIMATE_CONSTANT_P): Define.
283 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
284 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
285 * config/vax/vax.c (legitimate_constant_p): Likewise.
287 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
288 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
289 (xtensa_legitimate_constant_p): New function.
291 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
293 * target.def (cannot_force_const_mem): Add a mode argument.
294 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
295 * doc/tm.texi: Regenerate.
296 * hooks.h (hook_bool_mode_rtx_false): Declare.
297 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
298 (hook_bool_mode_const_rtx_true): Likewise.
299 (hook_bool_mode_rtx_false): New function.
300 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
301 to be non-VOID. Update call to cannot_force_const_mem.
302 (find_reloads): Update accordingly.
303 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
304 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
306 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
307 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
308 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
309 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
310 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
311 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
312 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
313 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
314 (m68k_cannot_force_const_mem): ...this new function.
315 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
317 (mips_const_insns, mips_legitimize_const_move): Update calls.
318 (mips_secondary_reload_class): Likewise.
319 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
320 (pa_cannot_force_const_mem): ...this new function.
321 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
322 (rs6000_cannot_force_const_mem): ...this new function.
323 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
325 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
326 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
328 (xtensa_cannot_force_const_mem): ...this new function.
330 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
332 * config/mips/mips.c (mips16_build_function_stub): Call
333 build_function_type_list instead of build_function_type.
334 (mips16_build_call_stub): Likewise.
336 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
338 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
339 instead of build_function_type.
341 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
343 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
344 instead of build_function_type.
346 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
349 * config/i386/i386.md (insv): Change operand 0 constraint to
350 "register_operand". Change operand 1 and 2 constraint to
351 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
352 * config/i386/sse.md (sse4_1_pinsrb): Export.
353 (sse2_pinsrw): Ditto.
354 (sse4_1_pinsrd): Ditto.
355 (sse4_1_pinsrq): Ditto.
356 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
357 * config/i386/i386.c (ix86_expand_pinsr): New.
359 2011-04-20 Easwaran Raman <eraman@google.com>
361 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
362 containing union type only with -fstrict-aliasing.
364 2011-04-20 Jim Meyering <meyering@redhat.com>
366 Remove useless if-before-free tests.
367 * calls.c (expand_call, save_area): Likewise.
368 * cfgcleanup.c (try_forward_edges): Likewise.
369 * collect2.c (collect_execute): Likewise.
370 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
371 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
372 * coverage.c (coverage_checksum_string): Likewise.
373 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
374 * cselib.c (cselib_init): Likewise.
375 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
376 (df_set_clean_cfg): Likewise.
377 * function.c (free_after_compilation): Likewise.
378 * gcc.c (do_spec_1, main): Likewise.
379 * gcov.c (create_file_names): Likewise.
380 * gensupport.c (identify_predicable_attribute): Likewise.
381 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
382 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
383 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
384 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
385 * ipa-pure-const.c (local_pure_const): Likewise.
386 * ipa-reference.c (propagate): Likewise.
387 * ira-costs.c (free_ira_costs): Likewise.
388 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
389 * matrix-reorg.c (mat_free): Likewise.
390 * prefix.c (get_key_value): Likewise.
391 * profile.c (compute_value_histograms): Likewise.
392 * reload1.c (free_reg_equiv): Likewise.
393 * sched-deps.c (free_deps): Likewise.
394 * sel-sched-ir.c (fence_clear): Likewise.
395 * sese.c (set_rename, if_region_set_false_region): Likewise.
396 * tree-data-ref.c (free_rdg): Likewise.
397 * tree-eh.c (lower_try_finally): Likewise.
398 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
399 * tree-ssa-live.c (delete_var_map): Likewise.
400 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
401 * tree-ssa-pre.c (phi_trans_add): Likewise.
403 2011-04-20 Jakub Jelinek <jakub@redhat.com>
405 PR tree-optimization/48611
406 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
407 beyond ERT_MUST_NOT_THROW region.
409 2011-04-20 Catherine Moore <clm@codesourcery.com>
411 * config/mips/mips.opt (mfix-24k): New.
412 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
413 * config/mips/mips.md (length): Increase by 4 for stores if
415 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
416 all noreorder if fixing 24K errata.
417 * doc/invoke.texi: Document mfix-24k.
419 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
421 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
422 quad-word modes, reduce to 9-bit index range when above 1016 limit.
424 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
426 * config/arm/arm.c (arm_gen_constant): Move movw support ....
427 (const_ok_for_op): ... to here.
429 2011-04-20 Kai Tietz <ktietz@redhat.com>
431 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
432 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
434 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
436 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
438 2011-04-20 Richard Guenther <rguenther@suse.de>
440 PR tree-optimization/47892
441 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
444 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
446 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
448 2011-04-20 Tristan Gingold <gingold@adacore.com>
450 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
452 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
456 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
457 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
458 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
459 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
460 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
462 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
465 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
466 (avr_asm_named_section, avr_asm_output_aligned_common,
467 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
468 New functions to update...
469 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
470 (avr_asm_init_sections): Overwrite section callbacks for
471 data_section, bss_section.
472 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
474 (avr_file_end): ...here.
476 2011-04-20 Richard Guenther <rguenther@suse.de>
479 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
480 objects and types here. Adjust for their offset before comparing.
482 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
484 * tree-vect-stmts.c (vectorizable_store): Only chain one related
487 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
489 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
490 (GIMPLE_H): Include $(INTERNAL_FN_H).
491 (OBJS-common): Add internal-fn.o.
492 (internal-fn.o): New rule.
493 * internal-fn.def: New file.
494 * internal-fn.h: Likewise.
495 * internal-fn.c: Likewise.
496 * gimple.h: Include internal-fn.h.
497 (GF_CALL_INTERNAL): New gf_mask.
498 (gimple_statement_call): Put fntype into a union with a new
500 (gimple_build_call_internal): Declare.
501 (gimple_build_call_internal_vec): Likewise.
502 (gimple_call_same_target_p): Likewise.
503 (gimple_call_internal_p): New function.
504 (gimple_call_internal_fn): Likewise.
505 (gimple_call_fntype): Return null for internal calls.
506 (gimple_call_set_fntype): Assert that the function is not internal.
507 (gimple_call_set_fn): Likewise.
508 (gimple_call_set_fndecl): Likewise.
509 (gimple_call_set_internal_fn): New function.
510 (gimple_call_addr_fndecl): Handle null functions.
511 (gimple_call_return_type): Likewise null types.
512 * gimple.c (gimple_build_call_internal_1): New function.
513 (gimple_build_call_internal): Likewise.
514 (gimple_build_call_internal_vec): Likewise.
515 (gimple_call_same_target_p): Likewise.
516 (gimple_call_flags): Handle calls to internal functions.
517 (gimple_call_fnspec): New function.
518 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
519 (gimple_has_side_effects): Handle null functions.
520 (gimple_rhs_has_side_effects): Likewise.
521 (gimple_call_copy_skip_args): Handle calls to internal functions.
522 * cfgexpand.c (expand_call_stmt): Likewise.
523 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
524 * gimple-fold.c (gimple_fold_call): Handle null functions.
525 (gimple_fold_stmt_to_constant_1): Don't fold
526 calls to internal functions.
527 * gimple-low.c (gimple_check_call_args): Handle calls to internal
529 * gimple-pretty-print.c (dump_gimple_call): Likewise.
530 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
531 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
532 (do_warn_unused_result): Likewise.
533 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
534 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
535 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
536 the target of a call.
537 (initialize_hash_element): Update accordingly.
538 (hashable_expr_equal_p): Use gimple_call_same_target_p.
539 (iterative_hash_hashable_expr): Handle calls to internal functions.
540 (print_expr_hash_elt): Likewise.
541 * tree-ssa-pre.c (can_value_number_call): Likewise.
542 (eliminate): Handle null functions.
543 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
544 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
545 (find_func_aliases): Likewise.
546 * value-prof.c (gimple_ic_transform): Likewise.
547 (gimple_indirect_call_to_profile): Likewise.
548 * lto-streamer-in.c (input_gimple_stmt): Likewise.
549 * lto-streamer-out.c (output_gimple_stmt): Likewise.
551 2011-04-19 Jan Hubicka <jh@suse.cz>
553 * ipa-inline-transform.c (save_inline_function_body): Add comments.
554 * ipa-inline.c (inline_small_functions): Compute summaries first,
557 2011-04-19 Jan Hubicka <jh@suse.cz>
559 * cgraph.h (save_inline_function_body): Remove.
560 * ipa-inline-transform.c: New file, broke out of...
561 * ipa-inline.c: ... this one; Update toplevel comment.
562 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
564 (update_noncloned_frequencies): Move to ipa-inline-transform.c
565 (cgraph_mark_inline_edge): Rename to inline_call; move to
566 ipa-inline-transform.c.
567 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
568 move to ipa-inline-transform.c
569 (recursive_inlining, inline_small_functions, flatten_function,
570 ipa_inline, inline_always_inline_functions,
571 early_inline_small_functions): Update.
572 (inline_transform): Move to ipa-inline-transform.c.
573 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
575 * Makefile.in (ipa-inline-transform.o): New file.
576 * cgraphunit.c (save_inline_function_body): Move to
577 ipa-inline-transform.c
579 2011-04-19 DJ Delorie <dj@redhat.com>
581 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
582 registers if we already know there aren't any.
583 (m32c_emit_epilogue): Don't emit a barrier here.
584 (m32c_emit_eh_epilogue): Likewise.
585 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
586 operands at expand time.
587 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
589 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
590 duplicates. Provide aliases instead.
591 * config/m32c/prologue.md (eh_return): Emit a barrier here.
592 (eh_epilogue): Add a "(return)" here as a hint to other parts of
595 2011-04-19 Anatoly Sokolov <aesok@post.ru>
597 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
598 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
599 (general_or_i64_p, sparc_register_move_cost): New function.
601 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
603 * doc/install.texi (Configuration, --enable-threads): Remove mach.
604 Add lynx, mipssde. Sort table.
606 2011-04-19 Xinliang David Li <davidxl@google.com>
608 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
611 2011-04-19 Jakub Jelinek <jakub@redhat.com>
614 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
615 is a SUBREG with non-MODE_INT mode inside of it.
617 2011-04-19 Martin Jambor <mjambor@suse.cz>
619 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
620 also according to actual contants.
621 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
622 (gimple_fold_call): Use it.
623 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
625 2011-04-19 Martin Jambor <mjambor@suse.cz>
627 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
628 non-pointer assignments.
630 2011-04-19 Martin Jambor <mjambor@suse.cz>
632 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
633 account anc_offset and otr_type from the indirect edge info.
634 * ipa-prop.c (get_ancestor_addr_info): New function.
635 (compute_complex_ancestor_jump_func): Assignment analysis moved to
636 get_ancestor_addr_info, call it.
637 (ipa_note_param_call): Do not initialize information about polymorphic
638 calls, return the indirect call graph edge. Remove the last
639 parameter, adjust all callers.
640 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
641 parameters. Initialize polymorphic information in the indirect edge.
643 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
646 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
647 the types if they have different enumeration identifiers.
649 2011-04-19 Jan Hubicka <jh@suse.cz>
651 * cgraph.h (cgraph_optimize_for_size_p): Declare.
652 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
653 * predict.c (cgraph_optimize_for_size_p): Break out from ...
654 (optimize_function_for_size_p) ... here.
656 2011-04-19 Richard Guenther <rguenther@suse.de>
659 * tree.c (free_lang_data): Do not reset the decl-assembler-name
662 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
664 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
665 if DECL_NO_INLINE_WARNING_P is set on the function.
667 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
670 * reload1.c (inc_for_reload): Return void. All callers changed.
671 (emit_input_reload_insns): Don't try to delete previous output
672 reloads to a register, or record spill_reg_store for autoincs.
674 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
676 * gengtype.h: Updated copyright year.
677 (struct input_file_st): Add inpisplugin field.
678 (type_fileloc): New function.
680 (write_typed_struct_alloc_def): Add gcc_assert.
681 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
682 (write_typed_alloc_defns): Don't output for plugin files.
683 (input_file_by_name): Clear inpisplugin field.
684 (main): Set inpisplugin field for plugin files.
686 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
688 * gengtype-state.c (string_eq): New.
689 (read_state): Use string_eq instead of strcmp when creating the
692 2011-04-19 Wei Guozhi <carrot@google.com>
695 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
696 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
698 * config/arm/constraints.md (Uu): New constraint.
699 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
701 2011-04-19 Tristan Gingold <gingold@adacore.com>
703 * config.gcc (-*-*-*vms): Added.
704 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
706 * config/vms/vms-ld.c: New file.
707 * config/vms/vms-ar.c: New file.
708 * config/vms/t-vmsnative: New file.
710 2011-04-18 Xinliang David Li <davidxl@google.com>
712 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
714 2011-04-18 Jakub Jelinek <jakub@redhat.com>
717 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
718 if TREE_TYPE (v) is non-NULL.
720 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
721 gimple_get_virt_mehtod_for_binfo.
722 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
723 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
725 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
727 2011-04-18 Michael Matz <matz@suse.de>
728 Steve Ellcey <sje@cup.hp.com>
730 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
731 use its mode as source mode if it isn't VOIDmode.
733 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
735 * doc/passes.texi: Fill crossref nodes.
737 2011-04-18 Jim Meyering <meyering@redhat.com>
739 Fix doubled-word typos in comments and strings
740 * config/alpha/vms-unwind.h: s/for for/for/
741 * config/arm/unwind-arm.h: Likewise.
742 * config/microblaze/microblaze.c: Likewise.
743 * config/sh/constraints.md: s/in in/in/
744 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
746 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
748 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
749 (AVX_FLOAT_MODE_P): Ditto.
750 (AVX128_VEC_FLOAT_MODE_P): Ditto.
751 (AVX256_VEC_FLOAT_MODE_P): Ditto.
752 (AVX_VEC_FLOAT_MODE_P): Ditto.
753 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
754 (UNSPEC_MASKSTORE): Ditto.
755 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
756 Merge from <sse>_movmsk<ssemodesuffix> and
757 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
758 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
760 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
761 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
762 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
764 2011-04-18 Jan Hubicka <jh@suse.cz>
766 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
768 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
769 (want_inline_function_called_once_p): Break out the logic from
771 (edge_badness): Ensure that profile is not misupdated.
772 (lookup_recursive_calls): Prioritize by call frequencies.
773 (inline_small_functions): Move program size estimates here;
774 actually process whole queue even when unit growth has been
775 met. (to properly compute inline_failed reasons and for the
776 case unit size decrease.) Revisit comments on recursive inlining.
777 (ipa_inline): Remove unit summary code; first inline hot calls
778 of functions called once, cold calls next.
779 (order, nnodes): Remove unused variables.
780 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
781 (GTFILES): Remove ipa-inline.c
782 * sel-sched.c (fill_insns): Silence uninitialized var warning.
784 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
786 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
788 2011-04-18 Jie Zhang <jie@codesourcery.com>
789 Richard Earnshaw <rearnsha@arm.com>
791 * arm.c (neon_builtin_type_bits): Remove.
792 (typedef enum neon_builtin_mode): New.
793 (T_MAX): Don't define.
794 (typedef enum neon_builtin_datum): Remove bits, codes[],
795 num_vars and base_fcode. Add mode, code and fcode.
796 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
797 VAR10): Change accordingly.
798 (neon_builtin_data[]): Change accordingly
799 (arm_init_neon_builtins): Change accordingly.
800 (neon_builtin_compare): Remove.
801 (locate_neon_builtin_icode): Remove.
802 (arm_expand_neon_builtin): Change accordingly.
804 * arm.h (enum arm_builtins): Move to ...
805 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
807 * arm.c (arm_builtin_decl): Declare.
808 (TARGET_BUILTIN_DECL): Define.
809 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
810 (arm_builtin_decls[]): New.
811 (arm_init_neon_builtins): Store builtin declarations in
813 (arm_init_tls_builtins): Likewise.
814 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
815 (arm_builtin_decl): New.
817 2011-04-18 Richard Guenther <rguenther@suse.de>
819 * tree.c (upper_bound_in_type): Build properly canonicalized
821 (lower_bound_in_type): Likewise.
823 2011-04-18 Richard Guenther <rguenther@suse.de>
825 * gimple.h (gimple_call_addr_fndecl): New function.
826 (gimple_call_fndecl): Use it.
827 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
829 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
830 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
832 2011-04-18 Richard Guenther <rguenther@suse.de>
835 * tree.c (build_string): STRING_CST is now derived from tree_typed.
837 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
840 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
841 DECL_IN_CONSTANT_POOL without RTL.
843 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
844 Ira Rosen <ira.rosen@linaro.org>
847 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
848 to match neon_vzip/vuzp/vtrn_internal.
849 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
850 outputs explicitly dependent on both inputs.
851 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
853 2011-04-18 Jakub Jelinek <jakub@redhat.com>
855 PR tree-optimization/48616
856 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
857 whether the shift is by scalar or vector based on whether all SLP
858 scalar stmts have the same rhs.
860 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
862 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
865 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
867 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
870 2011-04-17 Jan Hubicka <jh@suse.cz>
872 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
873 * cgrpahunit.c (cgraph_finalize_function): Do not set
874 finalized_by_frontend.
875 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
876 finalized_by_frontend.
878 2011-04-17 Jan Hubicka <jh@suse.cz>
880 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
881 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
882 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
883 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
885 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
887 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
889 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
892 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
893 is non-null before accessing it.
894 (input_cgraph): Remove trailing spaces.
896 2011-04-17 Revital Eres <revital.eres@linaro.org>
898 * params.def (sms-min-sc): New param flag.
899 * modulo-sched.c (sms_schedule): Use it.
900 * doc/invoke.texi (sms-min-sc): Document it.
902 2011-04-17 Jan Hubicka <jh@suse.cz>
904 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
905 present, also set gimple_call_set_cannot_inline.
906 * ipa-inline.c: Update toplevel comment.
908 (cgraph_clone_inlined_nodes): Fix linebreaks.
909 (cgraph_check_inline_limits): Restructure to ...
910 (caller_growth_limits): ... this one; be more tolerant
911 on growth in nested inline chains; add explanatory comment;
912 fix stack accounting thinko introduced by previous patch.
913 (cgraph_default_inline_p): Remove.
914 (report_inline_failed_reason): New function.
915 (can_inline_edge_p): New function.
916 (can_early_inline_edge_p): New function.
917 (leaf_node_p): Move upwards in file.
918 (want_early_inline_function_p): New function.
919 (want_inline_small_function_p): New function.
920 (want_inline_self_recursive_call_p): New function.
921 (cgraph_edge_badness): Rename to ...
922 (edge_badness) ... this one; fix linebreaks.
923 (update_edge_key): Update call of edge_baddness; add
924 detailed dump about queue updates.
925 (update_caller_keys): Use can_inline_edge_p and
926 want_inline_small_function_p.
927 (cgraph_decide_recursive_inlining): Rename to...
928 (recursive_inlining): Use can_inline_edge_p and
929 want_inline_self_recursive_call_p; simplify and remove no longer
931 (cgraph_set_inline_failed): Remove.
932 (add_new_edges_to_heap): Use can_inline_edge_p and
933 want_inline_small_function_p.
934 (cgraph_decide_inlining_of_small_functions): Rename to ...
935 (inline_small_functions): ... this one; cleanup; use
936 can/want predicates; cleanup debug ouput; work edges till fibheap
937 is exhausted and do not stop once unit growth is reached; remove
938 later loop processing remaining edges.
939 (cgraph_flatten): Rename to ...
940 (flatten_function): ... this one; use can_inline_edge_p
941 and can_early_inline_edge_p predicates.
942 (cgraph_decide_inlining): Rename to ...
943 (ipa_inline): ... this one; remove unreachable nodes before
944 inlining functions called once; simplify the pass.
945 (cgraph_perform_always_inlining): Rename to ...
946 (inline_always_inline_functions): ... this one; use
947 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
948 (cgraph_decide_inlining_incrementally): Rename to ...
949 (early_inline_small_functions): ... this one; simplify
950 using new predicates; cleanup; make dumps prettier.
951 (cgraph_early_inlining): Rename to ...
952 (early_inliner): newer inline regular functions into always-inlines;
953 fix updating of call stmt summaries.
954 (pass_early_inline): Update for new names.
955 (inline_transform): Fix formating.
956 (gate_cgraph_decide_inlining): Rename to ...
957 (pass_ipa_inline): ... this one.
958 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
959 * ipa-inline-analysis.c (dump_inline_summary): Update.
960 (compute_inline_parameters): Do not compute disregard_inline_limits;
961 look for mismatching arguments.
962 (estimate_growth): Fix handlig of non-trivial self recursion.
963 (inline_read_summary): Do not read info->disregard_inline_limits.
964 (inline_write_summary): Do not write info->disregard_inline_limits.
965 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
966 and move all checks into can_inline_edge_p predicate; re-enable code
967 comparing optimization levels.
968 (expand_call_inline): Do not test inline_forbidden_into_p.
969 * Makefile.in (ipa-inline.o): Update arguments.
971 2011-04-17 Revital Eres <revital.eres@linaro.org>
973 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
975 2011-04-17 Revital Eres <revital.eres@linaro.org>
977 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
979 2011-04-17 Michael Matz <matz@suse.de>
981 PR tree-optimization/48622
983 * ipa-inline-analysis.c (inline_read_summary): Read size/time
984 in same order as they're written.
986 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
988 * config/pa/predicates.md: Reorganize and simplify predicates.
989 Eliminate duplicate code checks.
990 (arith_operand): Rename to arith14_operand
991 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
992 * config/pa/pa.md: Use renamed operands.
993 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
994 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
995 arith11_operand, adddi3_operand, indexed_memory_operand,
996 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
997 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
998 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
999 move_dest_operand, move_src_operand, prefetch_cc_operand,
1000 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1001 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1002 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1003 div_operand, int5_operand, movb_comparison_operator,
1004 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1005 arith_double_operand, ireg_operand, lhs_lshift_operand,
1006 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1007 integer_store_memory_operand): Likewise.
1008 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1009 (integer_store_memory_operand, read_only_operand,
1010 function_label_operand, borx_reg_operand,
1011 non_hard_reg_operand): Likewise.
1012 (eq_neq_comparison_operator): Delete unused operator.
1013 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1014 function_label_operand.
1015 (emit_move_sequence): Likewise.
1017 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1019 * config/i386/sse.md (sseunpackmode): New mode attribute.
1020 (ssepackmode): Ditto.
1021 (vec_pack_trunc_<mode>): Macroize expander from
1022 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1023 (vec_unpacks_lo_<mode>): Macroize expander from
1024 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1025 (vec_unpacks_hi_<mode>): Macroize expander from
1026 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1027 (vec_unpacku_lo_<mode>): Macroize expander from
1028 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1029 (vec_unpacku_hi_<mode>): Macroize expander from
1030 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1031 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1032 ix86_expand_sse4_unpack.
1033 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1035 2011-04-16 Jan Hubicka <jh@suse.cz>
1037 * cgraphbuild.c: Include ipa-inline.h.
1038 (reset_inline_failed): Use initialize_inline_failed.
1039 * cgraph.c: Include ipa-inline.h.
1040 (cgraph_create_node_1): Do not initialize estimated_growth.
1041 (initialize_inline_failed): More to ipa-inline-analysis.c
1042 (dump_cgraph_node): Do not dump inline flags.
1043 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1044 and disregard_inline_limits flags.
1045 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1046 time, size, estimated_growth.
1047 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1049 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1050 DECL_DISREGARD_INLINE_LIMITS.
1051 (cgraph_analyze_function): Do not initialize
1052 node->local.disregard_inline_limits.
1053 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1054 inlinable, versionable and disregard_inline_limits.
1055 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1056 cgraph_check_inline_limits, cgraph_default_inline_p,
1057 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1058 add_new_edges_to_heap): Update.
1059 (cgraph_decide_inlining_of_small_function): Update; set
1060 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1061 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1062 cgraph_decide_inlining_incrementally): Update.
1063 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1064 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1065 time, size and estimated_growth parameters.
1066 (estimate_edge_growth): Update.
1067 (initialize_inline_failed): Declare.
1068 * ipa-split.c: Include ipa-inline.h
1069 (execute_split_functions): Update.
1070 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1071 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1072 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1073 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1074 estimated_growth to INT_MIN.
1075 (inline_node_duplication_hook): Likewise.
1076 (dump_inline_summary): Dump new fields.
1077 (compute_inline_parameters): Update.
1078 (estimate_edge_time, estimate_time_after_inlining,
1079 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1080 inline_write_summary):
1081 (initialize_inline_failed): Move here from cgraph.c.
1082 * tree-sra.c: Include ipa-inline.h.
1083 (ipa_sra_preliminary_function_checks): Update.
1084 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1087 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1089 * config/i386/sse.md (V16): New mode iterator.
1091 (AVXMODEQI, AVXMODEDI): Remove.
1092 (sse2, sse3): New mode attribute.
1093 (mov<mode>): Use V16 mode iterator.
1094 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1095 (push<mode>1): Use V16 mode iterator.
1096 (movmisalign<mode>): Ditto.
1097 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1098 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1099 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1100 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1101 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1102 avx_movdqu<avxmodesuffix>.
1103 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1104 *avx_movdqu<avxmodesuffix>.
1105 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1106 avx_lddqu<avxmodesuffix>.
1107 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1108 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1109 avx_movnt<AVXMODEDI:mode>.
1110 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1111 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1113 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1116 * haifa-sched.c (prune_ready_list, schedule_block): Use
1117 sched_pressure_p rather than flag_sched_pressure.
1119 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1121 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1122 cgraph_get_node instead of cgraph_get_create_node.
1124 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1126 * cfgexpand.c (expand_debug_expr): Use
1127 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1129 2011-04-15 Michael Matz <matz@suse.de>
1131 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1132 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1133 * function.c (gimplify_parameters): Ditto.
1134 * gimplify.c (gimplify_vla_decl): Ditto.
1136 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1137 (gimple_call_set_alloca_for_var): New inline function.
1138 (gimple_call_alloca_for_var_p): Ditto.
1139 * gimple.c (gimple_build_call_from_tree): Remember
1140 CALL_ALLOCA_FOR_VAR_P state.
1141 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1143 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1144 calls if they were for VLA objects.
1146 2011-04-15 Martin Jambor <mjambor@suse.cz>
1148 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1151 2011-04-15 Martin Jambor <mjambor@suse.cz>
1154 * tree-emutls.c (lower_emutls_function_body): Call
1155 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1158 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1160 * c-decl.c (detect_field_duplicates): Call
1161 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1163 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1165 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1166 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1167 * ipa-pure-const.c (check_stmt): Call it.
1168 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1170 2011-04-15 Richard Guenther <rguenther@suse.de>
1172 PR tree-optimization/48290
1173 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1174 Properly decide inhibiting propagation based on the valueized
1175 operand. Do loop-closed SSA form preserving here ...
1176 (init_copy_prop): ... not here.
1178 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1181 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1182 (*ieee_smax<mode>3): Likewise.
1184 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1186 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1187 Replace match_operand with match_dup for the third operand in
1190 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1192 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1193 to track processing of conditionals. Update all callers.
1194 (try_combine, simplify_if_then_else): Update.
1196 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1198 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1201 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1203 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1204 instead of match_operand for operand 3.
1206 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1208 * recog.h (insn_operand_data): Add an "allows_mem" field.
1209 * genoutput.c (output_operand_data): Initialize it.
1210 * optabs.c (maybe_legitimize_operand_same_code): New function.
1211 (maybe_legitimize_operand): Use it when matching the original
1214 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1216 * gimplify.c: Fix issues in comments throughout.
1217 (voidify_wrapper_expr): Fix long line.
1218 (build_stack_save_restore): Likewise.
1219 (gimplify_loop_expr): Likewise.
1220 (gimplify_compound_lval): Likewise.
1221 (gimplify_init_ctor_eval): Likewise.
1222 (gimplify_modify_expr_rhs): Likewise.
1223 (omp_notice_threadprivate_variable): Likewise.
1225 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1227 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1228 original one if this is not a builtin function.
1230 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1233 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1234 offset it as needed based on top 2 bits in operands[3], change
1235 MEM mode to SFmode and mask those 2 bits away from operands[3].
1237 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1239 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1240 change from objc_declare_protocols() to objc_declare_protocol().
1242 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1244 * config/i386/sse.md (sse4_1): New mode attribute.
1245 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1246 avx_blend<ssemodesuffix><avxmodesuffix> and
1247 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1248 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1249 avx_blendv<ssemodesuffix><avxmodesuffix> and
1250 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1251 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1252 avx_dp<ssemodesuffix><avxmodesuffix> and
1253 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1254 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1255 (sse4_1_packusdw): Merge with *avx_packusdw.
1256 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1257 (sse4_1_pblendw): Merge with *avx_pblendw.
1258 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1259 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1260 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1262 (sse4_1_round<ssescalarmodesuffix>): Merge with
1263 *avx_round<ssescalarmodesuffix>.
1264 (aesenc): Merge with *avx_aesenc.
1265 (aesenclast): Merge with *avx_aesenclast.
1266 (aesdec): Merge with *avx_aesdec.
1267 (aesdeclast): Merge with *avx_aesdeclast.
1268 (pclmulqdq): Merge with *pclmulqdq.
1269 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1271 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1273 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1276 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1277 (align_local_variable): This. Update DECL_ALIGN.
1278 (add_stack_var): Updated.
1279 (expand_one_stack_var): Likewise.
1281 2011-04-14 Richard Guenther <rguenther@suse.de>
1283 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1285 (dse_initialize_block_local_data, dse_leave_block,
1286 record_voperand_set, get_stmt_uid): Likewise.
1287 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1288 (dse_optimize_stmt): Remove voperand set handling code.
1289 Simplify and improve to handle any kind of killing stmt.
1290 (dse_record_phi): Remove.
1291 (dse_enter_block): Simplify.
1292 (tree_ssa_dse): Likewise.
1293 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1295 2011-04-14 Jan Hubicka <jh@suse.cz>
1297 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1298 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1299 (cgraph_local_info): Remove inline_summary.
1300 * ipa-cp.c: Include ipa-inline.h.
1301 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1302 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1304 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1305 (input_overwrite_node): Do not set inline summary.
1306 (input_node): Do not stream inline summary.
1307 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1308 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1309 growth; we do not have inline parameters computed for that anyway.
1310 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1311 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1312 (inline_summary_t): New type and VECtor.
1313 (debug_inline_summary, dump_inline_summaries): Declare.
1314 (inline_summary): Use VOCtor.
1315 (estimate_edge_growth): Kill hack computing call stmt size directly.
1316 * lto-section-in.c (lto_section_name): Add inline section.
1317 * ipa-inline-analysis.c: Include lto-streamer.h
1318 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1319 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1320 (inline_summary_vec): Define.
1321 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1322 dump_inline_summaries): New functions.
1323 (estimate_function_body_sizes): Properly compute size/time of outgoing
1325 (compute_inline_parameters): Alloc inline_summary; do not compute
1326 size/time of incomming calls.
1327 (estimate_edge_time): Avoid missing time summary hack.
1328 (inline_read_summary): Read inline summary info.
1329 (inline_write_summary): Write inline summary info.
1330 (inline_free_summary): Free all hooks and inline summary vector.
1331 * lto-streamer.h: Add LTO_section_inline_summary section.
1332 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1333 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1335 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1337 * tree-vectorizer.h (vect_strided_store_supported): Add a
1338 HOST_WIDE_INT argument.
1339 (vect_strided_load_supported): Likewise.
1340 (vect_permute_store_chain): Return void.
1341 (vect_transform_strided_load): Likewise.
1342 (vect_permute_load_chain): Delete.
1343 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1344 count argument. Check that the count is a power of two.
1345 (vect_strided_load_supported): Likewise.
1346 (vect_permute_store_chain): Return void. Update after above changes.
1347 Assert that the access is supported.
1348 (vect_permute_load_chain): Likewise.
1349 (vect_transform_strided_load): Return void.
1350 * tree-vect-stmts.c (vectorizable_store): Update calls after
1351 above interface changes.
1352 (vectorizable_load): Likewise.
1353 (vect_analyze_stmt): Don't check for strided powers of two here.
1355 2011-04-14 Richard Guenther <rguenther@suse.de>
1357 PR tree-optimization/48590
1358 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1359 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1360 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1361 BUILT_IN_STACK_SAVE.
1362 * tree-ssa-dce.c (propagate_necessity): Handle
1363 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1365 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1367 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1370 2011-04-14 Richard Guenther <rguenther@suse.de>
1372 * tree.h (get_object_alignment_1): Declare.
1373 * builtins.c (get_object_alignment_1): Split out worker from ...
1374 (get_object_alignment): ... here.
1375 * fold-const.c (get_pointer_modulus_and_residue): Use
1376 get_object_alignment_1.
1378 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1380 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1382 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1383 parameter. Generalise code to handle arrays as well as vectors.
1384 (vect_setup_realignment): Update accordingly.
1385 * tree-vect-stmts.c (vectorizable_store): Likewise.
1386 (vectorizable_load): Likewise.
1388 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1390 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1391 within the per-copy loop.
1393 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1395 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1398 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1400 * doc/options.texi (Negative): Explicitly mention that the
1401 Negative chain must be circular.
1403 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1405 * function.h (block_chainon): Declare.
1406 * function.c (block_chainon): Define.
1408 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1409 Eric Weddington <eric.weddington@atmel.com>
1410 Georg-Johann Lay <avr@gjlay.de>
1412 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1414 (avr_init_builtins, avr_expand_builtin,
1415 avr_expand_delay_cycles, avr_expand_unop_builtin,
1416 avr_expand_binop_builtin ): New functions.
1417 (avr_builtin_id): New enum
1418 (struct avr_builtin_description): New struct
1419 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1420 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1422 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1423 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1424 UNSPECV_DELAY_CYCLES): new enumeration values
1425 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1426 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1427 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1428 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1429 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1430 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1431 "fmulsu"): New insns
1433 * config/avr/avr-c.c: fix line endings
1434 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1435 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1436 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1437 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1438 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1440 * doc/extend.texi (AVR Built-in Functions): New node
1441 (Target Builtins): Add documentation of AVR
1444 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1447 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1448 alone. Error if non-const data has attribute progmem.
1450 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1452 * tree.h (struct tree_constructor): Include tree_typed instead of
1454 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1455 TS_TYPED instead of TS_COMMON.
1457 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1459 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1460 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1461 (sse2_psadbw): Merge with *avx_psadbw.
1462 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1463 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1464 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1465 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1466 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1467 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1468 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1469 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1470 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1471 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1472 (ssse3_palignrti): Merge with *avx_palignrti.
1474 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1476 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1477 * tree-ssanames.c (fini_ssanames): VEC_free it.
1478 (make_ssa_name_fn): Update for VECness of free_ssanames.
1479 (release_ssa_name, release_dead_ssa_names): Likewise.
1480 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1482 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1483 TS_TYPED instead of TS_COMMON.
1485 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1487 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1488 statistics_counter_event.
1489 * tree-ssa-copyrename.c (stats): Define.
1490 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1491 statistics_counter_event.
1492 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1493 (bswap_stats, widen_mul_stats): Define.
1494 (insert_reciprocals): Increment rdivs_inserted.
1495 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1496 rfuncs_inserted. Add calls to statistics_counter_event.
1497 (execute_cse_sincos_1): Increment inserted.
1498 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1499 statistics_counter_event.
1500 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1501 of bswap_stats. Add calls to statistics_counter_event.
1502 (convert_mult_to_widen): Increment widen_mults_inserted.
1503 (convert_plusminus_to_widen): Increment maccs_inserted.
1504 (convert_mult_to_fma): Increment fmas_inserted.
1505 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1506 calls to statistics_counter_event.
1508 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1510 PR rtl-optimization/48455
1511 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1512 `temp_costs->mem_cost'.
1514 2011-04-13 Jan Hubicka <jh@suse.cz>
1516 * ipa-inline.h: New file.
1517 * ipa-inline-analysis.c: New file. Broken out of ...
1518 * ipa-inline.c: ... this file; update toplevel comment;
1519 include ipa-inline.h
1520 (inline_summary): Move to ipa-inline.h
1521 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1522 ipa-inline-analysis.c.
1523 (cgraph_estimate_time_after_inlining): Rename to
1524 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1525 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1526 to estimate_edge_growth.
1527 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1528 rename to estimate_size_after_inlining.
1529 (cgraph_mark_inline_edge): Update for new naming convention.
1530 (cgraph_check_inline_limits): Likewise.
1531 (cgraph_edge_badness): Likewise.
1532 (cgraph_decide_recursive_inlining): Likewise.
1533 (cgraph_decide_inlining_of_small_functions): Likewise.
1534 (cgraph_decide_inlining_incrementally): Likewise.
1535 (cgraph_estimate_growth): Rename to estimate_growth; move to
1536 ipa-inline-analysis.c.
1537 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1538 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1539 (compute_inline_parameters): Likewise.
1540 (compute_inline_parameters_for_current): Likewise.
1541 (pass_inline_parameters): Likewise.
1542 (inline_indirect_intraprocedural_analysis): Likewise.
1543 (analyze_function): Rename to inline_analyze_function; likewise.
1544 (add_new_function): Move to ipa-inline-analysis.c.
1545 (inline_generate_summary): Likewise.
1546 (inline_read_summary): Likewise.
1547 (inline_write_summary): Likewise.
1548 * Makefile.in (ipa-inline-analysis.c): New file.
1550 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1552 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1553 * configure: Regenerate.
1555 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1557 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1558 instead of tree_common.
1559 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1561 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1562 TS_TYPED rather than TS_COMMON.
1563 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1565 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1568 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1569 r20 around calls of __tablejump_elpm__
1571 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1574 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1576 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1578 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1580 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1581 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1582 (cfi_vec): New typedef.
1583 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1584 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1585 (cie_cfi_vec): New static variable.
1586 (cie_cfi_head): Delete.
1587 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1588 declaration changed. Use vector rather than list operations.
1589 (new_cfi): Don't initialize the dw_cfi_next field.
1590 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1591 rather than list operations.
1592 (lookup_cfa): Use vector rather than list operations.
1593 (output_cfis): New argument upto. Accept a cfi_vec rather than
1594 a dw_cfi_ref list head as argument. All callers changed.
1595 Iterate over the vector using upto as a maximum index.
1596 (output_all_cfis): New static function.
1597 (output_fde): Use vector rather than list operations. Use the
1598 new upto argument for output_cfis rather than manipulating a
1600 (dwarf2out_begin_prologue): Change initializations to match
1602 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1603 from the vector length rather than searching for the end of a list.
1604 Use output_all_cfis.
1605 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1607 2011-04-13 Nick Clifton <nickc@redhat.com>
1609 * config/rx/rx.md (movmemsi): Do not use this pattern when
1610 volatile pointers are involved.
1612 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1614 * config/i386/sse.md (pinsrbits): Remove.
1615 (sse2_packsswb): Merge with *avx_packsswb.
1616 (sse2_packssdw): Merge with *avx_packssdw.
1617 (sse2_packuswb): Merge with *avx_packuswb.
1618 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1619 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1620 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1621 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1622 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1623 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1624 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1625 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1626 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1627 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1628 (sse2_loadld): Merge with *avx_loadld.
1629 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1630 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1631 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1632 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1633 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1635 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1637 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1639 * print-tree.c (print_node): Likewise.
1640 * tree-inline.c (copy_tree_r): Likewise.
1641 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1642 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1643 instead of TS_COMMON.
1644 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1645 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1646 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1647 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1648 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1650 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1652 (TREE_CHAIN): Check for a TS_COMMON structure.
1653 (TREE_TYPE): Check for a TS_TYPED structure.
1655 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1657 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1658 cgraph_get_create_node instead of cgraph_node.
1660 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1662 * c-parser.c (c_parser_initelt): Updated call to
1663 objc_build_message_expr.
1664 (c_parser_postfix_expression): Likewise.
1666 2011-04-12 Kai Tietz <ktietz@redhat.com>
1668 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1669 MASK_MS_BITFIELD_LAYOUT bit.
1671 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1673 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1674 assert it is always true.
1675 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1678 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1680 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1681 compiling Objective-C to be more efficient.
1683 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1685 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1688 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1690 * recog.h, genoutput.c, optabs.c: Revert last patch.
1692 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1695 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1697 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1699 * recog.h (insn_operand_data): Add an "allows_mem" field.
1700 * genoutput.c (output_operand_data): Initialize it.
1701 * optabs.c (maybe_legitimize_operand_same_code): New function.
1702 (maybe_legitimize_operand): Use it when matching the original
1705 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1707 * genpreds.c (process_define_predicate): Move most processing
1708 to gensupport.c. Continue to validate the expression.
1709 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1710 (process_define_predicate): Move processing to gensupport.c.
1711 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1712 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1713 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1715 (valid_predicate_name_p): New function, split out from old
1716 genpreds.c:process_define_predicate.
1717 (process_define_predicate): New function, combining code from
1718 old genpreds.c and genrecog.c functions.
1719 (process_rtx): Call it for DEFINE_PREDICATE and
1720 DEFINE_SPECIAL_PREDICATE.
1722 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1724 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1725 size of a '%A' memory reference.
1726 (T_DREG, T_QREG): New neon_builtin_type_bits.
1727 (arm_init_neon_builtins): Assert that the load and store operands
1728 are neon_struct_operands.
1729 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1730 (NEON_ARG_MEMORY): New builtin_arg.
1731 (neon_dereference_pointer): New function.
1732 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1733 Handle NEON_ARG_MEMORY.
1734 (arm_expand_neon_builtin): Update after above interface changes.
1735 Use NEON_ARG_MEMORY for loads and stores.
1736 * config/arm/predicates.md (neon_struct_operand): New predicate.
1737 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1738 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1739 (V_four_elem): Tweak formatting.
1740 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1741 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1742 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1743 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1744 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1745 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1746 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1747 Use %A in the output template.
1748 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1749 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1750 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1751 the width of the memory access. Remove post-increment.
1752 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1754 2011-04-12 Nick Clifton <nickc@redhat.com>
1756 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1757 instruction for interrupt handlers if the target is the basic V850
1759 (expand_epilogue): Likewise.
1761 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1763 PR rtl-optimization/48549
1764 * combine.c (propagate_for_debug): Also stop after BB_END of
1765 this_basic_block. Process LAST and just stop processing after it.
1766 (combine_instructions): If last_combined_insn has been deleted,
1767 set last_combined_insn to its PREV_INSN.
1769 2011-04-12 Richard Guenther <rguenther@suse.de>
1771 PR tree-optimization/46076
1772 * gimple.h (struct gimple_statement_call): Add fntype field.
1773 (gimple_call_fntype): Adjust.
1774 (gimple_call_set_fntype): New function.
1775 * gimple.c (gimple_build_call_1): Set the call function type.
1776 * gimplify.c (gimplify_call_expr): Preserve the function
1777 type the frontend used for the call.
1778 (gimplify_modify_expr): Likewise.
1779 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1781 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1783 * tree-ssa.c (useless_type_conversion_p): Function pointer
1784 conversions are useless.
1786 2011-04-12 Martin Jambor <mjambor@suse.cz>
1788 * cgraph.h (cgraph_node): Remove function declaration.
1789 (cgraph_create_node): Declare.
1790 (cgraph_get_create_node): Likewise.
1791 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1792 Updated all callers.
1793 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1794 the decl does not already exist. Call cgraph_get_create_node instead
1796 (cgraph_get_create_node): New function.
1797 (cgraph_same_body_alias): Update comment.
1798 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1799 assert it does not return NULL.
1800 (cgraph_update_edges_for_call_stmt): Likewise.
1801 (cgraph_clone_edge): Likewise.
1802 (cgraph_create_virtual_clone): Likewise.
1803 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1804 instead of cgraph_node.
1805 (cgraph_add_new_function): Call cgraph_create_node or
1806 cgraph_get_create_node instead of cgraph_node.
1807 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1808 instead of cgraph_node.
1809 (record_eh_tables): Likewise.
1810 (mark_address): Likewise.
1811 (mark_load): Likewise.
1812 (build_cgraph_edges): Call cgraph_get_create_node instead
1814 (rebuild_cgraph_edges): Likewise.
1815 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1816 instead of cgraph_node.
1817 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1819 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1820 cgraph_create_node instead of cgraph_node.
1821 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1823 * lto-cgraph.c (input_node): Likewise.
1824 * lto-streamer-in.c (input_function): Likewise.
1825 * varasm.c (mark_decl_referenced): Likewise.
1826 (assemble_alias): Likewise.
1828 2011-04-12 Martin Jambor <mjambor@suse.cz>
1830 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1831 instead of cgraph_node and assert it does not return NULL.
1832 * lto-streamer-in.c (lto_read_body): Likewise.
1833 * omp-low.c (new_omp_context): Likewise.
1834 (create_task_copyfn): Likewise.
1835 * tree-emutls.c (lower_emutls_function_body): Likewise.
1836 * matrix-reorg.c (transform_allocation_sites): Likewise.
1838 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1841 * c-typeck.c (build_asm_expr): Error out on attempts to use
1842 void type outputs or inputs for constraints that allow reg or
1845 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1846 Richard Earnshaw <rearnsha@arm.com>
1849 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1850 to use sign-magnitude offsets. Reject unsupported unaligned
1851 cases. Add detailed description in comments.
1852 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1853 condition from TARGET_32BIT to TARGET_ARM.
1855 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1857 * tree.h (struct typed_tree): New.
1858 (struct tree_common): Include it instead of tree_base.
1859 (TREE_TYPE): Update for new location of type field.
1860 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1861 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1862 (union tree_node): Add typed field.
1863 * treestruct.def (TS_TYPED): New.
1864 * lto-streamer.c (check_handled_ts_structures): Handle it.
1865 * tree.c (MARK_TS_TYPED): New macro.
1866 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1868 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1870 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1871 (force_nonfallthru): Do not alter the loop nest if no basic block
1874 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1876 * config/i386/sse.md (VI): New mode iterator.
1878 (AVX256MODEI): Ditto.
1879 (AVXMODEF4P): Ditto.
1880 (avxvecpsmode): Ditto.
1881 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1882 (sse2_andnot<mode>3): New expander.
1883 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1884 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1885 (<any_logic:code><mode>3): Use VI mode iterator.
1886 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1887 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1888 (*andnottf3): Handle AVX three-operand constraints.
1889 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1891 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1892 Robert Millan <rmh@gnu.org>
1894 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1895 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1896 GNU_USER_DYNAMIC_LINKER64): Define.
1897 (REG_NAME): Don't undefine.
1898 (MD_UNWIND_SUPPORT): Undefine.
1899 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1900 (REG_NAME): Don't undefine.
1901 (MD_UNWIND_SUPPORT): Undefine.
1902 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1904 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1906 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1907 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1909 2011-04-11 Xinliang David Li <davidxl@google.com>
1911 * value-profile.c (check_ic_target): New function.
1912 (gimple_ic_transform): Sanity check indirect call target.
1913 * gimple-low.c (gimple_check_call_args): Interface change.
1914 (gimple_check_call_matching_types): New function.
1915 * tree-inline.c (tree_can_inline_p): Call new function.
1917 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1919 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1920 tree-pretty-print.h & realmpfr.h.
1922 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1925 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1926 (setup_allocno_and_important_classes): Ditto.
1928 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1930 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1931 GNU_USER_DYNAMIC_LINKER.
1932 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1933 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1934 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1935 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1936 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1937 GNU_USER_TARGET_OS_CPP_BUILTINS.
1938 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1939 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1940 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1941 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1942 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1943 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1944 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1945 GNU_USER_TARGET_OS_CPP_BUILTINS.
1946 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1947 GNU_USER_DYNAMIC_LINKER.
1948 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1949 GNU_USER_TARGET_OS_CPP_BUILTINS.
1950 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1951 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1952 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1953 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1954 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1955 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1956 GNU_USER_DYNAMIC_LINKER64): Remove.
1957 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1958 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1959 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1960 GNU_USER_DYNAMIC_LINKER.
1961 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1962 GNU_USER_TARGET_OS_CPP_BUILTINS.
1963 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1964 GNU_USER_TARGET_OS_CPP_BUILTINS.
1965 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1966 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1967 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1968 GNU_USER_TARGET_OS_CPP_BUILTINS.
1969 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1970 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1971 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1972 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1973 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1974 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1975 GNU_USER_DYNAMIC_LINKER.
1976 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1977 GNU_USER_TARGET_OS_CPP_BUILTINS.
1978 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1979 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1980 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1981 GNU_USER_DYNAMIC_LINKER.
1982 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1983 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1984 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1986 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1987 GNU_USER_DYNAMIC_LINKER.
1988 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1989 GNU_USER_DYNAMIC_LINKERN32.
1990 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1991 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1992 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1993 GNU_USER_DYNAMIC_LINKER32.
1994 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1995 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1996 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1997 GNU_USER_DYNAMIC_LINKER.
1998 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1999 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2000 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2001 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2002 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2003 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2004 GNU_USER_DYNAMIC_LINKER32.
2005 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2006 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2007 GNU_USER_DYNAMIC_LINKER.
2008 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2009 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2010 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2011 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2012 GNU_USER_DYNAMIC_LINKER64.
2013 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2015 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2016 GNU_USER_DYNAMIC_LINKER.
2017 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2020 GNU_USER_DYNAMIC_LINKER.
2021 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2023 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2024 GNU_USER_DYNAMIC_LINKER32.
2025 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2026 GNU_USER_DYNAMIC_LINKER64.
2027 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2028 GNU_USER_DYNAMIC_LINKER64.
2029 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2031 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2032 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2033 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2035 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2037 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2038 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2039 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2040 GNU_USER_DYNAMIC_LINKER.
2041 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2042 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2043 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2044 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2045 GNU_USER_DYNAMIC_LINKER64.
2046 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2047 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2048 GNU_USER_LINK_EMULATION.
2049 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2050 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2051 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2052 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2053 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2054 CPP_SPEC, CC1_SPEC): Remove.
2055 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2056 (GNU_USER_DYNAMIC_LINKER): Define.
2057 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2058 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2059 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2060 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2061 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2062 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2063 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2064 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2065 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2066 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2067 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2068 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2069 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2070 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2071 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2072 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2073 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2074 GNU_USER_DYNAMIC_LINKER.
2075 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2076 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2077 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2078 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2079 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2080 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2081 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2082 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2083 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2084 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2086 2011-04-11 Kai Tietz <ktietz@redhat.com>
2090 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2091 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2093 (ix86_is_msabi_thiscall): Removed.
2094 (ix86_is_type_thiscall): Likewise.
2095 (ix86_get_callcvt): New function.
2096 (ix86_comp_type_attributes): Simplify check.
2097 (ix86_function_regparm): Use ix86_get_callcvt for calling
2098 convention attribute checks.
2099 (ix86_return_pops_args): Likewise.
2100 (ix86_static_chain): Likewise.
2101 (x86_this_parameter): Likewise.
2102 (x86_output_mi_thunk): Likewise.
2103 (ix86_function_type_abi): Optimize check for types without attributes.
2104 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2105 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2106 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2108 (IX86_BASE_CALLCVT): Helper macro.
2109 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2110 Use ix86_get_callcvt for calling convention attribute checks and avoid
2111 symbol-decoration for stdcall in TARGET_RTD case.
2112 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2114 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2117 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2119 * config/i386/sse.md (VI_128): New mode iterator.
2120 (VI12_128): Rename from SSEMODE12.
2121 (VI14_128): Rename from SSEMODE14.
2122 (VI124_128): New mode iterator.
2123 (VI24_128): Rename from SSEMODE248.
2124 (VI248_128): Rename from SSEMODE248.
2125 (SSEMODE124C8): Remove.
2126 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2127 (*sse2_<plusminus_insn><mode>3): Merge with
2128 *avx_<plusminus_insn><mode>3.
2129 (*mulv8hi3): Merge with *avx_mulv8hi3.
2130 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2131 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2132 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2133 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2134 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2135 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2136 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2137 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2138 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2139 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2140 (*<smaxmin:code>v8hi3): Ditto.
2141 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2142 (*<smaxmin:code>v16qi3): Ditto.
2143 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2144 (*sse2_eq<mode>3): Ditto.
2145 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2146 (*sse2_gt<mode>3): Ditto.
2147 (vcondv2di): Split out of vcond<mode>.
2148 (vconduv2di): Split out of vcondu<mode>.
2150 2011-04-11 Richard Guenther <rguenther@suse.de>
2152 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2153 before calling tree_low_cst.
2155 2011-04-11 Richard Guenther <rguenther@suse.de>
2157 * stor-layout.c (layout_type): Compute all array index size operations
2158 in the original type.
2159 (initialize_sizetypes): Add comment.
2160 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2162 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2164 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2166 2011-04-11 Martin Jambor <mjambor@suse.cz>
2168 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2169 of cgraph_node, handle NULL return value.
2170 (cgraph_global_info): Likewise.
2171 (cgraph_rtl_info): Likewise.
2172 * tree-inline.c (estimate_num_insns): Likewise.
2173 * gimplify.c (unshare_body): Likewise.
2174 (unvisit_body): Likewise.
2175 (gimplify_body): Likewise.
2176 * predict.c (optimize_function_for_size_p): Likewise.
2177 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2178 (call_may_clobber_ref_p_1): Likewise.
2179 * varasm.c (function_section_1): Likewise.
2180 (assemble_start_function): Likewise.
2182 2011-04-11 Martin Jambor <mjambor@suse.cz>
2184 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2186 * final.c (rest_of_clean_state): Likewise.
2187 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2188 * passes.c (pass_init_dump_file): Likewise.
2189 (execute_all_ipa_transforms): Likewise.
2190 (function_called_by_processed_nodes_p): Likewise.
2191 * predict.c (maybe_hot_frequency_p): Likewise.
2192 (probably_never_executed_bb_p): Likewise.
2193 (compute_function_frequency): Likewise.
2194 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2195 (unnest_nesting_tree_1): Likewise.
2196 (lower_nested_functions): Likewise.
2197 * tree-optimize.c (execute_fixup_cfg): Likewise.
2198 (tree_rest_of_compilation): Likewise.
2199 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2200 * tree-sra.c (ipa_early_sra): Likewise.
2201 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2202 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2203 * ipa.c (record_cdtor_fn): Likewise.
2204 * ipa-inline.c (cgraph_early_inlining): Likewise.
2205 (compute_inline_parameters_for_current): Likewise.
2206 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2207 * ipa-pure-const.c (local_pure_const): Likewise.
2208 * ipa-split.c (split_function): Likewise.
2209 (execute_split_functions): Likewise.
2210 * cgraphbuild.c (build_cgraph_edges): Likewise.
2211 (rebuild_cgraph_edges): Likewise.
2212 (cgraph_rebuild_references): Likewise.
2213 (remove_cgraph_callee_edges): Likewise.
2214 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2215 (verify_cgraph_node): Likewise.
2216 (cgraph_analyze_functions): Likewise.
2217 (cgraph_preserve_function_body_p): Likewise.
2218 (save_inline_function_body): Likewise.
2219 (save_inline_function_body): Likewise.
2220 * tree-inline.c (copy_bb): Likewise.
2221 (optimize_inline_calls): Likewise.
2223 2011-04-11 Martin Jambor <mjambor@suse.cz>
2225 PR tree-optimization/48195
2226 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2227 ipa_check_create_edge_args.
2228 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2229 ipa_check_create_edge_args.
2230 * ipa-inline.c (inline_generate_summary): Do not call
2231 ipa_check_create_node_params and ipa_check_create_edge_args.
2232 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2233 ipa_check_create_edge_args.
2235 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2237 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2239 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2240 * function.c (record_hard_reg_sets): Likewise.
2241 * ira.c (compute_regs_asm_clobbered): Likewise.
2242 * sched-deps.c (sched_analyze_1): Likewise.
2243 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2245 2011-04-09 Xinliang David Li <davidxl@google.com>
2247 PR tree-optimization/PR48484
2248 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2249 has_valid_pred lazily
2251 2011-04-09 Duncan Sands <baldrick@free.fr>
2253 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2255 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2257 * combine.c (combine_validate_cost): Adjust comments. Set registered
2258 cost of I0 to zero at the end, if any.
2260 2011-04-08 Xinliang David Li <davidxl@google.com>
2262 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2263 to insane profile data.
2265 2011-04-08 Xinliang David Li <davidxl@google.com>
2267 * ipa-cp.c (ipcp_update_profiling): Correct
2268 negative scale factor due to insane profile data.
2270 2011-04-08 Xinliang David Li <davidxl@google.com>
2272 * final.c (dump_basic_block_info): New function.
2273 (final): Dump basic block.
2274 (final_scan_insn): Remove old dump.
2276 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2279 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2282 2011-04-08 Michael Matz <matz@suse.de>
2285 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2287 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2288 * rtl.h (rebuild_jump_labels_chain): Declare.
2289 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2290 insns inserted on edges.
2292 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2294 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2295 * config/arm/arm-arches.def: New.
2296 * config/arm/arm-opts.h: New.
2297 * config/arm/genopt.sh: New.
2298 * config/arm/arm-tables.opt: New (generated).
2299 * config/arm/arm.c (arm_handle_option, arm_target_help,
2300 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2301 (all_architectures): Get most table contents from arm-arches.def.
2302 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2303 arm_selected_tune here.
2304 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2305 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2306 (march=, mcpu=, mtune=): Use Enum and Var.
2307 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2308 (arm.o): Update dependencies.
2310 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2312 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2314 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2315 (write_typed_alloc_defns): Likewise.
2316 (main): Calls write_typed_alloc_defns with output_header.
2318 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2321 * ira-color.c (setup_profitable_hard_regs): Add comments.
2322 Don't take prohibited hard regs into account.
2323 (setup_conflict_profitable_regs): Rename to
2324 get_conflict_profitable_regs.
2325 (check_hard_reg_p): Check prohibited hard regs.
2327 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2329 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2330 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2331 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2333 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2336 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2337 move from floating point to shift amount register.
2338 (emit_move_sequence): Remove secondary reload support for floating
2339 point to shift amount amount register copies.
2340 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2341 amount register copies.
2342 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2343 register, return false if mode isn't a scalar integer mode.
2344 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2346 2011-04-08 Richard Guenther <rguenther@suse.de>
2348 * gimple.c (gimple_call_flags): Remove kludge.
2350 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2352 * sel-sched.c (sel_region_init): Move call to
2353 sel_setup_region_sched_flags after setup_current_loop_nest.
2355 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2357 PR rtl-optimization/48272
2358 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2359 init_insn_reg_pressure_info. Adjust a caller.
2360 * sched-int.h (init_insn_reg_pressure_info): Declare.
2361 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2362 when sched-pressure is enabled.
2364 2011-04-08 Richard Guenther <rguenther@suse.de>
2366 * gimple.c (gimple_set_modified): Do not queue calls to
2367 MODIFIED_NORETURN_CALLS here ...
2368 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2370 2011-04-08 Richard Guenther <rguenther@suse.de>
2373 * toplev.c (lang_dependent_init): Do not open asm_out_file
2374 in WPA mode, nor perform debug machinery initialization.
2375 (finalize): Do not unlink asm_out_file in WPA mode.
2377 2011-04-08 Richard Guenther <rguenther@suse.de>
2379 * gimple.h (gimple_call_fntype): New function.
2380 (gimple_call_return_type): Use it.
2381 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2382 * gimple-low.c (gimple_check_call_args): Likewise.
2383 * gimple.c (gimple_call_flags): Likewise.
2384 (gimple_call_arg_flags): Likewise.
2385 (gimple_call_return_flags): Likewise.
2386 * tree-cfg.c (verify_gimple_call): Likewise.
2387 (do_warn_unused_result): Likewise.
2388 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2389 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2391 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2393 PR rtl-optimization/48235
2394 * sel-sched.c (code_motion_process_successors): Recompute the last
2395 insn in basic block if control flow changed.
2396 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2397 Update condition for ilist_remove.
2399 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2401 PR rtl-optimization/48302
2402 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2403 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2404 it to record added preheader blocks.
2405 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2406 on to sel_add_loop_preheaders.
2407 (sel_region_init): Move call to setup_current_loop_nest after
2410 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2413 * cfgloop.h (loop_has_exit_edges): New helper.
2414 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2416 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2417 that have no exit edges.
2419 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2421 PR rtl-optimization/48442
2422 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2423 all callers. Adjust assert.
2425 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2427 PR tree-optimization/48377
2428 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2429 is_packed to true even for types with smaller TYPE_ALIGN than
2432 2011-04-08 Richard Guenther <rguenther@suse.de>
2435 * doc/tm.texi: Re-generate.
2437 2011-04-08 Wei Guozhi <carrot@google.com>
2440 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2441 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2442 * config/arm/arm.md (*push_multi): Change the length computation to
2445 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2447 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2448 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2449 * doc/tm.texi: Regenerate.
2450 * system.h (ASM_OUTPUT_BSS): Poison.
2451 * varasm.c (asm_output_bss): Remove function.
2452 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2454 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2455 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2456 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2457 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2459 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2461 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2463 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2465 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2467 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2470 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2472 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2473 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2474 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2476 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2477 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2478 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2479 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2480 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2481 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2482 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2483 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2484 options. Don't map other m68k options manually. Don't handle
2485 old-style options as canonical.
2486 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2487 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2489 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2491 * basic-block.h (force_nonfallthru): Move to...
2492 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2493 (force_nonfallthru): ...here.
2494 * cfghooks.c (force_nonfallthru): New function.
2495 * cfgrtl.c (force_nonfallthru): Rename into...
2496 (rtl_force_nonfallthru): ...this.
2497 (commit_one_edge_insertion): Do not set AUX field.
2498 (commit_edge_insertions): Do not discover new basic blocks.
2499 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2500 (cfg_layout_rtl_cfg_hooks): Likewise.
2501 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2502 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2503 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2505 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2507 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2510 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2512 * config/i386/sse.md: Update copyright year.
2513 (avxcvtvecmode): Remove.
2514 (sse_movhlps): Merge with *avx_movhlps.
2515 (sse_movlhps): Merge with *avx_movlhps.
2516 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2517 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2518 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2519 (sse_loadhps): Merge with *avx_loadhps.
2520 (sse_storelps): Merge with *avx_storelps.
2521 (sse_loadlps): Merge with *avx_loadlps.
2522 (sse_movss): Merge with *avx_movss.
2523 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2524 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2525 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2526 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2527 (vec_set<mode>_0): Ditto.
2528 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2529 (sse4_1_insertps): Merge with *avx_insertps.
2530 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2531 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2532 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2533 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2534 (sse2_storehpd): Merge with *avx_storehpd.
2535 (sse2_loadhpd): Merge with *avx_loadhpd.
2536 (sse2_loadlpd): Merge with *avx_loadlpd.
2537 (sse2_movsd): Merge with *avx_movsd.
2538 (*vec_concatv2df): Merge with *vec_concatv2df.
2540 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2543 * combine.c (combine_instructions): Add last_combined_insn,
2544 update it if insn is after it, pass it to all try_combine calls.
2545 (try_combine): Add last_combined_insn parameter, pass it instead of
2546 i3 to propagate_for_debug.
2548 2011-04-07 Nick Clifton <nickc@redhat.com>
2550 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2551 to handle MDR <-> data register transfers.
2552 (movhi_internal): Likewise.
2554 2011-04-07 Alan Modra <amodra@gmail.com>
2556 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2557 previous stack info.
2559 2011-04-07 Tom de Vries <tom@codesourcery.com>
2562 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2563 flow_find_cross_jump. Swap variables to implement backward replacement.
2564 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2566 2011-04-07 Tom de Vries <tom@codesourcery.com>
2569 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2570 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2572 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2573 src1 or src2. Redirect edges to the last basic block. Update
2574 frequency and count on multiple basic blocks in case of fallthru.
2576 2011-04-07 Tom de Vries <tom@codesourcery.com>
2579 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2581 (old_insns_match_p): Change return type. Replace return false/true
2582 with return dir_none/dir_both. Use can_replace_by.
2583 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2584 direction from dir_p. Register replacement direction in dir, last_dir
2585 and afterlast_dir. Handle new return type of old_insns_match_p using
2586 merge_dir. Return replacement direction in dir_p.
2587 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2588 return type of old_insns_match_p.
2589 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2590 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2591 flow_find_cross_jump.
2592 * basic-block.h (enum replace_direction): New type.
2593 (flow_find_cross_jump): Add parameter to declaration.
2595 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2597 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2598 (AVXMODEDCVTPS2DQ): Ditto.
2599 (VEC_FLOAT_MODE): Ditto.
2600 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2601 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2602 (<any_logic:code><mode>3): Use VF mode iterator.
2603 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2604 Use VF mode iterator.
2605 (copysign<mode>3): Use VF mode iterator.
2606 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2607 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2608 (*<any_logic:code><MODEF:mode>3): Merge with
2609 *avx_<any_logic:code><MODEF:mode>3.
2610 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2611 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2612 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2613 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2614 (sse2_cvtdq2ps): Use %v modifier.
2615 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2616 (avx_cvtps2dq<avxmodesuffix>): Remove.
2617 (sse2_cvtps2dq): Use %v modifier.
2618 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2619 (avx_cvttps2dq<avxmodesuffix>): Remove.
2620 (sse2_cvttps2dq): Use %v modifier.
2621 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2622 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2623 (sse2_cvtsd2siq): Fix insn template.
2624 (sse2_cvtsd2siq_2): Ditto.
2625 (sse2_cvttsd2siq): Ditto.
2626 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2627 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2629 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2631 * gcov-io.c: Use GCC Runtime Library Exception.
2633 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2636 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2637 as base_reg whatever register reg has been eliminated to, instead
2638 of hardcoding STACK_POINTER_REGNUM.
2640 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2642 * doc/tm.texi.in: Document C target hooks as separate from general
2644 * doc/tm.texi: Regenerate.
2645 * genhooks.c (struct hook_desc): Add docname field.
2646 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2648 (hook_array): Include c-target.def.
2649 (emit_documentation): Use docname field in output.
2650 (emit_init_macros): Take docname argument. Only emit definitions
2651 for hooks matching docname.
2652 (main): Expect additional arguments in all cases. Pass argument
2653 to emit_init_macros.
2654 * target.def: Move initial macro definitions and comments to
2655 target-hooks-macros.h.
2656 (gcc_targetcm): Move to c-family/c-target.def.
2657 * target.h (targetcm): Move declaration to c-family/c-target.h.
2658 * targhooks.c (default_handle_c_option): Move to
2660 * targhooks.h (default_handle_c_option): Move declaration to
2661 c-family/c-common.h.
2662 * target-hooks-macros.h: New file.
2663 * config.gcc (target_has_targetcm): Define and use to add to
2664 c_target_objs and cxx_target_objs.
2665 * config/default-c.c: New file.
2666 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2667 of target.h and target-def.h.
2668 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2669 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2670 darwin_check_cfstring_format_arg): Make static.
2671 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2672 TARGET_STRING_OBJECT_REF_TYPE_P,
2673 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2674 * config/darwin-protos.h (darwin_objc_construct_string,
2675 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2677 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2678 TARGET_STRING_OBJECT_REF_TYPE_P,
2679 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2680 * config/t-darwin (darwin-c.o): Update dependencies.
2681 * system.h (TARGET_HAS_TARGETCM): Poison.
2682 * Makefile.in (TARGET_H): Update.
2683 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2684 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2685 (default-c.o): New target.
2686 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2687 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2688 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2690 (build/genhooks.o): Update dependencies.
2692 2011-04-06 Richard Guenther <rguenther@suse.de>
2694 * ipa-inline.c (enum inlining_mode): Remove.
2695 (cgraph_flatten): Use some other token.
2696 (cgraph_edge_early_inlinable_p): New function, split out from ...
2697 (cgraph_perform_always_inlining): New function, split out from ...
2698 (cgraph_decide_inlining_incrementally): ... here.
2699 (cgraph_mark_inline_edge): Adjust.
2700 (cgraph_early_inlining): Re-structure.
2701 (pass_early_inline): Require SSA form.
2703 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2704 Julian Brown <julian@codesourcery.com>
2705 Mark Shinwell <shinwell@codesourcery.com>
2707 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2708 LO_REGS only for Thumb-1.
2709 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2710 be used in short instructions when optimising for size on Thumb-2.
2712 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2714 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2715 associated with user returns to be preserved.
2717 2011-04-06 Tristan Gingold <gingold@adacore.com>
2719 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2720 symbol_queue_size, DBXOUT_DECR_NESTING,
2721 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2722 if XCOFF_DEBUGGING_INFO.
2724 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2726 * config/i386/i386.md (attribute isa): New.
2727 (attribute enabled): New.
2728 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2729 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2730 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2731 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2732 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2733 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2734 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2735 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2737 * config/i386/sse.md (VF): New mode iterator.
2741 (SSEMODEF4): Remove.
2742 (attribute sse): Handle V8SF and V4DF modes.
2743 (<absneg:code><mode>2): Use VF mode iterator.
2744 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2746 (<plusminus_insn><mode>3): Use VF mode iterator.
2747 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2748 Use VF mode iterator.
2749 (<sse>_vm<plusminus_insn><mode>3): Merge with
2750 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2751 (mul<mode>3): Use VF mode iterator.
2752 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2753 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2755 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2756 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2757 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2758 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2760 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2761 Use VF1 mode iterator.
2762 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2763 (sqrt<VF2:mode>2): New expander.
2764 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2765 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2766 and sqrtv2df2. Use VF mode iterator.
2767 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2769 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2770 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2771 Use VF1 mode iterator.
2772 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2773 (<smaxmin:code><mode>3): Use VF mode iterator.
2774 (*<smaxmin:code><mode>3_finite): Merge with
2775 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2776 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2777 (<sse>_vm<smaxmin:code><mode>2): Merge with
2778 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2779 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2781 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2783 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2784 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2785 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2786 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2787 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2789 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2790 Use VF_128 mode iterator.
2791 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2793 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2794 VF_128 mode iterator.
2795 (vcond<mode>): Use VF mode iterator.
2796 * config/i386/predicates.md (sse_comparison_operator): Merge with
2797 avx_comparison_float_operator. Do not declare as special_predicate.
2798 * config/i386/i386.c (struct builtin_description): Update for renamed
2800 (ix86_expand_args_builtin): Ditto.
2801 (ix86_expand_sse_compare_mask): Ditto.
2803 2011-04-06 Richard Guenther <rguenther@suse.de>
2805 * tree-inline.c (estimate_num_insns): For calls simply account
2806 for all passed arguments and a used return value.
2808 2011-04-06 Richard Guenther <rguenther@suse.de>
2810 PR tree-optimization/47663
2811 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2812 call_stmt_time fields.
2813 (cgraph_edge_inlinable_p): Declare.
2814 (cgraph_edge_recursive_p): New inline function.
2815 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2816 (cgraph_clone_edge): Copy it.
2817 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2818 Account for call stmt time.
2819 (cgraph_estimate_time_after_inlining): Take edge argument.
2820 (cgraph_estimate_edge_growth): Account call stmt size.
2821 (cgraph_estimate_size_after_inlining): Take edge argument.
2822 (cgraph_mark_inline_edge): Adjust.
2823 (cgraph_check_inline_limits): Likewise.
2824 (cgraph_recursive_inlining_p): Remove.
2825 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2826 (cgraph_decide_recursive_inlining): Take edge argument and
2828 (cgraph_decide_inlining_of_small_functions): Do not avoid
2829 diags for recursive inlining here.
2830 (cgraph_flatten): Adjust.
2831 (cgraph_decide_inlining_incrementally): Likewise.
2832 (estimate_function_body_sizes): Remove call cost handling.
2833 (compute_inline_parameters): Initialize caller edge call costs.
2834 (cgraph_estimate_edge_growth): New function.
2835 (cgraph_estimate_growth): Use it.
2836 (cgraph_edge_badness): Likewise.
2837 (cgraph_check_inline_limits): Take an edge argument.
2838 (cgraph_decide_inlining_of_small_functions): Adjust.
2839 (cgraph_decide_inlining): Likewise.
2840 * tree-inline.c (estimate_num_insns): Only account for call
2841 return value if it is used.
2842 (expand_call_inline): Avoid diagnostics on recursive inline
2844 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2845 (input_edge): Input edge call costs.
2847 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2849 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2851 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2853 * doc/invoke.texi (Spec Files): Fix typo.
2855 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2857 * profile.c (branch_prob): Move declaration of local variable. Remove
2858 obsolete ??? comment. Expand the location explicitly instead of using
2859 the LOCATION_FILE and LOCATION_LINE macros.
2861 2011-04-06 Wei Guozhi <carrot@google.com>
2864 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2865 (arm_cond_branch): Likewise.
2866 (arm_cond_branch_reversed): Likewise.
2867 (arm_jump): Likewise.
2868 (push_multi): Likewise.
2869 * config/arm/constraints.md (Py): New constraint.
2871 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2874 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2876 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2877 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2878 #ifdef DBX_DEBUGGING_INFO.
2880 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2883 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2884 if old and new states differ.
2886 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2888 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2889 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2890 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2891 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2892 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2894 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2895 ColdFire options to -mcpu= options.
2897 2011-04-05 Jeff Law <law@redhat.com>
2899 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2900 check if BB is a successor of LOOP->header and return
2901 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2903 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2905 * cprop.c (struct reg_use): Remove.
2906 (reg_use_table): Make an array of RTX.
2907 (find_used_regs, constprop_register, local_cprop_pass,
2908 bypass_block): Simplify users of reg_use_table.
2909 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2910 on one of the uses found by find_used_regs.
2912 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2915 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2918 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2920 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2922 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2924 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2927 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2929 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2931 * combine.c: Include obstack.h.
2932 (struct insn_link): Define.
2933 (uid_log_links): Adjust type.
2934 (FOR_EACH_LOG_LINK): New macro.
2935 (insn_link_obstack): Declare.
2936 (alloc_insn_link): Define.
2937 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2938 type of link variables.
2939 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2940 (try_combine, record_promoted_values, distribute_notes): Likewise.
2941 (distribute_links): Likewise. Tweak prototype.
2942 (clear_log_links): Delete.
2943 (adjust_for_new_dest): Call alloc_insn_link.
2944 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2946 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2948 * gcse.c (modify_mem_list): Convert to an array of VECs.
2949 (canon_modify_mem_list, compute_transp): Tweak formatting.
2950 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2951 (load_killed_in_block_p): Likewise.
2952 (record_last_mem_set_info): Likewise.
2953 (clear_modify_mem_tables): Likewise.
2955 2011-04-05 Tom de Vries <tom@codesourcery.com>
2958 * function.c (emit_use_return_register_into_block): Only define if
2961 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2963 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2965 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2967 * config/rx/rx-opts.h: New.
2968 * config/rx/rx.c (rx_cpu_type): Remove.
2969 (rx_handle_option): Don't assert that global structures are in
2970 use. Access variables via opts pointer. Defer most handling of
2971 OPT_mint_register_. Use error_at.
2972 (rx_option_override): Handle deferred OPT_mint_register_ here.
2973 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2974 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2975 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2976 (rx_cpu_types): New Enum and EnumValue entries.
2977 (mint-register=): Use Defer and use Var accordingly.
2979 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2981 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2982 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2983 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2985 (debug_free_queue, debug_nesting, symbol_queue_index):
2987 * dbxout.c: ...to here. Make static.
2989 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2991 * gcse.c (modify_pair): Define. Define a VEC of it.
2992 (canon_modify_mem_list): Convert to an array of VECs.
2993 (free_insn_expr_list_list): Delete.
2994 (clear_modify_mem_tables): Call VEC_free instead.
2995 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2996 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2997 (canon_list_insert, compute_transp): Likewise.
2999 2011-04-05 Tom de Vries <tom@codesourcery.com>
3002 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3005 2011-04-05 Tom de Vries <tom@codesourcery.com>
3008 * function.c (emit_use_return_register_into_block): New function.
3009 (thread_prologue_and_epilogue_insns): Use
3010 emit_use_return_register_into_block.
3012 2011-04-05 Tom de Vries <tom@codesourcery.com>
3015 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3018 2011-04-05 Tom de Vries <tom@codesourcery.com>
3020 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3022 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3024 * config/arm/arm.md (define_constants for unspec): Replace with
3026 (define_constants for unspecv): Replace with define_c_enum.
3027 * config/arm/neon.md (define_constants for unspec): Replace with
3030 2011-04-04 Richard Henderson <rth@redhat.com>
3033 * dwarf2out.c (output_line_info): Always emit line info from
3034 at least one section.
3035 (dwarf2out_init): Create text_section_line_info here ...
3036 (set_cur_line_info_table): ... not here.
3038 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3041 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3044 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3046 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3048 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3049 (expr_equiv_p): Remove.
3050 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3051 (hash_scan_set): Update call to insert_set_in_table.
3052 (dump_hash_table): Dump <dest, src> pair.
3053 (lookup_set): Simplify. Lookup <dest, src> pair.
3054 (compute_transp): Remove, fold heavily simplified code into...
3055 (compute_local_properties): ...here. Expect COMP and TRANSP
3057 (find_avail_set): Take set directly from struct expr.
3058 (find_bypass-set): Likewise.
3059 (bypass_block): Likewise.
3060 (cprop_insn): Likewise. Remove redundant INSN_P test.
3062 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3063 checks on form of COND from find_implicit_sets to here.
3064 (find_implicit_sets): Cleanup control flow. Split critical edges
3065 if it exposes implicit sets. Allocate/resize implicit_sets as
3067 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3068 changed something. Run df_analyze after find_implicit_sets if any
3069 edges were split. Do not allocate implicit_sets here.
3071 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3072 (gcse_obstack): Renamed to cprop_obstack.
3073 (GNEW, GNEWVEC, GNEWVAR): Remove.
3075 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3076 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3077 (gcse_alloc): Likewise, and rename to cprop_alloc.
3078 (alloc_gcse_men, free_gcse_mem): Remove.
3079 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3080 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3081 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3083 * cprop.c (oprs_not_set_p): Remove.
3084 (mark_set, mark_clobber): Remove.
3085 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3086 (reg_not_set_p): New function.
3087 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3088 (cprop_insn): Likewise.
3089 (cprop_jump): Use FOR_EACH_EDGE.
3091 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3094 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3095 (rank_for_schedule): Use scheduled_insns vector instead of
3096 last_scheduled_insn.
3097 (ok_for_early_queue_removal): Likewise.
3098 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3100 (choose_ready): Likewise.
3101 (commit_schedule): Use VEC_iterate.
3102 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3103 a dbg_cnt, use it and ensure the first insn is in the ready list.
3104 (haifa_sched_init): Allocate scheduled_insns.
3105 (sched_extend_ready_list): Don't allocate it; reserve space.
3106 (haifa_sched_finish): Free it.
3108 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3110 * optc-gen.awk: Always remove type from Variable entry before
3111 recording in var_seen.
3113 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3115 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3116 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3117 call to tidy_fallthru_edges.
3119 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3121 * doc/options.texi (ToLower): Document.
3122 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3123 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3124 * opts.h (cl_option): Add cl_tolower field.
3125 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3126 arguments with lowercase strings.
3127 * config/rx/rx.opt (mcpu=): Add ToLower.
3128 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3131 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3133 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3135 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3137 * config/vax/vax.c: Include reload.h.
3139 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3141 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3142 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3143 (sparc_preferred_reload_class): New function.
3145 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3148 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3149 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3151 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3153 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3154 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3156 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3158 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3159 (ASM_OUTPUT_ALIGNED_BSS): Define.
3161 2011-04-03 Michael Matz <matz@suse.de>
3163 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3164 and next_slot members.
3165 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3166 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3167 (lto_streamer_cache_append): Declare.
3168 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3169 unsigned index, remove offset parameter, ensure that we append
3170 or update existing entries.
3171 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3172 parameter, update next_slot for append.
3173 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3175 (lto_streamer_cache_insert_at): Likewise.
3176 (lto_streamer_cache_append): New function.
3177 (lto_streamer_cache_lookup): Use unsigned index.
3178 (lto_streamer_cache_get): Likewise.
3179 (lto_record_common_node): Don't test tree_node_can_be_shared.
3180 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3181 (lto_streamer_cache_delete): Don't free offsets member.
3182 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3183 (lto_output_string_with_length): Use lto_output_data_stream.
3184 (lto_output_tree_header): Remove ix parameter, don't write it.
3185 (lto_output_builtin_tree): Likewise.
3186 (lto_write_tree): Adjust callers to above, don't track and write
3187 offset, write unsigned index.
3188 (output_unreferenced_globals): Don't emit all global vars.
3189 (write_global_references): Use unsigned indices.
3190 (lto_output_decl_state_refs): Likewise.
3191 (write_symbol): Likewise.
3192 * lto-streamer-in.c (lto_input_chain): Move earlier.
3193 (input_function): Use unsigned index.
3194 (input_alias_pairs): Don't read and then ignore all global vars.
3195 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3196 don't pass it back, use lto_streamer_cache_append.
3197 (lto_register_var_decl_in_symtab): Use unsigned index.
3198 (lto_register_function_decl_in_symtab): Likewise.
3199 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3201 (lto_get_builtin_tree): Don't read index, use
3202 lto_streamer_cache_append.
3203 (lto_read_tree): Adjust call to lto_materialize_tree.
3205 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3206 don't use function calls in arguments to MIN.
3208 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3211 * gimple.c (gimple_type_leader_entry): Mark deletable.
3213 2011-04-03 Alan Modra <amodra@gmail.com>
3215 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3217 2011-04-03 Michael Matz <matz@suse.de>
3219 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3221 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3223 2011-04-03 Michael Matz <matz@suse.de>
3225 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3226 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3227 without function context.
3228 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3229 current_function_decl and cfun.
3231 2011-04-03 Michael Matz <matz@suse.de>
3233 * tree.c (decl_init_priority_insert): Don't create entry for
3235 (decl_fini_priority_insert): Ditto.
3236 (fields_compatible_p, find_compatible_field): Remove.
3237 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3238 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3240 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3242 * combine.c (try_combine): Remove useless local variable.
3244 2011-04-03 Richard Guenther <rguenther@suse.de>
3245 Ira Rosen <ira.rosen@linaro.org>
3247 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3248 non-variable offsets and compare the remaining bases of the two
3249 accesses instead of looking for exact same data-ref.
3251 2011-04-02 Kai Tietz <ktietz@redhat.com>
3254 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3256 * i386.c (ix86_is_msabi_thiscall): New helper function.
3257 (ix86_is_type_thiscall): New helper function.
3258 (ix86_comp_type_attributes): Handle thiscall for method-functions
3260 (init_cumulative_args): Likewise.
3261 (find_drap_reg): Likewise.
3262 (ix86_static_chain): Likewise.
3263 (x86_this_parameter): Likewise.
3264 (x86_output_mi_thunk): Likewise.
3266 2011-04-01 Olivier Hainque <hainque@adacore.com>
3267 Nicolas Setton <setton@adacore.com>
3268 Eric Botcazou <ebotcazou@adacore.com>
3270 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3271 (add_gnat_descriptive_type_attribute): New function.
3272 (gen_array_type_die): Call it.
3273 (gen_enumeration_type_die): Likewise.
3274 (gen_struct_or_union_type_die): Likewise.
3275 (modified_type_die): Likewise.
3276 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3277 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3278 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3280 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3283 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3284 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3287 2011-03-17 Richard Guenther <rguenther@suse.de>
3290 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3291 origin for decls in other ltrans units.
3292 (input_varpool_node): Likewise.
3294 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3297 * expr.c (expand_assignment): Handle all possibilities
3298 if TO_RTX is CONCAT.
3299 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3300 (store_split_bit_field): If SUBREG_REG (op0) or
3301 op0 itself has smaller mode than word, return it
3302 for offset 0 and const0_rtx for out-of-bounds stores.
3303 If word is const0_rtx, skip it.
3305 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3307 * config/h8300/h8300.c (print_operand_address): Rename to...
3308 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3309 Call h8300_print_operand and h8300_print_operand_address instead of
3310 print_operand and print_operand_address. Declare.
3311 (print_operand): Renake to...
3312 (h8300_print_operand): ...this. Make static. Adjust comments.
3313 Call h8300_print_operand instead of print_operand. Declare.
3314 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3315 (h8300_register_move_cost): Likewise.
3316 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3317 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3318 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3319 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3320 * config/h8300/h8300-protos.h (print_operand): Delete.
3321 (print_operand_address): Delete.
3323 2011-04-01 Richard Henderson <rth@redhat.com>
3326 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3327 in strict mode before dwarf4. Re-order tests to early out
3328 before switching sections.
3330 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3332 * config/h8300/constraints.md: New file.
3333 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3334 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3335 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3336 * config/h8300/predicates.md (bit_operand): Likewise.
3337 (incdec_operand): Use satisfies_constraint_M and
3338 satisfies_constraint_O. Don't use C code block.
3339 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3340 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3341 (compute_mov_length): Use satisfies_constraint_G.
3342 (fix_bit_operand): Use satisfies_constraint_U.
3343 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3344 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3345 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3346 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3347 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3348 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3349 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3350 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3351 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3352 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3353 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3354 (EXTRA_MEMORY_CONSTRAINT): Delete.
3356 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3357 Michael Meissner <meissner@linux.vnet.ibm.com>
3360 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3361 operands, as per the specifications.
3363 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3364 (vec_extract_evenv4sf): Ditto.
3365 (vec_extract_evenv8hi): Ditto.
3366 (vec_extract_evenv16qi): Ditto.
3367 (vec_extract_oddv4si): Ditto.
3369 2011-03-31 Mark Wielaard <mjw@redhat.com>
3371 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3372 high_pc attribute if the CU has no associated code. Only output
3373 DW_AT_entry_pc for CU if not generating strict dwarf and
3376 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3378 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3379 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3381 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3382 * final.c (final_start_function): Call the new function rather
3383 than using a NULL argument for dwarf2out_frame_debug.
3385 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3386 that contains the prologue.
3388 * haifa-sched.c (queue_insn): New arg REASON. All callers
3389 changed. Print it in debugging output.
3391 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3393 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3394 Split most of the code into...
3395 (begin_move_insn): ... here. New function.
3396 (ebb_sched_info): Add a pointer to it.
3397 * haifa-sched.c (scheduled_insns): New static variable.
3398 (sched_extend_ready_list): Allocate it.
3399 (schedule_block): Use it to record the order of scheduled insns.
3400 Perform RTL changes to move insns only after all scheduling
3401 decisions have been made.
3402 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3403 begin_move_insn field.
3404 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3405 * sched-int.h (struct haifa_sched_info): Remove second argument
3406 from begin_schedule_ready hook. Add new member begin_move_insn.
3407 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3408 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3410 * haifa-sched.c (prune_ready_list): New function, broken out of
3412 (schedule_block): Use it.
3414 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3416 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3418 2011-04-01 Kai Tietz <ktietz@redhat.com>
3420 * config.gcc (*-*-mingw*): Allow as option the
3421 posix threading model.
3422 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3423 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3425 (CPP_SPEC): Add pthread/no-pthread handling.
3426 (LIB_SPEC): Likewise.
3427 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3428 (LIB_SPEC): Likewise.
3429 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3430 flag to pass -pthread option for shared libgcc build.
3431 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3432 for shared libgcc build.
3433 * config/i386/t-mingw-pthread: New file.
3434 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3435 New define to enable use of library pthread by default.
3436 * config/i386/mingw.opt (pthread): New driver option.
3437 (no-pthread): New driver option.
3438 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3439 * config/i386/mingw-w64.opt: Likewise.
3441 2011-04-01 Gary Funck <gary@intrepid.com>
3443 * c-decl.c (grokdeclarator): Fix formatting.
3445 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3447 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3448 instead of n_operands.
3449 (set_storage_via_setmem): Likewise.
3450 * optabs.c (maybe_gen_insn): Likewise.
3451 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3452 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3453 (mips_expand_builtin_direct): Likewise.
3454 * config/spu/spu.c (expand_builtin_args): Likewise.
3456 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3458 * recog.h (insn_data_d): Add n_generator_args.
3459 * genoutput.c (data): Likewise.
3460 (output_insn_data): Print it.
3461 (max_opno, num_dups): Delete.
3462 (scan_operands): Just fill in "d->operand[...]".
3463 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3465 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3467 * gensupport.h (pattern_stats): New structure.
3468 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3469 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3470 (max_operand_1, max_operand_vec): Delete.
3471 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3473 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3475 * emit-rtl.c (emit_pattern_after_setloc): New function.
3476 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3477 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3478 (emit_pattern_after): New function.
3479 (emit_insn_after, emit_jump_insn_after): Call it.
3480 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3481 (emit_pattern_before_setloc): New function.
3482 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3483 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3485 (emit_pattern_before): New function.
3486 (emit_insn_before, emit_jump_insn_before): Call it.
3487 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3489 2011-03-31 Richard Henderson <rth@redhat.com>
3491 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3492 (dw_separate_line_info_entry): Remove.
3493 (enum dw_line_info_opcode): New.
3494 (dw_line_info_entry): Use it.
3495 (dw_line_info_table, dw_line_info_table_p): New.
3496 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3497 (line_info_table, line_info_label_num): Remove.
3498 (line_info_table_in_use): Remove.
3499 (separate_line_info_table): Remove.
3500 (separate_line_info_table_allocated): Remove.
3501 (separate_line_info_table_in_use): Remove.
3502 (LINE_INFO_TABLE_INCREMENT): Remove.
3503 (line_info_label_num): New.
3504 (cur_line_info_table): New.
3505 (text_section_line_info, cold_text_section_line_info): New.
3506 (separate_line_info): New.
3507 (SEPARATE_LINE_CODE_LABEL): Remove.
3508 (print_dwarf_line_table): Remove.
3509 (debug_dwarf): Don't dump it.
3510 (output_one_line_info_table): New.
3511 (output_line_info): Use it.
3512 (new_line_info_table): New.
3513 (set_cur_line_info_table): New.
3514 (dwarf2out_switch_text_section): Use it.
3515 (dwarf2out_begin_function): Likewise.
3516 (push_dw_line_info_entry): New.
3517 (dwarf2out_source_line): Rewrite for new line info tables.
3518 (dwarf2out_init): Remove dead initailizations.
3520 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3522 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3524 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3525 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3526 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3527 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3528 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3529 * opt-functions.awk (flag_init, switch_bit_fields): New.
3530 (switch_flags): Don't handle flags moved to bit-fields. Don't
3531 generate CL_MISSING_OK or CL_SAVE.
3532 * optc-gen.awk: Update to generate bit-field output as well as
3534 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3535 bit-field instead of CL_REJECT_DRIVER flag.
3536 * opts-common.c (generate_canonical_option,
3537 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3538 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3539 instead of CL_REJECT_NEGATIVE flag.
3540 * toplev.c (print_switch_values): Use cl_report bit-field instead
3543 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3545 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3546 a zero minimum index only if it is redundant.
3548 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3550 PR rtl-optimization/48381
3551 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3552 instead of ira_class_hard_reg_index for calculating conflicting
3555 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3557 * cprop.c: Clean up hash table building.
3558 (reg_avail_info): Remove.
3559 (oprs_available_p): Remove.
3560 (record_last_reg_set_info): Remove.
3561 (record_last_set_info): Remove.
3562 (reg_available_p): New function.
3563 (gcse_constant_p): Do not treat unfolded conditions as constants.
3564 (make_set_regs_unavailable): New function.
3565 (hash_scan_set): Simplify with new reg_available_p.
3566 (compute_hash_table_work): Traverse insns stream only once.
3567 Do not compute reg_avail_info. Traverse insns in reverse order.
3568 Record implicit sets after recording explicit sets from the block.
3570 2011-03-31 Michael Matz <matz@suse.de>
3572 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3574 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3576 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3577 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3578 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3579 (h8300_mode_dependent_address_p): New function.
3580 (h8300_get_index): Make static.
3582 2011-03-31 Jeff Law <law@redhat.com>
3584 * reload1.c (elimination_effects): Fix typo in recent change.
3586 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3587 typo potentially leading to null pointer dereference.
3589 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3590 (setup_save_areas): Corresponding changes to avoid useless
3593 * jump.c (reversed_comparison_code_parts): Avoid successive return
3594 statements when REVERSE_CONDITION is defined.
3596 * expr.c (expand_assignment): Avoid useless assignments.
3597 (expand_expr_real_1): Likewise.
3598 (expand_expr_real_2): Avoid useless statements.
3600 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3602 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3604 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3607 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3609 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3612 * doc/tm.texi.in (TARGET_VERSION): Remove.
3613 * doc/tm.texi: Regenerate.
3614 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3615 * collect2.c (main): Don't use TARGET_VERSION.
3616 * mips-tdump.c (main): Don't use TARGET_VERSION.
3617 * mips-tfile.c (main): Don't use TARGET_VERSION.
3618 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3619 * config/rs6000/vxworksae.h: Remove.
3620 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3621 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3622 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3623 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3624 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3625 * config/arm/arm.h (TARGET_VERSION): Remove.
3626 * config/arm/coff.h (TARGET_VERSION): Remove.
3627 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3628 * config/arm/elf.h (TARGET_VERSION): Remove.
3629 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3630 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3631 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3632 * config/arm/pe.h (TARGET_VERSION): Remove.
3633 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3634 * config/arm/semi.h (TARGET_VERSION): Remove.
3635 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3636 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3637 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3638 * config/avr/avr.h (TARGET_VERSION): Remove.
3639 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3640 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3641 * config/frv/frv.h (TARGET_VERSION): Remove.
3642 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3643 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3644 * config/i386/darwin.h (TARGET_VERSION): Remove.
3645 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3646 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3647 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3648 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3649 * config/i386/gnu.h (TARGET_VERSION): Remove.
3650 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3651 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3652 * config/i386/linux.h (TARGET_VERSION): Remove.
3653 * config/i386/linux64.h (TARGET_VERSION): Remove.
3654 * config/i386/lynx.h (TARGET_VERSION): Remove.
3655 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3656 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3657 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3658 * config/i386/netware.h (TARGET_VERSION): Remove.
3659 * config/i386/nto.h (TARGET_VERSION): Remove.
3660 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3661 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3662 * config/ia64/elf.h (TARGET_VERSION): Remove.
3663 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3664 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3665 * config/ia64/linux.h (TARGET_VERSION): Remove.
3666 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3667 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3668 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3669 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3670 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3671 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3672 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3673 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3674 * config/m68k/linux.h (TARGET_VERSION): Remove.
3675 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3676 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3677 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3678 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3679 * config/mep/mep.h (TARGET_VERSION): Remove.
3680 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3681 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3682 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3683 * config/mips/linux.h (TARGET_VERSION): Remove.
3684 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3685 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3686 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3687 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3688 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3689 * config/pa/pa.h (TARGET_VERSION): Remove.
3690 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3691 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3692 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3693 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3694 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3695 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3696 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3697 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3698 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3699 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3700 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3701 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3702 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3703 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3704 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3705 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3706 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3707 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3708 * config/s390/linux.h (TARGET_VERSION): Remove.
3709 * config/s390/s390.h (TARGET_VERSION): Remove.
3710 * config/s390/tpf.h (TARGET_VERSION): Remove.
3711 * config/score/score.h (TARGET_VERSION): Remove.
3712 * config/sh/linux.h (TARGET_VERSION): Remove.
3713 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3714 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3715 * config/sh/sh.h (TARGET_VERSION): Remove.
3716 * config/sh/sh64.h (TARGET_VERSION): Remove.
3717 * config/sh/superh.h (TARGET_VERSION): Remove.
3718 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3719 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3720 * config/sparc/linux.h (TARGET_VERSION): Remove.
3721 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3722 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3723 TARGET_NAME32, TARGET_NAME): Remove.
3724 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3725 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3726 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3727 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3728 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3729 * config/spu/spu.h (TARGET_VERSION): Remove.
3730 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3731 * config/v850/v850.h (TARGET_VERSION): Remove.
3732 * config/vax/linux.h (TARGET_VERSION): Remove.
3733 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3734 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3735 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3737 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3740 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3741 frame-related from frame-unrelated adjustments to the stack pointer.
3743 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3745 * common.opt (fdebug-types-section): Move earlier.
3746 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3748 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3750 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3753 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3755 * tree.h (CASE_CHAIN): Define.
3756 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3757 (gimple_redirect_edge_and_branch): Likewise.
3759 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3762 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3765 2011-03-30 Jeff Law <law@redhat.com>
3767 * PR bootstrap/48371
3768 * reload1.c (reload): Fix botch in last change.
3770 * reload.h (struct reload): Fix typo introduced in last change.
3772 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3774 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3775 Undocumented. Remove help text.
3776 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3779 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3781 * doc/options.texi (NegativeAlias): Document.
3782 (Alias): Mention NegativeAlias.
3783 * opt-functions.awk: Handle NegativeAlias.
3784 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3785 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3786 * opts.h (CL_NEGATIVE_ALIAS): Define.
3787 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3788 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3790 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3792 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3793 mno-spe and mno-isel instead of mspe=no and -misel=no.
3795 2011-03-29 Mark Wielaard <mjw@redhat.com>
3797 * common.opt (fdebug-types-section): New flag.
3798 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3799 * dwarf2out.c (use_debug_types): New define.
3800 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3801 (print_die): Guard output of type unit signatures using
3803 (build_abbrev_table): Replace assert of dwarf_version >= 4
3804 with assert on use_debug_types.
3805 (size_of_die): Likewise.
3806 (unmark_dies): Likewise.
3807 (value_format): Decide AT_ref_external form on use_debug_types.
3808 (output_die): Replace dwarf_version version check guard with
3809 use_debug_types where appropriate.
3810 (modified_type_die): Likewise.
3811 (gen_reference_type_die): Likewise.
3812 (dwarf2out_start_source_file): Likewise.
3813 (dwarf2out_end_source_file): Likewise.
3814 (prune_unused_types_walk_attribs): Likewise.
3815 (dwarf2out_finish): Likewise.
3817 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3819 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3821 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3823 PR rtl-optimization/48332
3824 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3825 mode of input operand N and modeN to its actual mode.
3827 2011-03-30 Jeff Law <law@redhat.com>
3829 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3830 define accessor macro.
3831 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3832 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3833 (reg_equiv_init): Likewise.
3834 (reg_equivs_size): New variable.
3835 (reg_equiv_init_size): Remove.
3836 (allocate_initial_values): Move prototype to here from....
3837 * integrate.h (allocate_initial_values): Remove prototype.
3838 * integrate.c: Include reload.h.
3839 (allocate_initial_values): Corresponding changes.
3840 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3841 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3842 (update_equiv_regs): Corresponding changes.
3843 (ira): Corresponding changes.
3844 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3845 (push_secondary_reload): Corresponding changes.
3846 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3847 (make_memloc, find_reloads_address): Corresponding changes.
3848 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3849 (find_reloads_address_1): Corresponding changes.
3850 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3851 (refers_to_regno_for_reload_p): Corresponding changes.
3852 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3853 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3854 * reload1.c: Include ggc.h.
3855 (grow_reg_equivs): New function.
3856 (replace_pseudos_in, reload): Corresponding changes.
3857 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3858 (eliminate_regs_1, elimination_effects): Corresponding changes.
3859 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3860 (delete_output_reload): Likewise.
3861 * caller-save.c (mark_referenced_regs): Corresponding changes.
3862 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3863 * frv/predicates.md (frv_load_operand): Corresponding changes.
3864 * microblaze/microblaze.c (double_memory_operand): Corresponding
3866 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3867 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3868 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3869 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3870 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3872 * pa/pa.c (emit_move_sequence): Corresponding changes.
3873 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3875 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3878 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3879 structure modes. Don't check neon_vector_mem_operand for
3880 vector or structure modes.
3882 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3883 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3886 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3887 operand 1 and reshuffle the operands to match.
3888 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3890 2011-03-30 Christian Schüler <cschueler@gmx.de>
3893 * config/c.opt (F): Added 'Driver' to -F option.
3896 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3898 * config/darwin.opt: Added '-arch' option.
3900 2011-03-30 Nick Clifton <nickc@redhat.com>
3902 * config/rx/rx.md: Add peepholes and patterns to combine
3903 extending loads and simple arithmetic instructions.
3904 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3905 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3906 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3907 modes to use pre-decrement and post-increment addressing.
3908 (rx_is_restricted_memory_address): Add range checking of REG+INT
3910 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3911 (rx_memory_move_cost): Adjust cost of stores.
3912 (rx_adjust_insn_length): New function.
3914 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3917 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3918 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3919 matching arg00/arg01 types.
3921 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3923 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3924 last_location to UNKNOWN_LOCATION.
3926 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3929 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3932 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3933 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3936 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3938 (sparc_cpu): Likewise.
3939 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3942 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3946 PR rtl-optimization/48345
3947 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3948 hard regs for given mode from profitable regs when doing secondary
3951 2011-03-29 Jeff Law <law@redhat.com>
3954 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3955 do_not_duplicate field.
3956 (lookup_redirection_data): Corresponding changes.
3957 (create_duplicates): Always create a template block.
3958 (redirect_edges): Remove code which reused the original block
3959 when it was going to become unreachable code.
3960 (thread_block): Don't set do_not_duplicate field.
3962 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3964 * lto-opts.c (register_user_option_p, lto_register_user_option):
3965 Make type argument unsigned.
3966 * lto-streamer.h (lto_register_user_option): Make type argument
3968 * opth-gen.awk: Make CL_* macros unsigned.
3969 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3970 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3971 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3972 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3973 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3974 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3975 (find_opt): Make lang_mask argument unsigned.
3977 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3979 PR rtl-optimization/48331
3980 PR rtl-optimization/48334
3981 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3982 for any used algorithm.
3984 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3986 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3989 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3991 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3992 (alpha_option_override): Don't set alpha_sr_alias_set.
3993 (emit_frame_store_1): Use gen_frame_mem rather than calling
3995 (alpha_expand_epilogue): Ditto.
3997 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3999 PR tree-optimization/48290
4000 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4001 vectorization, check that relevant phis in the basic block after
4002 the inner loop are really inner loop's exit phis.
4004 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4007 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4008 (cached_dw_loc_list_def): New structure.
4009 (cached_dw_loc_list): New typedef.
4010 (cached_dw_loc_list_table): New variable.
4011 (cached_dw_loc_list_table_hash): New function.
4012 (cached_dw_loc_list_table_eq): Likewise.
4013 (add_location_or_const_value_attribute): Take a bool cache_p.
4014 Cache the list when the parameter is true.
4015 (gen_formal_parameter_die): Update caller.
4016 (gen_variable_die): Likewise.
4017 (dwarf2out_finish): Likewise.
4018 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4019 while generating debug info for the decl.
4020 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4021 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4022 (resolve_addr): Cache the result of resolving a chain of
4025 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4027 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4028 conflict object hard regset nodes have intersecting hard reg sets.
4030 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4031 after regstat_init_n_sets_and_refs.
4033 * ira.c: Add more comments at the top.
4034 (setup_stack_reg_pressure_class, setup_pressure_classes):
4035 Add comments how we compute the register pressure classes.
4036 (setup_allocno_and_important_classes): Add more comments.
4037 (setup_class_translate_array, reorder_important_classes)
4038 (setup_reg_class_relations): Add comments.
4040 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4043 * ira-color.c: Add 2011 to the Copyright line.
4044 (assign_hard_reg): Add more comments.
4045 (improve_allocation): Ditto.
4047 * ira-costs.c: Add 2011 to the Copyright line.
4048 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4050 (setup_regno_cost_classes_by_mode): Ditto.
4052 Initial patches from ira-improv branch:
4054 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4056 * ira-build.c (ira_create_object): Remove initialization of
4057 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4058 (ira_create_allocno): Remove initialization of
4059 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4060 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4061 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4062 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4063 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4064 Initialize ALLOCNO_ADD_DATA.
4065 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4066 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4068 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4069 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4071 * ira.c (ira_reallocate): Remove.
4072 (setup_pressure_classes): Call
4073 ira_init_register_move_cost_if_necessary. Use
4074 ira_register_move_cost instead of ira_get_register_move_cost.
4075 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4076 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4078 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4079 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4080 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4081 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4082 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4083 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4085 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4086 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4087 (struct allocno_color_data): New.
4088 (allocno_color_data_t): New typedef.
4089 (allocno_color_data): New definition.
4090 (ALLOCNO_COLOR_DATA): New macro.
4091 (struct object_color_data): New.
4092 (object_color_data_t): New typedef.
4093 (object_color_data): New definition.
4094 (OBJECT_COLOR_DATA): New macro.
4095 (update_copy_costs, calculate_allocno_spill_cost): Call
4096 ira_init_register_move_cost_if_necessary. Use
4097 ira_register_move_cost instead of ira_get_register_move_cost.
4098 (move_spill_restore, update_curr_costs): Ditto.
4099 (allocno_spill_priority): Make it inline.
4100 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4101 (struct coalesce_data, coalesce_data_t): New.
4102 (allocno_coalesce_data): New definition.
4103 (ALLOCNO_COALESCE_DATA): New macro.
4104 (merge_allocnos, coalesced_allocno_conflict_p): Use
4105 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4106 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4107 (coalesce_allocnos): Ditto.
4108 (setup_coalesced_allocno_costs_and_nums): Ditto.
4109 (collect_spilled_coalesced_allocnos): Ditto.
4110 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4111 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4112 (coalesce_spill_slots): Ditto.
4113 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4114 free allocno_coalesce_data.
4116 * ira-conflicts.c: Fix formatting.
4117 (process_regs_for_copy): Call
4118 ira_init_register_move_cost_if_necessary. Use
4119 ira_register_move_cost instead of ira_get_register_move_cost.
4120 (build_object_conflicts): Optimize.
4122 * ira-costs.c (record_reg_classes): Optimize. Call
4123 ira_init_register_move_cost_if_necessary. Use
4124 ira_register_move_cost, ira_may_move_in_cost, and
4125 ira_may_move_out_cost instead of ira_get_register_move_cost and
4126 ira_get_may_move_cost.
4127 (record_address_regs): Ditto.
4128 (scan_one_insn): Optimize.
4129 (find_costs_and_classes): Optimize.
4130 (process_bb_node_for_hard_reg_moves): Call
4131 ira_init_register_move_cost_if_necessary. Use
4132 ira_register_move_cost instead of ira_get_register_move_cost.
4134 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4135 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4136 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4137 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4139 (ira_initiate_emit_data, ira_finish_emit_data)
4140 (create_new_allocno): New functions.
4141 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4142 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4143 Use ira_register_move_cost instead of ira_get_register_move_cost.
4145 * ira-int.h: Fix some comments.
4146 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4147 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4148 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4149 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4151 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4152 bitfield after mode. Make hard_regno a short int. Make
4153 hard_regno short. Remove first_coalesced_allocno and
4154 next_coalesced_allocno. Move mem_optimized_dest_p,
4155 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4156 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4157 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4158 temp, colorable_p. Add new member add_data.
4159 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4160 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4161 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4162 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4163 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4164 (ALLOCNO_ADD_DATA): New macro.
4165 (ira_emit_data_t): New typedef.
4166 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4167 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4168 from struct ira_allocno.
4169 (ALLOCNO_EMIT_DATA): New macro.
4170 (ira_allocno_emit_data, allocno_emit_reg): New.
4171 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4172 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4173 (OBJECT_ADD_DATA): New macro.
4174 (ira_reallocate): Remove.
4175 (ira_initiate_emit_data, ira_finish_emit_data): New.
4176 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4177 (ira_init_register_move_cost_if_necessary): New.
4178 (ira_object_conflict_iter_next): Merge into
4179 ira_object_conflict_iter_cond.
4180 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4182 * ira-live.c (process_single_reg_class_operands): Call
4183 ira_init_register_move_cost_if_necessary. Use
4184 ira_register_move_cost instead of ira_get_register_move_cost.
4186 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4188 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4190 * ira-costs.c: Fix formatting.
4191 (cost_classes, cost_classes_num): Remove.
4192 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4193 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4194 (cost_classes_del, cost_classes_htab): New.
4195 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4196 (initiate_regno_cost_classes, setup_cost_classes): New.
4197 (setup_regno_cost_classes_by_aclass): New.
4198 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4199 (record_reg_classes): Use regno_cost_classes instead of
4200 cost_classes. Move checking opposite operand up.
4201 (record_address_regs): Use regno_cost_classes
4202 instead of cost_classes.
4203 (scan_one_insn): Ditto. Use always general register.
4204 (print_allocno_costs): Use regno_cost_classes instead of
4206 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4207 (find_costs_and_classes): Set up cost classes for each registers.
4208 Use also their mode for this. Use regno_cost_classes instead of
4210 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4212 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4213 (ira_costs, ira_set_pseudo_classes): Call
4214 initiate_regno_cost_classes and finish_regno_cost_classes.
4216 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4218 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4220 * target.def (ira_cover_classes): Remove.
4222 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4224 * doc/tm.texi.in: Ditto.
4226 * ira-conflicts.c: Remove mentioning cover classes from the file.
4227 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4228 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4230 * targhooks.c (default_ira_cover_classes): Remove.
4232 * targhooks.h (default_ira_cover_classes): Ditto.
4234 * haifa-sched.c: Remove mentioning cover classes from the file.
4235 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4236 ira_pressure_classes and ira_pressure_classes_num instead of
4237 ira_reg_class_cover_size and ira_reg_class_cover. Use
4238 sched_regno_pressure_class instead of sched_regno_cover_class.
4239 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4240 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4242 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4243 classes from the file.
4244 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4245 (struct object_hard_regs, struct object_hard_regs_node): New.
4246 (struct ira_object): New members profitable_hard_regs,
4247 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4248 (struct ira_allocno): Rename cover_class to aclass. Rename
4249 cover_class_cost and updated_cover_class_cost to class_cost and
4250 updated_class_cost. Remove splay_removed_p and
4251 left_conflict_size. Add new members colorable_p.
4252 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4253 (ALLOCNO_COLORABLE_P): New macro.
4254 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4255 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4256 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4257 (OBJECT_...): Rename parameter C to O.
4258 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4259 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4260 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4261 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4262 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4263 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4264 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4265 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4266 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4267 x_ira_reg_class_subunion.
4268 (ira_max_memory_move_cost, ira_max_register_move_cost)
4269 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4270 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4271 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4272 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4273 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4274 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4275 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4276 (ira_tune_allocno_costs_and_cover_classes): Rename to
4277 ira_tune_allocno_costs.
4278 (ira_debug_hard_regs_forest): New.
4279 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4280 (ira_object_conflict_iter_next): Fix comments.
4281 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4282 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4283 cover_class to aclass.
4284 (ira_allocate_and_accumulate_costs): Ditto.
4285 (ira_allocate_and_set_or_copy_costs): Ditto.
4287 * opts.c (decode_options): Remove ira_cover_class check.
4289 * ira-color.c: Remove mentioning cover classes from the file. Use
4290 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4291 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4292 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4293 (splay-tree.h): Remove include.
4294 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4295 before copy_freq_compare_func.
4296 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4297 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4299 (hard_regs_roots, hard_regs_node_vec): Ditto.
4300 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4301 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4302 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4303 (create_new_object_hard_regs_node): Ditto.
4304 (add_new_object_hard_regs_node_to_forest): Ditto.
4305 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4306 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4308 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4309 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4310 (remove_unused_object_hard_regs_nodes): Ditto.
4311 (enumerate_object_hard_regs_nodes): Ditto.
4312 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4313 (object_hard_regs_subnode_t): Ditto.
4314 (struct object_hard_regs_subnode): Ditto.
4315 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4316 (setup_object_hard_regs_subnode_index): Ditto.
4317 (get_object_hard_regs_subnodes_num): Ditto.
4318 (form_object_hard_regs_nodes_forest): Ditto.
4319 (finish_object_hard_regs_nodes_tree): Ditto.
4320 (finish_object_hard_regs_nodes_forest): Ditto.
4321 (allocnos_have_intersected_live_ranges_p): Rename to
4322 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4323 (pseudos_have_intersected_live_ranges_p): Rename to
4324 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4325 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4326 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4327 (update_copy_costs): Remove assert. Skip cost update if the hard
4328 reg does not belong the class.
4329 (assign_hard_reg): Process only profitable hard regs.
4330 (uncolorable_allocnos_num): Make it scalar.
4331 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4332 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4333 and ira_reg_class_max_nregs.
4334 (bucket_allocno_compare_func): Check frequency first.
4335 (sort_bucket): Add compare function as a parameter.
4336 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4337 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4338 (push_allocno_to_stack): Rewrite for checking new allocno
4340 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4341 (push_only_colorable): Pass new parameter to sort_bucket.
4342 (push_allocno_to_spill): Remove.
4343 (allocno_spill_priority_compare): Make it inline and rewrite.
4344 (splay_tree_allocate, splay_tree_free): Remove.
4345 (allocno_spill_sort_compare): New function.
4346 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4347 build and use splay tree. Choose first allocno in uncolorable
4348 allocno bucket to spill. Remove setting spill cost.
4349 (all_conflicting_hard_regs): Remove.
4350 (setup_allocno_available_regs_num): Check only profitable hard
4351 regs. Print info about hard regs nodes.
4352 (setup_allocno_left_conflicts_size): Remove.
4353 (put_allocno_into_bucket): Don't call
4354 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4355 (improve_allocation): New.
4356 (color_allocnos): Call setup_profitable_hard_regs,
4357 form_object_hard_regs_nodes_forest, improve_allocation,
4358 finish_object_hard_regs_nodes_forest. Setup spill cost.
4359 (print_loop_title): Use pressure classes.
4360 (color_allocnso): Ditto.
4361 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4362 and allocnos_for_spilling.
4363 (ira_sort_regnos_for_alter_reg): Don't setup members
4364 {first,next}_coalesced_allocno.
4365 (color): Remove allocating and freeing removed_splay_allocno_vec.
4366 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4367 prohibited_class_mode_regs.
4369 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4371 (update_allocno_pressure_excess_length): Use pressure classes.
4372 (inc_register_pressure, dec_register_pressure): Check for pressure
4374 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4375 pressure class. Use ira_reg_class_nregs instead of
4376 ira_reg_class_max_nregs.
4377 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4378 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4379 (single_reg_class): Use ira_reg_class_nregs instead of
4380 ira_reg_class_max_nregs.
4381 (process_bb_node_lives): Use pressure classes.
4383 * ira-emit.c: Remove mentioning cover classes from the file. Use
4384 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4385 (change_loop): Use pressure classes.
4386 (modify_move_list): Call ira_set_allocno_class instead of
4387 ira_set_allocno_cover_class.
4389 * ira-build.c: Remove mentioning cover classes from the file. Use
4390 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4391 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4392 ALLOCNO_UPDATED_CLASS_COST instead of
4393 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4394 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4395 (ira_create_allocno): Remove initialization of
4396 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4397 ALLOCNO_COLORABLE_P.
4398 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4399 Update conflict regs for the objects.
4400 (create_cap_allocno): Remove assert. Don't propagate
4401 ALLOCNO_AVAILABLE_REGS_NUM.
4402 (ira_free_allocno_costs): New function.
4403 (finish_allocno): Change a part of code into call of
4404 ira_free_allocno_costs.
4405 (low_pressure_loop_node_p): Use pressure classes.
4406 (object_range_compare_func): Don't compare classes.
4407 (setup_min_max_conflict_allocno_ids): Ditto.
4409 * loop-invariant.c: Remove mentioning cover classes from the file.
4410 Use ira_pressure_classes and ira_pressure_classes_num instead of
4411 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4412 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4413 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4414 Use reg_allocno_class instead of reg_cover_class.
4415 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4416 STACK_REG_COVER_CLASS.
4417 (get_regno_cover_class): Rename to get_regno_pressure_class.
4418 (move_loop_invariants): Initialize and finalize regstat.
4420 * ira.c: Remove mentioning cover classes from the file. Add
4421 comments about coloring without cover classes. Use ALLOCNO_CLASS
4422 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4423 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4424 setup_class_subset_and_memory_move_costs.
4425 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4426 (setup_cover_and_important_classes): Rename to
4427 setup_allocno_and_important_classes.
4428 (setup_class_translate_array): New.
4429 (setup_class_translate): Call it for allocno and pressure classes.
4430 (cover_class_order): Rename to allocno_class_order.
4431 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4432 of ira_class_translate.
4433 (reorder_important_classes): Set up ira_important_class_nums.
4434 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4435 (print_class_cover): Rename to print_classes. Add parameter.
4436 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4437 Print pressure classes too.
4438 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4439 setup_reg_subclasses.
4440 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4441 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4442 (setup_prohibited_class_mode_regs): Use
4443 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4444 (clarify_prohibited_class_mode_regs): New function.
4445 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4446 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4447 (ira_init_once): Initialize them.
4448 (free_register_move_costs): Process them.
4449 (ira_init): Move calls of find_reg_classes and
4450 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4451 Call clarify_prohibited_class_mode_regs.
4452 (ira_no_alloc_reg): Remove.
4453 (too_high_register_pressure_p): Use pressure classes.
4455 * sched-deps.c: Remove mentioning cover classes from the file.
4456 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4457 ira_pressure_classes and ira_pressure_classes_num instead of
4458 ira_reg_class_cover_size and ira_reg_class_cover.
4459 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4460 sched_regno_pressure_class instead of sched_regno_cover_class.
4461 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4462 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4464 * ira.h: Add 2010 to Copyright.
4465 (ira_no_alloc_reg): Remove external.
4466 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4467 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4468 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4469 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4470 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4471 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4472 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4473 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4474 x_ira_no_alloc_regs.
4475 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4476 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4477 ira_allocno_classes_num and ira_allocno_classes.
4478 (ira_class_translate): Rename to ira_allocno_class_translate.
4479 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4480 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4481 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4482 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4483 (ira_no_alloc_regs): New.
4485 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4486 classes from the file. Use ALLOCNO_CLASS instead of
4487 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4488 ALLOCNO_COVER_CLASS_COST.
4489 (regno_cover_class): Rename to regno_aclass.
4490 (record_reg_classes): Use ira_reg_class_subunion instead of
4491 ira_reg_class_union.
4492 (record_address_regs): Check overflow.
4493 (scan_one_insn): Ditto.
4494 (print_allocno_costs): Print total mem cost fore regional allocation.
4495 (print_pseudo_costs): Use REG_N_REFS.
4496 (find_costs_and_classes): Use classes intersected with them on the
4497 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4498 ira_reg_class_union. Use ira_allocno_class_translate and
4499 regno_aclass instead of ira_class_translate and regno_cover_class.
4500 Modify code for finding regno_aclass. Setup preferred classes for
4502 (setup_allocno_cover_class_and_costs): Rename to
4503 setup_allocno_class_and_costs. Use regno_aclass instead of
4504 regno_cover_class. Use ira_set_allocno_class instead of
4505 ira_set_allocno_cover_class.
4506 (init_costs, finish_costs): Use regno_aclass instead of
4508 (ira_costs): Use setup_allocno_class_and_costs instead of
4509 setup_allocno_cover_class_and_costs.
4510 (ira_tune_allocno_costs_and_cover_classes): Rename to
4511 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4512 by processing objects. Use ira_reg_class_max_nregs instead of
4513 ira_reg_class_nregs.
4515 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4517 * sched-int.h: Remove mentioning cover classes from the file.
4518 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4520 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4521 classes from the file.
4522 (struct reg_pref): Rename coverclass into allocnoclass.
4523 (reg_cover_class): Rename to reg_allocno_class.
4525 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4527 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4529 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4531 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4533 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4535 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4537 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4539 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4541 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4543 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4545 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4546 (i386_ira_cover_classes): Ditto.
4548 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4550 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4552 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4554 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4556 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4558 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4560 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4561 (mips_ira_cover_classes): Ditto.
4563 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4565 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4567 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4569 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4571 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4573 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4574 (IRA_COVER_CLASSES_VSX): Ditto.
4576 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4577 (rs6000_ira_cover_classes): Ditto.
4579 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4581 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4583 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4585 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4587 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4589 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4591 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4593 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4595 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4597 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4599 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4602 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4603 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4604 dw_fde_unlikely_section_end_label, cold_in_std_section,
4605 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4606 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4608 (output_fde): Use dw_fde_second_{begin,end} if second is
4609 true, otherwise dw_fde_{begin,end}.
4610 (output_call_frame_info): Test dw_fde_second_begin != NULL
4611 instead of dw_fde_switched_sections.
4612 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4613 fields, initialize new fields. Initialize in_std_section
4614 unconditionally from the first partition.
4615 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4616 dw_fde_second_begin is non-NULL.
4617 (dwarf2out_switch_text_section): Stop initializing removed
4618 dw_fde_struct fields, initialize new fields, initialize
4619 also dw_fde_end here. Set dw_fde_switch_cfi even when
4620 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4621 (struct var_loc_list_def): Add last_before_switch field.
4622 (arange_table, arange_table_allocated, arange_table_in_use,
4623 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4624 (size_of_aranges): Count !in_std_section and !second_in_std_section
4625 hunks in fdes, instead of looking at arange_table_in_use.
4626 (output_aranges): Add aranges_length argument, don't call
4627 size_of_aranges here. Instead of using aranges_table*
4628 emit ranges for fdes when !in_std_section resp.
4629 !second_in_std_section.
4630 (dw_loc_list): Break ranges crossing section switch.
4631 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4632 use dw_fde_second_end instead of dw_fde_end as end of last range.
4633 (gen_subprogram_die): Don't call add_arange. Use
4634 dw_fde_{begin,end} for first partition and if switched
4635 section dw_fde_second_{begin,end} for the second.
4636 (var_location_switch_text_section_1,
4637 var_location_switch_text_section): New functions.
4638 (dwarf2out_begin_function): Initialize cold_text_section even
4639 when function_section () isn't text_section.
4640 (prune_unused_types): Don't walk arange_table.
4641 (dwarf2out_finish): Don't needlessly test
4642 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4643 If info_section_emitted, call size_of_aranges and if it indicates
4644 non-empty .debug_aranges, call output_aranges with the computed
4645 size. Stop using removed dw_fde_struct fields, use
4646 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4650 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4651 create ENTRY_VALUE if incoming or address of incoming's MEM
4653 * dwarf2out.c (mem_loc_descriptor): Don't emit
4654 DW_OP_GNU_entry_value of DW_OP_fbreg.
4655 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4656 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4657 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4658 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4660 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4661 is a REG_P or MEM_P with REG_P address, compute hash directly
4662 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4663 (preserve_only_constants): Don't clear VALUES forwaring
4664 ENTRY_VALUE to some other VALUE.
4666 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4668 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4671 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4673 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4674 block before expanding the statement.
4675 (expand_gimple_stmt_1): Likewise. Set them here...
4676 (expand_gimple_stmt): ...and not here. Tidy.
4677 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4680 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4682 * Makefile.in: New rule for cprop.o.
4683 * gcse.c: Move constant/copy propagation to cprop.c.
4684 (compute_local_properties): Only handle expression tables.
4685 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4686 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4687 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4688 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4689 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4690 compute_cprop_data, find_used_regs, try_replace_reg,
4691 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4692 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4693 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4694 find_bypass_set, reg_killed_on_edge, bypass_block,
4695 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4696 execute_rtl_cprop, pass_rtl_cprop): Move to...
4697 * cprop.c: ...here. New file, constant/copy propagation for RTL
4698 moved from gcse.c to here with minor cleanups in duplicated code.
4700 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4702 * config/i386/i386.c (flag_opts): Fix a typo in
4703 -mavx256-split-unaligned-store.
4705 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4707 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4708 LIBCALL_VALUE): Remove macros.
4709 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4710 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4711 (h8300_function_value, h8300_libcall_value,
4712 h8300_function_value_regno_p): New functions.
4714 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4716 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4718 2011-03-28 Jeff Law <law@redhat.com>
4720 * tree-ssa-threadupdate.c (redirect_edges): Call
4721 create_edge_and_update_destination_phis as needed.
4722 (create_edge_and_update_destination_phis): Accept new BB argument.
4723 All callers updated.
4724 (thread_block): Do not update the profile when threading around
4725 intermediate blocks.
4726 (thread_single_edge): Likewise.
4727 (determine_bb_domination_status): If BB is not a successor of the
4728 loop header, return NONDOMINATING.
4729 (register_jump_thread): Note when we register a jump thread around
4730 an intermediate block.
4731 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4732 (thread_across_edge): Use it.
4734 2011-03-28 Tristan Gingold <gingold@adacore.com>
4736 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4737 when for_return is 2.
4739 2011-03-28 Jeff Law <law@redhat.com>
4741 * var-tracking.c (canonicalize_values_mark): Delete unused
4743 (canonicalize_values_star, set_variable_part): Likewise.
4744 (clobber_variable_part, delete_variable_part): Likewise.
4746 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4748 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4750 2011-03-28 Martin Jambor <mjambor@suse.cz>
4752 * tree-inline.c (expand_call_inline): Do not check that destination
4754 (optimize_inline_calls): Assert that destination node is analyzed.
4755 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4756 not call tree_lowering_passes.
4757 * cgraph.h (cgraph_analyze_function): Declare.
4758 * cgraphunit.c (cgraph_analyze_function): Make public.
4760 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4762 * config/sparc/sparc-opts.h: New.
4763 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4764 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4765 (sparc_option_override): Store processor_type enumeration rather
4766 than string in cpu_default. Remove name and enumeration from
4767 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4768 without using sparc_select. Use target_flags_explicit instead of
4770 * config/sparc/sparc.h (enum processor_type): Move to
4772 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4773 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4774 HeaderInclude entry.
4775 (mcpu=, mtune=): Use Var and Enum.
4776 (sparc_processor_type): New Enum and EnumValue entries.
4778 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4779 Iain Sandoe <iains@gcc.gnu.org>
4782 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4784 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4786 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4787 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4788 Insert new statements at it in lieu of STMT.
4789 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4790 * tree-vect-stmts.c (vectorizable_store): Likewise.
4791 (vectorizable_load): Likewise.
4793 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4795 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4800 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4802 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4803 unaligned 256bit load/store.
4804 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4805 (*avx_movdqu<avxmodesuffix>): Likewise.
4807 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4810 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4811 * config/pa/pa.md (iordi3): Use new predicate in expander.
4814 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4816 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4817 FUNCTION_VALUE_REGNO_P): Remove macros.
4818 * config/mips/mips-protos.h (mips_function_value): Remove.
4819 * config/mips/mips.c (mips_function_value): Rename to...
4820 (mips_function_value_1): ... this. Make static. Handle receiving
4821 the function type in 'fn_decl_or_type' argument.
4822 (mips_function_value, mips_libcall_value,
4823 mips_function_value_regno_p): New function.
4824 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4825 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4827 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4829 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4830 and -mavx256-split-unaligned-store.
4831 (ix86_option_override_internal): Split 32-byte AVX unaligned
4832 load/store by default.
4833 (ix86_avx256_split_vector_move_misalign): New.
4834 (ix86_expand_vector_move_misalign): Use it.
4836 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4837 -mavx256-split-unaligned-store.
4839 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4840 256bit load/store. Generate unaligned store on misaligned memory
4842 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4844 (*avx_movdqu<avxmodesuffix>): Likewise.
4846 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4847 -mavx256-split-unaligned-store.
4849 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4852 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4855 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4857 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4858 opno arguments with an expand_operand. Use create_input_operand.
4859 (mips_prepare_builtin_target): Delete.
4860 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4862 (mips_expand_builtin_direct): Use create_output_operand and
4863 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4864 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4865 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4867 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4869 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4871 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4873 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4875 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4876 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4877 basic blocks and call commit_edge_insertions directly.
4878 (fixup_abnormal_edges): Move from here to...
4879 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4880 on the edges and return whether some have actually been inserted.
4881 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4884 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4886 PR rtl-optimization/48144
4887 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4888 (merge_expr_data): ... here.
4889 (av_set_intersect): Rename to av_set_code_motion_filter.
4890 Update all callers. Call merge_history_vect when an expression
4891 is found in both sets.
4892 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4894 2011-03-26 Alan Modra <amodra@gmail.com>
4896 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4897 cmodel medium addresses.
4898 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4899 64-bit gpr loads and stores.
4900 (rs6000_secondary_reload_ppc64): New function.
4901 * config/rs6000/rs6000-protos.h: Declare it.
4902 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4904 2011-03-26 Alan Modra <amodra@gmail.com>
4907 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4908 GNU Go in traceback table.
4910 2011-03-25 Richard Henderson <rth@redhat.com>
4912 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4913 if there are exactly 6 operands.
4914 (set_storage_via_setmem): Similarly.
4916 2011-03-25 Kai Tietz <ktietz@redhat.com>
4918 * collect2.c (write_c_file_stat): Handle backslash
4919 as right-hand directory separator.
4920 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4921 checking just for slash.
4922 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4923 instead of checking for trailing slash.
4924 * gcc.c (record_temp_file): Use filename_cmp instead
4926 (do_spec_1): Likewise.
4927 (replace_outfile_spec_function): Likewise.
4928 (is_directory): Use filename_ncmp instead of strncmp.
4929 (print_multilib_info): Likewise.
4930 * gcov.c (find_source): Use filename_cmp instead
4932 (make_gcov_file_name): Fix order of slash/backslash
4934 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4935 (add_standard_paths): Likewise.
4936 * mips-tfile.c (saber_stop): Handle backslash.
4937 * prefix.c (update_path): Use filename_ncmp instead of
4939 * profile.c (output_location): Use filename_cmp instead
4941 * read-md.c (handle_toplevel_file): Handle backslash.
4942 * tlink.c (frob_extension): Likewise.
4943 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4945 * tree-dump.c (dequeue_and_dump): Handle backslash.
4946 * tree.c (get_file_function_name): Likewise.
4947 * gengtype.c (read_input_list): Likewise.
4948 (get_file_realbasename): Likewise.
4949 (get_output_file_with_visibility): Use filename_cmp
4952 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4954 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4957 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4959 * fold-const.c (expr_location_or): New function.
4960 (fold_truth_not_expr): Call it.
4962 2011-03-25 Jeff Law <law@redhat.com>
4964 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4966 * c-family/c-common.c (def_fn_type): Likewise.
4967 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4968 * emit-rtl.c (gen_rtvec): Likewise.
4969 * lto/lto-lang.c (def_fn_type): Likewise.
4971 2011-03-25 Richard Guenther <rguenther@suse.de>
4973 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4974 also generate copies.
4975 (fini_copy_prop): Handle constant values properly.
4977 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4979 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4980 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4981 (hash_loc_operands, compare_loc_operands): Handle
4982 DW_OP_GNU_entry_value.
4984 2011-03-25 Kai Tietz <ktietz@redhat.com>
4986 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4987 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4988 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4989 comment and use macro TARGET_64BIT_MS_ABI instead.
4990 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4991 and change default behavior for 32-bit MS_ABI.
4992 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4993 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4995 (ix86_cfun_abi): Likewise.
4996 (ix86_maybe_switch_abi): Adjust comment.
4997 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4998 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4999 instead of checking for SYSV_ABI.
5000 (ix86_nsaved_sseregs): Likewise.
5001 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5003 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5004 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5005 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5006 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5007 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5009 2011-03-25 Richard Guenther <rguenther@suse.de>
5011 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5012 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5013 (verify_gimple): Remove.
5014 * tree-cfg.c (verify_gimple_call): Merge verification
5016 (verify_gimple_phi): Merge verification from verify_stmts.
5017 (verify_gimple_label): New function.
5018 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5019 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5020 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5021 (verify_stmts): Rename to verify_gimple_in_cfg.
5022 (verify_gimple_in_cfg): New function.
5023 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5024 * tree-ssa.c (verify_ssa): Likewise.
5025 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5027 2011-03-25 Richard Guenther <rguenther@suse.de>
5029 * passes.c (init_optimization_passes): Add FRE pass after
5032 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5033 Andrew Stubbs <ams@codesourcery.com>
5035 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5037 (arm_movdi_vfp_cortexa8): New pattern.
5038 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5039 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5040 instructions when tuning for Cortex-A8. Set attribute "arch".
5041 * config/arm/arm.md: Move include arm-tune.md up a bit.
5042 (define_attr "arch"): Add "onlya8" and "nota8" values.
5043 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5045 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5049 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5051 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5052 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5053 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5054 * passes.c (init_optimization_passes): Move
5055 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5057 2011-03-25 Kai Tietz <ktietz@redhat.com>
5059 * c-typeck.c (comptypes_internal): Replace target
5060 hook call of comp_type_attributes by version in tree.c file.
5061 * gimple.c (gimple_types_compatible_p_1): Likewise.
5062 * tree-ssa.c (useless_type_conversion_p): Likewise.
5063 * tree.c (build_type_attribute_qual_variant): Likewise.
5064 (attribute_value_equal): New static helper function.
5065 (comp_type_attributes): New function.
5066 (merge_attributes): Use attribute_value_equal for comparison.
5067 (attribute_list_contained): Likewise.
5068 * tree.h (comp_type_attributes): New prototype.
5070 2011-03-25 Richard Guenther <rguenther@suse.de>
5072 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5073 of complex types at -O0.
5074 (verify_gimple_assign_binary): Likewise.
5075 (verify_gimple_assign_ternary): Likewise.
5077 2011-03-24 Mark Wielaard <mjw@redhat.com>
5079 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5080 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5082 2011-03-24 Mark Wielaard <mjw@redhat.com>
5085 * dwarf2out.c (output_abbrev_section): Only write table when
5086 abbrev_die_table_in_use > 1.
5088 2011-02-24 Richard Henderson <rth@redhat.com>
5090 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5091 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5092 (alpha_expand_unaligned_load_words): Use extql.
5093 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5094 (emit_insxl): Handle all modes for consistency.
5096 2011-02-24 Richard Henderson <rth@redhat.com>
5098 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5099 (alpha_expand_unaligned_load): Likewise.
5100 (alpha_expand_unaligned_store): Likewise.
5101 (alpha_expand_unaligned_load_words): Likewise.
5102 (alpha_expand_unaligned_store_words): Likewise.
5103 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5104 (alpha_split_lock_test_and_set_12): Likewise.
5105 (print_operand, alpha_fold_builtin_extxx): Likewise.
5106 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5107 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5108 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5109 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5110 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5111 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5112 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5113 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5114 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5115 (extwl, extll, extql): Similarly.
5116 (inswh, inslh, insqh): Similarly.
5117 (mskbl, mskwl, mskll, mskql): Similarly.
5118 (mskwh, msklh, mskqh): Similarly.
5120 2011-02-24 Richard Henderson <rth@redhat.com>
5122 * config/alpha/alpha.md (attribute isa): Add er, ner.
5123 (attribute enabled): Handle them.
5124 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5126 2011-02-24 Richard Henderson <rth@redhat.com>
5128 * config/alpha/alpha.md (attribute isa): Add vms.
5129 (attribute enabled): Handle it.
5130 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5131 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5132 (*movtf): Rename from *movtf_internal for consistency.
5133 (*movsi): Merge with *movsi_nt_vms.
5134 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5135 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5136 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5137 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5139 2011-02-24 Richard Henderson <rth@redhat.com>
5141 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5142 (extendqisi2, extendhisi2): Likewise.
5143 (extendqidi2): Simplify BWX/non-BWX expansions.
5144 (extendhidi2): Similarly.
5146 2011-02-24 Richard Henderson <rth@redhat.com>
5148 * config/alpha/alpha.md (attribute isa): New.
5149 (attribute enabled): New.
5150 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5151 (zero_extendqisi2, zero_extendqidi2): Similarly.
5152 (zero_extendhisi2, zero_extendhidi2): Similarly.
5153 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5155 2011-02-24 Richard Henderson <rth@redhat.com>
5157 * config/alpha/predicates.md (input_operand): Revert last change;
5158 update comment to mention 32-bit VMS rather than Windows.
5160 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5162 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5163 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5164 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5165 * passes.c (init_optimization_passes): Move
5166 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5168 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5170 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5172 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5174 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5177 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5180 * simplify-rtx.c (simplify_const_unary_operation): Call
5181 real_convert when changing mode class with FLOAT_EXTEND.
5183 2011-03-24 Nick Clifton <nickc@redhat.com>
5185 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5186 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5187 * config/rx/rx.c (rx_option_override): Set align_jumps,
5188 align_loops and align_labels if not set by the user.
5189 (rx_align_for_label): New function.
5190 (rx_max_skip_for_label): New function.
5191 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5192 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5193 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5194 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5195 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5197 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5199 PR rtl-optimization/48263
5200 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5201 and original commutative_p handling. Use maybe_gen_insn.
5203 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5205 * reload.c (find_reloads_subreg_address): Add address_reloaded
5206 parameter and return true there if the full address has been
5208 (find_reloads_toplev): Pass address_reloaded flag.
5209 (find_reloads_address_1): Don't use address_reloaded parameter.
5211 2011-03-24 Jeff Law <law@redhat.com>
5213 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5214 unused variable "ann".
5215 (remove_unused_locals): Likewise.
5217 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5220 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5223 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5225 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5226 for invalid symbolic addresses.
5227 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5230 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5232 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5233 the argument in calls to fold_truth_not_expr.
5235 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5237 * tree.c (record_node_allocation_statistics): New function.
5238 (make_node_stat, copy_node_stat, build_string): Call it.
5239 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5240 (build1_stat, build_omp_clause): Likewise.
5242 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5244 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5247 2011-03-24 Richard Guenther <rguenther@suse.de>
5249 PR tree-optimization/48271
5250 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5251 blocks that still exist.
5253 2011-03-24 Richard Guenther <rguenther@suse.de>
5255 PR tree-optimization/48270
5256 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5257 not free datarefs before ddrs.
5259 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5261 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5262 from the address built for a reference with variable offset.
5264 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5267 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5268 alternatives that can be handled with movq or movabsq insn.
5269 (*movdf_internal): Disable for !TARGET_64BIT.
5270 (*movdf_internal_nointeger): Ditto.
5271 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5273 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5275 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5276 (FUNCTION_ARG_ADVANCE): Likewise.
5277 * tm.texi.in: Change references to them to hook references.
5278 * tm.texi: Regenerate.
5279 * targhooks.c (default_function_arg): Eliminate check for target macro.
5280 (default_function_incoming_arg): Likewise.
5281 (default_function_arg_advance): Likewise.
5282 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5283 (function_arg_advance): Likewise.
5284 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5286 2011-03-24 Richard Guenther <rguenther@suse.de>
5289 * tree-object-size.c (addr_object_size): Do not double-account
5290 for MEM_REF offsets.
5292 2011-03-24 Diego Novillo <dnovillo@google.com>
5294 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5295 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5296 (lto_input_data_block): Move from lto-opts.c. Make extern.
5298 (lto_input_string): Rename from input_string. Make extern.
5300 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5301 output_string_with_length.
5302 Output 0 to indicate a non-NULL string. Update all callers to
5304 (lto_output_string): Rename from output_string. Make extern.
5306 (lto_output_decl_state_streams): Make extern.
5307 (lto_output_decl_state_refs): Make extern.
5308 * lto-streamer.h (lto_input_string): Declare.
5309 (lto_input_data_block): Declare.
5310 (lto_output_string): Declare.
5311 (lto_output_string_with_length): Declare.
5312 (lto_output_decl_state_streams): Declare.
5313 (lto_output_decl_state_refs): Declare.
5315 2011-03-24 Richard Guenther <rguenther@suse.de>
5317 PR tree-optimization/46562
5318 * tree.c (build_invariant_address): New function.
5319 * tree.h (build_invariant_address): Declare.
5320 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5321 a renamed function moved ...
5322 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5323 Take valueization callback parameter.
5324 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5325 * gimple-fold.h: New file.
5326 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5327 (ccp_fold, fold_const_aggregate_ref,
5328 fold_ctor_reference, fold_nonarray_ctor_reference,
5329 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5330 get_base_constructor): Move ...
5331 * gimple-fold.c: ... here.
5332 (gimple_fold_stmt_to_constant_1): New function
5333 split out from ccp_fold. Take a valueization callback parameter.
5334 Valueize all operands.
5335 (gimple_fold_stmt_to_constant): New wrapper function.
5336 (fold_const_aggregate_ref_1): New function split out from
5337 fold_const_aggregate_ref. Take a valueization callback parameter.
5338 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5339 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5340 invariant POINTER_PLUS_EXPRs to invariant form.
5341 (vn_valueize): New function.
5342 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5343 * tree-vrp.c (vrp_valueize): New function.
5344 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5345 to fold statements to constants.
5346 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5347 function declarations.
5348 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5349 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5351 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5353 * config/h8300/predicates.md (jump_address_operand): Fix register
5356 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5358 * doc/invoke.texi (max-stores-to-sink): Document.
5359 * params.h (MAX_STORES_TO_SINK): Define.
5360 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5361 if either vectorization or if-conversion is disabled.
5362 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5363 tree-vect-data-refs.c vect_equal_offsets.
5364 (dr_equal_offsets_p): New function.
5365 (find_data_references_in_bb): Remove static.
5366 * tree-data-ref.h (find_data_references_in_bb): Declare.
5367 (dr_equal_offsets_p): Likewise.
5368 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5369 (vect_drs_dependent_in_basic_block): Update calls to
5371 (vect_check_interleaving): Likewise.
5372 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5373 (cond_if_else_store_replacement): Rename to...
5374 (cond_if_else_store_replacement_1): ... this. Change arguments and
5376 (cond_if_else_store_replacement): New function.
5377 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5378 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5380 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5383 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5384 to subtract lower bound instead of GEN_INT().
5386 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5391 * doc/extend.texi (Alignment): Move section to match order in TOC.
5392 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5393 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5395 2011-03-23 Jeff Law <law@redhat.com>
5397 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5398 before removing the edge.
5400 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5401 it may have been freed by redirect_branch_edge or
5402 redirect_edge_succ_nodup.
5404 2011-03-23 Richard Guenther <rguenther@suse.de>
5406 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5407 (check_va_list_escapes): Likewise.
5408 (check_all_va_list_escapes): Likewise.
5410 2011-03-23 Richard Guenther <rguenther@suse.de>
5412 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5413 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5414 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5415 (alias.o): Likewise.
5416 (ipa-type-escape.o): Remove.
5417 (ipa-struct-reorg.o): Likewise.
5418 (GTFILES): Remove ipa-struct-reorg.c.
5419 * alias.c: Do not include ipa-type-escape.h.
5420 * tree-ssa-alias.c: Likewise.
5421 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5422 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5423 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5424 and ipa-type-escape passes.
5425 * tree-pass.h (pass_ipa_type_escape): Remove.
5426 (pass_ipa_struct_reorg): Likewise.
5427 * ipa-struct-reorg.h: Remove.
5428 * ipa-struct-reorg.c: Likewise.
5429 * ipa-type-escape.h: Likewise.
5430 * ipa-type-escape.c: Likewise.
5431 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5432 (--param struct-reorg-cold-struct-ratio): Likewise.
5433 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5434 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5435 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5437 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5439 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5440 cpu attribute value.
5441 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5442 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5443 * config/s390/s390.c (processor_flags_table): New constant array.
5444 (s390_handle_arch_option): Remove.
5445 (s390_handle_option): Remove s390_handle_arch_option invocations
5446 and OPT_mwarn_framesize_ handling.
5447 (s390_option_override): Remove s390_handle_arch_option invocation.
5448 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5450 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5451 * config/s390/s390.opt (s390_tune, s390_arch)
5452 (march=): Replace s390_arch_option enum and values with
5453 processor_type. Set variable name to s390_arch. Set
5454 initialization value.
5455 (mtune=): Replace s390_arch_option with processor_type. Set
5456 variable name to s390_tune. Set initialization value.
5458 2011-03-23 Julian Brown <julian@codesourcery.com>
5460 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5461 accesses which are not naturally aligned.
5463 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5466 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5468 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5470 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5471 parameter from "int" to "enum insn_code".
5472 (expand_operand_type): New enum.
5473 (expand_operand): New structure.
5474 (create_expand_operand): New function.
5475 (create_fixed_operand, create_output_operand): Likewise
5476 (create_input_operand, create_convert_operand_to): Likewise.
5477 (create_convert_operand_from, create_address_operand): Likewise.
5478 (create_integer_operand): Likewise.
5479 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5480 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5481 (expand_insn, expand_jump_insn): Likewise.
5482 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5483 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5484 (expand_movstr, expand_builtin___clear_cache): Likewise.
5485 (expand_builtin_lock_release): Likewise.
5486 * explow.c (allocate_dynamic_stack_space): Likewise.
5487 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5488 and use the default handling in that case.
5489 * expmed.c (check_predicate_volatile_ok): Delete.
5490 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5491 (emit_cstore): Likewise.
5492 * expr.c (emit_block_move_via_movmem): Likewise.
5493 (set_storage_via_setmem, expand_assignment): Likewise.
5494 (emit_storent_insn, try_casesi): Likewise.
5495 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5496 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5497 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5498 (expand_twoval_unop, expand_twoval_binop): Likewise.
5499 (expand_unop_direct, emit_indirect_jump): Likewise.
5500 (emit_conditional_move, vector_compare_rtx): Likewise.
5501 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5502 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5503 (expand_sync_lock_test_and_set): Likewise.
5504 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5505 (emit_unop_insn): Likewise.
5506 (expand_copysign_absneg): Change icode to an insn_code.
5507 (create_convert_operand_from_type): New function.
5508 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5509 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5510 (expand_insn, expand_jump_insn): Likewise.
5511 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5512 than const_int_operand for operand 2.
5514 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5516 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5519 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5521 * emit-rtl.c (emit_pattern_before_noloc): New function.
5522 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5523 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5524 (emit_pattern_after_noloc): New function.
5525 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5526 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5528 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5530 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5531 (__ffsDI2): Likewise.
5533 2011-03-22 Richard Henderson <rth@redhat.com>
5535 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5536 of !TARGET_ABI_OPEN_VMS.
5537 (alpha_trampoline_init, alpha_start_function): Likewise.
5538 (alpha_expand_epilogue, alpha_file_start): Likewise.
5539 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5540 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5541 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5542 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5543 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5545 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5547 * config/s390/s390-opts.h: New.
5548 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5549 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5550 s390_stack_guard): Remove.
5551 (s390_handle_arch_option): Return void. Take enum
5552 s390_arch_option value instead of string and searching array.
5553 (s390_handle_option): Don't assert that global structures are in
5554 use. Access variables via opts pointer. Use error_at. Don't use
5555 sscanf for -mstack-guard= or -mstack-size=. Update call to
5556 s390_handle_arch_option.
5557 (s390_option_override): Update call to s390_handle_arch_option.
5558 (s390_emit_prologue): Use %d format for s390_stack_size in
5559 diagnostic. Use %wd for HOST_WIDE_INT.
5560 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5561 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5562 * config/s390/s390.opt (config/s390/s390-opts.h): New
5563 HeaderInclude entry.
5564 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5565 s390_arch_flags, s390_warn_framesize): New Variable entries.
5566 (s390_arch_option): New Enum and EnumValue entries.
5567 (march=): Use Enum instead of Var.
5568 (mstack-guard=, mstack-size=): Use UInteger and Var.
5571 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5573 * config/score/score.c (score_handle_option): Don't assert that
5574 global structures are in use. Access target_flags via opts
5575 pointer. Use value of -march= option to determine target_flags
5577 * config/score/score.opt (march=): Use Enum.
5578 (score_arch): New Enum and EnumValue entries.
5580 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5582 * config/mep/mep.c (option_mtiny_specified): Remove.
5583 (mep_option_override): Move register handling for -mivc2 from
5584 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5585 instead of option_mtiny_specified.
5586 (mep_handle_option): Access target_flags via opts pointer. Don't
5587 assert that global structures are in use. Defer part of -mivc2
5588 handling and move it to mep_option_override.
5589 * config/mep/mep.opt (IVC2): New Mask entry.
5590 (mivc2): Use Var and Defer instead of Mask.
5592 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5594 * config/v850/v850-opts.h: New.
5595 * config/v850/v850.c (small_memory): Replace with
5596 small_memory_physical_max array. Make that array static const.
5597 (v850_handle_memory_option): Take integer value of argument. Take
5598 gcc_options pointer, option text and location. Return void.
5599 Update for changes to small memory structures.
5600 (v850_handle_option): Access target_flags via opts pointer. Don't
5601 assert that global structures are in use. Update calls to
5602 v850_handle_memory_option.
5603 (v850_encode_data_area): Update references to small memory settings.
5604 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5605 (enum small_memory_type): Move to v850-opts.h.
5606 * config/v850/v850.opt (config/v850/v850-opts.h): New
5607 HeaderInclude entry.
5608 (small_memory_max): New Variable entry.
5609 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5610 (mtda, mzda): Likewise.
5612 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5614 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5615 pointer. Don't assert that global structures are in use.
5617 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5619 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5620 via opts pointer. Don't assert that global structures are in use.
5622 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5624 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5625 (munix=93): Use Var.
5626 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5627 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5628 * config/pa/pa-opts.h: New.
5629 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5630 (pa_handle_option): Don't assert that global structures are in
5631 use. Access target_flags via opts pointer. Don't handle
5632 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5634 (pa_option_override): Handle deferred OPT_mfixed_range_.
5636 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5638 * config/mn10300/mn10300-opts.h: New.
5639 * config/mn10300/mn10300.c (mn10300_processor,
5640 mn10300_tune_string): Remove.
5641 (mn10300_handle_option): Don't assert that global structures are
5642 in use. Access mn10300_processor via opts pointer. Don't handle
5644 * config/mn10300/mn10300.h (enum processor_type): Move to
5646 (mn10300_processor): Remove.
5647 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5648 HeaderInclude entry.
5649 (mn10300_processor): New Variable entry.
5652 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5654 * config/microblaze/microblaze.c: Don't include opts.h.
5655 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5656 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5657 (mno-clearbss): Use Var and Warn.
5659 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5661 * config/m32r/m32r-opts.h: New.
5662 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5663 (m32r_handle_option): Don't assert that global structures are in
5664 use. Access target_flags and m32r_cache_flush_func via opts
5665 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5666 OPT_mno_flush_trap here.
5667 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5668 include of m32r-opts.h.
5669 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5670 HeaderInclude entry.
5671 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5672 (mmodel=): Use Enum and Var.
5673 (m32r_model): New Enum and EnumValue entries.
5674 (mno-flush-trap): Use Var.
5675 (msdata=): Use Enum and Var.
5676 (m32r_sdata): New Enum and EnumValue entries.
5678 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5680 * config/m32c/m32c.c: Don't include opts.h.
5681 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5682 m32c_handle_option): Remove.
5683 (m32c_option_override): Check global_options_set.x_target_memregs
5684 instead of target_memregs_set.
5685 * config/m32c/m32c.h (target_memregs): Remove.
5686 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5691 * config/iq2000/iq2000-opts.h: New.
5692 * config/iq2000/iq2000.c: Don't include opts.h.
5693 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5694 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5695 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5696 HeaderInclude entry.
5697 (iq2000_tune): New Variable entry.
5698 (march=): Add comment. Use Enum.
5699 (iq2000_arch): New Enum and EnumValue entries.
5700 (mcpu=): Use Enum and Var.
5701 (iq2000_tune): New Enum and EnumValue entries.
5703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5705 * config/ia64/ia64-opts.h: New.
5706 * config/ia64/ia64.c (ia64_tune): Remove.
5707 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5709 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5710 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5711 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5712 HeaderInclude entry.
5713 (ia64_tune): New Variable entry.
5714 (mfixed-range=): Use Defer and Var.
5715 (mtune=): Use Enum and Var.
5716 (ia64_tune): New Enum and EnumValue entries.
5718 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5720 * config/frv/frv-opts.h: New.
5721 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5723 (frv_cpu_type): Remove.
5724 * config/frv/frv.c: Don't include opts.h.
5725 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5726 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5727 (frv_cpu_type): New Variable entry.
5728 (frv_cpu): New Enum and EnumValue entries.
5730 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5732 * config/cris/cris.c (cris_handle_option): Access target_flags via
5733 opts pointer. Don't assert that global structures are in use.
5734 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5735 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5737 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5739 * config/bfin/bfin-opts.h: New.
5740 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5741 bfin_si_revision, bfin_workarounds): Remove.
5742 (bfin_cpus): Make static const.
5743 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5744 not bfin_lib_id_given.
5745 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5746 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5747 pointer. Use error_at. Don't assert that global structures are in use.
5748 * config/bfin/bfin.h: Include bfin-opts.h.
5749 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5750 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5751 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5752 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5755 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5757 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5758 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5759 or -msoft-float here.
5760 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5761 -msoft-float and -mhard-float.
5762 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5763 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5765 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5767 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5768 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5770 (LIBGCC_SPEC): Don't handle -msoft-float.
5771 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5773 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5775 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5776 -mfloat-abi=*, not -msoft-float and -mhard-float.
5777 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5779 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5780 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5781 mhard-float and msoft-float.
5782 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5783 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5784 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5785 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5787 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5788 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5790 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5792 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5795 2011-03-22 Richard Henderson <rth@redhat.com>
5797 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5798 TARGET_ABI_WINDOWS_NT.
5799 (alpha_output_function_end_prologue): Likewise.
5800 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5801 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5802 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5803 (trap, *movsi_nt_vms): Likewise.
5804 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5805 (*tablejump_osf_nt_internal): Remove.
5806 * config/alpha/predicates.md (input_operand): Only test Pmode.
5808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5810 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5811 via opts pointer. Use error_at. Don't assert that global
5812 structures are in use.
5814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5816 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5817 (ix86_handle_option): Access ix86_isa_flags and
5818 ix86_isa_flags_explicit via opts pointer. Don't assert that
5819 global structures are in use.
5820 (ix86_function_specific_save, ix86_function_specific_restore):
5821 Update ix86_isa_flags_explicit field name.
5822 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5823 (ix86_isa_flags_explicit): Rename TargetSave entry to
5824 x_ix86_isa_flags_explicit.
5826 2011-03-22 Richard Henderson <rth@redhat.com>
5828 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5829 (alpha_option_override, direct_return): Likewise.
5830 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5831 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5832 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5833 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5834 (alpha_expand_epilogue, alpha_end_function): Likewise.
5835 (alpha_init_libfuncs): Likewise.
5836 (struct machine_function): Remove unicosmk members.
5837 (print_operand) ['t']: Remove.
5838 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5839 unicosmk_output_module_name, unicosmk_output_common,
5840 current_section_align, unicosmk_output_text_section_asm_op,
5841 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5842 unicosmk_section_type_flags, unicosmk_unique_section,
5843 unicosmk_asm_named_section, unicosmk_insert_attributes,
5844 unicosmk_output_align, unicosmk_defer_case_vector,
5845 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5846 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5847 unicosmk_output_ssib, unicosmk_add_call_info_word,
5848 unicosmk_extern_head, unicosmk_output_default_externs,
5849 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5850 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5851 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5852 * config/alpha/alpha-protos.h: Update.
5853 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5854 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5855 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5856 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5857 (*mulsi_se, mulvsi3): Likewise.
5858 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5859 (*divmodsi_internal, call, call_value, realign): Likewise.
5860 (moddi3, umoddi3): Likewise; remove duplicate expander.
5861 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5862 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5863 (*movdi_nofix): Remove r/U alternative.
5864 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5865 * config/alpha/constraints.md ("U"): Remove.
5866 * config/alpha/predicates.md (call_operand"): Don't test
5867 TARGET_ABI_UNICOSMK.
5869 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5871 * target.def (handle_option): Take gcc_options and
5872 cl_decoded_option pointers and location_t.
5873 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5874 * doc/tm.texi: Regenerate.
5875 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5876 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5877 * lto-opts.c (lto_reissue_options): Generate option structure for
5878 targetm.handle_option call.
5879 * opts.c (target_handle_option): Update call to
5880 targetm.handle_option. Remove assertions about values now passed
5882 * targhooks.c (default_target_handle_option): New.
5883 * targhooks.h (default_target_handle_option): Declare.
5884 * config/alpha/alpha.c: Include opts.h.
5885 (alpha_handle_option): Update to new hook interface.
5886 * config/arm/arm.c: Include opts.h.
5887 (arm_handle_option): Update to new hook interface.
5888 * config/arm/t-arm (arm.o): Update dependencies.
5889 * config/bfin/bfin.c: Include opts.h.
5890 (bfin_handle_option): Update to new hook interface.
5891 * config/cris/cris.c: Include opts.h.
5892 (cris_handle_option): Update to new hook interface.
5893 * config/frv/frv.c: Include opts.h.
5894 (frv_handle_option): Update to new hook interface.
5895 * config/i386/i386.c: Include opts.h.
5896 (ix86_handle_option): Update to new hook interface.
5897 (ix86_valid_target_attribute_inner_p): Generate option structure
5898 for call to ix86_handle_option.
5899 * config/i386/t-i386 (i386.o): Update dependencies.
5900 * config/ia64/ia64.c: Include opts.h.
5901 (ia64_handle_option): Update to new hook interface.
5902 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5903 * config/iq2000/iq2000.c: Include opts.h.
5904 (iq2000_handle_option): Update to new hook interface.
5905 * config/m32c/m32c.c: Include opts.h.
5906 (m32c_handle_option): Update to new hook interface.
5907 * config/m32r/m32r.c: Include opts.h.
5908 (m32r_handle_option): Update to new hook interface.
5909 * config/m68k/m68k.c: Include opts.h.
5910 (m68k_handle_option): Update to new hook interface.
5911 * config/mep/mep.c: Include opts.h.
5912 (mep_handle_option): Update to new hook interface.
5913 * config/microblaze/microblaze.c: Include opts.h.
5914 (microblaze_handle_option): Update to new hook interface.
5915 * config/mips/mips.c: Include opts.h.
5916 (mips_handle_option): Update to new hook interface.
5917 * config/mn10300/mn10300.c: Include opts.h.
5918 (mn10300_handle_option): Update to new hook interface.
5919 * config/pa/pa.c: Include opts.h.
5920 (pa_handle_option): Update to new hook interface.
5921 * config/pdp11/pdp11.c: Include opts.h.
5922 (pdp11_handle_option): Update to new hook interface.
5923 * config/rs6000/rs6000.c: Include opts.h.
5924 (rs6000_handle_option): Update to new hook interface.
5925 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5926 * config/rx/rx.c: Include opts.h.
5927 (rx_handle_option): Update to new hook interface.
5928 * config/s390/s390.c: Include opts.h.
5929 (s390_handle_option): Update to new hook interface.
5930 * config/score/score.c: Include opts.h.
5931 (score_handle_option): Update to new hook interface.
5932 * config/sh/sh.c: Include opts.h.
5933 (sh_handle_option): Update to new hook interface.
5934 * config/sparc/sparc.c: Include opts.h.
5935 (sparc_handle_option): Update to new hook interface.
5936 * config/v850/v850.c: Include opts.h.
5937 (v850_handle_option): Update to new hook interface.
5939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5941 * gcc.c (driver_unknown_option_callback): Only permit and save
5942 unknown -Wno- options.
5943 (driver_wrong_lang_callback): Save options directly instead of via
5944 driver_unknown_option_callback.
5946 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5948 * combine.c (simplify_set): Try harder to find the best CC mode when
5949 simplifying a nested COMPARE on the RHS.
5951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5953 * config/alpha/gnu.h: Remove.
5954 * config/arc: Remove directory.
5955 * config/arm/netbsd.h: Remove.
5956 * config/arm/t-pe: Remove.
5957 * config/crx: Remove directory.
5958 * config/i386/netbsd.h: Remove.
5959 * config/m68hc11: Remove directory.
5960 * config/m68k/uclinux-oldabi.h: Remove.
5961 * config/mcore/mcore-pe.h: Remove.
5962 * config/mcore/t-mcore-pe: Remove.
5963 * config/netbsd-aout.h: Remove.
5964 * config/rs6000/gnu.h: Remove.
5965 * config/sh/sh-symbian.h: Remove.
5966 * config/sh/symbian-base.c: Remove.
5967 * config/sh/symbian-c.c: Remove.
5968 * config/sh/symbian-cxx.c: Remove.
5969 * config/sh/symbian-post.h: Remove.
5970 * config/sh/symbian-pre.h: Remove.
5971 * config/sh/t-symbian: Remove.
5972 * config/svr3.h: Remove.
5973 * config/vax/netbsd.h: Remove.
5974 * config.build: Don't handle i[34567]86-*-pe.
5975 * config.gcc: Remove handling of deprecations for most deprecated
5977 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5978 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5979 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5980 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5981 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5982 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5984 * config.host: Don't handle i[34567]86-*-pe.
5985 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5986 (ASM_SPEC32): Don't handle -mcall-gnu.
5987 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5989 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5990 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5991 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5992 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5993 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5994 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5995 conditional on SYMBIAN.
5996 * configure.ac: Don't handle powerpc*-*-gnu*.
5997 * configure: Regenerate.
5998 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5999 * doc/install-old.texi (m6811, m6812): Don't mention.
6000 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6001 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6002 (m68k-uclinuxoldabi): Don't mention.
6003 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6005 (-mcall-gnu): Remove.
6006 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6007 families): Remove constraint documentation.
6009 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6011 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6012 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6013 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6015 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6017 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6018 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6019 * config/avr/avr.c (init_cumulative_args)
6020 (avr_function_arg_advance): Use it.
6021 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6023 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6024 (avr_function_ok_for_sibcall): ...this new function.
6025 (avr_lookup_function_attribute1): New static Function.
6026 (avr_naked_function_p, interrupt_function_p)
6027 (signal_function_p, avr_OS_task_function_p)
6028 (avr_OS_main_function_p): Use it.
6029 * config/avr/avr.md ("sibcall", "sibcall_value")
6030 ("sibcall_epilogue"): New expander.
6031 ("*call_insn", "*call_value_insn"): New insn.
6032 ("call_insn", "call_value_insn"): Remove
6033 ("call", "call_value", "epilogue"): Change expander to handle
6036 2011-03-21 Nick Clifton <nickc@redhat.com>
6038 * doc/invoke.texi (Overall Options): Move closing brace to end of
6040 (Optimization Options): Add missing @gol.
6041 (Directory Options): Likewise.
6042 (i386 and x86-64 Options): Likewise.
6043 (RS6000 and PowerPC Options): Likewise.
6044 (i386 and x86-64 Windows Options): Likewise.
6045 (V850 Options): Add text missing from descriptions.
6047 2011-03-22 Richard Henderson <rth@redhat.com>
6049 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6050 (avr_incoming_return_addr_rtx): New.
6051 (emit_push_byte): New.
6052 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6053 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6054 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6055 (emit_pop_byte): New.
6056 (expand_epilogue): Use it. Pop frame pointer by bytes.
6057 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6058 (INCOMING_RETURN_ADDR_RTX): New.
6059 (INCOMING_FRAME_SP_OFFSET): New.
6060 (ARG_POINTER_CFA_OFFSET): New.
6061 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6062 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6065 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6067 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6069 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6070 (FUNCTION_ARG_ADVANCE): Likewise.
6071 * tm.texi.in: Change references to them to hook references.
6072 * tm.texi: Regenerate.
6073 * targhooks.c (default_function_arg): Eliminate check for target
6075 (default_function_incoming_arg): Likewise.
6076 (default_function_arg_advance): Likewise.
6077 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6078 (function_arg_advance): Likewise.
6079 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6081 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6083 * tree.c (build_call_1): New function.
6084 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6086 2011-03-22 Richard Guenther <rguenther@suse.de>
6088 PR tree-optimization/48228
6089 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6090 for single-arg PHIs.
6092 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6094 PR rtl-optimization/48143
6095 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6096 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6097 sse2_cvtps2pd): Likewise.
6099 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6101 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6103 2011-03-22 Richard Guenther <rguenther@suse.de>
6105 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6106 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6107 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6108 and REALIGN_LOAD_EXPR.
6109 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6110 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6111 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6112 DOT_PROD_EXPR case ...
6113 (expand_expr_real_2): ... here.
6114 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6115 and REALIGN_LOAD_EXPR.
6116 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6117 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6118 (vect_create_epilog_for_reduction): Likewise.
6119 (vectorizable_reduction): Likewise.
6120 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6121 * tree-vect-stmts.c (vectorizable_load): Likewise.
6123 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6125 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6127 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6129 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6130 handling for PLTOFF/GOTOFF.
6132 2011-03-22 Nick Clifton <nickc@redhat.com>
6134 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6135 trailing backslash from the end of the macro definition.
6137 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6139 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6142 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6144 * expr.h (prepare_operand): Move to...
6145 * optabs.h (prepare_operand): ...here and change the insn code
6146 parameter from "int" to "enum insn_code".
6147 (insn_operand_matches): Declare.
6148 * expr.c (init_expr_target): Use insn_operand_matches.
6149 (compress_float_constant): Likewise.
6150 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6151 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6152 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6153 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6155 (gen_cond_trap): Likewise.
6156 (prepare_operand): Likewise. Change icode to an insn_code.
6157 (insn_operand_matches): New function.
6158 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6159 * reload1.c (gen_reload): Likewise.
6160 * targhooks.c (default_secondary_reload): Likewise.
6162 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6164 * config/alpha/alpha.md (unspec): New define_c_enum.
6167 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6170 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6171 between a call and its CALL_ARG_LOCATION note.
6173 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6175 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6177 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6181 * c-common.c (shorten_compare): If primopN is first sign-extended
6182 to opN and then zero-extended to result type, set primopN to opN.
6184 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6186 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6187 for barrier handlers.
6189 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6191 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6192 UNSPEC constants to be in the unspec enumeration, and redefine
6193 all UNSPECV constants to be in the unspecv enumeration, so that
6194 dumps print which unspec/unspec_volatile this is.
6195 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6196 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6197 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6198 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6199 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6201 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6202 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6203 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6204 * config/rs6000/sync.md (isync, lwsync): Ditto.
6206 2011-03-21 Richard Guenther <rguenther@suse.de>
6208 * params.def (lto-min-partition): Fix typo.
6210 2011-03-21 Richard Guenther <rguenther@suse.de>
6213 * c-decl.c (grokdeclarator): Drop to the main variant only
6214 for array types. Drop flag_gen_aux_info check.
6216 2011-03-21 Richard Guenther <rguenther@suse.de>
6218 PR translation/47911
6219 * params.def (lto-partitions): Fix typo.
6220 (lto-min-partition): Fix wording.
6222 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6224 * config/rs6000/t-freebsd: Remove duplication from file.
6226 2011-03-21 Richard Guenther <rguenther@suse.de>
6229 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6231 2011-03-21 Richard Guenther <rguenther@suse.de>
6234 * params.def (lto-partitions): Require at least 1 partition.
6236 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6238 * gthr-solaris.h: Remove.
6239 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6240 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6241 (LIB_SPEC): Likewise.
6242 * config/sol2.opt (threads): Remove.
6243 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6244 (sparc*-*-solaris2*): Likewise.
6245 * configure.ac (enable_threads): Enable solaris support.
6246 * configure: Regenerate.
6247 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6248 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6251 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6253 * config.gcc: Obsolete *-*-solaris2.8*.
6254 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6256 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6259 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6260 reference. Solaris 8 perl works.
6262 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6265 * doc/install.texi (Prerequisites): Move jar etc. up.
6266 Explain support library version requirements.
6268 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6271 * doc/install.texi (Prerequisites): Move Perl to build
6272 requirements. Always necessary on Solaris 2 with Sun ld.
6274 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6276 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6278 (Specific, i?86-*-solaris2.[89]): Likewise.
6279 (Specific, i?86-*-solaris2.10): Likewise.
6280 (Specific, mips-sgi-irix6): Likewise.
6281 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6282 Update for binutils 2.21.
6284 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6286 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6287 Allow -fuse-linker-plugin for non-default plugin linker.
6288 * configure: Regenerate.
6290 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6293 * gengtype.c (files_rules): Added rule for cp/parser.h.
6295 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6298 * config/s390/s390.c (s390_delegitimize_address): Don't call
6299 lowpart_subreg if orig_x has BLKmode.
6301 2011-03-21 Kai Tietz <ktietz@redhat.com>
6304 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6305 * tree.h (attribute_spec): Add new member affects_type_identity.
6306 * attribs.c (empty_attribute_table): Adjust attribute_spec
6308 * config/alpha/alpha.c: Likewise.
6309 * config/arc/arc.c: Likewise.
6310 * config/arm/arm.c: Likewise.
6311 * config/avr/avr.c: Likewise.
6312 * config/bfin/bfin.c: Likewise.
6313 * config/crx/crx.c: Likewise.
6314 * config/darwin.h: Likewise.
6315 * config/h8300/h8300.c: Likewise.
6316 * config/i386/cygming.h: Likewise.
6317 * config/i386/i386.c: Likewise.
6318 * config/ia64/ia64.c: Likewise.
6319 * config/m32c/m32c.c: Likewise.
6320 * config/m32r/m32r.c: Likewise.
6321 * config/m68hc11/m68hc11.c: Likewise.
6322 * config/m68k/m68k.c: Likewise.
6323 * config/mcore/mcore.c: Likewise.
6324 * config/mep/mep.c: Likewise.
6325 * config/microblaze/microblaze.c: Likewise.
6326 * config/mips/mips.c: Likewise.
6327 * config/rs6000/rs6000.c: Likewise.
6328 * config/rx/rx.c: Likewise.
6329 * config/sh/sh.c: Likewise.
6330 * config/sol2.h: Likewise.
6331 * config/sparc/sparc.c: Likewise.
6332 * config/spu/spu.c: Likewise.
6333 * config/stormy16/stormy16.c: Likewise.
6334 * config/v850/v850.c: Likewise.
6336 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6338 * simplify-rtx.c (simplify_binary_operation_1): Handle
6339 (xor (and A B) C) case when B and C are both constants.
6341 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6343 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6345 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6348 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6350 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6352 PR rtl-optimization/48156
6353 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6354 assume df and df_lr are not NULL.
6356 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6359 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6360 between a call and its CALL_ARG_LOCATION note.
6362 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6365 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6366 between a call and its corresponding CALL_ARG_LOCATION note.
6368 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6370 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6371 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6372 * haifa-sched.c (setup_ref_regs): Ditto.
6373 * caller-save.c (add_used_regs_1): Ditto.
6374 * dse.c (look_for_hardregs): Ditto.
6375 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6376 * sched-rgn.c (check_live_1): Ditto.
6378 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6380 * c-decl.c (diagnose_mismatched_decls): Give an error for
6381 redefining a typedef with variably modified type.
6383 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6385 * c-decl.c (grokfield): Don't allow typedefs for structures or
6386 unions with no tag by default.
6387 * doc/extend.texi (Unnamed Fields): Update.
6389 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6391 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6392 Rewrite using indirect functions.
6393 (lwp_slwpcb): Ditto.
6394 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6395 (avx_vinsertf128<mode>): Ditto.
6397 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6399 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6402 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6404 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6405 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6407 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6409 PR rtl-optimization/48170
6410 * gcse.c (hoist_code): Remove bogus asserts.
6412 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6414 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6415 computation for prologue/epilogue.
6417 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6419 * Makefile.in (check-consistency): Remove.
6421 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6424 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6425 arange_table_in_use is 0, but either text_section_used or
6426 cold_text_section_used is true. Don't call it if
6427 !info_section_emitted.
6429 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6431 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6432 FUNCTION_VALUE_REGNO_P): Remove.
6433 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6435 * config/avr/avr.c (avr_ret_register): Make static inline.
6436 (avr_function_value_regno_p): New function.
6437 (avr_libcall_value): Make static. Add 'func' argument.
6438 (avr_function_value): Make static. Rename 'func' argument to
6439 'fn_decl_or_type', forward it to avr_libcall_value. Call
6440 avr_ret_register function instead of RET_REGISTER macro.
6441 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6443 2011-03-18 Jason Merrill <jason@redhat.com>
6446 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6448 2011-03-18 Richard Guenther <rguenther@suse.de>
6450 * doc/install.texi (--enable-gold): Remove.
6451 (--with-plugin-ld): Document.
6452 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6454 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6457 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6458 again after expansion changes.
6460 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6462 * combine.c (try_combine): Do simplification only call of
6463 subst() on i2 even when i1 is present. Update comments.
6465 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6467 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6468 and UNSPEC_PCREL_SYMOFF.
6470 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6472 * config/s390/s390.md: Use define_c_enum for the unspec constant
6475 2011-03-18 Richard Henderson <rth@redhat.com>
6476 Jakub Jelinek <jakub@redhat.com>
6479 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6480 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6482 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6485 * combine.c (cant_combine_insn_p): Don't check zero/sign
6486 extended hard registers.
6488 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6491 * combine.c (cant_combine_insn_p): Check zero/sign extended
6494 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6496 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6497 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6498 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6499 Change return type to bool.
6500 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6502 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6505 * var-tracking.c (prepare_call_arguments): If CALL target
6506 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6507 pc instead of looking it up using cselib_lookup and use
6508 Pmode for it if x has VOIDmode.
6509 * dwarf2out.c (gen_subprogram_die): If also both first and
6510 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6513 * function.c (assign_parms): For data.passed_pointer parms
6514 use MEM of data.entry_parm instead of data.entry_parm itself
6515 as DECL_INCOMING_RTL.
6516 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6517 also when passed and declared mode is the same, DECL_RTL
6518 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6521 2011-03-16 Jeff Law <law@redhat.com>
6523 PR rtl-optimization/37273
6524 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6525 handle them like argument loads from stack slots. Do not double
6526 count memory for memory constants and argument loads from stack slots.
6528 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6531 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6533 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6536 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6538 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6541 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6543 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6544 Clear call_arg_locations and call_arg_loc_last always.
6547 * var-tracking.c (prepare_call_arguments): If argument needs to be
6548 passed by reference, adjust argtype and mode.
6550 2011-03-17 Richard Guenther <rguenther@suse.de>
6553 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6554 a value make sure to fold the statement.
6556 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6559 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6560 return condition with !cfun->calls_alloca.
6562 2011-03-17 Richard Guenther <rguenther@suse.de>
6565 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6566 origin for decls in other ltrans units.
6567 (input_varpool_node): Likewise.
6569 2011-03-17 Richard Guenther <rguenther@suse.de>
6572 * tree-object-size.c (compute_object_offset): Properly return
6573 the offset operand of MEM_REFs as sizetype.
6575 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6577 PR rtl-optimization/48141
6578 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6579 * dse.c: Include params.h.
6580 (active_local_stores_len): New variable.
6581 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6583 (record_store, check_mem_read_rtx): Decrease it when removing
6585 (scan_insn): Likewise. Increase it when adding to chain, if it
6586 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6587 set active_local_stores to NULL before the addition.
6588 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6590 PR rtl-optimization/48141
6591 * dse.c (record_store): If no positions are needed in an insn
6592 that cannot be deleted, at least unchain it from active_local_stores.
6594 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6597 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6598 (lookup_type_die_strip_naming_typedef): ... here.
6599 (get_context_die): Use it.
6600 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6601 the anonymous struct named by the naming typedef.
6603 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6606 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6607 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6609 2011-03-16 Jeff Law <law@redhat.com>
6611 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6612 check for operands of conditional. Allow type to be a pointer.
6614 2011-03-16 Richard Guenther <rguenther@suse.de>
6616 PR tree-optimization/48149
6617 * fold-const.c (fold_binary_loc): Fold
6618 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6620 2011-03-16 Richard Guenther <rguenther@suse.de>
6622 PR tree-optimization/26134
6623 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6624 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6625 (non_rewritable_mem_ref_base): Handle complex type component
6626 accesses, constrain offsets for vector and complex extracts
6629 2011-03-16 Richard Guenther <rguenther@suse.de>
6631 PR tree-optimization/48146
6632 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6633 operands avoiding the need for renaming.
6635 2011-03-16 Richard Guenther <rguenther@suse.de>
6637 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6638 constant folding. Move MEM_REF canonicalization first.
6639 Rely on fold_const_aggregate_ref for initializer folding.
6640 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6642 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6645 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6646 arg0/arg1 or their arguments are always fold converted to matching
6649 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6652 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6655 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6656 Handle in-tree gold.
6657 (ld_vers): Extract binutils version for gold.
6658 (gcc_cv_ld_hidden): Handle gold here.
6659 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6660 * configure: Regenerate.
6661 * config.in: Regenerate.
6662 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6663 -fuse-linker-plugin otherwise.
6664 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6665 (LINK_COMMAND_SPEC): Use it.
6666 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6668 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6670 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6671 * calls.c: Remove debug.h include.
6672 (emit_call_1): Don't call virtual_call_token debug hook.
6673 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6674 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6675 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6676 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6677 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6678 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6679 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6680 dwarf2out_virtual_call): Remove.
6681 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6682 copy_call_info and virtual_call hooks.
6683 (dwarf2out_init): Don't initialize vcall_insn_table,
6684 debug_dcall_section and debug_vcall_section.
6685 (prune_unused_types): Don't mark nodes from dcall_table.
6686 (dwarf2out_finish): Don't output dcall or vcall tables.
6687 * final.c (final_scan_insn): Don't call direct_call or
6688 virtual_call debug hooks.
6689 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6690 virtual_call_token, copy_call_info and virtual_call hooks.
6691 (debug_nothing_uid): Remove prototype.
6692 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6693 copy_call_info and virtual_call hooks.
6694 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6695 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6696 * debug.c (do_nothing_debug_hooks): Likewise.
6697 (debug_nothing_uid): Remove.
6698 * doc/invoke.texi (-fenable-icf-debug): Remove.
6699 * common.opt (-fenable-icf-debug): Likewise.
6701 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6702 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6703 call's MEM. Handle functions returning aggregate through a hidden
6704 first pointer. For virtual calls add clobbered pc to call arguments
6706 * dwarf2out.c (gen_subprogram_die): Emit
6707 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6711 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6712 * rtl.h (ENTRY_VALUE_EXP): Define.
6713 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6714 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6715 * print-rtl.c (print_rtx): Likewise.
6716 * gengtype.c (adjust_field_rtx_def): Likewise.
6717 * var-tracking.c (vt_add_function_parameter): Adjust
6718 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6719 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6720 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6721 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6722 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6724 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6725 Call var_location debug hook even on CALL_INSNs.
6726 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6727 * rtl.def (ENTRY_VALUE): New.
6728 * dwarf2out.c: Include cfglayout.h.
6729 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6730 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6731 (struct call_arg_loc_node): New type.
6732 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6733 tail_call_site_count): New variables.
6734 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6735 DW_TAG_GNU_call_site_parameter.
6736 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6737 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6738 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6739 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6740 and DW_AT_GNU_all_source_call_sites.
6741 (mem_loc_descriptor): Handle ENTRY_VALUE.
6742 (add_src_coords_attributes): Don't add enything if
6743 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6744 (dwarf2out_abstract_function): Save and clear call_arg_location,
6745 call_site_count and tail_call_site_count around dwarf2out_decl call.
6746 (gen_call_site_die): New function.
6747 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6748 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6749 (dwarf2out_function_decl): Clear call_arg_locations,
6750 call_arg_loc_last, set call_site_count and tail_call_site_count
6751 to -1 and free block_map.
6752 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6753 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6754 followed by any real instructions.
6755 (dwarf2out_begin_function): Set call_site_count and
6756 tail_call_site_count to 0.
6757 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6758 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6759 attempt to force a DIE for it and worst case remove the attribute.
6760 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6761 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6763 * var-tracking.c: Include tm_p.h.
6764 (vt_stack_adjustments): For calls call note_register_arguments.
6765 (argument_reg_set): New variable.
6766 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6767 ensure the VALUE is resolved.
6768 (call_arguments): New variable.
6769 (prepare_call_arguments): New function.
6770 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6771 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6772 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6773 always use the best expression.
6774 (vt_expand_loc): Add ignore_cur_loc argument.
6775 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6776 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6777 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6779 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6780 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6781 argument. Don't call cselib_preserve_only_values and
6783 (note_register_arguments): New function.
6784 (vt_initialize): Compute argument_reg_set. Call
6785 vt_add_function_parameters before processing basic blocks instead of
6786 afterwards. For calls call prepare_call_arguments before calling
6787 cselib_process_insn.
6788 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6789 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6790 (var-tracking.o): Depend on $(TM_P_H).
6791 * cfglayout.h (insn_scope): New prototype.
6792 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6793 * cfglayout.c (insn_scope): No longer static.
6794 * insn-notes.def (CALL_ARG_LOCATION): New.
6795 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6796 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6797 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6798 nothing for DECL_EXTERNAL BLOCK_VARS.
6800 2011-03-16 Alan Modra <amodra@gmail.com>
6803 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6804 create invalid offset address for vsx splat insn.
6805 * config/rs6000/predicates.md (splat_input_operand): New.
6806 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6808 2011-03-15 Xinliang David Li <davidxl@google.com>
6811 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6812 (normalize_preds): New function.
6813 (is_use_properly_guarded): Normalize def predicates.
6815 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6818 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6819 in the output template.
6821 2011-03-15 Richard Guenther <rguenther@suse.de>
6824 * tree-pretty-print.c (dump_function_declaration): Properly
6825 dump unprototyped and varargs function types.
6827 2011-03-15 Richard Guenther <rguenther@suse.de>
6829 PR tree-optimization/13954
6830 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6833 2011-03-15 Richard Guenther <rguenther@suse.de>
6835 PR tree-optimization/48037
6836 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6837 selects into BIT_FIELD_REFs.
6838 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6841 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6843 PR tree-optimization/48129
6844 * builtins.c (fold_builtin_snprintf): Convert to type of
6845 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6846 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6848 2011-03-15 Richard Guenther <rguenther@suse.de>
6850 PR tree-optimization/41490
6851 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6852 value but with VUSE.
6853 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6855 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6856 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6857 * tree-tailcall.c (find_tail_calls): Ignore returns.
6859 2011-03-15 Richard Guenther <rguenther@suse.de>
6862 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6863 or variable-indexed array accesses when in gimple form.
6865 2011-03-15 Richard Guenther <rguenther@suse.de>
6867 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6869 2011-03-15 Alan Modra <amodra@gmail.com>
6872 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6873 presume symbol_refs without a symbol_ref_decl are suitably
6874 aligned, nor other trees we may see here. Handle anchor symbols.
6875 (legitimate_constant_pool_address_p): Comment. Add mode param.
6876 Check cmodel=medium addresses. Adjust all calls.
6877 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6878 creating cmodel=medium optimized access to locals.
6879 * config/rs6000/constraints.md (R): Pass QImode to
6880 legitimate_constant_pool_address_p.
6881 * config/rs6000/predicates.md (input_operand): Pass mode to
6882 legitimate_constant_pool_address_p.
6883 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6886 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6889 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6890 64-bit constants being loaded into registers other than GPRs such
6891 as loading 0 into a VSX register.
6893 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6895 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6897 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6900 * builtins.c (fold_builtin_snprintf): New function.
6901 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6902 (fold_builtin_4): Likewise.
6905 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6906 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6907 and C - X == X also strip nops from +/-/p+ operand.
6908 When optimizing -X == C, fold C to arg0's type.
6911 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6912 emit it as add_AT_int instead of add_AT_unsigned.
6914 2011-03-14 Tom Tromey <tromey@redhat.com>
6916 * unwind-dw2.c: Include sys/sdt.h if it exists.
6917 (_Unwind_DebugHook): Use STAP_PROBE2.
6918 * config.in, configure: Rebuild.
6919 * configure.ac: Check for sys/sdt.h.
6921 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6923 * config/i386/i386.md (ROUND_FLOOR): New constant.
6924 (ROUND_CEIL): Ditto.
6925 (ROUND_TRUNC): Ditto.
6926 (ROUND_MXCSR): Ditto.
6927 (ROUND_NO_EXC): Ditto.
6928 (rint<mode>2): Use new defines instead of numerical constants.
6929 (floor<mode>2): Ditto.
6930 (ceil<mode>2): Ditto.
6931 (btrunc<mode>2): Ditto.
6932 * config/i386/i386-builtin-types.def: Define ROUND function type
6934 * config/i386/i386.c (enum ix86_builtins): Add
6935 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6936 (struct builtin_description): Add
6937 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6938 (ix86_expand_sse_round): New static function.
6939 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6941 (ix86_builtin_vectorized_function): Handle
6942 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6944 2011-03-14 Tom Tromey <tromey@redhat.com>
6946 * c-parser.c (c_parser_asm_string_literal): Clear
6947 warn_overlength_strings.
6949 2011-03-14 Tom Tromey <tromey@redhat.com>
6951 * c-parser.c (disable_extension_diagnostics): Save
6952 warn_overlength_strings.
6953 (restore_extension_diagnostics): Restore warn_overlength_strings.
6955 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6957 * BASE-VER: Change to 4.7.0.
6959 2011-03-14 Richard Guenther <rguenther@suse.de>
6962 * tree.c (build_vector_from_val): Adjust assert to requirements
6965 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6968 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6970 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6972 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6973 terms of target_flags_explicit. Adjust copyright year.
6975 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6976 * config/rs6000/t-freebsd: New file. Add override for
6979 2011-03-13 Chris Demetriou <cgd@google.com>
6981 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6982 (-fno-diagnostics-show-option): this, to reflect current default.
6983 (-Werror=): Update text about -fno-diagnostics-show-option.
6985 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6988 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6989 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6990 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6991 mode is not V2DImode or V2DFmode.
6992 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6993 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6994 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6996 (movdi_internal64): Likewise.
6998 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7000 PR tree-optimization/47127
7001 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7003 (set_cloog_options): Same.
7004 (scop_to_clast): Same.
7005 (print_clast_stmt): Do not call cloog_state_malloc and
7007 (print_generated_program): Same.
7009 * graphite-clast-to-gimple.h (cloog_state): Declared.
7010 (scop_to_clast): Adjust declaration.
7011 * graphite.c (cloog_state): Defined here.
7012 (graphite_initialize): Call cloog_state_malloc.
7013 (graphite_finalize): Call cloog_state_free.
7015 2011-03-11 Jason Merrill <jason@redhat.com>
7017 * attribs.c (lookup_attribute_spec): Take const_tree.
7020 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7022 * config/sparc/sparc.c (sparc_option_override): Use
7023 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7025 2011-03-11 Richard Guenther <rguenther@suse.de>
7027 PR tree-optimization/48067
7028 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7029 multiplication result will be only used once on the target
7032 2011-03-11 Richard Guenther <rguenther@suse.de>
7034 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7036 2011-03-11 Richard Guenther <rguenther@suse.de>
7039 * tree.c (find_decls_types_r): Do not walk types only reachable
7040 from IDENTIFIER_NODEs.
7042 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7045 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7046 all vnode->force_output nodes as needed.
7048 2011-03-11 Jason Merrill <jason@redhat.com>
7051 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7052 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7054 2011-03-11 Martin Jambor <mjambor@suse.cz>
7056 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7059 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7061 PR tree-optimization/48063
7062 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7063 inline functions called once if !tree_can_inline_p (node->callers).
7065 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7067 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7069 * config/score/score3.c: Delete.
7070 * config/score/score3.h: Delete.
7071 * config/score/mul-div.S: Delete.
7072 * config/score/sfp-machine.h: Add new file.
7073 * config/score/constraints.md: Add new file.
7074 * config/score/t-score-softfp: Add new file.
7075 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7076 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7077 (score7_extra_constraint): Delete.
7078 (score7_option_override): Remove unused code.
7079 * config/score/score.c: Remove score3 and score5 define and code.
7080 * config/score/score.h: Remove score3 and score5 define and code.
7081 * config/score/score.md: Remove score3 template and unusual insn.
7082 * config/score/score.opt: Remove score3 and score5 options.
7084 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7086 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7087 when _HPUX_SOURCE is defined.
7088 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7090 2011-03-10 Jason Merrill <jason@redhat.com>
7093 * stor-layout.c (layout_type): Don't set structural equality
7094 on arrays of incomplete type.
7095 * tree.c (type_hash_eq): Handle comparing them properly.
7097 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7100 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7101 result mode matches original rtl mode.
7103 2011-03-10 Nick Clifton <nickc@redhat.com>
7105 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7106 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7108 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7110 PR rtl-optimization/47866
7111 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7112 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7113 if target wasn't scalar.
7114 * function.c (assign_stack_temp_for_type): Assert that neither
7115 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7116 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7118 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7120 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7122 * config/s390/s390-protos.h (s390_label_align): New prototype.
7123 * config/s390/s390.c (s390_label_align): New function.
7124 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7126 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7129 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7130 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7131 (output_vec_const_move): Ditto.
7133 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7135 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7136 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7137 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7138 Change 'rclass' argument and result type to reg_class_t.
7139 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7141 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7143 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7144 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7145 (TARGET_MEMORY_MOVE_COST): Define.
7146 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7148 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7151 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7154 PR tree-optimization/48022
7155 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7158 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7161 * var-tracking.c (find_use_val): Return NULL for
7162 cui->sets && cui->store_p BLKmode MEMs.
7164 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7166 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7168 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7169 xstormy16_print_operand_address): Remove.
7170 * config/stormy16/stormy16.c (xstormy16_print_operand,
7171 xstormy16_print_operand_address): Make static.
7172 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7174 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7177 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7178 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7181 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7184 * cfgloopmanip.c (fix_bb_placements): Return immediately
7185 if FROM is BASE_LOOP's header.
7187 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7189 * gimplify.c (gimplify_function_tree): Fix building calls
7190 to __builtin_return_address.
7192 2011-03-07 Alan Modra <amodra@gmail.com>
7194 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7195 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7196 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7197 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7199 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7200 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7201 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7202 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7203 * config/rs6000/rs6000.c
7204 (rs6000_elf_end_indicate_exec_stack): Rename to..
7205 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7206 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7207 (rs6000_file_start): ..here.
7208 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7209 file scope variables.
7210 (call_ABI_of_interest): New function.
7211 (init_cumulative_args): Set above vars when function return value
7212 is a float, vector, or small struct.
7213 (rs6000_function_arg_advance_1): Likewise for function args.
7214 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7215 references float args.
7217 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7219 * doc/cfg.texi: Remove "See" before @ref.
7220 * doc/invoke.texi: Likewise.
7222 2011-03-05 Jason Merrill <jason@redhat.com>
7224 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7226 2011-03-05 Anthony Green <green@moxielogic.com>
7228 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7230 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7232 PR rtl-optimization/47899
7233 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7234 to flow_loop_nested_p when moving the loop upward.
7236 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7239 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7241 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7243 PR tree-optimization/47967
7244 * ipa-cp.c (build_const_val): Return NULL instead of creating
7245 VIEW_CONVERT_EXPR for mismatching sizes.
7246 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7247 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7248 give up on versioning.
7250 2011-03-05 Alan Modra <amodra@gmail.com>
7253 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7254 full cmodel medium/large lo_sum + high addresses.
7256 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7258 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7259 pool references in UNSPEC_LTREL_OFFSET.
7261 2011-03-04 Jan Hubicka <jh@suse.cz>
7264 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7265 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7266 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7268 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7269 cgraph_add_thunk): Add node pointers.
7270 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7271 associated to right node.
7272 (input_node): Update use of cgraph_same_body_alias
7273 and cgraph_add_thunk.
7275 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7277 * config/i386/i386.opt (mprefer-avx128): New flag.
7278 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7279 modes when the flag -mprefer-avx128 is on.
7281 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7283 * dwarf2out.c (compare_loc_operands): Fix address handling.
7285 2011-03-04 Alan Modra <amodra@gmail.com>
7287 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7289 2011-03-04 Richard Guenther <rguenther@suse.de>
7292 * expmed.c (extract_bit_field_1): Prefer vector modes that
7293 vec_extract patterns can handle.
7295 2011-03-04 Richard Guenther <rguenther@suse.de>
7298 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7300 2011-03-04 Richard Henderson <rth@redhat.com>
7302 * explow.c (emit_stack_save): Remove 'after' parameter.
7303 (emit_stack_restore): Likewise.
7304 * expr.h: Update to match.
7305 * builtins.c, calls.c, stmt.c: Likewise.
7306 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7307 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7308 * function.c (expand_function_end): Insert the emit_stack_save
7309 sequence before parm_birth_insn instead of after.
7311 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7313 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7314 (ssse3_pmaddubsw128): Ditto.
7315 (ssse3_pmaddubsw): Ditto.
7317 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7319 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7321 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7324 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7325 on TYPE_SIZE_UNIT if it is a DECL.
7328 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7329 first operand is not is_gimple_mem_ref_addr, try to fold it.
7330 If the operand still isn't is_gimple_mem_ref_addr, clear
7333 2011-03-03 Richard Guenther <rguenther@suse.de>
7336 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7338 (refs_may_alias_p_1): For release branches return true if
7339 we are confused by our input.
7341 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7343 * config/s390/s390.c (s390_function_value): Rename to ...
7344 (s390_function_and_libcall_value): ... this.
7345 (s390_function_value): New function.
7346 (s390_libcall_value): New function.
7347 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7348 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7349 target macro definitions.
7350 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7352 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7354 * config/i386/freebsd64.h (CC1_SPEC): Define.
7355 * config/i386/linux64.h (CC1_SPEC): Define.
7356 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7358 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7360 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7362 * config/stormy16/stormy16.c: Include reload.h.
7363 (xstormy16_memory_move_cost): New function.
7364 (TARGET_MEMORY_MOVE_COST): Define.
7366 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7368 PR rtl-optimization/47925
7369 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7370 with side effects. Remove the more-specific check for volatile asms.
7372 2011-03-02 Alan Modra <amodra@gmail.com>
7375 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7376 toc relative addresses for valid offsets.
7378 2011-03-01 Richard Guenther <rguenther@suse.de>
7380 PR tree-optimization/47890
7381 * tree-vect-loop.c (get_initial_def_for_induction): Set
7382 related stmt properly.
7384 2011-03-01 Richard Guenther <rguenther@suse.de>
7387 * lto-streamer.c (lto_record_common_node): Also register
7390 2011-03-01 Richard Guenther <rguenther@suse.de>
7393 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7394 Do not stream DECL_ABSTRACT_ORIGIN.
7395 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7396 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7397 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7398 Do not stream DECL_ABSTRACT_ORIGIN.
7399 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7400 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7402 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7404 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7405 FUNCTION_VALUE_REGNO_P): Remove.
7406 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7407 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7408 Add 'outgoing' argument.
7409 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7411 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7412 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7414 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7417 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7418 (lookup_filename): Likewise.
7419 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7421 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7422 Jakub Jelinek <jakub@redhat.com>
7425 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7426 (assign_stack_local_1): Change last argument type to int.
7427 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7428 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7429 don't record padding space into frame_space_list nor use those areas.
7430 (assign_stack_local): Adjust caller.
7431 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7432 of assign_stack_local, pass 0 as last argument.
7433 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7436 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7439 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7440 Use target address_mode and pointer_mode hooks instead of hardcoded
7441 Pmode and ptr_mode. Handle some simple cases of extending if
7442 POINTERS_EXTEND_UNSIGNED < 0.
7443 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7444 Call convert_debug_memory_address.
7445 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7446 convert_debug_memory_address.
7449 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7450 * configure: Regenerated.
7451 * config.in: Regenerated.
7452 * varasm.c (default_function_section): Return NULL
7453 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7455 2011-02-28 Martin Jambor <mjambor@suse.cz>
7457 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7458 the description to match the printed values.
7460 2011-02-28 Richard Guenther <rguenther@suse.de>
7462 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7463 of the copied scope tree.
7465 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7467 * doc/extend.texi (Function Attributes): Avoid deeply (and
7468 wrongly) nested tables.
7470 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7473 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7474 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7475 r isn't op0 nor op1.
7477 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7479 * config/avr/avr.md: Remove magic comment for emacs.
7481 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7484 * config/avr/avr.c (avr_option_override): Use error on bad options.
7485 (avr_help): New function.
7486 (TARGET_HELP): Define.
7488 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7491 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7492 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7494 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7496 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7497 (ARM Options): Ditto.
7498 (i386 and x86-64 Options): Ditto.
7499 (RX Options): Ditto.
7500 (SPARC Options): Ditto.
7502 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7504 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7505 FreeBSD 6 and later. Generally use cpu generic.
7507 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7509 * doc/cpp.texi: Update copyright years.
7511 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7514 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7516 2011-02-25 Jon Beniston <jon@beniston.com>
7519 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7520 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7521 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7522 (lm32_block_move_inline): Add type cast to remove warning.
7523 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7524 (gen_int_relational): Move declarations to start of function.
7526 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7528 PR tree-optimization/45470
7529 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7530 can throw internally only.
7531 * tree-vect-stmts.c (vectorizable_call): Likewise.
7533 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7535 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7536 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7537 * config/stormy16/stormy16-protos.h
7538 (xstormy16_preferred_reload_class): Remove.
7539 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7540 static. Change 'rclass' argument and return type to reg_class_t.
7541 (TARGET_PREFERRED_RELOAD_CLASS,
7542 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7544 2011-02-24 Richard Guenther <rguenther@suse.de>
7546 * lto-streamer-in.c (input_bb): Do not find referenced vars
7547 in debug statements.
7549 2011-02-23 Jason Merrill <jason@redhat.com>
7551 * common.opt (fabi-version): Document v5 and v6.
7553 2011-02-23 Richard Guenther <rguenther@suse.de>
7555 PR tree-optimization/47849
7556 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7558 2011-02-23 Jie Zhang <jie@codesourcery.com>
7560 * opts-common.c (decode_cmdline_option): Print empty string
7561 argument as "" in decoded->orig_option_with_args_text.
7562 * gcc.c (execute): Print empty string argument as ""
7563 in the verbose output.
7564 (do_spec_1): Keep empty string argument.
7566 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7568 * config.gcc: Declare score-* and crx-* obsolete.
7570 2011-02-23 Jie Zhang <jie@codesourcery.com>
7572 PR rtl-optimization/47763
7573 * web.c (web_main): Ignore naked clobber when replacing register.
7575 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7577 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7580 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7583 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7585 2011-02-22 Mike Stump <mikestump@comcast.net>
7587 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7589 * configure: Regenerate.
7591 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7593 PR rtl-optimization/46002
7594 * ira-color.c (update_copy_costs): Change class intersection
7595 test to reg_class_contents[] test of 'hard_regno'.
7597 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7599 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7601 * config/hpux11.opt (mt): Likewise.
7602 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7603 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7604 * config/vax/elf.opt (mno-asm-pic): Likewise.
7605 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7607 2011-02-21 Mike Stump <mikestump@comcast.net>
7610 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7611 tree so we can get save the type.
7612 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7613 for CFString instead of trying to use past the end of the builtins.
7614 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7615 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7616 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7617 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7618 Rename to darwin_builtin_cfstring.
7619 (darwin_init_cfstring_builtins): Return the built type.
7621 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7624 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7625 (_mm256_insert_epi64): Use _mm_insert_epi64.
7627 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7629 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7630 * config/stormy16/stormy16-protos.h
7631 (xstormy16_mode_dependent_address_p): Remove.
7632 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7633 Make static. Change return type to bool. Change argument type to
7634 const_rtx. Remove dead code.
7635 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7637 2011-02-21 Richard Guenther <rguenther@suse.de>
7640 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7641 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7642 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7644 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7645 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7647 2011-02-20 Richard Guenther <rguenther@suse.de>
7650 * tree.c (free_lang_data_in_decl): Clean builtins from
7651 the TU decl BLOCK_VARS.
7653 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7657 * haifa-sched.c (fix_tick_ready): Skip tick computation
7660 2011-02-19 Richard Guenther <rguenther@suse.de>
7663 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7664 Remove lazy BLOCK_VARS streaming.
7665 (lto_input_ts_block_tree_pointers): Likewise.
7666 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7668 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7670 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7672 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7674 * config/i386/biarch32.h, config/i386/mach.h,
7675 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7677 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7680 * config/i386/i386.md (peephole2 for shift and plus): Use
7681 operands[1] original mode in the first insn.
7683 2011-02-18 Mike Stump <mikestump@comcast.net>
7685 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7687 2011-02-18 Jan Hubicka <jh@suse.cz>
7690 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7691 to zero when the function is not inlinable at all.
7693 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7695 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7696 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7697 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7698 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7699 * config/pa/t-pa64: Likewise.
7700 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7702 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7705 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7707 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7710 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7712 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7714 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7715 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7716 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7717 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7718 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7719 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7720 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7721 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7722 m32r_legitimate_address_p): New functions.
7723 * config/m32r/constraints.md (constraint "S"): Don't use
7724 STORE_PREINC_PREDEC_P.
7725 (constraint "U"): Don't use LOAD_POSTINC_P.
7727 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7729 PR rtl-optimization/46178
7730 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7731 compute ira_hard_regno_cover_class[].
7733 2011-02-18 Richard Guenther <rguenther@suse.de>
7736 * lto-streamer.h (lto_global_var_decls): Declare.
7737 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7738 statics for global var processing.
7740 2011-02-18 Richard Guenther <rguenther@suse.de>
7742 PR tree-optimization/47737
7743 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7744 edge dominance check.
7746 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7749 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7750 avoid invalid rtx sharing.
7752 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7754 * doc/cpp.texi (Obsolete Features): Add background on the
7755 origin of assertions.
7757 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7759 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7761 * config/darwin.c (output_objc_section_asm_op): Added support for
7763 (is_objc_metadata): New.
7764 (darwin_objc2_section): New.
7765 (darwin_objc1_section): New.
7766 (machopic_select_section): Added support for ABI v1 and v2.
7767 (darwin_emit_objc_zeroed): New.
7768 (darwin_output_aligned_bss): Detect objc metadata and treat it
7770 (darwin_asm_output_aligned_decl_common): Same.
7771 (darwin_asm_output_aligned_decl_local): Same.
7772 * config/darwin-sections.def: Updated for ABI v1 and v2.
7773 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7774 compiling Objective-C code for the NeXT runtime, default to using
7775 ABI version 0 for 32-bit, and version 2 for 64-bit.
7777 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7779 * common.opt (optimize_fast): New Variable.
7780 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7781 instead of local variable ofast.
7783 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7785 * doc/invoke.texi (fobjc-abi-version): Documented.
7786 (fobjc-nilcheck): Documented.
7787 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7790 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7793 * common.opt (export-dynamic): New Driver option.
7794 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7796 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7798 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7800 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7801 Jan Hubicka <jh@suse.cz>
7805 * cfgexpand.c (account_used_vars_for_block): Remove.
7806 (estimated_stack_frame_size): Use referenced vars.
7807 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7808 that were referenced in the original function. Test src_fn
7809 rather than cfun. Drop redundant get_var_ann.
7810 (setup_one_parameter): Drop redundant get_var_ann.
7811 (declare_return_variable): Likewise.
7812 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7813 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7814 * ipa-inline.c (compute_inline_parameters): Do not compute
7815 disregard_inline_limits here.
7816 (compute_inlinable_for_current, pass_inlinable): New.
7817 (pass_inline_parameters): Require PROP_referenced_vars.
7818 * cgraphunit.c (cgraph_process_new_functions): Don't run
7819 compute_inline_parameters explicitly unless function is in SSA form.
7820 (cgraph_analyze_function): Set .disregard_inline_limits.
7821 * tree-sra.c (convert_callers): Compute inliner parameters
7822 only for functions already in SSA form.
7824 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7826 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7827 -mlittle-endian-data.
7829 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7831 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7832 -mno-fpu, not -fpu and -no-fpu.
7833 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7834 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7836 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7839 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7840 input reload with PLUS RTX.
7842 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7844 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7845 of InverseVar(MDMX).
7847 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7849 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7852 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7854 * config/mn10300/mn10300.opt (mno-crt0): New.
7856 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7858 * config/m68k/uclinux.opt (static-libc): New Driver option.
7860 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7862 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7864 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7866 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7867 %{muser-extend-enabled}.
7869 2011-02-16 Richard Guenther <rguenther@suse.de>
7871 PR tree-optimization/47738
7872 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7873 the TODO from tree_predictive_commoning.
7875 2011-02-15 Jeff Law <law@redhat.com>
7878 2011-01-25 Jeff Law <law@redhat.com>
7880 PR rtl-optimization/37273
7881 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7882 handle them like argument loads from stack slots. Do not double
7883 count memory for memory constants and argument loads from stack slots.
7885 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7888 * combine.c (cant_combine_insn_p): Revert the last change.
7890 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7893 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7894 mode for vector constants. Remove code that checks for TImode.
7896 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7900 * cgraph.h (compute_inline_parameters): Return void.
7901 * ipa-inline.c (compute_inline_parameters): Adjust.
7903 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7907 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7909 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7910 * ipa-inline.c (compute_inline_parameters): Adjust.
7912 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7916 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7917 Adjust all users. Pass FN to...
7918 * tree-flow-inline.h (first_referenced_var): ... this. Add
7920 * ipa-struct-reorg.c: Adjust.
7921 * tree-dfa.c: Adjust.
7922 * tree-into-ssa.c: Adjust.
7923 * tree-sra.c: Adjust.
7924 * tree-ssa-alias.c: Adjust.
7925 * tree-ssa-live.c: Adjust.
7926 * tree-ssa.c: Adjust.
7927 * tree-ssanames.c: Adjust.
7928 * tree-tailcall.c: Adjust.
7930 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7934 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7936 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7937 * tree-flow-inline.h: Adjust.
7938 * gimple-pretty-print.c: Adjust.
7939 * tree-into-ssa.c: Adjust.
7940 * tree-ssa.c: Adjust.
7941 * cfgexpand.c: Adjust.
7943 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7945 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7946 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7947 (EXTRA_CONSTRAINT): Delete.
7948 * config/iq2000/constraints.md: New file.
7949 * config/iq2000/iq2000.md: Include it.
7950 (define_insn ""): Delete.
7951 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7952 unsupported constraint letters from patterns.
7953 (call_value, call_value_internal1): Likewise.
7954 (call_value_multiple_internal1): Likewise.
7956 2011-02-15 Nick Clifton <nickc@redhat.com>
7958 * config/mn10300/mn10300.c: Include tm-constrs.h.
7959 (struct liw_data): New data structure describing an LIW candidate
7961 (extract_bundle): Use struct liw_data. Allow small integer
7962 operands for some instructions.
7963 (check_liw_constraints): Use struct liw_data. Remove swapped
7964 parameter. Add comments describing the checks. Fix bug when
7965 assigning the source of liw1 to the source of liw2.
7966 (liw_candidate): Delete. Code moved into extract_bundle.
7967 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7969 * config/mn10300/predicates.md (liw_operand): New predicate.
7970 Allows registers and small integer constants.
7971 * config/mn10300/constraints.md (O): New constraint. Accetps
7972 integers in the range -8 to +7 inclusive.
7973 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7974 for moving a small integer into a register. Give this alternative
7976 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7977 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7978 using the J,K,L and M constraints,
7979 (liw): Remove SI mode on second operands to allow for HI and QI
7981 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7984 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7987 * combine.c (cant_combine_insn_p): Check zero/sign extended
7990 2011-02-15 Richard Guenther <rguenther@suse.de>
7992 PR tree-optimization/47743
7993 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7994 for a non-type-compatible VN lookup bail out.
7996 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7998 * config/fr30/constraints.md: New file.
7999 * config/fr30/fr30.md: Include it.
8000 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8001 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8002 (EXTRA_CONSTRAINT): Delete.
8004 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8006 * config/frv/constraints.md: New file.
8007 * config/frv/predicates.md: Include it.
8008 * config/frv/frv.c (reg_class_from_letter): Delete.
8009 (frv_option_override): Don't initialize it.
8010 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8011 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8012 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8013 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8014 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8015 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8016 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8017 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8018 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8019 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8020 (REG_CLASS_FROM_CONSTRAINT): Delete.
8022 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8025 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8026 if frame size is 0 in a leaf function.
8028 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8031 * config/alpha/host-osf.c: New file.
8032 * config/alpha/x-osf: New file.
8033 * config.host (alpha*-dec-osf*): Use it.
8035 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8037 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8038 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8039 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8040 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8042 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8044 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8046 * config/stormy16/constraints.md: New file.
8047 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8048 Use satisfies_constraint_Q and satisfies_constraint_R.
8049 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8051 (xstormy16_legitiamte_address_p): Declare.
8052 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8053 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8054 (EXTRA_CONSTRAINT): Delete.
8055 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8057 (xstormy16_extra_constraint_p): Delete.
8059 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8061 PR tree-optimization/46494
8062 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8063 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8064 (pass_rtl_loop_done): Add TODO_verify_flow.
8065 * fwprop.c (pass_rtl_fwprop): Likewise.
8066 * modulo-sched.c (pass_sms): Likewise.
8067 * tree-ssa-dom.c (pass_dominator): Likewise.
8068 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8069 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8070 (pass_tree_loop_done): Likewise.
8071 * tree-ssa-pre.c (execute_pre): Likewise.
8072 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8073 * tree-ssa-sink.c (pass_sink_code): Likewise.
8074 * tree-vrp.c (pass_vrp): Likewise.
8076 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8078 * config/v850/constraints.md: New file.
8079 * config/v850/v850.md: Include it.
8080 * config/v850/predicates.md (reg_or_0_operand): Use
8081 satisfies_constraint_G.
8082 (special_symbolref_operand): Use satisfies_constraint_K.
8083 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8084 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8085 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8086 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8087 (EXTRA_CONSTRAINT): Delete.
8088 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8089 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8090 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8092 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8095 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8098 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8100 * config/mcore/constraints.md: New file.
8101 * config/mcore/mcore.md: Include it.
8102 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8103 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8104 (REG_CLASS_FROM_LETTER): Delete.
8105 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8106 insn_const_int_ok_for_constraint.
8107 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8108 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8109 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8110 (EXTRA_CONSTRAINT): Delete.
8112 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8115 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8116 (IS_SIGHANDLER): Define.
8117 (sparc64_is_sighandler): New function, split off from
8118 sparc64_fallback_frame_state.
8119 (sparc_is_sighandler): New function, split off from
8120 sparc_fallback_frame_state.
8121 (sparc64_fallback_frame_state): Merge with ...
8122 (sparc_fallback_frame_state): ... this into ...
8123 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8124 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8125 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8126 stack instead of hardcoded offsets.
8128 2011-02-14 Andriy Gapon <avg@freebsd.org>
8131 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8133 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8135 * configure: Regenerate.
8137 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8140 * gcc.c (asm_options): Correct spec matching --target-help.
8142 2011-02-12 Martin Jambor <mjambor@suse.cz>
8144 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8145 to gimple call error.
8147 2011-02-12 Mike Stump <mikestump@comcast.net>
8149 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8150 comments in backslash regions.
8152 2011-02-12 Mike Stump <mikestump@comcast.net>
8153 Jakub Jelinek <jakub@redhat.com>
8154 Iain Sandoe <iains@gcc.gnu.org>
8157 * dwarf2out.c (output_cfa_loc): When required, apply the
8158 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8159 (output_loc_sequence): Likewise.
8160 (output_loc_operands_raw): Likewise.
8161 (output_loc_sequence_raw): Likewise.
8162 (output_cfa_loc): Likewise.
8163 (output_loc_list): Suppress register number adjustment when
8164 calling output_loc_sequence()
8165 (output_die): Likewise.
8167 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8169 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8171 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8172 xtensa_memory_move_cost): New functions.
8173 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8175 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8178 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8179 in the current directory.
8180 * configure: Rebuilt.
8182 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8184 * config/darwin.c (darwin_override_options): Add a hunk missed
8185 from the commit of r168571. Trim comment line lengths and
8186 correct indents of the preceding block.
8188 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8190 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8193 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8195 * common.opt (nostartfiles): New Driver option.
8197 2011-02-11 Xinliang David Li <davidxl@google.com>
8199 PR tree-optimization/47707
8200 * tree-chrec.c (convert_affine_scev): Keep type precision.
8202 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8204 PR tree-optimization/47420
8205 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8207 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8209 PR rtl-optimization/47614
8210 * rtl.h (check_for_inc_dec): Declare.
8211 * dse.c (check_for_inc_dec): Externalize...
8212 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8213 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8215 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8218 * gcc.c (main): Do not compile inputs if there were errors in
8220 * opts-common.c (read_cmdline_option): Check for wrong language
8221 after other error checks.
8223 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8225 * cgraph.c: Fix comment typos.
8226 * cgraph.h: Likewise.
8227 * cgraphunit.c: Likewise.
8228 * ipa-cp.c: Likewise.
8229 * ipa-inline.c: Likewise.
8230 * ipa-prop.c: Likewise.
8231 * ipa-pure-const.c: Likewise.
8232 * ipa-ref.c: Likewise.
8233 * ipa-reference.c: Likewise.
8235 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8238 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8240 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8243 * doc/sourcebuild.texi (Require Support): Document
8244 dg-require-ascii-locale.
8246 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8248 * doc/lto.texi (Write summary): Fix missing parentheses.
8250 2011-02-10 DJ Delorie <dj@redhat.com>
8252 * config/m32c/m32c.c (m32c_option_override): Disable
8253 -fcombine-stack-adjustments until flag value tracking and compare
8254 optimization can be rewritten.
8256 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8258 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8260 (PROCESSOR_DEFAULT64): Likewise.
8262 2011-02-10 Richard Henderson <rth@redhat.com>
8264 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8265 change from 2011-02-03.
8266 * config/rx/rx.c (flags_from_code): Likewise.
8267 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8268 is valid, n/pz otherwise.
8269 (rx_select_cc_mode): Return CCmode if Y is not zero.
8271 2011-02-10 Richard Guenther <rguenther@suse.de>
8273 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8275 2011-02-10 Richard Guenther <rguenther@suse.de>
8277 PR tree-optimization/47677
8278 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8280 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8283 * combine.c (make_compound_operation): Only change shifts into
8284 multiplication for SCALAR_INT_MODE_P.
8286 2011-02-10 Jie Zhang <jie@codesourcery.com>
8290 2011-02-05 Jie Zhang <jie@codesourcery.com>
8292 * web.c (entry_register): Don't clobber the number of the
8293 first uninitialized reference in used[].
8295 2011-02-09 Richard Guenther <rguenther@suse.de>
8297 PR tree-optimization/47664
8298 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8301 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8305 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8307 (PROCESSOR_DEFAULT64): Same.
8308 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8310 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8312 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8314 2011-02-09 Martin Jambor <mjambor@suse.cz>
8317 * tree-sra.c (struct access): New flags grp_scalar_read and
8318 grp_scalar_write. Changed description of assignment read and write
8320 (dump_access): Dump new flags, reorder all of them.
8321 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8322 to detect multiple scalar reads.
8323 (analyze_access_subtree): Use the new scalar read write flags instead
8324 of the old flags. Adjusted comments.
8326 2011-02-08 DJ Delorie <dj@redhat.com>
8329 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8332 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8334 * config/m68k/uclinux.opt: New.
8335 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8337 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8339 * config/cris/elf.opt (sim): New Driver option.
8341 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8343 * config/xtensa/elf.opt: New.
8344 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8346 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8348 * config/vax/elf.opt: New.
8349 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8351 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8353 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8355 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8357 * config/gnu-user.opt: New.
8358 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8359 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8360 *-*-uclinux*): Use gnu-user.opt.
8362 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8364 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8365 * config/i386/gnu.h (CPP_SPEC): Likewise.
8367 2011-02-08 Ian Lance Taylor <iant@google.com>
8369 * common.opt (fcx-limited-range): Add SetByCombined flag.
8370 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8371 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8372 (fassociative-math, freciprocal-math): Likewise.
8373 (funsafe-math-optimizations): Likewise.
8374 * opth-gen.awk: Handle SetByCombined.
8375 * optc-gen.awk: Likewise.
8376 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8377 (set_unsafe_math_optimizations_flags): Likewise.
8378 * doc/options.texi (Option properties): Document SetByCombined.
8380 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8382 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8383 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8384 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8385 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8386 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8388 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8390 PR tree-optimization/46834
8391 PR tree-optimization/46994
8392 PR tree-optimization/46995
8393 * graphite-sese-to-poly.c (used_outside_reduction): New.
8394 (detect_commutative_reduction): Call used_outside_reduction.
8395 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8396 translate_scalar_reduction_to_array only when at least one
8397 loop-phi/close-phi tuple has been detected.
8399 2011-02-08 Richard Guenther <rguenther@suse.de>
8402 * tree-vect-generic.c (expand_vector_operations_1): Update
8404 (expand_vector_operations): ... not here. Cleanup EH info
8405 and the CFG if required.
8407 2011-02-08 Richard Guenther <rguenther@suse.de>
8409 PR tree-optimization/47641
8410 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8411 require type compatibility.
8413 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8415 * gimple-low.c (lower_function_body): Don't remove the location of
8416 the return statement here.
8417 (lower_gimple_return): Do it here instead but only if the return
8418 statement is actually used twice.
8420 2011-02-08 Richard Guenther <rguenther@suse.de>
8422 PR tree-optimization/47632
8423 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8424 unused up_to_stmt parameter, return whether cfg-cleanup is
8425 necessary, remove EH info properly.
8426 (forward_propagate_into_gimple_cond): Adjust caller.
8427 (forward_propagate_into_cond): Likewise.
8428 (forward_propagate_comparison): Likewise.
8429 (tree_ssa_forward_propagate_single_use_vars): Make
8430 forward_propagate_comparison case similar to the two others.
8432 2011-02-08 Nick Clifton <nickc@redhat.com>
8434 * config/mn10300/mn10300.opt (mliw): New command line option.
8435 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8436 (liw_bundling): New automaton.
8437 (liw): New attribute.
8438 (liw_op): New attribute.
8439 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8440 (movsi_internal): Add LIW attributes.
8444 (addsi3): Separate register and immediate alternatives.
8449 (lshrsi3): Likewise.
8450 (ashrsi3): Likewise.
8452 * config/mn10300/mn10300.c (liw_op_names): New
8453 (mn10300_print_operand): Handle 'W' operand descriptor.
8454 (extract_bundle): New function.
8455 (check_liw_constraints): New function.
8456 (liw_candidate): New function.
8457 (mn10300_bundle_liw): New function.
8458 (mn10300_reorg): New function.
8459 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8460 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8461 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8462 __LIW__ or __NO_LIW__.
8463 * doc/invoke.texi: Describe the -mliw command line option.
8465 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8467 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8468 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8469 pthread_mutex_unlock): Remove.
8470 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8471 * config/pa/t-pa64: Likewise.
8472 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8473 shared libc if not linking against libpthread.
8474 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8476 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8479 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8480 on 10.6 and later to ensure that we always use the unwinder from
8481 the system. Only add -no_compact_unwind when tarteting darwin
8484 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8487 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8488 (vec_interleave_lowv2sf): Ditto.
8489 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8490 (vec_extract_oddv2sf): Ditto.
8492 2011-02-07 Mike Stump <mikestump@comcast.net>
8495 Add __ieee_divdc3 entry point.
8496 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8498 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8499 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8500 * config/darwin.c (darwin_rename_builtins): Add.
8501 * config/darwin-protos.h (darwin_rename_builtins): Add.
8503 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8506 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8509 2011-02-07 Mike Stump <mikestump@comcast.net>
8511 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8513 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8516 * config/avr/libgcc.S (exit): Move .endfunc
8518 2011-02-07 Richard Guenther <rguenther@suse.de>
8520 PR tree-optimization/47615
8521 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8522 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8523 (run_scc_vn): Initialize it.
8524 (visit_reference_op_load): Use it.
8525 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8527 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8529 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8530 DImode trapping arithmetic libfuncs.
8532 2011-02-07 Richard Guenther <rguenther@suse.de>
8534 PR tree-optimization/47621
8535 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8537 (execute_update_addresses_taken): ... here. Make it more
8538 conservative in what we accept.
8540 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8542 * config/sparc/freebsd.h (ASM_SPEC): Define.
8543 * config/sparc/vxworks.h (ASM_SPEC): Define.
8545 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8547 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8549 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8551 * doc/invoke.texi: Remove reference to compiler internals from
8554 * reg-notes.def: Remove REG_VALUE_PROFILE.
8555 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8557 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8560 * varasm.c (default_section_type_flags): If decl is NULL,
8561 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8563 2011-02-05 Jie Zhang <jie@codesourcery.com>
8566 * web.c (entry_register): Don't clobber the number of the
8567 first uninitialized reference in used[].
8569 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8571 PR tree-optimization/46194
8572 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8573 (build_classic_dist_vector_1): Do not represent classic distance
8574 vectors when the access functions are variating in different loops.
8576 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8578 * config/mips/iris6.opt: New.
8579 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8581 2011-02-04 Richard Henderson <rth@redhat.com>
8582 Steve Ellcey <sje@cup.hp.com>
8585 * config/ia64/predicates.md (mux1_brcst_element): New.
8586 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8587 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8588 (ia64_unpack_sign): New.
8589 (ia64_expand_unpack): Rewrite using new routines.
8590 (ia64_expand_widen_sum): Ditto.
8591 (ia64_expand_dot_prod_v8qi): Ditto.
8592 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8593 routines, add endian check.
8594 (pmpy2_even): Rename from pmpy2_r, add endian check.
8595 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8596 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8597 (vec_widen_smult_hi_v4hi): Ditto.
8598 (vec_widen_umult_lo_v4hi): Ditto.
8599 (vec_widen_umult_hi_v4hi): Ditto.
8600 (mulv2si3): Change endian checks.
8601 (sdot_prodv4hi): Rewrite with new calls.
8602 (udot_prodv4hi): New.
8603 (vec_pack_ssat_v4hi): Add endian check.
8604 (vec_pack_usat_v4hi): Ditto.
8605 (vec_pack_ssat_v2si): Ditto.
8606 (max1_even): Rename from max1_r, add endian check.
8607 (max1_odd): Rename from max1_l, add endian check.
8608 (*mux1_rev): Format change.
8610 (*mux1_shuf): Ditto.
8612 (*mux1_brcst_v8qi): Use new predicate.
8613 (vec_extract_evenv8qi): Remove endian check.
8614 (vec_extract_oddv8qi): Ditto.
8615 (vec_interleave_lowv4hi): Format change.
8616 (vec_interleave_highv4hi): Ditto.
8617 (mix2_even): Rename from mix2_r, add endian check.
8618 (mix2_odd): Rename from mux2_l, add endian check.
8619 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8620 (vec_extract_evenodd_helper): Format change.
8621 (vec_extract_evenv4hi): Remove endian check.
8622 (vec_extract_oddv4hi): Remove endian check.
8623 (vec_interleave_lowv2si): Format change.
8624 (vec_interleave_highv2si): Format change.
8625 (vec_initv2si): Remove endian check.
8626 (vecinit_v2si): Add endian check.
8627 (reduc_splus_v2sf): Add endian check.
8628 (reduc_smax_v2sf): Ditto.
8629 (reduc_smin_v2sf): Ditto.
8630 (vec_initv2sf): Remove endian check.
8631 (fpack): Add endian check.
8632 (fswap): Add endian check.
8633 (vec_interleave_highv2sf): Add endian check.
8634 (vec_interleave_lowv2sf): Add endian check.
8635 (fmix_lr): Add endian check.
8636 (vec_setv2sf): Format change.
8637 (*vec_extractv2sf_0_be): Use shift to extract operand.
8638 (*vec_extractv2sf_1_be): New.
8639 (vec_pack_trunc_v4hi): Add endian check.
8640 (vec_pack_trunc_v2si): Format change.
8642 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8645 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8646 do bb, locus and block comparison and disallow loads if it is not set.
8647 (stmt_is_replaceable_p): New function.
8648 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8650 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8651 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8653 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8655 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8657 * config/rs6000/xilinx.opt: New.
8658 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8660 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8662 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8664 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8666 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8667 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8668 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8669 secondary_reload_info, xtensa_secondary_reload): Remove.
8670 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8671 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8672 (xtensa_preferred_reload_class): Make static. Change return and
8673 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8674 Use CONST_DOUBLE_P predicate.
8675 (xtensa_preferred_output_reload_class): New function.
8676 (xtensa_secondary_reload): Make static.
8678 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8680 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8681 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8682 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8684 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8687 * output.h (SECTION_RELRO): Define.
8688 (SECTION_MACH_DEP): Adjust.
8689 (get_variable_section): New prototype.
8690 * varpool.c (varpool_finalize_named_section_flags): New function.
8691 (varpool_assemble_pending_decls): Call it.
8692 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8693 * cgraphunit.c (cgraph_output_in_order): Call
8694 varpool_finalize_named_section_flags.
8695 * varasm.c (get_section): Allow section flags conflicts between
8696 relro and read-only sections if the section hasn't been declared yet.
8697 Set SECTION_OVERRIDE after diagnosing section type conflict.
8698 (get_variable_section): No longer static.
8699 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8700 readonly sections that need relocations.
8701 (decl_readonly_section_1): New function.
8702 (decl_readonly_section): Use it.
8705 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8706 Steve Ellcey <sje@cup.hp.com>
8709 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8710 if section attribute used.
8712 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8714 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8715 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8716 (darwin_init_sections): Remove assertion.
8718 2011-02-03 Nick Clifton <nickc@redhat.com>
8720 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8722 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8723 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8724 instead of "n" and "pz".
8725 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8728 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8731 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8732 fma, expand FMA_EXPR as fma{,f,l} call.
8735 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8736 copy them into a unsigned char variable and pass address of it to
8737 lto_output_data_stream.
8740 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8741 around backend_init_target and lang_dependent_init_target calls.
8742 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8743 (verify_cgraph_node): Don't call set_cfun here. Use
8744 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8745 Set error_found for incorrectly represented calls to thunks.
8747 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8750 PR rtl-optimization/43494
8751 * rtl.h (for_each_inc_dec_fn): New type.
8752 (for_each_inc_dec): Declare.
8753 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8754 (for_each_inc_dec_find_inc_dec): New fn.
8755 (for_each_inc_dec_find_mem): New fn.
8756 (for_each_inc_dec): New fn.
8757 * dse.c (struct insn_size): Remove.
8758 (replace_inc_dec, replace_inc_dec_mem): Remove.
8759 (emit_inc_dec_insn_before): New fn.
8760 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8761 (canon_address): Pass mem modes to cselib_lookup.
8762 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8763 (cselib_lookup_from_insn): Likewise.
8764 (cselib_subst_to_values): Likewise.
8765 * cselib.c (find_slot_memmode): New var.
8766 (cselib_find_slot): New fn. Use it instead of
8767 htab_find_slot_with_hash everywhere.
8768 (entry_and_rtx_equal_p): Use find_slot_memmode.
8769 (autoinc_split): New fn.
8770 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8771 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8772 Deal with autoinc. Special-case recursion into MEMs.
8773 (cselib_hash_rtx): Likewise.
8774 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8775 address and MEM modes.
8776 (cselib_subst_to_values): Add memmode, pass it on.
8778 (cselib_lookup): Add memmode argument, pass it on.
8779 (cselib_lookup_from_insn): Add memmode.
8780 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8781 (struct cselib_record_autoinc_data): New.
8782 (cselib_record_autoinc_cb): New fn.
8783 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8784 mode to cselib_lookup. Reset autoinced REGs here instead of...
8785 (cselib_process_insn): ... here.
8786 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8788 (add_uses): Likewise, also to cselib_subst_to_values.
8789 (add_stores): Likewise.
8790 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8791 cselib_subst_to_values.
8792 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8793 * gcse.c (do_local_cprop): Adjusted.
8794 * postreload.c (reload_cse_simplify_set): Adjusted.
8795 (reload_cse_simplify_operands): Adjusted.
8796 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8798 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8800 PR tree-optimization/45122
8801 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8802 unsafe assumptions when there's more than one loop exit.
8804 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8807 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8808 Document using vector double with the load/store builtins, and
8809 that the load/store builtins always use Altivec instructions.
8811 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8812 to use altivec memory instructions, even on VSX.
8813 (vector_altivec_store_<mode>): Ditto.
8815 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8818 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8819 V2DF, V2DI support to load/store overloaded builtins.
8821 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8822 altivec load/store builtins for V2DF/V2DI types.
8824 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8825 set avoid indexed addresses on power6 if -maltivec.
8826 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8827 vector_altivec_load/vector_altivec_store builtins.
8828 (altivec_expand_st_builtin): Ditto.
8829 (altivec_expand_builtin): Add VSX memory builtins.
8830 (rs6000_init_builtins): Add V2DI types to internal types.
8831 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8832 load/store builtins.
8833 (rs6000_address_for_altivec): Insure memory address is appropriate
8836 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8837 vec_vsx_ld and vec_vsx_st.
8838 (vsx_store_<mode>): Ditto.
8840 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8841 variables to hold long long types for VSX vector memory builtins.
8842 (RS6000_BTI_unsigned_long_long): Ditto.
8843 (long_long_integer_type_internal_node): Ditti.
8844 (long_long_unsigned_type_internal_node): Ditti.
8846 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8847 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8848 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8850 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8852 (vec_vsx_st): Ditto.
8854 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8856 * config/pa/pa-hpux10.opt: New.
8857 * config/hpux11.opt (pthread): New Driver option.
8858 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8859 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8861 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8863 * config/ia64/vms.opt: New.
8864 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8866 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8869 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8870 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8871 generator functions.
8872 (vsx_floatuns<VSi><mode>2): Ditto.
8873 (vsx_fix_trunc<mode><VSi>2): Ditto.
8874 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8876 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8878 * config/i386/djgpp.opt (posix): New Driver option.
8880 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8882 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8883 Move to the unsupported targets list.
8885 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8887 PR rtl-optimization/47525
8888 * df-scan.c: Update copyright years.
8889 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8890 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8892 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8894 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8895 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8896 (ASM_OUTPUT_ASCII): Remove.
8897 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8899 2011-02-02 Jeff Law <law@redhat.com>
8902 * reload.c (find_reloads_address): Handle reg+d address where both
8903 components are invalid by reloading the entire address.
8905 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8906 Richard Guenther <rguenther@suse.de>
8908 PR tree-optimization/40979
8910 * passes.c (init_optimization_passes): After LIM call copy_prop
8911 and DCE to clean up.
8912 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8914 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8916 PR tree-optimization/47576
8917 PR tree-optimization/47555
8918 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8919 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8920 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8921 * tree-scalar-evolution.c (follow_ssa_edge): Use
8922 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8924 2011-02-02 Richard Guenther <rguenther@suse.de>
8926 PR tree-optimization/47566
8927 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8929 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8933 * tree-inline.c (declare_return_variable): Remove unused caller
8938 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8939 * cfgexpand.c (account_used_vars_for_block): Use them.
8940 * tree-nrv.c (tree_nrv): Likewise.
8941 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8942 (dump_scope_block): Likewise.
8943 (remove_unused_locals): Likewise.
8947 * tree-inline.c (declare_return_variable): Add result decl to
8948 local decls only once.
8949 * gimple-low.c (record_vars_into): Mark newly-created variables
8952 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8958 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8960 (no_real_insns_p, schedule_block, set_priorities): Drop special
8961 treatment of boundary debug insns.
8962 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8963 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8964 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8965 (BOUNDARY_DEBUG_INSN_P): Likewise.
8966 (SCHEDULE_DEBUG_INSN_P): Likewise.
8967 * sched-rgn.c (init_ready_list): Drop special treatment of
8968 boundary debug insns.
8969 * final.c (rest_of_clean_state): Clear notes' BB.
8971 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8973 * config/openbsd.opt (assert=): New Driver option.
8975 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8977 * config/i386/nto.opt: New.
8978 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8980 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8982 * config/i386/netware.opt: New.
8983 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8985 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8987 * config/interix.opt (posix): New Driver option.
8989 2011-02-01 DJ Delorie <dj@redhat.com>
8991 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8993 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8996 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8998 PR tree-optimization/47561
8999 * toplev.c (process_options): Print the Graphite flags. Add
9000 flag_loop_flatten to the list of options requiring Graphite.
9002 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9004 * config/i386/cygming.opt (posix): New Driver option.
9006 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9008 * config/arm/vxworks.opt: New.
9009 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9011 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9013 * config/alpha/elf.opt: New.
9014 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9015 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9017 2011-02-01 Richard Guenther <rguenther@suse.de>
9019 PR tree-optimization/47559
9020 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9021 store-motion on references that can throw.
9023 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9025 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9026 * tree-pass.h (TDF_CSELIB): New macro.
9027 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9028 cselib_lookup): Check for it rather than for TDF_DETAILS.
9030 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9033 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9036 * opts.c (finish_options): Don't add x_aux_base_name if it is
9039 2011-02-01 Richard Guenther <rguenther@suse.de>
9041 PR tree-optimization/47555
9043 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9045 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9047 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9050 * config/lm32/t-lm32: Add multilib for all CPU options.
9052 2011-02-01 Richard Guenther <rguenther@suse.de>
9054 PR tree-optimization/47541
9055 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9056 sure to have a field at offset zero.
9058 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9060 * config/arc/arc.opt (EB, EL): New Driver options.
9062 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9064 * config/alpha/osf5.opt: New.
9065 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9067 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9069 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9071 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9073 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9075 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9076 is an alias of -floop-interchange and that it requires the
9077 Graphite infrastructure.
9078 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9079 flag_loop_interchange based on the value of flag_tree_loop_linear.
9081 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9082 Richard Guenther <rguenther@suse.de>
9084 PR tree-optimization/47538
9085 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9086 type instead of r1type, except for comparisons. For right
9087 shifts and comparisons punt if there are mismatches in
9088 sizetype vs. non-sizetype types.
9090 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9092 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9095 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9097 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9099 * configure: Regenerate.
9101 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9103 * configure.ac (gcc_cv_ld_static_option): Define.
9104 (gcc_cv_ld_dynamic_option): Define.
9105 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9107 (HAVE_LD_STATIC_DYNAMIC): Update message.
9108 (LD_STATIC_OPTION): Define.
9109 (LD_DYNAMIC_OPTION): Define.
9110 * configure: Regenerate.
9111 * config.in: Regenerate.
9112 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9113 HAVE_LD_STATIC_DYNAMIC]: Use them.
9115 2011-01-31 Nick Clifton <nickc@redhat.com>
9117 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9118 registers inside interrupt handlers if the handler is not a leaf
9121 2011-01-31 Nick Clifton <nickc@redhat.com>
9123 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9124 reg_renumber returning an INVALID_REGNUM.
9126 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9129 * doc/install.texi: Document host options discarded when cross
9130 configuring target libraries.
9132 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9135 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9138 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9140 (no_real_insns_p, schedule_block, set_priorities): Drop special
9141 treatment of boundary debug insns.
9142 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9143 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9144 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9145 (BOUNDARY_DEBUG_INSN_P): Likewise.
9146 (SCHEDULE_DEBUG_INSN_P): Likewise.
9147 * sched-rgn.c (init_ready_list): Drop special treatment of
9148 boundary debug insns.
9149 * final.c (rest_of_clean-state): Clear notes' BB.
9151 2011-01-31 Alan Modra <amodra@gmail.com>
9153 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9154 toc relative expressions as we do in print_operand_address.
9156 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9158 * doc/extend.texi: Follow spelling conventions.
9159 * doc/invoke.texi: Fix a typo.
9161 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9163 * config/hpux11.opt: New.
9164 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9165 ia64*-*-hpux*): Use hpux11.opt.
9167 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9169 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9172 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9174 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9177 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9179 * doc/install.texi (Binaries): Remove outdated reference for
9180 Motorola 68HC11/68HC12 downloads.
9182 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9184 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9187 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9190 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9193 2011-01-28 Ahmad Sharif <asharif@google.com>
9195 * value-prof.c (check_counter): Corrected error message.
9197 2011-01-29 Jie Zhang <jie@codesourcery.com>
9199 * config/arm/arm.c (arm_legitimize_reload_address): New.
9200 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9201 arm_legitimize_reload_address.
9202 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9204 2011-01-28 Ian Lance Taylor <iant@google.com>
9206 * godump.c (go_define): Ignore macros whose definitions include
9207 two adjacent operands.
9209 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9212 * varasm.c (force_const_mem): Store copy of x in desc->constant
9213 instead of x itself.
9214 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9215 itself into REG_EQUAL note.
9217 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9219 * config/freebsd.opt (posix, rdynamic): New Driver options.
9221 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9223 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9225 * configure: Regenerate.
9227 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9229 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9230 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9232 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9234 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9235 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9236 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9237 (s390_preferred_reload_class): Make static. Change return and
9238 'rclass' argument type to reg_class_t.
9240 2011-01-27 Jan Hubicka <jh@suse.cz>
9243 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9244 (process_function_and_variable_attributes): Check defined weakrefs.
9246 2011-01-27 Martin Jambor <mjambor@suse.cz>
9248 PR tree-optimization/47228
9249 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9250 build_ref_for_offset.
9252 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9254 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9256 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9258 PR rtl-optimization/46856
9259 * postreload.c (reload_combine_recognize_const_pattern): Do not
9260 separate cc0 setter and user on cc0 targets.
9262 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9265 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9266 passed a VOID_TYPE expression, immediately emit an error and
9267 return error_mark_node.
9269 2011-01-26 Jeff Law <law@redhat.com>
9271 PR rtl-optimization/47464
9272 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9273 rather than may_trap_p as needed.
9275 2011-01-26 DJ Delorie <dj@redhat.com>
9277 PR rtl-optimization/46878
9278 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9279 setter/user dependency as well.
9281 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9283 PR rtl-optimization/44469
9284 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9285 after removing trivially dead basic blocks.
9287 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9289 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9290 * config/frv/frv.h (LINK_SPEC): Likewise.
9291 * config/i386/netware.h (LINK_SPEC): Likewise.
9292 * config/m68k/linux.h (ASM_SPEC): Likewise.
9293 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9294 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9295 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9296 * config/sparc/linux.h (ASM_SPEC): Likewise.
9297 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9298 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9300 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9302 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9303 * config/frv/frv.h (ASM_SPEC): Likewise.
9304 * config/m68k/linux.h (ASM_SPEC): Likewise.
9305 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9306 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9307 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9308 * config/sparc/linux.h (ASM_SPEC): Likewise.
9309 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9310 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9312 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9314 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9315 * config/frv/frv.h (LINK_SPEC): Likewise.
9316 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9318 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9320 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9321 * config/frv/frv.h (ASM_SPEC): Likewise.
9322 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9323 * config/m68k/linux.h (ASM_SPEC): Likewise.
9324 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9325 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9326 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9327 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9328 * config/sparc/linux.h (ASM_SPEC): Likewise.
9329 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9330 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9331 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9333 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9336 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9338 (vec_extract_evenodd_help): Ditto.
9339 (vec_extract_evenv4hi): Ditto.
9340 (vec_extract_oddv4hi): Ditto.
9341 (vec_interleave_lowv2si): Ditto.
9342 (vec_interleave_highv2si): Ditto.
9343 (vec_extract_evenv2si): Ditto.
9344 (vec_extract_oddv2si: Ditto.
9345 (vec_pack_trunc_v2si): Ditto.
9347 2011-01-22 Jan Hubicka <jh@suse.cz>
9350 * cgraph.h (cgraph_local_info): New field can_change_signature.
9351 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9352 signature can change.
9353 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9355 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9356 (cgraph_function_versioning): We can not change signature of functions
9357 that don't allow that.
9358 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9359 (lto_input_node): Likewise.
9360 * ipa-inline.c (compute_inline_parameters): Compute
9361 local.can_change_signature.
9362 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9363 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9364 functions that can not change signature.
9365 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9366 init_cumulative_args): Do not use local calling conventions
9367 for functions that can not change signature.
9369 2011-01-22 Jan Hubicka <jh@suse.cz>
9371 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9373 2011-01-26 Richard Guenther <rguenther@suse.de>
9375 PR tree-optimization/47190
9376 * cgraphunit.c (process_common_attributes): New function.
9377 (process_function_and_variable_attributes): Use it.
9379 2011-01-26 Richard Guenther <rguenther@suse.de>
9382 * cgraphbuild.c (record_eh_tables): Record reference to personality
9385 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9388 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9389 non-debug insns from moving up.
9391 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9394 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9395 t-dlldir{,-x} fragment for build and add it to tmake_file.
9396 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9397 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9398 * config/i386/t-dlldir: New file.
9399 (SHLIB_DLLDIR): Define.
9400 * config/i386/t-dlldir-x: New file.
9401 (SHLIB_DLLDIR): Define.
9402 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9403 (SHLIB_INSTALL): Use it.
9405 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9408 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9409 lower bound of the allowed Thumb-2 coprocessor load/store
9410 index range to -256. Add explaining comment.
9412 2011-01-25 Ian Lance Taylor <iant@google.com>
9414 * godump.c (go_define): Improve lexing of macro expansion to only
9415 accept expressions which match Go spec.
9417 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9420 * tree.c (handle_dll_attribute): Handle it.
9421 * doc/extend.texi (@item dllexport): Mention it.
9422 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9424 2011-01-25 Ian Lance Taylor <iant@google.com>
9426 PR tree-optimization/26854
9427 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9428 (decl_jump_unsafe): Move higher in file, with no other change.
9429 (bind): Set has_jump_unsafe_decl if appropriate.
9430 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9431 (check_earlier_gotos): Likewise.
9432 (c_check_switch_jump_warnings): Likewise.
9434 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9436 * doc/invoke.texi (Warning Options): Add missing hyphen.
9437 (-fprofile-dir): Minor grammatical fixes.
9438 (-fbranch-probabilities): Likewise.
9440 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9444 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9446 (no_real_insns_p, schedule_block, set_priorities): Drop special
9447 treatment of boundary debug insns.
9448 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9449 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9450 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9451 (BOUNDARY_DEBUG_INSN_P): Likewise.
9452 (SCHEDULE_DEBUG_INSN_P): Likewise.
9453 * sched-rgn.c (init_ready_list): Drop special treatment of
9454 boundary debug insns.
9455 * final.c (rest_of_clean-state): Clear notes' BB.
9457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9459 * Makefile.in (LAMBDA_H): Removed.
9460 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9461 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9462 lambda-trans.o, and tree-loop-linear.o.
9463 (lto-symtab.o): Remove dependence on LAMBDA_H.
9464 (tree-loop-linear.o): Remove rule.
9465 (lambda-mat.o): Same.
9466 (lambda-trans.o): Same.
9467 (lambda-code.o): Same.
9468 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9469 (tree-vect-slp.o): Same.
9470 * hwint.h (gcd): Moved here.
9471 (least_common_multiple): Same.
9472 * lambda-code.c: Removed.
9473 * lambda-mat.c: Removed.
9474 * lambda-trans.c: Removed.
9475 * lambda.h: Removed.
9476 * tree-loop-linear.c: Removed.
9477 * lto-symtab.c: Do not include lambda.h.
9478 * omega.c (gcd): Removed.
9479 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9480 * tree-data-ref.c (print_lambda_vector): Moved here.
9481 (lambda_vector_copy): Same.
9482 (lambda_matrix_copy): Same.
9483 (lambda_matrix_id): Same.
9484 (lambda_vector_first_nz): Same.
9485 (lambda_matrix_row_add): Same.
9486 (lambda_matrix_row_exchange): Same.
9487 (lambda_vector_mult_const): Same.
9488 (lambda_vector_negate): Same.
9489 (lambda_matrix_row_negate): Same.
9490 (lambda_vector_equal): Same.
9491 (lambda_matrix_right_hermite): Same.
9492 * tree-data-ref.h: Do not include lambda.h.
9493 (lambda_vector): Moved here.
9494 (lambda_matrix): Same.
9495 (dependence_level): Same.
9496 (lambda_transform_legal_p): Removed declaration.
9497 (lambda_collect_parameters): Same.
9498 (lambda_compute_access_matrices): Same.
9499 (lambda_vector_gcd): Same.
9500 (lambda_vector_new): Same.
9501 (lambda_vector_clear): Same.
9502 (lambda_vector_lexico_pos): Same.
9503 (lambda_vector_zerop): Same.
9504 (lambda_matrix_new): Same.
9505 * tree-flow.h (least_common_multiple): Removed declaration.
9506 * tree-parloops.c (lambda_trans_matrix): Moved here.
9508 (LTM_ROWSIZE): Same.
9509 (LTM_COLSIZE): Same.
9510 (LTM_DENOMINATOR): Same.
9511 (lambda_trans_matrix_new): Same.
9512 (lambda_matrix_vector_mult): Same.
9513 (lambda_transform_legal_p): Same.
9514 * tree-pass.h (pass_linear_transform): Removed declaration.
9515 * tree-ssa-loop.c (tree_linear_transform): Removed.
9516 (gate_tree_linear_transform): Removed.
9517 (pass_linear_transform): Removed.
9518 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9519 flag_loop_interchange.
9521 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9523 PR tree-optimization/47265
9524 PR tree-optimization/47443
9525 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9526 if name still has some uses.
9528 2011-01-25 Martin Jambor <mjambor@suse.cz>
9530 PR tree-optimization/47382
9531 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9532 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9534 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9536 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9537 sjlj_except_unwind_info.
9539 2011-01-25 Richard Guenther <rguenther@suse.de>
9541 PR tree-optimization/47426
9542 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9543 visible functions results escape.
9545 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9548 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9549 (arm_get_frame_offsets): Use it.
9551 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9552 Jakub Jelinek <jakub@redhat.com>
9554 PR tree-optimization/47271
9555 * tree-if-conv.c (bb_postdominates_preds): New.
9556 (if_convertible_bb_p): Call bb_postdominates_preds.
9557 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9558 (predicate_scalar_phi): Call bb_postdominates_preds.
9560 2011-01-25 Nick Clifton <nickc@redhat.com>
9562 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9563 * config/rx/rx.c (rx_function_value): Likewise.
9564 (rx_promote_function_mode): Likewise.
9565 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9566 in order to make it legitimate.
9567 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9568 make sure that the first operand is the same as the result register.
9569 (addsi3_unspec): Delete.
9570 (subdi3): Do not accept immediate operands.
9571 (subdi3_internal): Likewise.
9573 2011-01-25 Jeff Law <law@redhat.com>
9575 PR rtl-optimization/37273
9576 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9577 handle them like argument loads from stack slots. Do not double
9578 count memory for memory constants and argument loads from stack slots.
9580 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9582 PR tree-optimization/47427
9583 PR tree-optimization/47428
9584 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9585 coalesce if the new root var would be TREE_READONLY.
9587 2011-01-25 Richard Guenther <rguenther@suse.de>
9590 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9591 correct type for TBAA.
9593 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9595 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9596 (close_phi_written_to_memory): Call for_each_index with
9597 dr_indices_valid_in_loop.
9599 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9601 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9602 when it is initialized.
9604 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9606 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9607 call to graphite_find_data_references_in_stmt.
9608 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9609 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9610 call to graphite_find_data_references_in_stmt.
9611 (analyze_drs_in_stmts): Same.
9612 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9613 in which the scalar analysis of indices is performed.
9614 (create_data_ref): Same. Update call to dr_analyze_indices.
9615 (find_data_references_in_stmt): Update call to create_data_ref.
9616 (graphite_find_data_references_in_stmt): Same.
9617 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9619 (create_data_ref): Same.
9620 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9621 call to create_data_ref.
9623 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9625 * graphite-sese-to-poly.c (build_poly_scop): Move
9626 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9628 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9630 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9631 VAR_DECL, PARM_DECL, and RESULT_DECL.
9633 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9635 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9637 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9638 that have already been marked as PBB_IS_REDUCTION.
9640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9642 * graphite-scop-detection.c (same_close_phi_node): New.
9643 (remove_duplicate_close_phi): New.
9644 (make_close_phi_nodes_unique): New.
9645 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9649 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9650 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9651 of both data references to be the same.
9653 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9655 * graphite-dependences.c (build_lexicographical_constraint): Remove
9657 (build_lexicographical_constraint): Adjust call to
9658 ppl_powerset_is_empty.
9659 (dependence_polyhedron): Same.
9660 (graphite_legal_transform_dr): Same.
9661 (graphite_carried_dependence_level_k): Same.
9662 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9664 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9668 * graphite-sese-to-poly.c
9669 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9670 (close_phi_written_to_memory): New.
9671 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9676 * doc/install.texi: Update the expected version number of PPL to 0.11.
9677 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9678 #if PPL_VERSION_MINOR < 11.
9680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9682 * graphite-dependences.c: Include graphite-cloog-util.h.
9683 (new_poly_ddr): Inlined into dependence_polyhedron.
9684 (free_poly_ddr): Moved close by new_poly_ddr.
9685 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9686 Early return NULL when ppl_powerset_is_empty returns true.
9687 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9688 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9689 (graphite_legal_transform_dr): Call new_poly_ddr.
9690 (graphite_carried_dependence_level_k): Same.
9691 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9692 (dot_transformed_deps_stmt_1): Removed.
9693 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9694 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9695 (dot_deps_1): Call dot_deps_2.
9696 * Makefile.in (graphite-dependences.o): Add missing dependence on
9697 graphite-cloog-util.h.
9699 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9701 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9702 (build_lexicographical_constraint): Same.
9703 (dependence_polyhedron_1): Same.
9704 (graphite_legal_transform_dr): Same.
9705 (graphite_carried_dependence_level_k): Same.
9706 * graphite-ppl.c (ppl_powerset_is_empty): New.
9707 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9708 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9712 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9713 the "a followed by b" relation and document it.
9715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9717 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9718 iteration when the bag of constraints is empty.
9720 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9722 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9724 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9726 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9727 nest and two loop depths as parameters.
9728 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9729 lst_perfect_nestify.
9731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9733 * graphite-dependences.c (print_pddr): Call
9734 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9738 * graphite-ppl.c (debug_gmp_value): New.
9739 * graphite-ppl.h (debug_gmp_value): Declared.
9741 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9743 * doc/install.texi: Document availability of cloog-0.16.
9745 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9747 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9748 invalid postdominance info.
9750 2011-01-24 Jan Hubicka <jh@suse.cz>
9753 * doc/extend.texi (weak pragma): Drop claim that it must
9754 appear before definition.
9755 * varasm.c (merge_weak, declare_weak): Only sanity check
9756 that DECL is not output at a time it is declared weak.
9758 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9760 * machmode.def: Fixed comments.
9762 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9764 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9766 2011-01-24 Paul Koning <ni1d@arrl.net>
9768 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9771 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9774 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9775 (block_info): Add scanned and prev.
9776 (move_or_delete_vzeroupper_2): Return if the basic block
9777 has been scanned and the upper 128bit state is unchanged
9779 (move_or_delete_vzeroupper_1): Return true if the exit
9781 (move_or_delete_vzeroupper): Visit basic blocks using the
9782 work-list based algorithm based on vt_find_locations in
9785 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9787 2011-01-24 Nick Clifton <nickc@redhat.com>
9789 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9790 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9791 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9792 then define __v850e1__.
9793 * doc/invoke.texi: Document -mv850es.
9795 2011-01-24 Richard Henderson <rth@redhat.com>
9797 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9798 compound unordered comparisons.
9799 * config/rx/rx.c (rx_split_fp_compare): Remove.
9800 * config/rx/rx-protos.h: Update.
9801 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9802 (cbranchsf4): Don't call rx_split_fp_compare.
9803 (*cbranchsf4): Use rx_split_cbranch.
9804 (*cmpsf): Don't accept "i" constraint.
9805 (*conditional_branch): Only valid after reload.
9806 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9808 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9811 * config/rs6000/altivec.md (vector constant splitters): Add
9812 support for creating vector single precision constants if -mvsx is
9813 used and we would create the constant using Altivec primitives.
9815 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9816 Richard Sandiford <rdsandiford@googlemail.com>
9818 PR rtl-optimization/47166
9819 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9820 mechanism for PRE_MODIFY and POST_MODIFY.
9821 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9824 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9826 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9828 2011-01-22 Jan Hubicka <jh@suse.cz>
9831 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9833 2011-01-22 Jan Hubicka <jh@suse.cz>
9835 PR tree-optimization/43884
9837 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9838 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9840 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9842 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9843 * config/s390/s390.c (s390_register_move_cost,
9844 s390_memory_move_cost): New.
9845 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9847 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9850 * except.c (sjlj_assign_call_site_values): Move setting the
9851 crtl->uses_eh_lsda flag to ...
9852 (sjlj_mark_call_sites): ... here.
9853 (sjlj_emit_function_enter): Support NULL dispatch label.
9854 (sjlj_build_landing_pads): In a function with no landing pads
9855 that still has must-not-throw regions, generate code to register
9856 a personality function with empty LSDA.
9858 2011-01-21 Richard Henderson <rth@redhat.com>
9860 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9862 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9864 * compare-elim.c: New file.
9865 * Makefile.in (OBJS-common): Add it.
9866 (compare-elim.o): New.
9867 * common.opt (fcompare-elim): New.
9868 * opts.c (default_options_table): Add OPT_fcompare_elim.
9869 * tree-pass.h (pass_compare_elim_after_reload): New.
9870 * passes.c (init_optimization_passes): Add it.
9871 * recog.h: Protect against re-inclusion.
9872 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9873 * doc/invoke.texi (-fcompare-elim): Document it.
9874 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9875 * doc/tm.texi: Rebuild.
9877 2011-01-22 Nick Clifton <nickc@redhat.com>
9879 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9880 rx_split_fp_compare.
9882 2011-01-22 Nick Clifton <nickc@redhat.com>
9884 * config/rx/rx.md (UNSPEC_CONST): New.
9885 (deallocate_and_return): Wrap the amount popped off the stack in
9886 an UNSPEC_CONST in order to stop it being rejected by
9887 -mmax-constant-size.
9888 (pop_and_return): Add a "(return)" rtx.
9889 (call): Drop the immediate operand.
9890 (call_internal): Likewise.
9891 (call_value): Likewise.
9892 (call_value_internal): Likewise.
9893 (sibcall_internal): Likewise.
9894 (sibcall_value_internal): Likewise.
9895 (sibcall): Likewise. Generate an explicit call using
9897 (sibcall_value): Likewise.
9898 (mov<>): FAIL if a constant operand is not legitimate.
9899 (addsi3_unpsec): New pattern.
9901 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9902 (ok_for_max_constant): New function.
9903 (gen_safe_add): New function.
9904 (rx_expand_prologue): Use gen_safe_add.
9905 (rx_expand_epilogue): Likewise.
9906 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9909 2011-01-21 Jeff Law <law@redhat.com>
9911 PR tree-optimization/47053
9912 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9913 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9914 statements are deleted.
9915 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9916 is nonempty, then purge dead edges and cleanup the CFG.
9918 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9922 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9924 * tree-dfa.c (create_var_ann): Mark variable as used.
9926 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9929 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9930 notes from other section in hot/cold partitioning even if
9931 last_action is -3. Increment call_site_base.
9933 PR rtl-optimization/47366
9934 * fwprop.c (forward_propagate_into): Return bool. If
9935 any changes are made, -fnon-call-exceptions is used and
9936 REG_EH_REGION note is present, call purge_dead_edges
9937 and return true if it purged anything.
9938 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9939 any EH edges were purged.
9941 2011-01-21 Jeff Law <law@redhat.com>
9943 PR rtl-optimization/41619
9944 * caller-save.c (setup_save_areas): Break out code to determine
9945 which hard regs are live across calls by examining the reload chains
9946 so that it is always used.
9947 Eliminate code which checked REG_N_CALLS_CROSSED.
9949 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9951 PR tree-optimization/47355
9952 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9953 NOP has non-debug uses beyond PHIs in new_bb.
9955 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9958 * cfgexpand.c (account_used_vars_for_block): Only account vars
9959 that are annotated as used.
9960 (estimated_stack_frame_size): Don't set TREE_USED.
9961 * tree-dfa.c (create_var_ann): Mark variable as used.
9963 2011-01-21 Richard Guenther <rguenther@suse.de>
9966 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9968 2011-01-21 Richard Guenther <rguenther@suse.de>
9970 PR tree-optimization/47365
9971 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9972 (vn_reference_lookup_pieces): Adjust.
9973 (vn_reference_lookup): Likewise.
9974 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9975 (vn_reference_lookup_3): Only look through kills if in
9976 VN_WALKREWRITE mode.
9977 (vn_reference_lookup_pieces): Adjust.
9978 (vn_reference_lookup): Likewise.
9979 (visit_reference_op_load): Likewise.
9980 (visit_reference_op_store): Likewise.
9981 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9982 (compute_avail): Likewise.
9983 (eliminate): Likewise.
9985 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9987 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9988 DECL_IGNORED_P non-reg vars if they are used.
9990 PR tree-optimization/47391
9991 * varpool.c (const_value_known_p): Return false if
9994 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9997 * config/i386/i386.c (ix86_local_alignment): Handle
9998 case for va_list_type_node is nil.
9999 (ix86_canonical_va_list_type): Likewise.
10001 2011-01-21 Alan Modra <amodra@gmail.com>
10003 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10004 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10006 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10008 * config/arm/arm.md (define_attr type): Rename f_load
10009 and f_store to f_fpa_load and f_fpa_store. Update.
10010 (write_conflict): Deal with rename fallout.
10011 (*push_fp_multi): Likewise.
10012 * config/arm/fpa.md (f_load): Use f_fpa_load.
10013 (f_store): Use f_fpa_store.
10014 (*movsf_fpa): Likewise.
10015 (*movdf_fpa): Likewise.
10016 (*movxf_fpa): Likewise.
10017 (*thumb2_movsf_fpa): Likewise.
10018 (*thumb2_movdf_fpa): Likewise.
10019 (*thumb2_movxf_fpa): Likewise.
10020 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10021 f_loadd and f_stored.
10022 (*thumb2_movdi_vfp): Likewise.
10023 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10024 (*thumb2_movsi_vfp): Likewise.
10025 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10026 Use f_loads instead of f_load.
10027 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10029 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10031 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10032 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10033 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10034 (xtensa_mode_dependent_address_p): New function.
10035 (constantpool_address_p): Make static. Change return type to bool.
10036 Change argument type to const_rtx. Use CONST_INT_P predicate.
10038 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10041 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10043 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10046 * cfgexpand.c (expand_debug_expr): Instead of generating
10047 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10050 2011-01-20 Richard Guenther <rguenther@suse.de>
10052 PR middle-end/47370
10053 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10054 the pointer operand of MEM_REFs.
10056 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10058 PR tree-optimization/46130
10059 * ipa-split.c (consider_split): If return_bb contains non-virtual
10060 PHIs other than for retval or if split_function would not adjust it,
10063 2011-01-20 Richard Guenther <rguenther@suse.de>
10065 PR tree-optimization/47167
10066 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10067 Revert previous change, only avoid enumeral type changes.
10069 2011-01-19 Mike Stump <mikestump@comcast.net>
10071 * doc/tm.texi.in (BRANCH_COST): Englishify.
10072 * doc/tm.texi (BRANCH_COST): Likewise.
10074 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10077 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10078 (gen_scheduled_generic_parms_dies): New functions.
10079 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10080 generation for the end of CU compilation.
10081 (dwarf2out_finish): Generate template parameters DIEs here.
10083 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10086 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10087 debug bind stmt on merge edges.
10089 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10093 * function.c (instantiate_expr): Instantiate incoming rtl of
10094 implicit arguments, and recurse on VALUE_EXPRs.
10095 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10096 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10098 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10100 * c-parser.c (c_parser_for_statement): Initialize
10101 collection_expression.
10103 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10105 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10107 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10109 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10110 (LINK_SHLIB_SPEC): Don't use %(link_path).
10111 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10113 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10115 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10116 (NO_SHARED_LIB_SUPPORT): Remove.
10117 (LINK_SHLIB_SPEC): Remove one conditional definition.
10119 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10121 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10123 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10124 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10125 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10126 %{call_shared} and conditionals on these options not being passed.
10127 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10130 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10132 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10135 * ipa-split.c: Spelling fixes.
10137 2011-01-19 Richard Henderson <rth@redhat.com>
10139 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10140 (*mulsi3): Likewise.
10142 * longlong.h [__mn10300__] (count_leading_zeros): New.
10143 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10144 [__mn10300__] (add_ssaaaa, subddmmss): New.
10145 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10146 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10148 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10150 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10152 2011-01-19 Richard Henderson <rth@redhat.com>
10154 * config/mn10300/mn10300.md (addsi3_flags): New.
10155 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10156 (subsi3_flags, subc_internal, subdi3): New.
10157 (subdi3_internal, *subdi3_degenerate): New.
10158 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10160 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10161 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10162 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10163 * config/mn10300/mn10300-protos.h: Update.
10164 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10165 (return_ret): Likewise. Rename from return_internal_regs.
10166 (return_internal): Remove.
10168 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10169 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10170 (mn10300_legitimate_constant_p): Likewise.
10171 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10172 (mn10300_frame_size): New.
10173 (mn10300_expand_prologue): Use it.
10174 (mn10300_expand_epilogue): Likewise.
10175 (mn10300_initial_offset): Likewise.
10176 * config/mn10300/mn10300-protos.h: Update.
10177 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10178 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10179 (prologue, epilogue, return_internal): Tidy output code.
10180 (mn10300_store_multiple_operation, return): Likewise.
10181 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10182 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10183 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10184 (load_pic, am33_load_pic): New.
10185 (mn10300_load_pic0, mn10300_load_pic1): New.
10187 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10188 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10189 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10190 (cc_flags_for_mode, cc_flags_for_code): New.
10191 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10192 overflow flag is not valid. Validate that the flags we need
10193 for the comparison are valid.
10194 (mn10300_output_cmp): Remove.
10195 (mn10300_output_add): New.
10196 (mn10300_select_cc_mode): Use cc_flags_for_code.
10197 (mn10300_split_cbranch): New.
10198 (mn10300_match_ccmode): New.
10199 (mn10300_split_and_operand_count): New.
10200 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10202 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10203 (addsi3): ... here. Use mn10300_output_add.
10204 (*addsi3_flags): New.
10205 (*am33_subsi3, *mn10300_subsi3): Merge...
10206 (subsi3): ... here. Use attribute isa.
10207 (*subsi3_flags): New.
10208 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10210 (*am33_andsi3, *mn10300_andsi3): Merge...
10211 (andsi3): ... here.
10212 (*andsi3_flags): New.
10213 (andsi3 splitters): New.
10214 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10215 (iorsi3): ... here.
10216 (*iorsi3_flags): New.
10217 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10218 (xorsi3): ... here.
10219 (*xorsi3_flags): New.
10220 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10221 (one_cmplsi2): ... here.
10222 (*one_cmplsi2_flags): New.
10223 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10224 instead of "dax" in constraints. Use mn10300_split_cbranch.
10225 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10226 use matching constraints to eliminate a self-comparison.
10227 (*integer_conditional_branch): Rename from integer_conditional_branch.
10228 Use int_mode_flags to match CC_REG.
10229 (*cbranchsi4_btst, *btstsi): New.
10230 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10231 mn10300_split_cbranch.
10232 (*am33_cmpsf): Rename from am33_cmpsf.
10233 (*float_conditional_branch): Rename from float_conditional_branch.
10234 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10235 (zero_extendqisi2): ... here.
10236 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10237 (zero_extendhisi2): ... here.
10238 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10239 (extendqisi2): ... here.
10240 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10241 (extendhisi2): ... here.
10242 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10243 (ashlsi3): ... here.
10244 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10245 (lshrsi3): ... here.
10246 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10247 (ashrsi3): ... here.
10248 (consecutive add peephole): Remove.
10249 * config/mn10300/predicates.md (label_ref_operand): New.
10250 (int_mode_flags): New.
10251 (CCZN_comparison_operator): New.
10253 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10254 (throughput_42_latency_43): New reservation.
10255 (mulsidi3, umulsidi3): New expanders.
10256 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10257 the MDR register to allocation; separately allocate the low and
10258 high parts of the DImode result.
10259 (umulsidi3_internal): Similarly.
10260 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10261 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10262 (udivsi3, umodsi3): Remove.
10263 (udivmodsi4, divmodsi4): New expanders.
10264 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10265 (*divmodsi4): Simiarly.
10266 (ext_internal): New.
10268 * config/mn10300/constraints.md ("z"): New constraint.
10269 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10270 (FIXED_REGISTERS): Don't fix MDR.
10271 (CALL_USED_REGSITERS): Reformat nicely.
10272 (REG_ALLOC_ORDER): Add MDR.
10273 (enum regclass): Add MDR_REGS.
10274 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10275 (IRA_COVER_CLASSES): Add MDR_REGS.
10276 (REGNO_REG_CLASS): Handle MDR_REG.
10277 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10278 (mn10300_register_move_cost): Likewise.
10279 * config/mn10300/mn10300.md (MDR_REG): New.
10280 (*movsi_internal): Handle moves to/from MDR_REGS.
10282 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10284 (mn10300_secondary_reload): Tidy combination reload classes.
10285 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10286 addresses for AM33. Allow symbolic offsets for reg+imm.
10287 (mn10300_regno_in_class_p): New.
10288 (mn10300_legitimize_reload_address): New.
10289 * config/mn10300/mn10300.h (enum reg_class): Remove
10290 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10291 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10292 SP_OR_GENERAL_REGS.
10293 (REG_CLASS_NAMES): Update to match.
10294 (REG_CLASS_CONTENTS): Likewise.
10295 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10296 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10297 (REGNO_IN_RANGE_P): Remove.
10298 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10299 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10300 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10301 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10302 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10303 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10304 (REGNO_GENERAL_P): New.
10305 (HAVE_POST_MODIFY_DISP): New.
10306 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10307 (LEGITIMIZE_RELOAD_ADDRESS): New.
10308 * config/mn10300/mn10300-protos.h: Update.
10310 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10311 DATA_REGS for AM33 stack-pointer destination.
10312 (mn10300_preferred_output_reload_class): Likewise.
10313 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10314 into a form appropriate for ...
10315 (TARGET_SECONDARY_RELOAD): New.
10316 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10317 * config/mn10300/mn10300-protos.h: Update.
10318 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10319 reload_insi; use the "A" constraint for the scratch; handle AM33
10320 moves of sp to non-address registers.
10322 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10323 (*movqi_internal): ... here.
10324 (*am33_movhi, *mn10300_movhi): Merge into...
10325 (*movhi_internal): ... here.
10326 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10327 as the source/destination of moves from/to SP.
10328 (movsf): Only allow for AM33-2.
10329 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10330 any integer constant constraint. Only allow for AM33-2. Tidy
10331 all of the alternative outputs.
10332 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10333 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10335 (udivsi3, umodsi3): New patterns for MN103 only.
10337 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10339 * doc/tm.texi.in: Spell out that a lack of register class unions
10341 * doc/tm.texi: Regenerate.
10343 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10345 PR rtl-optimization/47337
10346 * dce.c (check_argument_store): New function.
10347 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10349 PR tree-optimization/47290
10350 * tree-eh.c (infinite_empty_loop_p): New function.
10351 (cleanup_empty_eh): Use it.
10353 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10356 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10357 (a64_expand_widen_sum): Ditto.
10358 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10359 (vec_extract_evenodd_help): Ditto.
10360 (vec_extract_evenv4hi): Ditto.
10361 (vec_extract_oddv4hi): Ditto.
10362 (vec_extract_evenv2si): Ditto.
10363 (vec_extract_oddv2si): Ditto.
10364 (vec_extract_evenv2sf): Ditto.
10365 (vec_extract_oddv2sf): Ditto.
10366 (vec_pack_trunc_v4hi: Ditto.
10367 (vec_pack_trunc_v2si): Ditto.
10368 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10369 (vec_interleave_highv8qi): Ditto.
10371 (vec_extract_oddv8qi): Ditto.
10372 (vec_interleave_lowv4hi): Ditto.
10373 (vec_interleave_highv4hi): Ditto.
10374 (vec_interleave_lowv2si): Ditto.
10375 (vec_interleave_highv2si): Ditto.
10377 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10379 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10380 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10381 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10382 (pa_c_mode_for_suffix): New.
10383 (TARGET_EXPAND_BUILTIN): Define.
10384 (TARGET_C_MODE_FOR_SUFFIX): Define.
10385 (pa_builtins): Define.
10386 (pa_init_builtins): Register __float128 type and init new support
10388 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10389 * config/pa/quadlib.c (_U_Qfcopysign): New.
10391 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10393 PR middle-end/46894
10394 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10395 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10398 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10400 PR tree-optimization/47179
10401 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10402 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10404 2011-01-18 Richard Guenther <rguenther@suse.de>
10406 PR rtl-optimization/47216
10407 * emit-rtl.c: Include tree-flow.h.
10408 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10409 of replicating it with different semantics.
10410 * Makefile.in (emit-rtl.o): Adjust.
10412 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10414 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10415 (cortex_a9_dp): Handle neon types correctly.
10417 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10419 PR rtl-optimization/47299
10420 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10421 subtarget. Use normal multiplication if both operands are constants.
10422 * expmed.c (expand_widening_mult): Don't try to optimize constant
10423 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10426 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10428 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10429 spacing after 'e.g.', typos, comma, hyphenation.
10431 2011-01-17 Richard Henderson <rth@redhat.com>
10433 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10434 (rx_restricted_mem_operand): New.
10435 (rx_shift_operand): Use register_operand.
10436 (rx_source_operand, rx_compare_operand): Likewise.
10437 * config/rx/rx.md (addsi3_flags): New expander.
10438 (adddi3): Rewrite as expander.
10439 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10440 (subsi3_flags): New expander.
10441 (subdi3): Rewrite as expander.
10442 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10444 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10445 (rx_init_builtins): Remove sat builtin.
10446 (rx_expand_builtin): Likewise.
10447 * config/rx/rx.md (ssaddsi3): New.
10448 (*sat): Rename from sat. Represent the CC_REG input.
10450 * config/rx/predicates.md (rshift_operator): New.
10451 * config/rx/rx.c (rx_expand_insv): Remove.
10452 * config/rx/rx-protos.h: Update.
10453 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10454 operand to the canonical position.
10455 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10456 (*bitclr, *bitclr_in_memory): Similarly.
10457 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10458 (insv): Retain the zero_extract in the expansion.
10460 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10461 (bswaphi2, bitinvert, revw): Likewise.
10463 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10464 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10465 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10466 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10467 (bitset, bitset_in_memory): Likewise.
10468 (bitinvert, bitinvert_in_memory): Likewise.
10469 (bitclr, bitclr_in_memory): Likewise.
10470 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10471 (rx_strend, rx_cmpstrn): Likewise.
10472 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10473 (bitop peep2 patterns): Remove.
10475 * config/rx/rx.c (rx_match_ccmode): New.
10476 * config/rx/rx-protos.h: Update.
10477 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10478 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10479 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10480 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10481 (fix_truncsfsi2, floatsisf2): Likewise.
10482 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10483 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10484 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10485 (*subsi3_flags, *xorsi3_flags): New.
10487 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10489 * config/rx/rx.c (rx_print_operand): Remove workaround for
10490 unsplit comparison operations.
10492 * config/rx/rx.md (movsicc): Split after reload.
10493 (*movsicc): Merge *movsieq and *movsine via match_operator.
10494 (*stcc): New pattern.
10496 * config/rx/rx.c (rx_float_compare_mode): Remove.
10497 * config/rx/rx.h (rx_float_compare_mode): Remove.
10498 * config/rx/rx.md (cstoresi4): Split after reload.
10499 (*sccc): New pattern.
10501 * config/rx/predicates.md (label_ref_operand): New.
10502 (rx_z_comparison_operator): New.
10503 (rx_zs_comparison_operator): New.
10504 (rx_fp_comparison_operator): New.
10505 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10506 Validate that the flags are set properly for the comparison.
10507 (rx_gen_cond_branch_template): Remove.
10508 (rx_cc_modes_compatible): Remove.
10509 (mode_from_flags): New.
10510 (flags_from_code): Rename from flags_needed_for_conditional.
10511 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10512 (rx_select_cc_mode): Likewise.
10513 (rx_split_fp_compare): New.
10514 (rx_split_cbranch): New.
10515 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10516 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10517 (*cbranchsf4): Similarly.
10518 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10519 match_operator and rx_split_cbranch.
10520 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10521 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10522 (*cmpsi): Rename from cmpsi.
10523 (*tstsi): Rename from tstsi.
10524 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10525 (*conditional_branch): Rename from conditional_branch.
10526 (*reveresed_conditional_branch): Remove.
10527 (b<code>): Remove expander.
10528 * config/rx/rx-protos.h: Update.
10530 * config/rx/rx.c (rx_compare_redundant): Remove.
10531 * config/rx/rx.md (cmpsi): Don't use it.
10532 * config/rx/rx-protos.h: Update.
10534 * config/rx/rx-modes.def (CC_F): New mode.
10535 * config/rx/rx.c (rx_select_cc_mode): New.
10536 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10537 * config/rx/rx-protos.h: Update.
10539 2011-01-17 Richard Henderson <rth@redhat.com>
10541 * except.c (dump_eh_tree): Fix stray ; after for statement.
10543 2011-01-17 Richard Guenther <rguenther@suse.de>
10545 PR tree-optimization/47313
10546 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10547 handling before copying the body. Properly deal with
10548 by-reference result in SSA form.
10550 2011-01-17 Ian Lance Taylor <iant@google.com>
10553 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10554 (struct_value_alias_set): Don't define.
10555 (sparc_option_override): Don't set sparc_sr_alias_set and
10556 struct_value_alias_set.
10557 (save_or_restore_regs): Use gen_frame_mem rather than calling
10559 (sparc_struct_value_rtx): Likewise.
10561 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10564 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10565 (_mm_maskstore_pd): Likewise.
10566 (_mm_maskload_ps): Likewise.
10567 (_mm_maskstore_ps): Likewise.
10568 (_mm256_maskload_pd): Change mask to __m256i.
10569 (_mm256_maskstore_pd): Likewise.
10570 (_mm256_maskload_ps): Likewise.
10571 (_mm256_maskstore_ps): Likewise.
10573 * config/i386/i386-builtin-types.def: Updated.
10574 (ix86_expand_special_args_builtin): Likewise.
10576 * config/i386/i386.c (bdesc_special_args): Update
10577 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10578 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10579 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10580 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10582 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10583 Use <avxpermvecmode> on mask register.
10584 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10586 2011-01-17 Olivier Hainque <hainque@adacore.com>
10587 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10588 Eric Botcazou <ebotcazou@adacore.com>
10591 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10592 if <= USHRT_MAX in 32-bit mode.
10594 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10596 * doc/install.texi (Configuration, Specific): Wrap long
10597 lines in examples. Allow line wrapping in long options
10598 and URLs where beneficial for PDF output.
10600 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10602 * config/mips/mips.c (mips_classify_symbol): Don't return
10603 SYMBOL_PC_RELATIVE for nonlocal labels.
10605 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10607 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10609 2011-01-15 Jan Hubicka <jh@suse.cz>
10611 PR tree-optimization/47276
10612 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10613 declarations as needed.
10615 2011-01-15 Martin Jambor <mjambor@suse.cz>
10617 * common.opt (fdevirtualize): New flag.
10618 * doc/invoke.texi (Option Summary): Document it.
10619 * opts.c (default_options_table): Add devirtualize flag.
10620 * ipa-prop.c (detect_type_change): Return immediately if
10621 devirtualize flag is not set.
10622 (detect_type_change_ssa): Likewise.
10623 (compute_known_type_jump_func): Likewise.
10624 (ipa_analyze_virtual_call_uses): Likewise.
10626 2011-01-14 Martin Jambor <mjambor@suse.cz>
10628 PR tree-optimization/45934
10629 PR tree-optimization/46302
10630 * ipa-prop.c (type_change_info): New type.
10631 (stmt_may_be_vtbl_ptr_store): New function.
10632 (check_stmt_for_type_change): Likewise.
10633 (detect_type_change): Likewise.
10634 (detect_type_change_ssa): Likewise.
10635 (compute_complex_assign_jump_func): Check for dynamic type change.
10636 (compute_complex_ancestor_jump_func): Likewise.
10637 (compute_known_type_jump_func): Likewise.
10638 (compute_scalar_jump_functions): Likewise.
10639 (ipa_analyze_virtual_call_uses): Likewise.
10640 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10642 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10644 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10645 * config/i386/i386.opt (msse5): New Alias.
10647 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10649 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10650 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10651 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10652 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10654 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10656 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10658 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10659 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10660 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10661 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10663 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10665 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10667 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10669 2011-01-14 Mike Stump <mikestump@comcast.net>
10671 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10672 * config/fr30/fr30.md: Likweise
10673 (movsi_push): Likewise.
10674 (movsi_pop): Likewise.
10675 (enter_func): Likewise.
10676 * config/moxie/moxie.md (movsi_push): Likewise.
10677 (movsi_pop): Likewise.
10679 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10681 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10682 %{no_archive} %{exact_version}.
10683 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10684 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10685 %{no_archive} %{exact_version}.
10686 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10687 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10688 * config/mips/vxworks.h: Likewise.
10690 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10692 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10694 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10696 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10697 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10699 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10701 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10706 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10708 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10709 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10711 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10712 Don't handle -shlib.
10714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10716 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10717 (CC1_SPEC): Don't handle -profile.
10719 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10721 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10722 * config/mips/mips.h (CC1_SPEC): Likewise.
10724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10726 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10727 * config/mips/mips.h (CC1_SPEC): Likewise.
10729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10731 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10732 * config/m32r/linux.h (LINK_SPEC): Likewise.
10733 * config/mips/linux.h (LINK_SPEC): Likewise.
10734 * config/mips/linux64.h (LINK_SPEC): Likewise.
10735 * config/sparc/linux.h (LINK_SPEC): Likewise.
10736 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10737 LINK_SPEC): Likewise.
10738 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10742 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10744 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10746 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10748 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10749 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10751 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10753 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10755 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10757 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10758 supports -Bstatic/-Bdynamic.
10759 * configure: Regenerate.
10761 2011-01-14 Jan Hubicka <jh@suse.cz>
10762 Jack Howarth <howarth@bromo.med.uc.edu>
10765 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10766 when checking debug_info_level. Test write_symbols instead of
10767 debug_hooks->var_location when setting flag_var_tracking_uninit.
10769 2011-01-14 Richard Guenther <rguenther@suse.de>
10771 PR tree-optimization/47179
10772 * target.def (ref_may_alias_errno): New target hook.
10773 * targhooks.h (default_ref_may_alias_errno): Declare.
10774 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10775 (default_ref_may_alias_errno): New function.
10776 * target.h (struct ao_ref_s): Declare.
10777 * tree-ssa-alias.c: Include target.h.
10778 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10779 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10780 (targhooks.o): Likewise.
10781 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10782 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10784 2011-01-14 Richard Guenther <rguenther@suse.de>
10786 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10788 2011-01-14 Richard Guenther <rguenther@suse.de>
10790 PR tree-optimization/47280
10791 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10792 return CFG changes.
10793 (tree_ssa_forward_propagate_single_use_vars): Deal with
10794 CFG changes from associate_plusminus.
10796 2011-01-14 Richard Guenther <rguenther@suse.de>
10798 PR middle-end/47281
10800 2011-01-11 Richard Guenther <rguenther@suse.de>
10802 PR tree-optimization/46076
10803 * tree-ssa.c (useless_type_conversion_p): Conversions from
10804 unprototyped to empty argument list function types are useless.
10806 2011-01-14 Richard Guenther <rguenther@suse.de>
10808 PR tree-optimization/47286
10809 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10811 2011-01-14 Martin Jambor <mjambor@suse.cz>
10813 PR middle-end/46823
10814 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10816 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10818 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10819 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10820 * config/xtensa/xtensa.c (xtensa_libcall_value,
10821 xtensa_function_value_regno_p): New functions.
10822 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10824 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10827 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10829 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10830 New function prototype.
10831 * config/i386/winnt.c (i386_pe_assemble_visibility):
10832 Warn only if attribute was specified by user.
10834 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10837 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10839 (floatunsdidf2_fcfidu): Ditto.
10841 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10843 * config/s390/s390.c (print_operand_address): Replace 'error' with
10844 'output_operand_lossage'.
10845 (print_operand): Likewise.
10847 2011-01-13 Jeff Law <law@redhat.com>
10849 PR rtl-optimization/39077
10850 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10851 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10852 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10853 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10854 * gcse.c (prune_insertions_deletions): New function.
10855 (compute_pre_data): Use it.
10857 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10860 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10862 (prune_unused_types_mark): Use it.
10864 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10866 PR rtl-optimization/45352
10867 * sel-sched.c: Update copyright years.
10868 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10869 in the advancing loop when we have issued issue_rate insns.
10871 2011-01-12 Richard Henderson <rth@redhat.com>
10873 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10874 (TARGET_MD_ASM_CLOBBERS): New.
10876 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10877 (TARGET_DELEGITIMIZE_ADDRESS): New.
10879 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10880 (clzsi2, *bsch): New patterns.
10882 * config/mn10300/mn10300.md (INT): New mode iterator.
10883 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10885 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10886 flag_split_wide_types.
10888 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10889 (mn10300_trampoline_init): Rewrite without a template, an immediate
10890 load and a direct branch.
10891 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10893 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10895 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10896 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10897 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10898 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10900 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10903 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10906 2011-01-12 Jan Hubicka <jh@suse.cz>
10909 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10910 (PLUGIN_COND_CLOSE): New macro.
10911 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10913 2011-01-12 Richard Guenther <rguenther@suse.de>
10916 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10917 register variables in a MEM_REF.
10919 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10921 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10922 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10923 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10924 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10925 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10926 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10927 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10928 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10929 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10930 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10931 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10932 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10933 * config/gnu-user.h: New. Copied from linux.h.
10934 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10935 GNU_USER_TARGET_STARTFILE_SPEC.
10936 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10937 GNU_USER_TARGET_ENDFILE_SPEC.
10938 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10939 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10940 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10941 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10942 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10943 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10944 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10945 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10946 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10947 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10948 * config/arm/linux-eabi.h (CC1_SPEC): Use
10949 GNU_USER_TARGET_CC1_SPEC.
10950 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10951 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10952 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10953 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10954 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10955 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10956 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10957 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10959 2011-01-12 Richard Guenther <rguenther@suse.de>
10962 * doc/invoke.texi (ffast-math): Document it is turned on
10965 2011-01-12 Jan Hubicka <jh@suse.cz>
10967 PR tree-optimization/47233
10968 * opts.c (common_handle_option): Disable ipa-reference with profile
10971 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10973 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10976 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10978 * c-parser.c (c_lex_one_token): Updated and reindented some
10979 comments. No changes in code.
10981 2011-01-11 Ian Lance Taylor <iant@google.com>
10983 * godump.c (go_output_var): Don't output the variable if there is
10984 already a type with the same name.
10986 2011-01-11 Ian Lance Taylor <iant@google.com>
10988 * godump.c (go_format_type): Don't generate float80.
10990 2011-01-11 Richard Henderson <rth@redhat.com>
10992 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10993 declaration. Rewrite for both speed and size.
10994 (mn10300_address_cost_1): Remove.
10995 (mn10300_register_move_cost): New.
10996 (mn10300_memory_move_cost): New.
10997 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10998 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10999 extensions, shifts, BSWAP, CLZ.
11000 (mn10300_wide_const_load_uses_clr): Remove.
11001 (TARGET_REGISTER_MOVE_COST): New.
11002 (TARGET_MEMORY_MOVE_COST): New.
11003 * config/mn10300/mn10300-protos.h: Update.
11004 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11006 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11007 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11008 * config/mn10300/mn10300-protos.h: Update.
11009 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11010 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11011 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11012 (*test_int_bitfield, *test_byte_bitfield): Remove.
11013 (*bit_test, *subreg_bit_test): Remove.
11014 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11016 * config/mn10300/constraints.md ("c"): Rename from "A".
11017 ("A", "D"): New constraint letters.
11018 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11019 (fmssf4, fnmasf4, fnmssf4): Likewise.
11021 * config/mn10300/mn10300.md (isa): New attribute.
11022 (enabled): New attribute.
11024 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11025 (abssf2, negsf2): Define only for hardware fp.
11026 (sqrtsf2): Reformat.
11027 (addsf3, subsf3, mulsf3): Merge expander and insn.
11029 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11030 (DEBUGGER_AUTO_OFFSET): Remove.
11031 (DEBUGGER_ARG_OFFSET): Remove.
11033 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11034 Emit register stores with the same offsets as the hardware.
11035 (mn10300_store_multiple_operation): Don't check that the register
11036 save offsets are monotonic.
11037 * config/mn10300/mn10300-protos.h: Update.
11039 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11041 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11042 in terms of the value on the stack, not the MDR register.
11044 2011-01-11 Jan Hubicka <jh@suse.cz>
11048 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11049 (symbol_alias_set_destroy, symbol_alias_set_contains,
11050 propagate_aliases_backward): Declare.
11051 * lto-streamer-out.c (struct sets): New sturcture.
11052 (trivally_defined_alias): New function.
11053 (output_alias_pair_p): Rewrite.
11054 (output_unreferenced_globals): Fix output of alias pairs.
11055 (produce_symtab): Likewise.
11056 * ipa.c (function_and_variable_visibility): Set weak alias destination
11058 * varasm.c (symbol_alias_set_t): Remove.
11059 (symbol_alias_set_destroy): Export.
11060 (propagate_aliases_forward, propagate_aliases_backward): New functions
11062 (compute_visible_aliases): ... this one; remove.
11063 (trivially_visible_alias): New
11064 (trivially_defined_alias): New.
11065 (remove_unreachable_alias_pairs): Rewrite.
11066 (finish_aliases_1): Reorganize code checking if alias is defined.
11067 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11070 2011-01-11 Richard Guenther <rguenther@suse.de>
11072 PR tree-optimization/46076
11073 * tree-ssa.c (useless_type_conversion_p): Conversions from
11074 unprototyped to empty argument list function types are useless.
11076 2011-01-11 Richard Guenther <rguenther@suse.de>
11078 PR middle-end/45235
11079 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11080 volatile MEMs as MEM_READONLY_P.
11082 2011-01-11 Richard Guenther <rguenther@suse.de>
11084 PR tree-optimization/47239
11085 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11087 2011-01-11 Jeff Law <law@redhat.com>
11089 PR tree-optimization/47086
11090 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11091 IVs from statements that might throw.
11093 2011-01-10 Jan Hubicka <jh@suse.cz>
11096 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11098 2011-01-10 Jan Hubicka <jh@suse.cz>
11101 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11102 when correcting profile.
11104 2011-01-10 Jan Hubicka <jh@suse.cz>
11107 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11108 DECL_FINI_PRIORITY.
11109 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11110 Restore DECL_FINI_PRIORITY.
11112 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11114 * doc/gimple.texi: Fix quoting of multi-word return values in
11115 @deftypefn statements. Ensure presence of return value. Wrap
11116 overlong @deftypefn lines.
11117 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11118 descriptions of removed functions.
11119 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11120 of multi-word return value in @deftypefn statement.
11122 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11124 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11125 (Conditional Expressions, Logical Operators)
11126 (Statement and operand traversals): Do not indent smallexample
11127 code. Fix duplicate function argument in example.
11129 2011-01-10 Jeff Law <law@redhat.com>
11131 PR tree-optimization/47141
11132 * ipa-split.c (split_function): Handle case where we are
11133 returning a value and the return block has a virtual operand phi.
11135 2011-01-10 Jan Hubicka <jh@suse.cz>
11137 PR tree-optimization/47234
11138 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11139 (pass_feedback_split_functions): Declare.
11140 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11142 * ipa-split.c (gate_split_functions): Update comments; disable
11143 split-functions for profile_arc_flag and branch_probabilities.
11144 (gate_feedback_split_functions): New function.
11145 (execute_feedback_split_functions): New function.
11146 (pass_feedback_split_functions): New global var.
11148 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11151 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11152 calling gimple_call_set_cannot_inline.
11154 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11156 * config/darwin-sections.def: Remove unused section.
11158 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11161 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11163 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11166 * c-parser.c (c_parser_declaration_or_fndef): Improved
11169 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11171 * config/i386/winnt.c (i386_pe_start_function): Make sure
11172 to switch back to function's section.
11174 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11178 * plugin.c: Move include of dlfcn.h from here...
11179 * system.h: ... to here.
11181 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11183 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11185 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11186 two extra empty pages in PDF output.
11188 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11191 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11192 for error recovery purposes behave as if it was not specified so
11193 that the default type is usd.
11195 2011-01-07 Jan Hubicka <jh@suse.cz>
11197 PR tree-optmization/46469
11198 * ipa.c (function_and_variable_visibility): Clear needed flags on
11199 nodes with external decls; handle weakrefs merging correctly.
11201 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11203 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11206 2011-01-07 Jan Hubicka <jh@suse.cz>
11208 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11209 and no longer claim that gold is required for linker plugin.
11210 * configure: Regenerate.
11211 * gcc.c (PLUGIN_COND): New macro.
11212 (LINK_COMMAND_SPEC): Use it.
11213 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11214 * config.in (HAVE_LTO_PLUGIN): New.
11215 * configure.ac (--with-lto-plugin): New parameter; autodetect
11218 2011-01-07 Jan Hubicka <jh@suse.cz>
11220 PR tree-optimization/46367
11221 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11222 when we can update original.
11223 (cgraph_mark_inline_edge): Sanity check.
11224 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11226 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11228 * config/spu/spu.h (ASM_COMMENT_START): Define.
11230 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11233 * gcc.c (%>S): New.
11234 (SWITCH_KEEP_FOR_GCC): Likewise.
11235 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11236 (do_spec_1): Handle "%>".
11238 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11240 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11243 * config/i386/i386.c (ix86_delegitimize_address): If
11244 simplify_gen_subreg fails, return orig_x.
11247 * value-prof.c (gimple_stringop_fixed_value): Handle
11248 lhs of the call properly.
11250 2011-01-07 Jan Hubicka <jh@suse.cz>
11253 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11255 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11257 * target.def (function_switched_text_sections): New hook.
11258 * doc/tm.texi: Regenerated.
11259 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11260 * final.c (default_function_switched_text_sections): New.
11261 (final_scan_insn): Call function_switched_text_sections when a
11262 mid-function section change occurs.
11263 * output.h (default_function_switched_text_sections): Declare.
11264 * config/darwin-protos.h (darwin_function_switched_text_sections):
11266 * config/darwin.c (darwin_function_switched_text_sections): New.
11267 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11269 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11271 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11272 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11273 the secondary code fragment when outputting for DWARF == 2.
11275 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11277 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11278 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11280 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11281 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11283 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11286 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11287 when it is not empty.
11289 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11292 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11293 (case ${target}): Add btver1.
11294 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11295 -march=native recognize btver1 processors.
11296 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11297 btver1 def_and_undef
11298 * config/i386/i386.c (struct processor_costs btver1_cost): New
11300 (m_BTVER1): New definition.
11301 (m_AMD_MULTIPLE): Includes m_BTVER1.
11302 (initial_ix86_tune_features): Add btver1 tune.
11303 (processor_target_table): Add btver1 entry.
11304 (static const char *const cpu_names): Add btver1 entry.
11305 (software_prefetching_beneficial_p): Add btver1.
11306 (ix86_option_override_internal): Add btver1 instruction sets.
11307 (ix86_issue_rate): Add btver1.
11308 (ix86_adjust_cost): Add btver1.
11309 * config/i386/i386.h (TARGET_BTVER1): New definition.
11310 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11311 (enum processor_type): Add PROCESSOR_BTVER1.
11312 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11314 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11317 * config/i386/i386.c (legitimize_tls_address)
11318 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11319 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11320 (tls_initial_exec_64_sun): New pattern.
11322 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11324 * doc/invoke.texi (Overall Options): Improve wording and markup
11325 of the description of -wrapper.
11327 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11329 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11330 rdynamic, threads): New Driver options.
11332 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11335 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11336 if coming from .tdata.
11337 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11339 2011-01-06 Jan Hubicka <jh@suse.cz>
11342 * collect2.c (main): Do not enable LTOmode when plugin is active.
11344 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11347 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11348 --version output if supported.
11349 * configure: Regenerate.
11351 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11353 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11356 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11359 * c-convert.c (convert): When converting a complex expression
11360 other than COMPLEX_EXPR to a different complex type, ensure
11361 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11362 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11363 when converting COMPLEX_TYPE.
11365 2011-01-06 Ira Rosen <irar@il.ibm.com>
11367 PR tree-optimization/47139
11368 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11369 only the last reduction value is used outside the loop. Update
11372 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11374 * config/rtems.opt: New.
11375 * config.gcc (*-*-rtems*): Use rtems.opt.
11377 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11379 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11380 processors do not support 3DNow instructions.
11382 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11384 * config/spu/spu.c (spu_option_override): Set parameter
11385 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11387 2011-01-05 Jan Hubicka <jh@suse.cz>
11389 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11390 at the command line.
11392 2011-01-05 Martin Jambor <mjambor@suse.cz>
11395 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11396 deltas on streamed outgoing edges.
11397 (output_node_opt_summary): Output info for outgoing edges only when
11398 the node is in new parameter set.
11399 (output_cgraph_opt_summary): New parameter set, passed to the two
11400 aforementioned functions. Update its forward declaration and its
11403 2011-01-05 Tom Tromey <tromey@redhat.com>
11405 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11406 operator to c_finish_omp_atomic.
11407 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11408 (build_unary_op): Update.
11409 (build_modify_expr): Update.
11410 (build_asm_expr): Update.
11412 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11414 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11415 newly inserted insns.
11416 (pad_bb): Likewise.
11417 (spu_emit_branch_hint): Likewise.
11418 (insert_hbrp_for_ilb_runout): Likewise.
11419 (spu_machine_dependent_reorg): Call df_finish_pass after
11420 schedule_insns returns.
11422 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11424 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11426 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11428 PR tree-optimization/47005
11429 * tree-sra.c (struct access): Add 'non_addressable' bit.
11430 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11431 (decide_one_param_reduction): Return 0 if the parameter is passed by
11432 reference and one of the accesses in the group is non_addressable.
11434 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11436 PR tree-optimization/47056
11437 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11438 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11439 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11441 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11443 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11444 initializer. Skip view conversions from aggregate types.
11446 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11449 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11451 2011-01-04 Philipp Thomas <pth@suse.de>
11453 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11456 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11458 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11459 on empty epilogue sequences.
11461 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11463 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11464 non-static): New Driver options.
11466 2011-01-04 Jie Zhang <jie@codesourcery.com>
11469 * gcc.c (default_compilers[]): Set combinable field to 0
11470 for all assembly languages.
11472 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11474 * config/mips/loongson3a.md: New file.
11475 * config/mips/mips.md: Include loongson3a.md.
11476 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11479 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11481 PR middle-end/47017
11482 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11483 instead of convert_memory_address_addr_space on the base expression.
11485 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11487 * config/spu/spu.c (spu_option_override): Update error text
11488 for bad -march= / -mtune= values.
11490 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11492 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11493 if branch-hint optimization will be performed.
11495 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11497 PR tree-optimization/47148
11498 * ipa-split.c (split_function): Convert arguments to
11499 DECL_ARG_TYPE if possible.
11501 PR tree-optimization/47155
11502 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11503 when computing uns.
11505 PR rtl-optimization/47157
11506 * combine.c (try_combine): If undobuf.other_insn becomes
11507 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11508 and set *new_direct_jump_p too.
11510 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11512 PR tree-optimization/47021
11513 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11515 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11517 * gcc.c (process_command): Update copyright notice dates.
11518 * gcov.c (print_version): Likewise.
11519 * gcov-dump.c (print_version): Likewise.
11520 * mips-tfile.c (main): Likewise.
11521 * mips-tdump.c (main): Likewise.
11523 2011-01-03 Martin Jambor <mjambor@suse.cz>
11525 PR tree-optimization/46801
11526 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11527 aggregate fields start at byte boundary instead of the bit-field flag.
11529 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11532 * gcc.c (main): Revert revision 168407.
11534 2011-01-03 Martin Jambor <mjambor@suse.cz>
11536 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11538 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11540 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11541 vector optab to expand vector/scalar shift, update gimple to vector.
11543 2011-01-03 Martin Jambor <mjambor@suse.cz>
11545 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11548 2011-01-03 Martin Jambor <mjambor@suse.cz>
11550 PR tree-optimization/46984
11551 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11553 (cgraph_create_indirect_edge): Fixed line length.
11554 (cgraph_indirect_call_info): Declare.
11555 (cgraph_make_edge_direct) Update declaration.
11556 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11557 (cgraph_create_indirect_edge): Use it.
11558 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11560 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11561 the new thunk_delta representation.
11562 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11564 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11565 (ipa_read_indirect_edge_info): Likewise.
11566 * lto-cgraph.c (output_edge_opt_summary): New function.
11567 (output_node_opt_summary): Call it on all outgoing edges.
11568 (input_edge_opt_summary): New function.
11569 (input_node_opt_summary): Call it on all outgoing edges.
11571 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11574 * gcc.c (main): Don't check have_o when settting combine_inputs.
11576 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11578 * regrename.c: Add general comment describing the pass.
11579 (struct du_head): Remove 'length' field.
11580 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11581 (regrename_optimize): Do not sort chains. Rework comments, add others.
11582 Force renaming to the preferred class (if any) in the first pass and do
11583 not consider registers that belong to it in the second pass.
11584 (create_new_chain): Do not set 'length' field.
11585 (scan_rtx_reg): Likewise.
11587 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11589 PR tree-optimization/47140
11590 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11591 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11592 to bit_value_binop.
11594 PR rtl-optimization/47028
11595 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11596 parm_birth_insn instead of at the beginning of first bb.
11598 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11600 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11601 Remove the word "see" before "@pxref".
11602 * doc/rtl.texi: Remove the word "see" before "@pxref".
11604 2011-01-01 Jan Hubicka <jh@suse.cz>
11606 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11609 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11612 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11615 Copyright (C) 2011 Free Software Foundation, Inc.
11617 Copying and distribution of this file, with or without modification,
11618 are permitted in any medium without royalty provided the copyright
11619 notice and this notice are preserved.