1 2011-04-21 Xinliang David Li <davidxl@google.com>
3 * cgraph.h: Remove pid.
4 * cgraph.c: Remove pid.
5 * value-prof.c (init_node_map): New function.
6 (del_node_map): New function.
7 (find_func_by_funcdef_no): New function.
8 (gimple_ic_transform): Call new function.
9 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10 * function.c (get_last_funcdef_no): New function.
11 * function.h (get_last_funcdef_no): New function.
12 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
14 (tree-profiling): Call node map init and delete function.
16 2011-04-21 Ian Lance Taylor <iant@google.com>
18 * godump.c (go_format_type): Use exported Go name for anonymous
21 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
23 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
24 Call builtin_function_type_list instead of builtin_function_type.
25 (UNARY, BINARY, TRINARY, QUAD): Likewise.
27 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
29 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
30 build_function_type_list instead of build_function_type.
31 Delete variable `endlink'.
33 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
35 * config/s390/s390.c (s390_init_builtins): Call
36 build_function_type_list instead of build_function_type.
38 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
40 * config/ia64/ia64.c (ia64_init_builtins): Call
41 build_function_type_list instead of builtin_function_type.
43 2011-04-21 Easwaran Raman <eraman@google.com>
45 * cfgexpand.c (stack_var): Remove OFFSET...
46 (add_stack_var): ...and its reference here...
47 (expand_stack_vars): ...and here.
48 (stack_var_cmp): Sort by descending order of size.
49 (partition_stack_vars): Change heuristic.
50 (union_stack_vars): Fix to reflect changes in
52 (dump_stack_var_partition): Add newline after each partition.
54 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
55 Jeff Law <law@redhat.com>
57 * gengtype-state.c (read_a_state_token): Fix argument to
59 * gengtype.c (matching_file_name_substitute): Likewise.
61 2011-04-21 Richard Guenther <rguenther@suse.de>
64 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
67 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
69 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
71 2011-04-21 Richard Guenther <rguenther@suse.de>
73 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
76 2011-04-21 Richard Guenther <rguenther@suse.de>
78 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
79 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
80 Use DECL_P, not SSA_VAR_P.
81 (ptr_derefs_may_alias_p): Likewise.
82 (ptr_deref_may_alias_ref_p_1): Likewise.
83 (decl_refs_may_alias_p): Likewise.
84 (refs_may_alias_p_1): Likewise.
85 (ref_maybe_used_by_call_p_1): Likewise.
86 (call_may_clobber_ref_p_1): Likewise.
87 (indirect_ref_may_alias_decl_p): Assume indirect refrences
88 are either MEM_REF or TARGET_MEM_REF.
89 (indirect_refs_may_alias_p): Likewise.
90 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
91 for MEM_EXPR of indirect calls.
93 2011-04-21 Tristan Gingold <gingold@adacore.com>
95 * vmsdbgout.c (write_srccorr): Compute file length from the string.
96 (dst_file_info_struct): Remove flen field.
97 (lookup_filename): Remove code that set flen field.
99 2011-04-21 Tristan Gingold <gingold@adacore.com>
101 * config/ia64/ia64.c (ia64_start_function): Add a guard.
103 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
106 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
107 vec_extract and vec_concat for non-SSE4_1 targets.
109 2011-04-21 Richard Guenther <rguenther@suse.de>
111 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
114 2011-04-21 Joseph Myers <joseph@codesourcery.com>
116 * config/i386/cygming.h (union tree_node, TREE): Don't define or
118 (FILE): Don't undefine.
120 2011-04-21 Joseph Myers <joseph@codesourcery.com>
122 * config/alpha/alpha.c (struct machine_function): Use rtx, not
124 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
126 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
127 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
128 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
130 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
131 definitions where used.
132 * config/microblaze/microblaze.h (struct microblaze_args): Use
133 rtx, not struct rtx_def *.
134 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
136 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
137 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
138 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
139 not struct rtx_def *.
140 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
142 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
144 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
146 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
148 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
149 operand_equal_p to compare DR_BASE_ADDRESSes.
150 (vect_check_interleaving): Likewise.
152 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
155 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
156 for all Neon struct constants.
158 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
160 * target.def (legitimate_constant_p): New hook.
161 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
162 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
163 * doc/tm.texi: Regenerate.
164 * hooks.h (hook_bool_mode_rtx_true): Declare.
165 * hooks.c (hook_bool_mode_rtx_true): Define.
166 * system.h (LEGITIMATE_CONSTANT_P): Poison.
167 * calls.c (precompute_register_parameters): Replace uses of
168 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
169 (emit_library_call_value_1): Likewise.
170 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
171 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
172 * ira-costs.c (scan_one_insn): Likewise.
173 * recog.c (general_operand, immediate_operand): Likewise.
174 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
175 * reload1.c (init_eliminable_invariants): Likewise.
177 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
179 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
180 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
182 (TARGET_LEGITIMATE_CONSTANT_P): Define.
183 * config/alpha/predicates.md (input_operand): Update call to
184 alpha_legitimate_constant_p.
186 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
187 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
188 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
189 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
190 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
191 (arm_legitimate_constant_p): New functions.
192 (arm_cannot_force_const_mem): Make static.
194 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
196 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
197 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
198 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
199 instead of bfin_legitimate_constant_p.
200 (bfin_legitimate_constant_p): Make static. Add a mode argument.
201 (TARGET_LEGITIMATE_CONSTANT_P): Define.
203 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
205 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
207 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
208 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
209 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
210 (frv_legitimate_constant_p): Make static. Add a mode argument.
212 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
213 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
214 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
216 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
217 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
218 * config/i386/i386.c (legitimate_constant_p): Rename to...
219 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
221 (ix86_cannot_force_const_mem): Update accordingly.
222 (ix86_legitimate_address_p): Likewise.
223 (TARGET_LEGITIMATE_CONSTANT_P): Define.
224 * config/i386/i386.md: Update commentary.
226 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
227 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
228 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
229 (ia64_legitimate_constant_p): Make static. Add a mode argument.
231 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
233 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
234 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
235 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
236 (lm32_legitimate_constant_p): Make static. Add a mode argument.
238 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
239 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
240 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
242 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
243 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
244 (m32r_legitimate_constant_p): New function.
246 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
247 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
248 LEGITIMATE_CONSTANT_P.
249 (LEGITIMATE_CONSTANT_P): Delete.
250 * config/m68k/m68k.c (m68k_expand_prologue): Call
251 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
252 (m68k_legitimate_constant_p): New function.
253 * config/m68k/m68k.md: Update comments.
255 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
256 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
257 (mcore_legitimate_constant_p): New function.
259 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
260 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
261 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
263 (mep_legitimate_address): Update accordingly.
264 (TARGET_LEGITIMATE_CONSTANT_P): Define.
266 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
268 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
269 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
270 static. Check OP's mode for VOIDmode.
271 (microblaze_legitimate_constant_p): New function.
272 (TARGET_LEGITIMATE_CONSTANT_P): Define.
274 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
275 * config/mips/mips.c (mips_legitimate_constant_p): New function.
276 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
277 (TARGET_LEGITIMATE_CONSTANT_P): Define.
278 * config/mips/predicates.md: Update comments.
280 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
281 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
282 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
283 (mmix_legitimate_constant_p): Make static, return a bool, and take
285 (mmix_print_operand_address): Update accordingly.
287 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
289 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
290 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
291 static. Add a mode argument.
292 (TARGET_LEGITIMATE_CONSTANT_P): Define.
294 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
296 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
297 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
298 (pa_legitimate_constant_p): New function.
300 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
302 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
303 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
304 (pdp11_legitimate_constant_p): New function.
306 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
307 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
308 (rs6000_legitimate_constant_p): New function.
310 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
311 (rx_legitimate_constant_p): ...this.
312 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
313 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
314 (rx_legitimate_constant_p): ...this.
315 (TARGET_LEGITIMATE_CONSTANT_P): Define.
316 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
318 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
319 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
320 * config/s390/s390.c (legitimate_constant_p): Rename to...
321 (s390_legitimate_constant_p): ...this. Make static, return a bool,
322 and add a mode argument.
323 (TARGET_LEGITIMATE_CONSTANT_P): Define.
325 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
327 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
328 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
329 (sh_legitimate_constant_p): New function.
331 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
332 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
333 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
334 (legitimate_constant_p): Rename to...
335 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
337 (constant_address_p): Update accordingly.
339 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
340 argument and return a bool.
341 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
342 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
343 (spu_legitimate_constant_p): Add a mode argument and return a bool.
344 (spu_rtx_costs): Update accordingly.
345 * config/spu/predicates.md (vec_imm_operand): Likewise.
347 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
349 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
350 * config/v850/v850.c (v850_legitimate_constant_p): New function.
351 (TARGET_LEGITIMATE_CONSTANT_P): Define.
353 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
354 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
355 * config/vax/vax.c (legitimate_constant_p): Likewise.
357 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
358 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
359 (xtensa_legitimate_constant_p): New function.
361 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
363 * target.def (cannot_force_const_mem): Add a mode argument.
364 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
365 * doc/tm.texi: Regenerate.
366 * hooks.h (hook_bool_mode_rtx_false): Declare.
367 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
368 (hook_bool_mode_const_rtx_true): Likewise.
369 (hook_bool_mode_rtx_false): New function.
370 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
371 to be non-VOID. Update call to cannot_force_const_mem.
372 (find_reloads): Update accordingly.
373 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
374 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
376 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
377 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
378 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
379 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
380 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
381 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
382 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
383 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
384 (m68k_cannot_force_const_mem): ...this new function.
385 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
387 (mips_const_insns, mips_legitimize_const_move): Update calls.
388 (mips_secondary_reload_class): Likewise.
389 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
390 (pa_cannot_force_const_mem): ...this new function.
391 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
392 (rs6000_cannot_force_const_mem): ...this new function.
393 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
395 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
396 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
398 (xtensa_cannot_force_const_mem): ...this new function.
400 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
402 * config/mips/mips.c (mips16_build_function_stub): Call
403 build_function_type_list instead of build_function_type.
404 (mips16_build_call_stub): Likewise.
406 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
408 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
409 instead of build_function_type.
411 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
413 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
414 instead of build_function_type.
416 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
419 * config/i386/i386.md (insv): Change operand 0 constraint to
420 "register_operand". Change operand 1 and 2 constraint to
421 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
422 * config/i386/sse.md (sse4_1_pinsrb): Export.
423 (sse2_pinsrw): Ditto.
424 (sse4_1_pinsrd): Ditto.
425 (sse4_1_pinsrq): Ditto.
426 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
427 * config/i386/i386.c (ix86_expand_pinsr): New.
429 2011-04-20 Easwaran Raman <eraman@google.com>
431 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
432 containing union type only with -fstrict-aliasing.
434 2011-04-20 Jim Meyering <meyering@redhat.com>
436 Remove useless if-before-free tests.
437 * calls.c (expand_call, save_area): Likewise.
438 * cfgcleanup.c (try_forward_edges): Likewise.
439 * collect2.c (collect_execute): Likewise.
440 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
441 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
442 * coverage.c (coverage_checksum_string): Likewise.
443 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
444 * cselib.c (cselib_init): Likewise.
445 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
446 (df_set_clean_cfg): Likewise.
447 * function.c (free_after_compilation): Likewise.
448 * gcc.c (do_spec_1, main): Likewise.
449 * gcov.c (create_file_names): Likewise.
450 * gensupport.c (identify_predicable_attribute): Likewise.
451 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
452 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
453 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
454 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
455 * ipa-pure-const.c (local_pure_const): Likewise.
456 * ipa-reference.c (propagate): Likewise.
457 * ira-costs.c (free_ira_costs): Likewise.
458 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
459 * matrix-reorg.c (mat_free): Likewise.
460 * prefix.c (get_key_value): Likewise.
461 * profile.c (compute_value_histograms): Likewise.
462 * reload1.c (free_reg_equiv): Likewise.
463 * sched-deps.c (free_deps): Likewise.
464 * sel-sched-ir.c (fence_clear): Likewise.
465 * sese.c (set_rename, if_region_set_false_region): Likewise.
466 * tree-data-ref.c (free_rdg): Likewise.
467 * tree-eh.c (lower_try_finally): Likewise.
468 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
469 * tree-ssa-live.c (delete_var_map): Likewise.
470 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
471 * tree-ssa-pre.c (phi_trans_add): Likewise.
473 2011-04-20 Jakub Jelinek <jakub@redhat.com>
475 PR tree-optimization/48611
476 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
477 beyond ERT_MUST_NOT_THROW region.
479 2011-04-20 Catherine Moore <clm@codesourcery.com>
481 * config/mips/mips.opt (mfix-24k): New.
482 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
483 * config/mips/mips.md (length): Increase by 4 for stores if
485 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
486 all noreorder if fixing 24K errata.
487 * doc/invoke.texi: Document mfix-24k.
489 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
491 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
492 quad-word modes, reduce to 9-bit index range when above 1016 limit.
494 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
496 * config/arm/arm.c (arm_gen_constant): Move movw support ....
497 (const_ok_for_op): ... to here.
499 2011-04-20 Kai Tietz <ktietz@redhat.com>
501 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
502 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
504 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
506 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
508 2011-04-20 Richard Guenther <rguenther@suse.de>
510 PR tree-optimization/47892
511 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
514 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
516 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
518 2011-04-20 Tristan Gingold <gingold@adacore.com>
520 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
522 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
526 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
527 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
528 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
529 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
530 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
532 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
535 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
536 (avr_asm_named_section, avr_asm_output_aligned_common,
537 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
538 New functions to update...
539 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
540 (avr_asm_init_sections): Overwrite section callbacks for
541 data_section, bss_section.
542 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
544 (avr_file_end): ...here.
546 2011-04-20 Richard Guenther <rguenther@suse.de>
549 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
550 objects and types here. Adjust for their offset before comparing.
552 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
554 * tree-vect-stmts.c (vectorizable_store): Only chain one related
557 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
559 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
560 (GIMPLE_H): Include $(INTERNAL_FN_H).
561 (OBJS-common): Add internal-fn.o.
562 (internal-fn.o): New rule.
563 * internal-fn.def: New file.
564 * internal-fn.h: Likewise.
565 * internal-fn.c: Likewise.
566 * gimple.h: Include internal-fn.h.
567 (GF_CALL_INTERNAL): New gf_mask.
568 (gimple_statement_call): Put fntype into a union with a new
570 (gimple_build_call_internal): Declare.
571 (gimple_build_call_internal_vec): Likewise.
572 (gimple_call_same_target_p): Likewise.
573 (gimple_call_internal_p): New function.
574 (gimple_call_internal_fn): Likewise.
575 (gimple_call_fntype): Return null for internal calls.
576 (gimple_call_set_fntype): Assert that the function is not internal.
577 (gimple_call_set_fn): Likewise.
578 (gimple_call_set_fndecl): Likewise.
579 (gimple_call_set_internal_fn): New function.
580 (gimple_call_addr_fndecl): Handle null functions.
581 (gimple_call_return_type): Likewise null types.
582 * gimple.c (gimple_build_call_internal_1): New function.
583 (gimple_build_call_internal): Likewise.
584 (gimple_build_call_internal_vec): Likewise.
585 (gimple_call_same_target_p): Likewise.
586 (gimple_call_flags): Handle calls to internal functions.
587 (gimple_call_fnspec): New function.
588 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
589 (gimple_has_side_effects): Handle null functions.
590 (gimple_rhs_has_side_effects): Likewise.
591 (gimple_call_copy_skip_args): Handle calls to internal functions.
592 * cfgexpand.c (expand_call_stmt): Likewise.
593 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
594 * gimple-fold.c (gimple_fold_call): Handle null functions.
595 (gimple_fold_stmt_to_constant_1): Don't fold
596 calls to internal functions.
597 * gimple-low.c (gimple_check_call_args): Handle calls to internal
599 * gimple-pretty-print.c (dump_gimple_call): Likewise.
600 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
601 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
602 (do_warn_unused_result): Likewise.
603 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
604 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
605 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
606 the target of a call.
607 (initialize_hash_element): Update accordingly.
608 (hashable_expr_equal_p): Use gimple_call_same_target_p.
609 (iterative_hash_hashable_expr): Handle calls to internal functions.
610 (print_expr_hash_elt): Likewise.
611 * tree-ssa-pre.c (can_value_number_call): Likewise.
612 (eliminate): Handle null functions.
613 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
614 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
615 (find_func_aliases): Likewise.
616 * value-prof.c (gimple_ic_transform): Likewise.
617 (gimple_indirect_call_to_profile): Likewise.
618 * lto-streamer-in.c (input_gimple_stmt): Likewise.
619 * lto-streamer-out.c (output_gimple_stmt): Likewise.
621 2011-04-19 Jan Hubicka <jh@suse.cz>
623 * ipa-inline-transform.c (save_inline_function_body): Add comments.
624 * ipa-inline.c (inline_small_functions): Compute summaries first,
627 2011-04-19 Jan Hubicka <jh@suse.cz>
629 * cgraph.h (save_inline_function_body): Remove.
630 * ipa-inline-transform.c: New file, broke out of...
631 * ipa-inline.c: ... this one; Update toplevel comment.
632 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
634 (update_noncloned_frequencies): Move to ipa-inline-transform.c
635 (cgraph_mark_inline_edge): Rename to inline_call; move to
636 ipa-inline-transform.c.
637 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
638 move to ipa-inline-transform.c
639 (recursive_inlining, inline_small_functions, flatten_function,
640 ipa_inline, inline_always_inline_functions,
641 early_inline_small_functions): Update.
642 (inline_transform): Move to ipa-inline-transform.c.
643 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
645 * Makefile.in (ipa-inline-transform.o): New file.
646 * cgraphunit.c (save_inline_function_body): Move to
647 ipa-inline-transform.c
649 2011-04-19 DJ Delorie <dj@redhat.com>
651 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
652 registers if we already know there aren't any.
653 (m32c_emit_epilogue): Don't emit a barrier here.
654 (m32c_emit_eh_epilogue): Likewise.
655 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
656 operands at expand time.
657 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
659 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
660 duplicates. Provide aliases instead.
661 * config/m32c/prologue.md (eh_return): Emit a barrier here.
662 (eh_epilogue): Add a "(return)" here as a hint to other parts of
665 2011-04-19 Anatoly Sokolov <aesok@post.ru>
667 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
668 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
669 (general_or_i64_p, sparc_register_move_cost): New function.
671 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673 * doc/install.texi (Configuration, --enable-threads): Remove mach.
674 Add lynx, mipssde. Sort table.
676 2011-04-19 Xinliang David Li <davidxl@google.com>
678 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
681 2011-04-19 Jakub Jelinek <jakub@redhat.com>
684 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
685 is a SUBREG with non-MODE_INT mode inside of it.
687 2011-04-19 Martin Jambor <mjambor@suse.cz>
689 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
690 also according to actual contants.
691 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
692 (gimple_fold_call): Use it.
693 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
695 2011-04-19 Martin Jambor <mjambor@suse.cz>
697 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
698 non-pointer assignments.
700 2011-04-19 Martin Jambor <mjambor@suse.cz>
702 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
703 account anc_offset and otr_type from the indirect edge info.
704 * ipa-prop.c (get_ancestor_addr_info): New function.
705 (compute_complex_ancestor_jump_func): Assignment analysis moved to
706 get_ancestor_addr_info, call it.
707 (ipa_note_param_call): Do not initialize information about polymorphic
708 calls, return the indirect call graph edge. Remove the last
709 parameter, adjust all callers.
710 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
711 parameters. Initialize polymorphic information in the indirect edge.
713 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
716 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
717 the types if they have different enumeration identifiers.
719 2011-04-19 Jan Hubicka <jh@suse.cz>
721 * cgraph.h (cgraph_optimize_for_size_p): Declare.
722 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
723 * predict.c (cgraph_optimize_for_size_p): Break out from ...
724 (optimize_function_for_size_p) ... here.
726 2011-04-19 Richard Guenther <rguenther@suse.de>
729 * tree.c (free_lang_data): Do not reset the decl-assembler-name
732 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
734 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
735 if DECL_NO_INLINE_WARNING_P is set on the function.
737 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
740 * reload1.c (inc_for_reload): Return void. All callers changed.
741 (emit_input_reload_insns): Don't try to delete previous output
742 reloads to a register, or record spill_reg_store for autoincs.
744 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
746 * gengtype.h: Updated copyright year.
747 (struct input_file_st): Add inpisplugin field.
748 (type_fileloc): New function.
750 (write_typed_struct_alloc_def): Add gcc_assert.
751 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
752 (write_typed_alloc_defns): Don't output for plugin files.
753 (input_file_by_name): Clear inpisplugin field.
754 (main): Set inpisplugin field for plugin files.
756 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
758 * gengtype-state.c (string_eq): New.
759 (read_state): Use string_eq instead of strcmp when creating the
762 2011-04-19 Wei Guozhi <carrot@google.com>
765 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
766 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
768 * config/arm/constraints.md (Uu): New constraint.
769 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
771 2011-04-19 Tristan Gingold <gingold@adacore.com>
773 * config.gcc (-*-*-*vms): Added.
774 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
776 * config/vms/vms-ld.c: New file.
777 * config/vms/vms-ar.c: New file.
778 * config/vms/t-vmsnative: New file.
780 2011-04-18 Xinliang David Li <davidxl@google.com>
782 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
784 2011-04-18 Jakub Jelinek <jakub@redhat.com>
787 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
788 if TREE_TYPE (v) is non-NULL.
790 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
791 gimple_get_virt_mehtod_for_binfo.
792 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
793 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
795 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
797 2011-04-18 Michael Matz <matz@suse.de>
798 Steve Ellcey <sje@cup.hp.com>
800 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
801 use its mode as source mode if it isn't VOIDmode.
803 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
805 * doc/passes.texi: Fill crossref nodes.
807 2011-04-18 Jim Meyering <meyering@redhat.com>
809 Fix doubled-word typos in comments and strings
810 * config/alpha/vms-unwind.h: s/for for/for/
811 * config/arm/unwind-arm.h: Likewise.
812 * config/microblaze/microblaze.c: Likewise.
813 * config/sh/constraints.md: s/in in/in/
814 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
816 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
818 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
819 (AVX_FLOAT_MODE_P): Ditto.
820 (AVX128_VEC_FLOAT_MODE_P): Ditto.
821 (AVX256_VEC_FLOAT_MODE_P): Ditto.
822 (AVX_VEC_FLOAT_MODE_P): Ditto.
823 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
824 (UNSPEC_MASKSTORE): Ditto.
825 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
826 Merge from <sse>_movmsk<ssemodesuffix> and
827 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
828 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
830 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
831 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
832 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
834 2011-04-18 Jan Hubicka <jh@suse.cz>
836 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
838 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
839 (want_inline_function_called_once_p): Break out the logic from
841 (edge_badness): Ensure that profile is not misupdated.
842 (lookup_recursive_calls): Prioritize by call frequencies.
843 (inline_small_functions): Move program size estimates here;
844 actually process whole queue even when unit growth has been
845 met. (to properly compute inline_failed reasons and for the
846 case unit size decrease.) Revisit comments on recursive inlining.
847 (ipa_inline): Remove unit summary code; first inline hot calls
848 of functions called once, cold calls next.
849 (order, nnodes): Remove unused variables.
850 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
851 (GTFILES): Remove ipa-inline.c
852 * sel-sched.c (fill_insns): Silence uninitialized var warning.
854 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
856 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
858 2011-04-18 Jie Zhang <jie@codesourcery.com>
859 Richard Earnshaw <rearnsha@arm.com>
861 * arm.c (neon_builtin_type_bits): Remove.
862 (typedef enum neon_builtin_mode): New.
863 (T_MAX): Don't define.
864 (typedef enum neon_builtin_datum): Remove bits, codes[],
865 num_vars and base_fcode. Add mode, code and fcode.
866 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
867 VAR10): Change accordingly.
868 (neon_builtin_data[]): Change accordingly
869 (arm_init_neon_builtins): Change accordingly.
870 (neon_builtin_compare): Remove.
871 (locate_neon_builtin_icode): Remove.
872 (arm_expand_neon_builtin): Change accordingly.
874 * arm.h (enum arm_builtins): Move to ...
875 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
877 * arm.c (arm_builtin_decl): Declare.
878 (TARGET_BUILTIN_DECL): Define.
879 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
880 (arm_builtin_decls[]): New.
881 (arm_init_neon_builtins): Store builtin declarations in
883 (arm_init_tls_builtins): Likewise.
884 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
885 (arm_builtin_decl): New.
887 2011-04-18 Richard Guenther <rguenther@suse.de>
889 * tree.c (upper_bound_in_type): Build properly canonicalized
891 (lower_bound_in_type): Likewise.
893 2011-04-18 Richard Guenther <rguenther@suse.de>
895 * gimple.h (gimple_call_addr_fndecl): New function.
896 (gimple_call_fndecl): Use it.
897 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
899 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
900 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
902 2011-04-18 Richard Guenther <rguenther@suse.de>
905 * tree.c (build_string): STRING_CST is now derived from tree_typed.
907 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
910 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
911 DECL_IN_CONSTANT_POOL without RTL.
913 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
914 Ira Rosen <ira.rosen@linaro.org>
917 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
918 to match neon_vzip/vuzp/vtrn_internal.
919 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
920 outputs explicitly dependent on both inputs.
921 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
923 2011-04-18 Jakub Jelinek <jakub@redhat.com>
925 PR tree-optimization/48616
926 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
927 whether the shift is by scalar or vector based on whether all SLP
928 scalar stmts have the same rhs.
930 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
932 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
935 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
937 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
940 2011-04-17 Jan Hubicka <jh@suse.cz>
942 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
943 * cgrpahunit.c (cgraph_finalize_function): Do not set
944 finalized_by_frontend.
945 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
946 finalized_by_frontend.
948 2011-04-17 Jan Hubicka <jh@suse.cz>
950 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
951 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
952 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
953 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
955 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
957 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
959 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
962 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
963 is non-null before accessing it.
964 (input_cgraph): Remove trailing spaces.
966 2011-04-17 Revital Eres <revital.eres@linaro.org>
968 * params.def (sms-min-sc): New param flag.
969 * modulo-sched.c (sms_schedule): Use it.
970 * doc/invoke.texi (sms-min-sc): Document it.
972 2011-04-17 Jan Hubicka <jh@suse.cz>
974 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
975 present, also set gimple_call_set_cannot_inline.
976 * ipa-inline.c: Update toplevel comment.
978 (cgraph_clone_inlined_nodes): Fix linebreaks.
979 (cgraph_check_inline_limits): Restructure to ...
980 (caller_growth_limits): ... this one; be more tolerant
981 on growth in nested inline chains; add explanatory comment;
982 fix stack accounting thinko introduced by previous patch.
983 (cgraph_default_inline_p): Remove.
984 (report_inline_failed_reason): New function.
985 (can_inline_edge_p): New function.
986 (can_early_inline_edge_p): New function.
987 (leaf_node_p): Move upwards in file.
988 (want_early_inline_function_p): New function.
989 (want_inline_small_function_p): New function.
990 (want_inline_self_recursive_call_p): New function.
991 (cgraph_edge_badness): Rename to ...
992 (edge_badness) ... this one; fix linebreaks.
993 (update_edge_key): Update call of edge_baddness; add
994 detailed dump about queue updates.
995 (update_caller_keys): Use can_inline_edge_p and
996 want_inline_small_function_p.
997 (cgraph_decide_recursive_inlining): Rename to...
998 (recursive_inlining): Use can_inline_edge_p and
999 want_inline_self_recursive_call_p; simplify and remove no longer
1001 (cgraph_set_inline_failed): Remove.
1002 (add_new_edges_to_heap): Use can_inline_edge_p and
1003 want_inline_small_function_p.
1004 (cgraph_decide_inlining_of_small_functions): Rename to ...
1005 (inline_small_functions): ... this one; cleanup; use
1006 can/want predicates; cleanup debug ouput; work edges till fibheap
1007 is exhausted and do not stop once unit growth is reached; remove
1008 later loop processing remaining edges.
1009 (cgraph_flatten): Rename to ...
1010 (flatten_function): ... this one; use can_inline_edge_p
1011 and can_early_inline_edge_p predicates.
1012 (cgraph_decide_inlining): Rename to ...
1013 (ipa_inline): ... this one; remove unreachable nodes before
1014 inlining functions called once; simplify the pass.
1015 (cgraph_perform_always_inlining): Rename to ...
1016 (inline_always_inline_functions): ... this one; use
1017 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1018 (cgraph_decide_inlining_incrementally): Rename to ...
1019 (early_inline_small_functions): ... this one; simplify
1020 using new predicates; cleanup; make dumps prettier.
1021 (cgraph_early_inlining): Rename to ...
1022 (early_inliner): newer inline regular functions into always-inlines;
1023 fix updating of call stmt summaries.
1024 (pass_early_inline): Update for new names.
1025 (inline_transform): Fix formating.
1026 (gate_cgraph_decide_inlining): Rename to ...
1027 (pass_ipa_inline): ... this one.
1028 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1029 * ipa-inline-analysis.c (dump_inline_summary): Update.
1030 (compute_inline_parameters): Do not compute disregard_inline_limits;
1031 look for mismatching arguments.
1032 (estimate_growth): Fix handlig of non-trivial self recursion.
1033 (inline_read_summary): Do not read info->disregard_inline_limits.
1034 (inline_write_summary): Do not write info->disregard_inline_limits.
1035 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1036 and move all checks into can_inline_edge_p predicate; re-enable code
1037 comparing optimization levels.
1038 (expand_call_inline): Do not test inline_forbidden_into_p.
1039 * Makefile.in (ipa-inline.o): Update arguments.
1041 2011-04-17 Revital Eres <revital.eres@linaro.org>
1043 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1045 2011-04-17 Revital Eres <revital.eres@linaro.org>
1047 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1049 2011-04-17 Michael Matz <matz@suse.de>
1051 PR tree-optimization/48622
1053 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1054 in same order as they're written.
1056 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1058 * config/pa/predicates.md: Reorganize and simplify predicates.
1059 Eliminate duplicate code checks.
1060 (arith_operand): Rename to arith14_operand
1061 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1062 * config/pa/pa.md: Use renamed operands.
1063 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1064 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1065 arith11_operand, adddi3_operand, indexed_memory_operand,
1066 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1067 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1068 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1069 move_dest_operand, move_src_operand, prefetch_cc_operand,
1070 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1071 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1072 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1073 div_operand, int5_operand, movb_comparison_operator,
1074 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1075 arith_double_operand, ireg_operand, lhs_lshift_operand,
1076 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1077 integer_store_memory_operand): Likewise.
1078 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1079 (integer_store_memory_operand, read_only_operand,
1080 function_label_operand, borx_reg_operand,
1081 non_hard_reg_operand): Likewise.
1082 (eq_neq_comparison_operator): Delete unused operator.
1083 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1084 function_label_operand.
1085 (emit_move_sequence): Likewise.
1087 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1089 * config/i386/sse.md (sseunpackmode): New mode attribute.
1090 (ssepackmode): Ditto.
1091 (vec_pack_trunc_<mode>): Macroize expander from
1092 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1093 (vec_unpacks_lo_<mode>): Macroize expander from
1094 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1095 (vec_unpacks_hi_<mode>): Macroize expander from
1096 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1097 (vec_unpacku_lo_<mode>): Macroize expander from
1098 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1099 (vec_unpacku_hi_<mode>): Macroize expander from
1100 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1101 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1102 ix86_expand_sse4_unpack.
1103 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1105 2011-04-16 Jan Hubicka <jh@suse.cz>
1107 * cgraphbuild.c: Include ipa-inline.h.
1108 (reset_inline_failed): Use initialize_inline_failed.
1109 * cgraph.c: Include ipa-inline.h.
1110 (cgraph_create_node_1): Do not initialize estimated_growth.
1111 (initialize_inline_failed): More to ipa-inline-analysis.c
1112 (dump_cgraph_node): Do not dump inline flags.
1113 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1114 and disregard_inline_limits flags.
1115 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1116 time, size, estimated_growth.
1117 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1119 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1120 DECL_DISREGARD_INLINE_LIMITS.
1121 (cgraph_analyze_function): Do not initialize
1122 node->local.disregard_inline_limits.
1123 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1124 inlinable, versionable and disregard_inline_limits.
1125 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1126 cgraph_check_inline_limits, cgraph_default_inline_p,
1127 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1128 add_new_edges_to_heap): Update.
1129 (cgraph_decide_inlining_of_small_function): Update; set
1130 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1131 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1132 cgraph_decide_inlining_incrementally): Update.
1133 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1134 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1135 time, size and estimated_growth parameters.
1136 (estimate_edge_growth): Update.
1137 (initialize_inline_failed): Declare.
1138 * ipa-split.c: Include ipa-inline.h
1139 (execute_split_functions): Update.
1140 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1141 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1142 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1143 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1144 estimated_growth to INT_MIN.
1145 (inline_node_duplication_hook): Likewise.
1146 (dump_inline_summary): Dump new fields.
1147 (compute_inline_parameters): Update.
1148 (estimate_edge_time, estimate_time_after_inlining,
1149 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1150 inline_write_summary):
1151 (initialize_inline_failed): Move here from cgraph.c.
1152 * tree-sra.c: Include ipa-inline.h.
1153 (ipa_sra_preliminary_function_checks): Update.
1154 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1157 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1159 * config/i386/sse.md (V16): New mode iterator.
1161 (AVXMODEQI, AVXMODEDI): Remove.
1162 (sse2, sse3): New mode attribute.
1163 (mov<mode>): Use V16 mode iterator.
1164 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1165 (push<mode>1): Use V16 mode iterator.
1166 (movmisalign<mode>): Ditto.
1167 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1168 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1169 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1170 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1171 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1172 avx_movdqu<avxmodesuffix>.
1173 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1174 *avx_movdqu<avxmodesuffix>.
1175 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1176 avx_lddqu<avxmodesuffix>.
1177 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1178 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1179 avx_movnt<AVXMODEDI:mode>.
1180 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1181 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1183 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1186 * haifa-sched.c (prune_ready_list, schedule_block): Use
1187 sched_pressure_p rather than flag_sched_pressure.
1189 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1191 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1192 cgraph_get_node instead of cgraph_get_create_node.
1194 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1196 * cfgexpand.c (expand_debug_expr): Use
1197 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1199 2011-04-15 Michael Matz <matz@suse.de>
1201 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1202 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1203 * function.c (gimplify_parameters): Ditto.
1204 * gimplify.c (gimplify_vla_decl): Ditto.
1206 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1207 (gimple_call_set_alloca_for_var): New inline function.
1208 (gimple_call_alloca_for_var_p): Ditto.
1209 * gimple.c (gimple_build_call_from_tree): Remember
1210 CALL_ALLOCA_FOR_VAR_P state.
1211 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1213 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1214 calls if they were for VLA objects.
1216 2011-04-15 Martin Jambor <mjambor@suse.cz>
1218 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1221 2011-04-15 Martin Jambor <mjambor@suse.cz>
1224 * tree-emutls.c (lower_emutls_function_body): Call
1225 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1228 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1230 * c-decl.c (detect_field_duplicates): Call
1231 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1233 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1235 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1236 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1237 * ipa-pure-const.c (check_stmt): Call it.
1238 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1240 2011-04-15 Richard Guenther <rguenther@suse.de>
1242 PR tree-optimization/48290
1243 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1244 Properly decide inhibiting propagation based on the valueized
1245 operand. Do loop-closed SSA form preserving here ...
1246 (init_copy_prop): ... not here.
1248 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1251 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1252 (*ieee_smax<mode>3): Likewise.
1254 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1256 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1257 Replace match_operand with match_dup for the third operand in
1260 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1262 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1263 to track processing of conditionals. Update all callers.
1264 (try_combine, simplify_if_then_else): Update.
1266 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1268 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1271 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1273 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1274 instead of match_operand for operand 3.
1276 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1278 * recog.h (insn_operand_data): Add an "allows_mem" field.
1279 * genoutput.c (output_operand_data): Initialize it.
1280 * optabs.c (maybe_legitimize_operand_same_code): New function.
1281 (maybe_legitimize_operand): Use it when matching the original
1284 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1286 * gimplify.c: Fix issues in comments throughout.
1287 (voidify_wrapper_expr): Fix long line.
1288 (build_stack_save_restore): Likewise.
1289 (gimplify_loop_expr): Likewise.
1290 (gimplify_compound_lval): Likewise.
1291 (gimplify_init_ctor_eval): Likewise.
1292 (gimplify_modify_expr_rhs): Likewise.
1293 (omp_notice_threadprivate_variable): Likewise.
1295 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1297 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1298 original one if this is not a builtin function.
1300 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1303 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1304 offset it as needed based on top 2 bits in operands[3], change
1305 MEM mode to SFmode and mask those 2 bits away from operands[3].
1307 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1309 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1310 change from objc_declare_protocols() to objc_declare_protocol().
1312 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1314 * config/i386/sse.md (sse4_1): New mode attribute.
1315 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1316 avx_blend<ssemodesuffix><avxmodesuffix> and
1317 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1318 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1319 avx_blendv<ssemodesuffix><avxmodesuffix> and
1320 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1321 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1322 avx_dp<ssemodesuffix><avxmodesuffix> and
1323 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1324 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1325 (sse4_1_packusdw): Merge with *avx_packusdw.
1326 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1327 (sse4_1_pblendw): Merge with *avx_pblendw.
1328 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1329 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1330 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1332 (sse4_1_round<ssescalarmodesuffix>): Merge with
1333 *avx_round<ssescalarmodesuffix>.
1334 (aesenc): Merge with *avx_aesenc.
1335 (aesenclast): Merge with *avx_aesenclast.
1336 (aesdec): Merge with *avx_aesdec.
1337 (aesdeclast): Merge with *avx_aesdeclast.
1338 (pclmulqdq): Merge with *pclmulqdq.
1339 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1341 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1343 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1346 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1347 (align_local_variable): This. Update DECL_ALIGN.
1348 (add_stack_var): Updated.
1349 (expand_one_stack_var): Likewise.
1351 2011-04-14 Richard Guenther <rguenther@suse.de>
1353 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1355 (dse_initialize_block_local_data, dse_leave_block,
1356 record_voperand_set, get_stmt_uid): Likewise.
1357 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1358 (dse_optimize_stmt): Remove voperand set handling code.
1359 Simplify and improve to handle any kind of killing stmt.
1360 (dse_record_phi): Remove.
1361 (dse_enter_block): Simplify.
1362 (tree_ssa_dse): Likewise.
1363 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1365 2011-04-14 Jan Hubicka <jh@suse.cz>
1367 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1368 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1369 (cgraph_local_info): Remove inline_summary.
1370 * ipa-cp.c: Include ipa-inline.h.
1371 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1372 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1374 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1375 (input_overwrite_node): Do not set inline summary.
1376 (input_node): Do not stream inline summary.
1377 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1378 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1379 growth; we do not have inline parameters computed for that anyway.
1380 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1381 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1382 (inline_summary_t): New type and VECtor.
1383 (debug_inline_summary, dump_inline_summaries): Declare.
1384 (inline_summary): Use VOCtor.
1385 (estimate_edge_growth): Kill hack computing call stmt size directly.
1386 * lto-section-in.c (lto_section_name): Add inline section.
1387 * ipa-inline-analysis.c: Include lto-streamer.h
1388 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1389 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1390 (inline_summary_vec): Define.
1391 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1392 dump_inline_summaries): New functions.
1393 (estimate_function_body_sizes): Properly compute size/time of outgoing
1395 (compute_inline_parameters): Alloc inline_summary; do not compute
1396 size/time of incomming calls.
1397 (estimate_edge_time): Avoid missing time summary hack.
1398 (inline_read_summary): Read inline summary info.
1399 (inline_write_summary): Write inline summary info.
1400 (inline_free_summary): Free all hooks and inline summary vector.
1401 * lto-streamer.h: Add LTO_section_inline_summary section.
1402 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1403 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1405 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1407 * tree-vectorizer.h (vect_strided_store_supported): Add a
1408 HOST_WIDE_INT argument.
1409 (vect_strided_load_supported): Likewise.
1410 (vect_permute_store_chain): Return void.
1411 (vect_transform_strided_load): Likewise.
1412 (vect_permute_load_chain): Delete.
1413 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1414 count argument. Check that the count is a power of two.
1415 (vect_strided_load_supported): Likewise.
1416 (vect_permute_store_chain): Return void. Update after above changes.
1417 Assert that the access is supported.
1418 (vect_permute_load_chain): Likewise.
1419 (vect_transform_strided_load): Return void.
1420 * tree-vect-stmts.c (vectorizable_store): Update calls after
1421 above interface changes.
1422 (vectorizable_load): Likewise.
1423 (vect_analyze_stmt): Don't check for strided powers of two here.
1425 2011-04-14 Richard Guenther <rguenther@suse.de>
1427 PR tree-optimization/48590
1428 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1429 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1430 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1431 BUILT_IN_STACK_SAVE.
1432 * tree-ssa-dce.c (propagate_necessity): Handle
1433 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1435 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1437 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1440 2011-04-14 Richard Guenther <rguenther@suse.de>
1442 * tree.h (get_object_alignment_1): Declare.
1443 * builtins.c (get_object_alignment_1): Split out worker from ...
1444 (get_object_alignment): ... here.
1445 * fold-const.c (get_pointer_modulus_and_residue): Use
1446 get_object_alignment_1.
1448 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1450 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1452 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1453 parameter. Generalise code to handle arrays as well as vectors.
1454 (vect_setup_realignment): Update accordingly.
1455 * tree-vect-stmts.c (vectorizable_store): Likewise.
1456 (vectorizable_load): Likewise.
1458 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1460 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1461 within the per-copy loop.
1463 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1465 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1468 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1470 * doc/options.texi (Negative): Explicitly mention that the
1471 Negative chain must be circular.
1473 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1475 * function.h (block_chainon): Declare.
1476 * function.c (block_chainon): Define.
1478 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1479 Eric Weddington <eric.weddington@atmel.com>
1480 Georg-Johann Lay <avr@gjlay.de>
1482 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1484 (avr_init_builtins, avr_expand_builtin,
1485 avr_expand_delay_cycles, avr_expand_unop_builtin,
1486 avr_expand_binop_builtin ): New functions.
1487 (avr_builtin_id): New enum
1488 (struct avr_builtin_description): New struct
1489 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1490 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1492 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1493 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1494 UNSPECV_DELAY_CYCLES): new enumeration values
1495 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1496 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1497 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1498 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1499 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1500 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1501 "fmulsu"): New insns
1503 * config/avr/avr-c.c: fix line endings
1504 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1505 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1506 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1507 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1508 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1510 * doc/extend.texi (AVR Built-in Functions): New node
1511 (Target Builtins): Add documentation of AVR
1514 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1517 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1518 alone. Error if non-const data has attribute progmem.
1520 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1522 * tree.h (struct tree_constructor): Include tree_typed instead of
1524 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1525 TS_TYPED instead of TS_COMMON.
1527 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1529 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1530 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1531 (sse2_psadbw): Merge with *avx_psadbw.
1532 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1533 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1534 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1535 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1536 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1537 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1538 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1539 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1540 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1541 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1542 (ssse3_palignrti): Merge with *avx_palignrti.
1544 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1546 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1547 * tree-ssanames.c (fini_ssanames): VEC_free it.
1548 (make_ssa_name_fn): Update for VECness of free_ssanames.
1549 (release_ssa_name, release_dead_ssa_names): Likewise.
1550 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1552 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1553 TS_TYPED instead of TS_COMMON.
1555 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1557 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1558 statistics_counter_event.
1559 * tree-ssa-copyrename.c (stats): Define.
1560 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1561 statistics_counter_event.
1562 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1563 (bswap_stats, widen_mul_stats): Define.
1564 (insert_reciprocals): Increment rdivs_inserted.
1565 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1566 rfuncs_inserted. Add calls to statistics_counter_event.
1567 (execute_cse_sincos_1): Increment inserted.
1568 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1569 statistics_counter_event.
1570 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1571 of bswap_stats. Add calls to statistics_counter_event.
1572 (convert_mult_to_widen): Increment widen_mults_inserted.
1573 (convert_plusminus_to_widen): Increment maccs_inserted.
1574 (convert_mult_to_fma): Increment fmas_inserted.
1575 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1576 calls to statistics_counter_event.
1578 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1580 PR rtl-optimization/48455
1581 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1582 `temp_costs->mem_cost'.
1584 2011-04-13 Jan Hubicka <jh@suse.cz>
1586 * ipa-inline.h: New file.
1587 * ipa-inline-analysis.c: New file. Broken out of ...
1588 * ipa-inline.c: ... this file; update toplevel comment;
1589 include ipa-inline.h
1590 (inline_summary): Move to ipa-inline.h
1591 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1592 ipa-inline-analysis.c.
1593 (cgraph_estimate_time_after_inlining): Rename to
1594 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1595 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1596 to estimate_edge_growth.
1597 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1598 rename to estimate_size_after_inlining.
1599 (cgraph_mark_inline_edge): Update for new naming convention.
1600 (cgraph_check_inline_limits): Likewise.
1601 (cgraph_edge_badness): Likewise.
1602 (cgraph_decide_recursive_inlining): Likewise.
1603 (cgraph_decide_inlining_of_small_functions): Likewise.
1604 (cgraph_decide_inlining_incrementally): Likewise.
1605 (cgraph_estimate_growth): Rename to estimate_growth; move to
1606 ipa-inline-analysis.c.
1607 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1608 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1609 (compute_inline_parameters): Likewise.
1610 (compute_inline_parameters_for_current): Likewise.
1611 (pass_inline_parameters): Likewise.
1612 (inline_indirect_intraprocedural_analysis): Likewise.
1613 (analyze_function): Rename to inline_analyze_function; likewise.
1614 (add_new_function): Move to ipa-inline-analysis.c.
1615 (inline_generate_summary): Likewise.
1616 (inline_read_summary): Likewise.
1617 (inline_write_summary): Likewise.
1618 * Makefile.in (ipa-inline-analysis.c): New file.
1620 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1622 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1623 * configure: Regenerate.
1625 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1627 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1628 instead of tree_common.
1629 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1631 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1632 TS_TYPED rather than TS_COMMON.
1633 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1635 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1638 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1639 r20 around calls of __tablejump_elpm__
1641 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1644 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1646 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1648 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1650 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1651 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1652 (cfi_vec): New typedef.
1653 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1654 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1655 (cie_cfi_vec): New static variable.
1656 (cie_cfi_head): Delete.
1657 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1658 declaration changed. Use vector rather than list operations.
1659 (new_cfi): Don't initialize the dw_cfi_next field.
1660 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1661 rather than list operations.
1662 (lookup_cfa): Use vector rather than list operations.
1663 (output_cfis): New argument upto. Accept a cfi_vec rather than
1664 a dw_cfi_ref list head as argument. All callers changed.
1665 Iterate over the vector using upto as a maximum index.
1666 (output_all_cfis): New static function.
1667 (output_fde): Use vector rather than list operations. Use the
1668 new upto argument for output_cfis rather than manipulating a
1670 (dwarf2out_begin_prologue): Change initializations to match
1672 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1673 from the vector length rather than searching for the end of a list.
1674 Use output_all_cfis.
1675 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1677 2011-04-13 Nick Clifton <nickc@redhat.com>
1679 * config/rx/rx.md (movmemsi): Do not use this pattern when
1680 volatile pointers are involved.
1682 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1684 * config/i386/sse.md (pinsrbits): Remove.
1685 (sse2_packsswb): Merge with *avx_packsswb.
1686 (sse2_packssdw): Merge with *avx_packssdw.
1687 (sse2_packuswb): Merge with *avx_packuswb.
1688 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1689 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1690 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1691 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1692 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1693 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1694 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1695 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1696 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1697 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1698 (sse2_loadld): Merge with *avx_loadld.
1699 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1700 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1701 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1702 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1703 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1705 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1707 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1709 * print-tree.c (print_node): Likewise.
1710 * tree-inline.c (copy_tree_r): Likewise.
1711 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1712 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1713 instead of TS_COMMON.
1714 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1715 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1716 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1717 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1718 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1720 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1722 (TREE_CHAIN): Check for a TS_COMMON structure.
1723 (TREE_TYPE): Check for a TS_TYPED structure.
1725 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1727 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1728 cgraph_get_create_node instead of cgraph_node.
1730 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1732 * c-parser.c (c_parser_initelt): Updated call to
1733 objc_build_message_expr.
1734 (c_parser_postfix_expression): Likewise.
1736 2011-04-12 Kai Tietz <ktietz@redhat.com>
1738 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1739 MASK_MS_BITFIELD_LAYOUT bit.
1741 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1743 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1744 assert it is always true.
1745 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1748 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1750 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1751 compiling Objective-C to be more efficient.
1753 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1755 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1758 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1760 * recog.h, genoutput.c, optabs.c: Revert last patch.
1762 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1765 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1767 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1769 * recog.h (insn_operand_data): Add an "allows_mem" field.
1770 * genoutput.c (output_operand_data): Initialize it.
1771 * optabs.c (maybe_legitimize_operand_same_code): New function.
1772 (maybe_legitimize_operand): Use it when matching the original
1775 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1777 * genpreds.c (process_define_predicate): Move most processing
1778 to gensupport.c. Continue to validate the expression.
1779 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1780 (process_define_predicate): Move processing to gensupport.c.
1781 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1782 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1783 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1785 (valid_predicate_name_p): New function, split out from old
1786 genpreds.c:process_define_predicate.
1787 (process_define_predicate): New function, combining code from
1788 old genpreds.c and genrecog.c functions.
1789 (process_rtx): Call it for DEFINE_PREDICATE and
1790 DEFINE_SPECIAL_PREDICATE.
1792 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1794 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1795 size of a '%A' memory reference.
1796 (T_DREG, T_QREG): New neon_builtin_type_bits.
1797 (arm_init_neon_builtins): Assert that the load and store operands
1798 are neon_struct_operands.
1799 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1800 (NEON_ARG_MEMORY): New builtin_arg.
1801 (neon_dereference_pointer): New function.
1802 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1803 Handle NEON_ARG_MEMORY.
1804 (arm_expand_neon_builtin): Update after above interface changes.
1805 Use NEON_ARG_MEMORY for loads and stores.
1806 * config/arm/predicates.md (neon_struct_operand): New predicate.
1807 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1808 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1809 (V_four_elem): Tweak formatting.
1810 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1811 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1812 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1813 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1814 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1815 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1816 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1817 Use %A in the output template.
1818 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1819 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1820 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1821 the width of the memory access. Remove post-increment.
1822 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1824 2011-04-12 Nick Clifton <nickc@redhat.com>
1826 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1827 instruction for interrupt handlers if the target is the basic V850
1829 (expand_epilogue): Likewise.
1831 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1833 PR rtl-optimization/48549
1834 * combine.c (propagate_for_debug): Also stop after BB_END of
1835 this_basic_block. Process LAST and just stop processing after it.
1836 (combine_instructions): If last_combined_insn has been deleted,
1837 set last_combined_insn to its PREV_INSN.
1839 2011-04-12 Richard Guenther <rguenther@suse.de>
1841 PR tree-optimization/46076
1842 * gimple.h (struct gimple_statement_call): Add fntype field.
1843 (gimple_call_fntype): Adjust.
1844 (gimple_call_set_fntype): New function.
1845 * gimple.c (gimple_build_call_1): Set the call function type.
1846 * gimplify.c (gimplify_call_expr): Preserve the function
1847 type the frontend used for the call.
1848 (gimplify_modify_expr): Likewise.
1849 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1851 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1853 * tree-ssa.c (useless_type_conversion_p): Function pointer
1854 conversions are useless.
1856 2011-04-12 Martin Jambor <mjambor@suse.cz>
1858 * cgraph.h (cgraph_node): Remove function declaration.
1859 (cgraph_create_node): Declare.
1860 (cgraph_get_create_node): Likewise.
1861 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1862 Updated all callers.
1863 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1864 the decl does not already exist. Call cgraph_get_create_node instead
1866 (cgraph_get_create_node): New function.
1867 (cgraph_same_body_alias): Update comment.
1868 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1869 assert it does not return NULL.
1870 (cgraph_update_edges_for_call_stmt): Likewise.
1871 (cgraph_clone_edge): Likewise.
1872 (cgraph_create_virtual_clone): Likewise.
1873 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1874 instead of cgraph_node.
1875 (cgraph_add_new_function): Call cgraph_create_node or
1876 cgraph_get_create_node instead of cgraph_node.
1877 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1878 instead of cgraph_node.
1879 (record_eh_tables): Likewise.
1880 (mark_address): Likewise.
1881 (mark_load): Likewise.
1882 (build_cgraph_edges): Call cgraph_get_create_node instead
1884 (rebuild_cgraph_edges): Likewise.
1885 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1886 instead of cgraph_node.
1887 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1889 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1890 cgraph_create_node instead of cgraph_node.
1891 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1893 * lto-cgraph.c (input_node): Likewise.
1894 * lto-streamer-in.c (input_function): Likewise.
1895 * varasm.c (mark_decl_referenced): Likewise.
1896 (assemble_alias): Likewise.
1898 2011-04-12 Martin Jambor <mjambor@suse.cz>
1900 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1901 instead of cgraph_node and assert it does not return NULL.
1902 * lto-streamer-in.c (lto_read_body): Likewise.
1903 * omp-low.c (new_omp_context): Likewise.
1904 (create_task_copyfn): Likewise.
1905 * tree-emutls.c (lower_emutls_function_body): Likewise.
1906 * matrix-reorg.c (transform_allocation_sites): Likewise.
1908 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1911 * c-typeck.c (build_asm_expr): Error out on attempts to use
1912 void type outputs or inputs for constraints that allow reg or
1915 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1916 Richard Earnshaw <rearnsha@arm.com>
1919 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1920 to use sign-magnitude offsets. Reject unsupported unaligned
1921 cases. Add detailed description in comments.
1922 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1923 condition from TARGET_32BIT to TARGET_ARM.
1925 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1927 * tree.h (struct typed_tree): New.
1928 (struct tree_common): Include it instead of tree_base.
1929 (TREE_TYPE): Update for new location of type field.
1930 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1931 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1932 (union tree_node): Add typed field.
1933 * treestruct.def (TS_TYPED): New.
1934 * lto-streamer.c (check_handled_ts_structures): Handle it.
1935 * tree.c (MARK_TS_TYPED): New macro.
1936 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1938 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1940 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1941 (force_nonfallthru): Do not alter the loop nest if no basic block
1944 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1946 * config/i386/sse.md (VI): New mode iterator.
1948 (AVX256MODEI): Ditto.
1949 (AVXMODEF4P): Ditto.
1950 (avxvecpsmode): Ditto.
1951 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1952 (sse2_andnot<mode>3): New expander.
1953 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1954 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1955 (<any_logic:code><mode>3): Use VI mode iterator.
1956 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1957 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1958 (*andnottf3): Handle AVX three-operand constraints.
1959 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1961 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1962 Robert Millan <rmh@gnu.org>
1964 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1965 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1966 GNU_USER_DYNAMIC_LINKER64): Define.
1967 (REG_NAME): Don't undefine.
1968 (MD_UNWIND_SUPPORT): Undefine.
1969 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1970 (REG_NAME): Don't undefine.
1971 (MD_UNWIND_SUPPORT): Undefine.
1972 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1974 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1976 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1977 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1979 2011-04-11 Xinliang David Li <davidxl@google.com>
1981 * value-profile.c (check_ic_target): New function.
1982 (gimple_ic_transform): Sanity check indirect call target.
1983 * gimple-low.c (gimple_check_call_args): Interface change.
1984 (gimple_check_call_matching_types): New function.
1985 * tree-inline.c (tree_can_inline_p): Call new function.
1987 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1989 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1990 tree-pretty-print.h & realmpfr.h.
1992 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1995 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1996 (setup_allocno_and_important_classes): Ditto.
1998 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2000 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2001 GNU_USER_DYNAMIC_LINKER.
2002 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2003 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2004 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2005 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2006 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2007 GNU_USER_TARGET_OS_CPP_BUILTINS.
2008 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2009 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2010 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2011 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2012 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2013 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2014 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2015 GNU_USER_TARGET_OS_CPP_BUILTINS.
2016 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2017 GNU_USER_DYNAMIC_LINKER.
2018 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2019 GNU_USER_TARGET_OS_CPP_BUILTINS.
2020 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2021 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2022 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2023 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2024 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2025 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2026 GNU_USER_DYNAMIC_LINKER64): Remove.
2027 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2029 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2030 GNU_USER_DYNAMIC_LINKER.
2031 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2032 GNU_USER_TARGET_OS_CPP_BUILTINS.
2033 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2034 GNU_USER_TARGET_OS_CPP_BUILTINS.
2035 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2036 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2037 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2038 GNU_USER_TARGET_OS_CPP_BUILTINS.
2039 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2040 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2041 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2042 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2043 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2044 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2045 GNU_USER_DYNAMIC_LINKER.
2046 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2047 GNU_USER_TARGET_OS_CPP_BUILTINS.
2048 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2050 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2051 GNU_USER_DYNAMIC_LINKER.
2052 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2054 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2056 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2057 GNU_USER_DYNAMIC_LINKER.
2058 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2059 GNU_USER_DYNAMIC_LINKERN32.
2060 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2061 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2062 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2063 GNU_USER_DYNAMIC_LINKER32.
2064 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2066 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2067 GNU_USER_DYNAMIC_LINKER.
2068 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2069 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2070 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2071 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2072 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2073 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2074 GNU_USER_DYNAMIC_LINKER32.
2075 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2076 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2077 GNU_USER_DYNAMIC_LINKER.
2078 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2079 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2080 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2081 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2082 GNU_USER_DYNAMIC_LINKER64.
2083 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2084 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2085 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2086 GNU_USER_DYNAMIC_LINKER.
2087 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2088 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2089 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2090 GNU_USER_DYNAMIC_LINKER.
2091 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2092 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2093 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2094 GNU_USER_DYNAMIC_LINKER32.
2095 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2096 GNU_USER_DYNAMIC_LINKER64.
2097 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2098 GNU_USER_DYNAMIC_LINKER64.
2099 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2100 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2101 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2102 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2103 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2105 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2107 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2108 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2109 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2110 GNU_USER_DYNAMIC_LINKER.
2111 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2112 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2113 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2114 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2115 GNU_USER_DYNAMIC_LINKER64.
2116 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2117 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2118 GNU_USER_LINK_EMULATION.
2119 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2120 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2121 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2122 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2123 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2124 CPP_SPEC, CC1_SPEC): Remove.
2125 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2126 (GNU_USER_DYNAMIC_LINKER): Define.
2127 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2128 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2129 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2130 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2131 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2132 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2133 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2134 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2135 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2136 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2137 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2138 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2139 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2140 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2141 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2142 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2143 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2144 GNU_USER_DYNAMIC_LINKER.
2145 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2146 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2147 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2148 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2149 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2150 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2151 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2152 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2153 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2154 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2156 2011-04-11 Kai Tietz <ktietz@redhat.com>
2160 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2161 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2163 (ix86_is_msabi_thiscall): Removed.
2164 (ix86_is_type_thiscall): Likewise.
2165 (ix86_get_callcvt): New function.
2166 (ix86_comp_type_attributes): Simplify check.
2167 (ix86_function_regparm): Use ix86_get_callcvt for calling
2168 convention attribute checks.
2169 (ix86_return_pops_args): Likewise.
2170 (ix86_static_chain): Likewise.
2171 (x86_this_parameter): Likewise.
2172 (x86_output_mi_thunk): Likewise.
2173 (ix86_function_type_abi): Optimize check for types without attributes.
2174 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2175 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2176 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2178 (IX86_BASE_CALLCVT): Helper macro.
2179 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2180 Use ix86_get_callcvt for calling convention attribute checks and avoid
2181 symbol-decoration for stdcall in TARGET_RTD case.
2182 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2184 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2187 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2189 * config/i386/sse.md (VI_128): New mode iterator.
2190 (VI12_128): Rename from SSEMODE12.
2191 (VI14_128): Rename from SSEMODE14.
2192 (VI124_128): New mode iterator.
2193 (VI24_128): Rename from SSEMODE248.
2194 (VI248_128): Rename from SSEMODE248.
2195 (SSEMODE124C8): Remove.
2196 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2197 (*sse2_<plusminus_insn><mode>3): Merge with
2198 *avx_<plusminus_insn><mode>3.
2199 (*mulv8hi3): Merge with *avx_mulv8hi3.
2200 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2201 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2202 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2203 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2204 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2205 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2206 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2207 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2208 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2209 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2210 (*<smaxmin:code>v8hi3): Ditto.
2211 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2212 (*<smaxmin:code>v16qi3): Ditto.
2213 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2214 (*sse2_eq<mode>3): Ditto.
2215 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2216 (*sse2_gt<mode>3): Ditto.
2217 (vcondv2di): Split out of vcond<mode>.
2218 (vconduv2di): Split out of vcondu<mode>.
2220 2011-04-11 Richard Guenther <rguenther@suse.de>
2222 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2223 before calling tree_low_cst.
2225 2011-04-11 Richard Guenther <rguenther@suse.de>
2227 * stor-layout.c (layout_type): Compute all array index size operations
2228 in the original type.
2229 (initialize_sizetypes): Add comment.
2230 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2232 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2234 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2236 2011-04-11 Martin Jambor <mjambor@suse.cz>
2238 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2239 of cgraph_node, handle NULL return value.
2240 (cgraph_global_info): Likewise.
2241 (cgraph_rtl_info): Likewise.
2242 * tree-inline.c (estimate_num_insns): Likewise.
2243 * gimplify.c (unshare_body): Likewise.
2244 (unvisit_body): Likewise.
2245 (gimplify_body): Likewise.
2246 * predict.c (optimize_function_for_size_p): Likewise.
2247 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2248 (call_may_clobber_ref_p_1): Likewise.
2249 * varasm.c (function_section_1): Likewise.
2250 (assemble_start_function): Likewise.
2252 2011-04-11 Martin Jambor <mjambor@suse.cz>
2254 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2256 * final.c (rest_of_clean_state): Likewise.
2257 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2258 * passes.c (pass_init_dump_file): Likewise.
2259 (execute_all_ipa_transforms): Likewise.
2260 (function_called_by_processed_nodes_p): Likewise.
2261 * predict.c (maybe_hot_frequency_p): Likewise.
2262 (probably_never_executed_bb_p): Likewise.
2263 (compute_function_frequency): Likewise.
2264 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2265 (unnest_nesting_tree_1): Likewise.
2266 (lower_nested_functions): Likewise.
2267 * tree-optimize.c (execute_fixup_cfg): Likewise.
2268 (tree_rest_of_compilation): Likewise.
2269 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2270 * tree-sra.c (ipa_early_sra): Likewise.
2271 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2272 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2273 * ipa.c (record_cdtor_fn): Likewise.
2274 * ipa-inline.c (cgraph_early_inlining): Likewise.
2275 (compute_inline_parameters_for_current): Likewise.
2276 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2277 * ipa-pure-const.c (local_pure_const): Likewise.
2278 * ipa-split.c (split_function): Likewise.
2279 (execute_split_functions): Likewise.
2280 * cgraphbuild.c (build_cgraph_edges): Likewise.
2281 (rebuild_cgraph_edges): Likewise.
2282 (cgraph_rebuild_references): Likewise.
2283 (remove_cgraph_callee_edges): Likewise.
2284 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2285 (verify_cgraph_node): Likewise.
2286 (cgraph_analyze_functions): Likewise.
2287 (cgraph_preserve_function_body_p): Likewise.
2288 (save_inline_function_body): Likewise.
2289 (save_inline_function_body): Likewise.
2290 * tree-inline.c (copy_bb): Likewise.
2291 (optimize_inline_calls): Likewise.
2293 2011-04-11 Martin Jambor <mjambor@suse.cz>
2295 PR tree-optimization/48195
2296 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2297 ipa_check_create_edge_args.
2298 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2299 ipa_check_create_edge_args.
2300 * ipa-inline.c (inline_generate_summary): Do not call
2301 ipa_check_create_node_params and ipa_check_create_edge_args.
2302 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2303 ipa_check_create_edge_args.
2305 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2307 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2309 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2310 * function.c (record_hard_reg_sets): Likewise.
2311 * ira.c (compute_regs_asm_clobbered): Likewise.
2312 * sched-deps.c (sched_analyze_1): Likewise.
2313 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2315 2011-04-09 Xinliang David Li <davidxl@google.com>
2317 PR tree-optimization/PR48484
2318 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2319 has_valid_pred lazily
2321 2011-04-09 Duncan Sands <baldrick@free.fr>
2323 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2325 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2327 * combine.c (combine_validate_cost): Adjust comments. Set registered
2328 cost of I0 to zero at the end, if any.
2330 2011-04-08 Xinliang David Li <davidxl@google.com>
2332 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2333 to insane profile data.
2335 2011-04-08 Xinliang David Li <davidxl@google.com>
2337 * ipa-cp.c (ipcp_update_profiling): Correct
2338 negative scale factor due to insane profile data.
2340 2011-04-08 Xinliang David Li <davidxl@google.com>
2342 * final.c (dump_basic_block_info): New function.
2343 (final): Dump basic block.
2344 (final_scan_insn): Remove old dump.
2346 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2349 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2352 2011-04-08 Michael Matz <matz@suse.de>
2355 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2357 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2358 * rtl.h (rebuild_jump_labels_chain): Declare.
2359 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2360 insns inserted on edges.
2362 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2364 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2365 * config/arm/arm-arches.def: New.
2366 * config/arm/arm-opts.h: New.
2367 * config/arm/genopt.sh: New.
2368 * config/arm/arm-tables.opt: New (generated).
2369 * config/arm/arm.c (arm_handle_option, arm_target_help,
2370 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2371 (all_architectures): Get most table contents from arm-arches.def.
2372 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2373 arm_selected_tune here.
2374 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2375 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2376 (march=, mcpu=, mtune=): Use Enum and Var.
2377 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2378 (arm.o): Update dependencies.
2380 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2382 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2384 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2385 (write_typed_alloc_defns): Likewise.
2386 (main): Calls write_typed_alloc_defns with output_header.
2388 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2391 * ira-color.c (setup_profitable_hard_regs): Add comments.
2392 Don't take prohibited hard regs into account.
2393 (setup_conflict_profitable_regs): Rename to
2394 get_conflict_profitable_regs.
2395 (check_hard_reg_p): Check prohibited hard regs.
2397 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2399 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2400 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2401 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2403 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2406 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2407 move from floating point to shift amount register.
2408 (emit_move_sequence): Remove secondary reload support for floating
2409 point to shift amount amount register copies.
2410 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2411 amount register copies.
2412 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2413 register, return false if mode isn't a scalar integer mode.
2414 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2416 2011-04-08 Richard Guenther <rguenther@suse.de>
2418 * gimple.c (gimple_call_flags): Remove kludge.
2420 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2422 * sel-sched.c (sel_region_init): Move call to
2423 sel_setup_region_sched_flags after setup_current_loop_nest.
2425 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2427 PR rtl-optimization/48272
2428 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2429 init_insn_reg_pressure_info. Adjust a caller.
2430 * sched-int.h (init_insn_reg_pressure_info): Declare.
2431 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2432 when sched-pressure is enabled.
2434 2011-04-08 Richard Guenther <rguenther@suse.de>
2436 * gimple.c (gimple_set_modified): Do not queue calls to
2437 MODIFIED_NORETURN_CALLS here ...
2438 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2440 2011-04-08 Richard Guenther <rguenther@suse.de>
2443 * toplev.c (lang_dependent_init): Do not open asm_out_file
2444 in WPA mode, nor perform debug machinery initialization.
2445 (finalize): Do not unlink asm_out_file in WPA mode.
2447 2011-04-08 Richard Guenther <rguenther@suse.de>
2449 * gimple.h (gimple_call_fntype): New function.
2450 (gimple_call_return_type): Use it.
2451 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2452 * gimple-low.c (gimple_check_call_args): Likewise.
2453 * gimple.c (gimple_call_flags): Likewise.
2454 (gimple_call_arg_flags): Likewise.
2455 (gimple_call_return_flags): Likewise.
2456 * tree-cfg.c (verify_gimple_call): Likewise.
2457 (do_warn_unused_result): Likewise.
2458 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2459 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2461 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2463 PR rtl-optimization/48235
2464 * sel-sched.c (code_motion_process_successors): Recompute the last
2465 insn in basic block if control flow changed.
2466 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2467 Update condition for ilist_remove.
2469 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2471 PR rtl-optimization/48302
2472 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2473 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2474 it to record added preheader blocks.
2475 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2476 on to sel_add_loop_preheaders.
2477 (sel_region_init): Move call to setup_current_loop_nest after
2480 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2483 * cfgloop.h (loop_has_exit_edges): New helper.
2484 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2486 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2487 that have no exit edges.
2489 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2491 PR rtl-optimization/48442
2492 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2493 all callers. Adjust assert.
2495 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2497 PR tree-optimization/48377
2498 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2499 is_packed to true even for types with smaller TYPE_ALIGN than
2502 2011-04-08 Richard Guenther <rguenther@suse.de>
2505 * doc/tm.texi: Re-generate.
2507 2011-04-08 Wei Guozhi <carrot@google.com>
2510 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2511 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2512 * config/arm/arm.md (*push_multi): Change the length computation to
2515 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2517 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2518 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2519 * doc/tm.texi: Regenerate.
2520 * system.h (ASM_OUTPUT_BSS): Poison.
2521 * varasm.c (asm_output_bss): Remove function.
2522 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2524 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2525 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2526 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2527 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2529 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2531 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2533 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2535 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2537 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2540 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2542 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2543 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2544 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2546 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2547 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2548 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2549 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2550 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2551 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2552 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2553 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2554 options. Don't map other m68k options manually. Don't handle
2555 old-style options as canonical.
2556 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2557 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2559 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2561 * basic-block.h (force_nonfallthru): Move to...
2562 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2563 (force_nonfallthru): ...here.
2564 * cfghooks.c (force_nonfallthru): New function.
2565 * cfgrtl.c (force_nonfallthru): Rename into...
2566 (rtl_force_nonfallthru): ...this.
2567 (commit_one_edge_insertion): Do not set AUX field.
2568 (commit_edge_insertions): Do not discover new basic blocks.
2569 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2570 (cfg_layout_rtl_cfg_hooks): Likewise.
2571 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2572 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2573 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2575 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2577 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2580 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2582 * config/i386/sse.md: Update copyright year.
2583 (avxcvtvecmode): Remove.
2584 (sse_movhlps): Merge with *avx_movhlps.
2585 (sse_movlhps): Merge with *avx_movlhps.
2586 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2587 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2588 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2589 (sse_loadhps): Merge with *avx_loadhps.
2590 (sse_storelps): Merge with *avx_storelps.
2591 (sse_loadlps): Merge with *avx_loadlps.
2592 (sse_movss): Merge with *avx_movss.
2593 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2594 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2595 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2596 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2597 (vec_set<mode>_0): Ditto.
2598 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2599 (sse4_1_insertps): Merge with *avx_insertps.
2600 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2601 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2602 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2603 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2604 (sse2_storehpd): Merge with *avx_storehpd.
2605 (sse2_loadhpd): Merge with *avx_loadhpd.
2606 (sse2_loadlpd): Merge with *avx_loadlpd.
2607 (sse2_movsd): Merge with *avx_movsd.
2608 (*vec_concatv2df): Merge with *vec_concatv2df.
2610 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2613 * combine.c (combine_instructions): Add last_combined_insn,
2614 update it if insn is after it, pass it to all try_combine calls.
2615 (try_combine): Add last_combined_insn parameter, pass it instead of
2616 i3 to propagate_for_debug.
2618 2011-04-07 Nick Clifton <nickc@redhat.com>
2620 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2621 to handle MDR <-> data register transfers.
2622 (movhi_internal): Likewise.
2624 2011-04-07 Alan Modra <amodra@gmail.com>
2626 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2627 previous stack info.
2629 2011-04-07 Tom de Vries <tom@codesourcery.com>
2632 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2633 flow_find_cross_jump. Swap variables to implement backward replacement.
2634 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2636 2011-04-07 Tom de Vries <tom@codesourcery.com>
2639 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2640 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2642 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2643 src1 or src2. Redirect edges to the last basic block. Update
2644 frequency and count on multiple basic blocks in case of fallthru.
2646 2011-04-07 Tom de Vries <tom@codesourcery.com>
2649 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2651 (old_insns_match_p): Change return type. Replace return false/true
2652 with return dir_none/dir_both. Use can_replace_by.
2653 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2654 direction from dir_p. Register replacement direction in dir, last_dir
2655 and afterlast_dir. Handle new return type of old_insns_match_p using
2656 merge_dir. Return replacement direction in dir_p.
2657 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2658 return type of old_insns_match_p.
2659 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2660 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2661 flow_find_cross_jump.
2662 * basic-block.h (enum replace_direction): New type.
2663 (flow_find_cross_jump): Add parameter to declaration.
2665 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2667 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2668 (AVXMODEDCVTPS2DQ): Ditto.
2669 (VEC_FLOAT_MODE): Ditto.
2670 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2671 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2672 (<any_logic:code><mode>3): Use VF mode iterator.
2673 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2674 Use VF mode iterator.
2675 (copysign<mode>3): Use VF mode iterator.
2676 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2677 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2678 (*<any_logic:code><MODEF:mode>3): Merge with
2679 *avx_<any_logic:code><MODEF:mode>3.
2680 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2681 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2682 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2683 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2684 (sse2_cvtdq2ps): Use %v modifier.
2685 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2686 (avx_cvtps2dq<avxmodesuffix>): Remove.
2687 (sse2_cvtps2dq): Use %v modifier.
2688 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2689 (avx_cvttps2dq<avxmodesuffix>): Remove.
2690 (sse2_cvttps2dq): Use %v modifier.
2691 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2692 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2693 (sse2_cvtsd2siq): Fix insn template.
2694 (sse2_cvtsd2siq_2): Ditto.
2695 (sse2_cvttsd2siq): Ditto.
2696 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2697 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2699 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2701 * gcov-io.c: Use GCC Runtime Library Exception.
2703 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2706 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2707 as base_reg whatever register reg has been eliminated to, instead
2708 of hardcoding STACK_POINTER_REGNUM.
2710 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2712 * doc/tm.texi.in: Document C target hooks as separate from general
2714 * doc/tm.texi: Regenerate.
2715 * genhooks.c (struct hook_desc): Add docname field.
2716 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2718 (hook_array): Include c-target.def.
2719 (emit_documentation): Use docname field in output.
2720 (emit_init_macros): Take docname argument. Only emit definitions
2721 for hooks matching docname.
2722 (main): Expect additional arguments in all cases. Pass argument
2723 to emit_init_macros.
2724 * target.def: Move initial macro definitions and comments to
2725 target-hooks-macros.h.
2726 (gcc_targetcm): Move to c-family/c-target.def.
2727 * target.h (targetcm): Move declaration to c-family/c-target.h.
2728 * targhooks.c (default_handle_c_option): Move to
2730 * targhooks.h (default_handle_c_option): Move declaration to
2731 c-family/c-common.h.
2732 * target-hooks-macros.h: New file.
2733 * config.gcc (target_has_targetcm): Define and use to add to
2734 c_target_objs and cxx_target_objs.
2735 * config/default-c.c: New file.
2736 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2737 of target.h and target-def.h.
2738 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2739 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2740 darwin_check_cfstring_format_arg): Make static.
2741 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2742 TARGET_STRING_OBJECT_REF_TYPE_P,
2743 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2744 * config/darwin-protos.h (darwin_objc_construct_string,
2745 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2747 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2748 TARGET_STRING_OBJECT_REF_TYPE_P,
2749 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2750 * config/t-darwin (darwin-c.o): Update dependencies.
2751 * system.h (TARGET_HAS_TARGETCM): Poison.
2752 * Makefile.in (TARGET_H): Update.
2753 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2754 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2755 (default-c.o): New target.
2756 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2757 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2758 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2760 (build/genhooks.o): Update dependencies.
2762 2011-04-06 Richard Guenther <rguenther@suse.de>
2764 * ipa-inline.c (enum inlining_mode): Remove.
2765 (cgraph_flatten): Use some other token.
2766 (cgraph_edge_early_inlinable_p): New function, split out from ...
2767 (cgraph_perform_always_inlining): New function, split out from ...
2768 (cgraph_decide_inlining_incrementally): ... here.
2769 (cgraph_mark_inline_edge): Adjust.
2770 (cgraph_early_inlining): Re-structure.
2771 (pass_early_inline): Require SSA form.
2773 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2774 Julian Brown <julian@codesourcery.com>
2775 Mark Shinwell <shinwell@codesourcery.com>
2777 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2778 LO_REGS only for Thumb-1.
2779 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2780 be used in short instructions when optimising for size on Thumb-2.
2782 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2784 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2785 associated with user returns to be preserved.
2787 2011-04-06 Tristan Gingold <gingold@adacore.com>
2789 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2790 symbol_queue_size, DBXOUT_DECR_NESTING,
2791 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2792 if XCOFF_DEBUGGING_INFO.
2794 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2796 * config/i386/i386.md (attribute isa): New.
2797 (attribute enabled): New.
2798 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2799 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2800 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2801 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2802 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2803 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2804 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2805 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2807 * config/i386/sse.md (VF): New mode iterator.
2811 (SSEMODEF4): Remove.
2812 (attribute sse): Handle V8SF and V4DF modes.
2813 (<absneg:code><mode>2): Use VF mode iterator.
2814 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2816 (<plusminus_insn><mode>3): Use VF mode iterator.
2817 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2818 Use VF mode iterator.
2819 (<sse>_vm<plusminus_insn><mode>3): Merge with
2820 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2821 (mul<mode>3): Use VF mode iterator.
2822 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2823 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2825 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2826 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2827 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2828 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2830 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2831 Use VF1 mode iterator.
2832 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2833 (sqrt<VF2:mode>2): New expander.
2834 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2835 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2836 and sqrtv2df2. Use VF mode iterator.
2837 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2839 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2840 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2841 Use VF1 mode iterator.
2842 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2843 (<smaxmin:code><mode>3): Use VF mode iterator.
2844 (*<smaxmin:code><mode>3_finite): Merge with
2845 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2846 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2847 (<sse>_vm<smaxmin:code><mode>2): Merge with
2848 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2849 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2851 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2853 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2854 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2855 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2856 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2857 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2859 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2860 Use VF_128 mode iterator.
2861 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2863 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2864 VF_128 mode iterator.
2865 (vcond<mode>): Use VF mode iterator.
2866 * config/i386/predicates.md (sse_comparison_operator): Merge with
2867 avx_comparison_float_operator. Do not declare as special_predicate.
2868 * config/i386/i386.c (struct builtin_description): Update for renamed
2870 (ix86_expand_args_builtin): Ditto.
2871 (ix86_expand_sse_compare_mask): Ditto.
2873 2011-04-06 Richard Guenther <rguenther@suse.de>
2875 * tree-inline.c (estimate_num_insns): For calls simply account
2876 for all passed arguments and a used return value.
2878 2011-04-06 Richard Guenther <rguenther@suse.de>
2880 PR tree-optimization/47663
2881 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2882 call_stmt_time fields.
2883 (cgraph_edge_inlinable_p): Declare.
2884 (cgraph_edge_recursive_p): New inline function.
2885 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2886 (cgraph_clone_edge): Copy it.
2887 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2888 Account for call stmt time.
2889 (cgraph_estimate_time_after_inlining): Take edge argument.
2890 (cgraph_estimate_edge_growth): Account call stmt size.
2891 (cgraph_estimate_size_after_inlining): Take edge argument.
2892 (cgraph_mark_inline_edge): Adjust.
2893 (cgraph_check_inline_limits): Likewise.
2894 (cgraph_recursive_inlining_p): Remove.
2895 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2896 (cgraph_decide_recursive_inlining): Take edge argument and
2898 (cgraph_decide_inlining_of_small_functions): Do not avoid
2899 diags for recursive inlining here.
2900 (cgraph_flatten): Adjust.
2901 (cgraph_decide_inlining_incrementally): Likewise.
2902 (estimate_function_body_sizes): Remove call cost handling.
2903 (compute_inline_parameters): Initialize caller edge call costs.
2904 (cgraph_estimate_edge_growth): New function.
2905 (cgraph_estimate_growth): Use it.
2906 (cgraph_edge_badness): Likewise.
2907 (cgraph_check_inline_limits): Take an edge argument.
2908 (cgraph_decide_inlining_of_small_functions): Adjust.
2909 (cgraph_decide_inlining): Likewise.
2910 * tree-inline.c (estimate_num_insns): Only account for call
2911 return value if it is used.
2912 (expand_call_inline): Avoid diagnostics on recursive inline
2914 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2915 (input_edge): Input edge call costs.
2917 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2919 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2921 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2923 * doc/invoke.texi (Spec Files): Fix typo.
2925 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2927 * profile.c (branch_prob): Move declaration of local variable. Remove
2928 obsolete ??? comment. Expand the location explicitly instead of using
2929 the LOCATION_FILE and LOCATION_LINE macros.
2931 2011-04-06 Wei Guozhi <carrot@google.com>
2934 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2935 (arm_cond_branch): Likewise.
2936 (arm_cond_branch_reversed): Likewise.
2937 (arm_jump): Likewise.
2938 (push_multi): Likewise.
2939 * config/arm/constraints.md (Py): New constraint.
2941 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2944 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2946 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2947 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2948 #ifdef DBX_DEBUGGING_INFO.
2950 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2953 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2954 if old and new states differ.
2956 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2958 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2959 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2960 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2961 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2962 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2964 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2965 ColdFire options to -mcpu= options.
2967 2011-04-05 Jeff Law <law@redhat.com>
2969 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2970 check if BB is a successor of LOOP->header and return
2971 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2973 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2975 * cprop.c (struct reg_use): Remove.
2976 (reg_use_table): Make an array of RTX.
2977 (find_used_regs, constprop_register, local_cprop_pass,
2978 bypass_block): Simplify users of reg_use_table.
2979 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2980 on one of the uses found by find_used_regs.
2982 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2985 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2988 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2990 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2992 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2994 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2997 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2999 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3001 * combine.c: Include obstack.h.
3002 (struct insn_link): Define.
3003 (uid_log_links): Adjust type.
3004 (FOR_EACH_LOG_LINK): New macro.
3005 (insn_link_obstack): Declare.
3006 (alloc_insn_link): Define.
3007 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3008 type of link variables.
3009 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3010 (try_combine, record_promoted_values, distribute_notes): Likewise.
3011 (distribute_links): Likewise. Tweak prototype.
3012 (clear_log_links): Delete.
3013 (adjust_for_new_dest): Call alloc_insn_link.
3014 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3016 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3018 * gcse.c (modify_mem_list): Convert to an array of VECs.
3019 (canon_modify_mem_list, compute_transp): Tweak formatting.
3020 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3021 (load_killed_in_block_p): Likewise.
3022 (record_last_mem_set_info): Likewise.
3023 (clear_modify_mem_tables): Likewise.
3025 2011-04-05 Tom de Vries <tom@codesourcery.com>
3028 * function.c (emit_use_return_register_into_block): Only define if
3031 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3033 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3035 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3037 * config/rx/rx-opts.h: New.
3038 * config/rx/rx.c (rx_cpu_type): Remove.
3039 (rx_handle_option): Don't assert that global structures are in
3040 use. Access variables via opts pointer. Defer most handling of
3041 OPT_mint_register_. Use error_at.
3042 (rx_option_override): Handle deferred OPT_mint_register_ here.
3043 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3044 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3045 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3046 (rx_cpu_types): New Enum and EnumValue entries.
3047 (mint-register=): Use Defer and use Var accordingly.
3049 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3051 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3052 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3053 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3055 (debug_free_queue, debug_nesting, symbol_queue_index):
3057 * dbxout.c: ...to here. Make static.
3059 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3061 * gcse.c (modify_pair): Define. Define a VEC of it.
3062 (canon_modify_mem_list): Convert to an array of VECs.
3063 (free_insn_expr_list_list): Delete.
3064 (clear_modify_mem_tables): Call VEC_free instead.
3065 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3066 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3067 (canon_list_insert, compute_transp): Likewise.
3069 2011-04-05 Tom de Vries <tom@codesourcery.com>
3072 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3075 2011-04-05 Tom de Vries <tom@codesourcery.com>
3078 * function.c (emit_use_return_register_into_block): New function.
3079 (thread_prologue_and_epilogue_insns): Use
3080 emit_use_return_register_into_block.
3082 2011-04-05 Tom de Vries <tom@codesourcery.com>
3085 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3088 2011-04-05 Tom de Vries <tom@codesourcery.com>
3090 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3092 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3094 * config/arm/arm.md (define_constants for unspec): Replace with
3096 (define_constants for unspecv): Replace with define_c_enum.
3097 * config/arm/neon.md (define_constants for unspec): Replace with
3100 2011-04-04 Richard Henderson <rth@redhat.com>
3103 * dwarf2out.c (output_line_info): Always emit line info from
3104 at least one section.
3105 (dwarf2out_init): Create text_section_line_info here ...
3106 (set_cur_line_info_table): ... not here.
3108 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3111 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3114 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3116 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3118 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3119 (expr_equiv_p): Remove.
3120 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3121 (hash_scan_set): Update call to insert_set_in_table.
3122 (dump_hash_table): Dump <dest, src> pair.
3123 (lookup_set): Simplify. Lookup <dest, src> pair.
3124 (compute_transp): Remove, fold heavily simplified code into...
3125 (compute_local_properties): ...here. Expect COMP and TRANSP
3127 (find_avail_set): Take set directly from struct expr.
3128 (find_bypass-set): Likewise.
3129 (bypass_block): Likewise.
3130 (cprop_insn): Likewise. Remove redundant INSN_P test.
3132 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3133 checks on form of COND from find_implicit_sets to here.
3134 (find_implicit_sets): Cleanup control flow. Split critical edges
3135 if it exposes implicit sets. Allocate/resize implicit_sets as
3137 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3138 changed something. Run df_analyze after find_implicit_sets if any
3139 edges were split. Do not allocate implicit_sets here.
3141 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3142 (gcse_obstack): Renamed to cprop_obstack.
3143 (GNEW, GNEWVEC, GNEWVAR): Remove.
3145 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3146 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3147 (gcse_alloc): Likewise, and rename to cprop_alloc.
3148 (alloc_gcse_men, free_gcse_mem): Remove.
3149 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3150 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3151 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3153 * cprop.c (oprs_not_set_p): Remove.
3154 (mark_set, mark_clobber): Remove.
3155 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3156 (reg_not_set_p): New function.
3157 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3158 (cprop_insn): Likewise.
3159 (cprop_jump): Use FOR_EACH_EDGE.
3161 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3164 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3165 (rank_for_schedule): Use scheduled_insns vector instead of
3166 last_scheduled_insn.
3167 (ok_for_early_queue_removal): Likewise.
3168 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3170 (choose_ready): Likewise.
3171 (commit_schedule): Use VEC_iterate.
3172 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3173 a dbg_cnt, use it and ensure the first insn is in the ready list.
3174 (haifa_sched_init): Allocate scheduled_insns.
3175 (sched_extend_ready_list): Don't allocate it; reserve space.
3176 (haifa_sched_finish): Free it.
3178 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3180 * optc-gen.awk: Always remove type from Variable entry before
3181 recording in var_seen.
3183 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3185 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3186 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3187 call to tidy_fallthru_edges.
3189 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3191 * doc/options.texi (ToLower): Document.
3192 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3193 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3194 * opts.h (cl_option): Add cl_tolower field.
3195 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3196 arguments with lowercase strings.
3197 * config/rx/rx.opt (mcpu=): Add ToLower.
3198 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3201 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3203 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3205 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3207 * config/vax/vax.c: Include reload.h.
3209 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3211 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3212 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3213 (sparc_preferred_reload_class): New function.
3215 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3218 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3219 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3221 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3223 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3224 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3226 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3228 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3229 (ASM_OUTPUT_ALIGNED_BSS): Define.
3231 2011-04-03 Michael Matz <matz@suse.de>
3233 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3234 and next_slot members.
3235 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3236 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3237 (lto_streamer_cache_append): Declare.
3238 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3239 unsigned index, remove offset parameter, ensure that we append
3240 or update existing entries.
3241 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3242 parameter, update next_slot for append.
3243 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3245 (lto_streamer_cache_insert_at): Likewise.
3246 (lto_streamer_cache_append): New function.
3247 (lto_streamer_cache_lookup): Use unsigned index.
3248 (lto_streamer_cache_get): Likewise.
3249 (lto_record_common_node): Don't test tree_node_can_be_shared.
3250 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3251 (lto_streamer_cache_delete): Don't free offsets member.
3252 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3253 (lto_output_string_with_length): Use lto_output_data_stream.
3254 (lto_output_tree_header): Remove ix parameter, don't write it.
3255 (lto_output_builtin_tree): Likewise.
3256 (lto_write_tree): Adjust callers to above, don't track and write
3257 offset, write unsigned index.
3258 (output_unreferenced_globals): Don't emit all global vars.
3259 (write_global_references): Use unsigned indices.
3260 (lto_output_decl_state_refs): Likewise.
3261 (write_symbol): Likewise.
3262 * lto-streamer-in.c (lto_input_chain): Move earlier.
3263 (input_function): Use unsigned index.
3264 (input_alias_pairs): Don't read and then ignore all global vars.
3265 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3266 don't pass it back, use lto_streamer_cache_append.
3267 (lto_register_var_decl_in_symtab): Use unsigned index.
3268 (lto_register_function_decl_in_symtab): Likewise.
3269 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3271 (lto_get_builtin_tree): Don't read index, use
3272 lto_streamer_cache_append.
3273 (lto_read_tree): Adjust call to lto_materialize_tree.
3275 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3276 don't use function calls in arguments to MIN.
3278 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3281 * gimple.c (gimple_type_leader_entry): Mark deletable.
3283 2011-04-03 Alan Modra <amodra@gmail.com>
3285 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3287 2011-04-03 Michael Matz <matz@suse.de>
3289 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3291 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3293 2011-04-03 Michael Matz <matz@suse.de>
3295 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3296 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3297 without function context.
3298 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3299 current_function_decl and cfun.
3301 2011-04-03 Michael Matz <matz@suse.de>
3303 * tree.c (decl_init_priority_insert): Don't create entry for
3305 (decl_fini_priority_insert): Ditto.
3306 (fields_compatible_p, find_compatible_field): Remove.
3307 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3308 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3310 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3312 * combine.c (try_combine): Remove useless local variable.
3314 2011-04-03 Richard Guenther <rguenther@suse.de>
3315 Ira Rosen <ira.rosen@linaro.org>
3317 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3318 non-variable offsets and compare the remaining bases of the two
3319 accesses instead of looking for exact same data-ref.
3321 2011-04-02 Kai Tietz <ktietz@redhat.com>
3324 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3326 * i386.c (ix86_is_msabi_thiscall): New helper function.
3327 (ix86_is_type_thiscall): New helper function.
3328 (ix86_comp_type_attributes): Handle thiscall for method-functions
3330 (init_cumulative_args): Likewise.
3331 (find_drap_reg): Likewise.
3332 (ix86_static_chain): Likewise.
3333 (x86_this_parameter): Likewise.
3334 (x86_output_mi_thunk): Likewise.
3336 2011-04-01 Olivier Hainque <hainque@adacore.com>
3337 Nicolas Setton <setton@adacore.com>
3338 Eric Botcazou <ebotcazou@adacore.com>
3340 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3341 (add_gnat_descriptive_type_attribute): New function.
3342 (gen_array_type_die): Call it.
3343 (gen_enumeration_type_die): Likewise.
3344 (gen_struct_or_union_type_die): Likewise.
3345 (modified_type_die): Likewise.
3346 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3347 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3348 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3350 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3353 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3354 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3357 2011-03-17 Richard Guenther <rguenther@suse.de>
3360 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3361 origin for decls in other ltrans units.
3362 (input_varpool_node): Likewise.
3364 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3367 * expr.c (expand_assignment): Handle all possibilities
3368 if TO_RTX is CONCAT.
3369 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3370 (store_split_bit_field): If SUBREG_REG (op0) or
3371 op0 itself has smaller mode than word, return it
3372 for offset 0 and const0_rtx for out-of-bounds stores.
3373 If word is const0_rtx, skip it.
3375 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3377 * config/h8300/h8300.c (print_operand_address): Rename to...
3378 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3379 Call h8300_print_operand and h8300_print_operand_address instead of
3380 print_operand and print_operand_address. Declare.
3381 (print_operand): Renake to...
3382 (h8300_print_operand): ...this. Make static. Adjust comments.
3383 Call h8300_print_operand instead of print_operand. Declare.
3384 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3385 (h8300_register_move_cost): Likewise.
3386 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3387 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3388 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3389 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3390 * config/h8300/h8300-protos.h (print_operand): Delete.
3391 (print_operand_address): Delete.
3393 2011-04-01 Richard Henderson <rth@redhat.com>
3396 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3397 in strict mode before dwarf4. Re-order tests to early out
3398 before switching sections.
3400 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3402 * config/h8300/constraints.md: New file.
3403 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3404 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3405 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3406 * config/h8300/predicates.md (bit_operand): Likewise.
3407 (incdec_operand): Use satisfies_constraint_M and
3408 satisfies_constraint_O. Don't use C code block.
3409 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3410 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3411 (compute_mov_length): Use satisfies_constraint_G.
3412 (fix_bit_operand): Use satisfies_constraint_U.
3413 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3414 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3415 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3416 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3417 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3418 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3419 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3420 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3421 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3422 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3423 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3424 (EXTRA_MEMORY_CONSTRAINT): Delete.
3426 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3427 Michael Meissner <meissner@linux.vnet.ibm.com>
3430 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3431 operands, as per the specifications.
3433 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3434 (vec_extract_evenv4sf): Ditto.
3435 (vec_extract_evenv8hi): Ditto.
3436 (vec_extract_evenv16qi): Ditto.
3437 (vec_extract_oddv4si): Ditto.
3439 2011-03-31 Mark Wielaard <mjw@redhat.com>
3441 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3442 high_pc attribute if the CU has no associated code. Only output
3443 DW_AT_entry_pc for CU if not generating strict dwarf and
3446 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3448 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3449 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3451 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3452 * final.c (final_start_function): Call the new function rather
3453 than using a NULL argument for dwarf2out_frame_debug.
3455 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3456 that contains the prologue.
3458 * haifa-sched.c (queue_insn): New arg REASON. All callers
3459 changed. Print it in debugging output.
3461 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3463 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3464 Split most of the code into...
3465 (begin_move_insn): ... here. New function.
3466 (ebb_sched_info): Add a pointer to it.
3467 * haifa-sched.c (scheduled_insns): New static variable.
3468 (sched_extend_ready_list): Allocate it.
3469 (schedule_block): Use it to record the order of scheduled insns.
3470 Perform RTL changes to move insns only after all scheduling
3471 decisions have been made.
3472 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3473 begin_move_insn field.
3474 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3475 * sched-int.h (struct haifa_sched_info): Remove second argument
3476 from begin_schedule_ready hook. Add new member begin_move_insn.
3477 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3478 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3480 * haifa-sched.c (prune_ready_list): New function, broken out of
3482 (schedule_block): Use it.
3484 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3486 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3488 2011-04-01 Kai Tietz <ktietz@redhat.com>
3490 * config.gcc (*-*-mingw*): Allow as option the
3491 posix threading model.
3492 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3493 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3495 (CPP_SPEC): Add pthread/no-pthread handling.
3496 (LIB_SPEC): Likewise.
3497 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3498 (LIB_SPEC): Likewise.
3499 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3500 flag to pass -pthread option for shared libgcc build.
3501 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3502 for shared libgcc build.
3503 * config/i386/t-mingw-pthread: New file.
3504 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3505 New define to enable use of library pthread by default.
3506 * config/i386/mingw.opt (pthread): New driver option.
3507 (no-pthread): New driver option.
3508 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3509 * config/i386/mingw-w64.opt: Likewise.
3511 2011-04-01 Gary Funck <gary@intrepid.com>
3513 * c-decl.c (grokdeclarator): Fix formatting.
3515 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3517 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3518 instead of n_operands.
3519 (set_storage_via_setmem): Likewise.
3520 * optabs.c (maybe_gen_insn): Likewise.
3521 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3522 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3523 (mips_expand_builtin_direct): Likewise.
3524 * config/spu/spu.c (expand_builtin_args): Likewise.
3526 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3528 * recog.h (insn_data_d): Add n_generator_args.
3529 * genoutput.c (data): Likewise.
3530 (output_insn_data): Print it.
3531 (max_opno, num_dups): Delete.
3532 (scan_operands): Just fill in "d->operand[...]".
3533 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3535 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3537 * gensupport.h (pattern_stats): New structure.
3538 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3539 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3540 (max_operand_1, max_operand_vec): Delete.
3541 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3543 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3545 * emit-rtl.c (emit_pattern_after_setloc): New function.
3546 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3547 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3548 (emit_pattern_after): New function.
3549 (emit_insn_after, emit_jump_insn_after): Call it.
3550 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3551 (emit_pattern_before_setloc): New function.
3552 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3553 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3555 (emit_pattern_before): New function.
3556 (emit_insn_before, emit_jump_insn_before): Call it.
3557 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3559 2011-03-31 Richard Henderson <rth@redhat.com>
3561 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3562 (dw_separate_line_info_entry): Remove.
3563 (enum dw_line_info_opcode): New.
3564 (dw_line_info_entry): Use it.
3565 (dw_line_info_table, dw_line_info_table_p): New.
3566 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3567 (line_info_table, line_info_label_num): Remove.
3568 (line_info_table_in_use): Remove.
3569 (separate_line_info_table): Remove.
3570 (separate_line_info_table_allocated): Remove.
3571 (separate_line_info_table_in_use): Remove.
3572 (LINE_INFO_TABLE_INCREMENT): Remove.
3573 (line_info_label_num): New.
3574 (cur_line_info_table): New.
3575 (text_section_line_info, cold_text_section_line_info): New.
3576 (separate_line_info): New.
3577 (SEPARATE_LINE_CODE_LABEL): Remove.
3578 (print_dwarf_line_table): Remove.
3579 (debug_dwarf): Don't dump it.
3580 (output_one_line_info_table): New.
3581 (output_line_info): Use it.
3582 (new_line_info_table): New.
3583 (set_cur_line_info_table): New.
3584 (dwarf2out_switch_text_section): Use it.
3585 (dwarf2out_begin_function): Likewise.
3586 (push_dw_line_info_entry): New.
3587 (dwarf2out_source_line): Rewrite for new line info tables.
3588 (dwarf2out_init): Remove dead initailizations.
3590 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3592 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3594 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3595 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3596 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3597 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3598 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3599 * opt-functions.awk (flag_init, switch_bit_fields): New.
3600 (switch_flags): Don't handle flags moved to bit-fields. Don't
3601 generate CL_MISSING_OK or CL_SAVE.
3602 * optc-gen.awk: Update to generate bit-field output as well as
3604 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3605 bit-field instead of CL_REJECT_DRIVER flag.
3606 * opts-common.c (generate_canonical_option,
3607 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3608 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3609 instead of CL_REJECT_NEGATIVE flag.
3610 * toplev.c (print_switch_values): Use cl_report bit-field instead
3613 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3615 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3616 a zero minimum index only if it is redundant.
3618 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3620 PR rtl-optimization/48381
3621 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3622 instead of ira_class_hard_reg_index for calculating conflicting
3625 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3627 * cprop.c: Clean up hash table building.
3628 (reg_avail_info): Remove.
3629 (oprs_available_p): Remove.
3630 (record_last_reg_set_info): Remove.
3631 (record_last_set_info): Remove.
3632 (reg_available_p): New function.
3633 (gcse_constant_p): Do not treat unfolded conditions as constants.
3634 (make_set_regs_unavailable): New function.
3635 (hash_scan_set): Simplify with new reg_available_p.
3636 (compute_hash_table_work): Traverse insns stream only once.
3637 Do not compute reg_avail_info. Traverse insns in reverse order.
3638 Record implicit sets after recording explicit sets from the block.
3640 2011-03-31 Michael Matz <matz@suse.de>
3642 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3644 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3646 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3647 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3648 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3649 (h8300_mode_dependent_address_p): New function.
3650 (h8300_get_index): Make static.
3652 2011-03-31 Jeff Law <law@redhat.com>
3654 * reload1.c (elimination_effects): Fix typo in recent change.
3656 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3657 typo potentially leading to null pointer dereference.
3659 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3660 (setup_save_areas): Corresponding changes to avoid useless
3663 * jump.c (reversed_comparison_code_parts): Avoid successive return
3664 statements when REVERSE_CONDITION is defined.
3666 * expr.c (expand_assignment): Avoid useless assignments.
3667 (expand_expr_real_1): Likewise.
3668 (expand_expr_real_2): Avoid useless statements.
3670 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3672 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3674 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3677 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3679 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3682 * doc/tm.texi.in (TARGET_VERSION): Remove.
3683 * doc/tm.texi: Regenerate.
3684 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3685 * collect2.c (main): Don't use TARGET_VERSION.
3686 * mips-tdump.c (main): Don't use TARGET_VERSION.
3687 * mips-tfile.c (main): Don't use TARGET_VERSION.
3688 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3689 * config/rs6000/vxworksae.h: Remove.
3690 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3691 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3692 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3693 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3694 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3695 * config/arm/arm.h (TARGET_VERSION): Remove.
3696 * config/arm/coff.h (TARGET_VERSION): Remove.
3697 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3698 * config/arm/elf.h (TARGET_VERSION): Remove.
3699 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3700 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3701 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3702 * config/arm/pe.h (TARGET_VERSION): Remove.
3703 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3704 * config/arm/semi.h (TARGET_VERSION): Remove.
3705 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3706 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3707 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3708 * config/avr/avr.h (TARGET_VERSION): Remove.
3709 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3710 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3711 * config/frv/frv.h (TARGET_VERSION): Remove.
3712 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3713 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3714 * config/i386/darwin.h (TARGET_VERSION): Remove.
3715 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3716 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3717 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3718 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3719 * config/i386/gnu.h (TARGET_VERSION): Remove.
3720 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3721 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3722 * config/i386/linux.h (TARGET_VERSION): Remove.
3723 * config/i386/linux64.h (TARGET_VERSION): Remove.
3724 * config/i386/lynx.h (TARGET_VERSION): Remove.
3725 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3726 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3727 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3728 * config/i386/netware.h (TARGET_VERSION): Remove.
3729 * config/i386/nto.h (TARGET_VERSION): Remove.
3730 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3731 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3732 * config/ia64/elf.h (TARGET_VERSION): Remove.
3733 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3734 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3735 * config/ia64/linux.h (TARGET_VERSION): Remove.
3736 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3737 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3738 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3739 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3740 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3741 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3742 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3743 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3744 * config/m68k/linux.h (TARGET_VERSION): Remove.
3745 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3746 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3747 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3748 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3749 * config/mep/mep.h (TARGET_VERSION): Remove.
3750 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3751 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3752 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3753 * config/mips/linux.h (TARGET_VERSION): Remove.
3754 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3755 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3756 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3757 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3758 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3759 * config/pa/pa.h (TARGET_VERSION): Remove.
3760 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3761 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3762 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3763 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3764 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3765 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3766 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3767 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3768 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3769 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3770 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3771 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3772 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3773 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3774 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3775 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3776 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3777 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3778 * config/s390/linux.h (TARGET_VERSION): Remove.
3779 * config/s390/s390.h (TARGET_VERSION): Remove.
3780 * config/s390/tpf.h (TARGET_VERSION): Remove.
3781 * config/score/score.h (TARGET_VERSION): Remove.
3782 * config/sh/linux.h (TARGET_VERSION): Remove.
3783 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3784 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3785 * config/sh/sh.h (TARGET_VERSION): Remove.
3786 * config/sh/sh64.h (TARGET_VERSION): Remove.
3787 * config/sh/superh.h (TARGET_VERSION): Remove.
3788 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3789 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3790 * config/sparc/linux.h (TARGET_VERSION): Remove.
3791 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3792 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3793 TARGET_NAME32, TARGET_NAME): Remove.
3794 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3795 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3796 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3797 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3798 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3799 * config/spu/spu.h (TARGET_VERSION): Remove.
3800 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3801 * config/v850/v850.h (TARGET_VERSION): Remove.
3802 * config/vax/linux.h (TARGET_VERSION): Remove.
3803 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3804 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3805 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3807 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3810 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3811 frame-related from frame-unrelated adjustments to the stack pointer.
3813 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3815 * common.opt (fdebug-types-section): Move earlier.
3816 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3818 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3820 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3823 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3825 * tree.h (CASE_CHAIN): Define.
3826 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3827 (gimple_redirect_edge_and_branch): Likewise.
3829 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3832 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3835 2011-03-30 Jeff Law <law@redhat.com>
3837 * PR bootstrap/48371
3838 * reload1.c (reload): Fix botch in last change.
3840 * reload.h (struct reload): Fix typo introduced in last change.
3842 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3844 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3845 Undocumented. Remove help text.
3846 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3849 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3851 * doc/options.texi (NegativeAlias): Document.
3852 (Alias): Mention NegativeAlias.
3853 * opt-functions.awk: Handle NegativeAlias.
3854 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3855 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3856 * opts.h (CL_NEGATIVE_ALIAS): Define.
3857 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3858 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3860 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3862 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3863 mno-spe and mno-isel instead of mspe=no and -misel=no.
3865 2011-03-29 Mark Wielaard <mjw@redhat.com>
3867 * common.opt (fdebug-types-section): New flag.
3868 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3869 * dwarf2out.c (use_debug_types): New define.
3870 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3871 (print_die): Guard output of type unit signatures using
3873 (build_abbrev_table): Replace assert of dwarf_version >= 4
3874 with assert on use_debug_types.
3875 (size_of_die): Likewise.
3876 (unmark_dies): Likewise.
3877 (value_format): Decide AT_ref_external form on use_debug_types.
3878 (output_die): Replace dwarf_version version check guard with
3879 use_debug_types where appropriate.
3880 (modified_type_die): Likewise.
3881 (gen_reference_type_die): Likewise.
3882 (dwarf2out_start_source_file): Likewise.
3883 (dwarf2out_end_source_file): Likewise.
3884 (prune_unused_types_walk_attribs): Likewise.
3885 (dwarf2out_finish): Likewise.
3887 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3889 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3891 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3893 PR rtl-optimization/48332
3894 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3895 mode of input operand N and modeN to its actual mode.
3897 2011-03-30 Jeff Law <law@redhat.com>
3899 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3900 define accessor macro.
3901 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3902 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3903 (reg_equiv_init): Likewise.
3904 (reg_equivs_size): New variable.
3905 (reg_equiv_init_size): Remove.
3906 (allocate_initial_values): Move prototype to here from....
3907 * integrate.h (allocate_initial_values): Remove prototype.
3908 * integrate.c: Include reload.h.
3909 (allocate_initial_values): Corresponding changes.
3910 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3911 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3912 (update_equiv_regs): Corresponding changes.
3913 (ira): Corresponding changes.
3914 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3915 (push_secondary_reload): Corresponding changes.
3916 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3917 (make_memloc, find_reloads_address): Corresponding changes.
3918 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3919 (find_reloads_address_1): Corresponding changes.
3920 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3921 (refers_to_regno_for_reload_p): Corresponding changes.
3922 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3923 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3924 * reload1.c: Include ggc.h.
3925 (grow_reg_equivs): New function.
3926 (replace_pseudos_in, reload): Corresponding changes.
3927 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3928 (eliminate_regs_1, elimination_effects): Corresponding changes.
3929 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3930 (delete_output_reload): Likewise.
3931 * caller-save.c (mark_referenced_regs): Corresponding changes.
3932 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3933 * frv/predicates.md (frv_load_operand): Corresponding changes.
3934 * microblaze/microblaze.c (double_memory_operand): Corresponding
3936 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3937 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3938 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3939 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3940 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3942 * pa/pa.c (emit_move_sequence): Corresponding changes.
3943 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3945 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3948 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3949 structure modes. Don't check neon_vector_mem_operand for
3950 vector or structure modes.
3952 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3953 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3956 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3957 operand 1 and reshuffle the operands to match.
3958 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3960 2011-03-30 Christian Schüler <cschueler@gmx.de>
3963 * config/c.opt (F): Added 'Driver' to -F option.
3966 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3968 * config/darwin.opt: Added '-arch' option.
3970 2011-03-30 Nick Clifton <nickc@redhat.com>
3972 * config/rx/rx.md: Add peepholes and patterns to combine
3973 extending loads and simple arithmetic instructions.
3974 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3975 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3976 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3977 modes to use pre-decrement and post-increment addressing.
3978 (rx_is_restricted_memory_address): Add range checking of REG+INT
3980 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3981 (rx_memory_move_cost): Adjust cost of stores.
3982 (rx_adjust_insn_length): New function.
3984 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3987 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3988 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3989 matching arg00/arg01 types.
3991 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3993 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3994 last_location to UNKNOWN_LOCATION.
3996 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3999 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4002 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4003 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4006 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4008 (sparc_cpu): Likewise.
4009 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4012 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4016 PR rtl-optimization/48345
4017 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4018 hard regs for given mode from profitable regs when doing secondary
4021 2011-03-29 Jeff Law <law@redhat.com>
4024 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4025 do_not_duplicate field.
4026 (lookup_redirection_data): Corresponding changes.
4027 (create_duplicates): Always create a template block.
4028 (redirect_edges): Remove code which reused the original block
4029 when it was going to become unreachable code.
4030 (thread_block): Don't set do_not_duplicate field.
4032 2011-03-29 Joseph Myers <joseph@codesourcery.com>
4034 * lto-opts.c (register_user_option_p, lto_register_user_option):
4035 Make type argument unsigned.
4036 * lto-streamer.h (lto_register_user_option): Make type argument
4038 * opth-gen.awk: Make CL_* macros unsigned.
4039 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4040 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4041 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4042 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4043 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4044 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4045 (find_opt): Make lang_mask argument unsigned.
4047 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4049 PR rtl-optimization/48331
4050 PR rtl-optimization/48334
4051 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4052 for any used algorithm.
4054 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4056 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4059 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4061 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4062 (alpha_option_override): Don't set alpha_sr_alias_set.
4063 (emit_frame_store_1): Use gen_frame_mem rather than calling
4065 (alpha_expand_epilogue): Ditto.
4067 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
4069 PR tree-optimization/48290
4070 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4071 vectorization, check that relevant phis in the basic block after
4072 the inner loop are really inner loop's exit phis.
4074 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4077 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4078 (cached_dw_loc_list_def): New structure.
4079 (cached_dw_loc_list): New typedef.
4080 (cached_dw_loc_list_table): New variable.
4081 (cached_dw_loc_list_table_hash): New function.
4082 (cached_dw_loc_list_table_eq): Likewise.
4083 (add_location_or_const_value_attribute): Take a bool cache_p.
4084 Cache the list when the parameter is true.
4085 (gen_formal_parameter_die): Update caller.
4086 (gen_variable_die): Likewise.
4087 (dwarf2out_finish): Likewise.
4088 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4089 while generating debug info for the decl.
4090 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4091 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4092 (resolve_addr): Cache the result of resolving a chain of
4095 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4097 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4098 conflict object hard regset nodes have intersecting hard reg sets.
4100 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4101 after regstat_init_n_sets_and_refs.
4103 * ira.c: Add more comments at the top.
4104 (setup_stack_reg_pressure_class, setup_pressure_classes):
4105 Add comments how we compute the register pressure classes.
4106 (setup_allocno_and_important_classes): Add more comments.
4107 (setup_class_translate_array, reorder_important_classes)
4108 (setup_reg_class_relations): Add comments.
4110 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4113 * ira-color.c: Add 2011 to the Copyright line.
4114 (assign_hard_reg): Add more comments.
4115 (improve_allocation): Ditto.
4117 * ira-costs.c: Add 2011 to the Copyright line.
4118 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4120 (setup_regno_cost_classes_by_mode): Ditto.
4122 Initial patches from ira-improv branch:
4124 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4126 * ira-build.c (ira_create_object): Remove initialization of
4127 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4128 (ira_create_allocno): Remove initialization of
4129 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4130 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4131 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4132 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4133 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4134 Initialize ALLOCNO_ADD_DATA.
4135 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4136 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4138 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4139 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4141 * ira.c (ira_reallocate): Remove.
4142 (setup_pressure_classes): Call
4143 ira_init_register_move_cost_if_necessary. Use
4144 ira_register_move_cost instead of ira_get_register_move_cost.
4145 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4146 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4148 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4149 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4150 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4151 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4152 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4153 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4155 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4156 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4157 (struct allocno_color_data): New.
4158 (allocno_color_data_t): New typedef.
4159 (allocno_color_data): New definition.
4160 (ALLOCNO_COLOR_DATA): New macro.
4161 (struct object_color_data): New.
4162 (object_color_data_t): New typedef.
4163 (object_color_data): New definition.
4164 (OBJECT_COLOR_DATA): New macro.
4165 (update_copy_costs, calculate_allocno_spill_cost): Call
4166 ira_init_register_move_cost_if_necessary. Use
4167 ira_register_move_cost instead of ira_get_register_move_cost.
4168 (move_spill_restore, update_curr_costs): Ditto.
4169 (allocno_spill_priority): Make it inline.
4170 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4171 (struct coalesce_data, coalesce_data_t): New.
4172 (allocno_coalesce_data): New definition.
4173 (ALLOCNO_COALESCE_DATA): New macro.
4174 (merge_allocnos, coalesced_allocno_conflict_p): Use
4175 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4176 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4177 (coalesce_allocnos): Ditto.
4178 (setup_coalesced_allocno_costs_and_nums): Ditto.
4179 (collect_spilled_coalesced_allocnos): Ditto.
4180 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4181 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4182 (coalesce_spill_slots): Ditto.
4183 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4184 free allocno_coalesce_data.
4186 * ira-conflicts.c: Fix formatting.
4187 (process_regs_for_copy): Call
4188 ira_init_register_move_cost_if_necessary. Use
4189 ira_register_move_cost instead of ira_get_register_move_cost.
4190 (build_object_conflicts): Optimize.
4192 * ira-costs.c (record_reg_classes): Optimize. Call
4193 ira_init_register_move_cost_if_necessary. Use
4194 ira_register_move_cost, ira_may_move_in_cost, and
4195 ira_may_move_out_cost instead of ira_get_register_move_cost and
4196 ira_get_may_move_cost.
4197 (record_address_regs): Ditto.
4198 (scan_one_insn): Optimize.
4199 (find_costs_and_classes): Optimize.
4200 (process_bb_node_for_hard_reg_moves): Call
4201 ira_init_register_move_cost_if_necessary. Use
4202 ira_register_move_cost instead of ira_get_register_move_cost.
4204 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4205 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4206 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4207 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4209 (ira_initiate_emit_data, ira_finish_emit_data)
4210 (create_new_allocno): New functions.
4211 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4212 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4213 Use ira_register_move_cost instead of ira_get_register_move_cost.
4215 * ira-int.h: Fix some comments.
4216 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4217 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4218 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4219 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4221 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4222 bitfield after mode. Make hard_regno a short int. Make
4223 hard_regno short. Remove first_coalesced_allocno and
4224 next_coalesced_allocno. Move mem_optimized_dest_p,
4225 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4226 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4227 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4228 temp, colorable_p. Add new member add_data.
4229 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4230 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4231 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4232 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4233 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4234 (ALLOCNO_ADD_DATA): New macro.
4235 (ira_emit_data_t): New typedef.
4236 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4237 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4238 from struct ira_allocno.
4239 (ALLOCNO_EMIT_DATA): New macro.
4240 (ira_allocno_emit_data, allocno_emit_reg): New.
4241 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4242 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4243 (OBJECT_ADD_DATA): New macro.
4244 (ira_reallocate): Remove.
4245 (ira_initiate_emit_data, ira_finish_emit_data): New.
4246 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4247 (ira_init_register_move_cost_if_necessary): New.
4248 (ira_object_conflict_iter_next): Merge into
4249 ira_object_conflict_iter_cond.
4250 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4252 * ira-live.c (process_single_reg_class_operands): Call
4253 ira_init_register_move_cost_if_necessary. Use
4254 ira_register_move_cost instead of ira_get_register_move_cost.
4256 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4258 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4260 * ira-costs.c: Fix formatting.
4261 (cost_classes, cost_classes_num): Remove.
4262 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4263 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4264 (cost_classes_del, cost_classes_htab): New.
4265 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4266 (initiate_regno_cost_classes, setup_cost_classes): New.
4267 (setup_regno_cost_classes_by_aclass): New.
4268 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4269 (record_reg_classes): Use regno_cost_classes instead of
4270 cost_classes. Move checking opposite operand up.
4271 (record_address_regs): Use regno_cost_classes
4272 instead of cost_classes.
4273 (scan_one_insn): Ditto. Use always general register.
4274 (print_allocno_costs): Use regno_cost_classes instead of
4276 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4277 (find_costs_and_classes): Set up cost classes for each registers.
4278 Use also their mode for this. Use regno_cost_classes instead of
4280 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4282 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4283 (ira_costs, ira_set_pseudo_classes): Call
4284 initiate_regno_cost_classes and finish_regno_cost_classes.
4286 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4288 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4290 * target.def (ira_cover_classes): Remove.
4292 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4294 * doc/tm.texi.in: Ditto.
4296 * ira-conflicts.c: Remove mentioning cover classes from the file.
4297 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4298 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4300 * targhooks.c (default_ira_cover_classes): Remove.
4302 * targhooks.h (default_ira_cover_classes): Ditto.
4304 * haifa-sched.c: Remove mentioning cover classes from the file.
4305 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4306 ira_pressure_classes and ira_pressure_classes_num instead of
4307 ira_reg_class_cover_size and ira_reg_class_cover. Use
4308 sched_regno_pressure_class instead of sched_regno_cover_class.
4309 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4310 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4312 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4313 classes from the file.
4314 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4315 (struct object_hard_regs, struct object_hard_regs_node): New.
4316 (struct ira_object): New members profitable_hard_regs,
4317 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4318 (struct ira_allocno): Rename cover_class to aclass. Rename
4319 cover_class_cost and updated_cover_class_cost to class_cost and
4320 updated_class_cost. Remove splay_removed_p and
4321 left_conflict_size. Add new members colorable_p.
4322 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4323 (ALLOCNO_COLORABLE_P): New macro.
4324 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4325 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4326 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4327 (OBJECT_...): Rename parameter C to O.
4328 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4329 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4330 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4331 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4332 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4333 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4334 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4335 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4336 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4337 x_ira_reg_class_subunion.
4338 (ira_max_memory_move_cost, ira_max_register_move_cost)
4339 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4340 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4341 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4342 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4343 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4344 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4345 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4346 (ira_tune_allocno_costs_and_cover_classes): Rename to
4347 ira_tune_allocno_costs.
4348 (ira_debug_hard_regs_forest): New.
4349 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4350 (ira_object_conflict_iter_next): Fix comments.
4351 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4352 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4353 cover_class to aclass.
4354 (ira_allocate_and_accumulate_costs): Ditto.
4355 (ira_allocate_and_set_or_copy_costs): Ditto.
4357 * opts.c (decode_options): Remove ira_cover_class check.
4359 * ira-color.c: Remove mentioning cover classes from the file. Use
4360 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4361 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4362 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4363 (splay-tree.h): Remove include.
4364 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4365 before copy_freq_compare_func.
4366 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4367 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4369 (hard_regs_roots, hard_regs_node_vec): Ditto.
4370 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4371 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4372 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4373 (create_new_object_hard_regs_node): Ditto.
4374 (add_new_object_hard_regs_node_to_forest): Ditto.
4375 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4376 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4378 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4379 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4380 (remove_unused_object_hard_regs_nodes): Ditto.
4381 (enumerate_object_hard_regs_nodes): Ditto.
4382 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4383 (object_hard_regs_subnode_t): Ditto.
4384 (struct object_hard_regs_subnode): Ditto.
4385 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4386 (setup_object_hard_regs_subnode_index): Ditto.
4387 (get_object_hard_regs_subnodes_num): Ditto.
4388 (form_object_hard_regs_nodes_forest): Ditto.
4389 (finish_object_hard_regs_nodes_tree): Ditto.
4390 (finish_object_hard_regs_nodes_forest): Ditto.
4391 (allocnos_have_intersected_live_ranges_p): Rename to
4392 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4393 (pseudos_have_intersected_live_ranges_p): Rename to
4394 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4395 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4396 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4397 (update_copy_costs): Remove assert. Skip cost update if the hard
4398 reg does not belong the class.
4399 (assign_hard_reg): Process only profitable hard regs.
4400 (uncolorable_allocnos_num): Make it scalar.
4401 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4402 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4403 and ira_reg_class_max_nregs.
4404 (bucket_allocno_compare_func): Check frequency first.
4405 (sort_bucket): Add compare function as a parameter.
4406 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4407 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4408 (push_allocno_to_stack): Rewrite for checking new allocno
4410 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4411 (push_only_colorable): Pass new parameter to sort_bucket.
4412 (push_allocno_to_spill): Remove.
4413 (allocno_spill_priority_compare): Make it inline and rewrite.
4414 (splay_tree_allocate, splay_tree_free): Remove.
4415 (allocno_spill_sort_compare): New function.
4416 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4417 build and use splay tree. Choose first allocno in uncolorable
4418 allocno bucket to spill. Remove setting spill cost.
4419 (all_conflicting_hard_regs): Remove.
4420 (setup_allocno_available_regs_num): Check only profitable hard
4421 regs. Print info about hard regs nodes.
4422 (setup_allocno_left_conflicts_size): Remove.
4423 (put_allocno_into_bucket): Don't call
4424 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4425 (improve_allocation): New.
4426 (color_allocnos): Call setup_profitable_hard_regs,
4427 form_object_hard_regs_nodes_forest, improve_allocation,
4428 finish_object_hard_regs_nodes_forest. Setup spill cost.
4429 (print_loop_title): Use pressure classes.
4430 (color_allocnso): Ditto.
4431 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4432 and allocnos_for_spilling.
4433 (ira_sort_regnos_for_alter_reg): Don't setup members
4434 {first,next}_coalesced_allocno.
4435 (color): Remove allocating and freeing removed_splay_allocno_vec.
4436 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4437 prohibited_class_mode_regs.
4439 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4441 (update_allocno_pressure_excess_length): Use pressure classes.
4442 (inc_register_pressure, dec_register_pressure): Check for pressure
4444 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4445 pressure class. Use ira_reg_class_nregs instead of
4446 ira_reg_class_max_nregs.
4447 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4448 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4449 (single_reg_class): Use ira_reg_class_nregs instead of
4450 ira_reg_class_max_nregs.
4451 (process_bb_node_lives): Use pressure classes.
4453 * ira-emit.c: Remove mentioning cover classes from the file. Use
4454 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4455 (change_loop): Use pressure classes.
4456 (modify_move_list): Call ira_set_allocno_class instead of
4457 ira_set_allocno_cover_class.
4459 * ira-build.c: Remove mentioning cover classes from the file. Use
4460 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4461 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4462 ALLOCNO_UPDATED_CLASS_COST instead of
4463 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4464 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4465 (ira_create_allocno): Remove initialization of
4466 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4467 ALLOCNO_COLORABLE_P.
4468 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4469 Update conflict regs for the objects.
4470 (create_cap_allocno): Remove assert. Don't propagate
4471 ALLOCNO_AVAILABLE_REGS_NUM.
4472 (ira_free_allocno_costs): New function.
4473 (finish_allocno): Change a part of code into call of
4474 ira_free_allocno_costs.
4475 (low_pressure_loop_node_p): Use pressure classes.
4476 (object_range_compare_func): Don't compare classes.
4477 (setup_min_max_conflict_allocno_ids): Ditto.
4479 * loop-invariant.c: Remove mentioning cover classes from the file.
4480 Use ira_pressure_classes and ira_pressure_classes_num instead of
4481 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4482 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4483 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4484 Use reg_allocno_class instead of reg_cover_class.
4485 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4486 STACK_REG_COVER_CLASS.
4487 (get_regno_cover_class): Rename to get_regno_pressure_class.
4488 (move_loop_invariants): Initialize and finalize regstat.
4490 * ira.c: Remove mentioning cover classes from the file. Add
4491 comments about coloring without cover classes. Use ALLOCNO_CLASS
4492 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4493 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4494 setup_class_subset_and_memory_move_costs.
4495 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4496 (setup_cover_and_important_classes): Rename to
4497 setup_allocno_and_important_classes.
4498 (setup_class_translate_array): New.
4499 (setup_class_translate): Call it for allocno and pressure classes.
4500 (cover_class_order): Rename to allocno_class_order.
4501 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4502 of ira_class_translate.
4503 (reorder_important_classes): Set up ira_important_class_nums.
4504 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4505 (print_class_cover): Rename to print_classes. Add parameter.
4506 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4507 Print pressure classes too.
4508 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4509 setup_reg_subclasses.
4510 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4511 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4512 (setup_prohibited_class_mode_regs): Use
4513 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4514 (clarify_prohibited_class_mode_regs): New function.
4515 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4516 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4517 (ira_init_once): Initialize them.
4518 (free_register_move_costs): Process them.
4519 (ira_init): Move calls of find_reg_classes and
4520 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4521 Call clarify_prohibited_class_mode_regs.
4522 (ira_no_alloc_reg): Remove.
4523 (too_high_register_pressure_p): Use pressure classes.
4525 * sched-deps.c: Remove mentioning cover classes from the file.
4526 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4527 ira_pressure_classes and ira_pressure_classes_num instead of
4528 ira_reg_class_cover_size and ira_reg_class_cover.
4529 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4530 sched_regno_pressure_class instead of sched_regno_cover_class.
4531 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4532 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4534 * ira.h: Add 2010 to Copyright.
4535 (ira_no_alloc_reg): Remove external.
4536 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4537 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4538 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4539 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4540 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4541 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4542 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4543 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4544 x_ira_no_alloc_regs.
4545 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4546 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4547 ira_allocno_classes_num and ira_allocno_classes.
4548 (ira_class_translate): Rename to ira_allocno_class_translate.
4549 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4550 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4551 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4552 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4553 (ira_no_alloc_regs): New.
4555 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4556 classes from the file. Use ALLOCNO_CLASS instead of
4557 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4558 ALLOCNO_COVER_CLASS_COST.
4559 (regno_cover_class): Rename to regno_aclass.
4560 (record_reg_classes): Use ira_reg_class_subunion instead of
4561 ira_reg_class_union.
4562 (record_address_regs): Check overflow.
4563 (scan_one_insn): Ditto.
4564 (print_allocno_costs): Print total mem cost fore regional allocation.
4565 (print_pseudo_costs): Use REG_N_REFS.
4566 (find_costs_and_classes): Use classes intersected with them on the
4567 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4568 ira_reg_class_union. Use ira_allocno_class_translate and
4569 regno_aclass instead of ira_class_translate and regno_cover_class.
4570 Modify code for finding regno_aclass. Setup preferred classes for
4572 (setup_allocno_cover_class_and_costs): Rename to
4573 setup_allocno_class_and_costs. Use regno_aclass instead of
4574 regno_cover_class. Use ira_set_allocno_class instead of
4575 ira_set_allocno_cover_class.
4576 (init_costs, finish_costs): Use regno_aclass instead of
4578 (ira_costs): Use setup_allocno_class_and_costs instead of
4579 setup_allocno_cover_class_and_costs.
4580 (ira_tune_allocno_costs_and_cover_classes): Rename to
4581 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4582 by processing objects. Use ira_reg_class_max_nregs instead of
4583 ira_reg_class_nregs.
4585 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4587 * sched-int.h: Remove mentioning cover classes from the file.
4588 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4590 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4591 classes from the file.
4592 (struct reg_pref): Rename coverclass into allocnoclass.
4593 (reg_cover_class): Rename to reg_allocno_class.
4595 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4597 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4599 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4601 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4603 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4605 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4607 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4609 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4611 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4613 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4615 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4616 (i386_ira_cover_classes): Ditto.
4618 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4620 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4622 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4624 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4626 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4628 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4630 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4631 (mips_ira_cover_classes): Ditto.
4633 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4635 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4637 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4639 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4641 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4643 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4644 (IRA_COVER_CLASSES_VSX): Ditto.
4646 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4647 (rs6000_ira_cover_classes): Ditto.
4649 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4651 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4653 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4655 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4657 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4659 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4661 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4663 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4665 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4667 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4669 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4672 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4673 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4674 dw_fde_unlikely_section_end_label, cold_in_std_section,
4675 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4676 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4678 (output_fde): Use dw_fde_second_{begin,end} if second is
4679 true, otherwise dw_fde_{begin,end}.
4680 (output_call_frame_info): Test dw_fde_second_begin != NULL
4681 instead of dw_fde_switched_sections.
4682 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4683 fields, initialize new fields. Initialize in_std_section
4684 unconditionally from the first partition.
4685 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4686 dw_fde_second_begin is non-NULL.
4687 (dwarf2out_switch_text_section): Stop initializing removed
4688 dw_fde_struct fields, initialize new fields, initialize
4689 also dw_fde_end here. Set dw_fde_switch_cfi even when
4690 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4691 (struct var_loc_list_def): Add last_before_switch field.
4692 (arange_table, arange_table_allocated, arange_table_in_use,
4693 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4694 (size_of_aranges): Count !in_std_section and !second_in_std_section
4695 hunks in fdes, instead of looking at arange_table_in_use.
4696 (output_aranges): Add aranges_length argument, don't call
4697 size_of_aranges here. Instead of using aranges_table*
4698 emit ranges for fdes when !in_std_section resp.
4699 !second_in_std_section.
4700 (dw_loc_list): Break ranges crossing section switch.
4701 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4702 use dw_fde_second_end instead of dw_fde_end as end of last range.
4703 (gen_subprogram_die): Don't call add_arange. Use
4704 dw_fde_{begin,end} for first partition and if switched
4705 section dw_fde_second_{begin,end} for the second.
4706 (var_location_switch_text_section_1,
4707 var_location_switch_text_section): New functions.
4708 (dwarf2out_begin_function): Initialize cold_text_section even
4709 when function_section () isn't text_section.
4710 (prune_unused_types): Don't walk arange_table.
4711 (dwarf2out_finish): Don't needlessly test
4712 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4713 If info_section_emitted, call size_of_aranges and if it indicates
4714 non-empty .debug_aranges, call output_aranges with the computed
4715 size. Stop using removed dw_fde_struct fields, use
4716 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4720 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4721 create ENTRY_VALUE if incoming or address of incoming's MEM
4723 * dwarf2out.c (mem_loc_descriptor): Don't emit
4724 DW_OP_GNU_entry_value of DW_OP_fbreg.
4725 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4726 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4727 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4728 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4730 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4731 is a REG_P or MEM_P with REG_P address, compute hash directly
4732 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4733 (preserve_only_constants): Don't clear VALUES forwaring
4734 ENTRY_VALUE to some other VALUE.
4736 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4738 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4741 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4743 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4744 block before expanding the statement.
4745 (expand_gimple_stmt_1): Likewise. Set them here...
4746 (expand_gimple_stmt): ...and not here. Tidy.
4747 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4750 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4752 * Makefile.in: New rule for cprop.o.
4753 * gcse.c: Move constant/copy propagation to cprop.c.
4754 (compute_local_properties): Only handle expression tables.
4755 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4756 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4757 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4758 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4759 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4760 compute_cprop_data, find_used_regs, try_replace_reg,
4761 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4762 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4763 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4764 find_bypass_set, reg_killed_on_edge, bypass_block,
4765 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4766 execute_rtl_cprop, pass_rtl_cprop): Move to...
4767 * cprop.c: ...here. New file, constant/copy propagation for RTL
4768 moved from gcse.c to here with minor cleanups in duplicated code.
4770 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4772 * config/i386/i386.c (flag_opts): Fix a typo in
4773 -mavx256-split-unaligned-store.
4775 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4777 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4778 LIBCALL_VALUE): Remove macros.
4779 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4780 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4781 (h8300_function_value, h8300_libcall_value,
4782 h8300_function_value_regno_p): New functions.
4784 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4786 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4788 2011-03-28 Jeff Law <law@redhat.com>
4790 * tree-ssa-threadupdate.c (redirect_edges): Call
4791 create_edge_and_update_destination_phis as needed.
4792 (create_edge_and_update_destination_phis): Accept new BB argument.
4793 All callers updated.
4794 (thread_block): Do not update the profile when threading around
4795 intermediate blocks.
4796 (thread_single_edge): Likewise.
4797 (determine_bb_domination_status): If BB is not a successor of the
4798 loop header, return NONDOMINATING.
4799 (register_jump_thread): Note when we register a jump thread around
4800 an intermediate block.
4801 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4802 (thread_across_edge): Use it.
4804 2011-03-28 Tristan Gingold <gingold@adacore.com>
4806 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4807 when for_return is 2.
4809 2011-03-28 Jeff Law <law@redhat.com>
4811 * var-tracking.c (canonicalize_values_mark): Delete unused
4813 (canonicalize_values_star, set_variable_part): Likewise.
4814 (clobber_variable_part, delete_variable_part): Likewise.
4816 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4818 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4820 2011-03-28 Martin Jambor <mjambor@suse.cz>
4822 * tree-inline.c (expand_call_inline): Do not check that destination
4824 (optimize_inline_calls): Assert that destination node is analyzed.
4825 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4826 not call tree_lowering_passes.
4827 * cgraph.h (cgraph_analyze_function): Declare.
4828 * cgraphunit.c (cgraph_analyze_function): Make public.
4830 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4832 * config/sparc/sparc-opts.h: New.
4833 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4834 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4835 (sparc_option_override): Store processor_type enumeration rather
4836 than string in cpu_default. Remove name and enumeration from
4837 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4838 without using sparc_select. Use target_flags_explicit instead of
4840 * config/sparc/sparc.h (enum processor_type): Move to
4842 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4843 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4844 HeaderInclude entry.
4845 (mcpu=, mtune=): Use Var and Enum.
4846 (sparc_processor_type): New Enum and EnumValue entries.
4848 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4849 Iain Sandoe <iains@gcc.gnu.org>
4852 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4854 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4856 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4857 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4858 Insert new statements at it in lieu of STMT.
4859 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4860 * tree-vect-stmts.c (vectorizable_store): Likewise.
4861 (vectorizable_load): Likewise.
4863 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4865 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4870 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4872 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4873 unaligned 256bit load/store.
4874 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4875 (*avx_movdqu<avxmodesuffix>): Likewise.
4877 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4880 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4881 * config/pa/pa.md (iordi3): Use new predicate in expander.
4884 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4886 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4887 FUNCTION_VALUE_REGNO_P): Remove macros.
4888 * config/mips/mips-protos.h (mips_function_value): Remove.
4889 * config/mips/mips.c (mips_function_value): Rename to...
4890 (mips_function_value_1): ... this. Make static. Handle receiving
4891 the function type in 'fn_decl_or_type' argument.
4892 (mips_function_value, mips_libcall_value,
4893 mips_function_value_regno_p): New function.
4894 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4895 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4897 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4899 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4900 and -mavx256-split-unaligned-store.
4901 (ix86_option_override_internal): Split 32-byte AVX unaligned
4902 load/store by default.
4903 (ix86_avx256_split_vector_move_misalign): New.
4904 (ix86_expand_vector_move_misalign): Use it.
4906 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4907 -mavx256-split-unaligned-store.
4909 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4910 256bit load/store. Generate unaligned store on misaligned memory
4912 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4914 (*avx_movdqu<avxmodesuffix>): Likewise.
4916 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4917 -mavx256-split-unaligned-store.
4919 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4922 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4925 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4927 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4928 opno arguments with an expand_operand. Use create_input_operand.
4929 (mips_prepare_builtin_target): Delete.
4930 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4932 (mips_expand_builtin_direct): Use create_output_operand and
4933 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4934 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4935 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4937 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4939 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4941 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4943 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4945 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4946 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4947 basic blocks and call commit_edge_insertions directly.
4948 (fixup_abnormal_edges): Move from here to...
4949 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4950 on the edges and return whether some have actually been inserted.
4951 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4954 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4956 PR rtl-optimization/48144
4957 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4958 (merge_expr_data): ... here.
4959 (av_set_intersect): Rename to av_set_code_motion_filter.
4960 Update all callers. Call merge_history_vect when an expression
4961 is found in both sets.
4962 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4964 2011-03-26 Alan Modra <amodra@gmail.com>
4966 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4967 cmodel medium addresses.
4968 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4969 64-bit gpr loads and stores.
4970 (rs6000_secondary_reload_ppc64): New function.
4971 * config/rs6000/rs6000-protos.h: Declare it.
4972 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4974 2011-03-26 Alan Modra <amodra@gmail.com>
4977 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4978 GNU Go in traceback table.
4980 2011-03-25 Richard Henderson <rth@redhat.com>
4982 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4983 if there are exactly 6 operands.
4984 (set_storage_via_setmem): Similarly.
4986 2011-03-25 Kai Tietz <ktietz@redhat.com>
4988 * collect2.c (write_c_file_stat): Handle backslash
4989 as right-hand directory separator.
4990 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4991 checking just for slash.
4992 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4993 instead of checking for trailing slash.
4994 * gcc.c (record_temp_file): Use filename_cmp instead
4996 (do_spec_1): Likewise.
4997 (replace_outfile_spec_function): Likewise.
4998 (is_directory): Use filename_ncmp instead of strncmp.
4999 (print_multilib_info): Likewise.
5000 * gcov.c (find_source): Use filename_cmp instead
5002 (make_gcov_file_name): Fix order of slash/backslash
5004 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5005 (add_standard_paths): Likewise.
5006 * mips-tfile.c (saber_stop): Handle backslash.
5007 * prefix.c (update_path): Use filename_ncmp instead of
5009 * profile.c (output_location): Use filename_cmp instead
5011 * read-md.c (handle_toplevel_file): Handle backslash.
5012 * tlink.c (frob_extension): Likewise.
5013 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5015 * tree-dump.c (dequeue_and_dump): Handle backslash.
5016 * tree.c (get_file_function_name): Likewise.
5017 * gengtype.c (read_input_list): Likewise.
5018 (get_file_realbasename): Likewise.
5019 (get_output_file_with_visibility): Use filename_cmp
5022 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5024 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5027 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5029 * fold-const.c (expr_location_or): New function.
5030 (fold_truth_not_expr): Call it.
5032 2011-03-25 Jeff Law <law@redhat.com>
5034 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5036 * c-family/c-common.c (def_fn_type): Likewise.
5037 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5038 * emit-rtl.c (gen_rtvec): Likewise.
5039 * lto/lto-lang.c (def_fn_type): Likewise.
5041 2011-03-25 Richard Guenther <rguenther@suse.de>
5043 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5044 also generate copies.
5045 (fini_copy_prop): Handle constant values properly.
5047 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5049 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5050 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5051 (hash_loc_operands, compare_loc_operands): Handle
5052 DW_OP_GNU_entry_value.
5054 2011-03-25 Kai Tietz <ktietz@redhat.com>
5056 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5057 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5058 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5059 comment and use macro TARGET_64BIT_MS_ABI instead.
5060 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5061 and change default behavior for 32-bit MS_ABI.
5062 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5063 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5065 (ix86_cfun_abi): Likewise.
5066 (ix86_maybe_switch_abi): Adjust comment.
5067 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5068 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5069 instead of checking for SYSV_ABI.
5070 (ix86_nsaved_sseregs): Likewise.
5071 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5073 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5074 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5075 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5076 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5077 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5079 2011-03-25 Richard Guenther <rguenther@suse.de>
5081 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5082 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5083 (verify_gimple): Remove.
5084 * tree-cfg.c (verify_gimple_call): Merge verification
5086 (verify_gimple_phi): Merge verification from verify_stmts.
5087 (verify_gimple_label): New function.
5088 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5089 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5090 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5091 (verify_stmts): Rename to verify_gimple_in_cfg.
5092 (verify_gimple_in_cfg): New function.
5093 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5094 * tree-ssa.c (verify_ssa): Likewise.
5095 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5097 2011-03-25 Richard Guenther <rguenther@suse.de>
5099 * passes.c (init_optimization_passes): Add FRE pass after
5102 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5103 Andrew Stubbs <ams@codesourcery.com>
5105 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5107 (arm_movdi_vfp_cortexa8): New pattern.
5108 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5109 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5110 instructions when tuning for Cortex-A8. Set attribute "arch".
5111 * config/arm/arm.md: Move include arm-tune.md up a bit.
5112 (define_attr "arch"): Add "onlya8" and "nota8" values.
5113 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5115 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5119 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5121 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5122 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5123 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5124 * passes.c (init_optimization_passes): Move
5125 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5127 2011-03-25 Kai Tietz <ktietz@redhat.com>
5129 * c-typeck.c (comptypes_internal): Replace target
5130 hook call of comp_type_attributes by version in tree.c file.
5131 * gimple.c (gimple_types_compatible_p_1): Likewise.
5132 * tree-ssa.c (useless_type_conversion_p): Likewise.
5133 * tree.c (build_type_attribute_qual_variant): Likewise.
5134 (attribute_value_equal): New static helper function.
5135 (comp_type_attributes): New function.
5136 (merge_attributes): Use attribute_value_equal for comparison.
5137 (attribute_list_contained): Likewise.
5138 * tree.h (comp_type_attributes): New prototype.
5140 2011-03-25 Richard Guenther <rguenther@suse.de>
5142 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5143 of complex types at -O0.
5144 (verify_gimple_assign_binary): Likewise.
5145 (verify_gimple_assign_ternary): Likewise.
5147 2011-03-24 Mark Wielaard <mjw@redhat.com>
5149 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5150 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5152 2011-03-24 Mark Wielaard <mjw@redhat.com>
5155 * dwarf2out.c (output_abbrev_section): Only write table when
5156 abbrev_die_table_in_use > 1.
5158 2011-02-24 Richard Henderson <rth@redhat.com>
5160 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5161 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5162 (alpha_expand_unaligned_load_words): Use extql.
5163 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5164 (emit_insxl): Handle all modes for consistency.
5166 2011-02-24 Richard Henderson <rth@redhat.com>
5168 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5169 (alpha_expand_unaligned_load): Likewise.
5170 (alpha_expand_unaligned_store): Likewise.
5171 (alpha_expand_unaligned_load_words): Likewise.
5172 (alpha_expand_unaligned_store_words): Likewise.
5173 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5174 (alpha_split_lock_test_and_set_12): Likewise.
5175 (print_operand, alpha_fold_builtin_extxx): Likewise.
5176 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5177 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5178 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5179 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5180 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5181 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5182 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5183 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5184 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5185 (extwl, extll, extql): Similarly.
5186 (inswh, inslh, insqh): Similarly.
5187 (mskbl, mskwl, mskll, mskql): Similarly.
5188 (mskwh, msklh, mskqh): Similarly.
5190 2011-02-24 Richard Henderson <rth@redhat.com>
5192 * config/alpha/alpha.md (attribute isa): Add er, ner.
5193 (attribute enabled): Handle them.
5194 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5196 2011-02-24 Richard Henderson <rth@redhat.com>
5198 * config/alpha/alpha.md (attribute isa): Add vms.
5199 (attribute enabled): Handle it.
5200 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5201 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5202 (*movtf): Rename from *movtf_internal for consistency.
5203 (*movsi): Merge with *movsi_nt_vms.
5204 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5205 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5206 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5207 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5209 2011-02-24 Richard Henderson <rth@redhat.com>
5211 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5212 (extendqisi2, extendhisi2): Likewise.
5213 (extendqidi2): Simplify BWX/non-BWX expansions.
5214 (extendhidi2): Similarly.
5216 2011-02-24 Richard Henderson <rth@redhat.com>
5218 * config/alpha/alpha.md (attribute isa): New.
5219 (attribute enabled): New.
5220 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5221 (zero_extendqisi2, zero_extendqidi2): Similarly.
5222 (zero_extendhisi2, zero_extendhidi2): Similarly.
5223 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5225 2011-02-24 Richard Henderson <rth@redhat.com>
5227 * config/alpha/predicates.md (input_operand): Revert last change;
5228 update comment to mention 32-bit VMS rather than Windows.
5230 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5232 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5233 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5234 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5235 * passes.c (init_optimization_passes): Move
5236 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5238 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5240 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5242 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5244 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5247 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5250 * simplify-rtx.c (simplify_const_unary_operation): Call
5251 real_convert when changing mode class with FLOAT_EXTEND.
5253 2011-03-24 Nick Clifton <nickc@redhat.com>
5255 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5256 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5257 * config/rx/rx.c (rx_option_override): Set align_jumps,
5258 align_loops and align_labels if not set by the user.
5259 (rx_align_for_label): New function.
5260 (rx_max_skip_for_label): New function.
5261 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5262 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5263 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5264 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5265 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5267 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5269 PR rtl-optimization/48263
5270 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5271 and original commutative_p handling. Use maybe_gen_insn.
5273 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5275 * reload.c (find_reloads_subreg_address): Add address_reloaded
5276 parameter and return true there if the full address has been
5278 (find_reloads_toplev): Pass address_reloaded flag.
5279 (find_reloads_address_1): Don't use address_reloaded parameter.
5281 2011-03-24 Jeff Law <law@redhat.com>
5283 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5284 unused variable "ann".
5285 (remove_unused_locals): Likewise.
5287 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5290 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5293 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5295 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5296 for invalid symbolic addresses.
5297 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5300 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5302 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5303 the argument in calls to fold_truth_not_expr.
5305 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5307 * tree.c (record_node_allocation_statistics): New function.
5308 (make_node_stat, copy_node_stat, build_string): Call it.
5309 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5310 (build1_stat, build_omp_clause): Likewise.
5312 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5314 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5317 2011-03-24 Richard Guenther <rguenther@suse.de>
5319 PR tree-optimization/48271
5320 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5321 blocks that still exist.
5323 2011-03-24 Richard Guenther <rguenther@suse.de>
5325 PR tree-optimization/48270
5326 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5327 not free datarefs before ddrs.
5329 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5331 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5332 from the address built for a reference with variable offset.
5334 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5337 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5338 alternatives that can be handled with movq or movabsq insn.
5339 (*movdf_internal): Disable for !TARGET_64BIT.
5340 (*movdf_internal_nointeger): Ditto.
5341 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5343 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5345 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5346 (FUNCTION_ARG_ADVANCE): Likewise.
5347 * tm.texi.in: Change references to them to hook references.
5348 * tm.texi: Regenerate.
5349 * targhooks.c (default_function_arg): Eliminate check for target macro.
5350 (default_function_incoming_arg): Likewise.
5351 (default_function_arg_advance): Likewise.
5352 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5353 (function_arg_advance): Likewise.
5354 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5356 2011-03-24 Richard Guenther <rguenther@suse.de>
5359 * tree-object-size.c (addr_object_size): Do not double-account
5360 for MEM_REF offsets.
5362 2011-03-24 Diego Novillo <dnovillo@google.com>
5364 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5365 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5366 (lto_input_data_block): Move from lto-opts.c. Make extern.
5368 (lto_input_string): Rename from input_string. Make extern.
5370 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5371 output_string_with_length.
5372 Output 0 to indicate a non-NULL string. Update all callers to
5374 (lto_output_string): Rename from output_string. Make extern.
5376 (lto_output_decl_state_streams): Make extern.
5377 (lto_output_decl_state_refs): Make extern.
5378 * lto-streamer.h (lto_input_string): Declare.
5379 (lto_input_data_block): Declare.
5380 (lto_output_string): Declare.
5381 (lto_output_string_with_length): Declare.
5382 (lto_output_decl_state_streams): Declare.
5383 (lto_output_decl_state_refs): Declare.
5385 2011-03-24 Richard Guenther <rguenther@suse.de>
5387 PR tree-optimization/46562
5388 * tree.c (build_invariant_address): New function.
5389 * tree.h (build_invariant_address): Declare.
5390 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5391 a renamed function moved ...
5392 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5393 Take valueization callback parameter.
5394 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5395 * gimple-fold.h: New file.
5396 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5397 (ccp_fold, fold_const_aggregate_ref,
5398 fold_ctor_reference, fold_nonarray_ctor_reference,
5399 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5400 get_base_constructor): Move ...
5401 * gimple-fold.c: ... here.
5402 (gimple_fold_stmt_to_constant_1): New function
5403 split out from ccp_fold. Take a valueization callback parameter.
5404 Valueize all operands.
5405 (gimple_fold_stmt_to_constant): New wrapper function.
5406 (fold_const_aggregate_ref_1): New function split out from
5407 fold_const_aggregate_ref. Take a valueization callback parameter.
5408 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5409 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5410 invariant POINTER_PLUS_EXPRs to invariant form.
5411 (vn_valueize): New function.
5412 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5413 * tree-vrp.c (vrp_valueize): New function.
5414 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5415 to fold statements to constants.
5416 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5417 function declarations.
5418 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5419 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5421 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5423 * config/h8300/predicates.md (jump_address_operand): Fix register
5426 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5428 * doc/invoke.texi (max-stores-to-sink): Document.
5429 * params.h (MAX_STORES_TO_SINK): Define.
5430 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5431 if either vectorization or if-conversion is disabled.
5432 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5433 tree-vect-data-refs.c vect_equal_offsets.
5434 (dr_equal_offsets_p): New function.
5435 (find_data_references_in_bb): Remove static.
5436 * tree-data-ref.h (find_data_references_in_bb): Declare.
5437 (dr_equal_offsets_p): Likewise.
5438 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5439 (vect_drs_dependent_in_basic_block): Update calls to
5441 (vect_check_interleaving): Likewise.
5442 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5443 (cond_if_else_store_replacement): Rename to...
5444 (cond_if_else_store_replacement_1): ... this. Change arguments and
5446 (cond_if_else_store_replacement): New function.
5447 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5448 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5450 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5453 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5454 to subtract lower bound instead of GEN_INT().
5456 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5461 * doc/extend.texi (Alignment): Move section to match order in TOC.
5462 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5463 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5465 2011-03-23 Jeff Law <law@redhat.com>
5467 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5468 before removing the edge.
5470 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5471 it may have been freed by redirect_branch_edge or
5472 redirect_edge_succ_nodup.
5474 2011-03-23 Richard Guenther <rguenther@suse.de>
5476 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5477 (check_va_list_escapes): Likewise.
5478 (check_all_va_list_escapes): Likewise.
5480 2011-03-23 Richard Guenther <rguenther@suse.de>
5482 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5483 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5484 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5485 (alias.o): Likewise.
5486 (ipa-type-escape.o): Remove.
5487 (ipa-struct-reorg.o): Likewise.
5488 (GTFILES): Remove ipa-struct-reorg.c.
5489 * alias.c: Do not include ipa-type-escape.h.
5490 * tree-ssa-alias.c: Likewise.
5491 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5492 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5493 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5494 and ipa-type-escape passes.
5495 * tree-pass.h (pass_ipa_type_escape): Remove.
5496 (pass_ipa_struct_reorg): Likewise.
5497 * ipa-struct-reorg.h: Remove.
5498 * ipa-struct-reorg.c: Likewise.
5499 * ipa-type-escape.h: Likewise.
5500 * ipa-type-escape.c: Likewise.
5501 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5502 (--param struct-reorg-cold-struct-ratio): Likewise.
5503 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5504 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5505 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5507 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5509 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5510 cpu attribute value.
5511 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5512 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5513 * config/s390/s390.c (processor_flags_table): New constant array.
5514 (s390_handle_arch_option): Remove.
5515 (s390_handle_option): Remove s390_handle_arch_option invocations
5516 and OPT_mwarn_framesize_ handling.
5517 (s390_option_override): Remove s390_handle_arch_option invocation.
5518 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5520 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5521 * config/s390/s390.opt (s390_tune, s390_arch)
5522 (march=): Replace s390_arch_option enum and values with
5523 processor_type. Set variable name to s390_arch. Set
5524 initialization value.
5525 (mtune=): Replace s390_arch_option with processor_type. Set
5526 variable name to s390_tune. Set initialization value.
5528 2011-03-23 Julian Brown <julian@codesourcery.com>
5530 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5531 accesses which are not naturally aligned.
5533 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5536 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5538 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5540 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5541 parameter from "int" to "enum insn_code".
5542 (expand_operand_type): New enum.
5543 (expand_operand): New structure.
5544 (create_expand_operand): New function.
5545 (create_fixed_operand, create_output_operand): Likewise
5546 (create_input_operand, create_convert_operand_to): Likewise.
5547 (create_convert_operand_from, create_address_operand): Likewise.
5548 (create_integer_operand): Likewise.
5549 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5550 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5551 (expand_insn, expand_jump_insn): Likewise.
5552 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5553 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5554 (expand_movstr, expand_builtin___clear_cache): Likewise.
5555 (expand_builtin_lock_release): Likewise.
5556 * explow.c (allocate_dynamic_stack_space): Likewise.
5557 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5558 and use the default handling in that case.
5559 * expmed.c (check_predicate_volatile_ok): Delete.
5560 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5561 (emit_cstore): Likewise.
5562 * expr.c (emit_block_move_via_movmem): Likewise.
5563 (set_storage_via_setmem, expand_assignment): Likewise.
5564 (emit_storent_insn, try_casesi): Likewise.
5565 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5566 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5567 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5568 (expand_twoval_unop, expand_twoval_binop): Likewise.
5569 (expand_unop_direct, emit_indirect_jump): Likewise.
5570 (emit_conditional_move, vector_compare_rtx): Likewise.
5571 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5572 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5573 (expand_sync_lock_test_and_set): Likewise.
5574 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5575 (emit_unop_insn): Likewise.
5576 (expand_copysign_absneg): Change icode to an insn_code.
5577 (create_convert_operand_from_type): New function.
5578 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5579 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5580 (expand_insn, expand_jump_insn): Likewise.
5581 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5582 than const_int_operand for operand 2.
5584 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5586 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5589 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5591 * emit-rtl.c (emit_pattern_before_noloc): New function.
5592 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5593 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5594 (emit_pattern_after_noloc): New function.
5595 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5596 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5598 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5600 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5601 (__ffsDI2): Likewise.
5603 2011-03-22 Richard Henderson <rth@redhat.com>
5605 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5606 of !TARGET_ABI_OPEN_VMS.
5607 (alpha_trampoline_init, alpha_start_function): Likewise.
5608 (alpha_expand_epilogue, alpha_file_start): Likewise.
5609 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5610 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5611 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5612 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5613 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5617 * config/s390/s390-opts.h: New.
5618 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5619 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5620 s390_stack_guard): Remove.
5621 (s390_handle_arch_option): Return void. Take enum
5622 s390_arch_option value instead of string and searching array.
5623 (s390_handle_option): Don't assert that global structures are in
5624 use. Access variables via opts pointer. Use error_at. Don't use
5625 sscanf for -mstack-guard= or -mstack-size=. Update call to
5626 s390_handle_arch_option.
5627 (s390_option_override): Update call to s390_handle_arch_option.
5628 (s390_emit_prologue): Use %d format for s390_stack_size in
5629 diagnostic. Use %wd for HOST_WIDE_INT.
5630 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5631 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5632 * config/s390/s390.opt (config/s390/s390-opts.h): New
5633 HeaderInclude entry.
5634 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5635 s390_arch_flags, s390_warn_framesize): New Variable entries.
5636 (s390_arch_option): New Enum and EnumValue entries.
5637 (march=): Use Enum instead of Var.
5638 (mstack-guard=, mstack-size=): Use UInteger and Var.
5641 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5643 * config/score/score.c (score_handle_option): Don't assert that
5644 global structures are in use. Access target_flags via opts
5645 pointer. Use value of -march= option to determine target_flags
5647 * config/score/score.opt (march=): Use Enum.
5648 (score_arch): New Enum and EnumValue entries.
5650 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5652 * config/mep/mep.c (option_mtiny_specified): Remove.
5653 (mep_option_override): Move register handling for -mivc2 from
5654 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5655 instead of option_mtiny_specified.
5656 (mep_handle_option): Access target_flags via opts pointer. Don't
5657 assert that global structures are in use. Defer part of -mivc2
5658 handling and move it to mep_option_override.
5659 * config/mep/mep.opt (IVC2): New Mask entry.
5660 (mivc2): Use Var and Defer instead of Mask.
5662 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5664 * config/v850/v850-opts.h: New.
5665 * config/v850/v850.c (small_memory): Replace with
5666 small_memory_physical_max array. Make that array static const.
5667 (v850_handle_memory_option): Take integer value of argument. Take
5668 gcc_options pointer, option text and location. Return void.
5669 Update for changes to small memory structures.
5670 (v850_handle_option): Access target_flags via opts pointer. Don't
5671 assert that global structures are in use. Update calls to
5672 v850_handle_memory_option.
5673 (v850_encode_data_area): Update references to small memory settings.
5674 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5675 (enum small_memory_type): Move to v850-opts.h.
5676 * config/v850/v850.opt (config/v850/v850-opts.h): New
5677 HeaderInclude entry.
5678 (small_memory_max): New Variable entry.
5679 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5680 (mtda, mzda): Likewise.
5682 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5684 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5685 pointer. Don't assert that global structures are in use.
5687 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5689 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5690 via opts pointer. Don't assert that global structures are in use.
5692 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5694 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5695 (munix=93): Use Var.
5696 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5697 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5698 * config/pa/pa-opts.h: New.
5699 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5700 (pa_handle_option): Don't assert that global structures are in
5701 use. Access target_flags via opts pointer. Don't handle
5702 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5704 (pa_option_override): Handle deferred OPT_mfixed_range_.
5706 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5708 * config/mn10300/mn10300-opts.h: New.
5709 * config/mn10300/mn10300.c (mn10300_processor,
5710 mn10300_tune_string): Remove.
5711 (mn10300_handle_option): Don't assert that global structures are
5712 in use. Access mn10300_processor via opts pointer. Don't handle
5714 * config/mn10300/mn10300.h (enum processor_type): Move to
5716 (mn10300_processor): Remove.
5717 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5718 HeaderInclude entry.
5719 (mn10300_processor): New Variable entry.
5722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5724 * config/microblaze/microblaze.c: Don't include opts.h.
5725 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5726 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5727 (mno-clearbss): Use Var and Warn.
5729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5731 * config/m32r/m32r-opts.h: New.
5732 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5733 (m32r_handle_option): Don't assert that global structures are in
5734 use. Access target_flags and m32r_cache_flush_func via opts
5735 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5736 OPT_mno_flush_trap here.
5737 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5738 include of m32r-opts.h.
5739 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5740 HeaderInclude entry.
5741 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5742 (mmodel=): Use Enum and Var.
5743 (m32r_model): New Enum and EnumValue entries.
5744 (mno-flush-trap): Use Var.
5745 (msdata=): Use Enum and Var.
5746 (m32r_sdata): New Enum and EnumValue entries.
5748 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5750 * config/m32c/m32c.c: Don't include opts.h.
5751 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5752 m32c_handle_option): Remove.
5753 (m32c_option_override): Check global_options_set.x_target_memregs
5754 instead of target_memregs_set.
5755 * config/m32c/m32c.h (target_memregs): Remove.
5756 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5759 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5761 * config/iq2000/iq2000-opts.h: New.
5762 * config/iq2000/iq2000.c: Don't include opts.h.
5763 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5764 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5765 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5766 HeaderInclude entry.
5767 (iq2000_tune): New Variable entry.
5768 (march=): Add comment. Use Enum.
5769 (iq2000_arch): New Enum and EnumValue entries.
5770 (mcpu=): Use Enum and Var.
5771 (iq2000_tune): New Enum and EnumValue entries.
5773 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5775 * config/ia64/ia64-opts.h: New.
5776 * config/ia64/ia64.c (ia64_tune): Remove.
5777 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5779 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5780 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5781 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5782 HeaderInclude entry.
5783 (ia64_tune): New Variable entry.
5784 (mfixed-range=): Use Defer and Var.
5785 (mtune=): Use Enum and Var.
5786 (ia64_tune): New Enum and EnumValue entries.
5788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5790 * config/frv/frv-opts.h: New.
5791 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5793 (frv_cpu_type): Remove.
5794 * config/frv/frv.c: Don't include opts.h.
5795 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5796 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5797 (frv_cpu_type): New Variable entry.
5798 (frv_cpu): New Enum and EnumValue entries.
5800 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5802 * config/cris/cris.c (cris_handle_option): Access target_flags via
5803 opts pointer. Don't assert that global structures are in use.
5804 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5805 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5807 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5809 * config/bfin/bfin-opts.h: New.
5810 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5811 bfin_si_revision, bfin_workarounds): Remove.
5812 (bfin_cpus): Make static const.
5813 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5814 not bfin_lib_id_given.
5815 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5816 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5817 pointer. Use error_at. Don't assert that global structures are in use.
5818 * config/bfin/bfin.h: Include bfin-opts.h.
5819 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5820 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5821 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5822 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5827 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5828 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5829 or -msoft-float here.
5830 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5831 -msoft-float and -mhard-float.
5832 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5833 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5835 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5837 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5838 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5840 (LIBGCC_SPEC): Don't handle -msoft-float.
5841 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5843 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5845 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5846 -mfloat-abi=*, not -msoft-float and -mhard-float.
5847 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5849 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5850 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5851 mhard-float and msoft-float.
5852 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5853 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5854 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5855 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5857 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5858 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5860 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5862 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5865 2011-03-22 Richard Henderson <rth@redhat.com>
5867 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5868 TARGET_ABI_WINDOWS_NT.
5869 (alpha_output_function_end_prologue): Likewise.
5870 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5871 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5872 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5873 (trap, *movsi_nt_vms): Likewise.
5874 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5875 (*tablejump_osf_nt_internal): Remove.
5876 * config/alpha/predicates.md (input_operand): Only test Pmode.
5878 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5880 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5881 via opts pointer. Use error_at. Don't assert that global
5882 structures are in use.
5884 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5886 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5887 (ix86_handle_option): Access ix86_isa_flags and
5888 ix86_isa_flags_explicit via opts pointer. Don't assert that
5889 global structures are in use.
5890 (ix86_function_specific_save, ix86_function_specific_restore):
5891 Update ix86_isa_flags_explicit field name.
5892 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5893 (ix86_isa_flags_explicit): Rename TargetSave entry to
5894 x_ix86_isa_flags_explicit.
5896 2011-03-22 Richard Henderson <rth@redhat.com>
5898 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5899 (alpha_option_override, direct_return): Likewise.
5900 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5901 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5902 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5903 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5904 (alpha_expand_epilogue, alpha_end_function): Likewise.
5905 (alpha_init_libfuncs): Likewise.
5906 (struct machine_function): Remove unicosmk members.
5907 (print_operand) ['t']: Remove.
5908 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5909 unicosmk_output_module_name, unicosmk_output_common,
5910 current_section_align, unicosmk_output_text_section_asm_op,
5911 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5912 unicosmk_section_type_flags, unicosmk_unique_section,
5913 unicosmk_asm_named_section, unicosmk_insert_attributes,
5914 unicosmk_output_align, unicosmk_defer_case_vector,
5915 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5916 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5917 unicosmk_output_ssib, unicosmk_add_call_info_word,
5918 unicosmk_extern_head, unicosmk_output_default_externs,
5919 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5920 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5921 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5922 * config/alpha/alpha-protos.h: Update.
5923 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5924 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5925 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5926 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5927 (*mulsi_se, mulvsi3): Likewise.
5928 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5929 (*divmodsi_internal, call, call_value, realign): Likewise.
5930 (moddi3, umoddi3): Likewise; remove duplicate expander.
5931 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5932 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5933 (*movdi_nofix): Remove r/U alternative.
5934 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5935 * config/alpha/constraints.md ("U"): Remove.
5936 * config/alpha/predicates.md (call_operand"): Don't test
5937 TARGET_ABI_UNICOSMK.
5939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5941 * target.def (handle_option): Take gcc_options and
5942 cl_decoded_option pointers and location_t.
5943 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5944 * doc/tm.texi: Regenerate.
5945 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5946 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5947 * lto-opts.c (lto_reissue_options): Generate option structure for
5948 targetm.handle_option call.
5949 * opts.c (target_handle_option): Update call to
5950 targetm.handle_option. Remove assertions about values now passed
5952 * targhooks.c (default_target_handle_option): New.
5953 * targhooks.h (default_target_handle_option): Declare.
5954 * config/alpha/alpha.c: Include opts.h.
5955 (alpha_handle_option): Update to new hook interface.
5956 * config/arm/arm.c: Include opts.h.
5957 (arm_handle_option): Update to new hook interface.
5958 * config/arm/t-arm (arm.o): Update dependencies.
5959 * config/bfin/bfin.c: Include opts.h.
5960 (bfin_handle_option): Update to new hook interface.
5961 * config/cris/cris.c: Include opts.h.
5962 (cris_handle_option): Update to new hook interface.
5963 * config/frv/frv.c: Include opts.h.
5964 (frv_handle_option): Update to new hook interface.
5965 * config/i386/i386.c: Include opts.h.
5966 (ix86_handle_option): Update to new hook interface.
5967 (ix86_valid_target_attribute_inner_p): Generate option structure
5968 for call to ix86_handle_option.
5969 * config/i386/t-i386 (i386.o): Update dependencies.
5970 * config/ia64/ia64.c: Include opts.h.
5971 (ia64_handle_option): Update to new hook interface.
5972 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5973 * config/iq2000/iq2000.c: Include opts.h.
5974 (iq2000_handle_option): Update to new hook interface.
5975 * config/m32c/m32c.c: Include opts.h.
5976 (m32c_handle_option): Update to new hook interface.
5977 * config/m32r/m32r.c: Include opts.h.
5978 (m32r_handle_option): Update to new hook interface.
5979 * config/m68k/m68k.c: Include opts.h.
5980 (m68k_handle_option): Update to new hook interface.
5981 * config/mep/mep.c: Include opts.h.
5982 (mep_handle_option): Update to new hook interface.
5983 * config/microblaze/microblaze.c: Include opts.h.
5984 (microblaze_handle_option): Update to new hook interface.
5985 * config/mips/mips.c: Include opts.h.
5986 (mips_handle_option): Update to new hook interface.
5987 * config/mn10300/mn10300.c: Include opts.h.
5988 (mn10300_handle_option): Update to new hook interface.
5989 * config/pa/pa.c: Include opts.h.
5990 (pa_handle_option): Update to new hook interface.
5991 * config/pdp11/pdp11.c: Include opts.h.
5992 (pdp11_handle_option): Update to new hook interface.
5993 * config/rs6000/rs6000.c: Include opts.h.
5994 (rs6000_handle_option): Update to new hook interface.
5995 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5996 * config/rx/rx.c: Include opts.h.
5997 (rx_handle_option): Update to new hook interface.
5998 * config/s390/s390.c: Include opts.h.
5999 (s390_handle_option): Update to new hook interface.
6000 * config/score/score.c: Include opts.h.
6001 (score_handle_option): Update to new hook interface.
6002 * config/sh/sh.c: Include opts.h.
6003 (sh_handle_option): Update to new hook interface.
6004 * config/sparc/sparc.c: Include opts.h.
6005 (sparc_handle_option): Update to new hook interface.
6006 * config/v850/v850.c: Include opts.h.
6007 (v850_handle_option): Update to new hook interface.
6009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6011 * gcc.c (driver_unknown_option_callback): Only permit and save
6012 unknown -Wno- options.
6013 (driver_wrong_lang_callback): Save options directly instead of via
6014 driver_unknown_option_callback.
6016 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6018 * combine.c (simplify_set): Try harder to find the best CC mode when
6019 simplifying a nested COMPARE on the RHS.
6021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6023 * config/alpha/gnu.h: Remove.
6024 * config/arc: Remove directory.
6025 * config/arm/netbsd.h: Remove.
6026 * config/arm/t-pe: Remove.
6027 * config/crx: Remove directory.
6028 * config/i386/netbsd.h: Remove.
6029 * config/m68hc11: Remove directory.
6030 * config/m68k/uclinux-oldabi.h: Remove.
6031 * config/mcore/mcore-pe.h: Remove.
6032 * config/mcore/t-mcore-pe: Remove.
6033 * config/netbsd-aout.h: Remove.
6034 * config/rs6000/gnu.h: Remove.
6035 * config/sh/sh-symbian.h: Remove.
6036 * config/sh/symbian-base.c: Remove.
6037 * config/sh/symbian-c.c: Remove.
6038 * config/sh/symbian-cxx.c: Remove.
6039 * config/sh/symbian-post.h: Remove.
6040 * config/sh/symbian-pre.h: Remove.
6041 * config/sh/t-symbian: Remove.
6042 * config/svr3.h: Remove.
6043 * config/vax/netbsd.h: Remove.
6044 * config.build: Don't handle i[34567]86-*-pe.
6045 * config.gcc: Remove handling of deprecations for most deprecated
6047 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6048 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6049 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6050 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6051 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6052 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6054 * config.host: Don't handle i[34567]86-*-pe.
6055 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6056 (ASM_SPEC32): Don't handle -mcall-gnu.
6057 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6059 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6060 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6061 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6062 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6063 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6064 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6065 conditional on SYMBIAN.
6066 * configure.ac: Don't handle powerpc*-*-gnu*.
6067 * configure: Regenerate.
6068 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6069 * doc/install-old.texi (m6811, m6812): Don't mention.
6070 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6071 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6072 (m68k-uclinuxoldabi): Don't mention.
6073 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6075 (-mcall-gnu): Remove.
6076 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6077 families): Remove constraint documentation.
6079 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6081 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6082 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6083 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6085 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6087 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6088 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6089 * config/avr/avr.c (init_cumulative_args)
6090 (avr_function_arg_advance): Use it.
6091 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6093 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6094 (avr_function_ok_for_sibcall): ...this new function.
6095 (avr_lookup_function_attribute1): New static Function.
6096 (avr_naked_function_p, interrupt_function_p)
6097 (signal_function_p, avr_OS_task_function_p)
6098 (avr_OS_main_function_p): Use it.
6099 * config/avr/avr.md ("sibcall", "sibcall_value")
6100 ("sibcall_epilogue"): New expander.
6101 ("*call_insn", "*call_value_insn"): New insn.
6102 ("call_insn", "call_value_insn"): Remove
6103 ("call", "call_value", "epilogue"): Change expander to handle
6106 2011-03-21 Nick Clifton <nickc@redhat.com>
6108 * doc/invoke.texi (Overall Options): Move closing brace to end of
6110 (Optimization Options): Add missing @gol.
6111 (Directory Options): Likewise.
6112 (i386 and x86-64 Options): Likewise.
6113 (RS6000 and PowerPC Options): Likewise.
6114 (i386 and x86-64 Windows Options): Likewise.
6115 (V850 Options): Add text missing from descriptions.
6117 2011-03-22 Richard Henderson <rth@redhat.com>
6119 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6120 (avr_incoming_return_addr_rtx): New.
6121 (emit_push_byte): New.
6122 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6123 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6124 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6125 (emit_pop_byte): New.
6126 (expand_epilogue): Use it. Pop frame pointer by bytes.
6127 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6128 (INCOMING_RETURN_ADDR_RTX): New.
6129 (INCOMING_FRAME_SP_OFFSET): New.
6130 (ARG_POINTER_CFA_OFFSET): New.
6131 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6132 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6135 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6137 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6139 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6140 (FUNCTION_ARG_ADVANCE): Likewise.
6141 * tm.texi.in: Change references to them to hook references.
6142 * tm.texi: Regenerate.
6143 * targhooks.c (default_function_arg): Eliminate check for target
6145 (default_function_incoming_arg): Likewise.
6146 (default_function_arg_advance): Likewise.
6147 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6148 (function_arg_advance): Likewise.
6149 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6151 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6153 * tree.c (build_call_1): New function.
6154 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6156 2011-03-22 Richard Guenther <rguenther@suse.de>
6158 PR tree-optimization/48228
6159 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6160 for single-arg PHIs.
6162 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6164 PR rtl-optimization/48143
6165 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6166 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6167 sse2_cvtps2pd): Likewise.
6169 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6171 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6173 2011-03-22 Richard Guenther <rguenther@suse.de>
6175 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6176 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6177 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6178 and REALIGN_LOAD_EXPR.
6179 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6180 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6181 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6182 DOT_PROD_EXPR case ...
6183 (expand_expr_real_2): ... here.
6184 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6185 and REALIGN_LOAD_EXPR.
6186 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6187 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6188 (vect_create_epilog_for_reduction): Likewise.
6189 (vectorizable_reduction): Likewise.
6190 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6191 * tree-vect-stmts.c (vectorizable_load): Likewise.
6193 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6195 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6197 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6199 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6200 handling for PLTOFF/GOTOFF.
6202 2011-03-22 Nick Clifton <nickc@redhat.com>
6204 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6205 trailing backslash from the end of the macro definition.
6207 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6209 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6212 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6214 * expr.h (prepare_operand): Move to...
6215 * optabs.h (prepare_operand): ...here and change the insn code
6216 parameter from "int" to "enum insn_code".
6217 (insn_operand_matches): Declare.
6218 * expr.c (init_expr_target): Use insn_operand_matches.
6219 (compress_float_constant): Likewise.
6220 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6221 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6222 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6223 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6225 (gen_cond_trap): Likewise.
6226 (prepare_operand): Likewise. Change icode to an insn_code.
6227 (insn_operand_matches): New function.
6228 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6229 * reload1.c (gen_reload): Likewise.
6230 * targhooks.c (default_secondary_reload): Likewise.
6232 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6234 * config/alpha/alpha.md (unspec): New define_c_enum.
6237 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6240 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6241 between a call and its CALL_ARG_LOCATION note.
6243 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6245 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6247 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6251 * c-common.c (shorten_compare): If primopN is first sign-extended
6252 to opN and then zero-extended to result type, set primopN to opN.
6254 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6256 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6257 for barrier handlers.
6259 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6261 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6262 UNSPEC constants to be in the unspec enumeration, and redefine
6263 all UNSPECV constants to be in the unspecv enumeration, so that
6264 dumps print which unspec/unspec_volatile this is.
6265 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6266 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6267 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6268 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6269 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6271 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6272 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6273 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6274 * config/rs6000/sync.md (isync, lwsync): Ditto.
6276 2011-03-21 Richard Guenther <rguenther@suse.de>
6278 * params.def (lto-min-partition): Fix typo.
6280 2011-03-21 Richard Guenther <rguenther@suse.de>
6283 * c-decl.c (grokdeclarator): Drop to the main variant only
6284 for array types. Drop flag_gen_aux_info check.
6286 2011-03-21 Richard Guenther <rguenther@suse.de>
6288 PR translation/47911
6289 * params.def (lto-partitions): Fix typo.
6290 (lto-min-partition): Fix wording.
6292 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6294 * config/rs6000/t-freebsd: Remove duplication from file.
6296 2011-03-21 Richard Guenther <rguenther@suse.de>
6299 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6301 2011-03-21 Richard Guenther <rguenther@suse.de>
6304 * params.def (lto-partitions): Require at least 1 partition.
6306 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6308 * gthr-solaris.h: Remove.
6309 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6310 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6311 (LIB_SPEC): Likewise.
6312 * config/sol2.opt (threads): Remove.
6313 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6314 (sparc*-*-solaris2*): Likewise.
6315 * configure.ac (enable_threads): Enable solaris support.
6316 * configure: Regenerate.
6317 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6318 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6321 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6323 * config.gcc: Obsolete *-*-solaris2.8*.
6324 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6326 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6329 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6330 reference. Solaris 8 perl works.
6332 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6335 * doc/install.texi (Prerequisites): Move jar etc. up.
6336 Explain support library version requirements.
6338 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6341 * doc/install.texi (Prerequisites): Move Perl to build
6342 requirements. Always necessary on Solaris 2 with Sun ld.
6344 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6346 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6348 (Specific, i?86-*-solaris2.[89]): Likewise.
6349 (Specific, i?86-*-solaris2.10): Likewise.
6350 (Specific, mips-sgi-irix6): Likewise.
6351 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6352 Update for binutils 2.21.
6354 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6356 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6357 Allow -fuse-linker-plugin for non-default plugin linker.
6358 * configure: Regenerate.
6360 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6363 * gengtype.c (files_rules): Added rule for cp/parser.h.
6365 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6368 * config/s390/s390.c (s390_delegitimize_address): Don't call
6369 lowpart_subreg if orig_x has BLKmode.
6371 2011-03-21 Kai Tietz <ktietz@redhat.com>
6374 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6375 * tree.h (attribute_spec): Add new member affects_type_identity.
6376 * attribs.c (empty_attribute_table): Adjust attribute_spec
6378 * config/alpha/alpha.c: Likewise.
6379 * config/arc/arc.c: Likewise.
6380 * config/arm/arm.c: Likewise.
6381 * config/avr/avr.c: Likewise.
6382 * config/bfin/bfin.c: Likewise.
6383 * config/crx/crx.c: Likewise.
6384 * config/darwin.h: Likewise.
6385 * config/h8300/h8300.c: Likewise.
6386 * config/i386/cygming.h: Likewise.
6387 * config/i386/i386.c: Likewise.
6388 * config/ia64/ia64.c: Likewise.
6389 * config/m32c/m32c.c: Likewise.
6390 * config/m32r/m32r.c: Likewise.
6391 * config/m68hc11/m68hc11.c: Likewise.
6392 * config/m68k/m68k.c: Likewise.
6393 * config/mcore/mcore.c: Likewise.
6394 * config/mep/mep.c: Likewise.
6395 * config/microblaze/microblaze.c: Likewise.
6396 * config/mips/mips.c: Likewise.
6397 * config/rs6000/rs6000.c: Likewise.
6398 * config/rx/rx.c: Likewise.
6399 * config/sh/sh.c: Likewise.
6400 * config/sol2.h: Likewise.
6401 * config/sparc/sparc.c: Likewise.
6402 * config/spu/spu.c: Likewise.
6403 * config/stormy16/stormy16.c: Likewise.
6404 * config/v850/v850.c: Likewise.
6406 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6408 * simplify-rtx.c (simplify_binary_operation_1): Handle
6409 (xor (and A B) C) case when B and C are both constants.
6411 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6413 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6415 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6418 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6420 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6422 PR rtl-optimization/48156
6423 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6424 assume df and df_lr are not NULL.
6426 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6429 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6430 between a call and its CALL_ARG_LOCATION note.
6432 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6435 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6436 between a call and its corresponding CALL_ARG_LOCATION note.
6438 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6440 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6441 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6442 * haifa-sched.c (setup_ref_regs): Ditto.
6443 * caller-save.c (add_used_regs_1): Ditto.
6444 * dse.c (look_for_hardregs): Ditto.
6445 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6446 * sched-rgn.c (check_live_1): Ditto.
6448 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6450 * c-decl.c (diagnose_mismatched_decls): Give an error for
6451 redefining a typedef with variably modified type.
6453 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6455 * c-decl.c (grokfield): Don't allow typedefs for structures or
6456 unions with no tag by default.
6457 * doc/extend.texi (Unnamed Fields): Update.
6459 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6461 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6462 Rewrite using indirect functions.
6463 (lwp_slwpcb): Ditto.
6464 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6465 (avx_vinsertf128<mode>): Ditto.
6467 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6469 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6472 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6474 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6475 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6477 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6479 PR rtl-optimization/48170
6480 * gcse.c (hoist_code): Remove bogus asserts.
6482 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6484 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6485 computation for prologue/epilogue.
6487 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6489 * Makefile.in (check-consistency): Remove.
6491 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6494 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6495 arange_table_in_use is 0, but either text_section_used or
6496 cold_text_section_used is true. Don't call it if
6497 !info_section_emitted.
6499 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6501 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6502 FUNCTION_VALUE_REGNO_P): Remove.
6503 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6505 * config/avr/avr.c (avr_ret_register): Make static inline.
6506 (avr_function_value_regno_p): New function.
6507 (avr_libcall_value): Make static. Add 'func' argument.
6508 (avr_function_value): Make static. Rename 'func' argument to
6509 'fn_decl_or_type', forward it to avr_libcall_value. Call
6510 avr_ret_register function instead of RET_REGISTER macro.
6511 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6513 2011-03-18 Jason Merrill <jason@redhat.com>
6516 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6518 2011-03-18 Richard Guenther <rguenther@suse.de>
6520 * doc/install.texi (--enable-gold): Remove.
6521 (--with-plugin-ld): Document.
6522 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6524 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6527 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6528 again after expansion changes.
6530 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6532 * combine.c (try_combine): Do simplification only call of
6533 subst() on i2 even when i1 is present. Update comments.
6535 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6537 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6538 and UNSPEC_PCREL_SYMOFF.
6540 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6542 * config/s390/s390.md: Use define_c_enum for the unspec constant
6545 2011-03-18 Richard Henderson <rth@redhat.com>
6546 Jakub Jelinek <jakub@redhat.com>
6549 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6550 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6552 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6555 * combine.c (cant_combine_insn_p): Don't check zero/sign
6556 extended hard registers.
6558 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6561 * combine.c (cant_combine_insn_p): Check zero/sign extended
6564 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6566 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6567 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6568 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6569 Change return type to bool.
6570 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6572 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6575 * var-tracking.c (prepare_call_arguments): If CALL target
6576 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6577 pc instead of looking it up using cselib_lookup and use
6578 Pmode for it if x has VOIDmode.
6579 * dwarf2out.c (gen_subprogram_die): If also both first and
6580 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6583 * function.c (assign_parms): For data.passed_pointer parms
6584 use MEM of data.entry_parm instead of data.entry_parm itself
6585 as DECL_INCOMING_RTL.
6586 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6587 also when passed and declared mode is the same, DECL_RTL
6588 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6591 2011-03-16 Jeff Law <law@redhat.com>
6593 PR rtl-optimization/37273
6594 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6595 handle them like argument loads from stack slots. Do not double
6596 count memory for memory constants and argument loads from stack slots.
6598 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6601 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6603 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6606 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6608 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6611 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6613 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6614 Clear call_arg_locations and call_arg_loc_last always.
6617 * var-tracking.c (prepare_call_arguments): If argument needs to be
6618 passed by reference, adjust argtype and mode.
6620 2011-03-17 Richard Guenther <rguenther@suse.de>
6623 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6624 a value make sure to fold the statement.
6626 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6629 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6630 return condition with !cfun->calls_alloca.
6632 2011-03-17 Richard Guenther <rguenther@suse.de>
6635 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6636 origin for decls in other ltrans units.
6637 (input_varpool_node): Likewise.
6639 2011-03-17 Richard Guenther <rguenther@suse.de>
6642 * tree-object-size.c (compute_object_offset): Properly return
6643 the offset operand of MEM_REFs as sizetype.
6645 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6647 PR rtl-optimization/48141
6648 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6649 * dse.c: Include params.h.
6650 (active_local_stores_len): New variable.
6651 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6653 (record_store, check_mem_read_rtx): Decrease it when removing
6655 (scan_insn): Likewise. Increase it when adding to chain, if it
6656 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6657 set active_local_stores to NULL before the addition.
6658 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6660 PR rtl-optimization/48141
6661 * dse.c (record_store): If no positions are needed in an insn
6662 that cannot be deleted, at least unchain it from active_local_stores.
6664 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6667 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6668 (lookup_type_die_strip_naming_typedef): ... here.
6669 (get_context_die): Use it.
6670 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6671 the anonymous struct named by the naming typedef.
6673 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6676 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6677 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6679 2011-03-16 Jeff Law <law@redhat.com>
6681 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6682 check for operands of conditional. Allow type to be a pointer.
6684 2011-03-16 Richard Guenther <rguenther@suse.de>
6686 PR tree-optimization/48149
6687 * fold-const.c (fold_binary_loc): Fold
6688 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6690 2011-03-16 Richard Guenther <rguenther@suse.de>
6692 PR tree-optimization/26134
6693 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6694 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6695 (non_rewritable_mem_ref_base): Handle complex type component
6696 accesses, constrain offsets for vector and complex extracts
6699 2011-03-16 Richard Guenther <rguenther@suse.de>
6701 PR tree-optimization/48146
6702 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6703 operands avoiding the need for renaming.
6705 2011-03-16 Richard Guenther <rguenther@suse.de>
6707 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6708 constant folding. Move MEM_REF canonicalization first.
6709 Rely on fold_const_aggregate_ref for initializer folding.
6710 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6712 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6715 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6716 arg0/arg1 or their arguments are always fold converted to matching
6719 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6722 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6725 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6726 Handle in-tree gold.
6727 (ld_vers): Extract binutils version for gold.
6728 (gcc_cv_ld_hidden): Handle gold here.
6729 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6730 * configure: Regenerate.
6731 * config.in: Regenerate.
6732 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6733 -fuse-linker-plugin otherwise.
6734 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6735 (LINK_COMMAND_SPEC): Use it.
6736 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6738 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6740 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6741 * calls.c: Remove debug.h include.
6742 (emit_call_1): Don't call virtual_call_token debug hook.
6743 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6744 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6745 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6746 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6747 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6748 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6749 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6750 dwarf2out_virtual_call): Remove.
6751 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6752 copy_call_info and virtual_call hooks.
6753 (dwarf2out_init): Don't initialize vcall_insn_table,
6754 debug_dcall_section and debug_vcall_section.
6755 (prune_unused_types): Don't mark nodes from dcall_table.
6756 (dwarf2out_finish): Don't output dcall or vcall tables.
6757 * final.c (final_scan_insn): Don't call direct_call or
6758 virtual_call debug hooks.
6759 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6760 virtual_call_token, copy_call_info and virtual_call hooks.
6761 (debug_nothing_uid): Remove prototype.
6762 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6763 copy_call_info and virtual_call hooks.
6764 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6765 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6766 * debug.c (do_nothing_debug_hooks): Likewise.
6767 (debug_nothing_uid): Remove.
6768 * doc/invoke.texi (-fenable-icf-debug): Remove.
6769 * common.opt (-fenable-icf-debug): Likewise.
6771 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6772 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6773 call's MEM. Handle functions returning aggregate through a hidden
6774 first pointer. For virtual calls add clobbered pc to call arguments
6776 * dwarf2out.c (gen_subprogram_die): Emit
6777 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6781 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6782 * rtl.h (ENTRY_VALUE_EXP): Define.
6783 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6784 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6785 * print-rtl.c (print_rtx): Likewise.
6786 * gengtype.c (adjust_field_rtx_def): Likewise.
6787 * var-tracking.c (vt_add_function_parameter): Adjust
6788 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6789 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6790 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6791 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6792 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6794 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6795 Call var_location debug hook even on CALL_INSNs.
6796 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6797 * rtl.def (ENTRY_VALUE): New.
6798 * dwarf2out.c: Include cfglayout.h.
6799 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6800 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6801 (struct call_arg_loc_node): New type.
6802 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6803 tail_call_site_count): New variables.
6804 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6805 DW_TAG_GNU_call_site_parameter.
6806 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6807 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6808 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6809 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6810 and DW_AT_GNU_all_source_call_sites.
6811 (mem_loc_descriptor): Handle ENTRY_VALUE.
6812 (add_src_coords_attributes): Don't add enything if
6813 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6814 (dwarf2out_abstract_function): Save and clear call_arg_location,
6815 call_site_count and tail_call_site_count around dwarf2out_decl call.
6816 (gen_call_site_die): New function.
6817 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6818 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6819 (dwarf2out_function_decl): Clear call_arg_locations,
6820 call_arg_loc_last, set call_site_count and tail_call_site_count
6821 to -1 and free block_map.
6822 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6823 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6824 followed by any real instructions.
6825 (dwarf2out_begin_function): Set call_site_count and
6826 tail_call_site_count to 0.
6827 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6828 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6829 attempt to force a DIE for it and worst case remove the attribute.
6830 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6831 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6833 * var-tracking.c: Include tm_p.h.
6834 (vt_stack_adjustments): For calls call note_register_arguments.
6835 (argument_reg_set): New variable.
6836 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6837 ensure the VALUE is resolved.
6838 (call_arguments): New variable.
6839 (prepare_call_arguments): New function.
6840 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6841 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6842 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6843 always use the best expression.
6844 (vt_expand_loc): Add ignore_cur_loc argument.
6845 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6846 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6847 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6849 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6850 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6851 argument. Don't call cselib_preserve_only_values and
6853 (note_register_arguments): New function.
6854 (vt_initialize): Compute argument_reg_set. Call
6855 vt_add_function_parameters before processing basic blocks instead of
6856 afterwards. For calls call prepare_call_arguments before calling
6857 cselib_process_insn.
6858 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6859 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6860 (var-tracking.o): Depend on $(TM_P_H).
6861 * cfglayout.h (insn_scope): New prototype.
6862 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6863 * cfglayout.c (insn_scope): No longer static.
6864 * insn-notes.def (CALL_ARG_LOCATION): New.
6865 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6866 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6867 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6868 nothing for DECL_EXTERNAL BLOCK_VARS.
6870 2011-03-16 Alan Modra <amodra@gmail.com>
6873 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6874 create invalid offset address for vsx splat insn.
6875 * config/rs6000/predicates.md (splat_input_operand): New.
6876 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6878 2011-03-15 Xinliang David Li <davidxl@google.com>
6881 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6882 (normalize_preds): New function.
6883 (is_use_properly_guarded): Normalize def predicates.
6885 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6888 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6889 in the output template.
6891 2011-03-15 Richard Guenther <rguenther@suse.de>
6894 * tree-pretty-print.c (dump_function_declaration): Properly
6895 dump unprototyped and varargs function types.
6897 2011-03-15 Richard Guenther <rguenther@suse.de>
6899 PR tree-optimization/13954
6900 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6903 2011-03-15 Richard Guenther <rguenther@suse.de>
6905 PR tree-optimization/48037
6906 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6907 selects into BIT_FIELD_REFs.
6908 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6911 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6913 PR tree-optimization/48129
6914 * builtins.c (fold_builtin_snprintf): Convert to type of
6915 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6916 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6918 2011-03-15 Richard Guenther <rguenther@suse.de>
6920 PR tree-optimization/41490
6921 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6922 value but with VUSE.
6923 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6925 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6926 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6927 * tree-tailcall.c (find_tail_calls): Ignore returns.
6929 2011-03-15 Richard Guenther <rguenther@suse.de>
6932 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6933 or variable-indexed array accesses when in gimple form.
6935 2011-03-15 Richard Guenther <rguenther@suse.de>
6937 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6939 2011-03-15 Alan Modra <amodra@gmail.com>
6942 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6943 presume symbol_refs without a symbol_ref_decl are suitably
6944 aligned, nor other trees we may see here. Handle anchor symbols.
6945 (legitimate_constant_pool_address_p): Comment. Add mode param.
6946 Check cmodel=medium addresses. Adjust all calls.
6947 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6948 creating cmodel=medium optimized access to locals.
6949 * config/rs6000/constraints.md (R): Pass QImode to
6950 legitimate_constant_pool_address_p.
6951 * config/rs6000/predicates.md (input_operand): Pass mode to
6952 legitimate_constant_pool_address_p.
6953 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6956 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6959 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6960 64-bit constants being loaded into registers other than GPRs such
6961 as loading 0 into a VSX register.
6963 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6965 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6967 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6970 * builtins.c (fold_builtin_snprintf): New function.
6971 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6972 (fold_builtin_4): Likewise.
6975 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6976 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6977 and C - X == X also strip nops from +/-/p+ operand.
6978 When optimizing -X == C, fold C to arg0's type.
6981 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6982 emit it as add_AT_int instead of add_AT_unsigned.
6984 2011-03-14 Tom Tromey <tromey@redhat.com>
6986 * unwind-dw2.c: Include sys/sdt.h if it exists.
6987 (_Unwind_DebugHook): Use STAP_PROBE2.
6988 * config.in, configure: Rebuild.
6989 * configure.ac: Check for sys/sdt.h.
6991 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6993 * config/i386/i386.md (ROUND_FLOOR): New constant.
6994 (ROUND_CEIL): Ditto.
6995 (ROUND_TRUNC): Ditto.
6996 (ROUND_MXCSR): Ditto.
6997 (ROUND_NO_EXC): Ditto.
6998 (rint<mode>2): Use new defines instead of numerical constants.
6999 (floor<mode>2): Ditto.
7000 (ceil<mode>2): Ditto.
7001 (btrunc<mode>2): Ditto.
7002 * config/i386/i386-builtin-types.def: Define ROUND function type
7004 * config/i386/i386.c (enum ix86_builtins): Add
7005 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7006 (struct builtin_description): Add
7007 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7008 (ix86_expand_sse_round): New static function.
7009 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7011 (ix86_builtin_vectorized_function): Handle
7012 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7014 2011-03-14 Tom Tromey <tromey@redhat.com>
7016 * c-parser.c (c_parser_asm_string_literal): Clear
7017 warn_overlength_strings.
7019 2011-03-14 Tom Tromey <tromey@redhat.com>
7021 * c-parser.c (disable_extension_diagnostics): Save
7022 warn_overlength_strings.
7023 (restore_extension_diagnostics): Restore warn_overlength_strings.
7025 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7027 * BASE-VER: Change to 4.7.0.
7029 2011-03-14 Richard Guenther <rguenther@suse.de>
7032 * tree.c (build_vector_from_val): Adjust assert to requirements
7035 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7038 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7040 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7042 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7043 terms of target_flags_explicit. Adjust copyright year.
7045 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7046 * config/rs6000/t-freebsd: New file. Add override for
7049 2011-03-13 Chris Demetriou <cgd@google.com>
7051 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7052 (-fno-diagnostics-show-option): this, to reflect current default.
7053 (-Werror=): Update text about -fno-diagnostics-show-option.
7055 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7058 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7059 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7060 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7061 mode is not V2DImode or V2DFmode.
7062 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7063 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7064 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7066 (movdi_internal64): Likewise.
7068 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7070 PR tree-optimization/47127
7071 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7073 (set_cloog_options): Same.
7074 (scop_to_clast): Same.
7075 (print_clast_stmt): Do not call cloog_state_malloc and
7077 (print_generated_program): Same.
7079 * graphite-clast-to-gimple.h (cloog_state): Declared.
7080 (scop_to_clast): Adjust declaration.
7081 * graphite.c (cloog_state): Defined here.
7082 (graphite_initialize): Call cloog_state_malloc.
7083 (graphite_finalize): Call cloog_state_free.
7085 2011-03-11 Jason Merrill <jason@redhat.com>
7087 * attribs.c (lookup_attribute_spec): Take const_tree.
7090 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7092 * config/sparc/sparc.c (sparc_option_override): Use
7093 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7095 2011-03-11 Richard Guenther <rguenther@suse.de>
7097 PR tree-optimization/48067
7098 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7099 multiplication result will be only used once on the target
7102 2011-03-11 Richard Guenther <rguenther@suse.de>
7104 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7106 2011-03-11 Richard Guenther <rguenther@suse.de>
7109 * tree.c (find_decls_types_r): Do not walk types only reachable
7110 from IDENTIFIER_NODEs.
7112 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7115 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7116 all vnode->force_output nodes as needed.
7118 2011-03-11 Jason Merrill <jason@redhat.com>
7121 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7122 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7124 2011-03-11 Martin Jambor <mjambor@suse.cz>
7126 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7129 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7131 PR tree-optimization/48063
7132 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7133 inline functions called once if !tree_can_inline_p (node->callers).
7135 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7137 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7139 * config/score/score3.c: Delete.
7140 * config/score/score3.h: Delete.
7141 * config/score/mul-div.S: Delete.
7142 * config/score/sfp-machine.h: Add new file.
7143 * config/score/constraints.md: Add new file.
7144 * config/score/t-score-softfp: Add new file.
7145 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7146 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7147 (score7_extra_constraint): Delete.
7148 (score7_option_override): Remove unused code.
7149 * config/score/score.c: Remove score3 and score5 define and code.
7150 * config/score/score.h: Remove score3 and score5 define and code.
7151 * config/score/score.md: Remove score3 template and unusual insn.
7152 * config/score/score.opt: Remove score3 and score5 options.
7154 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7156 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7157 when _HPUX_SOURCE is defined.
7158 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7160 2011-03-10 Jason Merrill <jason@redhat.com>
7163 * stor-layout.c (layout_type): Don't set structural equality
7164 on arrays of incomplete type.
7165 * tree.c (type_hash_eq): Handle comparing them properly.
7167 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7170 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7171 result mode matches original rtl mode.
7173 2011-03-10 Nick Clifton <nickc@redhat.com>
7175 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7176 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7178 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7180 PR rtl-optimization/47866
7181 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7182 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7183 if target wasn't scalar.
7184 * function.c (assign_stack_temp_for_type): Assert that neither
7185 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7186 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7188 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7190 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7192 * config/s390/s390-protos.h (s390_label_align): New prototype.
7193 * config/s390/s390.c (s390_label_align): New function.
7194 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7196 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7199 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7200 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7201 (output_vec_const_move): Ditto.
7203 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7205 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7206 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7207 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7208 Change 'rclass' argument and result type to reg_class_t.
7209 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7211 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7213 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7214 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7215 (TARGET_MEMORY_MOVE_COST): Define.
7216 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7218 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7221 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7224 PR tree-optimization/48022
7225 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7228 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7231 * var-tracking.c (find_use_val): Return NULL for
7232 cui->sets && cui->store_p BLKmode MEMs.
7234 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7236 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7238 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7239 xstormy16_print_operand_address): Remove.
7240 * config/stormy16/stormy16.c (xstormy16_print_operand,
7241 xstormy16_print_operand_address): Make static.
7242 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7244 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7247 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7248 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7251 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7254 * cfgloopmanip.c (fix_bb_placements): Return immediately
7255 if FROM is BASE_LOOP's header.
7257 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7259 * gimplify.c (gimplify_function_tree): Fix building calls
7260 to __builtin_return_address.
7262 2011-03-07 Alan Modra <amodra@gmail.com>
7264 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7265 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7266 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7267 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7269 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7270 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7271 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7272 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7273 * config/rs6000/rs6000.c
7274 (rs6000_elf_end_indicate_exec_stack): Rename to..
7275 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7276 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7277 (rs6000_file_start): ..here.
7278 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7279 file scope variables.
7280 (call_ABI_of_interest): New function.
7281 (init_cumulative_args): Set above vars when function return value
7282 is a float, vector, or small struct.
7283 (rs6000_function_arg_advance_1): Likewise for function args.
7284 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7285 references float args.
7287 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7289 * doc/cfg.texi: Remove "See" before @ref.
7290 * doc/invoke.texi: Likewise.
7292 2011-03-05 Jason Merrill <jason@redhat.com>
7294 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7296 2011-03-05 Anthony Green <green@moxielogic.com>
7298 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7300 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7302 PR rtl-optimization/47899
7303 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7304 to flow_loop_nested_p when moving the loop upward.
7306 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7309 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7311 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7313 PR tree-optimization/47967
7314 * ipa-cp.c (build_const_val): Return NULL instead of creating
7315 VIEW_CONVERT_EXPR for mismatching sizes.
7316 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7317 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7318 give up on versioning.
7320 2011-03-05 Alan Modra <amodra@gmail.com>
7323 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7324 full cmodel medium/large lo_sum + high addresses.
7326 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7328 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7329 pool references in UNSPEC_LTREL_OFFSET.
7331 2011-03-04 Jan Hubicka <jh@suse.cz>
7334 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7335 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7336 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7338 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7339 cgraph_add_thunk): Add node pointers.
7340 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7341 associated to right node.
7342 (input_node): Update use of cgraph_same_body_alias
7343 and cgraph_add_thunk.
7345 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7347 * config/i386/i386.opt (mprefer-avx128): New flag.
7348 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7349 modes when the flag -mprefer-avx128 is on.
7351 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7353 * dwarf2out.c (compare_loc_operands): Fix address handling.
7355 2011-03-04 Alan Modra <amodra@gmail.com>
7357 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7359 2011-03-04 Richard Guenther <rguenther@suse.de>
7362 * expmed.c (extract_bit_field_1): Prefer vector modes that
7363 vec_extract patterns can handle.
7365 2011-03-04 Richard Guenther <rguenther@suse.de>
7368 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7370 2011-03-04 Richard Henderson <rth@redhat.com>
7372 * explow.c (emit_stack_save): Remove 'after' parameter.
7373 (emit_stack_restore): Likewise.
7374 * expr.h: Update to match.
7375 * builtins.c, calls.c, stmt.c: Likewise.
7376 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7377 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7378 * function.c (expand_function_end): Insert the emit_stack_save
7379 sequence before parm_birth_insn instead of after.
7381 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7383 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7384 (ssse3_pmaddubsw128): Ditto.
7385 (ssse3_pmaddubsw): Ditto.
7387 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7389 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7391 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7394 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7395 on TYPE_SIZE_UNIT if it is a DECL.
7398 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7399 first operand is not is_gimple_mem_ref_addr, try to fold it.
7400 If the operand still isn't is_gimple_mem_ref_addr, clear
7403 2011-03-03 Richard Guenther <rguenther@suse.de>
7406 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7408 (refs_may_alias_p_1): For release branches return true if
7409 we are confused by our input.
7411 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7413 * config/s390/s390.c (s390_function_value): Rename to ...
7414 (s390_function_and_libcall_value): ... this.
7415 (s390_function_value): New function.
7416 (s390_libcall_value): New function.
7417 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7418 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7419 target macro definitions.
7420 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7422 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7424 * config/i386/freebsd64.h (CC1_SPEC): Define.
7425 * config/i386/linux64.h (CC1_SPEC): Define.
7426 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7428 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7430 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7432 * config/stormy16/stormy16.c: Include reload.h.
7433 (xstormy16_memory_move_cost): New function.
7434 (TARGET_MEMORY_MOVE_COST): Define.
7436 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7438 PR rtl-optimization/47925
7439 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7440 with side effects. Remove the more-specific check for volatile asms.
7442 2011-03-02 Alan Modra <amodra@gmail.com>
7445 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7446 toc relative addresses for valid offsets.
7448 2011-03-01 Richard Guenther <rguenther@suse.de>
7450 PR tree-optimization/47890
7451 * tree-vect-loop.c (get_initial_def_for_induction): Set
7452 related stmt properly.
7454 2011-03-01 Richard Guenther <rguenther@suse.de>
7457 * lto-streamer.c (lto_record_common_node): Also register
7460 2011-03-01 Richard Guenther <rguenther@suse.de>
7463 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7464 Do not stream DECL_ABSTRACT_ORIGIN.
7465 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7466 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7467 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7468 Do not stream DECL_ABSTRACT_ORIGIN.
7469 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7470 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7472 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7474 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7475 FUNCTION_VALUE_REGNO_P): Remove.
7476 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7477 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7478 Add 'outgoing' argument.
7479 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7481 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7482 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7484 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7487 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7488 (lookup_filename): Likewise.
7489 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7491 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7492 Jakub Jelinek <jakub@redhat.com>
7495 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7496 (assign_stack_local_1): Change last argument type to int.
7497 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7498 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7499 don't record padding space into frame_space_list nor use those areas.
7500 (assign_stack_local): Adjust caller.
7501 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7502 of assign_stack_local, pass 0 as last argument.
7503 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7506 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7509 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7510 Use target address_mode and pointer_mode hooks instead of hardcoded
7511 Pmode and ptr_mode. Handle some simple cases of extending if
7512 POINTERS_EXTEND_UNSIGNED < 0.
7513 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7514 Call convert_debug_memory_address.
7515 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7516 convert_debug_memory_address.
7519 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7520 * configure: Regenerated.
7521 * config.in: Regenerated.
7522 * varasm.c (default_function_section): Return NULL
7523 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7525 2011-02-28 Martin Jambor <mjambor@suse.cz>
7527 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7528 the description to match the printed values.
7530 2011-02-28 Richard Guenther <rguenther@suse.de>
7532 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7533 of the copied scope tree.
7535 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7537 * doc/extend.texi (Function Attributes): Avoid deeply (and
7538 wrongly) nested tables.
7540 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7543 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7544 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7545 r isn't op0 nor op1.
7547 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7549 * config/avr/avr.md: Remove magic comment for emacs.
7551 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7554 * config/avr/avr.c (avr_option_override): Use error on bad options.
7555 (avr_help): New function.
7556 (TARGET_HELP): Define.
7558 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7561 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7562 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7564 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7566 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7567 (ARM Options): Ditto.
7568 (i386 and x86-64 Options): Ditto.
7569 (RX Options): Ditto.
7570 (SPARC Options): Ditto.
7572 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7574 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7575 FreeBSD 6 and later. Generally use cpu generic.
7577 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7579 * doc/cpp.texi: Update copyright years.
7581 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7584 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7586 2011-02-25 Jon Beniston <jon@beniston.com>
7589 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7590 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7591 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7592 (lm32_block_move_inline): Add type cast to remove warning.
7593 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7594 (gen_int_relational): Move declarations to start of function.
7596 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7598 PR tree-optimization/45470
7599 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7600 can throw internally only.
7601 * tree-vect-stmts.c (vectorizable_call): Likewise.
7603 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7605 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7606 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7607 * config/stormy16/stormy16-protos.h
7608 (xstormy16_preferred_reload_class): Remove.
7609 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7610 static. Change 'rclass' argument and return type to reg_class_t.
7611 (TARGET_PREFERRED_RELOAD_CLASS,
7612 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7614 2011-02-24 Richard Guenther <rguenther@suse.de>
7616 * lto-streamer-in.c (input_bb): Do not find referenced vars
7617 in debug statements.
7619 2011-02-23 Jason Merrill <jason@redhat.com>
7621 * common.opt (fabi-version): Document v5 and v6.
7623 2011-02-23 Richard Guenther <rguenther@suse.de>
7625 PR tree-optimization/47849
7626 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7628 2011-02-23 Jie Zhang <jie@codesourcery.com>
7630 * opts-common.c (decode_cmdline_option): Print empty string
7631 argument as "" in decoded->orig_option_with_args_text.
7632 * gcc.c (execute): Print empty string argument as ""
7633 in the verbose output.
7634 (do_spec_1): Keep empty string argument.
7636 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7638 * config.gcc: Declare score-* and crx-* obsolete.
7640 2011-02-23 Jie Zhang <jie@codesourcery.com>
7642 PR rtl-optimization/47763
7643 * web.c (web_main): Ignore naked clobber when replacing register.
7645 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7647 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7650 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7653 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7655 2011-02-22 Mike Stump <mikestump@comcast.net>
7657 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7659 * configure: Regenerate.
7661 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7663 PR rtl-optimization/46002
7664 * ira-color.c (update_copy_costs): Change class intersection
7665 test to reg_class_contents[] test of 'hard_regno'.
7667 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7669 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7671 * config/hpux11.opt (mt): Likewise.
7672 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7673 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7674 * config/vax/elf.opt (mno-asm-pic): Likewise.
7675 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7677 2011-02-21 Mike Stump <mikestump@comcast.net>
7680 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7681 tree so we can get save the type.
7682 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7683 for CFString instead of trying to use past the end of the builtins.
7684 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7685 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7686 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7687 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7688 Rename to darwin_builtin_cfstring.
7689 (darwin_init_cfstring_builtins): Return the built type.
7691 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7694 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7695 (_mm256_insert_epi64): Use _mm_insert_epi64.
7697 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7699 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7700 * config/stormy16/stormy16-protos.h
7701 (xstormy16_mode_dependent_address_p): Remove.
7702 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7703 Make static. Change return type to bool. Change argument type to
7704 const_rtx. Remove dead code.
7705 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7707 2011-02-21 Richard Guenther <rguenther@suse.de>
7710 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7711 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7712 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7714 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7715 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7717 2011-02-20 Richard Guenther <rguenther@suse.de>
7720 * tree.c (free_lang_data_in_decl): Clean builtins from
7721 the TU decl BLOCK_VARS.
7723 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7727 * haifa-sched.c (fix_tick_ready): Skip tick computation
7730 2011-02-19 Richard Guenther <rguenther@suse.de>
7733 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7734 Remove lazy BLOCK_VARS streaming.
7735 (lto_input_ts_block_tree_pointers): Likewise.
7736 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7738 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7740 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7742 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7744 * config/i386/biarch32.h, config/i386/mach.h,
7745 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7747 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7750 * config/i386/i386.md (peephole2 for shift and plus): Use
7751 operands[1] original mode in the first insn.
7753 2011-02-18 Mike Stump <mikestump@comcast.net>
7755 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7757 2011-02-18 Jan Hubicka <jh@suse.cz>
7760 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7761 to zero when the function is not inlinable at all.
7763 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7765 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7766 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7767 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7768 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7769 * config/pa/t-pa64: Likewise.
7770 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7772 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7775 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7777 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7780 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7782 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7784 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7785 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7786 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7787 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7788 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7789 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7790 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7791 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7792 m32r_legitimate_address_p): New functions.
7793 * config/m32r/constraints.md (constraint "S"): Don't use
7794 STORE_PREINC_PREDEC_P.
7795 (constraint "U"): Don't use LOAD_POSTINC_P.
7797 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7799 PR rtl-optimization/46178
7800 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7801 compute ira_hard_regno_cover_class[].
7803 2011-02-18 Richard Guenther <rguenther@suse.de>
7806 * lto-streamer.h (lto_global_var_decls): Declare.
7807 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7808 statics for global var processing.
7810 2011-02-18 Richard Guenther <rguenther@suse.de>
7812 PR tree-optimization/47737
7813 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7814 edge dominance check.
7816 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7819 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7820 avoid invalid rtx sharing.
7822 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7824 * doc/cpp.texi (Obsolete Features): Add background on the
7825 origin of assertions.
7827 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7829 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7831 * config/darwin.c (output_objc_section_asm_op): Added support for
7833 (is_objc_metadata): New.
7834 (darwin_objc2_section): New.
7835 (darwin_objc1_section): New.
7836 (machopic_select_section): Added support for ABI v1 and v2.
7837 (darwin_emit_objc_zeroed): New.
7838 (darwin_output_aligned_bss): Detect objc metadata and treat it
7840 (darwin_asm_output_aligned_decl_common): Same.
7841 (darwin_asm_output_aligned_decl_local): Same.
7842 * config/darwin-sections.def: Updated for ABI v1 and v2.
7843 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7844 compiling Objective-C code for the NeXT runtime, default to using
7845 ABI version 0 for 32-bit, and version 2 for 64-bit.
7847 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7849 * common.opt (optimize_fast): New Variable.
7850 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7851 instead of local variable ofast.
7853 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7855 * doc/invoke.texi (fobjc-abi-version): Documented.
7856 (fobjc-nilcheck): Documented.
7857 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7860 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7863 * common.opt (export-dynamic): New Driver option.
7864 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7866 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7868 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7870 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7871 Jan Hubicka <jh@suse.cz>
7875 * cfgexpand.c (account_used_vars_for_block): Remove.
7876 (estimated_stack_frame_size): Use referenced vars.
7877 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7878 that were referenced in the original function. Test src_fn
7879 rather than cfun. Drop redundant get_var_ann.
7880 (setup_one_parameter): Drop redundant get_var_ann.
7881 (declare_return_variable): Likewise.
7882 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7883 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7884 * ipa-inline.c (compute_inline_parameters): Do not compute
7885 disregard_inline_limits here.
7886 (compute_inlinable_for_current, pass_inlinable): New.
7887 (pass_inline_parameters): Require PROP_referenced_vars.
7888 * cgraphunit.c (cgraph_process_new_functions): Don't run
7889 compute_inline_parameters explicitly unless function is in SSA form.
7890 (cgraph_analyze_function): Set .disregard_inline_limits.
7891 * tree-sra.c (convert_callers): Compute inliner parameters
7892 only for functions already in SSA form.
7894 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7896 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7897 -mlittle-endian-data.
7899 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7901 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7902 -mno-fpu, not -fpu and -no-fpu.
7903 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7904 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7906 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7909 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7910 input reload with PLUS RTX.
7912 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7914 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7915 of InverseVar(MDMX).
7917 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7919 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7922 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7924 * config/mn10300/mn10300.opt (mno-crt0): New.
7926 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7928 * config/m68k/uclinux.opt (static-libc): New Driver option.
7930 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7932 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7934 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7936 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7937 %{muser-extend-enabled}.
7939 2011-02-16 Richard Guenther <rguenther@suse.de>
7941 PR tree-optimization/47738
7942 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7943 the TODO from tree_predictive_commoning.
7945 2011-02-15 Jeff Law <law@redhat.com>
7948 2011-01-25 Jeff Law <law@redhat.com>
7950 PR rtl-optimization/37273
7951 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7952 handle them like argument loads from stack slots. Do not double
7953 count memory for memory constants and argument loads from stack slots.
7955 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7958 * combine.c (cant_combine_insn_p): Revert the last change.
7960 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7963 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7964 mode for vector constants. Remove code that checks for TImode.
7966 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7970 * cgraph.h (compute_inline_parameters): Return void.
7971 * ipa-inline.c (compute_inline_parameters): Adjust.
7973 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7977 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7979 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7980 * ipa-inline.c (compute_inline_parameters): Adjust.
7982 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7986 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7987 Adjust all users. Pass FN to...
7988 * tree-flow-inline.h (first_referenced_var): ... this. Add
7990 * ipa-struct-reorg.c: Adjust.
7991 * tree-dfa.c: Adjust.
7992 * tree-into-ssa.c: Adjust.
7993 * tree-sra.c: Adjust.
7994 * tree-ssa-alias.c: Adjust.
7995 * tree-ssa-live.c: Adjust.
7996 * tree-ssa.c: Adjust.
7997 * tree-ssanames.c: Adjust.
7998 * tree-tailcall.c: Adjust.
8000 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8004 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8006 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8007 * tree-flow-inline.h: Adjust.
8008 * gimple-pretty-print.c: Adjust.
8009 * tree-into-ssa.c: Adjust.
8010 * tree-ssa.c: Adjust.
8011 * cfgexpand.c: Adjust.
8013 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8015 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8016 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8017 (EXTRA_CONSTRAINT): Delete.
8018 * config/iq2000/constraints.md: New file.
8019 * config/iq2000/iq2000.md: Include it.
8020 (define_insn ""): Delete.
8021 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8022 unsupported constraint letters from patterns.
8023 (call_value, call_value_internal1): Likewise.
8024 (call_value_multiple_internal1): Likewise.
8026 2011-02-15 Nick Clifton <nickc@redhat.com>
8028 * config/mn10300/mn10300.c: Include tm-constrs.h.
8029 (struct liw_data): New data structure describing an LIW candidate
8031 (extract_bundle): Use struct liw_data. Allow small integer
8032 operands for some instructions.
8033 (check_liw_constraints): Use struct liw_data. Remove swapped
8034 parameter. Add comments describing the checks. Fix bug when
8035 assigning the source of liw1 to the source of liw2.
8036 (liw_candidate): Delete. Code moved into extract_bundle.
8037 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8039 * config/mn10300/predicates.md (liw_operand): New predicate.
8040 Allows registers and small integer constants.
8041 * config/mn10300/constraints.md (O): New constraint. Accetps
8042 integers in the range -8 to +7 inclusive.
8043 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8044 for moving a small integer into a register. Give this alternative
8046 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8047 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8048 using the J,K,L and M constraints,
8049 (liw): Remove SI mode on second operands to allow for HI and QI
8051 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8054 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8057 * combine.c (cant_combine_insn_p): Check zero/sign extended
8060 2011-02-15 Richard Guenther <rguenther@suse.de>
8062 PR tree-optimization/47743
8063 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8064 for a non-type-compatible VN lookup bail out.
8066 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8068 * config/fr30/constraints.md: New file.
8069 * config/fr30/fr30.md: Include it.
8070 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8071 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8072 (EXTRA_CONSTRAINT): Delete.
8074 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8076 * config/frv/constraints.md: New file.
8077 * config/frv/predicates.md: Include it.
8078 * config/frv/frv.c (reg_class_from_letter): Delete.
8079 (frv_option_override): Don't initialize it.
8080 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8081 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8082 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8083 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8084 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8085 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8086 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8087 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8088 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8089 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8090 (REG_CLASS_FROM_CONSTRAINT): Delete.
8092 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8095 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8096 if frame size is 0 in a leaf function.
8098 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8101 * config/alpha/host-osf.c: New file.
8102 * config/alpha/x-osf: New file.
8103 * config.host (alpha*-dec-osf*): Use it.
8105 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8107 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8108 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8109 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8110 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8112 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8114 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8116 * config/stormy16/constraints.md: New file.
8117 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8118 Use satisfies_constraint_Q and satisfies_constraint_R.
8119 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8121 (xstormy16_legitiamte_address_p): Declare.
8122 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8123 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8124 (EXTRA_CONSTRAINT): Delete.
8125 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8127 (xstormy16_extra_constraint_p): Delete.
8129 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8131 PR tree-optimization/46494
8132 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8133 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8134 (pass_rtl_loop_done): Add TODO_verify_flow.
8135 * fwprop.c (pass_rtl_fwprop): Likewise.
8136 * modulo-sched.c (pass_sms): Likewise.
8137 * tree-ssa-dom.c (pass_dominator): Likewise.
8138 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8139 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8140 (pass_tree_loop_done): Likewise.
8141 * tree-ssa-pre.c (execute_pre): Likewise.
8142 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8143 * tree-ssa-sink.c (pass_sink_code): Likewise.
8144 * tree-vrp.c (pass_vrp): Likewise.
8146 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8148 * config/v850/constraints.md: New file.
8149 * config/v850/v850.md: Include it.
8150 * config/v850/predicates.md (reg_or_0_operand): Use
8151 satisfies_constraint_G.
8152 (special_symbolref_operand): Use satisfies_constraint_K.
8153 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8154 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8155 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8156 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8157 (EXTRA_CONSTRAINT): Delete.
8158 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8159 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8160 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8162 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8165 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8168 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8170 * config/mcore/constraints.md: New file.
8171 * config/mcore/mcore.md: Include it.
8172 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8173 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8174 (REG_CLASS_FROM_LETTER): Delete.
8175 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8176 insn_const_int_ok_for_constraint.
8177 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8178 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8179 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8180 (EXTRA_CONSTRAINT): Delete.
8182 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8185 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8186 (IS_SIGHANDLER): Define.
8187 (sparc64_is_sighandler): New function, split off from
8188 sparc64_fallback_frame_state.
8189 (sparc_is_sighandler): New function, split off from
8190 sparc_fallback_frame_state.
8191 (sparc64_fallback_frame_state): Merge with ...
8192 (sparc_fallback_frame_state): ... this into ...
8193 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8194 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8195 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8196 stack instead of hardcoded offsets.
8198 2011-02-14 Andriy Gapon <avg@freebsd.org>
8201 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8203 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8205 * configure: Regenerate.
8207 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8210 * gcc.c (asm_options): Correct spec matching --target-help.
8212 2011-02-12 Martin Jambor <mjambor@suse.cz>
8214 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8215 to gimple call error.
8217 2011-02-12 Mike Stump <mikestump@comcast.net>
8219 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8220 comments in backslash regions.
8222 2011-02-12 Mike Stump <mikestump@comcast.net>
8223 Jakub Jelinek <jakub@redhat.com>
8224 Iain Sandoe <iains@gcc.gnu.org>
8227 * dwarf2out.c (output_cfa_loc): When required, apply the
8228 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8229 (output_loc_sequence): Likewise.
8230 (output_loc_operands_raw): Likewise.
8231 (output_loc_sequence_raw): Likewise.
8232 (output_cfa_loc): Likewise.
8233 (output_loc_list): Suppress register number adjustment when
8234 calling output_loc_sequence()
8235 (output_die): Likewise.
8237 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8239 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8241 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8242 xtensa_memory_move_cost): New functions.
8243 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8245 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8248 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8249 in the current directory.
8250 * configure: Rebuilt.
8252 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8254 * config/darwin.c (darwin_override_options): Add a hunk missed
8255 from the commit of r168571. Trim comment line lengths and
8256 correct indents of the preceding block.
8258 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8260 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8263 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8265 * common.opt (nostartfiles): New Driver option.
8267 2011-02-11 Xinliang David Li <davidxl@google.com>
8269 PR tree-optimization/47707
8270 * tree-chrec.c (convert_affine_scev): Keep type precision.
8272 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8274 PR tree-optimization/47420
8275 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8277 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8279 PR rtl-optimization/47614
8280 * rtl.h (check_for_inc_dec): Declare.
8281 * dse.c (check_for_inc_dec): Externalize...
8282 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8283 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8285 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8288 * gcc.c (main): Do not compile inputs if there were errors in
8290 * opts-common.c (read_cmdline_option): Check for wrong language
8291 after other error checks.
8293 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8295 * cgraph.c: Fix comment typos.
8296 * cgraph.h: Likewise.
8297 * cgraphunit.c: Likewise.
8298 * ipa-cp.c: Likewise.
8299 * ipa-inline.c: Likewise.
8300 * ipa-prop.c: Likewise.
8301 * ipa-pure-const.c: Likewise.
8302 * ipa-ref.c: Likewise.
8303 * ipa-reference.c: Likewise.
8305 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8308 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8310 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8313 * doc/sourcebuild.texi (Require Support): Document
8314 dg-require-ascii-locale.
8316 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8318 * doc/lto.texi (Write summary): Fix missing parentheses.
8320 2011-02-10 DJ Delorie <dj@redhat.com>
8322 * config/m32c/m32c.c (m32c_option_override): Disable
8323 -fcombine-stack-adjustments until flag value tracking and compare
8324 optimization can be rewritten.
8326 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8328 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8330 (PROCESSOR_DEFAULT64): Likewise.
8332 2011-02-10 Richard Henderson <rth@redhat.com>
8334 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8335 change from 2011-02-03.
8336 * config/rx/rx.c (flags_from_code): Likewise.
8337 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8338 is valid, n/pz otherwise.
8339 (rx_select_cc_mode): Return CCmode if Y is not zero.
8341 2011-02-10 Richard Guenther <rguenther@suse.de>
8343 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8345 2011-02-10 Richard Guenther <rguenther@suse.de>
8347 PR tree-optimization/47677
8348 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8350 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8353 * combine.c (make_compound_operation): Only change shifts into
8354 multiplication for SCALAR_INT_MODE_P.
8356 2011-02-10 Jie Zhang <jie@codesourcery.com>
8360 2011-02-05 Jie Zhang <jie@codesourcery.com>
8362 * web.c (entry_register): Don't clobber the number of the
8363 first uninitialized reference in used[].
8365 2011-02-09 Richard Guenther <rguenther@suse.de>
8367 PR tree-optimization/47664
8368 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8371 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8375 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8377 (PROCESSOR_DEFAULT64): Same.
8378 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8380 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8382 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8384 2011-02-09 Martin Jambor <mjambor@suse.cz>
8387 * tree-sra.c (struct access): New flags grp_scalar_read and
8388 grp_scalar_write. Changed description of assignment read and write
8390 (dump_access): Dump new flags, reorder all of them.
8391 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8392 to detect multiple scalar reads.
8393 (analyze_access_subtree): Use the new scalar read write flags instead
8394 of the old flags. Adjusted comments.
8396 2011-02-08 DJ Delorie <dj@redhat.com>
8399 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8402 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8404 * config/m68k/uclinux.opt: New.
8405 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8407 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8409 * config/cris/elf.opt (sim): New Driver option.
8411 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8413 * config/xtensa/elf.opt: New.
8414 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8416 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8418 * config/vax/elf.opt: New.
8419 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8421 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8423 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8425 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8427 * config/gnu-user.opt: New.
8428 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8429 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8430 *-*-uclinux*): Use gnu-user.opt.
8432 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8434 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8435 * config/i386/gnu.h (CPP_SPEC): Likewise.
8437 2011-02-08 Ian Lance Taylor <iant@google.com>
8439 * common.opt (fcx-limited-range): Add SetByCombined flag.
8440 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8441 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8442 (fassociative-math, freciprocal-math): Likewise.
8443 (funsafe-math-optimizations): Likewise.
8444 * opth-gen.awk: Handle SetByCombined.
8445 * optc-gen.awk: Likewise.
8446 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8447 (set_unsafe_math_optimizations_flags): Likewise.
8448 * doc/options.texi (Option properties): Document SetByCombined.
8450 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8452 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8453 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8454 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8455 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8456 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8458 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8460 PR tree-optimization/46834
8461 PR tree-optimization/46994
8462 PR tree-optimization/46995
8463 * graphite-sese-to-poly.c (used_outside_reduction): New.
8464 (detect_commutative_reduction): Call used_outside_reduction.
8465 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8466 translate_scalar_reduction_to_array only when at least one
8467 loop-phi/close-phi tuple has been detected.
8469 2011-02-08 Richard Guenther <rguenther@suse.de>
8472 * tree-vect-generic.c (expand_vector_operations_1): Update
8474 (expand_vector_operations): ... not here. Cleanup EH info
8475 and the CFG if required.
8477 2011-02-08 Richard Guenther <rguenther@suse.de>
8479 PR tree-optimization/47641
8480 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8481 require type compatibility.
8483 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8485 * gimple-low.c (lower_function_body): Don't remove the location of
8486 the return statement here.
8487 (lower_gimple_return): Do it here instead but only if the return
8488 statement is actually used twice.
8490 2011-02-08 Richard Guenther <rguenther@suse.de>
8492 PR tree-optimization/47632
8493 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8494 unused up_to_stmt parameter, return whether cfg-cleanup is
8495 necessary, remove EH info properly.
8496 (forward_propagate_into_gimple_cond): Adjust caller.
8497 (forward_propagate_into_cond): Likewise.
8498 (forward_propagate_comparison): Likewise.
8499 (tree_ssa_forward_propagate_single_use_vars): Make
8500 forward_propagate_comparison case similar to the two others.
8502 2011-02-08 Nick Clifton <nickc@redhat.com>
8504 * config/mn10300/mn10300.opt (mliw): New command line option.
8505 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8506 (liw_bundling): New automaton.
8507 (liw): New attribute.
8508 (liw_op): New attribute.
8509 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8510 (movsi_internal): Add LIW attributes.
8514 (addsi3): Separate register and immediate alternatives.
8519 (lshrsi3): Likewise.
8520 (ashrsi3): Likewise.
8522 * config/mn10300/mn10300.c (liw_op_names): New
8523 (mn10300_print_operand): Handle 'W' operand descriptor.
8524 (extract_bundle): New function.
8525 (check_liw_constraints): New function.
8526 (liw_candidate): New function.
8527 (mn10300_bundle_liw): New function.
8528 (mn10300_reorg): New function.
8529 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8530 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8531 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8532 __LIW__ or __NO_LIW__.
8533 * doc/invoke.texi: Describe the -mliw command line option.
8535 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8537 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8538 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8539 pthread_mutex_unlock): Remove.
8540 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8541 * config/pa/t-pa64: Likewise.
8542 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8543 shared libc if not linking against libpthread.
8544 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8546 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8549 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8550 on 10.6 and later to ensure that we always use the unwinder from
8551 the system. Only add -no_compact_unwind when tarteting darwin
8554 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8557 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8558 (vec_interleave_lowv2sf): Ditto.
8559 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8560 (vec_extract_oddv2sf): Ditto.
8562 2011-02-07 Mike Stump <mikestump@comcast.net>
8565 Add __ieee_divdc3 entry point.
8566 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8568 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8569 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8570 * config/darwin.c (darwin_rename_builtins): Add.
8571 * config/darwin-protos.h (darwin_rename_builtins): Add.
8573 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8576 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8579 2011-02-07 Mike Stump <mikestump@comcast.net>
8581 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8583 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8586 * config/avr/libgcc.S (exit): Move .endfunc
8588 2011-02-07 Richard Guenther <rguenther@suse.de>
8590 PR tree-optimization/47615
8591 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8592 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8593 (run_scc_vn): Initialize it.
8594 (visit_reference_op_load): Use it.
8595 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8597 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8599 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8600 DImode trapping arithmetic libfuncs.
8602 2011-02-07 Richard Guenther <rguenther@suse.de>
8604 PR tree-optimization/47621
8605 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8607 (execute_update_addresses_taken): ... here. Make it more
8608 conservative in what we accept.
8610 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8612 * config/sparc/freebsd.h (ASM_SPEC): Define.
8613 * config/sparc/vxworks.h (ASM_SPEC): Define.
8615 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8617 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8619 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8621 * doc/invoke.texi: Remove reference to compiler internals from
8624 * reg-notes.def: Remove REG_VALUE_PROFILE.
8625 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8627 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8630 * varasm.c (default_section_type_flags): If decl is NULL,
8631 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8633 2011-02-05 Jie Zhang <jie@codesourcery.com>
8636 * web.c (entry_register): Don't clobber the number of the
8637 first uninitialized reference in used[].
8639 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8641 PR tree-optimization/46194
8642 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8643 (build_classic_dist_vector_1): Do not represent classic distance
8644 vectors when the access functions are variating in different loops.
8646 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8648 * config/mips/iris6.opt: New.
8649 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8651 2011-02-04 Richard Henderson <rth@redhat.com>
8652 Steve Ellcey <sje@cup.hp.com>
8655 * config/ia64/predicates.md (mux1_brcst_element): New.
8656 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8657 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8658 (ia64_unpack_sign): New.
8659 (ia64_expand_unpack): Rewrite using new routines.
8660 (ia64_expand_widen_sum): Ditto.
8661 (ia64_expand_dot_prod_v8qi): Ditto.
8662 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8663 routines, add endian check.
8664 (pmpy2_even): Rename from pmpy2_r, add endian check.
8665 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8666 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8667 (vec_widen_smult_hi_v4hi): Ditto.
8668 (vec_widen_umult_lo_v4hi): Ditto.
8669 (vec_widen_umult_hi_v4hi): Ditto.
8670 (mulv2si3): Change endian checks.
8671 (sdot_prodv4hi): Rewrite with new calls.
8672 (udot_prodv4hi): New.
8673 (vec_pack_ssat_v4hi): Add endian check.
8674 (vec_pack_usat_v4hi): Ditto.
8675 (vec_pack_ssat_v2si): Ditto.
8676 (max1_even): Rename from max1_r, add endian check.
8677 (max1_odd): Rename from max1_l, add endian check.
8678 (*mux1_rev): Format change.
8680 (*mux1_shuf): Ditto.
8682 (*mux1_brcst_v8qi): Use new predicate.
8683 (vec_extract_evenv8qi): Remove endian check.
8684 (vec_extract_oddv8qi): Ditto.
8685 (vec_interleave_lowv4hi): Format change.
8686 (vec_interleave_highv4hi): Ditto.
8687 (mix2_even): Rename from mix2_r, add endian check.
8688 (mix2_odd): Rename from mux2_l, add endian check.
8689 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8690 (vec_extract_evenodd_helper): Format change.
8691 (vec_extract_evenv4hi): Remove endian check.
8692 (vec_extract_oddv4hi): Remove endian check.
8693 (vec_interleave_lowv2si): Format change.
8694 (vec_interleave_highv2si): Format change.
8695 (vec_initv2si): Remove endian check.
8696 (vecinit_v2si): Add endian check.
8697 (reduc_splus_v2sf): Add endian check.
8698 (reduc_smax_v2sf): Ditto.
8699 (reduc_smin_v2sf): Ditto.
8700 (vec_initv2sf): Remove endian check.
8701 (fpack): Add endian check.
8702 (fswap): Add endian check.
8703 (vec_interleave_highv2sf): Add endian check.
8704 (vec_interleave_lowv2sf): Add endian check.
8705 (fmix_lr): Add endian check.
8706 (vec_setv2sf): Format change.
8707 (*vec_extractv2sf_0_be): Use shift to extract operand.
8708 (*vec_extractv2sf_1_be): New.
8709 (vec_pack_trunc_v4hi): Add endian check.
8710 (vec_pack_trunc_v2si): Format change.
8712 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8715 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8716 do bb, locus and block comparison and disallow loads if it is not set.
8717 (stmt_is_replaceable_p): New function.
8718 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8720 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8721 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8723 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8725 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8727 * config/rs6000/xilinx.opt: New.
8728 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8730 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8732 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8734 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8736 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8737 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8738 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8739 secondary_reload_info, xtensa_secondary_reload): Remove.
8740 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8741 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8742 (xtensa_preferred_reload_class): Make static. Change return and
8743 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8744 Use CONST_DOUBLE_P predicate.
8745 (xtensa_preferred_output_reload_class): New function.
8746 (xtensa_secondary_reload): Make static.
8748 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8750 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8751 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8752 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8754 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8757 * output.h (SECTION_RELRO): Define.
8758 (SECTION_MACH_DEP): Adjust.
8759 (get_variable_section): New prototype.
8760 * varpool.c (varpool_finalize_named_section_flags): New function.
8761 (varpool_assemble_pending_decls): Call it.
8762 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8763 * cgraphunit.c (cgraph_output_in_order): Call
8764 varpool_finalize_named_section_flags.
8765 * varasm.c (get_section): Allow section flags conflicts between
8766 relro and read-only sections if the section hasn't been declared yet.
8767 Set SECTION_OVERRIDE after diagnosing section type conflict.
8768 (get_variable_section): No longer static.
8769 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8770 readonly sections that need relocations.
8771 (decl_readonly_section_1): New function.
8772 (decl_readonly_section): Use it.
8775 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8776 Steve Ellcey <sje@cup.hp.com>
8779 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8780 if section attribute used.
8782 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8784 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8785 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8786 (darwin_init_sections): Remove assertion.
8788 2011-02-03 Nick Clifton <nickc@redhat.com>
8790 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8792 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8793 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8794 instead of "n" and "pz".
8795 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8798 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8801 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8802 fma, expand FMA_EXPR as fma{,f,l} call.
8805 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8806 copy them into a unsigned char variable and pass address of it to
8807 lto_output_data_stream.
8810 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8811 around backend_init_target and lang_dependent_init_target calls.
8812 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8813 (verify_cgraph_node): Don't call set_cfun here. Use
8814 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8815 Set error_found for incorrectly represented calls to thunks.
8817 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8820 PR rtl-optimization/43494
8821 * rtl.h (for_each_inc_dec_fn): New type.
8822 (for_each_inc_dec): Declare.
8823 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8824 (for_each_inc_dec_find_inc_dec): New fn.
8825 (for_each_inc_dec_find_mem): New fn.
8826 (for_each_inc_dec): New fn.
8827 * dse.c (struct insn_size): Remove.
8828 (replace_inc_dec, replace_inc_dec_mem): Remove.
8829 (emit_inc_dec_insn_before): New fn.
8830 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8831 (canon_address): Pass mem modes to cselib_lookup.
8832 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8833 (cselib_lookup_from_insn): Likewise.
8834 (cselib_subst_to_values): Likewise.
8835 * cselib.c (find_slot_memmode): New var.
8836 (cselib_find_slot): New fn. Use it instead of
8837 htab_find_slot_with_hash everywhere.
8838 (entry_and_rtx_equal_p): Use find_slot_memmode.
8839 (autoinc_split): New fn.
8840 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8841 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8842 Deal with autoinc. Special-case recursion into MEMs.
8843 (cselib_hash_rtx): Likewise.
8844 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8845 address and MEM modes.
8846 (cselib_subst_to_values): Add memmode, pass it on.
8848 (cselib_lookup): Add memmode argument, pass it on.
8849 (cselib_lookup_from_insn): Add memmode.
8850 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8851 (struct cselib_record_autoinc_data): New.
8852 (cselib_record_autoinc_cb): New fn.
8853 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8854 mode to cselib_lookup. Reset autoinced REGs here instead of...
8855 (cselib_process_insn): ... here.
8856 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8858 (add_uses): Likewise, also to cselib_subst_to_values.
8859 (add_stores): Likewise.
8860 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8861 cselib_subst_to_values.
8862 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8863 * gcse.c (do_local_cprop): Adjusted.
8864 * postreload.c (reload_cse_simplify_set): Adjusted.
8865 (reload_cse_simplify_operands): Adjusted.
8866 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8868 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8870 PR tree-optimization/45122
8871 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8872 unsafe assumptions when there's more than one loop exit.
8874 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8877 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8878 Document using vector double with the load/store builtins, and
8879 that the load/store builtins always use Altivec instructions.
8881 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8882 to use altivec memory instructions, even on VSX.
8883 (vector_altivec_store_<mode>): Ditto.
8885 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8888 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8889 V2DF, V2DI support to load/store overloaded builtins.
8891 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8892 altivec load/store builtins for V2DF/V2DI types.
8894 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8895 set avoid indexed addresses on power6 if -maltivec.
8896 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8897 vector_altivec_load/vector_altivec_store builtins.
8898 (altivec_expand_st_builtin): Ditto.
8899 (altivec_expand_builtin): Add VSX memory builtins.
8900 (rs6000_init_builtins): Add V2DI types to internal types.
8901 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8902 load/store builtins.
8903 (rs6000_address_for_altivec): Insure memory address is appropriate
8906 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8907 vec_vsx_ld and vec_vsx_st.
8908 (vsx_store_<mode>): Ditto.
8910 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8911 variables to hold long long types for VSX vector memory builtins.
8912 (RS6000_BTI_unsigned_long_long): Ditto.
8913 (long_long_integer_type_internal_node): Ditti.
8914 (long_long_unsigned_type_internal_node): Ditti.
8916 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8917 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8918 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8920 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8922 (vec_vsx_st): Ditto.
8924 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8926 * config/pa/pa-hpux10.opt: New.
8927 * config/hpux11.opt (pthread): New Driver option.
8928 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8929 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8931 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8933 * config/ia64/vms.opt: New.
8934 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8936 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8939 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8940 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8941 generator functions.
8942 (vsx_floatuns<VSi><mode>2): Ditto.
8943 (vsx_fix_trunc<mode><VSi>2): Ditto.
8944 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8946 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8948 * config/i386/djgpp.opt (posix): New Driver option.
8950 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8952 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8953 Move to the unsupported targets list.
8955 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8957 PR rtl-optimization/47525
8958 * df-scan.c: Update copyright years.
8959 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8960 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8962 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8964 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8965 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8966 (ASM_OUTPUT_ASCII): Remove.
8967 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8969 2011-02-02 Jeff Law <law@redhat.com>
8972 * reload.c (find_reloads_address): Handle reg+d address where both
8973 components are invalid by reloading the entire address.
8975 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8976 Richard Guenther <rguenther@suse.de>
8978 PR tree-optimization/40979
8980 * passes.c (init_optimization_passes): After LIM call copy_prop
8981 and DCE to clean up.
8982 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8984 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8986 PR tree-optimization/47576
8987 PR tree-optimization/47555
8988 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8989 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8990 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8991 * tree-scalar-evolution.c (follow_ssa_edge): Use
8992 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8994 2011-02-02 Richard Guenther <rguenther@suse.de>
8996 PR tree-optimization/47566
8997 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8999 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9003 * tree-inline.c (declare_return_variable): Remove unused caller
9008 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9009 * cfgexpand.c (account_used_vars_for_block): Use them.
9010 * tree-nrv.c (tree_nrv): Likewise.
9011 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9012 (dump_scope_block): Likewise.
9013 (remove_unused_locals): Likewise.
9017 * tree-inline.c (declare_return_variable): Add result decl to
9018 local decls only once.
9019 * gimple-low.c (record_vars_into): Mark newly-created variables
9022 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9028 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9030 (no_real_insns_p, schedule_block, set_priorities): Drop special
9031 treatment of boundary debug insns.
9032 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9033 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9034 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9035 (BOUNDARY_DEBUG_INSN_P): Likewise.
9036 (SCHEDULE_DEBUG_INSN_P): Likewise.
9037 * sched-rgn.c (init_ready_list): Drop special treatment of
9038 boundary debug insns.
9039 * final.c (rest_of_clean_state): Clear notes' BB.
9041 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9043 * config/openbsd.opt (assert=): New Driver option.
9045 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9047 * config/i386/nto.opt: New.
9048 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9050 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9052 * config/i386/netware.opt: New.
9053 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9055 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9057 * config/interix.opt (posix): New Driver option.
9059 2011-02-01 DJ Delorie <dj@redhat.com>
9061 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9063 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9066 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9068 PR tree-optimization/47561
9069 * toplev.c (process_options): Print the Graphite flags. Add
9070 flag_loop_flatten to the list of options requiring Graphite.
9072 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9074 * config/i386/cygming.opt (posix): New Driver option.
9076 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9078 * config/arm/vxworks.opt: New.
9079 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9081 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9083 * config/alpha/elf.opt: New.
9084 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9085 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9087 2011-02-01 Richard Guenther <rguenther@suse.de>
9089 PR tree-optimization/47559
9090 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9091 store-motion on references that can throw.
9093 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9095 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9096 * tree-pass.h (TDF_CSELIB): New macro.
9097 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9098 cselib_lookup): Check for it rather than for TDF_DETAILS.
9100 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9103 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9106 * opts.c (finish_options): Don't add x_aux_base_name if it is
9109 2011-02-01 Richard Guenther <rguenther@suse.de>
9111 PR tree-optimization/47555
9113 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9115 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9117 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9120 * config/lm32/t-lm32: Add multilib for all CPU options.
9122 2011-02-01 Richard Guenther <rguenther@suse.de>
9124 PR tree-optimization/47541
9125 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9126 sure to have a field at offset zero.
9128 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9130 * config/arc/arc.opt (EB, EL): New Driver options.
9132 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9134 * config/alpha/osf5.opt: New.
9135 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9137 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9139 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9141 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9143 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9145 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9146 is an alias of -floop-interchange and that it requires the
9147 Graphite infrastructure.
9148 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9149 flag_loop_interchange based on the value of flag_tree_loop_linear.
9151 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9152 Richard Guenther <rguenther@suse.de>
9154 PR tree-optimization/47538
9155 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9156 type instead of r1type, except for comparisons. For right
9157 shifts and comparisons punt if there are mismatches in
9158 sizetype vs. non-sizetype types.
9160 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9162 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9165 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9167 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9169 * configure: Regenerate.
9171 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9173 * configure.ac (gcc_cv_ld_static_option): Define.
9174 (gcc_cv_ld_dynamic_option): Define.
9175 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9177 (HAVE_LD_STATIC_DYNAMIC): Update message.
9178 (LD_STATIC_OPTION): Define.
9179 (LD_DYNAMIC_OPTION): Define.
9180 * configure: Regenerate.
9181 * config.in: Regenerate.
9182 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9183 HAVE_LD_STATIC_DYNAMIC]: Use them.
9185 2011-01-31 Nick Clifton <nickc@redhat.com>
9187 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9188 registers inside interrupt handlers if the handler is not a leaf
9191 2011-01-31 Nick Clifton <nickc@redhat.com>
9193 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9194 reg_renumber returning an INVALID_REGNUM.
9196 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9199 * doc/install.texi: Document host options discarded when cross
9200 configuring target libraries.
9202 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9205 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9208 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9210 (no_real_insns_p, schedule_block, set_priorities): Drop special
9211 treatment of boundary debug insns.
9212 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9213 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9214 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9215 (BOUNDARY_DEBUG_INSN_P): Likewise.
9216 (SCHEDULE_DEBUG_INSN_P): Likewise.
9217 * sched-rgn.c (init_ready_list): Drop special treatment of
9218 boundary debug insns.
9219 * final.c (rest_of_clean-state): Clear notes' BB.
9221 2011-01-31 Alan Modra <amodra@gmail.com>
9223 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9224 toc relative expressions as we do in print_operand_address.
9226 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9228 * doc/extend.texi: Follow spelling conventions.
9229 * doc/invoke.texi: Fix a typo.
9231 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9233 * config/hpux11.opt: New.
9234 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9235 ia64*-*-hpux*): Use hpux11.opt.
9237 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9239 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9242 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9244 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9247 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9249 * doc/install.texi (Binaries): Remove outdated reference for
9250 Motorola 68HC11/68HC12 downloads.
9252 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9254 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9257 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9260 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9263 2011-01-28 Ahmad Sharif <asharif@google.com>
9265 * value-prof.c (check_counter): Corrected error message.
9267 2011-01-29 Jie Zhang <jie@codesourcery.com>
9269 * config/arm/arm.c (arm_legitimize_reload_address): New.
9270 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9271 arm_legitimize_reload_address.
9272 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9274 2011-01-28 Ian Lance Taylor <iant@google.com>
9276 * godump.c (go_define): Ignore macros whose definitions include
9277 two adjacent operands.
9279 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9282 * varasm.c (force_const_mem): Store copy of x in desc->constant
9283 instead of x itself.
9284 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9285 itself into REG_EQUAL note.
9287 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9289 * config/freebsd.opt (posix, rdynamic): New Driver options.
9291 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9293 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9295 * configure: Regenerate.
9297 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9299 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9300 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9302 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9304 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9305 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9306 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9307 (s390_preferred_reload_class): Make static. Change return and
9308 'rclass' argument type to reg_class_t.
9310 2011-01-27 Jan Hubicka <jh@suse.cz>
9313 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9314 (process_function_and_variable_attributes): Check defined weakrefs.
9316 2011-01-27 Martin Jambor <mjambor@suse.cz>
9318 PR tree-optimization/47228
9319 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9320 build_ref_for_offset.
9322 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9324 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9326 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9328 PR rtl-optimization/46856
9329 * postreload.c (reload_combine_recognize_const_pattern): Do not
9330 separate cc0 setter and user on cc0 targets.
9332 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9335 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9336 passed a VOID_TYPE expression, immediately emit an error and
9337 return error_mark_node.
9339 2011-01-26 Jeff Law <law@redhat.com>
9341 PR rtl-optimization/47464
9342 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9343 rather than may_trap_p as needed.
9345 2011-01-26 DJ Delorie <dj@redhat.com>
9347 PR rtl-optimization/46878
9348 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9349 setter/user dependency as well.
9351 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9353 PR rtl-optimization/44469
9354 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9355 after removing trivially dead basic blocks.
9357 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9359 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9360 * config/frv/frv.h (LINK_SPEC): Likewise.
9361 * config/i386/netware.h (LINK_SPEC): Likewise.
9362 * config/m68k/linux.h (ASM_SPEC): Likewise.
9363 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9364 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9365 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9366 * config/sparc/linux.h (ASM_SPEC): Likewise.
9367 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9368 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9370 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9372 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9373 * config/frv/frv.h (ASM_SPEC): Likewise.
9374 * config/m68k/linux.h (ASM_SPEC): Likewise.
9375 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9376 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9377 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9378 * config/sparc/linux.h (ASM_SPEC): Likewise.
9379 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9380 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9382 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9384 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9385 * config/frv/frv.h (LINK_SPEC): Likewise.
9386 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9388 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9390 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9391 * config/frv/frv.h (ASM_SPEC): Likewise.
9392 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9393 * config/m68k/linux.h (ASM_SPEC): Likewise.
9394 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9395 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9396 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9397 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9398 * config/sparc/linux.h (ASM_SPEC): Likewise.
9399 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9400 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9401 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9403 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9406 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9408 (vec_extract_evenodd_help): Ditto.
9409 (vec_extract_evenv4hi): Ditto.
9410 (vec_extract_oddv4hi): Ditto.
9411 (vec_interleave_lowv2si): Ditto.
9412 (vec_interleave_highv2si): Ditto.
9413 (vec_extract_evenv2si): Ditto.
9414 (vec_extract_oddv2si: Ditto.
9415 (vec_pack_trunc_v2si): Ditto.
9417 2011-01-22 Jan Hubicka <jh@suse.cz>
9420 * cgraph.h (cgraph_local_info): New field can_change_signature.
9421 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9422 signature can change.
9423 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9425 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9426 (cgraph_function_versioning): We can not change signature of functions
9427 that don't allow that.
9428 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9429 (lto_input_node): Likewise.
9430 * ipa-inline.c (compute_inline_parameters): Compute
9431 local.can_change_signature.
9432 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9433 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9434 functions that can not change signature.
9435 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9436 init_cumulative_args): Do not use local calling conventions
9437 for functions that can not change signature.
9439 2011-01-22 Jan Hubicka <jh@suse.cz>
9441 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9443 2011-01-26 Richard Guenther <rguenther@suse.de>
9445 PR tree-optimization/47190
9446 * cgraphunit.c (process_common_attributes): New function.
9447 (process_function_and_variable_attributes): Use it.
9449 2011-01-26 Richard Guenther <rguenther@suse.de>
9452 * cgraphbuild.c (record_eh_tables): Record reference to personality
9455 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9458 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9459 non-debug insns from moving up.
9461 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9464 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9465 t-dlldir{,-x} fragment for build and add it to tmake_file.
9466 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9467 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9468 * config/i386/t-dlldir: New file.
9469 (SHLIB_DLLDIR): Define.
9470 * config/i386/t-dlldir-x: New file.
9471 (SHLIB_DLLDIR): Define.
9472 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9473 (SHLIB_INSTALL): Use it.
9475 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9478 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9479 lower bound of the allowed Thumb-2 coprocessor load/store
9480 index range to -256. Add explaining comment.
9482 2011-01-25 Ian Lance Taylor <iant@google.com>
9484 * godump.c (go_define): Improve lexing of macro expansion to only
9485 accept expressions which match Go spec.
9487 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9490 * tree.c (handle_dll_attribute): Handle it.
9491 * doc/extend.texi (@item dllexport): Mention it.
9492 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9494 2011-01-25 Ian Lance Taylor <iant@google.com>
9496 PR tree-optimization/26854
9497 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9498 (decl_jump_unsafe): Move higher in file, with no other change.
9499 (bind): Set has_jump_unsafe_decl if appropriate.
9500 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9501 (check_earlier_gotos): Likewise.
9502 (c_check_switch_jump_warnings): Likewise.
9504 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9506 * doc/invoke.texi (Warning Options): Add missing hyphen.
9507 (-fprofile-dir): Minor grammatical fixes.
9508 (-fbranch-probabilities): Likewise.
9510 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9514 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9516 (no_real_insns_p, schedule_block, set_priorities): Drop special
9517 treatment of boundary debug insns.
9518 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9519 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9520 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9521 (BOUNDARY_DEBUG_INSN_P): Likewise.
9522 (SCHEDULE_DEBUG_INSN_P): Likewise.
9523 * sched-rgn.c (init_ready_list): Drop special treatment of
9524 boundary debug insns.
9525 * final.c (rest_of_clean-state): Clear notes' BB.
9527 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9529 * Makefile.in (LAMBDA_H): Removed.
9530 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9531 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9532 lambda-trans.o, and tree-loop-linear.o.
9533 (lto-symtab.o): Remove dependence on LAMBDA_H.
9534 (tree-loop-linear.o): Remove rule.
9535 (lambda-mat.o): Same.
9536 (lambda-trans.o): Same.
9537 (lambda-code.o): Same.
9538 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9539 (tree-vect-slp.o): Same.
9540 * hwint.h (gcd): Moved here.
9541 (least_common_multiple): Same.
9542 * lambda-code.c: Removed.
9543 * lambda-mat.c: Removed.
9544 * lambda-trans.c: Removed.
9545 * lambda.h: Removed.
9546 * tree-loop-linear.c: Removed.
9547 * lto-symtab.c: Do not include lambda.h.
9548 * omega.c (gcd): Removed.
9549 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9550 * tree-data-ref.c (print_lambda_vector): Moved here.
9551 (lambda_vector_copy): Same.
9552 (lambda_matrix_copy): Same.
9553 (lambda_matrix_id): Same.
9554 (lambda_vector_first_nz): Same.
9555 (lambda_matrix_row_add): Same.
9556 (lambda_matrix_row_exchange): Same.
9557 (lambda_vector_mult_const): Same.
9558 (lambda_vector_negate): Same.
9559 (lambda_matrix_row_negate): Same.
9560 (lambda_vector_equal): Same.
9561 (lambda_matrix_right_hermite): Same.
9562 * tree-data-ref.h: Do not include lambda.h.
9563 (lambda_vector): Moved here.
9564 (lambda_matrix): Same.
9565 (dependence_level): Same.
9566 (lambda_transform_legal_p): Removed declaration.
9567 (lambda_collect_parameters): Same.
9568 (lambda_compute_access_matrices): Same.
9569 (lambda_vector_gcd): Same.
9570 (lambda_vector_new): Same.
9571 (lambda_vector_clear): Same.
9572 (lambda_vector_lexico_pos): Same.
9573 (lambda_vector_zerop): Same.
9574 (lambda_matrix_new): Same.
9575 * tree-flow.h (least_common_multiple): Removed declaration.
9576 * tree-parloops.c (lambda_trans_matrix): Moved here.
9578 (LTM_ROWSIZE): Same.
9579 (LTM_COLSIZE): Same.
9580 (LTM_DENOMINATOR): Same.
9581 (lambda_trans_matrix_new): Same.
9582 (lambda_matrix_vector_mult): Same.
9583 (lambda_transform_legal_p): Same.
9584 * tree-pass.h (pass_linear_transform): Removed declaration.
9585 * tree-ssa-loop.c (tree_linear_transform): Removed.
9586 (gate_tree_linear_transform): Removed.
9587 (pass_linear_transform): Removed.
9588 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9589 flag_loop_interchange.
9591 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9593 PR tree-optimization/47265
9594 PR tree-optimization/47443
9595 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9596 if name still has some uses.
9598 2011-01-25 Martin Jambor <mjambor@suse.cz>
9600 PR tree-optimization/47382
9601 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9602 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9604 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9606 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9607 sjlj_except_unwind_info.
9609 2011-01-25 Richard Guenther <rguenther@suse.de>
9611 PR tree-optimization/47426
9612 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9613 visible functions results escape.
9615 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9618 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9619 (arm_get_frame_offsets): Use it.
9621 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9622 Jakub Jelinek <jakub@redhat.com>
9624 PR tree-optimization/47271
9625 * tree-if-conv.c (bb_postdominates_preds): New.
9626 (if_convertible_bb_p): Call bb_postdominates_preds.
9627 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9628 (predicate_scalar_phi): Call bb_postdominates_preds.
9630 2011-01-25 Nick Clifton <nickc@redhat.com>
9632 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9633 * config/rx/rx.c (rx_function_value): Likewise.
9634 (rx_promote_function_mode): Likewise.
9635 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9636 in order to make it legitimate.
9637 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9638 make sure that the first operand is the same as the result register.
9639 (addsi3_unspec): Delete.
9640 (subdi3): Do not accept immediate operands.
9641 (subdi3_internal): Likewise.
9643 2011-01-25 Jeff Law <law@redhat.com>
9645 PR rtl-optimization/37273
9646 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9647 handle them like argument loads from stack slots. Do not double
9648 count memory for memory constants and argument loads from stack slots.
9650 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9652 PR tree-optimization/47427
9653 PR tree-optimization/47428
9654 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9655 coalesce if the new root var would be TREE_READONLY.
9657 2011-01-25 Richard Guenther <rguenther@suse.de>
9660 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9661 correct type for TBAA.
9663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9665 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9666 (close_phi_written_to_memory): Call for_each_index with
9667 dr_indices_valid_in_loop.
9669 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9671 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9672 when it is initialized.
9674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9676 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9677 call to graphite_find_data_references_in_stmt.
9678 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9679 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9680 call to graphite_find_data_references_in_stmt.
9681 (analyze_drs_in_stmts): Same.
9682 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9683 in which the scalar analysis of indices is performed.
9684 (create_data_ref): Same. Update call to dr_analyze_indices.
9685 (find_data_references_in_stmt): Update call to create_data_ref.
9686 (graphite_find_data_references_in_stmt): Same.
9687 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9689 (create_data_ref): Same.
9690 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9691 call to create_data_ref.
9693 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9695 * graphite-sese-to-poly.c (build_poly_scop): Move
9696 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9700 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9701 VAR_DECL, PARM_DECL, and RESULT_DECL.
9703 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9705 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9707 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9708 that have already been marked as PBB_IS_REDUCTION.
9710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9712 * graphite-scop-detection.c (same_close_phi_node): New.
9713 (remove_duplicate_close_phi): New.
9714 (make_close_phi_nodes_unique): New.
9715 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9717 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9719 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9720 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9721 of both data references to be the same.
9723 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9725 * graphite-dependences.c (build_lexicographical_constraint): Remove
9727 (build_lexicographical_constraint): Adjust call to
9728 ppl_powerset_is_empty.
9729 (dependence_polyhedron): Same.
9730 (graphite_legal_transform_dr): Same.
9731 (graphite_carried_dependence_level_k): Same.
9732 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9734 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9738 * graphite-sese-to-poly.c
9739 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9740 (close_phi_written_to_memory): New.
9741 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9746 * doc/install.texi: Update the expected version number of PPL to 0.11.
9747 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9748 #if PPL_VERSION_MINOR < 11.
9750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9752 * graphite-dependences.c: Include graphite-cloog-util.h.
9753 (new_poly_ddr): Inlined into dependence_polyhedron.
9754 (free_poly_ddr): Moved close by new_poly_ddr.
9755 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9756 Early return NULL when ppl_powerset_is_empty returns true.
9757 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9758 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9759 (graphite_legal_transform_dr): Call new_poly_ddr.
9760 (graphite_carried_dependence_level_k): Same.
9761 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9762 (dot_transformed_deps_stmt_1): Removed.
9763 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9764 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9765 (dot_deps_1): Call dot_deps_2.
9766 * Makefile.in (graphite-dependences.o): Add missing dependence on
9767 graphite-cloog-util.h.
9769 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9771 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9772 (build_lexicographical_constraint): Same.
9773 (dependence_polyhedron_1): Same.
9774 (graphite_legal_transform_dr): Same.
9775 (graphite_carried_dependence_level_k): Same.
9776 * graphite-ppl.c (ppl_powerset_is_empty): New.
9777 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9778 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9780 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9782 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9783 the "a followed by b" relation and document it.
9785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9787 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9788 iteration when the bag of constraints is empty.
9790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9792 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9794 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9796 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9797 nest and two loop depths as parameters.
9798 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9799 lst_perfect_nestify.
9801 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9803 * graphite-dependences.c (print_pddr): Call
9804 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9806 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9808 * graphite-ppl.c (debug_gmp_value): New.
9809 * graphite-ppl.h (debug_gmp_value): Declared.
9811 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9813 * doc/install.texi: Document availability of cloog-0.16.
9815 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9817 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9818 invalid postdominance info.
9820 2011-01-24 Jan Hubicka <jh@suse.cz>
9823 * doc/extend.texi (weak pragma): Drop claim that it must
9824 appear before definition.
9825 * varasm.c (merge_weak, declare_weak): Only sanity check
9826 that DECL is not output at a time it is declared weak.
9828 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9830 * machmode.def: Fixed comments.
9832 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9834 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9836 2011-01-24 Paul Koning <ni1d@arrl.net>
9838 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9841 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9844 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9845 (block_info): Add scanned and prev.
9846 (move_or_delete_vzeroupper_2): Return if the basic block
9847 has been scanned and the upper 128bit state is unchanged
9849 (move_or_delete_vzeroupper_1): Return true if the exit
9851 (move_or_delete_vzeroupper): Visit basic blocks using the
9852 work-list based algorithm based on vt_find_locations in
9855 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9857 2011-01-24 Nick Clifton <nickc@redhat.com>
9859 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9860 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9861 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9862 then define __v850e1__.
9863 * doc/invoke.texi: Document -mv850es.
9865 2011-01-24 Richard Henderson <rth@redhat.com>
9867 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9868 compound unordered comparisons.
9869 * config/rx/rx.c (rx_split_fp_compare): Remove.
9870 * config/rx/rx-protos.h: Update.
9871 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9872 (cbranchsf4): Don't call rx_split_fp_compare.
9873 (*cbranchsf4): Use rx_split_cbranch.
9874 (*cmpsf): Don't accept "i" constraint.
9875 (*conditional_branch): Only valid after reload.
9876 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9878 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9881 * config/rs6000/altivec.md (vector constant splitters): Add
9882 support for creating vector single precision constants if -mvsx is
9883 used and we would create the constant using Altivec primitives.
9885 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9886 Richard Sandiford <rdsandiford@googlemail.com>
9888 PR rtl-optimization/47166
9889 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9890 mechanism for PRE_MODIFY and POST_MODIFY.
9891 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9894 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9896 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9898 2011-01-22 Jan Hubicka <jh@suse.cz>
9901 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9903 2011-01-22 Jan Hubicka <jh@suse.cz>
9905 PR tree-optimization/43884
9907 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9908 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9910 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9912 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9913 * config/s390/s390.c (s390_register_move_cost,
9914 s390_memory_move_cost): New.
9915 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9917 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9920 * except.c (sjlj_assign_call_site_values): Move setting the
9921 crtl->uses_eh_lsda flag to ...
9922 (sjlj_mark_call_sites): ... here.
9923 (sjlj_emit_function_enter): Support NULL dispatch label.
9924 (sjlj_build_landing_pads): In a function with no landing pads
9925 that still has must-not-throw regions, generate code to register
9926 a personality function with empty LSDA.
9928 2011-01-21 Richard Henderson <rth@redhat.com>
9930 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9932 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9934 * compare-elim.c: New file.
9935 * Makefile.in (OBJS-common): Add it.
9936 (compare-elim.o): New.
9937 * common.opt (fcompare-elim): New.
9938 * opts.c (default_options_table): Add OPT_fcompare_elim.
9939 * tree-pass.h (pass_compare_elim_after_reload): New.
9940 * passes.c (init_optimization_passes): Add it.
9941 * recog.h: Protect against re-inclusion.
9942 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9943 * doc/invoke.texi (-fcompare-elim): Document it.
9944 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9945 * doc/tm.texi: Rebuild.
9947 2011-01-22 Nick Clifton <nickc@redhat.com>
9949 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9950 rx_split_fp_compare.
9952 2011-01-22 Nick Clifton <nickc@redhat.com>
9954 * config/rx/rx.md (UNSPEC_CONST): New.
9955 (deallocate_and_return): Wrap the amount popped off the stack in
9956 an UNSPEC_CONST in order to stop it being rejected by
9957 -mmax-constant-size.
9958 (pop_and_return): Add a "(return)" rtx.
9959 (call): Drop the immediate operand.
9960 (call_internal): Likewise.
9961 (call_value): Likewise.
9962 (call_value_internal): Likewise.
9963 (sibcall_internal): Likewise.
9964 (sibcall_value_internal): Likewise.
9965 (sibcall): Likewise. Generate an explicit call using
9967 (sibcall_value): Likewise.
9968 (mov<>): FAIL if a constant operand is not legitimate.
9969 (addsi3_unpsec): New pattern.
9971 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9972 (ok_for_max_constant): New function.
9973 (gen_safe_add): New function.
9974 (rx_expand_prologue): Use gen_safe_add.
9975 (rx_expand_epilogue): Likewise.
9976 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9979 2011-01-21 Jeff Law <law@redhat.com>
9981 PR tree-optimization/47053
9982 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9983 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9984 statements are deleted.
9985 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9986 is nonempty, then purge dead edges and cleanup the CFG.
9988 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9992 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9994 * tree-dfa.c (create_var_ann): Mark variable as used.
9996 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9999 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10000 notes from other section in hot/cold partitioning even if
10001 last_action is -3. Increment call_site_base.
10003 PR rtl-optimization/47366
10004 * fwprop.c (forward_propagate_into): Return bool. If
10005 any changes are made, -fnon-call-exceptions is used and
10006 REG_EH_REGION note is present, call purge_dead_edges
10007 and return true if it purged anything.
10008 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10009 any EH edges were purged.
10011 2011-01-21 Jeff Law <law@redhat.com>
10013 PR rtl-optimization/41619
10014 * caller-save.c (setup_save_areas): Break out code to determine
10015 which hard regs are live across calls by examining the reload chains
10016 so that it is always used.
10017 Eliminate code which checked REG_N_CALLS_CROSSED.
10019 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10021 PR tree-optimization/47355
10022 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10023 NOP has non-debug uses beyond PHIs in new_bb.
10025 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10028 * cfgexpand.c (account_used_vars_for_block): Only account vars
10029 that are annotated as used.
10030 (estimated_stack_frame_size): Don't set TREE_USED.
10031 * tree-dfa.c (create_var_ann): Mark variable as used.
10033 2011-01-21 Richard Guenther <rguenther@suse.de>
10035 PR middle-end/47395
10036 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10038 2011-01-21 Richard Guenther <rguenther@suse.de>
10040 PR tree-optimization/47365
10041 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10042 (vn_reference_lookup_pieces): Adjust.
10043 (vn_reference_lookup): Likewise.
10044 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10045 (vn_reference_lookup_3): Only look through kills if in
10046 VN_WALKREWRITE mode.
10047 (vn_reference_lookup_pieces): Adjust.
10048 (vn_reference_lookup): Likewise.
10049 (visit_reference_op_load): Likewise.
10050 (visit_reference_op_store): Likewise.
10051 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10052 (compute_avail): Likewise.
10053 (eliminate): Likewise.
10055 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10057 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10058 DECL_IGNORED_P non-reg vars if they are used.
10060 PR tree-optimization/47391
10061 * varpool.c (const_value_known_p): Return false if
10064 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
10067 * config/i386/i386.c (ix86_local_alignment): Handle
10068 case for va_list_type_node is nil.
10069 (ix86_canonical_va_list_type): Likewise.
10071 2011-01-21 Alan Modra <amodra@gmail.com>
10073 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10074 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10076 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10078 * config/arm/arm.md (define_attr type): Rename f_load
10079 and f_store to f_fpa_load and f_fpa_store. Update.
10080 (write_conflict): Deal with rename fallout.
10081 (*push_fp_multi): Likewise.
10082 * config/arm/fpa.md (f_load): Use f_fpa_load.
10083 (f_store): Use f_fpa_store.
10084 (*movsf_fpa): Likewise.
10085 (*movdf_fpa): Likewise.
10086 (*movxf_fpa): Likewise.
10087 (*thumb2_movsf_fpa): Likewise.
10088 (*thumb2_movdf_fpa): Likewise.
10089 (*thumb2_movxf_fpa): Likewise.
10090 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10091 f_loadd and f_stored.
10092 (*thumb2_movdi_vfp): Likewise.
10093 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10094 (*thumb2_movsi_vfp): Likewise.
10095 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10096 Use f_loads instead of f_load.
10097 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10099 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10101 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10102 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10103 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10104 (xtensa_mode_dependent_address_p): New function.
10105 (constantpool_address_p): Make static. Change return type to bool.
10106 Change argument type to const_rtx. Use CONST_INT_P predicate.
10108 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10111 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10113 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10116 * cfgexpand.c (expand_debug_expr): Instead of generating
10117 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10120 2011-01-20 Richard Guenther <rguenther@suse.de>
10122 PR middle-end/47370
10123 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10124 the pointer operand of MEM_REFs.
10126 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10128 PR tree-optimization/46130
10129 * ipa-split.c (consider_split): If return_bb contains non-virtual
10130 PHIs other than for retval or if split_function would not adjust it,
10133 2011-01-20 Richard Guenther <rguenther@suse.de>
10135 PR tree-optimization/47167
10136 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10137 Revert previous change, only avoid enumeral type changes.
10139 2011-01-19 Mike Stump <mikestump@comcast.net>
10141 * doc/tm.texi.in (BRANCH_COST): Englishify.
10142 * doc/tm.texi (BRANCH_COST): Likewise.
10144 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10147 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10148 (gen_scheduled_generic_parms_dies): New functions.
10149 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10150 generation for the end of CU compilation.
10151 (dwarf2out_finish): Generate template parameters DIEs here.
10153 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10156 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10157 debug bind stmt on merge edges.
10159 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10163 * function.c (instantiate_expr): Instantiate incoming rtl of
10164 implicit arguments, and recurse on VALUE_EXPRs.
10165 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10166 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10168 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10170 * c-parser.c (c_parser_for_statement): Initialize
10171 collection_expression.
10173 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10175 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10177 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10179 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10180 (LINK_SHLIB_SPEC): Don't use %(link_path).
10181 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10183 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10185 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10186 (NO_SHARED_LIB_SUPPORT): Remove.
10187 (LINK_SHLIB_SPEC): Remove one conditional definition.
10189 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10191 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10193 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10194 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10195 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10196 %{call_shared} and conditionals on these options not being passed.
10197 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10200 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10202 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10205 * ipa-split.c: Spelling fixes.
10207 2011-01-19 Richard Henderson <rth@redhat.com>
10209 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10210 (*mulsi3): Likewise.
10212 * longlong.h [__mn10300__] (count_leading_zeros): New.
10213 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10214 [__mn10300__] (add_ssaaaa, subddmmss): New.
10215 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10216 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10218 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10220 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10222 2011-01-19 Richard Henderson <rth@redhat.com>
10224 * config/mn10300/mn10300.md (addsi3_flags): New.
10225 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10226 (subsi3_flags, subc_internal, subdi3): New.
10227 (subdi3_internal, *subdi3_degenerate): New.
10228 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10230 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10231 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10232 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10233 * config/mn10300/mn10300-protos.h: Update.
10234 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10235 (return_ret): Likewise. Rename from return_internal_regs.
10236 (return_internal): Remove.
10238 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10239 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10240 (mn10300_legitimate_constant_p): Likewise.
10241 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10242 (mn10300_frame_size): New.
10243 (mn10300_expand_prologue): Use it.
10244 (mn10300_expand_epilogue): Likewise.
10245 (mn10300_initial_offset): Likewise.
10246 * config/mn10300/mn10300-protos.h: Update.
10247 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10248 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10249 (prologue, epilogue, return_internal): Tidy output code.
10250 (mn10300_store_multiple_operation, return): Likewise.
10251 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10252 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10253 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10254 (load_pic, am33_load_pic): New.
10255 (mn10300_load_pic0, mn10300_load_pic1): New.
10257 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10258 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10259 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10260 (cc_flags_for_mode, cc_flags_for_code): New.
10261 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10262 overflow flag is not valid. Validate that the flags we need
10263 for the comparison are valid.
10264 (mn10300_output_cmp): Remove.
10265 (mn10300_output_add): New.
10266 (mn10300_select_cc_mode): Use cc_flags_for_code.
10267 (mn10300_split_cbranch): New.
10268 (mn10300_match_ccmode): New.
10269 (mn10300_split_and_operand_count): New.
10270 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10272 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10273 (addsi3): ... here. Use mn10300_output_add.
10274 (*addsi3_flags): New.
10275 (*am33_subsi3, *mn10300_subsi3): Merge...
10276 (subsi3): ... here. Use attribute isa.
10277 (*subsi3_flags): New.
10278 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10280 (*am33_andsi3, *mn10300_andsi3): Merge...
10281 (andsi3): ... here.
10282 (*andsi3_flags): New.
10283 (andsi3 splitters): New.
10284 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10285 (iorsi3): ... here.
10286 (*iorsi3_flags): New.
10287 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10288 (xorsi3): ... here.
10289 (*xorsi3_flags): New.
10290 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10291 (one_cmplsi2): ... here.
10292 (*one_cmplsi2_flags): New.
10293 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10294 instead of "dax" in constraints. Use mn10300_split_cbranch.
10295 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10296 use matching constraints to eliminate a self-comparison.
10297 (*integer_conditional_branch): Rename from integer_conditional_branch.
10298 Use int_mode_flags to match CC_REG.
10299 (*cbranchsi4_btst, *btstsi): New.
10300 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10301 mn10300_split_cbranch.
10302 (*am33_cmpsf): Rename from am33_cmpsf.
10303 (*float_conditional_branch): Rename from float_conditional_branch.
10304 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10305 (zero_extendqisi2): ... here.
10306 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10307 (zero_extendhisi2): ... here.
10308 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10309 (extendqisi2): ... here.
10310 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10311 (extendhisi2): ... here.
10312 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10313 (ashlsi3): ... here.
10314 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10315 (lshrsi3): ... here.
10316 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10317 (ashrsi3): ... here.
10318 (consecutive add peephole): Remove.
10319 * config/mn10300/predicates.md (label_ref_operand): New.
10320 (int_mode_flags): New.
10321 (CCZN_comparison_operator): New.
10323 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10324 (throughput_42_latency_43): New reservation.
10325 (mulsidi3, umulsidi3): New expanders.
10326 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10327 the MDR register to allocation; separately allocate the low and
10328 high parts of the DImode result.
10329 (umulsidi3_internal): Similarly.
10330 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10331 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10332 (udivsi3, umodsi3): Remove.
10333 (udivmodsi4, divmodsi4): New expanders.
10334 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10335 (*divmodsi4): Simiarly.
10336 (ext_internal): New.
10338 * config/mn10300/constraints.md ("z"): New constraint.
10339 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10340 (FIXED_REGISTERS): Don't fix MDR.
10341 (CALL_USED_REGSITERS): Reformat nicely.
10342 (REG_ALLOC_ORDER): Add MDR.
10343 (enum regclass): Add MDR_REGS.
10344 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10345 (IRA_COVER_CLASSES): Add MDR_REGS.
10346 (REGNO_REG_CLASS): Handle MDR_REG.
10347 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10348 (mn10300_register_move_cost): Likewise.
10349 * config/mn10300/mn10300.md (MDR_REG): New.
10350 (*movsi_internal): Handle moves to/from MDR_REGS.
10352 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10354 (mn10300_secondary_reload): Tidy combination reload classes.
10355 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10356 addresses for AM33. Allow symbolic offsets for reg+imm.
10357 (mn10300_regno_in_class_p): New.
10358 (mn10300_legitimize_reload_address): New.
10359 * config/mn10300/mn10300.h (enum reg_class): Remove
10360 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10361 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10362 SP_OR_GENERAL_REGS.
10363 (REG_CLASS_NAMES): Update to match.
10364 (REG_CLASS_CONTENTS): Likewise.
10365 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10366 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10367 (REGNO_IN_RANGE_P): Remove.
10368 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10369 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10370 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10371 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10372 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10373 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10374 (REGNO_GENERAL_P): New.
10375 (HAVE_POST_MODIFY_DISP): New.
10376 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10377 (LEGITIMIZE_RELOAD_ADDRESS): New.
10378 * config/mn10300/mn10300-protos.h: Update.
10380 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10381 DATA_REGS for AM33 stack-pointer destination.
10382 (mn10300_preferred_output_reload_class): Likewise.
10383 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10384 into a form appropriate for ...
10385 (TARGET_SECONDARY_RELOAD): New.
10386 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10387 * config/mn10300/mn10300-protos.h: Update.
10388 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10389 reload_insi; use the "A" constraint for the scratch; handle AM33
10390 moves of sp to non-address registers.
10392 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10393 (*movqi_internal): ... here.
10394 (*am33_movhi, *mn10300_movhi): Merge into...
10395 (*movhi_internal): ... here.
10396 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10397 as the source/destination of moves from/to SP.
10398 (movsf): Only allow for AM33-2.
10399 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10400 any integer constant constraint. Only allow for AM33-2. Tidy
10401 all of the alternative outputs.
10402 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10403 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10405 (udivsi3, umodsi3): New patterns for MN103 only.
10407 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10409 * doc/tm.texi.in: Spell out that a lack of register class unions
10411 * doc/tm.texi: Regenerate.
10413 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10415 PR rtl-optimization/47337
10416 * dce.c (check_argument_store): New function.
10417 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10419 PR tree-optimization/47290
10420 * tree-eh.c (infinite_empty_loop_p): New function.
10421 (cleanup_empty_eh): Use it.
10423 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10426 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10427 (a64_expand_widen_sum): Ditto.
10428 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10429 (vec_extract_evenodd_help): Ditto.
10430 (vec_extract_evenv4hi): Ditto.
10431 (vec_extract_oddv4hi): Ditto.
10432 (vec_extract_evenv2si): Ditto.
10433 (vec_extract_oddv2si): Ditto.
10434 (vec_extract_evenv2sf): Ditto.
10435 (vec_extract_oddv2sf): Ditto.
10436 (vec_pack_trunc_v4hi: Ditto.
10437 (vec_pack_trunc_v2si): Ditto.
10438 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10439 (vec_interleave_highv8qi): Ditto.
10441 (vec_extract_oddv8qi): Ditto.
10442 (vec_interleave_lowv4hi): Ditto.
10443 (vec_interleave_highv4hi): Ditto.
10444 (vec_interleave_lowv2si): Ditto.
10445 (vec_interleave_highv2si): Ditto.
10447 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10449 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10450 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10451 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10452 (pa_c_mode_for_suffix): New.
10453 (TARGET_EXPAND_BUILTIN): Define.
10454 (TARGET_C_MODE_FOR_SUFFIX): Define.
10455 (pa_builtins): Define.
10456 (pa_init_builtins): Register __float128 type and init new support
10458 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10459 * config/pa/quadlib.c (_U_Qfcopysign): New.
10461 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10463 PR middle-end/46894
10464 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10465 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10468 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10470 PR tree-optimization/47179
10471 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10472 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10474 2011-01-18 Richard Guenther <rguenther@suse.de>
10476 PR rtl-optimization/47216
10477 * emit-rtl.c: Include tree-flow.h.
10478 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10479 of replicating it with different semantics.
10480 * Makefile.in (emit-rtl.o): Adjust.
10482 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10484 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10485 (cortex_a9_dp): Handle neon types correctly.
10487 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10489 PR rtl-optimization/47299
10490 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10491 subtarget. Use normal multiplication if both operands are constants.
10492 * expmed.c (expand_widening_mult): Don't try to optimize constant
10493 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10496 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10498 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10499 spacing after 'e.g.', typos, comma, hyphenation.
10501 2011-01-17 Richard Henderson <rth@redhat.com>
10503 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10504 (rx_restricted_mem_operand): New.
10505 (rx_shift_operand): Use register_operand.
10506 (rx_source_operand, rx_compare_operand): Likewise.
10507 * config/rx/rx.md (addsi3_flags): New expander.
10508 (adddi3): Rewrite as expander.
10509 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10510 (subsi3_flags): New expander.
10511 (subdi3): Rewrite as expander.
10512 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10514 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10515 (rx_init_builtins): Remove sat builtin.
10516 (rx_expand_builtin): Likewise.
10517 * config/rx/rx.md (ssaddsi3): New.
10518 (*sat): Rename from sat. Represent the CC_REG input.
10520 * config/rx/predicates.md (rshift_operator): New.
10521 * config/rx/rx.c (rx_expand_insv): Remove.
10522 * config/rx/rx-protos.h: Update.
10523 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10524 operand to the canonical position.
10525 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10526 (*bitclr, *bitclr_in_memory): Similarly.
10527 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10528 (insv): Retain the zero_extract in the expansion.
10530 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10531 (bswaphi2, bitinvert, revw): Likewise.
10533 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10534 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10535 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10536 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10537 (bitset, bitset_in_memory): Likewise.
10538 (bitinvert, bitinvert_in_memory): Likewise.
10539 (bitclr, bitclr_in_memory): Likewise.
10540 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10541 (rx_strend, rx_cmpstrn): Likewise.
10542 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10543 (bitop peep2 patterns): Remove.
10545 * config/rx/rx.c (rx_match_ccmode): New.
10546 * config/rx/rx-protos.h: Update.
10547 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10548 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10549 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10550 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10551 (fix_truncsfsi2, floatsisf2): Likewise.
10552 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10553 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10554 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10555 (*subsi3_flags, *xorsi3_flags): New.
10557 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10559 * config/rx/rx.c (rx_print_operand): Remove workaround for
10560 unsplit comparison operations.
10562 * config/rx/rx.md (movsicc): Split after reload.
10563 (*movsicc): Merge *movsieq and *movsine via match_operator.
10564 (*stcc): New pattern.
10566 * config/rx/rx.c (rx_float_compare_mode): Remove.
10567 * config/rx/rx.h (rx_float_compare_mode): Remove.
10568 * config/rx/rx.md (cstoresi4): Split after reload.
10569 (*sccc): New pattern.
10571 * config/rx/predicates.md (label_ref_operand): New.
10572 (rx_z_comparison_operator): New.
10573 (rx_zs_comparison_operator): New.
10574 (rx_fp_comparison_operator): New.
10575 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10576 Validate that the flags are set properly for the comparison.
10577 (rx_gen_cond_branch_template): Remove.
10578 (rx_cc_modes_compatible): Remove.
10579 (mode_from_flags): New.
10580 (flags_from_code): Rename from flags_needed_for_conditional.
10581 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10582 (rx_select_cc_mode): Likewise.
10583 (rx_split_fp_compare): New.
10584 (rx_split_cbranch): New.
10585 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10586 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10587 (*cbranchsf4): Similarly.
10588 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10589 match_operator and rx_split_cbranch.
10590 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10591 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10592 (*cmpsi): Rename from cmpsi.
10593 (*tstsi): Rename from tstsi.
10594 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10595 (*conditional_branch): Rename from conditional_branch.
10596 (*reveresed_conditional_branch): Remove.
10597 (b<code>): Remove expander.
10598 * config/rx/rx-protos.h: Update.
10600 * config/rx/rx.c (rx_compare_redundant): Remove.
10601 * config/rx/rx.md (cmpsi): Don't use it.
10602 * config/rx/rx-protos.h: Update.
10604 * config/rx/rx-modes.def (CC_F): New mode.
10605 * config/rx/rx.c (rx_select_cc_mode): New.
10606 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10607 * config/rx/rx-protos.h: Update.
10609 2011-01-17 Richard Henderson <rth@redhat.com>
10611 * except.c (dump_eh_tree): Fix stray ; after for statement.
10613 2011-01-17 Richard Guenther <rguenther@suse.de>
10615 PR tree-optimization/47313
10616 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10617 handling before copying the body. Properly deal with
10618 by-reference result in SSA form.
10620 2011-01-17 Ian Lance Taylor <iant@google.com>
10623 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10624 (struct_value_alias_set): Don't define.
10625 (sparc_option_override): Don't set sparc_sr_alias_set and
10626 struct_value_alias_set.
10627 (save_or_restore_regs): Use gen_frame_mem rather than calling
10629 (sparc_struct_value_rtx): Likewise.
10631 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10634 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10635 (_mm_maskstore_pd): Likewise.
10636 (_mm_maskload_ps): Likewise.
10637 (_mm_maskstore_ps): Likewise.
10638 (_mm256_maskload_pd): Change mask to __m256i.
10639 (_mm256_maskstore_pd): Likewise.
10640 (_mm256_maskload_ps): Likewise.
10641 (_mm256_maskstore_ps): Likewise.
10643 * config/i386/i386-builtin-types.def: Updated.
10644 (ix86_expand_special_args_builtin): Likewise.
10646 * config/i386/i386.c (bdesc_special_args): Update
10647 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10648 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10649 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10650 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10652 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10653 Use <avxpermvecmode> on mask register.
10654 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10656 2011-01-17 Olivier Hainque <hainque@adacore.com>
10657 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10658 Eric Botcazou <ebotcazou@adacore.com>
10661 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10662 if <= USHRT_MAX in 32-bit mode.
10664 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10666 * doc/install.texi (Configuration, Specific): Wrap long
10667 lines in examples. Allow line wrapping in long options
10668 and URLs where beneficial for PDF output.
10670 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10672 * config/mips/mips.c (mips_classify_symbol): Don't return
10673 SYMBOL_PC_RELATIVE for nonlocal labels.
10675 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10677 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10679 2011-01-15 Jan Hubicka <jh@suse.cz>
10681 PR tree-optimization/47276
10682 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10683 declarations as needed.
10685 2011-01-15 Martin Jambor <mjambor@suse.cz>
10687 * common.opt (fdevirtualize): New flag.
10688 * doc/invoke.texi (Option Summary): Document it.
10689 * opts.c (default_options_table): Add devirtualize flag.
10690 * ipa-prop.c (detect_type_change): Return immediately if
10691 devirtualize flag is not set.
10692 (detect_type_change_ssa): Likewise.
10693 (compute_known_type_jump_func): Likewise.
10694 (ipa_analyze_virtual_call_uses): Likewise.
10696 2011-01-14 Martin Jambor <mjambor@suse.cz>
10698 PR tree-optimization/45934
10699 PR tree-optimization/46302
10700 * ipa-prop.c (type_change_info): New type.
10701 (stmt_may_be_vtbl_ptr_store): New function.
10702 (check_stmt_for_type_change): Likewise.
10703 (detect_type_change): Likewise.
10704 (detect_type_change_ssa): Likewise.
10705 (compute_complex_assign_jump_func): Check for dynamic type change.
10706 (compute_complex_ancestor_jump_func): Likewise.
10707 (compute_known_type_jump_func): Likewise.
10708 (compute_scalar_jump_functions): Likewise.
10709 (ipa_analyze_virtual_call_uses): Likewise.
10710 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10712 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10714 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10715 * config/i386/i386.opt (msse5): New Alias.
10717 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10719 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10720 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10721 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10722 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10726 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10728 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10729 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10730 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10731 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10733 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10735 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10737 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10739 2011-01-14 Mike Stump <mikestump@comcast.net>
10741 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10742 * config/fr30/fr30.md: Likweise
10743 (movsi_push): Likewise.
10744 (movsi_pop): Likewise.
10745 (enter_func): Likewise.
10746 * config/moxie/moxie.md (movsi_push): Likewise.
10747 (movsi_pop): Likewise.
10749 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10751 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10752 %{no_archive} %{exact_version}.
10753 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10754 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10755 %{no_archive} %{exact_version}.
10756 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10757 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10758 * config/mips/vxworks.h: Likewise.
10760 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10762 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10766 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10767 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10771 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10776 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10778 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10779 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10781 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10782 Don't handle -shlib.
10784 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10786 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10787 (CC1_SPEC): Don't handle -profile.
10789 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10791 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10792 * config/mips/mips.h (CC1_SPEC): Likewise.
10794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10796 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10797 * config/mips/mips.h (CC1_SPEC): Likewise.
10799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10801 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10802 * config/m32r/linux.h (LINK_SPEC): Likewise.
10803 * config/mips/linux.h (LINK_SPEC): Likewise.
10804 * config/mips/linux64.h (LINK_SPEC): Likewise.
10805 * config/sparc/linux.h (LINK_SPEC): Likewise.
10806 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10807 LINK_SPEC): Likewise.
10808 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10810 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10812 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10814 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10818 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10819 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10823 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10825 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10827 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10828 supports -Bstatic/-Bdynamic.
10829 * configure: Regenerate.
10831 2011-01-14 Jan Hubicka <jh@suse.cz>
10832 Jack Howarth <howarth@bromo.med.uc.edu>
10835 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10836 when checking debug_info_level. Test write_symbols instead of
10837 debug_hooks->var_location when setting flag_var_tracking_uninit.
10839 2011-01-14 Richard Guenther <rguenther@suse.de>
10841 PR tree-optimization/47179
10842 * target.def (ref_may_alias_errno): New target hook.
10843 * targhooks.h (default_ref_may_alias_errno): Declare.
10844 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10845 (default_ref_may_alias_errno): New function.
10846 * target.h (struct ao_ref_s): Declare.
10847 * tree-ssa-alias.c: Include target.h.
10848 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10849 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10850 (targhooks.o): Likewise.
10851 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10852 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10854 2011-01-14 Richard Guenther <rguenther@suse.de>
10856 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10858 2011-01-14 Richard Guenther <rguenther@suse.de>
10860 PR tree-optimization/47280
10861 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10862 return CFG changes.
10863 (tree_ssa_forward_propagate_single_use_vars): Deal with
10864 CFG changes from associate_plusminus.
10866 2011-01-14 Richard Guenther <rguenther@suse.de>
10868 PR middle-end/47281
10870 2011-01-11 Richard Guenther <rguenther@suse.de>
10872 PR tree-optimization/46076
10873 * tree-ssa.c (useless_type_conversion_p): Conversions from
10874 unprototyped to empty argument list function types are useless.
10876 2011-01-14 Richard Guenther <rguenther@suse.de>
10878 PR tree-optimization/47286
10879 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10881 2011-01-14 Martin Jambor <mjambor@suse.cz>
10883 PR middle-end/46823
10884 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10886 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10888 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10889 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10890 * config/xtensa/xtensa.c (xtensa_libcall_value,
10891 xtensa_function_value_regno_p): New functions.
10892 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10894 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10897 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10899 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10900 New function prototype.
10901 * config/i386/winnt.c (i386_pe_assemble_visibility):
10902 Warn only if attribute was specified by user.
10904 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10907 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10909 (floatunsdidf2_fcfidu): Ditto.
10911 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10913 * config/s390/s390.c (print_operand_address): Replace 'error' with
10914 'output_operand_lossage'.
10915 (print_operand): Likewise.
10917 2011-01-13 Jeff Law <law@redhat.com>
10919 PR rtl-optimization/39077
10920 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10921 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10922 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10923 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10924 * gcse.c (prune_insertions_deletions): New function.
10925 (compute_pre_data): Use it.
10927 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10930 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10932 (prune_unused_types_mark): Use it.
10934 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10936 PR rtl-optimization/45352
10937 * sel-sched.c: Update copyright years.
10938 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10939 in the advancing loop when we have issued issue_rate insns.
10941 2011-01-12 Richard Henderson <rth@redhat.com>
10943 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10944 (TARGET_MD_ASM_CLOBBERS): New.
10946 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10947 (TARGET_DELEGITIMIZE_ADDRESS): New.
10949 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10950 (clzsi2, *bsch): New patterns.
10952 * config/mn10300/mn10300.md (INT): New mode iterator.
10953 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10955 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10956 flag_split_wide_types.
10958 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10959 (mn10300_trampoline_init): Rewrite without a template, an immediate
10960 load and a direct branch.
10961 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10963 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10965 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10966 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10967 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10968 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10970 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10973 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10976 2011-01-12 Jan Hubicka <jh@suse.cz>
10979 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10980 (PLUGIN_COND_CLOSE): New macro.
10981 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10983 2011-01-12 Richard Guenther <rguenther@suse.de>
10986 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10987 register variables in a MEM_REF.
10989 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10991 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10992 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10993 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10994 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10995 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10996 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10997 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10998 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10999 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11000 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11001 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11002 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11003 * config/gnu-user.h: New. Copied from linux.h.
11004 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11005 GNU_USER_TARGET_STARTFILE_SPEC.
11006 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11007 GNU_USER_TARGET_ENDFILE_SPEC.
11008 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11009 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11010 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11011 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11012 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11013 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11014 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11015 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11016 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11017 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11018 * config/arm/linux-eabi.h (CC1_SPEC): Use
11019 GNU_USER_TARGET_CC1_SPEC.
11020 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11021 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11022 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11023 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11024 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11025 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11026 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11027 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11029 2011-01-12 Richard Guenther <rguenther@suse.de>
11032 * doc/invoke.texi (ffast-math): Document it is turned on
11035 2011-01-12 Jan Hubicka <jh@suse.cz>
11037 PR tree-optimization/47233
11038 * opts.c (common_handle_option): Disable ipa-reference with profile
11041 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11043 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11046 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11048 * c-parser.c (c_lex_one_token): Updated and reindented some
11049 comments. No changes in code.
11051 2011-01-11 Ian Lance Taylor <iant@google.com>
11053 * godump.c (go_output_var): Don't output the variable if there is
11054 already a type with the same name.
11056 2011-01-11 Ian Lance Taylor <iant@google.com>
11058 * godump.c (go_format_type): Don't generate float80.
11060 2011-01-11 Richard Henderson <rth@redhat.com>
11062 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11063 declaration. Rewrite for both speed and size.
11064 (mn10300_address_cost_1): Remove.
11065 (mn10300_register_move_cost): New.
11066 (mn10300_memory_move_cost): New.
11067 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11068 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11069 extensions, shifts, BSWAP, CLZ.
11070 (mn10300_wide_const_load_uses_clr): Remove.
11071 (TARGET_REGISTER_MOVE_COST): New.
11072 (TARGET_MEMORY_MOVE_COST): New.
11073 * config/mn10300/mn10300-protos.h: Update.
11074 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11076 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11077 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11078 * config/mn10300/mn10300-protos.h: Update.
11079 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11080 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11081 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11082 (*test_int_bitfield, *test_byte_bitfield): Remove.
11083 (*bit_test, *subreg_bit_test): Remove.
11084 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11086 * config/mn10300/constraints.md ("c"): Rename from "A".
11087 ("A", "D"): New constraint letters.
11088 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11089 (fmssf4, fnmasf4, fnmssf4): Likewise.
11091 * config/mn10300/mn10300.md (isa): New attribute.
11092 (enabled): New attribute.
11094 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11095 (abssf2, negsf2): Define only for hardware fp.
11096 (sqrtsf2): Reformat.
11097 (addsf3, subsf3, mulsf3): Merge expander and insn.
11099 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11100 (DEBUGGER_AUTO_OFFSET): Remove.
11101 (DEBUGGER_ARG_OFFSET): Remove.
11103 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11104 Emit register stores with the same offsets as the hardware.
11105 (mn10300_store_multiple_operation): Don't check that the register
11106 save offsets are monotonic.
11107 * config/mn10300/mn10300-protos.h: Update.
11109 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11111 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11112 in terms of the value on the stack, not the MDR register.
11114 2011-01-11 Jan Hubicka <jh@suse.cz>
11118 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11119 (symbol_alias_set_destroy, symbol_alias_set_contains,
11120 propagate_aliases_backward): Declare.
11121 * lto-streamer-out.c (struct sets): New sturcture.
11122 (trivally_defined_alias): New function.
11123 (output_alias_pair_p): Rewrite.
11124 (output_unreferenced_globals): Fix output of alias pairs.
11125 (produce_symtab): Likewise.
11126 * ipa.c (function_and_variable_visibility): Set weak alias destination
11128 * varasm.c (symbol_alias_set_t): Remove.
11129 (symbol_alias_set_destroy): Export.
11130 (propagate_aliases_forward, propagate_aliases_backward): New functions
11132 (compute_visible_aliases): ... this one; remove.
11133 (trivially_visible_alias): New
11134 (trivially_defined_alias): New.
11135 (remove_unreachable_alias_pairs): Rewrite.
11136 (finish_aliases_1): Reorganize code checking if alias is defined.
11137 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11140 2011-01-11 Richard Guenther <rguenther@suse.de>
11142 PR tree-optimization/46076
11143 * tree-ssa.c (useless_type_conversion_p): Conversions from
11144 unprototyped to empty argument list function types are useless.
11146 2011-01-11 Richard Guenther <rguenther@suse.de>
11148 PR middle-end/45235
11149 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11150 volatile MEMs as MEM_READONLY_P.
11152 2011-01-11 Richard Guenther <rguenther@suse.de>
11154 PR tree-optimization/47239
11155 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11157 2011-01-11 Jeff Law <law@redhat.com>
11159 PR tree-optimization/47086
11160 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11161 IVs from statements that might throw.
11163 2011-01-10 Jan Hubicka <jh@suse.cz>
11166 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11168 2011-01-10 Jan Hubicka <jh@suse.cz>
11171 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11172 when correcting profile.
11174 2011-01-10 Jan Hubicka <jh@suse.cz>
11177 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11178 DECL_FINI_PRIORITY.
11179 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11180 Restore DECL_FINI_PRIORITY.
11182 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11184 * doc/gimple.texi: Fix quoting of multi-word return values in
11185 @deftypefn statements. Ensure presence of return value. Wrap
11186 overlong @deftypefn lines.
11187 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11188 descriptions of removed functions.
11189 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11190 of multi-word return value in @deftypefn statement.
11192 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11194 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11195 (Conditional Expressions, Logical Operators)
11196 (Statement and operand traversals): Do not indent smallexample
11197 code. Fix duplicate function argument in example.
11199 2011-01-10 Jeff Law <law@redhat.com>
11201 PR tree-optimization/47141
11202 * ipa-split.c (split_function): Handle case where we are
11203 returning a value and the return block has a virtual operand phi.
11205 2011-01-10 Jan Hubicka <jh@suse.cz>
11207 PR tree-optimization/47234
11208 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11209 (pass_feedback_split_functions): Declare.
11210 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11212 * ipa-split.c (gate_split_functions): Update comments; disable
11213 split-functions for profile_arc_flag and branch_probabilities.
11214 (gate_feedback_split_functions): New function.
11215 (execute_feedback_split_functions): New function.
11216 (pass_feedback_split_functions): New global var.
11218 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11221 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11222 calling gimple_call_set_cannot_inline.
11224 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11226 * config/darwin-sections.def: Remove unused section.
11228 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11231 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11233 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11236 * c-parser.c (c_parser_declaration_or_fndef): Improved
11239 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11241 * config/i386/winnt.c (i386_pe_start_function): Make sure
11242 to switch back to function's section.
11244 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11248 * plugin.c: Move include of dlfcn.h from here...
11249 * system.h: ... to here.
11251 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11253 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11255 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11256 two extra empty pages in PDF output.
11258 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11261 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11262 for error recovery purposes behave as if it was not specified so
11263 that the default type is usd.
11265 2011-01-07 Jan Hubicka <jh@suse.cz>
11267 PR tree-optmization/46469
11268 * ipa.c (function_and_variable_visibility): Clear needed flags on
11269 nodes with external decls; handle weakrefs merging correctly.
11271 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11273 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11276 2011-01-07 Jan Hubicka <jh@suse.cz>
11278 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11279 and no longer claim that gold is required for linker plugin.
11280 * configure: Regenerate.
11281 * gcc.c (PLUGIN_COND): New macro.
11282 (LINK_COMMAND_SPEC): Use it.
11283 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11284 * config.in (HAVE_LTO_PLUGIN): New.
11285 * configure.ac (--with-lto-plugin): New parameter; autodetect
11288 2011-01-07 Jan Hubicka <jh@suse.cz>
11290 PR tree-optimization/46367
11291 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11292 when we can update original.
11293 (cgraph_mark_inline_edge): Sanity check.
11294 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11296 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11298 * config/spu/spu.h (ASM_COMMENT_START): Define.
11300 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11303 * gcc.c (%>S): New.
11304 (SWITCH_KEEP_FOR_GCC): Likewise.
11305 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11306 (do_spec_1): Handle "%>".
11308 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11310 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11313 * config/i386/i386.c (ix86_delegitimize_address): If
11314 simplify_gen_subreg fails, return orig_x.
11317 * value-prof.c (gimple_stringop_fixed_value): Handle
11318 lhs of the call properly.
11320 2011-01-07 Jan Hubicka <jh@suse.cz>
11323 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11325 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11327 * target.def (function_switched_text_sections): New hook.
11328 * doc/tm.texi: Regenerated.
11329 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11330 * final.c (default_function_switched_text_sections): New.
11331 (final_scan_insn): Call function_switched_text_sections when a
11332 mid-function section change occurs.
11333 * output.h (default_function_switched_text_sections): Declare.
11334 * config/darwin-protos.h (darwin_function_switched_text_sections):
11336 * config/darwin.c (darwin_function_switched_text_sections): New.
11337 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11339 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11341 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11342 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11343 the secondary code fragment when outputting for DWARF == 2.
11345 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11347 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11348 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11350 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11351 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11353 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11356 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11357 when it is not empty.
11359 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11362 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11363 (case ${target}): Add btver1.
11364 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11365 -march=native recognize btver1 processors.
11366 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11367 btver1 def_and_undef
11368 * config/i386/i386.c (struct processor_costs btver1_cost): New
11370 (m_BTVER1): New definition.
11371 (m_AMD_MULTIPLE): Includes m_BTVER1.
11372 (initial_ix86_tune_features): Add btver1 tune.
11373 (processor_target_table): Add btver1 entry.
11374 (static const char *const cpu_names): Add btver1 entry.
11375 (software_prefetching_beneficial_p): Add btver1.
11376 (ix86_option_override_internal): Add btver1 instruction sets.
11377 (ix86_issue_rate): Add btver1.
11378 (ix86_adjust_cost): Add btver1.
11379 * config/i386/i386.h (TARGET_BTVER1): New definition.
11380 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11381 (enum processor_type): Add PROCESSOR_BTVER1.
11382 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11384 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11387 * config/i386/i386.c (legitimize_tls_address)
11388 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11389 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11390 (tls_initial_exec_64_sun): New pattern.
11392 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11394 * doc/invoke.texi (Overall Options): Improve wording and markup
11395 of the description of -wrapper.
11397 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11399 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11400 rdynamic, threads): New Driver options.
11402 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11405 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11406 if coming from .tdata.
11407 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11409 2011-01-06 Jan Hubicka <jh@suse.cz>
11412 * collect2.c (main): Do not enable LTOmode when plugin is active.
11414 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11417 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11418 --version output if supported.
11419 * configure: Regenerate.
11421 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11423 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11426 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11429 * c-convert.c (convert): When converting a complex expression
11430 other than COMPLEX_EXPR to a different complex type, ensure
11431 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11432 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11433 when converting COMPLEX_TYPE.
11435 2011-01-06 Ira Rosen <irar@il.ibm.com>
11437 PR tree-optimization/47139
11438 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11439 only the last reduction value is used outside the loop. Update
11442 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11444 * config/rtems.opt: New.
11445 * config.gcc (*-*-rtems*): Use rtems.opt.
11447 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11449 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11450 processors do not support 3DNow instructions.
11452 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11454 * config/spu/spu.c (spu_option_override): Set parameter
11455 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11457 2011-01-05 Jan Hubicka <jh@suse.cz>
11459 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11460 at the command line.
11462 2011-01-05 Martin Jambor <mjambor@suse.cz>
11465 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11466 deltas on streamed outgoing edges.
11467 (output_node_opt_summary): Output info for outgoing edges only when
11468 the node is in new parameter set.
11469 (output_cgraph_opt_summary): New parameter set, passed to the two
11470 aforementioned functions. Update its forward declaration and its
11473 2011-01-05 Tom Tromey <tromey@redhat.com>
11475 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11476 operator to c_finish_omp_atomic.
11477 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11478 (build_unary_op): Update.
11479 (build_modify_expr): Update.
11480 (build_asm_expr): Update.
11482 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11484 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11485 newly inserted insns.
11486 (pad_bb): Likewise.
11487 (spu_emit_branch_hint): Likewise.
11488 (insert_hbrp_for_ilb_runout): Likewise.
11489 (spu_machine_dependent_reorg): Call df_finish_pass after
11490 schedule_insns returns.
11492 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11494 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11496 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11498 PR tree-optimization/47005
11499 * tree-sra.c (struct access): Add 'non_addressable' bit.
11500 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11501 (decide_one_param_reduction): Return 0 if the parameter is passed by
11502 reference and one of the accesses in the group is non_addressable.
11504 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11506 PR tree-optimization/47056
11507 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11508 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11509 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11511 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11513 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11514 initializer. Skip view conversions from aggregate types.
11516 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11519 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11521 2011-01-04 Philipp Thomas <pth@suse.de>
11523 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11526 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11528 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11529 on empty epilogue sequences.
11531 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11533 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11534 non-static): New Driver options.
11536 2011-01-04 Jie Zhang <jie@codesourcery.com>
11539 * gcc.c (default_compilers[]): Set combinable field to 0
11540 for all assembly languages.
11542 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11544 * config/mips/loongson3a.md: New file.
11545 * config/mips/mips.md: Include loongson3a.md.
11546 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11549 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11551 PR middle-end/47017
11552 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11553 instead of convert_memory_address_addr_space on the base expression.
11555 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11557 * config/spu/spu.c (spu_option_override): Update error text
11558 for bad -march= / -mtune= values.
11560 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11562 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11563 if branch-hint optimization will be performed.
11565 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11567 PR tree-optimization/47148
11568 * ipa-split.c (split_function): Convert arguments to
11569 DECL_ARG_TYPE if possible.
11571 PR tree-optimization/47155
11572 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11573 when computing uns.
11575 PR rtl-optimization/47157
11576 * combine.c (try_combine): If undobuf.other_insn becomes
11577 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11578 and set *new_direct_jump_p too.
11580 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11582 PR tree-optimization/47021
11583 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11585 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11587 * gcc.c (process_command): Update copyright notice dates.
11588 * gcov.c (print_version): Likewise.
11589 * gcov-dump.c (print_version): Likewise.
11590 * mips-tfile.c (main): Likewise.
11591 * mips-tdump.c (main): Likewise.
11593 2011-01-03 Martin Jambor <mjambor@suse.cz>
11595 PR tree-optimization/46801
11596 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11597 aggregate fields start at byte boundary instead of the bit-field flag.
11599 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11602 * gcc.c (main): Revert revision 168407.
11604 2011-01-03 Martin Jambor <mjambor@suse.cz>
11606 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11608 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11610 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11611 vector optab to expand vector/scalar shift, update gimple to vector.
11613 2011-01-03 Martin Jambor <mjambor@suse.cz>
11615 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11618 2011-01-03 Martin Jambor <mjambor@suse.cz>
11620 PR tree-optimization/46984
11621 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11623 (cgraph_create_indirect_edge): Fixed line length.
11624 (cgraph_indirect_call_info): Declare.
11625 (cgraph_make_edge_direct) Update declaration.
11626 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11627 (cgraph_create_indirect_edge): Use it.
11628 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11630 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11631 the new thunk_delta representation.
11632 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11634 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11635 (ipa_read_indirect_edge_info): Likewise.
11636 * lto-cgraph.c (output_edge_opt_summary): New function.
11637 (output_node_opt_summary): Call it on all outgoing edges.
11638 (input_edge_opt_summary): New function.
11639 (input_node_opt_summary): Call it on all outgoing edges.
11641 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11644 * gcc.c (main): Don't check have_o when settting combine_inputs.
11646 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11648 * regrename.c: Add general comment describing the pass.
11649 (struct du_head): Remove 'length' field.
11650 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11651 (regrename_optimize): Do not sort chains. Rework comments, add others.
11652 Force renaming to the preferred class (if any) in the first pass and do
11653 not consider registers that belong to it in the second pass.
11654 (create_new_chain): Do not set 'length' field.
11655 (scan_rtx_reg): Likewise.
11657 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11659 PR tree-optimization/47140
11660 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11661 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11662 to bit_value_binop.
11664 PR rtl-optimization/47028
11665 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11666 parm_birth_insn instead of at the beginning of first bb.
11668 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11670 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11671 Remove the word "see" before "@pxref".
11672 * doc/rtl.texi: Remove the word "see" before "@pxref".
11674 2011-01-01 Jan Hubicka <jh@suse.cz>
11676 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11679 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11682 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11685 Copyright (C) 2011 Free Software Foundation, Inc.
11687 Copying and distribution of this file, with or without modification,
11688 are permitted in any medium without royalty provided the copyright
11689 notice and this notice are preserved.